Lines Matching +full:0 +full:xc5000

30 		AU0828_I2C_STATUS_NO_READ_ACK ? 0 : 1;  in i2c_slave_did_read_ack()
37 for (count = 0; count < I2C_WAIT_RETRY; count++) { in i2c_wait_read_ack()
44 return 0; in i2c_wait_read_ack()
53 AU0828_I2C_STATUS_READ_DONE ? 0 : 1; in i2c_is_read_busy()
60 for (count = 0; count < I2C_WAIT_RETRY; count++) { in i2c_wait_read_done()
67 return 0; in i2c_wait_read_done()
76 AU0828_I2C_STATUS_WRITE_DONE ? 1 : 0; in i2c_is_write_done()
83 for (count = 0; count < I2C_WAIT_RETRY; count++) { in i2c_wait_write_done()
90 return 0; in i2c_wait_write_done()
99 AU0828_I2C_STATUS_BUSY ? 1 : 0; in i2c_is_busy()
106 for (count = 0; count < I2C_WAIT_RETRY; count++) { in i2c_wait_done()
113 return 0; in i2c_wait_done()
122 int i, strobe = 0; in i2c_sendbytes()
128 au0828_write(dev, AU0828_I2C_MULTIBYTE_MODE_2FF, 0x01); in i2c_sendbytes()
135 * on xc5000 for commands. However, firmware transfer can in i2c_sendbytes()
152 if (msg->len == 0) { in i2c_sendbytes()
168 return 0; in i2c_sendbytes()
171 for (i = 0; i < msg->len;) { in i2c_sendbytes()
192 strobe = 0; in i2c_sendbytes()
218 au0828_write(dev, AU0828_I2C_MULTIBYTE_MODE_2FF, 0x01); in i2c_readbytes()
222 * readings from xc5000, as otherwise they'll fail. in i2c_readbytes()
238 if (msg->len == 0) { in i2c_readbytes()
244 return 0; in i2c_readbytes()
247 for (i = 0; i < msg->len;) { in i2c_readbytes()
263 0xff; in i2c_readbytes()
278 int i, retval = 0; in i2c_xfer()
282 for (i = 0; i < num; i++) { in i2c_xfer()
283 dprintk(4, "%s(num = %d) addr = 0x%02x len = 0x%x\n", in i2c_xfer()
287 retval = i2c_readbytes(i2c_adap, &msgs[i], 0); in i2c_xfer()
293 if (retval < 0) in i2c_xfer()
299 retval = i2c_sendbytes(i2c_adap, &msgs[i], 0); in i2c_xfer()
301 if (retval < 0) in i2c_xfer()
333 [0x8e >> 1] = "au8522",
334 [0xa0 >> 1] = "eeprom",
335 [0xc2 >> 1] = "tuner/xc5000",
343 for (i = 0; i < 128; i++) { in do_i2c_scan()
345 rc = i2c_master_recv(c, &buf, 0); in do_i2c_scan()
346 if (rc < 0) in do_i2c_scan()
348 pr_info("%s: i2c scan: found device @ 0x%x [%s]\n", in do_i2c_scan()
378 if (0 == dev->i2c_rc) { in au0828_i2c_register()
391 return 0; in au0828_i2c_unregister()