Lines Matching refs:dvo

73 static bool sil164_readb(struct intel_dvo_device *dvo, int addr, u8 *ch)  in sil164_readb()  argument
75 struct sil164_priv *sil = dvo->dev_priv; in sil164_readb()
76 struct i2c_adapter *adapter = dvo->i2c_bus; in sil164_readb()
82 .addr = dvo->target_addr, in sil164_readb()
88 .addr = dvo->target_addr, in sil164_readb()
105 addr, adapter->name, dvo->target_addr); in sil164_readb()
110 static bool sil164_writeb(struct intel_dvo_device *dvo, int addr, u8 ch) in sil164_writeb() argument
112 struct sil164_priv *sil = dvo->dev_priv; in sil164_writeb()
113 struct i2c_adapter *adapter = dvo->i2c_bus; in sil164_writeb()
116 .addr = dvo->target_addr, in sil164_writeb()
130 addr, adapter->name, dvo->target_addr); in sil164_writeb()
137 static bool sil164_init(struct intel_dvo_device *dvo, in sil164_init() argument
148 dvo->i2c_bus = adapter; in sil164_init()
149 dvo->dev_priv = sil; in sil164_init()
152 if (!sil164_readb(dvo, SIL164_VID_LO, &ch)) in sil164_init()
157 ch, adapter->name, dvo->target_addr); in sil164_init()
161 if (!sil164_readb(dvo, SIL164_DID_LO, &ch)) in sil164_init()
166 ch, adapter->name, dvo->target_addr); in sil164_init()
179 static enum drm_connector_status sil164_detect(struct intel_dvo_device *dvo) in sil164_detect() argument
183 sil164_readb(dvo, SIL164_REG9, &reg9); in sil164_detect()
191 static enum drm_mode_status sil164_mode_valid(struct intel_dvo_device *dvo, in sil164_mode_valid() argument
197 static void sil164_mode_set(struct intel_dvo_device *dvo, in sil164_mode_set() argument
213 sil164_writeb(dvo, SIL164_REG8, in sil164_mode_set()
215 sil164_writeb(dvo, SIL164_REG9, in sil164_mode_set()
217 sil164_writeb(dvo, SIL164_REGC, in sil164_mode_set()
222 static void sil164_dpms(struct intel_dvo_device *dvo, bool enable) in sil164_dpms() argument
227 ret = sil164_readb(dvo, SIL164_REG8, &ch); in sil164_dpms()
236 sil164_writeb(dvo, SIL164_REG8, ch); in sil164_dpms()
239 static bool sil164_get_hw_state(struct intel_dvo_device *dvo) in sil164_get_hw_state() argument
244 ret = sil164_readb(dvo, SIL164_REG8, &ch); in sil164_get_hw_state()
254 static void sil164_dump_regs(struct intel_dvo_device *dvo) in sil164_dump_regs() argument
258 sil164_readb(dvo, SIL164_FREQ_LO, &val); in sil164_dump_regs()
260 sil164_readb(dvo, SIL164_FREQ_HI, &val); in sil164_dump_regs()
262 sil164_readb(dvo, SIL164_REG8, &val); in sil164_dump_regs()
264 sil164_readb(dvo, SIL164_REG9, &val); in sil164_dump_regs()
266 sil164_readb(dvo, SIL164_REGC, &val); in sil164_dump_regs()
270 static void sil164_destroy(struct intel_dvo_device *dvo) in sil164_destroy() argument
272 struct sil164_priv *sil = dvo->dev_priv; in sil164_destroy()
276 dvo->dev_priv = NULL; in sil164_destroy()