Home
last modified time | relevance | path

Searched refs:i2c_smbus_write_byte_data (Results 1 – 25 of 128) sorted by relevance

123456

/linux/drivers/input/touchscreen/
H A Drohm_bu21023.c347 error = i2c_smbus_write_byte_data(client, INT_MASK, in rohm_ts_manual_calibration()
353 error = i2c_smbus_write_byte_data(client, TEST1, in rohm_ts_manual_calibration()
378 error = i2c_smbus_write_byte_data(client, TEST1, in rohm_ts_manual_calibration()
413 error = i2c_smbus_write_byte_data(client, in rohm_ts_manual_calibration()
418 error = i2c_smbus_write_byte_data(client, in rohm_ts_manual_calibration()
423 error = i2c_smbus_write_byte_data(client, in rohm_ts_manual_calibration()
431 error = i2c_smbus_write_byte_data(client, FORCE_CALIBRATION, in rohm_ts_manual_calibration()
436 error = i2c_smbus_write_byte_data(client, FORCE_CALIBRATION, in rohm_ts_manual_calibration()
442 error = i2c_smbus_write_byte_data(client, INT_CLEAR, 0xff); in rohm_ts_manual_calibration()
479 error = i2c_smbus_write_byte_data(client, CALIBRATION_REG1, in rohm_ts_manual_calibration()
[all …]
H A Dbu21013_ts.c266 error = i2c_smbus_write_byte_data(client, BU21013_RESET_REG, in bu21013_init_chip()
274 error = i2c_smbus_write_byte_data(client, BU21013_SENSOR_0_7_REG, in bu21013_init_chip()
281 error = i2c_smbus_write_byte_data(client, BU21013_SENSOR_8_15_REG, in bu21013_init_chip()
288 error = i2c_smbus_write_byte_data(client, BU21013_SENSOR_16_23_REG, in bu21013_init_chip()
295 error = i2c_smbus_write_byte_data(client, BU21013_POS_MODE1_REG, in bu21013_init_chip()
303 error = i2c_smbus_write_byte_data(client, BU21013_POS_MODE2_REG, in bu21013_init_chip()
314 error = i2c_smbus_write_byte_data(client, BU21013_CLK_MODE_REG, in bu21013_init_chip()
322 error = i2c_smbus_write_byte_data(client, BU21013_IDLE_REG, in bu21013_init_chip()
330 error = i2c_smbus_write_byte_data(client, BU21013_INT_MODE_REG, in bu21013_init_chip()
337 error = i2c_smbus_write_byte_data(client, BU21013_FILTER_REG, in bu21013_init_chip()
[all …]
/linux/drivers/usb/host/
H A Dohci-nxp.c60 i2c_smbus_write_byte_data(isp1301_i2c_client, in isp1301_configure_lpc32xx()
63 i2c_smbus_write_byte_data(isp1301_i2c_client, in isp1301_configure_lpc32xx()
66 i2c_smbus_write_byte_data(isp1301_i2c_client, in isp1301_configure_lpc32xx()
68 i2c_smbus_write_byte_data(isp1301_i2c_client, in isp1301_configure_lpc32xx()
71 i2c_smbus_write_byte_data(isp1301_i2c_client, in isp1301_configure_lpc32xx()
74 i2c_smbus_write_byte_data(isp1301_i2c_client, in isp1301_configure_lpc32xx()
76 i2c_smbus_write_byte_data(isp1301_i2c_client, in isp1301_configure_lpc32xx()
78 i2c_smbus_write_byte_data(isp1301_i2c_client, in isp1301_configure_lpc32xx()
81 i2c_smbus_write_byte_data(isp1301_i2c_client, in isp1301_configure_lpc32xx()
84 i2c_smbus_write_byte_data(isp1301_i2c_client, in isp1301_configure_lpc32xx()
[all …]
/linux/drivers/input/keyboard/
H A Dmpr121_touchkey.c146 ret = i2c_smbus_write_byte_data(client, t, TOUCH_THRESHOLD); in mpr121_phys_init()
149 ret = i2c_smbus_write_byte_data(client, t + 1, in mpr121_phys_init()
158 ret = i2c_smbus_write_byte_data(client, reg->addr, reg->val); in mpr121_phys_init()
173 ret = i2c_smbus_write_byte_data(client, AUTO_CONFIG_USL_ADDR, usl); in mpr121_phys_init()
174 ret |= i2c_smbus_write_byte_data(client, AUTO_CONFIG_LSL_ADDR, lsl); in mpr121_phys_init()
175 ret |= i2c_smbus_write_byte_data(client, AUTO_CONFIG_TL_ADDR, tl); in mpr121_phys_init()
183 ret |= i2c_smbus_write_byte_data(client, ELECTRODE_CONF_ADDR, in mpr121_phys_init()
306 i2c_smbus_write_byte_data(client, ELECTRODE_CONF_ADDR, 0x00); in mpr_suspend()
316 i2c_smbus_write_byte_data(client, ELECTRODE_CONF_ADDR, in mpr_resume()
/linux/drivers/rtc/
H A Drtc-fm3130.c88 i2c_smbus_write_byte_data(fm3130->client, in fm3130_rtc_mode()
169 i2c_smbus_write_byte_data(fm3130->client, in fm3130_set_time()
274 i2c_smbus_write_byte_data(fm3130->client, in fm3130_set_alarm()
283 i2c_smbus_write_byte_data(fm3130->client, FM3130_RTC_CONTROL, in fm3130_set_alarm()
288 i2c_smbus_write_byte_data(fm3130->client, FM3130_RTC_CONTROL, in fm3130_set_alarm()
314 ret = i2c_smbus_write_byte_data(fm3130->client, in fm3130_alarm_irq_enable()
320 ret = i2c_smbus_write_byte_data(fm3130->client, in fm3130_alarm_irq_enable()
403 i2c_smbus_write_byte_data(client, FM3130_RTC_CONTROL, in fm3130_probe()
412 i2c_smbus_write_byte_data(client, FM3130_RTC_CONTROL, in fm3130_probe()
421 i2c_smbus_write_byte_data(client, FM3130_CAL_CONTROL, in fm3130_probe()
[all …]
H A Drtc-nvidia-vrs10.c104 return i2c_smbus_write_byte_data(info->client, reg, val); in nvvrs_update_bits()
111 ret = i2c_smbus_write_byte_data(client, NVVRS_REG_RTC_A3, time[3]); in nvvrs_rtc_write_alarm()
115 ret = i2c_smbus_write_byte_data(client, NVVRS_REG_RTC_A2, time[2]); in nvvrs_rtc_write_alarm()
119 ret = i2c_smbus_write_byte_data(client, NVVRS_REG_RTC_A1, time[1]); in nvvrs_rtc_write_alarm()
123 return i2c_smbus_write_byte_data(client, NVVRS_REG_RTC_A0, time[0]); in nvvrs_rtc_write_alarm()
233 ret = i2c_smbus_write_byte_data(info->client, NVVRS_REG_RTC_T3, time[3]); in nvvrs_rtc_set_time()
237 ret = i2c_smbus_write_byte_data(info->client, NVVRS_REG_RTC_T2, time[2]); in nvvrs_rtc_set_time()
241 ret = i2c_smbus_write_byte_data(info->client, NVVRS_REG_RTC_T1, time[1]); in nvvrs_rtc_set_time()
245 ret = i2c_smbus_write_byte_data(info->client, NVVRS_REG_RTC_T0, time[0]); in nvvrs_rtc_set_time()
338 ret = i2c_smbus_write_byte_data(info->client, in nvvrs_pseq_irq_clear()
H A Drtc-ds1374.c142 ret = i2c_smbus_write_byte_data(client, DS1374_REG_SR, stat); in ds1374_check_rtc_status()
156 return i2c_smbus_write_byte_data(client, DS1374_REG_CR, control); in ds1374_check_rtc_status()
263 ret = i2c_smbus_write_byte_data(client, DS1374_REG_CR, cr); in ds1374_set_alarm()
275 ret = i2c_smbus_write_byte_data(client, DS1374_REG_CR, cr); in ds1374_set_alarm()
308 i2c_smbus_write_byte_data(client, DS1374_REG_SR, stat); in ds1374_work()
315 i2c_smbus_write_byte_data(client, DS1374_REG_CR, control); in ds1374_work()
346 ret = i2c_smbus_write_byte_data(client, DS1374_REG_CR, ret); in ds1374_alarm_irq_enable()
407 ret = i2c_smbus_write_byte_data(client, DS1374_REG_CR, cr); in ds1374_wdt_settimeout()
422 ret = i2c_smbus_write_byte_data(client, DS1374_REG_CR, cr); in ds1374_wdt_settimeout()
453 return i2c_smbus_write_byte_data(client, DS1374_REG_CR, cr); in ds1374_wdt_stop()
H A Drtc-abx80x.c134 if (i2c_smbus_write_byte_data(client, ABX8XX_REG_CFG_KEY, key) < 0) { in abx80x_write_config_key()
168 err = i2c_smbus_write_byte_data(client, ABX8XX_REG_TRICKLE, in abx80x_enable_trickle_charger()
249 err = i2c_smbus_write_byte_data(client, ABX8XX_REG_OSS, in abx80x_rtc_set_time()
280 i2c_smbus_write_byte_data(client, ABX8XX_REG_STATUS, 0); in abx80x_handle_irq()
341 err = i2c_smbus_write_byte_data(client, ABX8XX_REG_IRQ, in abx80x_set_alarm()
382 retval = i2c_smbus_write_byte_data(client, ABX8XX_REG_OSC, flags); in abx80x_rtc_set_autocalibration()
470 retval = i2c_smbus_write_byte_data(client, ABX8XX_REG_OSC, flags); in oscillator_store()
517 err = i2c_smbus_write_byte_data(client, ABX8XX_REG_IRQ, in abx80x_alarm_irq_enable()
521 err = i2c_smbus_write_byte_data(client, ABX8XX_REG_IRQ, in abx80x_alarm_irq_enable()
548 tmp = i2c_smbus_write_byte_data(client, ABX8XX_REG_STATUS, in abx80x_ioctl()
[all …]
H A Drtc-rs5c372.c306 if (i2c_smbus_write_byte_data(client, addr, ctrl2) < 0) { in rs5c372_rtc_set_time()
379 if (i2c_smbus_write_byte_data(client, addr, buf) < 0) { in rs5c_rtc_alarm_irq_enable()
442 if (i2c_smbus_write_byte_data(client, addr, buf[0]) < 0) { in rs5c_set_alarm()
456 if (i2c_smbus_write_byte_data(client, addr, buf[i]) < 0) { in rs5c_set_alarm()
466 if (i2c_smbus_write_byte_data(client, addr, buf[0]) < 0) in rs5c_set_alarm()
532 if (i2c_smbus_write_byte_data(rs5c->client, addr, ctrl2) < 0) { in rs5c372_ioctl()
654 if (i2c_smbus_write_byte_data(rs5c->client, addr, val) < 0) { in rs5c372_set_offset()
783 ret = i2c_smbus_write_byte_data(rs5c372->client, addr, buf[i]); in rs5c_oscillator_setup()
/linux/drivers/iio/adc/
H A Dnau7802.c120 ret = i2c_smbus_write_byte_data(st->client, NAU7802_REG_CTRL1, in nau7802_set_gain()
168 ret = i2c_smbus_write_byte_data(st->client, NAU7802_REG_PUCTRL, in nau7802_sync()
313 ret = i2c_smbus_write_byte_data(st->client, in nau7802_read_raw()
379 ret = i2c_smbus_write_byte_data(st->client, in nau7802_write_raw()
430 ret = i2c_smbus_write_byte_data(st->client, NAU7802_REG_PUCTRL, in nau7802_probe()
436 ret = i2c_smbus_write_byte_data(st->client, NAU7802_REG_PUCTRL, in nau7802_probe()
460 ret = i2c_smbus_write_byte_data(st->client, NAU7802_REG_PUCTRL, data); in nau7802_probe()
463 ret = i2c_smbus_write_byte_data(st->client, NAU7802_REG_ADC_CTRL, 0x30); in nau7802_probe()
469 ret = i2c_smbus_write_byte_data(st->client, NAU7802_REG_CTRL1, in nau7802_probe()
516 ret = i2c_smbus_write_byte_data(st->client, NAU7802_REG_CTRL2, in nau7802_probe()
/linux/drivers/iio/accel/
H A Dstk8ba50.c168 ret = i2c_smbus_write_byte_data(data->client, in stk8ba50_data_rdy_trigger_set_state()
171 ret = i2c_smbus_write_byte_data(data->client, in stk8ba50_data_rdy_trigger_set_state()
201 ret = i2c_smbus_write_byte_data(client, STK8BA50_REG_POWMODE, in stk8ba50_set_power()
277 ret = i2c_smbus_write_byte_data(data->client, in stk8ba50_write_raw()
296 ret = i2c_smbus_write_byte_data(data->client, in stk8ba50_write_raw()
409 ret = i2c_smbus_write_byte_data(client, in stk8ba50_probe()
423 ret = i2c_smbus_write_byte_data(client, in stk8ba50_probe()
429 ret = i2c_smbus_write_byte_data(client, in stk8ba50_probe()
/linux/drivers/net/ethernet/sfc/falcon/
H A Dfalcon_boards.c71 int rc = i2c_smbus_write_byte_data(client, reg, value); in ef4_poke_lm87()
261 i2c_smbus_write_byte_data(ioexp_client, P0_OUT, 0xff); in sfe4001_poweroff()
262 i2c_smbus_write_byte_data(ioexp_client, P1_CONFIG, 0xff); in sfe4001_poweroff()
263 i2c_smbus_write_byte_data(ioexp_client, P0_CONFIG, 0xff); in sfe4001_poweroff()
283 rc = i2c_smbus_write_byte_data(ioexp_client, P0_CONFIG, 0x00); in sfe4001_poweron()
286 rc = i2c_smbus_write_byte_data(ioexp_client, P1_CONFIG, in sfe4001_poweron()
302 rc = i2c_smbus_write_byte_data(ioexp_client, P0_OUT, out); in sfe4001_poweron()
316 rc = i2c_smbus_write_byte_data(ioexp_client, P0_OUT, out); in sfe4001_poweron()
323 rc = i2c_smbus_write_byte_data(ioexp_client, P0_OUT, out); in sfe4001_poweron()
466 rc = i2c_smbus_write_byte_data(board->hwmon_client, in sfe4001_init()
/linux/drivers/mfd/
H A Dtps65010.c418 i2c_smbus_write_byte_data(tps->client, in tps65010_work()
600 (void) i2c_smbus_write_byte_data(client, TPS_MASK1, ~tps->nmask1); in tps65010_probe()
605 (void) i2c_smbus_write_byte_data(client, TPS_MASK2, ~tps->nmask2); in tps65010_probe()
607 (void) i2c_smbus_write_byte_data(client, TPS_MASK3, 0x0f in tps65010_probe()
739 status = i2c_smbus_write_byte_data(the_tps->client, in tps65010_set_gpio_out_value()
801 status = i2c_smbus_write_byte_data(the_tps->client, in tps65010_set_led()
814 status = i2c_smbus_write_byte_data(the_tps->client, in tps65010_set_led()
852 status = i2c_smbus_write_byte_data(the_tps->client, in tps65010_set_vib()
892 status = i2c_smbus_write_byte_data(the_tps->client, in tps65010_set_low_pwr()
925 status = i2c_smbus_write_byte_data(the_tps->client, in tps65010_config_vregs1()
[all …]
/linux/drivers/iio/light/
H A Dus5182d.c211 return i2c_smbus_write_byte_data(data->client, US5182D_REG_CFG0, ret); in us5182d_oneshot_en()
234 ret = i2c_smbus_write_byte_data(data->client, US5182D_REG_CFG0, ret); in us5182d_set_opmode()
238 ret = i2c_smbus_write_byte_data(data->client, US5182D_REG_MODE_STORE, in us5182d_set_opmode()
348 ret = i2c_smbus_write_byte_data(data->client, US5182D_REG_CFG0, ret); in us5182d_shutdown_en()
452 ret = i2c_smbus_write_byte_data(data->client, US5182D_REG_UDARK_TH, in us5182d_update_dark_th()
457 return i2c_smbus_write_byte_data(data->client, US5182D_REG_UDARK_TH + 1, in us5182d_update_dark_th()
480 ret = i2c_smbus_write_byte_data(data->client, US5182D_REG_CFG1, ret); in us5182d_apply_scale()
713 return i2c_smbus_write_byte_data(data->client, US5182D_REG_CFG3, in us5182d_reset()
732 ret = i2c_smbus_write_byte_data(data->client, in us5182d_init()
785 ret = i2c_smbus_write_byte_data(data->client, in us5182d_dark_gain_config()
[all …]
H A Dcm3232.c92 ret = i2c_smbus_write_byte_data(client, CM3232_REG_ADDR_CMD, in cm3232_reg_init()
113 ret = i2c_smbus_write_byte_data(client, CM3232_REG_ADDR_CMD, in cm3232_reg_init()
176 ret = i2c_smbus_write_byte_data(client, in cm3232_write_als_it()
361 i2c_smbus_write_byte_data(client, CM3232_REG_ADDR_CMD, in cm3232_remove()
381 ret = i2c_smbus_write_byte_data(client, CM3232_REG_ADDR_CMD, in cm3232_suspend()
395 ret = i2c_smbus_write_byte_data(client, CM3232_REG_ADDR_CMD, in cm3232_resume()
H A Dapds9999.c89 i2c_smbus_write_byte_data(client, APDS9999_REG_MAIN_CTRL, 0); in apds9999_standby()
111 ret = i2c_smbus_write_byte_data(client, APDS9999_REG_LS_MEAS_RATE, in apds9999_init()
118 ret = i2c_smbus_write_byte_data(client, APDS9999_REG_LS_GAIN, in apds9999_init()
124 return i2c_smbus_write_byte_data(client, APDS9999_REG_MAIN_CTRL, in apds9999_init()
/linux/sound/ppc/
H A Ddaca.c44 if (i2c_smbus_write_byte_data(i2c->client, DACA_REG_SR, 0x08) < 0 || in daca_init_client()
45 i2c_smbus_write_byte_data(i2c->client, DACA_REG_GCFG, 0x05) < 0) in daca_init_client()
189 i2c_smbus_write_byte_data(mix->i2c.client, DACA_REG_GCFG, in daca_put_amp()
221 i2c_smbus_write_byte_data(mix->i2c.client, DACA_REG_SR, 0x08); in daca_resume()
222 i2c_smbus_write_byte_data(mix->i2c.client, DACA_REG_GCFG, in daca_resume()
/linux/drivers/input/misc/
H A Dkxtj9.c174 err = i2c_smbus_write_byte_data(tj9->client, CTRL_REG1, 0); in kxtj9_update_odr()
178 err = i2c_smbus_write_byte_data(tj9->client, DATA_CTRL, tj9->data_ctrl); in kxtj9_update_odr()
182 err = i2c_smbus_write_byte_data(tj9->client, CTRL_REG1, tj9->ctrl_reg1); in kxtj9_update_odr()
202 err = i2c_smbus_write_byte_data(tj9->client, CTRL_REG1, tj9->ctrl_reg1); in kxtj9_device_power_off()
219 err = i2c_smbus_write_byte_data(tj9->client, CTRL_REG1, 0); in kxtj9_enable()
225 err = i2c_smbus_write_byte_data(tj9->client, in kxtj9_enable()
237 err = i2c_smbus_write_byte_data(tj9->client, CTRL_REG1, tj9->ctrl_reg1); in kxtj9_enable()
/linux/drivers/power/supply/
H A Dug3105_battery.c120 i2c_smbus_write_byte_data(client, UG3105_REG_MODE, UG3105_MODE_RUN); in ug3105_start()
121 i2c_smbus_write_byte_data(client, UG3105_REG_CTRL1, UG3105_CTRL1_RESET_COULOMB_CNT); in ug3105_start()
126 i2c_smbus_write_byte_data(client, UG3105_REG_MODE, UG3105_MODE_STANDBY); in ug3105_stop()
/linux/drivers/iio/humidity/
H A Dens210.c102 ret = i2c_smbus_write_byte_data(data->client, ENS210_REG_SENS_START, in ens210_get_measurement()
226 ret = i2c_smbus_write_byte_data(client, ENS210_REG_SYS_CTRL, in ens210_probe()
235 ret = i2c_smbus_write_byte_data(client, ENS210_REG_SYS_CTRL, 0x00); in ens210_probe()
255 ret = i2c_smbus_write_byte_data(client, ENS210_REG_SYS_CTRL, in ens210_probe()
/linux/Documentation/misc-devices/
H A Dmax6875.rst77 Use i2c_smbus_write_byte_data() to write a register and
86 i2c_smbus_write_byte_data(fd, 0x45, 1);
114 Use i2c_smbus_write_byte_data() to set the read address and then
121 i2c_smbus_write_byte_data(fd, 0x81, 0x00);
/linux/drivers/hwmon/
H A Dlm63.c361 i2c_smbus_write_byte_data(client, LM63_REG_TACH_LIMIT_LSB, in set_fan()
363 i2c_smbus_write_byte_data(client, LM63_REG_TACH_LIMIT_MSB, in set_fan()
413 i2c_smbus_write_byte_data(client, reg, data->pwm1[nr]); in set_pwm1()
454 i2c_smbus_write_byte_data(client, LM63_REG_CONFIG_FAN, in pwm1_enable_store()
538 i2c_smbus_write_byte_data(client, LM63_REG_CONFIG_FAN, data->config_fan); in pwm1_freq_store()
539 i2c_smbus_write_byte_data(client, LM63_REG_PWM_FREQ, pfr); in pwm1_freq_store()
614 i2c_smbus_write_byte_data(client, reg, temp); in set_temp8()
678 i2c_smbus_write_byte_data(client, reg[(nr - 1) * 2], in set_temp11()
680 i2c_smbus_write_byte_data(client, reg[(nr - 1) * 2 + 1], in set_temp11()
754 i2c_smbus_write_byte_data(client, LM63_REG_LUT_TEMP_HYST, in pwm1_auto_point_temp_hyst_store()
[all …]
H A Dadt7475.c331 i2c_smbus_write_byte_data(client, reg + 1, val >> 8); in adt7475_write_word()
332 i2c_smbus_write_byte_data(client, reg, val & 0xFF); in adt7475_write_word()
392 i2c_smbus_write_byte_data(client, reg, in voltage_store()
548 i2c_smbus_write_byte_data(client, reg, out); in temp_store()
629 i2c_smbus_write_byte_data(client, reg, data->enh_acoustics[idx]); in temp_st_store()
700 i2c_smbus_write_byte_data(client, TEMP_TRANGE_REG(sattr->index), in point2_store()
827 i2c_smbus_write_byte_data(client, reg, in pwm_store()
864 i2c_smbus_write_byte_data(client, REG_ENHANCE_ACOUSTICS1, in stall_disable_store()
923 i2c_smbus_write_byte_data(client, PWM_CONFIG_REG(index), in hw_set_pwm()
1019 i2c_smbus_write_byte_data(client, TEMP_TRANGE_REG(sattr->index), in pwmfreq_store()
[all …]
/linux/arch/powerpc/platforms/83xx/
H A Dmcu_mpc8349emitx.c56 i2c_smbus_write_byte_data(mcu->client, MCU_REG_CTRL, in shutdown_thread_fn()
90 i2c_smbus_write_byte_data(mcu->client, MCU_REG_CTRL, in mcu_power_off()
107 ret = i2c_smbus_write_byte_data(mcu->client, MCU_REG_CTRL, in mcu_gpio_set()
/linux/drivers/usb/gadget/udc/
H A Dlpc32xx_udc.c559 i2c_smbus_write_byte_data(udc->isp1301_i2c_client, in isp1301_udc_configure()
564 i2c_smbus_write_byte_data(udc->isp1301_i2c_client, in isp1301_udc_configure()
566 i2c_smbus_write_byte_data(udc->isp1301_i2c_client, in isp1301_udc_configure()
572 i2c_smbus_write_byte_data(udc->isp1301_i2c_client, in isp1301_udc_configure()
578 i2c_smbus_write_byte_data(udc->isp1301_i2c_client, in isp1301_udc_configure()
583 i2c_smbus_write_byte_data(udc->isp1301_i2c_client, in isp1301_udc_configure()
586 i2c_smbus_write_byte_data(udc->isp1301_i2c_client, in isp1301_udc_configure()
593 i2c_smbus_write_byte_data(udc->isp1301_i2c_client, in isp1301_udc_configure()
595 i2c_smbus_write_byte_data(udc->isp1301_i2c_client, in isp1301_udc_configure()
600 i2c_smbus_write_byte_data(udc->isp1301_i2c_client, in isp1301_udc_configure()
[all …]

123456