/drivers/media/usb/gspca/m5602/ |
D | m5602_po1030.c | 310 u8 i2c_data; in po1030_set_exposure() local 315 i2c_data = ((val & 0xff00) >> 8); in po1030_set_exposure() 317 i2c_data); in po1030_set_exposure() 320 &i2c_data, 1); in po1030_set_exposure() 324 i2c_data = (val & 0xff); in po1030_set_exposure() 326 i2c_data); in po1030_set_exposure() 328 &i2c_data, 1); in po1030_set_exposure() 336 u8 i2c_data; in po1030_set_gain() local 339 i2c_data = val & 0xff; in po1030_set_gain() 340 PDEBUG(D_CONF, "Set global gain to %d", i2c_data); in po1030_set_gain() [all …]
|
D | m5602_ov9650.c | 406 u8 i2c_data; in ov9650_set_exposure() local 412 i2c_data = (val >> 10) & 0x3f; in ov9650_set_exposure() 414 &i2c_data, 1); in ov9650_set_exposure() 419 i2c_data = (val >> 2) & 0xff; in ov9650_set_exposure() 421 &i2c_data, 1); in ov9650_set_exposure() 426 i2c_data = val & 0x03; in ov9650_set_exposure() 427 err = m5602_write_sensor(sd, OV9650_COM1, &i2c_data, 1); in ov9650_set_exposure() 434 u8 i2c_data; in ov9650_set_gain() local 442 err = m5602_read_sensor(sd, OV9650_VREF, &i2c_data, 1); in ov9650_set_gain() 447 i2c_data = ((val & 0x0300) >> 2) | in ov9650_set_gain() [all …]
|
D | m5602_ov7660.c | 177 u8 i2c_data = val; in ov7660_set_gain() local 182 err = m5602_write_sensor(sd, OV7660_GAIN, &i2c_data, 1); in ov7660_set_gain() 190 u8 i2c_data; in ov7660_set_auto_white_balance() local 195 err = m5602_read_sensor(sd, OV7660_COM8, &i2c_data, 1); in ov7660_set_auto_white_balance() 199 i2c_data = ((i2c_data & 0xfd) | ((val & 0x01) << 1)); in ov7660_set_auto_white_balance() 200 err = m5602_write_sensor(sd, OV7660_COM8, &i2c_data, 1); in ov7660_set_auto_white_balance() 208 u8 i2c_data; in ov7660_set_auto_gain() local 213 err = m5602_read_sensor(sd, OV7660_COM8, &i2c_data, 1); in ov7660_set_auto_gain() 217 i2c_data = ((i2c_data & 0xfb) | ((val & 0x01) << 2)); in ov7660_set_auto_gain() 219 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 52 *i2c_data = buf[0]; in m5602_read_bridge() 55 address, *i2c_data); in m5602_read_bridge() 63 int m5602_write_bridge(struct sd *sd, const u8 address, const u8 i2c_data) in m5602_write_bridge() argument 71 address, i2c_data); in m5602_write_bridge() 76 buf[3] = i2c_data; in m5602_write_bridge() 100 u8 *i2c_data, const u8 len) in m5602_read_sensor() argument 140 err = m5602_read_bridge(sd, M5602_XB_I2C_DATA, &(i2c_data[i])); in m5602_read_sensor() 143 "0x%x containing 0x%x ", address, *i2c_data); in m5602_read_sensor() 149 u8 *i2c_data, const u8 len) in m5602_write_sensor() argument [all …]
|
D | m5602_bridge.h | 169 struct sd *sd, const u8 address, u8 *i2c_data); 172 struct sd *sd, const u8 address, const u8 i2c_data); 175 u8 *i2c_data, const u8 len); 178 u8 *i2c_data, const u8 len);
|
/drivers/media/tuners/ |
D | qt1010.c | 234 qt1010_i2c_oper_t i2c_data[] = { in qt1010_init_meas1() local 241 for (i = 0; i < ARRAY_SIZE(i2c_data); i++) { in qt1010_init_meas1() 242 if (i2c_data[i].oper == QT1010_WR) { in qt1010_init_meas1() 243 err = qt1010_writereg(priv, i2c_data[i].reg, in qt1010_init_meas1() 244 i2c_data[i].val); in qt1010_init_meas1() 246 err = qt1010_readreg(priv, i2c_data[i].reg, &val2); in qt1010_init_meas1() 268 qt1010_i2c_oper_t i2c_data[] = { in qt1010_init_meas2() local 277 for (i = 0; i < ARRAY_SIZE(i2c_data); i++) { in qt1010_init_meas2() 278 if (i2c_data[i].oper == QT1010_WR) { in qt1010_init_meas2() 279 err = qt1010_writereg(priv, i2c_data[i].reg, in qt1010_init_meas2() [all …]
|
D | xc5000.c | 331 static int xc_write_reg(struct xc5000_priv *priv, u16 reg_addr, u16 i2c_data) in xc_write_reg() argument 339 buf[2] = (i2c_data >> 8) & 0xFF; in xc_write_reg() 340 buf[3] = i2c_data & 0xFF; in xc_write_reg()
|
/drivers/media/usb/gspca/stv06xx/ |
D | stv06xx_vv6410.c | 201 u16 i2c_data; in vv6410_set_hflip() local 204 err = stv06xx_read_sensor(sd, VV6410_DATAFORMAT, &i2c_data); in vv6410_set_hflip() 209 i2c_data |= VV6410_HFLIP; in vv6410_set_hflip() 211 i2c_data &= ~VV6410_HFLIP; in vv6410_set_hflip() 214 err = stv06xx_write_sensor(sd, VV6410_DATAFORMAT, i2c_data); in vv6410_set_hflip() 222 u16 i2c_data; in vv6410_set_vflip() local 225 err = stv06xx_read_sensor(sd, VV6410_DATAFORMAT, &i2c_data); in vv6410_set_vflip() 230 i2c_data |= VV6410_VFLIP; in vv6410_set_vflip() 232 i2c_data &= ~VV6410_VFLIP; in vv6410_set_vflip() 235 err = stv06xx_write_sensor(sd, VV6410_DATAFORMAT, i2c_data); in vv6410_set_vflip()
|
D | stv06xx.c | 42 int stv06xx_write_bridge(struct sd *sd, u16 address, u16 i2c_data) in stv06xx_write_bridge() argument 49 u8 len = (i2c_data > 0xff) ? 2 : 1; in stv06xx_write_bridge() 51 buf[0] = i2c_data & 0xff; in stv06xx_write_bridge() 52 buf[1] = (i2c_data >> 8) & 0xff; in stv06xx_write_bridge() 59 i2c_data, address, err); in stv06xx_write_bridge() 64 int stv06xx_read_bridge(struct sd *sd, u16 address, u8 *i2c_data) in stv06xx_read_bridge() argument 75 *i2c_data = buf[0]; in stv06xx_read_bridge() 78 *i2c_data, address, err); in stv06xx_read_bridge()
|
D | stv06xx_sensor.h | 71 u8 *i2c_data, const u8 len); 75 u8 *i2c_data, const u8 len);
|
D | stv06xx.h | 107 int stv06xx_write_bridge(struct sd *sd, u16 address, u16 i2c_data); 108 int stv06xx_read_bridge(struct sd *sd, u16 address, u8 *i2c_data);
|
/drivers/rtc/ |
D | rtc-m41t80.c | 372 unsigned char i2c_data[2]; in wdt_ping() local 378 .buf = i2c_data, in wdt_ping() 383 i2c_data[0] = 0x09; /* watchdog register */ in wdt_ping() 386 i2c_data[1] = (wdt_margin & 0xFC) | 0x83; /* resolution = 4s */ in wdt_ping() 391 i2c_data[1] = wdt_margin<<2 | 0x82; in wdt_ping() 398 i2c_data[1] &= ~M41T80_WATCHDOG_RB2; in wdt_ping() 410 unsigned char i2c_data[2], i2c_buf[0x10]; in wdt_disable() local 416 .buf = i2c_data, in wdt_disable() 430 .buf = i2c_data, in wdt_disable() 434 i2c_data[0] = 0x09; in wdt_disable() [all …]
|
/drivers/misc/ |
D | hmc6352.c | 79 unsigned char i2c_data[2]; in compass_heading_data_show() local 89 ret = i2c_master_recv(client, i2c_data, 2); in compass_heading_data_show() 95 ret = (i2c_data[0] << 8) | i2c_data[1]; in compass_heading_data_show()
|
/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()
|
/drivers/gpu/drm/radeon/ |
D | radeon_i2c.c | 335 u32 i2c_cntl_0, i2c_cntl_1, i2c_data; in r100_hw_i2c_xfer() local 358 i2c_data = RADEON_I2C_DATA; in r100_hw_i2c_xfer() 362 i2c_data = RADEON_DVI_I2C_DATA; in r100_hw_i2c_xfer() 470 WREG32(i2c_data, (p->addr << 1) & 0xff); in r100_hw_i2c_xfer() 471 WREG32(i2c_data, 0); in r100_hw_i2c_xfer() 503 WREG32(i2c_data, ((p->addr << 1) & 0xff) | 0x1); in r100_hw_i2c_xfer() 524 p->buf[j] = RREG32(i2c_data) & 0xff; in r100_hw_i2c_xfer() 530 WREG32(i2c_data, (p->addr << 1) & 0xff); in r100_hw_i2c_xfer() 531 WREG32(i2c_data, p->buf[j]); in r100_hw_i2c_xfer()
|
/drivers/media/pci/cobalt/ |
D | cobalt-i2c.c | 361 cobalt->i2c_data[i].cobalt = cobalt; in cobalt_i2c_init() 362 cobalt->i2c_data[i].regs = regs; in cobalt_i2c_init() 365 adap->algo_data = &cobalt->i2c_data[i]; in cobalt_i2c_init()
|
D | cobalt-driver.h | 275 struct cobalt_i2c_data i2c_data[COBALT_NUM_ADAPTERS]; member
|
/drivers/char/ipmi/ |
D | ipmi_ssif.c | 265 unsigned char *i2c_data; member 496 ssif_info->i2c_data[0], in ipmi_ssif_thread() 497 ssif_info->i2c_data + 1); in ipmi_ssif_thread() 502 ssif_info->i2c_data); in ipmi_ssif_thread() 508 ssif_info->i2c_data, in ipmi_ssif_thread() 525 ssif_info->i2c_data = data; in ssif_i2c_send()
|
/drivers/staging/comedi/drivers/ |
D | cb_pcidas64.c | 1843 uint8_t i2c_data = devpriv->i2c_cal_range_bits; in ai_rinsn() local 1845 i2c_write(dev, RANGE_CAL_I2C_ADDR, &i2c_data, in ai_rinsn() 1846 sizeof(i2c_data)); in ai_rinsn() 2528 uint8_t i2c_data = devpriv->i2c_cal_range_bits; in setup_channel_queue() local 2530 i2c_write(dev, RANGE_CAL_I2C_ADDR, &i2c_data, in setup_channel_queue() 2531 sizeof(i2c_data)); in setup_channel_queue()
|
/drivers/net/ethernet/sfc/ |
D | nic.h | 197 struct i2c_algo_bit_data i2c_data; member
|
D | falcon.c | 2380 board->i2c_data = falcon_i2c_bit_operations; in falcon_probe_nic() 2381 board->i2c_data.data = efx; in falcon_probe_nic() 2382 board->i2c_adap.algo_data = &board->i2c_data; in falcon_probe_nic()
|