Lines Matching refs:addr
163 static int ivtv_i2c_new_ir(struct ivtv *itv, u32 hw, const char *type, u8 addr)
168 unsigned short addr_list[2] = { addr, I2C_CLIENT_END };
280 .addr = hw_addrs[idx],
533 static int ivtv_write(struct ivtv *itv, unsigned char addr, unsigned char *data, u32 len, int do_stop)
542 ret = ivtv_sendbyte(itv, addr<<1);
551 IVTV_DEBUG_I2C("i2c write to %x failed\n", addr);
556 static int ivtv_read(struct ivtv *itv, unsigned char addr, unsigned char *data, u32 len)
564 ret = ivtv_sendbyte(itv, (addr << 1) | 1);
571 IVTV_DEBUG_I2C("i2c read from %x failed\n", addr);
588 retval = ivtv_read(itv, msgs[i].addr, msgs[i].buf, msgs[i].len);
593 retval = ivtv_write(itv, msgs[i].addr, msgs[i].buf, msgs[i].len, stop);