Lines Matching refs:dvo

136 static bool ch7xxx_readb(struct intel_dvo_device *dvo, int addr, u8 *ch)  in ch7xxx_readb()  argument
138 struct ch7xxx_priv *ch7xxx = dvo->dev_priv; in ch7xxx_readb()
139 struct i2c_adapter *adapter = dvo->i2c_bus; in ch7xxx_readb()
145 .addr = dvo->slave_addr, in ch7xxx_readb()
151 .addr = dvo->slave_addr, in ch7xxx_readb()
168 addr, adapter->name, dvo->slave_addr); in ch7xxx_readb()
174 static bool ch7xxx_writeb(struct intel_dvo_device *dvo, int addr, u8 ch) in ch7xxx_writeb() argument
176 struct ch7xxx_priv *ch7xxx = dvo->dev_priv; in ch7xxx_writeb()
177 struct i2c_adapter *adapter = dvo->i2c_bus; in ch7xxx_writeb()
180 .addr = dvo->slave_addr, in ch7xxx_writeb()
194 addr, adapter->name, dvo->slave_addr); in ch7xxx_writeb()
200 static bool ch7xxx_init(struct intel_dvo_device *dvo, in ch7xxx_init() argument
212 dvo->i2c_bus = adapter; in ch7xxx_init()
213 dvo->dev_priv = ch7xxx; in ch7xxx_init()
216 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()
233 device, adapter->name, dvo->slave_addr); in ch7xxx_init()
246 static enum drm_connector_status ch7xxx_detect(struct intel_dvo_device *dvo) in ch7xxx_detect() argument
250 ch7xxx_readb(dvo, CH7xxx_PM, &orig_pm); in ch7xxx_detect()
256 ch7xxx_writeb(dvo, CH7xxx_PM, pm); in ch7xxx_detect()
258 ch7xxx_readb(dvo, CH7xxx_CONNECTION_DETECT, &cdet); in ch7xxx_detect()
260 ch7xxx_writeb(dvo, CH7xxx_PM, orig_pm); in ch7xxx_detect()
267 static enum drm_mode_status ch7xxx_mode_valid(struct intel_dvo_device *dvo, in ch7xxx_mode_valid() argument
276 static void ch7xxx_mode_set(struct intel_dvo_device *dvo, in ch7xxx_mode_set() argument
294 ch7xxx_writeb(dvo, CH7xxx_TCTL, 0x00); in ch7xxx_mode_set()
295 ch7xxx_writeb(dvo, CH7xxx_TVCO, tvco); in ch7xxx_mode_set()
296 ch7xxx_writeb(dvo, CH7xxx_TPCP, tpcp); in ch7xxx_mode_set()
297 ch7xxx_writeb(dvo, CH7xxx_TPD, tpd); in ch7xxx_mode_set()
298 ch7xxx_writeb(dvo, CH7xxx_TPVT, 0x30); in ch7xxx_mode_set()
299 ch7xxx_writeb(dvo, CH7xxx_TLPF, tlpf); in ch7xxx_mode_set()
300 ch7xxx_writeb(dvo, CH7xxx_TCT, 0x00); in ch7xxx_mode_set()
302 ch7xxx_readb(dvo, CH7xxx_IDF, &idf); in ch7xxx_mode_set()
311 ch7xxx_writeb(dvo, CH7xxx_IDF, idf); in ch7xxx_mode_set()
315 static void ch7xxx_dpms(struct intel_dvo_device *dvo, bool enable) in ch7xxx_dpms() argument
318 ch7xxx_writeb(dvo, CH7xxx_PM, CH7xxx_PM_DVIL | CH7xxx_PM_DVIP); in ch7xxx_dpms()
320 ch7xxx_writeb(dvo, CH7xxx_PM, CH7xxx_PM_FPD); in ch7xxx_dpms()
323 static bool ch7xxx_get_hw_state(struct intel_dvo_device *dvo) in ch7xxx_get_hw_state() argument
327 ch7xxx_readb(dvo, CH7xxx_PM, &val); in ch7xxx_get_hw_state()
335 static void ch7xxx_dump_regs(struct intel_dvo_device *dvo) in ch7xxx_dump_regs() argument
343 ch7xxx_readb(dvo, i, &val); in ch7xxx_dump_regs()
348 static void ch7xxx_destroy(struct intel_dvo_device *dvo) in ch7xxx_destroy() argument
350 struct ch7xxx_priv *ch7xxx = dvo->dev_priv; in ch7xxx_destroy()
354 dvo->dev_priv = NULL; in ch7xxx_destroy()