Lines Matching refs:dvo
96 static bool tfp410_readb(struct intel_dvo_device *dvo, int addr, u8 *ch)
98 struct tfp410_priv *tfp = dvo->dev_priv;
99 struct i2c_adapter *adapter = dvo->i2c_bus;
105 .addr = dvo->target_addr,
111 .addr = dvo->target_addr,
128 addr, adapter->name, dvo->target_addr);
133 static bool tfp410_writeb(struct intel_dvo_device *dvo, int addr, u8 ch)
135 struct tfp410_priv *tfp = dvo->dev_priv;
136 struct i2c_adapter *adapter = dvo->i2c_bus;
139 .addr = dvo->target_addr,
153 addr, adapter->name, dvo->target_addr);
159 static int tfp410_getid(struct intel_dvo_device *dvo, int addr)
163 if (tfp410_readb(dvo, addr+0, &ch1) &&
164 tfp410_readb(dvo, addr+1, &ch2))
171 static bool tfp410_init(struct intel_dvo_device *dvo,
182 dvo->i2c_bus = adapter;
183 dvo->dev_priv = tfp;
186 if ((id = tfp410_getid(dvo, TFP410_VID_LO)) != TFP410_VID) {
189 id, adapter->name, dvo->target_addr);
193 if ((id = tfp410_getid(dvo, TFP410_DID_LO)) != TFP410_DID) {
196 id, adapter->name, dvo->target_addr);
206 static enum drm_connector_status tfp410_detect(struct intel_dvo_device *dvo)
211 if (tfp410_readb(dvo, TFP410_CTL_2, &ctl2)) {
221 static enum drm_mode_status tfp410_mode_valid(struct intel_dvo_device *dvo,
227 static void tfp410_mode_set(struct intel_dvo_device *dvo,
240 static void tfp410_dpms(struct intel_dvo_device *dvo, bool enable)
244 if (!tfp410_readb(dvo, TFP410_CTL_1, &ctl1))
252 tfp410_writeb(dvo, TFP410_CTL_1, ctl1);
255 static bool tfp410_get_hw_state(struct intel_dvo_device *dvo)
259 if (!tfp410_readb(dvo, TFP410_CTL_1, &ctl1))
268 static void tfp410_dump_regs(struct intel_dvo_device *dvo)
272 tfp410_readb(dvo, TFP410_REV, &val);
274 tfp410_readb(dvo, TFP410_CTL_1, &val);
276 tfp410_readb(dvo, TFP410_CTL_2, &val);
278 tfp410_readb(dvo, TFP410_CTL_3, &val);
280 tfp410_readb(dvo, TFP410_USERCFG, &val);
282 tfp410_readb(dvo, TFP410_DE_DLY, &val);
284 tfp410_readb(dvo, TFP410_DE_CTL, &val);
286 tfp410_readb(dvo, TFP410_DE_TOP, &val);
288 tfp410_readb(dvo, TFP410_DE_CNT_LO, &val);
289 tfp410_readb(dvo, TFP410_DE_CNT_HI, &val2);
291 tfp410_readb(dvo, TFP410_DE_LIN_LO, &val);
292 tfp410_readb(dvo, TFP410_DE_LIN_HI, &val2);
294 tfp410_readb(dvo, TFP410_H_RES_LO, &val);
295 tfp410_readb(dvo, TFP410_H_RES_HI, &val2);
297 tfp410_readb(dvo, TFP410_V_RES_LO, &val);
298 tfp410_readb(dvo, TFP410_V_RES_HI, &val2);
302 static void tfp410_destroy(struct intel_dvo_device *dvo)
304 struct tfp410_priv *tfp = dvo->dev_priv;
308 dvo->dev_priv = NULL;