Home
last modified time | relevance | path

Searched +defs:val +defs:client (Results 176 – 200 of 846) sorted by relevance

12345678910>>...34

/linux-6.14.4/drivers/iio/proximity/
Dsrf08.c54 struct i2c_client *client; member
125 struct i2c_client *client = data->client; in srf08_read_ranging() local
204 struct iio_chan_spec const *channel, int *val, in srf08_read_raw()
260 static ssize_t srf08_write_range_mm(struct srf08_data *data, unsigned int val) in srf08_write_range_mm()
263 struct i2c_client *client = data->client; in srf08_write_range_mm() local
347 unsigned int val) in srf08_write_sensitivity()
349 struct i2c_client *client = data->client; in srf08_write_sensitivity() local
388 unsigned int val; in srf08_store_sensitivity() local
446 static int srf08_probe(struct i2c_client *client) in srf08_probe()
/linux-6.14.4/drivers/hwmon/
Dchipcap2.c83 struct i2c_client *client; member
188 static int cc2_read_command_status(struct i2c_client *client) in cc2_read_command_status()
257 static int cc2_write_reg(struct cc2_data *data, u8 reg, u16 val) in cc2_write_reg()
290 static int cc2_read_reg(struct cc2_data *data, u8 reg, u16 *val) in cc2_read_reg()
322 static int cc2_get_reg_val(struct cc2_data *data, u8 reg, long *val) in cc2_get_reg_val()
336 static int cc2_data_fetch(struct i2c_client *client, in cc2_data_fetch()
337 enum hwmon_sensor_types type, long *val) in cc2_data_fetch()
370 enum hwmon_sensor_types type, long *val) in cc2_read_measurement()
396 long *val) in cc2_measurement()
516 static int cc2_humidity_min_alarm_status(struct cc2_data *data, long *val) in cc2_humidity_min_alarm_status()
[all …]
Dw83781d.c149 #define IN_TO_REG(val) clamp_val(((val) + 8) / 16, 0, 255) argument
150 #define IN_FROM_REG(val) ((val) * 16) argument
162 FAN_FROM_REG(u8 val, int div) in FAN_FROM_REG()
171 #define TEMP_TO_REG(val) clamp_val((val) / 1000, -127, 128) argument
172 #define TEMP_FROM_REG(val) ((val) * 1000) argument
174 #define BEEP_MASK_FROM_REG(val, type) ((type) == as99127f ? \ argument
176 #define BEEP_MASK_TO_REG(val, type) ((type) == as99127f ? \ argument
179 #define DIV_FROM_REG(val) (1 << (val)) argument
182 DIV_TO_REG(long val, enum chips type) in DIV_TO_REG()
196 struct i2c_client *client; member
[all …]
Dadc128d818.c60 struct i2c_client *client; member
81 struct i2c_client *client = data->client; in adc128_update_device() local
152 int val; in adc128_in_show() local
169 long val; in adc128_in_store() local
207 long val; in adc128_temp_store() local
358 static int adc128_detect(struct i2c_client *client, struct i2c_board_info *info) in adc128_detect()
393 struct i2c_client *client = data->client; in adc128_init_client() local
429 static int adc128_probe(struct i2c_client *client) in adc128_probe()
Dmcp3021.c47 struct i2c_client *client; member
54 static inline u16 volts_from_reg(struct mcp3021_data *data, u16 val) in volts_from_reg()
60 u32 attr, int channel, long *val) in mcp3021_read()
63 struct i2c_client *client = data->client; in mcp3021_read() local
119 static int mcp3021_probe(struct i2c_client *client) in mcp3021_probe()
Dnct7904.c129 struct i2c_client *client; member
169 struct i2c_client *client = data->client; in nct7904_read_reg() local
187 struct i2c_client *client = data->client; in nct7904_read_reg16() local
207 unsigned int bank, unsigned int reg, u8 val) in nct7904_write_reg()
209 struct i2c_client *client = data->client; in nct7904_write_reg() local
221 long *val) in nct7904_read_fan()
300 long *val) in nct7904_read_in()
388 long *val) in nct7904_read_temp()
540 long *val) in nct7904_read_pwm()
565 long val) in nct7904_write_temp()
[all …]
Dltc4261.c45 struct i2c_client *client; member
58 struct i2c_client *client = data->client; in ltc4261_update_device() local
68 int val; in ltc4261_update_device() local
92 u32 val; in ltc4261_get_value() local
193 static int ltc4261_probe(struct i2c_client *client) in ltc4261_probe()
/linux-6.14.4/drivers/media/i2c/
Dimx355.c65 u8 val; member
1085 static int imx355_read_reg(struct imx355 *imx355, u16 reg, u32 len, u32 *val) in imx355_read_reg()
1087 struct i2c_client *client = v4l2_get_subdevdata(&imx355->sd); in imx355_read_reg() local
1119 static int imx355_write_reg(struct imx355 *imx355, u16 reg, u32 len, u32 val) in imx355_write_reg()
1121 struct i2c_client *client = v4l2_get_subdevdata(&imx355->sd); in imx355_write_reg() local
1139 struct i2c_client *client = v4l2_get_subdevdata(&imx355->sd); in imx355_write_regs() local
1181 struct i2c_client *client = v4l2_get_subdevdata(&imx355->sd); in imx355_set_ctrl() local
1388 struct i2c_client *client = v4l2_get_subdevdata(&imx355->sd); in imx355_start_streaming() local
1432 struct i2c_client *client = v4l2_get_subdevdata(sd); in imx355_set_stream() local
1473 struct i2c_client *client = v4l2_get_subdevdata(&imx355->sd); in imx355_identify_module() local
[all …]
Dimx319.c79 u8 val; member
1788 static int imx319_read_reg(struct imx319 *imx319, u16 reg, u32 len, u32 *val) in imx319_read_reg()
1790 struct i2c_client *client = v4l2_get_subdevdata(&imx319->sd); in imx319_read_reg() local
1822 static int imx319_write_reg(struct imx319 *imx319, u16 reg, u32 len, u32 val) in imx319_write_reg()
1824 struct i2c_client *client = v4l2_get_subdevdata(&imx319->sd); in imx319_write_reg() local
1842 struct i2c_client *client = v4l2_get_subdevdata(&imx319->sd); in imx319_write_regs() local
1883 struct i2c_client *client = v4l2_get_subdevdata(&imx319->sd); in imx319_set_ctrl() local
2090 struct i2c_client *client = v4l2_get_subdevdata(&imx319->sd); in imx319_identify_module() local
2092 u32 val; in imx319_identify_module() local
2115 struct i2c_client *client = v4l2_get_subdevdata(&imx319->sd); in imx319_start_streaming() local
[all …]
Dadv7842.c275 static s32 adv_smbus_read_byte_data_check(struct i2c_client *client, in adv_smbus_read_byte_data_check()
290 static s32 adv_smbus_read_byte_data(struct i2c_client *client, u8 command) in adv_smbus_read_byte_data()
307 static s32 adv_smbus_write_byte_data(struct i2c_client *client, in adv_smbus_write_byte_data()
329 static void adv_smbus_write_byte_no_check(struct i2c_client *client, in adv_smbus_write_byte_no_check()
345 struct i2c_client *client = v4l2_get_subdevdata(sd); in io_read() local
350 static inline int io_write(struct v4l2_subdev *sd, u8 reg, u8 val) in io_write()
352 struct i2c_client *client = v4l2_get_subdevdata(sd); in io_write() local
357 static inline int io_write_and_or(struct v4l2_subdev *sd, u8 reg, u8 mask, u8 val) in io_write_and_or()
363 u8 reg, u8 mask, u8 val) in io_write_clr_set()
375 static inline int avlink_write(struct v4l2_subdev *sd, u8 reg, u8 val) in avlink_write()
[all …]
Dov5695.c82 u8 val; member
96 struct i2c_client *client; member
704 static int ov5695_write_reg(struct i2c_client *client, u16 reg, in ov5695_write_reg()
705 u32 len, u32 val) in ov5695_write_reg()
732 static int ov5695_write_array(struct i2c_client *client, in ov5695_write_array()
746 static int ov5695_read_reg(struct i2c_client *client, u16 reg, unsigned int len, in ov5695_read_reg()
747 u32 *val) in ov5695_read_reg()
893 u32 val; in ov5695_enable_test_pattern() local
933 struct i2c_client *client = ov5695->client; in ov5695_s_stream() local
1087 struct i2c_client *client = ov5695->client; in ov5695_set_ctrl() local
[all …]
/linux-6.14.4/drivers/i2c/muxes/
Di2c-mux-pca954x.c114 struct i2c_client *client; member
301 struct i2c_client *client, u8 val) in pca954x_reg_write()
322 struct i2c_client *client = data->client; in pca954x_select_chan() local
339 struct i2c_client *client = data->client; in pca954x_deselect_mux() local
363 struct i2c_client *client = to_i2c_client(dev); in idle_state_show() local
374 struct i2c_client *client = to_i2c_client(dev); in idle_state_store() local
377 int val; in idle_state_store() local
437 struct i2c_client *client = data->client; in pca954x_irq_setup() local
482 static int pca954x_init(struct i2c_client *client, struct pca954x *data) in pca954x_init()
557 static int pca954x_probe(struct i2c_client *client) in pca954x_probe()
[all …]
Di2c-mux-pca9541.c75 struct i2c_client *client; member
99 static int pca9541_reg_write(struct i2c_client *client, u8 command, u8 val) in pca9541_reg_write()
113 static int pca9541_reg_read(struct i2c_client *client, u8 command) in pca9541_reg_read()
131 static void pca9541_release_bus(struct i2c_client *client) in pca9541_release_bus()
178 static int pca9541_arbitrate(struct i2c_client *client) in pca9541_arbitrate()
252 struct i2c_client *client = data->client; in pca9541_select_chan() local
277 struct i2c_client *client = data->client; in pca9541_release_chan() local
286 static int pca9541_probe(struct i2c_client *client) in pca9541_probe()
327 static void pca9541_remove(struct i2c_client *client) in pca9541_remove()
/linux-6.14.4/drivers/media/usb/go7007/
Ds2250-board.c151 static int write_reg(struct i2c_client *client, u8 reg, u8 value) in write_reg()
185 static int write_reg_fp(struct i2c_client *client, u16 addr, u16 val) in write_reg_fp()
249 static int read_reg_fp(struct i2c_client *client, u16 addr, u16 *val) in read_reg_fp()
290 static int write_regs(struct i2c_client *client, u8 *regs) in write_regs()
303 static int write_regs_fp(struct i2c_client *client, u16 *regs) in write_regs_fp()
323 struct i2c_client *client = v4l2_get_subdevdata(sd); in s2250_s_video_routing() local
347 struct i2c_client *client = v4l2_get_subdevdata(sd); in s2250_s_std() local
366 struct i2c_client *client = v4l2_get_subdevdata(&state->sd); in s2250_s_ctrl() local
406 struct i2c_client *client = v4l2_get_subdevdata(sd); in s2250_set_fmt() local
497 static int s2250_probe(struct i2c_client *client) in s2250_probe()
[all …]
/linux-6.14.4/drivers/staging/iio/addac/
Dadt7316-spi.c25 static int adt7316_spi_multi_read(void *client, u8 reg, u8 count, u8 *data) in adt7316_spi_multi_read()
54 static int adt7316_spi_multi_write(void *client, u8 reg, u8 count, u8 *data) in adt7316_spi_multi_write()
77 static int adt7316_spi_read(void *client, u8 reg, u8 *data) in adt7316_spi_read()
82 static int adt7316_spi_write(void *client, u8 reg, u8 val) in adt7316_spi_write()
/linux-6.14.4/drivers/iio/dac/
Dmax5821.c34 struct i2c_client *client; member
169 int *val, int channel) in max5821_get_value()
172 struct i2c_client *client = data->client; in max5821_get_value() local
210 int val, int channel) in max5821_set_value()
213 struct i2c_client *client = data->client; in max5821_set_value() local
238 int *val, int *val2, long mask) in max5821_read_raw()
256 int val, int val2, long mask) in max5821_write_raw()
297 static int max5821_probe(struct i2c_client *client) in max5821_probe()
/linux-6.14.4/drivers/gpu/drm/i2c/
Dtda9950.c63 struct i2c_client *client; member
73 static int tda9950_write_range(struct i2c_client *client, u8 addr, u8 *p, int cnt) in tda9950_write_range()
98 static void tda9950_write(struct i2c_client *client, u8 addr, u8 val) in tda9950_write()
103 static int tda9950_read_range(struct i2c_client *client, u8 addr, u8 *p, int cnt) in tda9950_read_range()
126 static u8 tda9950_read(struct i2c_client *client, u8 addr) in tda9950_read()
129 u8 val; in tda9950_read() local
280 struct i2c_client *client = priv->client; in tda9950_open() local
301 struct i2c_client *client = priv->client; in tda9950_release() local
378 static int tda9950_probe(struct i2c_client *client) in tda9950_probe()
480 static void tda9950_remove(struct i2c_client *client) in tda9950_remove()
/linux-6.14.4/drivers/iio/light/
Dal3320a.c63 struct i2c_client *client; member
85 static int al3320a_set_pwr(struct i2c_client *client, bool pwr) in al3320a_set_pwr()
87 u8 val = pwr ? AL3320A_CONFIG_ENABLE : AL3320A_CONFIG_DISABLE; in al3320a_set_pwr() local
127 struct iio_chan_spec const *chan, int *val, in al3320a_read_raw()
162 struct iio_chan_spec const *chan, int val, in al3320a_write_raw()
190 static int al3320a_probe(struct i2c_client *client) in al3320a_probe()
/linux-6.14.4/arch/powerpc/platforms/83xx/
Dmcu_mpc8349emitx.c35 struct i2c_client *client; member
95 static void mcu_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) in mcu_gpio_set()
110 static int mcu_gpio_dir_out(struct gpio_chip *gc, unsigned int gpio, int val) in mcu_gpio_dir_out()
139 static int mcu_probe(struct i2c_client *client) in mcu_probe()
181 static void mcu_remove(struct i2c_client *client) in mcu_remove()
/linux-6.14.4/drivers/mfd/
Dene-kb3930.c31 struct i2c_client *client; member
85 unsigned int val) in kb3930_ec_ram_reg_write()
94 unsigned int *val) in kb3930_ec_ram_reg_read()
122 static int kb3930_probe(struct i2c_client *client) in kb3930_probe()
180 static void kb3930_remove(struct i2c_client *client) in kb3930_remove()
/linux-6.14.4/drivers/rtc/
Drtc-rv8803.c69 struct i2c_client *client; member
78 static int rv8803_read_reg(const struct i2c_client *client, u8 reg) in rv8803_read_reg()
96 static int rv8803_read_regs(const struct i2c_client *client, in rv8803_read_regs()
115 static int rv8803_write_reg(const struct i2c_client *client, u8 reg, u8 value) in rv8803_write_reg()
129 static int rv8803_write_regs(const struct i2c_client *client, in rv8803_write_regs()
187 struct i2c_client *client = dev_id; in rv8803_handle_irq() local
349 struct i2c_client *client = rv8803->client; in rv8803_get_alarm() local
392 struct i2c_client *client = to_i2c_client(dev); in rv8803_set_alarm() local
455 struct i2c_client *client = to_i2c_client(dev); in rv8803_alarm_irq_enable() local
497 struct i2c_client *client = to_i2c_client(dev); in rv8803_ioctl() local
[all …]
Drtc-rx8581.c71 struct i2c_client *client = to_i2c_client(dev); in rx8581_rtc_read_time() local
137 struct i2c_client *client = to_i2c_client(dev); in rx8581_rtc_set_time() local
190 static int rx8571_nvram_read(void *priv, unsigned int offset, void *val, in rx8571_nvram_read()
199 static int rx8571_nvram_write(void *priv, unsigned int offset, void *val, in rx8571_nvram_write()
208 static int rx85x1_nvram_read(void *priv, unsigned int offset, void *val, in rx85x1_nvram_read()
221 static int rx85x1_nvram_write(void *priv, unsigned int offset, void *val, in rx85x1_nvram_write()
250 static int rx8581_probe(struct i2c_client *client) in rx8581_probe()
/linux-6.14.4/drivers/fsi/
Dfsi-master-i2cr.c74 static int i2cr_transfer(struct i2c_client *client, u32 command, u64 *data) in i2cr_transfer()
100 static int i2cr_check_status(struct i2c_client *client) in i2cr_check_status()
187 static int i2cr_read(struct fsi_master *master, int link, uint8_t id, uint32_t addr, void *val, in i2cr_read()
227 const void *val, size_t size) in i2cr_write()
259 static int i2cr_probe(struct i2c_client *client) in i2cr_probe()
290 static void i2cr_remove(struct i2c_client *client) in i2cr_remove()
/linux-6.14.4/drivers/input/touchscreen/
Drohm_bu21023.c258 struct i2c_client *client; member
282 static int rohm_i2c_burst_read(struct i2c_client *client, u8 start, void *buf, in rohm_i2c_burst_read()
315 struct i2c_client *client = ts->client; in rohm_ts_manual_calibration() local
326 s32 val; in rohm_ts_manual_calibration() local
523 struct i2c_client *client = ts->client; in rohm_ts_soft_irq() local
642 static int rohm_ts_load_firmware(struct i2c_client *client, in rohm_ts_load_firmware()
754 struct i2c_client *client = to_i2c_client(dev); in swap_xy_show() local
763 struct i2c_client *client = to_i2c_client(dev); in swap_xy_store() local
765 unsigned int val; in swap_xy_store() local
779 struct i2c_client *client = to_i2c_client(dev); in inv_x_show() local
[all …]
/linux-6.14.4/drivers/iio/adc/
Dgehc-pmc-adc.c21 struct i2c_client *client; member
82 static int pmc_adc_read_raw_ch(struct pmc_adc *pmc_adc, u8 cmd, int *val) in pmc_adc_read_raw_ch()
97 int *val, int *val2, long mask) in pmc_adc_read_raw()
162 static int pmc_adc_probe(struct i2c_client *client) in pmc_adc_probe()
167 s32 val; in pmc_adc_probe() local

12345678910>>...34