Lines Matching defs:idx
67 void write_gmbus3(hwreg::RegisterIo* mmio_space, const uint8_t* buf, uint32_t size, uint32_t idx) {
70 while (idx < size && cur_byte < 4) {
71 val |= buf[idx++] << (8 * cur_byte++);
76 void read_gmbus3(hwreg::RegisterIo* mmio_space, uint8_t* buf, uint32_t size, uint32_t idx) {
79 while (idx < size && cur_byte++ < 4) {
80 buf[idx++] = val & 0xff;
256 unsigned idx = 0;
257 write_gmbus3(mmio_space_, buf, size, idx);
258 idx += 4;
267 while (idx < size) {
272 write_gmbus3(mmio_space_, buf, size, idx);
273 idx += 4;
288 unsigned idx = 0;
289 while (idx < size) {
294 read_gmbus3(mmio_space_, buf, size, idx);
295 idx += 4;
665 // kUseDefaultIdx always fails the idx-in-bounds check, so no additional handling is needed
666 uint8_t idx = controller()->igd_opregion().GetHdmiBufferTranslationIndex(ddi());
673 if (idx >= fbl::count_of(hdmi_ddi_buf_trans_skl_y)) {
674 idx = 8; // Default index
679 if (idx >= fbl::count_of(hdmi_ddi_buf_trans_skl_uhs)) {
680 idx = 8; // Default index
685 ddi_buf_trans_hi.set_reg_value(entries[idx].high_dword);
686 ddi_buf_trans_lo.set_reg_value(entries[idx].low_dword);