Lines Matching +full:0 +full:xc5000

35 } while (0)
43 } while (0)
78 int status = 0; in cx231xx_i2c_send_bytes()
79 u16 size = 0; in cx231xx_i2c_send_bytes()
80 u8 loop = 0; in cx231xx_i2c_send_bytes()
83 u16 saddr = 0; in cx231xx_i2c_send_bytes()
84 u8 need_gpio = 0; in cx231xx_i2c_send_bytes()
91 * to XC5000. So ignore the request */ in cx231xx_i2c_send_bytes()
92 return 0; in cx231xx_i2c_send_bytes()
95 saddr = msg->buf[0] << 8 | msg->buf[1]; in cx231xx_i2c_send_bytes()
97 saddr = msg->buf[0]; in cx231xx_i2c_send_bytes()
100 case 0x0000: /* start tuner calibration mode */ in cx231xx_i2c_send_bytes()
105 case 0x000D: /* Set signal source */ in cx231xx_i2c_send_bytes()
106 case 0x0001: /* Set TV standard - Video */ in cx231xx_i2c_send_bytes()
107 case 0x0002: /* Set TV standard - Audio */ in cx231xx_i2c_send_bytes()
108 case 0x0003: /* Set RF Frequency */ in cx231xx_i2c_send_bytes()
119 "GPIO WRITE: addr 0x%x, len %d, saddr 0x%x\n", in cx231xx_i2c_send_bytes()
129 /* special case for Xc5000 tuner case */ in cx231xx_i2c_send_bytes()
141 req_data.saddr_dat = msg->buf[0]; in cx231xx_i2c_send_bytes()
145 bus->i2c_nostop = (size > 16) ? 1 : 0; in cx231xx_i2c_send_bytes()
146 bus->i2c_reserve = (loop == 0) ? 0 : 1; in cx231xx_i2c_send_bytes()
155 size = 0; in cx231xx_i2c_send_bytes()
157 } while (size > 0); in cx231xx_i2c_send_bytes()
159 bus->i2c_nostop = 0; in cx231xx_i2c_send_bytes()
160 bus->i2c_reserve = 0; in cx231xx_i2c_send_bytes()
167 req_data.saddr_len = 0; in cx231xx_i2c_send_bytes()
168 req_data.saddr_dat = 0; in cx231xx_i2c_send_bytes()
176 return status < 0 ? status : 0; in cx231xx_i2c_send_bytes()
189 int status = 0; in cx231xx_i2c_recv_bytes()
190 u16 saddr = 0; in cx231xx_i2c_recv_bytes()
191 u8 need_gpio = 0; in cx231xx_i2c_recv_bytes()
195 saddr = msg->buf[0] << 8 | msg->buf[1]; in cx231xx_i2c_recv_bytes()
197 saddr = msg->buf[0]; in cx231xx_i2c_recv_bytes()
202 case 0x0009: /* BUSY check */ in cx231xx_i2c_recv_bytes()
206 msg->buf[0] = 0; in cx231xx_i2c_recv_bytes()
208 msg->buf[1] = 0; in cx231xx_i2c_recv_bytes()
209 return 0; in cx231xx_i2c_recv_bytes()
210 case 0x0004: /* read Lock status */ in cx231xx_i2c_recv_bytes()
221 "GPIO R E A D: addr 0x%x, len %d, saddr 0x%x\n", in cx231xx_i2c_recv_bytes()
223 msg->buf[0] << 8 | msg->buf[1]); in cx231xx_i2c_recv_bytes()
241 req_data.saddr_dat = msg->buf[0] << 8 | msg->buf[1]; in cx231xx_i2c_recv_bytes()
253 req_data.saddr_len = 0; in cx231xx_i2c_recv_bytes()
254 req_data.saddr_dat = 0; in cx231xx_i2c_recv_bytes()
262 return status < 0 ? status : 0; in cx231xx_i2c_recv_bytes()
276 int status = 0; in cx231xx_i2c_recv_bytes_with_saddr()
277 u16 saddr = 0; in cx231xx_i2c_recv_bytes_with_saddr()
278 u8 need_gpio = 0; in cx231xx_i2c_recv_bytes_with_saddr()
281 saddr = msg1->buf[0] << 8 | msg1->buf[1]; in cx231xx_i2c_recv_bytes_with_saddr()
283 saddr = msg1->buf[0]; in cx231xx_i2c_recv_bytes_with_saddr()
289 "i2c_read: addr 0x%x, len %d, saddr 0x%x, len %d\n", in cx231xx_i2c_recv_bytes_with_saddr()
293 case 0x0008: /* read FW load status */ in cx231xx_i2c_recv_bytes_with_saddr()
296 case 0x0004: /* read Lock status */ in cx231xx_i2c_recv_bytes_with_saddr()
326 return status < 0 ? status : 0; in cx231xx_i2c_recv_bytes_with_saddr()
339 int status = 0; in cx231xx_i2c_check_for_device()
345 req_data.saddr_len = 0; in cx231xx_i2c_check_for_device()
346 req_data.saddr_dat = 0; in cx231xx_i2c_check_for_device()
353 return status < 0 ? status : 0; in cx231xx_i2c_check_for_device()
368 for (i = 0; i < num; i++) { in cx231xx_i2c_xfer()
372 dprintk2(2, "%s %s addr=0x%x len=%d:", in cx231xx_i2c_xfer()
378 if (rc < 0) { in cx231xx_i2c_xfer()
388 for (byte = 0; byte < msgs[i].len; byte++) in cx231xx_i2c_xfer()
396 for (byte = 0; byte < msgs[i].len; byte++) in cx231xx_i2c_xfer()
401 dprintk2(2, "plus %s %s addr=0x%x len=%d:", in cx231xx_i2c_xfer()
408 for (byte = 0; byte < msgs[i+1].len; byte++) in cx231xx_i2c_xfer()
415 for (byte = 0; byte < msgs[i].len; byte++) in cx231xx_i2c_xfer()
420 if (rc < 0) in cx231xx_i2c_xfer()
461 [0x20 >> 1] = "demod",
462 [0x60 >> 1] = "colibri",
463 [0x88 >> 1] = "hammerhead",
464 [0x8e >> 1] = "CIR",
465 [0x32 >> 1] = "GeminiIII",
466 [0x02 >> 1] = "Aquarius",
467 [0xa0 >> 1] = "eeprom",
468 [0xc0 >> 1] = "tuner",
469 [0xc2 >> 1] = "tuner",
494 for (i = 0; i < 128; i++) { in cx231xx_do_i2c_scan()
498 if (rc < 0) in cx231xx_do_i2c_scan()
501 "i2c scan: found device @ port %d addr 0x%x [%s]\n", in cx231xx_do_i2c_scan()
530 if (0 != bus->i2c_rc) in cx231xx_i2c_register()
560 dev->muxc = i2c_mux_alloc(&dev->i2c_bus[1].i2c_adap, dev->dev, 2, 0, 0, in cx231xx_i2c_mux_create()
565 return 0; in cx231xx_i2c_mux_create()
570 return i2c_mux_add_adapter(dev->muxc, 0, mux_no); in cx231xx_i2c_mux_register()
582 return &dev->i2c_bus[0].i2c_adap; in cx231xx_get_i2c_adap()
588 return dev->muxc->adapter[0]; in cx231xx_get_i2c_adap()