/linux/drivers/media/usb/gspca/m5602/ |
A D | m5602_po1030.c | 410 u8 i2c_data; in po1030_set_exposure() local 436 u8 i2c_data; in po1030_set_gain() local 449 u8 i2c_data; in po1030_set_hvflip() local 458 i2c_data = (0x3f & i2c_data) | (sd->hflip->val << 7) | in po1030_set_hvflip() 470 u8 i2c_data; in po1030_set_red_balance() local 483 u8 i2c_data; in po1030_set_blue_balance() local 497 u8 i2c_data; in po1030_set_green_balance() local 516 u8 i2c_data; in po1030_set_auto_white_balance() local 524 i2c_data = (i2c_data & 0xfe) | (val & 0x01); in po1030_set_auto_white_balance() 533 u8 i2c_data; in po1030_set_auto_exposure() local [all …]
|
A D | m5602_ov9650.c | 554 u8 i2c_data; in ov9650_set_exposure() local 582 u8 i2c_data; in ov9650_set_gain() local 610 u8 i2c_data; in ov9650_set_red_balance() local 623 u8 i2c_data; in ov9650_set_blue_balance() local 636 u8 i2c_data; in ov9650_set_hvflip() local 662 u8 i2c_data; in ov9650_set_auto_exposure() local 672 i2c_data = ((i2c_data & 0xfe) | ((val & 0x01) << 0)); in ov9650_set_auto_exposure() 681 u8 i2c_data; in ov9650_set_auto_white_balance() local 690 i2c_data = ((i2c_data & 0xfd) | ((val & 0x01) << 1)); in ov9650_set_auto_white_balance() 699 u8 i2c_data; in ov9650_set_auto_gain() local [all …]
|
A D | m5602_ov7660.c | 326 u8 i2c_data = val; in ov7660_set_gain() local 339 u8 i2c_data; in ov7660_set_auto_white_balance() local 344 err = m5602_read_sensor(sd, OV7660_COM8, &i2c_data, 1); in ov7660_set_auto_white_balance() 348 i2c_data = ((i2c_data & 0xfd) | ((val & 0x01) << 1)); in ov7660_set_auto_white_balance() 357 u8 i2c_data; in ov7660_set_auto_gain() local 362 err = m5602_read_sensor(sd, OV7660_COM8, &i2c_data, 1); in ov7660_set_auto_gain() 366 i2c_data = ((i2c_data & 0xfb) | ((val & 0x01) << 2)); in ov7660_set_auto_gain() 375 u8 i2c_data; in ov7660_set_auto_exposure() local 380 err = m5602_read_sensor(sd, OV7660_COM8, &i2c_data, 1); in ov7660_set_auto_exposure() 385 i2c_data = ((i2c_data & 0xfe) | ((val & 0x01) << 0)); in ov7660_set_auto_exposure() [all …]
|
A D | m5602_core.c | 52 int m5602_read_bridge(struct sd *sd, const u8 address, u8 *i2c_data) in m5602_read_bridge() argument 63 *i2c_data = buf[0]; in m5602_read_bridge() 66 address, *i2c_data); in m5602_read_bridge() 82 address, i2c_data); in m5602_write_bridge() 87 buf[3] = i2c_data; in m5602_write_bridge() 111 u8 *i2c_data, const u8 len) in m5602_read_sensor() argument 151 err = m5602_read_bridge(sd, M5602_XB_I2C_DATA, &(i2c_data[i])); in m5602_read_sensor() 154 address, *i2c_data); in m5602_read_sensor() 160 u8 *i2c_data, const u8 len) in m5602_write_sensor() argument 184 p[3] = i2c_data[i]; in m5602_write_sensor() [all …]
|
A D | m5602_bridge.h | 150 struct sd *sd, const u8 address, u8 *i2c_data); 153 struct sd *sd, const u8 address, const u8 i2c_data); 156 u8 *i2c_data, const u8 len); 159 u8 *i2c_data, const u8 len);
|
/linux/drivers/media/tuners/ |
A D | qt1010.c | 221 qt1010_i2c_oper_t i2c_data[] = { in qt1010_init_meas1() local 229 i2c_data[i].val); in qt1010_init_meas1() 256 qt1010_i2c_oper_t i2c_data[] = { in qt1010_init_meas2() local 269 i2c_data[i].val); in qt1010_init_meas2() 328 switch (i2c_data[i].oper) { in qt1010_init() 331 i2c_data[i].val); in qt1010_init() 334 if (i2c_data[i].val == 0x20) in qt1010_init() 341 if (i2c_data[i].val == 0x25) in qt1010_init() 343 else if (i2c_data[i].val == 0x1f) in qt1010_init() 351 i2c_data[i].reg, in qt1010_init() [all …]
|
A D | xc5000.c | 317 static int xc_write_reg(struct xc5000_priv *priv, u16 reg_addr, u16 i2c_data) in xc_write_reg() argument 325 buf[2] = (i2c_data >> 8) & 0xFF; in xc_write_reg() 326 buf[3] = i2c_data & 0xFF; in xc_write_reg()
|
/linux/drivers/media/usb/gspca/stv06xx/ |
A D | stv06xx_vv6410.c | 185 u16 i2c_data; in vv6410_set_hflip() local 188 err = stv06xx_read_sensor(sd, VV6410_DATAFORMAT, &i2c_data); in vv6410_set_hflip() 193 i2c_data |= VV6410_HFLIP; in vv6410_set_hflip() 195 i2c_data &= ~VV6410_HFLIP; in vv6410_set_hflip() 198 err = stv06xx_write_sensor(sd, VV6410_DATAFORMAT, i2c_data); in vv6410_set_hflip() 206 u16 i2c_data; in vv6410_set_vflip() local 209 err = stv06xx_read_sensor(sd, VV6410_DATAFORMAT, &i2c_data); in vv6410_set_vflip() 214 i2c_data |= VV6410_VFLIP; in vv6410_set_vflip() 216 i2c_data &= ~VV6410_VFLIP; in vv6410_set_vflip() 219 err = stv06xx_write_sensor(sd, VV6410_DATAFORMAT, i2c_data); in vv6410_set_vflip()
|
A D | stv06xx.c | 29 int stv06xx_write_bridge(struct sd *sd, u16 address, u16 i2c_data) in stv06xx_write_bridge() argument 36 u8 len = (i2c_data > 0xff) ? 2 : 1; in stv06xx_write_bridge() 38 buf[0] = i2c_data & 0xff; in stv06xx_write_bridge() 39 buf[1] = (i2c_data >> 8) & 0xff; in stv06xx_write_bridge() 46 i2c_data, address, err); in stv06xx_write_bridge() 51 int stv06xx_read_bridge(struct sd *sd, u16 address, u8 *i2c_data) in stv06xx_read_bridge() argument 62 *i2c_data = buf[0]; in stv06xx_read_bridge() 65 *i2c_data, address, err); in stv06xx_read_bridge()
|
A D | stv06xx_sensor.h | 58 u8 *i2c_data, const u8 len); 62 u8 *i2c_data, const u8 len);
|
A D | stv06xx.h | 94 int stv06xx_write_bridge(struct sd *sd, u16 address, u16 i2c_data); 95 int stv06xx_read_bridge(struct sd *sd, u16 address, u8 *i2c_data);
|
/linux/arch/arm/mach-omap2/ |
A D | vc.c | 670 const struct i2c_init_data *i2c_data; in omap4_vc_i2c_timing_init() local 687 i2c_data = omap4_i2c_timing_data; in omap4_vc_i2c_timing_init() 689 while (i2c_data->load > capacitance) in omap4_vc_i2c_timing_init() 690 i2c_data++; in omap4_vc_i2c_timing_init() 695 hsscll = i2c_data->hsscll_38_4; in omap4_vc_i2c_timing_init() 698 hsscll = i2c_data->hsscll_26; in omap4_vc_i2c_timing_init() 701 hsscll = i2c_data->hsscll_19_2; in omap4_vc_i2c_timing_init() 704 hsscll = i2c_data->hsscll_16_8; in omap4_vc_i2c_timing_init() 707 hsscll = i2c_data->hsscll_12; in omap4_vc_i2c_timing_init() 716 val = i2c_data->loadbits << 25 | i2c_data->loadbits << 29; in omap4_vc_i2c_timing_init()
|
/linux/drivers/misc/ |
A D | hmc6352.c | 67 unsigned char i2c_data[2]; in compass_heading_data_show() local 77 ret = i2c_master_recv(client, i2c_data, 2); in compass_heading_data_show() 83 ret = (i2c_data[0] << 8) | i2c_data[1]; in compass_heading_data_show()
|
/linux/drivers/rtc/ |
A D | rtc-m41t80.c | 619 unsigned char i2c_data[2]; in wdt_ping() local 625 .buf = i2c_data, in wdt_ping() 630 i2c_data[0] = 0x09; /* watchdog register */ in wdt_ping() 638 i2c_data[1] = wdt_margin << 2 | 0x82; in wdt_ping() 645 i2c_data[1] &= ~M41T80_WATCHDOG_RB2; in wdt_ping() 655 unsigned char i2c_data[2], i2c_buf[0x10]; in wdt_disable() local 661 .buf = i2c_data, in wdt_disable() 675 .buf = i2c_data, in wdt_disable() 679 i2c_data[0] = 0x09; in wdt_disable() 682 i2c_data[0] = 0x09; in wdt_disable() [all …]
|
/linux/drivers/hwmon/ |
A D | max127.c | 75 u8 i2c_data[MAX127_DATA_LEN]; in max127_read_channel() local 79 .len = sizeof(i2c_data), in max127_read_channel() 80 .buf = i2c_data, in max127_read_channel() 89 *val = (i2c_data[1] >> MAX127_DATA_SHIFT) | in max127_read_channel() 90 ((u16)i2c_data[0] << MAX127_DATA_SHIFT); in max127_read_channel()
|
/linux/drivers/input/touchscreen/ |
A D | cy8ctmg110_ts.c | 66 unsigned char i2c_data[6]; in cy8ctmg110_write_regs() local 70 i2c_data[0] = reg; in cy8ctmg110_write_regs() 71 memcpy(i2c_data + 1, value, len); in cy8ctmg110_write_regs() 73 ret = i2c_master_send(client, i2c_data, len + 1); in cy8ctmg110_write_regs()
|
/linux/drivers/gpu/drm/radeon/ |
A D | radeon_i2c.c | 330 u32 i2c_cntl_0, i2c_cntl_1, i2c_data; in r100_hw_i2c_xfer() local 353 i2c_data = RADEON_I2C_DATA; in r100_hw_i2c_xfer() 357 i2c_data = RADEON_DVI_I2C_DATA; in r100_hw_i2c_xfer() 465 WREG32(i2c_data, (p->addr << 1) & 0xff); in r100_hw_i2c_xfer() 466 WREG32(i2c_data, 0); in r100_hw_i2c_xfer() 498 WREG32(i2c_data, ((p->addr << 1) & 0xff) | 0x1); in r100_hw_i2c_xfer() 519 p->buf[j] = RREG32(i2c_data) & 0xff; in r100_hw_i2c_xfer() 525 WREG32(i2c_data, (p->addr << 1) & 0xff); in r100_hw_i2c_xfer() 526 WREG32(i2c_data, p->buf[j]); in r100_hw_i2c_xfer()
|
/linux/drivers/media/pci/cobalt/ |
A D | cobalt-i2c.c | 349 cobalt->i2c_data[i].cobalt = cobalt; in cobalt_i2c_init() 350 cobalt->i2c_data[i].regs = regs; in cobalt_i2c_init() 353 adap->algo_data = &cobalt->i2c_data[i]; in cobalt_i2c_init()
|
A D | cobalt-driver.h | 265 struct cobalt_i2c_data i2c_data[COBALT_NUM_ADAPTERS]; member
|
/linux/sound/pci/ctxfi/ |
A D | cthw20k1.c | 1586 u32 i2c_data; in adc_input_select_SBx() local 1602 i2c_data = 0x1; /* Mic-in */ in adc_input_select_SBx() 1607 i2c_data = 0x2; /* Line-in */ in adc_input_select_SBx() 1611 i2c_data = 0x0; /* set to Digital */ in adc_input_select_SBx() 1618 i2c_write(hw, 0x001a0080, 0x2a, i2c_data); in adc_input_select_SBx() 1636 u32 i2c_data; in adc_input_select_hendrix() local 1652 i2c_data = 0x1; /* Mic-in */ in adc_input_select_hendrix() 1656 i2c_data = 0x2; /* Line-in */ in adc_input_select_hendrix() 1663 i2c_write(hw, 0x001a0080, 0x2a, i2c_data); in adc_input_select_hendrix()
|
/linux/drivers/gpu/drm/amd/display/dc/dce/ |
A D | dce_i2c_hw.c | 122 uint32_t i2c_data; in process_channel_reply() local 124 REG_GET(DC_I2C_DATA, DC_I2C_DATA, &i2c_data); in process_channel_reply() 125 *buffer++ = i2c_data; in process_channel_reply()
|
/linux/drivers/char/ipmi/ |
A D | ipmi_ssif.c | 266 unsigned char *i2c_data; member 493 ssif_info->i2c_data[0], in ipmi_ssif_thread() 494 ssif_info->i2c_data + 1); in ipmi_ssif_thread() 499 ssif_info->i2c_data); in ipmi_ssif_thread() 505 ssif_info->i2c_data, in ipmi_ssif_thread() 522 ssif_info->i2c_data = data; in ssif_i2c_send()
|
/linux/drivers/net/ethernet/sfc/falcon/ |
A D | nic.h | 177 struct i2c_algo_bit_data i2c_data; member
|
A D | falcon.c | 2386 board->i2c_data = falcon_i2c_bit_operations; in falcon_probe_nic() 2387 board->i2c_data.data = efx; in falcon_probe_nic() 2388 board->i2c_adap.algo_data = &board->i2c_data; in falcon_probe_nic()
|
/linux/drivers/comedi/drivers/ |
A D | cb_pcidas64.c | 1836 u8 i2c_data = devpriv->i2c_cal_range_bits; in ai_rinsn() local 1838 i2c_write(dev, RANGE_CAL_I2C_ADDR, &i2c_data, in ai_rinsn() 1839 sizeof(i2c_data)); in ai_rinsn() 2516 u8 i2c_data = devpriv->i2c_cal_range_bits; in setup_channel_queue() local 2518 i2c_write(dev, RANGE_CAL_I2C_ADDR, &i2c_data, in setup_channel_queue() 2519 sizeof(i2c_data)); in setup_channel_queue()
|