Lines Matching full:dvo
94 static bool tfp410_readb(struct intel_dvo_device *dvo, int addr, u8 *ch) in tfp410_readb() argument
96 struct tfp410_priv *tfp = dvo->dev_priv; in tfp410_readb()
97 struct i2c_adapter *adapter = dvo->i2c_bus; in tfp410_readb()
103 .addr = dvo->target_addr, in tfp410_readb()
109 .addr = dvo->target_addr, in tfp410_readb()
126 addr, adapter->name, dvo->target_addr); in tfp410_readb()
131 static bool tfp410_writeb(struct intel_dvo_device *dvo, int addr, u8 ch) in tfp410_writeb() argument
133 struct tfp410_priv *tfp = dvo->dev_priv; in tfp410_writeb()
134 struct i2c_adapter *adapter = dvo->i2c_bus; in tfp410_writeb()
137 .addr = dvo->target_addr, in tfp410_writeb()
151 addr, adapter->name, dvo->target_addr); in tfp410_writeb()
157 static int tfp410_getid(struct intel_dvo_device *dvo, int addr) in tfp410_getid() argument
161 if (tfp410_readb(dvo, addr+0, &ch1) && in tfp410_getid()
162 tfp410_readb(dvo, addr+1, &ch2)) in tfp410_getid()
169 static bool tfp410_init(struct intel_dvo_device *dvo, in tfp410_init() argument
180 dvo->i2c_bus = adapter; in tfp410_init()
181 dvo->dev_priv = tfp; in tfp410_init()
184 if ((id = tfp410_getid(dvo, TFP410_VID_LO)) != TFP410_VID) { in tfp410_init()
187 id, adapter->name, dvo->target_addr); in tfp410_init()
191 if ((id = tfp410_getid(dvo, TFP410_DID_LO)) != TFP410_DID) { in tfp410_init()
194 id, adapter->name, dvo->target_addr); in tfp410_init()
204 static enum drm_connector_status tfp410_detect(struct intel_dvo_device *dvo) in tfp410_detect() argument
209 if (tfp410_readb(dvo, TFP410_CTL_2, &ctl2)) { in tfp410_detect()
219 static enum drm_mode_status tfp410_mode_valid(struct intel_dvo_device *dvo, in tfp410_mode_valid() argument
225 static void tfp410_mode_set(struct intel_dvo_device *dvo, in tfp410_mode_set() argument
238 static void tfp410_dpms(struct intel_dvo_device *dvo, bool enable) in tfp410_dpms() argument
242 if (!tfp410_readb(dvo, TFP410_CTL_1, &ctl1)) in tfp410_dpms()
250 tfp410_writeb(dvo, TFP410_CTL_1, ctl1); in tfp410_dpms()
253 static bool tfp410_get_hw_state(struct intel_dvo_device *dvo) in tfp410_get_hw_state() argument
257 if (!tfp410_readb(dvo, TFP410_CTL_1, &ctl1)) in tfp410_get_hw_state()
266 static void tfp410_dump_regs(struct intel_dvo_device *dvo) in tfp410_dump_regs() argument
270 tfp410_readb(dvo, TFP410_REV, &val); in tfp410_dump_regs()
272 tfp410_readb(dvo, TFP410_CTL_1, &val); in tfp410_dump_regs()
274 tfp410_readb(dvo, TFP410_CTL_2, &val); in tfp410_dump_regs()
276 tfp410_readb(dvo, TFP410_CTL_3, &val); in tfp410_dump_regs()
278 tfp410_readb(dvo, TFP410_USERCFG, &val); in tfp410_dump_regs()
280 tfp410_readb(dvo, TFP410_DE_DLY, &val); in tfp410_dump_regs()
282 tfp410_readb(dvo, TFP410_DE_CTL, &val); in tfp410_dump_regs()
284 tfp410_readb(dvo, TFP410_DE_TOP, &val); in tfp410_dump_regs()
286 tfp410_readb(dvo, TFP410_DE_CNT_LO, &val); in tfp410_dump_regs()
287 tfp410_readb(dvo, TFP410_DE_CNT_HI, &val2); in tfp410_dump_regs()
289 tfp410_readb(dvo, TFP410_DE_LIN_LO, &val); in tfp410_dump_regs()
290 tfp410_readb(dvo, TFP410_DE_LIN_HI, &val2); in tfp410_dump_regs()
292 tfp410_readb(dvo, TFP410_H_RES_LO, &val); in tfp410_dump_regs()
293 tfp410_readb(dvo, TFP410_H_RES_HI, &val2); in tfp410_dump_regs()
295 tfp410_readb(dvo, TFP410_V_RES_LO, &val); in tfp410_dump_regs()
296 tfp410_readb(dvo, TFP410_V_RES_HI, &val2); in tfp410_dump_regs()
300 static void tfp410_destroy(struct intel_dvo_device *dvo) in tfp410_destroy() argument
302 struct tfp410_priv *tfp = dvo->dev_priv; in tfp410_destroy()
306 dvo->dev_priv = NULL; in tfp410_destroy()