Lines Matching defs:dvo
35 #include "dvo.h"
74 static bool sil164_readb(struct intel_dvo_device *dvo, int addr, uint8_t *ch)
76 struct sil164_priv *sil = dvo->dev_priv;
77 struct i2c_adapter *adapter = dvo->i2c_bus;
83 .addr = dvo->slave_addr,
89 .addr = dvo->slave_addr,
106 addr, adapter->name, dvo->slave_addr);
111 static bool sil164_writeb(struct intel_dvo_device *dvo, int addr, uint8_t ch)
113 struct sil164_priv *sil= dvo->dev_priv;
114 struct i2c_adapter *adapter = dvo->i2c_bus;
117 .addr = dvo->slave_addr,
131 addr, adapter->name, dvo->slave_addr);
138 static bool sil164_init(struct intel_dvo_device *dvo,
149 dvo->i2c_bus = adapter;
150 dvo->dev_priv = sil;
153 if (!sil164_readb(dvo, SIL164_VID_LO, &ch))
158 ch, adapter->name, dvo->slave_addr);
162 if (!sil164_readb(dvo, SIL164_DID_LO, &ch))
167 ch, adapter->name, dvo->slave_addr);
172 DRM_DEBUG_KMS("init sil164 dvo controller successfully!\n");
180 static enum drm_connector_status sil164_detect(struct intel_dvo_device *dvo)
184 (void) sil164_readb(dvo, SIL164_REG9, ®9);
193 static int sil164_mode_valid(struct intel_dvo_device *dvo,
201 static void sil164_mode_set(struct intel_dvo_device *dvo,
222 static void sil164_dpms(struct intel_dvo_device *dvo, bool enable)
227 ret = sil164_readb(dvo, SIL164_REG8, &ch);
236 (void) sil164_writeb(dvo, SIL164_REG8, ch);
240 static bool sil164_get_hw_state(struct intel_dvo_device *dvo)
245 ret = sil164_readb(dvo, SIL164_REG8, &ch);
254 static void sil164_dump_regs(struct intel_dvo_device *dvo)
258 (void) sil164_readb(dvo, SIL164_FREQ_LO, &val);
260 (void) sil164_readb(dvo, SIL164_FREQ_HI, &val);
262 (void) sil164_readb(dvo, SIL164_REG8, &val);
264 (void) sil164_readb(dvo, SIL164_REG9, &val);
266 (void) sil164_readb(dvo, SIL164_REGC, &val);
270 static void sil164_destroy(struct intel_dvo_device *dvo)
272 struct sil164_priv *sil = dvo->dev_priv;
276 dvo->dev_priv = NULL;