Lines Matching refs:dvo
135 static bool ch7xxx_readb(struct intel_dvo_device *dvo, int addr, uint8_t *ch) in ch7xxx_readb() argument
137 struct ch7xxx_priv *ch7xxx = dvo->dev_priv; in ch7xxx_readb()
138 struct i2c_adapter *adapter = dvo->i2c_bus; in ch7xxx_readb()
144 .addr = dvo->slave_addr, in ch7xxx_readb()
150 .addr = dvo->slave_addr, in ch7xxx_readb()
167 addr, adapter->name, dvo->slave_addr); in ch7xxx_readb()
173 static bool ch7xxx_writeb(struct intel_dvo_device *dvo, int addr, uint8_t ch) in ch7xxx_writeb() argument
175 struct ch7xxx_priv *ch7xxx = dvo->dev_priv; in ch7xxx_writeb()
176 struct i2c_adapter *adapter = dvo->i2c_bus; in ch7xxx_writeb()
179 .addr = dvo->slave_addr, in ch7xxx_writeb()
193 addr, adapter->name, dvo->slave_addr); in ch7xxx_writeb()
199 static bool ch7xxx_init(struct intel_dvo_device *dvo, in ch7xxx_init() argument
211 dvo->i2c_bus = adapter; in ch7xxx_init()
212 dvo->dev_priv = ch7xxx; in ch7xxx_init()
215 if (!ch7xxx_readb(dvo, CH7xxx_REG_VID, &vendor)) in ch7xxx_init()
222 vendor, adapter->name, dvo->slave_addr); in ch7xxx_init()
227 if (!ch7xxx_readb(dvo, CH7xxx_REG_DID, &device)) in ch7xxx_init()
234 vendor, adapter->name, dvo->slave_addr); in ch7xxx_init()
247 static enum drm_connector_status ch7xxx_detect(struct intel_dvo_device *dvo) in ch7xxx_detect() argument
251 ch7xxx_readb(dvo, CH7xxx_PM, &orig_pm); in ch7xxx_detect()
257 ch7xxx_writeb(dvo, CH7xxx_PM, pm); in ch7xxx_detect()
259 ch7xxx_readb(dvo, CH7xxx_CONNECTION_DETECT, &cdet); in ch7xxx_detect()
261 ch7xxx_writeb(dvo, CH7xxx_PM, orig_pm); in ch7xxx_detect()
268 static enum drm_mode_status ch7xxx_mode_valid(struct intel_dvo_device *dvo, in ch7xxx_mode_valid() argument
277 static void ch7xxx_mode_set(struct intel_dvo_device *dvo, in ch7xxx_mode_set() argument
295 ch7xxx_writeb(dvo, CH7xxx_TCTL, 0x00); in ch7xxx_mode_set()
296 ch7xxx_writeb(dvo, CH7xxx_TVCO, tvco); in ch7xxx_mode_set()
297 ch7xxx_writeb(dvo, CH7xxx_TPCP, tpcp); in ch7xxx_mode_set()
298 ch7xxx_writeb(dvo, CH7xxx_TPD, tpd); in ch7xxx_mode_set()
299 ch7xxx_writeb(dvo, CH7xxx_TPVT, 0x30); in ch7xxx_mode_set()
300 ch7xxx_writeb(dvo, CH7xxx_TLPF, tlpf); in ch7xxx_mode_set()
301 ch7xxx_writeb(dvo, CH7xxx_TCT, 0x00); in ch7xxx_mode_set()
303 ch7xxx_readb(dvo, CH7xxx_IDF, &idf); in ch7xxx_mode_set()
312 ch7xxx_writeb(dvo, CH7xxx_IDF, idf); in ch7xxx_mode_set()
316 static void ch7xxx_dpms(struct intel_dvo_device *dvo, bool enable) in ch7xxx_dpms() argument
319 ch7xxx_writeb(dvo, CH7xxx_PM, CH7xxx_PM_DVIL | CH7xxx_PM_DVIP); in ch7xxx_dpms()
321 ch7xxx_writeb(dvo, CH7xxx_PM, CH7xxx_PM_FPD); in ch7xxx_dpms()
324 static bool ch7xxx_get_hw_state(struct intel_dvo_device *dvo) in ch7xxx_get_hw_state() argument
328 ch7xxx_readb(dvo, CH7xxx_PM, &val); in ch7xxx_get_hw_state()
336 static void ch7xxx_dump_regs(struct intel_dvo_device *dvo) in ch7xxx_dump_regs() argument
344 ch7xxx_readb(dvo, i, &val); in ch7xxx_dump_regs()
349 static void ch7xxx_destroy(struct intel_dvo_device *dvo) in ch7xxx_destroy() argument
351 struct ch7xxx_priv *ch7xxx = dvo->dev_priv; in ch7xxx_destroy()
355 dvo->dev_priv = NULL; in ch7xxx_destroy()