Lines Matching full:edid
54 struct intel_vgpu_i2c_edid *edid = &vgpu->display.i2c_edid; in edid_get_byte() local
57 if (edid->state == I2C_NOT_SPECIFIED || !edid->slave_selected) { in edid_get_byte()
58 gvt_vgpu_err("Driver tries to read EDID without proper sequence!\n"); in edid_get_byte()
61 if (edid->current_edid_read >= EDID_SIZE) { in edid_get_byte()
62 gvt_vgpu_err("edid_get_byte() exceeds the size of EDID!\n"); in edid_get_byte()
66 if (!edid->edid_available) { in edid_get_byte()
67 gvt_vgpu_err("Reading EDID but EDID is not available!\n"); in edid_get_byte()
71 if (intel_vgpu_has_monitor_on_port(vgpu, edid->port)) { in edid_get_byte()
73 intel_vgpu_port(vgpu, edid->port)->edid; in edid_get_byte()
75 chr = edid_data->edid_block[edid->current_edid_read]; in edid_get_byte()
76 edid->current_edid_read++; in edid_get_byte()
78 gvt_vgpu_err("No EDID available during the reading?\n"); in edid_get_byte()
215 /* vgpu gmbus only support EDID */ in gmbus1_mmio_write()
535 * We only support EDID reading from I2C_over_AUX. And in intel_gvt_i2c_handle_aux_ch_write()
538 * support the gfx driver to do EDID access. in intel_gvt_i2c_handle_aux_ch_write()
561 * intel_vgpu_init_i2c_edid - initialize vGPU i2c edid emulation
564 * This function is used to initialize vGPU i2c edid emulation stuffs
569 struct intel_vgpu_i2c_edid *edid = &vgpu->display.i2c_edid; in intel_vgpu_init_i2c_edid() local
571 edid->state = I2C_NOT_SPECIFIED; in intel_vgpu_init_i2c_edid()
573 edid->port = -1; in intel_vgpu_init_i2c_edid()
574 edid->slave_selected = false; in intel_vgpu_init_i2c_edid()
575 edid->edid_available = false; in intel_vgpu_init_i2c_edid()
576 edid->current_edid_read = 0; in intel_vgpu_init_i2c_edid()
578 memset(&edid->gmbus, 0, sizeof(struct intel_vgpu_i2c_gmbus)); in intel_vgpu_init_i2c_edid()
580 edid->aux_ch.i2c_over_aux_ch = false; in intel_vgpu_init_i2c_edid()
581 edid->aux_ch.aux_ch_mot = false; in intel_vgpu_init_i2c_edid()