• Home
  • Raw
  • Download

Lines Matching refs:dvo

112 static bool ch7xxx_readb(struct intel_dvo_device *dvo, int addr, uint8_t *ch)  in ch7xxx_readb()  argument
114 struct ch7xxx_priv *ch7xxx = dvo->dev_priv; in ch7xxx_readb()
115 struct i2c_adapter *adapter = dvo->i2c_bus; in ch7xxx_readb()
121 .addr = dvo->slave_addr, in ch7xxx_readb()
127 .addr = dvo->slave_addr, in ch7xxx_readb()
144 addr, adapter->name, dvo->slave_addr); in ch7xxx_readb()
150 static bool ch7xxx_writeb(struct intel_dvo_device *dvo, int addr, uint8_t ch) in ch7xxx_writeb() argument
152 struct ch7xxx_priv *ch7xxx = dvo->dev_priv; in ch7xxx_writeb()
153 struct i2c_adapter *adapter = dvo->i2c_bus; in ch7xxx_writeb()
156 .addr = dvo->slave_addr, in ch7xxx_writeb()
170 addr, adapter->name, dvo->slave_addr); in ch7xxx_writeb()
176 static bool ch7xxx_init(struct intel_dvo_device *dvo, in ch7xxx_init() argument
188 dvo->i2c_bus = adapter; in ch7xxx_init()
189 dvo->dev_priv = ch7xxx; in ch7xxx_init()
192 if (!ch7xxx_readb(dvo, CH7xxx_REG_VID, &vendor)) in ch7xxx_init()
199 vendor, adapter->name, dvo->slave_addr); in ch7xxx_init()
204 if (!ch7xxx_readb(dvo, CH7xxx_REG_DID, &device)) in ch7xxx_init()
210 vendor, adapter->name, dvo->slave_addr); in ch7xxx_init()
223 static enum drm_connector_status ch7xxx_detect(struct intel_dvo_device *dvo) in ch7xxx_detect() argument
227 ch7xxx_readb(dvo, CH7xxx_PM, &orig_pm); in ch7xxx_detect()
233 ch7xxx_writeb(dvo, CH7xxx_PM, pm); in ch7xxx_detect()
235 ch7xxx_readb(dvo, CH7xxx_CONNECTION_DETECT, &cdet); in ch7xxx_detect()
237 ch7xxx_writeb(dvo, CH7xxx_PM, orig_pm); in ch7xxx_detect()
244 static enum drm_mode_status ch7xxx_mode_valid(struct intel_dvo_device *dvo, in ch7xxx_mode_valid() argument
253 static void ch7xxx_mode_set(struct intel_dvo_device *dvo, in ch7xxx_mode_set() argument
271 ch7xxx_writeb(dvo, CH7xxx_TCTL, 0x00); in ch7xxx_mode_set()
272 ch7xxx_writeb(dvo, CH7xxx_TVCO, tvco); in ch7xxx_mode_set()
273 ch7xxx_writeb(dvo, CH7xxx_TPCP, tpcp); in ch7xxx_mode_set()
274 ch7xxx_writeb(dvo, CH7xxx_TPD, tpd); in ch7xxx_mode_set()
275 ch7xxx_writeb(dvo, CH7xxx_TPVT, 0x30); in ch7xxx_mode_set()
276 ch7xxx_writeb(dvo, CH7xxx_TLPF, tlpf); in ch7xxx_mode_set()
277 ch7xxx_writeb(dvo, CH7xxx_TCT, 0x00); in ch7xxx_mode_set()
279 ch7xxx_readb(dvo, CH7xxx_IDF, &idf); in ch7xxx_mode_set()
288 ch7xxx_writeb(dvo, CH7xxx_IDF, idf); in ch7xxx_mode_set()
292 static void ch7xxx_dpms(struct intel_dvo_device *dvo, bool enable) in ch7xxx_dpms() argument
295 ch7xxx_writeb(dvo, CH7xxx_PM, CH7xxx_PM_DVIL | CH7xxx_PM_DVIP); in ch7xxx_dpms()
297 ch7xxx_writeb(dvo, CH7xxx_PM, CH7xxx_PM_FPD); in ch7xxx_dpms()
300 static bool ch7xxx_get_hw_state(struct intel_dvo_device *dvo) in ch7xxx_get_hw_state() argument
304 ch7xxx_readb(dvo, CH7xxx_PM, &val); in ch7xxx_get_hw_state()
312 static void ch7xxx_dump_regs(struct intel_dvo_device *dvo) in ch7xxx_dump_regs() argument
320 ch7xxx_readb(dvo, i, &val); in ch7xxx_dump_regs()
325 static void ch7xxx_destroy(struct intel_dvo_device *dvo) in ch7xxx_destroy() argument
327 struct ch7xxx_priv *ch7xxx = dvo->dev_priv; in ch7xxx_destroy()
331 dvo->dev_priv = NULL; in ch7xxx_destroy()