Lines Matching refs:channel
42 u8 channel:2; member
118 static int write_reg(struct i2c_client *client, u8 reg, u8 value, u8 channel) in write_reg() argument
120 return i2c_smbus_write_byte_data(client, reg | (channel << 6), value); in write_reg()
123 static int write_regs(struct i2c_client *client, const u8 *regs, u8 channel) in write_regs() argument
130 regs[i] | (channel << 6), regs[i + 1]); in write_regs()
137 static int read_reg(struct i2c_client *client, u8 reg, u8 channel) in read_reg() argument
139 return i2c_smbus_read_byte_data(client, (reg) | (channel << 6)); in read_reg()
158 v4l2_info(sd, "Channel: %d\n", state->channel); in tw2804_log_status()
211 reg = read_reg(client, addr, state->channel); in tw2804_s_ctrl()
218 return write_reg(client, addr, reg, state->channel); in tw2804_s_ctrl()
222 reg = read_reg(client, addr, state->channel); in tw2804_s_ctrl()
226 return write_reg(client, addr, reg, state->channel); in tw2804_s_ctrl()
242 ctrl->val, state->channel); in tw2804_s_ctrl()
246 ctrl->val, state->channel); in tw2804_s_ctrl()
250 ctrl->val, state->channel); in tw2804_s_ctrl()
254 ctrl->val, state->channel); in tw2804_s_ctrl()
281 write_regs(client, regs, dec->channel); in tw2804_s_std()
293 if (config && config - 1 != dec->channel) { in tw2804_s_video_routing()
299 dec->channel = config - 1; in tw2804_s_video_routing()
301 dec->channel); in tw2804_s_video_routing()
302 if (dec->channel == 0 && in tw2804_s_video_routing()
308 if (write_regs(client, channel_registers, dec->channel) < 0) { in tw2804_s_video_routing()
311 dec->channel); in tw2804_s_video_routing()
322 reg = read_reg(client, 0x22, dec->channel); in tw2804_s_video_routing()
329 reg = write_reg(client, 0x22, reg, dec->channel); in tw2804_s_video_routing()
375 state->channel = -1; in tw2804_probe()