Home
last modified time | relevance | path

Searched refs:i2c_data (Results 1 – 25 of 27) sorted by relevance

12

/Linux-v5.15/drivers/media/usb/gspca/m5602/
Dm5602_po1030.c410 u8 i2c_data; in po1030_set_exposure() local
415 i2c_data = ((val & 0xff00) >> 8); in po1030_set_exposure()
417 i2c_data); in po1030_set_exposure()
420 &i2c_data, 1); in po1030_set_exposure()
424 i2c_data = (val & 0xff); in po1030_set_exposure()
426 i2c_data); in po1030_set_exposure()
428 &i2c_data, 1); in po1030_set_exposure()
436 u8 i2c_data; in po1030_set_gain() local
439 i2c_data = val & 0xff; in po1030_set_gain()
440 gspca_dbg(gspca_dev, D_CONF, "Set global gain to %d\n", i2c_data); in po1030_set_gain()
[all …]
Dm5602_ov9650.c554 u8 i2c_data; in ov9650_set_exposure() local
560 i2c_data = (val >> 10) & 0x3f; in ov9650_set_exposure()
562 &i2c_data, 1); in ov9650_set_exposure()
567 i2c_data = (val >> 2) & 0xff; in ov9650_set_exposure()
569 &i2c_data, 1); in ov9650_set_exposure()
574 i2c_data = val & 0x03; in ov9650_set_exposure()
575 err = m5602_write_sensor(sd, OV9650_COM1, &i2c_data, 1); in ov9650_set_exposure()
582 u8 i2c_data; in ov9650_set_gain() local
590 err = m5602_read_sensor(sd, OV9650_VREF, &i2c_data, 1); in ov9650_set_gain()
595 i2c_data = ((val & 0x0300) >> 2) | in ov9650_set_gain()
[all …]
Dm5602_ov7660.c326 u8 i2c_data = val; in ov7660_set_gain() local
331 err = m5602_write_sensor(sd, OV7660_GAIN, &i2c_data, 1); in ov7660_set_gain()
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()
349 err = m5602_write_sensor(sd, OV7660_COM8, &i2c_data, 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()
368 return m5602_write_sensor(sd, OV7660_COM8, &i2c_data, 1); in ov7660_set_auto_gain()
[all …]
Dm5602_core.c52 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()
74 int m5602_write_bridge(struct sd *sd, const u8 address, const u8 i2c_data) in m5602_write_bridge() argument
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
[all …]
Dm5602_bridge.h150 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-v5.15/drivers/media/tuners/
Dqt1010.c221 qt1010_i2c_oper_t i2c_data[] = { in qt1010_init_meas1() local
227 for (i = 0; i < ARRAY_SIZE(i2c_data); i++) { in qt1010_init_meas1()
228 err = qt1010_writereg(priv, i2c_data[i].reg, in qt1010_init_meas1()
229 i2c_data[i].val); in qt1010_init_meas1()
256 qt1010_i2c_oper_t i2c_data[] = { in qt1010_init_meas2() local
266 for (i = 0; i < ARRAY_SIZE(i2c_data); i++) { in qt1010_init_meas2()
267 if (i2c_data[i].oper == QT1010_WR) { in qt1010_init_meas2()
268 err = qt1010_writereg(priv, i2c_data[i].reg, in qt1010_init_meas2()
269 i2c_data[i].val); in qt1010_init_meas2()
271 err = qt1010_readreg(priv, i2c_data[i].reg, &val); in qt1010_init_meas2()
[all …]
Dxc5000.c317 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-v5.15/drivers/media/usb/gspca/stv06xx/
Dstv06xx_vv6410.c185 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()
Dstv06xx_sensor.h58 u8 *i2c_data, const u8 len);
62 u8 *i2c_data, const u8 len);
Dstv06xx.c29 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()
Dstv06xx.h94 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-v5.15/drivers/misc/
Dhmc6352.c67 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-v5.15/arch/arm/mach-omap2/
Dvc.c670 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-v5.15/drivers/hwmon/
Dmax127.c75 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-v5.15/drivers/rtc/
Drtc-m41t80.c619 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()
633 i2c_data[1] = (wdt_margin & 0xFC) | 0x83; /* resolution = 4s */ 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()
[all …]
/Linux-v5.15/drivers/input/touchscreen/
Dcy8ctmg110_ts.c66 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-v5.15/drivers/gpu/drm/radeon/
Dradeon_i2c.c330 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-v5.15/drivers/media/pci/cobalt/
Dcobalt-i2c.c349 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()
Dcobalt-driver.h265 struct cobalt_i2c_data i2c_data[COBALT_NUM_ADAPTERS]; member
/Linux-v5.15/drivers/gpu/drm/amd/display/dc/dce/
Ddce_i2c_hw.c122 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-v5.15/sound/pci/ctxfi/
Dcthw20k1.c1586 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-v5.15/drivers/char/ipmi/
Dipmi_ssif.c266 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-v5.15/drivers/net/ethernet/sfc/falcon/
Dnic.h177 struct i2c_algo_bit_data i2c_data; member
Dfalcon.c2386 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-v5.15/drivers/comedi/drivers/
Dcb_pcidas64.c1836 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()

12