Lines Matching +full:0 +full:xc5000
29 } while (0)
41 return cx_read(bus->reg_stat) & 0x01; in i2c_slave_did_ack()
48 return cx_read(bus->reg_stat) & 0x02 ? 1 : 0; in i2c_is_busy()
55 for (count = 0; count < I2C_WAIT_RETRY; count++) { in i2c_wait_done()
62 return 0; in i2c_wait_done()
82 if (msg->len == 0) { in i2c_sendbytes()
90 dprintk(1, "%s() returns 0\n", __func__); in i2c_sendbytes()
91 return 0; in i2c_sendbytes()
96 addr = (msg->addr << 25) | msg->buf[0]; in i2c_sendbytes()
97 wdata = msg->buf[0]; in i2c_sendbytes()
112 printk(KERN_DEBUG " <W %02x %02x", msg->addr << 1, msg->buf[0]); in i2c_sendbytes()
161 if (msg->len == 0) { in i2c_readbytes()
170 dprintk(1, "%s() returns 0\n", __func__); in i2c_readbytes()
171 return 0; in i2c_readbytes()
181 for (cnt = 0; cnt < msg->len; cnt++) { in i2c_readbytes()
193 msg->buf[cnt] = cx_read(bus->reg_rdata) & 0xff; in i2c_readbytes()
212 int i, retval = 0; in i2c_xfer()
216 for (i = 0 ; i < num; i++) { in i2c_xfer()
217 dprintk(1, "%s(num = %d) addr = 0x%02x len = 0x%x\n", in i2c_xfer()
221 retval = i2c_readbytes(i2c_adap, &msgs[i], 0); in i2c_xfer()
227 if (retval < 0) in i2c_xfer()
233 retval = i2c_sendbytes(i2c_adap, &msgs[i], 0); in i2c_xfer()
235 if (retval < 0) in i2c_xfer()
267 [0x10 >> 1] = "tda10048",
268 [0x12 >> 1] = "dib7000pc",
269 [0x1c >> 1] = "lgdt3303",
270 [0x80 >> 1] = "cs3308",
271 [0x82 >> 1] = "cs3308",
272 [0x86 >> 1] = "tda9887",
273 [0x32 >> 1] = "cx24227",
274 [0x88 >> 1] = "cx25837",
275 [0x84 >> 1] = "tda8295",
276 [0x98 >> 1] = "flatiron",
277 [0xa0 >> 1] = "eeprom",
278 [0xc0 >> 1] = "tuner/mt2131/tda8275",
279 [0xc2 >> 1] = "tuner/mt2131/tda8275/xc5000/xc3028",
280 [0xc8 >> 1] = "tuner/xc3028L",
288 for (i = 0; i < 128; i++) { in do_i2c_scan()
290 rc = i2c_master_recv(c, &buf, 0); in do_i2c_scan()
291 if (rc < 0) in do_i2c_scan()
293 pr_info("%s: i2c scan: found device @ 0x%04x [%s]\n", in do_i2c_scan()
318 if (0 == bus->i2c_rc) { in cx23885_i2c_register()
330 if (0 == bus->i2c_rc) { in cx23885_i2c_register()
333 0x6b, I2C_CLIENT_END in cx23885_i2c_register()
336 memset(&info, 0, sizeof(struct i2c_board_info)); in cx23885_i2c_register()
350 return 0; in cx23885_i2c_unregister()
355 /* write 0 to bus 2 addr 0x144 via i2x_xfer() */ in cx23885_av_clk()
360 /* Register 0x144 */ in cx23885_av_clk()
361 buffer[0] = 0x01; in cx23885_av_clk()
362 buffer[1] = 0x44; in cx23885_av_clk()
364 buffer[2] = 0x05; in cx23885_av_clk()
366 buffer[2] = 0x00; in cx23885_av_clk()
368 msg.addr = 0x44; in cx23885_av_clk()