Lines Matching refs:ch
147 static bool ns2501_readb(struct intel_dvo_device *dvo, int addr, uint8_t * ch)
173 *ch = in_buf[0];
192 static bool ns2501_writeb(struct intel_dvo_device *dvo, int addr, uint8_t ch)
206 out_buf[1] = ch;
231 unsigned char ch;
241 if (!ns2501_readb(dvo, NS2501_VID_LO, &ch))
244 if (ch != (NS2501_VID & 0xff)) {
246 ch, adapter->name, dvo->slave_addr);
250 if (!ns2501_readb(dvo, NS2501_DID_LO, &ch))
253 if (ch != (NS2501_DID & 0xff)) {
255 ch, adapter->name, dvo->slave_addr);
506 unsigned char ch;
508 if (!ns2501_readb(dvo, NS2501_REG8, &ch))
511 if (ch & NS2501_8_PD)
523 unsigned char ch;
528 ch = ns->reg_8_shadow;
531 ch |= NS2501_8_PD;
533 ch &= ~NS2501_8_PD;
535 if (ns->reg_8_set == 0 || ns->reg_8_shadow != ch) {
537 ns->reg_8_shadow = ch;
541 ok &= ns2501_writeb(dvo, NS2501_REG8, ch);