Lines Matching refs:dvo
69 static bool sil164_readb(struct intel_dvo_device *dvo, int addr, u8 *ch) in sil164_readb() argument
71 struct sil164_priv *sil = dvo->dev_priv; in sil164_readb()
72 struct i2c_adapter *adapter = dvo->i2c_bus; in sil164_readb()
78 .addr = dvo->slave_addr, in sil164_readb()
84 .addr = dvo->slave_addr, in sil164_readb()
101 addr, adapter->name, dvo->slave_addr); in sil164_readb()
106 static bool sil164_writeb(struct intel_dvo_device *dvo, int addr, u8 ch) in sil164_writeb() argument
108 struct sil164_priv *sil = dvo->dev_priv; in sil164_writeb()
109 struct i2c_adapter *adapter = dvo->i2c_bus; in sil164_writeb()
112 .addr = dvo->slave_addr, in sil164_writeb()
126 addr, adapter->name, dvo->slave_addr); in sil164_writeb()
133 static bool sil164_init(struct intel_dvo_device *dvo, in sil164_init() argument
144 dvo->i2c_bus = adapter; in sil164_init()
145 dvo->dev_priv = sil; in sil164_init()
148 if (!sil164_readb(dvo, SIL164_VID_LO, &ch)) in sil164_init()
153 ch, adapter->name, dvo->slave_addr); in sil164_init()
157 if (!sil164_readb(dvo, SIL164_DID_LO, &ch)) in sil164_init()
162 ch, adapter->name, dvo->slave_addr); in sil164_init()
175 static enum drm_connector_status sil164_detect(struct intel_dvo_device *dvo) in sil164_detect() argument
179 sil164_readb(dvo, SIL164_REG9, ®9); in sil164_detect()
187 static enum drm_mode_status sil164_mode_valid(struct intel_dvo_device *dvo, in sil164_mode_valid() argument
193 static void sil164_mode_set(struct intel_dvo_device *dvo, in sil164_mode_set() argument
212 static void sil164_dpms(struct intel_dvo_device *dvo, bool enable) in sil164_dpms() argument
217 ret = sil164_readb(dvo, SIL164_REG8, &ch); in sil164_dpms()
226 sil164_writeb(dvo, SIL164_REG8, ch); in sil164_dpms()
230 static bool sil164_get_hw_state(struct intel_dvo_device *dvo) in sil164_get_hw_state() argument
235 ret = sil164_readb(dvo, SIL164_REG8, &ch); in sil164_get_hw_state()
245 static void sil164_dump_regs(struct intel_dvo_device *dvo) in sil164_dump_regs() argument
249 sil164_readb(dvo, SIL164_FREQ_LO, &val); in sil164_dump_regs()
251 sil164_readb(dvo, SIL164_FREQ_HI, &val); in sil164_dump_regs()
253 sil164_readb(dvo, SIL164_REG8, &val); in sil164_dump_regs()
255 sil164_readb(dvo, SIL164_REG9, &val); in sil164_dump_regs()
257 sil164_readb(dvo, SIL164_REGC, &val); in sil164_dump_regs()
261 static void sil164_destroy(struct intel_dvo_device *dvo) in sil164_destroy() argument
263 struct sil164_priv *sil = dvo->dev_priv; in sil164_destroy()
267 dvo->dev_priv = NULL; in sil164_destroy()