Lines Matching full:edid
53 struct intel_vgpu_i2c_edid *edid = &vgpu->display.i2c_edid; in edid_get_byte() local
56 if (edid->state == I2C_NOT_SPECIFIED || !edid->slave_selected) { in edid_get_byte()
57 gvt_vgpu_err("Driver tries to read EDID without proper sequence!\n"); in edid_get_byte()
60 if (edid->current_edid_read >= EDID_SIZE) { in edid_get_byte()
61 gvt_vgpu_err("edid_get_byte() exceeds the size of EDID!\n"); in edid_get_byte()
65 if (!edid->edid_available) { in edid_get_byte()
66 gvt_vgpu_err("Reading EDID but EDID is not available!\n"); in edid_get_byte()
70 if (intel_vgpu_has_monitor_on_port(vgpu, edid->port)) { in edid_get_byte()
72 intel_vgpu_port(vgpu, edid->port)->edid; in edid_get_byte()
74 chr = edid_data->edid_block[edid->current_edid_read]; in edid_get_byte()
75 edid->current_edid_read++; in edid_get_byte()
77 gvt_vgpu_err("No EDID available during the reading?\n"); in edid_get_byte()
214 /* vgpu gmbus only support EDID */ in gmbus1_mmio_write()
538 * We only support EDID reading from I2C_over_AUX. And in intel_gvt_i2c_handle_aux_ch_write()
541 * support the gfx driver to do EDID access. in intel_gvt_i2c_handle_aux_ch_write()
564 * intel_vgpu_init_i2c_edid - initialize vGPU i2c edid emulation
567 * This function is used to initialize vGPU i2c edid emulation stuffs
572 struct intel_vgpu_i2c_edid *edid = &vgpu->display.i2c_edid; in intel_vgpu_init_i2c_edid() local
574 edid->state = I2C_NOT_SPECIFIED; in intel_vgpu_init_i2c_edid()
576 edid->port = -1; in intel_vgpu_init_i2c_edid()
577 edid->slave_selected = false; in intel_vgpu_init_i2c_edid()
578 edid->edid_available = false; in intel_vgpu_init_i2c_edid()
579 edid->current_edid_read = 0; in intel_vgpu_init_i2c_edid()
581 memset(&edid->gmbus, 0, sizeof(struct intel_vgpu_i2c_gmbus)); in intel_vgpu_init_i2c_edid()
583 edid->aux_ch.i2c_over_aux_ch = false; in intel_vgpu_init_i2c_edid()
584 edid->aux_ch.aux_ch_mot = false; in intel_vgpu_init_i2c_edid()