/linux-3.4.99/drivers/media/video/gspca/m5602/ |
D | m5602_po1030.c | 465 u8 i2c_data; in po1030_set_exposure() local 471 i2c_data = ((val & 0xff00) >> 8); in po1030_set_exposure() 473 i2c_data); in po1030_set_exposure() 476 &i2c_data, 1); in po1030_set_exposure() 480 i2c_data = (val & 0xff); in po1030_set_exposure() 482 i2c_data); in po1030_set_exposure() 484 &i2c_data, 1); in po1030_set_exposure() 503 u8 i2c_data; in po1030_set_gain() local 508 i2c_data = val & 0xff; in po1030_set_gain() 509 PDEBUG(D_V4L2, "Set global gain to %d", i2c_data); in po1030_set_gain() [all …]
|
D | m5602_ov9650.c | 573 u8 i2c_data; in ov9650_set_exposure() local 580 i2c_data = (val >> 10) & 0x3f; in ov9650_set_exposure() 582 &i2c_data, 1); in ov9650_set_exposure() 587 i2c_data = (val >> 2) & 0xff; in ov9650_set_exposure() 589 &i2c_data, 1); in ov9650_set_exposure() 594 i2c_data = val & 0x03; in ov9650_set_exposure() 595 err = m5602_write_sensor(sd, OV9650_COM1, &i2c_data, 1); in ov9650_set_exposure() 612 u8 i2c_data; in ov9650_set_gain() local 623 err = m5602_read_sensor(sd, OV9650_VREF, &i2c_data, 1); in ov9650_set_gain() 628 i2c_data = ((val & 0x0300) >> 2) | in ov9650_set_gain() [all …]
|
D | m5602_ov7660.c | 294 u8 i2c_data; in ov7660_set_gain() local 302 err = m5602_write_sensor(sd, OV7660_GAIN, &i2c_data, 1); in ov7660_set_gain() 321 u8 i2c_data; in ov7660_set_auto_white_balance() local 328 err = m5602_read_sensor(sd, OV7660_COM8, &i2c_data, 1); in ov7660_set_auto_white_balance() 332 i2c_data = ((i2c_data & 0xfd) | ((val & 0x01) << 1)); in ov7660_set_auto_white_balance() 333 err = m5602_write_sensor(sd, OV7660_COM8, &i2c_data, 1); in ov7660_set_auto_white_balance() 351 u8 i2c_data; in ov7660_set_auto_gain() local 358 err = m5602_read_sensor(sd, OV7660_COM8, &i2c_data, 1); in ov7660_set_auto_gain() 362 i2c_data = ((i2c_data & 0xfb) | ((val & 0x01) << 2)); in ov7660_set_auto_gain() 364 return m5602_write_sensor(sd, OV7660_COM8, &i2c_data, 1); in ov7660_set_auto_gain() [all …]
|
D | m5602_core.c | 41 int m5602_read_bridge(struct sd *sd, const u8 address, u8 *i2c_data) in m5602_read_bridge() argument 51 *i2c_data = buf[0]; in m5602_read_bridge() 54 address, *i2c_data); in m5602_read_bridge() 62 int m5602_write_bridge(struct sd *sd, const u8 address, const u8 i2c_data) in m5602_write_bridge() argument 69 address, i2c_data); in m5602_write_bridge() 74 buf[3] = i2c_data; in m5602_write_bridge() 98 u8 *i2c_data, const u8 len) in m5602_read_sensor() argument 137 err = m5602_read_bridge(sd, M5602_XB_I2C_DATA, &(i2c_data[i])); in m5602_read_sensor() 140 "0x%x containing 0x%x ", address, *i2c_data); in m5602_read_sensor() 146 u8 *i2c_data, const u8 len) in m5602_write_sensor() argument [all …]
|
D | m5602_bridge.h | 152 struct sd *sd, const u8 address, u8 *i2c_data); 155 struct sd *sd, const u8 address, const u8 i2c_data); 158 u8 *i2c_data, const u8 len); 161 u8 *i2c_data, const u8 len);
|
/linux-3.4.99/drivers/media/common/tuners/ |
D | qt1010.c | 263 qt1010_i2c_oper_t i2c_data[] = { in qt1010_init_meas1() local 270 for (i = 0; i < ARRAY_SIZE(i2c_data); i++) { in qt1010_init_meas1() 271 if (i2c_data[i].oper == QT1010_WR) { in qt1010_init_meas1() 272 err = qt1010_writereg(priv, i2c_data[i].reg, in qt1010_init_meas1() 273 i2c_data[i].val); in qt1010_init_meas1() 275 err = qt1010_readreg(priv, i2c_data[i].reg, &val2); in qt1010_init_meas1() 296 qt1010_i2c_oper_t i2c_data[] = { in qt1010_init_meas2() local 305 for (i = 0; i < ARRAY_SIZE(i2c_data); i++) { in qt1010_init_meas2() 306 if (i2c_data[i].oper == QT1010_WR) { in qt1010_init_meas2() 307 err = qt1010_writereg(priv, i2c_data[i].reg, in qt1010_init_meas2() [all …]
|
/linux-3.4.99/arch/cris/arch-v10/drivers/ |
D | i2c.c | 75 #define i2c_data(x) \ macro 104 #define i2c_data(x) \ macro 133 i2c_data(I2C_DATA_HIGH); in i2c_start() 139 i2c_data(I2C_DATA_LOW); in i2c_start() 159 i2c_data(I2C_DATA_LOW); in i2c_stop() 169 i2c_data(I2C_DATA_HIGH); in i2c_stop() 186 i2c_data(I2C_DATA_HIGH); in i2c_outbyte() 188 i2c_data(I2C_DATA_LOW); in i2c_outbyte() 198 i2c_data(I2C_DATA_LOW); in i2c_outbyte() 278 i2c_data(I2C_DATA_HIGH); in i2c_getack() [all …]
|
/linux-3.4.99/arch/cris/arch-v32/drivers/ |
D | i2c.c | 74 #define i2c_data(x) crisv32_io_set(&cris_i2c_data, x) macro 102 i2c_data(I2C_DATA_HIGH); in i2c_start() 108 i2c_data(I2C_DATA_LOW); in i2c_start() 128 i2c_data(I2C_DATA_LOW); in i2c_stop() 138 i2c_data(I2C_DATA_HIGH); in i2c_stop() 155 i2c_data(I2C_DATA_HIGH); in i2c_outbyte() 157 i2c_data(I2C_DATA_LOW); in i2c_outbyte() 167 i2c_data(I2C_DATA_LOW); in i2c_outbyte() 247 i2c_data(I2C_DATA_HIGH); in i2c_getack() 263 i2c_data(1); in i2c_getack() [all …]
|
/linux-3.4.99/drivers/media/video/gspca/stv06xx/ |
D | stv06xx_vv6410.c | 250 u16 i2c_data; in vv6410_set_hflip() local 255 err = stv06xx_read_sensor(sd, VV6410_DATAFORMAT, &i2c_data); in vv6410_set_hflip() 260 i2c_data |= VV6410_HFLIP; in vv6410_set_hflip() 262 i2c_data &= ~VV6410_HFLIP; in vv6410_set_hflip() 265 err = stv06xx_write_sensor(sd, VV6410_DATAFORMAT, i2c_data); in vv6410_set_hflip() 284 u16 i2c_data; in vv6410_set_vflip() local 289 err = stv06xx_read_sensor(sd, VV6410_DATAFORMAT, &i2c_data); in vv6410_set_vflip() 294 i2c_data |= VV6410_VFLIP; in vv6410_set_vflip() 296 i2c_data &= ~VV6410_VFLIP; in vv6410_set_vflip() 299 err = stv06xx_write_sensor(sd, VV6410_DATAFORMAT, i2c_data); in vv6410_set_vflip()
|
D | stv06xx_sensor.h | 71 u8 *i2c_data, const u8 len); 75 u8 *i2c_data, const u8 len);
|
D | stv06xx.c | 42 int stv06xx_write_bridge(struct sd *sd, u16 address, u16 i2c_data) in stv06xx_write_bridge() argument 47 u8 len = (i2c_data > 0xff) ? 2 : 1; in stv06xx_write_bridge() 49 buf[0] = i2c_data & 0xff; in stv06xx_write_bridge() 50 buf[1] = (i2c_data >> 8) & 0xff; in stv06xx_write_bridge() 57 i2c_data, address, err); in stv06xx_write_bridge() 62 int stv06xx_read_bridge(struct sd *sd, u16 address, u8 *i2c_data) in stv06xx_read_bridge() argument 72 *i2c_data = buf[0]; in stv06xx_read_bridge() 75 *i2c_data, address, err); in stv06xx_read_bridge()
|
D | stv06xx.h | 110 int stv06xx_write_bridge(struct sd *sd, u16 address, u16 i2c_data); 111 int stv06xx_read_bridge(struct sd *sd, u16 address, u8 *i2c_data);
|
/linux-3.4.99/arch/arm/mach-imx/ |
D | mach-mx50_rdp.c | 186 static const struct imxi2c_platform_data i2c_data __initconst = { 204 imx50_add_imx_i2c(0, &i2c_data); in mx50_rdp_board_init() 205 imx50_add_imx_i2c(1, &i2c_data); in mx50_rdp_board_init() 206 imx50_add_imx_i2c(2, &i2c_data); in mx50_rdp_board_init()
|
/linux-3.4.99/drivers/misc/ |
D | hmc6352.c | 77 unsigned char i2c_data[2]; in compass_heading_data_show() local 87 ret = i2c_master_recv(client, i2c_data, 2); in compass_heading_data_show() 93 ret = (i2c_data[0] << 8) | i2c_data[1]; in compass_heading_data_show()
|
/linux-3.4.99/drivers/rtc/ |
D | rtc-m41t80.c | 511 unsigned char i2c_data[2]; in wdt_ping() local 517 .buf = i2c_data, in wdt_ping() 522 i2c_data[0] = 0x09; /* watchdog register */ in wdt_ping() 525 i2c_data[1] = (wdt_margin & 0xFC) | 0x83; /* resolution = 4s */ in wdt_ping() 530 i2c_data[1] = wdt_margin<<2 | 0x82; in wdt_ping() 537 i2c_data[1] &= ~M41T80_WATCHDOG_RB2; in wdt_ping() 549 unsigned char i2c_data[2], i2c_buf[0x10]; in wdt_disable() local 555 .buf = i2c_data, in wdt_disable() 569 .buf = i2c_data, in wdt_disable() 573 i2c_data[0] = 0x09; in wdt_disable() [all …]
|
/linux-3.4.99/drivers/input/touchscreen/ |
D | cy8ctmg110_ts.c | 79 unsigned char i2c_data[6]; in cy8ctmg110_write_regs() local 83 i2c_data[0] = reg; in cy8ctmg110_write_regs() 84 memcpy(i2c_data + 1, value, len); in cy8ctmg110_write_regs() 86 ret = i2c_master_send(client, i2c_data, len + 1); in cy8ctmg110_write_regs()
|
/linux-3.4.99/drivers/i2c/busses/ |
D | i2c-octeon.c | 518 struct octeon_i2c_data *i2c_data; in octeon_i2c_probe() local 533 i2c_data = pdev->dev.platform_data; in octeon_i2c_probe() 543 if (i2c_data == NULL) { in octeon_i2c_probe() 551 i2c->twsi_freq = i2c_data->i2c_freq; in octeon_i2c_probe() 552 i2c->sys_freq = i2c_data->sys_freq; in octeon_i2c_probe()
|
/linux-3.4.99/drivers/gpu/drm/radeon/ |
D | radeon_i2c.c | 332 u32 i2c_cntl_0, i2c_cntl_1, i2c_data; in r100_hw_i2c_xfer() local 355 i2c_data = RADEON_I2C_DATA; in r100_hw_i2c_xfer() 359 i2c_data = RADEON_DVI_I2C_DATA; in r100_hw_i2c_xfer() 467 WREG32(i2c_data, (p->addr << 1) & 0xff); in r100_hw_i2c_xfer() 468 WREG32(i2c_data, 0); in r100_hw_i2c_xfer() 500 WREG32(i2c_data, ((p->addr << 1) & 0xff) | 0x1); in r100_hw_i2c_xfer() 521 p->buf[j] = RREG32(i2c_data) & 0xff; in r100_hw_i2c_xfer() 527 WREG32(i2c_data, (p->addr << 1) & 0xff); in r100_hw_i2c_xfer() 528 WREG32(i2c_data, p->buf[j]); in r100_hw_i2c_xfer()
|
/linux-3.4.99/sound/pci/ctxfi/ |
D | cthw20k1.c | 1595 u32 i2c_data; in adc_input_select_SBx() local 1611 i2c_data = 0x1; /* Mic-in */ in adc_input_select_SBx() 1616 i2c_data = 0x2; /* Line-in */ in adc_input_select_SBx() 1620 i2c_data = 0x0; /* set to Digital */ in adc_input_select_SBx() 1627 i2c_write(hw, 0x001a0080, 0x2a, i2c_data); in adc_input_select_SBx() 1645 u32 i2c_data; in adc_input_select_hendrix() local 1661 i2c_data = 0x1; /* Mic-in */ in adc_input_select_hendrix() 1665 i2c_data = 0x2; /* Line-in */ in adc_input_select_hendrix() 1672 i2c_write(hw, 0x001a0080, 0x2a, i2c_data); in adc_input_select_hendrix()
|
D | cthw20k2.c | 1563 unsigned int i2c_data = (data << (hw20k2->addr_size * 8)) | addr; in hw20k2_i2c_write() local 1579 hw_write_20kx(hw, I2C_IF_WDATA, i2c_data); in hw20k2_i2c_write()
|
/linux-3.4.99/drivers/media/video/ |
D | vino.h | 132 volatile u32 i2c_data; member
|
/linux-3.4.99/arch/arm/mach-ixp4xx/ |
D | goramo_mlr.c | 219 static struct i2c_gpio_platform_data i2c_data = { variable 227 .dev = { .platform_data = &i2c_data },
|
/linux-3.4.99/drivers/net/ethernet/sfc/ |
D | nic.h | 102 struct i2c_algo_bit_data i2c_data; member
|
D | falcon.c | 1507 board->i2c_data = falcon_i2c_bit_operations; in falcon_probe_nic() 1508 board->i2c_data.data = efx; in falcon_probe_nic() 1509 board->i2c_adap.algo_data = &board->i2c_data; in falcon_probe_nic()
|
/linux-3.4.99/drivers/staging/comedi/drivers/ |
D | cb_pcidas64.c | 2027 uint8_t i2c_data = priv(dev)->i2c_cal_range_bits; in ai_rinsn() local 2028 i2c_write(dev, RANGE_CAL_I2C_ADDR, &i2c_data, in ai_rinsn() 2029 sizeof(i2c_data)); in ai_rinsn() 2721 uint8_t i2c_data = priv(dev)->i2c_cal_range_bits; in setup_channel_queue() local 2722 i2c_write(dev, RANGE_CAL_I2C_ADDR, &i2c_data, in setup_channel_queue() 2723 sizeof(i2c_data)); in setup_channel_queue()
|