Searched refs:i2c_client (Results 1 - 200 of 921) sorted by relevance

12345

/linux-4.1.27/drivers/input/mouse/
H A Delan_i2c.h40 struct i2c_client;
49 int (*initialize)(struct i2c_client *client);
50 int (*sleep_control)(struct i2c_client *, bool sleep);
51 int (*power_control)(struct i2c_client *, bool enable);
52 int (*set_mode)(struct i2c_client *client, u8 mode);
54 int (*calibrate)(struct i2c_client *client);
55 int (*calibrate_result)(struct i2c_client *client, u8 *val);
57 int (*get_baseline_data)(struct i2c_client *client,
60 int (*get_version)(struct i2c_client *client, bool iap, u8 *version);
61 int (*get_sm_version)(struct i2c_client *client, u8 *version);
62 int (*get_checksum)(struct i2c_client *client, bool iap, u16 *csum);
63 int (*get_product_id)(struct i2c_client *client, u8 *id);
65 int (*get_max)(struct i2c_client *client,
67 int (*get_resolution)(struct i2c_client *client,
69 int (*get_num_traces)(struct i2c_client *client,
73 int (*iap_get_mode)(struct i2c_client *client, enum tp_mode *mode);
74 int (*iap_reset)(struct i2c_client *client);
76 int (*prepare_fw_update)(struct i2c_client *client);
77 int (*write_fw_block)(struct i2c_client *client,
79 int (*finish_fw_update)(struct i2c_client *client,
82 int (*get_report)(struct i2c_client *client, u8 *report);
83 int (*get_pressure_adjustment)(struct i2c_client *client,
H A Delan_i2c_smbus.c56 static int elan_smbus_initialize(struct i2c_client *client) elan_smbus_initialize()
88 static int elan_smbus_set_mode(struct i2c_client *client, u8 mode) elan_smbus_set_mode()
96 static int elan_smbus_sleep_control(struct i2c_client *client, bool sleep) elan_smbus_sleep_control()
104 static int elan_smbus_power_control(struct i2c_client *client, bool enable) elan_smbus_power_control()
109 static int elan_smbus_calibrate(struct i2c_client *client) elan_smbus_calibrate()
117 static int elan_smbus_calibrate_result(struct i2c_client *client, u8 *val) elan_smbus_calibrate_result()
129 static int elan_smbus_get_baseline_data(struct i2c_client *client, elan_smbus_get_baseline_data()
148 static int elan_smbus_get_version(struct i2c_client *client, elan_smbus_get_version()
168 static int elan_smbus_get_sm_version(struct i2c_client *client, u8 *version) elan_smbus_get_sm_version()
184 static int elan_smbus_get_product_id(struct i2c_client *client, u8 *id) elan_smbus_get_product_id()
200 static int elan_smbus_get_checksum(struct i2c_client *client, elan_smbus_get_checksum()
220 static int elan_smbus_get_max(struct i2c_client *client, elan_smbus_get_max()
238 static int elan_smbus_get_resolution(struct i2c_client *client, elan_smbus_get_resolution()
257 static int elan_smbus_get_num_traces(struct i2c_client *client, elan_smbus_get_num_traces()
277 static int elan_smbus_get_pressure_adjustment(struct i2c_client *client, elan_smbus_get_pressure_adjustment()
284 static int elan_smbus_iap_get_mode(struct i2c_client *client, elan_smbus_iap_get_mode()
306 static int elan_smbus_iap_reset(struct i2c_client *client) elan_smbus_iap_reset()
319 static int elan_smbus_set_flash_key(struct i2c_client *client) elan_smbus_set_flash_key()
334 static int elan_smbus_prepare_fw_update(struct i2c_client *client) elan_smbus_prepare_fw_update()
408 static int elan_smbus_write_fw_block(struct i2c_client *client, elan_smbus_write_fw_block()
463 static int elan_smbus_get_report(struct i2c_client *client, u8 *report) elan_smbus_get_report()
485 static int elan_smbus_finish_fw_update(struct i2c_client *client, elan_smbus_finish_fw_update()
H A Delan_i2c_i2c.c67 static int elan_i2c_read_block(struct i2c_client *client, elan_i2c_read_block()
93 static int elan_i2c_read_cmd(struct i2c_client *client, u16 reg, u8 *val) elan_i2c_read_cmd()
106 static int elan_i2c_write_cmd(struct i2c_client *client, u16 reg, u16 cmd) elan_i2c_write_cmd()
132 static int elan_i2c_initialize(struct i2c_client *client) elan_i2c_initialize()
171 static int elan_i2c_sleep_control(struct i2c_client *client, bool sleep) elan_i2c_sleep_control()
177 static int elan_i2c_power_control(struct i2c_client *client, bool enable) elan_i2c_power_control()
208 static int elan_i2c_set_mode(struct i2c_client *client, u8 mode) elan_i2c_set_mode()
214 static int elan_i2c_calibrate(struct i2c_client *client) elan_i2c_calibrate()
219 static int elan_i2c_calibrate_result(struct i2c_client *client, u8 *val) elan_i2c_calibrate_result()
224 static int elan_i2c_get_baseline_data(struct i2c_client *client, elan_i2c_get_baseline_data()
242 static int elan_i2c_get_version(struct i2c_client *client, elan_i2c_get_version()
262 static int elan_i2c_get_sm_version(struct i2c_client *client, u8 *version) elan_i2c_get_sm_version()
277 static int elan_i2c_get_product_id(struct i2c_client *client, u8 *id) elan_i2c_get_product_id()
292 static int elan_i2c_get_checksum(struct i2c_client *client, elan_i2c_get_checksum()
312 static int elan_i2c_get_max(struct i2c_client *client, elan_i2c_get_max()
337 static int elan_i2c_get_resolution(struct i2c_client *client, elan_i2c_get_resolution()
355 static int elan_i2c_get_num_traces(struct i2c_client *client, elan_i2c_get_num_traces()
374 static int elan_i2c_get_pressure_adjustment(struct i2c_client *client, elan_i2c_get_pressure_adjustment()
395 static int elan_i2c_iap_get_mode(struct i2c_client *client, enum tp_mode *mode) elan_i2c_iap_get_mode()
417 static int elan_i2c_iap_reset(struct i2c_client *client) elan_i2c_iap_reset()
431 static int elan_i2c_set_flash_key(struct i2c_client *client) elan_i2c_set_flash_key()
445 static int elan_i2c_prepare_fw_update(struct i2c_client *client) elan_i2c_prepare_fw_update()
510 static int elan_i2c_write_fw_block(struct i2c_client *client, elan_i2c_write_fw_block()
551 static int elan_i2c_finish_fw_update(struct i2c_client *client, elan_i2c_finish_fw_update()
592 static int elan_i2c_get_report(struct i2c_client *client, u8 *report) elan_i2c_get_report()
H A Dsynaptics_i2c.c219 struct i2c_client *client;
242 static s32 synaptics_i2c_reg_get(struct i2c_client *client, u16 reg) synaptics_i2c_reg_get()
253 static s32 synaptics_i2c_reg_set(struct i2c_client *client, u16 reg, u8 val) synaptics_i2c_reg_set()
264 static s32 synaptics_i2c_word_get(struct i2c_client *client, u16 reg) synaptics_i2c_word_get()
275 static int synaptics_i2c_config(struct i2c_client *client) synaptics_i2c_config()
305 static int synaptics_i2c_reset_config(struct i2c_client *client) synaptics_i2c_reset_config()
323 static int synaptics_i2c_check_error(struct i2c_client *client) synaptics_i2c_check_error()
520 static struct synaptics_i2c *synaptics_i2c_touch_create(struct i2c_client *client) synaptics_i2c_touch_create()
538 static int synaptics_i2c_probe(struct i2c_client *client, synaptics_i2c_probe()
604 static int synaptics_i2c_remove(struct i2c_client *client) synaptics_i2c_remove()
619 struct i2c_client *client = to_i2c_client(dev); synaptics_i2c_suspend()
633 struct i2c_client *client = to_i2c_client(dev); synaptics_i2c_resume()
/linux-4.1.27/drivers/iio/accel/
H A Dmma9551_core.h49 int mma9551_read_config_byte(struct i2c_client *client, u8 app_id,
51 int mma9551_write_config_byte(struct i2c_client *client, u8 app_id,
53 int mma9551_read_status_byte(struct i2c_client *client, u8 app_id,
55 int mma9551_read_config_word(struct i2c_client *client, u8 app_id,
57 int mma9551_write_config_word(struct i2c_client *client, u8 app_id,
59 int mma9551_read_status_word(struct i2c_client *client, u8 app_id,
61 int mma9551_read_config_words(struct i2c_client *client, u8 app_id,
63 int mma9551_read_status_words(struct i2c_client *client, u8 app_id,
65 int mma9551_write_config_words(struct i2c_client *client, u8 app_id,
67 int mma9551_update_config_bits(struct i2c_client *client, u8 app_id,
69 int mma9551_gpio_config(struct i2c_client *client, enum mma9551_gpio_pin pin,
71 int mma9551_read_version(struct i2c_client *client);
72 int mma9551_set_device_state(struct i2c_client *client, bool enable);
73 int mma9551_set_power_state(struct i2c_client *client, bool on);
75 int mma9551_read_accel_chan(struct i2c_client *client,
79 int mma9551_app_reset(struct i2c_client *client, u32 app_mask);
H A Dst_accel_i2c.c74 static int st_accel_i2c_probe(struct i2c_client *client, st_accel_i2c_probe()
97 static int st_accel_i2c_remove(struct i2c_client *client) st_accel_i2c_remove()
H A Dmma9551_core.c116 static int mma9551_transfer(struct i2c_client *client, mma9551_transfer()
224 int mma9551_read_config_byte(struct i2c_client *client, u8 app_id, mma9551_read_config_byte()
249 int mma9551_write_config_byte(struct i2c_client *client, u8 app_id, mma9551_write_config_byte()
274 int mma9551_read_status_byte(struct i2c_client *client, u8 app_id, mma9551_read_status_byte()
299 int mma9551_read_config_word(struct i2c_client *client, u8 app_id, mma9551_read_config_word()
330 int mma9551_write_config_word(struct i2c_client *client, u8 app_id, mma9551_write_config_word()
357 int mma9551_read_status_word(struct i2c_client *client, u8 app_id, mma9551_read_status_word()
387 int mma9551_read_config_words(struct i2c_client *client, u8 app_id, mma9551_read_config_words()
427 int mma9551_read_status_words(struct i2c_client *client, u8 app_id, mma9551_read_status_words()
467 int mma9551_write_config_words(struct i2c_client *client, u8 app_id, mma9551_write_config_words()
503 int mma9551_update_config_bits(struct i2c_client *client, u8 app_id, mma9551_update_config_bits()
542 int mma9551_gpio_config(struct i2c_client *client, enum mma9551_gpio_pin pin, mma9551_gpio_config()
614 int mma9551_read_version(struct i2c_client *client) mma9551_read_version()
649 int mma9551_set_device_state(struct i2c_client *client, bool enable) mma9551_set_device_state()
672 int mma9551_set_power_state(struct i2c_client *client, bool on) mma9551_set_power_state()
732 int mma9551_read_accel_chan(struct i2c_client *client, mma9551_read_accel_chan()
801 int mma9551_app_reset(struct i2c_client *client, u32 app_mask) mma9551_app_reset()
/linux-4.1.27/include/linux/iio/common/
H A Dst_sensors_i2c.h19 struct i2c_client *client, struct st_sensor_data *sdata);
22 void st_sensors_of_i2c_probe(struct i2c_client *client,
25 static inline void st_sensors_of_i2c_probe(struct i2c_client *client, st_sensors_of_i2c_probe()
/linux-4.1.27/include/linux/i2c/
H A Dmax732x.h15 int (*setup)(struct i2c_client *client,
18 int (*teardown)(struct i2c_client *client,
H A Dpcf857x.h35 int (*setup)(struct i2c_client *client,
38 int (*teardown)(struct i2c_client *client,
/linux-4.1.27/drivers/leds/
H A Dleds-menf21bmc.c32 struct i2c_client *i2c_client; member in struct:menf21bmc_led
64 led_val = i2c_smbus_read_byte_data(led->i2c_client, menf21bmc_led_set()
74 i2c_smbus_write_byte_data(led->i2c_client, menf21bmc_led_set()
84 struct i2c_client *i2c_client = to_i2c_client(pdev->dev.parent); menf21bmc_led_probe() local
89 leds[i].i2c_client = i2c_client; menf21bmc_led_probe()
H A Dleds-blinkm.c35 static int blinkm_transfer_hw(struct i2c_client *client, int cmd);
36 static int blinkm_test_run(struct i2c_client *client);
39 struct i2c_client *i2c_client; member in struct:blinkm_led
54 struct i2c_client *i2c_client; member in struct:blinkm_data
150 struct i2c_client *client; show_color_common()
175 struct i2c_client *client; store_color_common()
284 struct i2c_client *client; store_test()
313 static int blinkm_write(struct i2c_client *client, int cmd, u8 *arg) blinkm_write()
335 static int blinkm_read(struct i2c_client *client, int cmd, u8 *arg) blinkm_read()
351 static int blinkm_transfer_hw(struct i2c_client *client, int cmd) blinkm_transfer_hw()
450 data = i2c_get_clientdata(led->i2c_client); led_work()
451 ret = blinkm_transfer_hw(led->i2c_client, BLM_GO_RGB); led_work()
453 dev_dbg(&led->i2c_client->dev, led_work()
466 struct blinkm_data *data = i2c_get_clientdata(led->i2c_client); blinkm_led_common_set()
505 dev_err(&led->i2c_client->dev, "BlinkM: unknown color.\n"); blinkm_led_common_set()
514 dev_dbg(&led->i2c_client->dev, blinkm_led_common_set()
547 static void blinkm_init_hw(struct i2c_client *client) blinkm_init_hw()
554 static int blinkm_test_run(struct i2c_client *client) blinkm_test_run()
587 static int blinkm_detect(struct i2c_client *client, struct i2c_board_info *info) blinkm_detect()
631 static int blinkm_probe(struct i2c_client *client, blinkm_probe()
653 data->i2c_client = client; blinkm_probe()
668 led[i]->i2c_client = client; blinkm_probe()
742 static int blinkm_remove(struct i2c_client *client) blinkm_remove()
H A Dleds-pca9532.c40 struct i2c_client *client;
53 static int pca9532_probe(struct i2c_client *client,
55 static int pca9532_remove(struct i2c_client *client);
103 static int pca9532_calcpwm(struct i2c_client *client, int pwm, int blink, pca9532_calcpwm()
129 static int pca9532_setpwm(struct i2c_client *client, int pwm) pca9532_setpwm()
146 struct i2c_client *client = led->client; pca9532_setled()
184 struct i2c_client *client = led->client; pca9532_set_blink()
329 static int pca9532_configure(struct i2c_client *client, pca9532_configure()
439 static int pca9532_probe(struct i2c_client *client, pca9532_probe()
467 static int pca9532_remove(struct i2c_client *client) pca9532_remove()
H A Dleds-lp3944.c73 struct i2c_client *client;
79 struct i2c_client *client;
83 static int lp3944_reg_read(struct i2c_client *client, u8 reg, u8 *value) lp3944_reg_read()
96 static int lp3944_reg_write(struct i2c_client *client, u8 reg, u8 value) lp3944_reg_write()
108 static int lp3944_dim_set_period(struct i2c_client *client, u8 dim, u16 period) lp3944_dim_set_period()
139 static int lp3944_dim_set_dutycycle(struct i2c_client *client, u8 dim, lp3944_dim_set_dutycycle()
304 static int lp3944_configure(struct i2c_client *client, lp3944_configure()
378 static int lp3944_probe(struct i2c_client *client, lp3944_probe()
416 static int lp3944_remove(struct i2c_client *client) lp3944_remove()
/linux-4.1.27/drivers/media/usb/dvb-usb/
H A Dcxusb.h33 struct i2c_client *i2c_client_demod;
34 struct i2c_client *i2c_client_tuner;
/linux-4.1.27/include/linux/platform_data/
H A Dpca953x.h21 int (*setup)(struct i2c_client *client,
24 int (*teardown)(struct i2c_client *client,
/linux-4.1.27/include/linux/input/
H A Dgp2ap002a00f.h18 int (*hw_setup)(struct i2c_client *client);
19 int (*hw_shutdown)(struct i2c_client *client);
H A Dadp5589.h175 struct i2c_client; /* forward declaration */
179 int (*setup)(struct i2c_client *client,
182 int (*teardown)(struct i2c_client *client,
/linux-4.1.27/drivers/media/i2c/
H A Dmsp3400-driver.h118 int msp_write_dem(struct i2c_client *client, int addr, int val);
119 int msp_write_dsp(struct i2c_client *client, int addr, int val);
120 int msp_read_dem(struct i2c_client *client, int addr);
121 int msp_read_dsp(struct i2c_client *client, int addr);
122 int msp_reset(struct i2c_client *client);
123 void msp_set_scart(struct i2c_client *client, int in, int out);
129 void msp_set_audmode(struct i2c_client *client);
130 int msp_detect_stereo(struct i2c_client *client);
134 void msp3400c_set_mode(struct i2c_client *client, int mode);
135 void msp3400c_set_carrier(struct i2c_client *client, int cdo1, int cdo2);
H A Duda1342.c26 static int write_reg(struct i2c_client *client, int reg, int value) write_reg()
36 struct i2c_client *client = v4l2_get_subdevdata(sd); uda1342_s_routing()
60 static int uda1342_probe(struct i2c_client *client, uda1342_probe()
87 static int uda1342_remove(struct i2c_client *client) uda1342_remove()
H A Dak881x.c38 static int reg_read(struct i2c_client *client, const u8 reg) reg_read()
43 static int reg_write(struct i2c_client *client, const u8 reg, reg_write()
49 static int reg_set(struct i2c_client *client, const u8 reg, reg_set()
58 static struct ak881x *to_ak881x(const struct i2c_client *client) to_ak881x()
67 struct i2c_client *client = v4l2_get_subdevdata(sd); ak881x_g_register()
84 struct i2c_client *client = v4l2_get_subdevdata(sd); ak881x_s_register()
99 struct i2c_client *client = v4l2_get_subdevdata(sd); ak881x_try_g_mbus_fmt()
133 struct i2c_client *client = v4l2_get_subdevdata(sd); ak881x_cropcap()
150 struct i2c_client *client = v4l2_get_subdevdata(sd); ak881x_s_std_output()
181 struct i2c_client *client = v4l2_get_subdevdata(sd); ak881x_s_stream()
228 static int ak881x_probe(struct i2c_client *client, ak881x_probe()
299 static int ak881x_remove(struct i2c_client *client) ak881x_remove()
H A Dov7640.c38 static int write_regs(struct i2c_client *client, const u8 *regs) write_regs()
52 static int ov7640_probe(struct i2c_client *client, ov7640_probe()
80 static int ov7640_remove(struct i2c_client *client) ov7640_remove()
H A Dmsp3400-driver.c114 int msp_reset(struct i2c_client *client) msp_reset()
159 static int msp_read(struct i2c_client *client, int dev, int addr) msp_read()
200 int msp_read_dem(struct i2c_client *client, int addr) msp_read_dem()
205 int msp_read_dsp(struct i2c_client *client, int addr) msp_read_dsp()
210 static int msp_write(struct i2c_client *client, int dev, int addr, int val) msp_write()
238 int msp_write_dem(struct i2c_client *client, int addr, int val) msp_write_dem()
243 int msp_write_dsp(struct i2c_client *client, int addr, int val) msp_write_dsp()
289 void msp_set_scart(struct i2c_client *client, int in, int out) msp_set_scart()
315 static void msp_wake_thread(struct i2c_client *client) msp_wake_thread()
351 struct i2c_client *client = v4l2_get_subdevdata(&state->sd); msp_s_ctrl()
424 struct i2c_client *client = v4l2_get_subdevdata(sd); msp_s_radio()
450 struct i2c_client *client = v4l2_get_subdevdata(sd); msp_s_frequency()
460 struct i2c_client *client = v4l2_get_subdevdata(sd); msp_querystd()
474 struct i2c_client *client = v4l2_get_subdevdata(sd); msp_s_std()
488 struct i2c_client *client = v4l2_get_subdevdata(sd); msp_s_routing()
523 struct i2c_client *client = v4l2_get_subdevdata(sd); msp_g_tuner()
541 struct i2c_client *client = v4l2_get_subdevdata(sd); msp_s_tuner()
556 struct i2c_client *client = v4l2_get_subdevdata(sd); msp_s_i2s_clock_freq()
576 struct i2c_client *client = v4l2_get_subdevdata(sd); msp_log_status()
622 struct i2c_client *client = to_i2c_client(dev); msp_suspend()
630 struct i2c_client *client = to_i2c_client(dev); msp_resume()
680 static int msp_probe(struct i2c_client *client, const struct i2c_device_id *id) msp_probe()
867 static int msp_remove(struct i2c_client *client) msp_remove()
H A Dupd64083.c77 struct i2c_client *client = v4l2_get_subdevdata(sd); upd64083_write()
92 struct i2c_client *client = v4l2_get_subdevdata(sd); upd64083_read()
138 struct i2c_client *client = v4l2_get_subdevdata(sd); upd64083_log_status()
171 static int upd64083_probe(struct i2c_client *client, upd64083_probe()
198 static int upd64083_remove(struct i2c_client *client) upd64083_remove()
H A Dml86v7667.c105 static int ml86v7667_mask_set(struct i2c_client *client, const u8 reg, ml86v7667_mask_set()
119 struct i2c_client *client = v4l2_get_subdevdata(sd); ml86v7667_s_ctrl()
165 struct i2c_client *client = v4l2_get_subdevdata(sd); ml86v7667_querystd()
182 struct i2c_client *client = v4l2_get_subdevdata(sd); ml86v7667_g_input_status()
233 struct i2c_client *client = v4l2_get_subdevdata(&priv->sd); ml86v7667_s_std()
252 struct i2c_client *client = v4l2_get_subdevdata(sd); ml86v7667_g_register()
268 struct i2c_client *client = v4l2_get_subdevdata(sd); ml86v7667_s_register()
303 struct i2c_client *client = v4l2_get_subdevdata(&priv->sd); ml86v7667_init()
345 static int ml86v7667_probe(struct i2c_client *client, ml86v7667_probe()
401 static int ml86v7667_remove(struct i2c_client *client) ml86v7667_remove()
H A Dtw2804.c118 static int write_reg(struct i2c_client *client, u8 reg, u8 value, u8 channel) write_reg()
123 static int write_regs(struct i2c_client *client, const u8 *regs, u8 channel) write_regs()
137 static int read_reg(struct i2c_client *client, u8 reg, u8 channel) read_reg()
179 struct i2c_client *client = v4l2_get_subdevdata(&state->sd); tw2804_g_volatile_ctrl()
204 struct i2c_client *client = v4l2_get_subdevdata(&state->sd); tw2804_s_ctrl()
265 struct i2c_client *client = v4l2_get_subdevdata(sd); tw2804_s_std()
290 struct i2c_client *client = v4l2_get_subdevdata(sd); tw2804_s_video_routing()
358 static int tw2804_probe(struct i2c_client *client, tw2804_probe()
420 static int tw2804_remove(struct i2c_client *client) tw2804_remove()
H A Dtea6415c.c52 struct i2c_client *client = v4l2_get_subdevdata(sd); tea6415c_s_routing()
131 static int tea6415c_probe(struct i2c_client *client, tea6415c_probe()
149 static int tea6415c_remove(struct i2c_client *client) tea6415c_remove()
H A Dtea6420.c53 struct i2c_client *client = v4l2_get_subdevdata(sd); tea6420_s_routing()
102 static int tea6420_probe(struct i2c_client *client, tea6420_probe()
131 static int tea6420_remove(struct i2c_client *client) tea6420_remove()
H A Dcs5345.c58 struct i2c_client *client = v4l2_get_subdevdata(sd); cs5345_write()
65 struct i2c_client *client = v4l2_get_subdevdata(sd); cs5345_read()
159 static int cs5345_probe(struct i2c_client *client, cs5345_probe()
201 static int cs5345_remove(struct i2c_client *client) cs5345_remove()
H A Dtda9840.c61 struct i2c_client *client = v4l2_get_subdevdata(sd); tda9840_write()
70 struct i2c_client *client = v4l2_get_subdevdata(sd); tda9840_status()
160 static int tda9840_probe(struct i2c_client *client, tda9840_probe()
186 static int tda9840_remove(struct i2c_client *client) tda9840_remove()
/linux-4.1.27/drivers/input/misc/
H A Dgp2ap002a00f.c25 struct i2c_client *i2c_client; member in struct:gp2a_data
63 return i2c_smbus_write_byte_data(dt->i2c_client, GP2A_ADDR_OPMOD, gp2a_enable()
69 return i2c_smbus_write_byte_data(dt->i2c_client, GP2A_ADDR_OPMOD, gp2a_disable()
80 dev_err(&dt->i2c_client->dev, gp2a_device_open()
97 dev_err(&dt->i2c_client->dev, gp2a_device_close()
105 error = i2c_smbus_write_byte_data(dt->i2c_client, GP2A_ADDR_GAIN, gp2a_initialize()
110 error = i2c_smbus_write_byte_data(dt->i2c_client, GP2A_ADDR_HYS, gp2a_initialize()
115 error = i2c_smbus_write_byte_data(dt->i2c_client, GP2A_ADDR_CYCLE, gp2a_initialize()
125 static int gp2a_probe(struct i2c_client *client, gp2a_probe()
152 dt->i2c_client = client; gp2a_probe()
208 static int gp2a_remove(struct i2c_client *client) gp2a_remove()
230 struct i2c_client *client = to_i2c_client(dev); gp2a_suspend()
248 struct i2c_client *client = to_i2c_client(dev); gp2a_resume()
H A Dadxl34x-i2c.c19 struct i2c_client *client = to_i2c_client(dev); adxl34x_smbus_read()
27 struct i2c_client *client = to_i2c_client(dev); adxl34x_smbus_write()
36 struct i2c_client *client = to_i2c_client(dev); adxl34x_smbus_read_block()
45 struct i2c_client *client = to_i2c_client(dev); adxl34x_i2c_read_block()
76 static int adxl34x_i2c_probe(struct i2c_client *client, adxl34x_i2c_probe()
101 static int adxl34x_i2c_remove(struct i2c_client *client) adxl34x_i2c_remove()
110 struct i2c_client *client = to_i2c_client(dev); adxl34x_i2c_suspend()
120 struct i2c_client *client = to_i2c_client(dev); adxl34x_i2c_resume()
H A Dcma3000_d0x_i2c.c28 struct i2c_client *client = to_i2c_client(dev); cma3000_i2c_set()
40 struct i2c_client *client = to_i2c_client(dev); cma3000_i2c_read()
58 static int cma3000_i2c_probe(struct i2c_client *client, cma3000_i2c_probe()
72 static int cma3000_i2c_remove(struct i2c_client *client) cma3000_i2c_remove()
84 struct i2c_client *client = to_i2c_client(dev); cma3000_i2c_suspend()
94 struct i2c_client *client = to_i2c_client(dev); cma3000_i2c_resume()
H A Dad714x-i2c.c31 struct i2c_client *client = to_i2c_client(chip->dev); ad714x_i2c_write()
50 struct i2c_client *client = to_i2c_client(chip->dev); ad714x_i2c_read()
73 static int ad714x_i2c_probe(struct i2c_client *client, ad714x_i2c_probe()
88 static int ad714x_i2c_remove(struct i2c_client *client) ad714x_i2c_remove()
H A Dmma8450.c57 struct i2c_client *client;
63 struct i2c_client *c = m->client; mma8450_read()
77 struct i2c_client *c = m->client; mma8450_write()
94 struct i2c_client *c = m->client; mma8450_read_block()
170 static int mma8450_probe(struct i2c_client *c, mma8450_probe()
H A Dpcf8574_keypad.c41 struct i2c_client *client;
84 static int pcf8574_kp_probe(struct i2c_client *client, const struct i2c_device_id *id) pcf8574_kp_probe()
161 static int pcf8574_kp_remove(struct i2c_client *client) pcf8574_kp_remove()
176 struct i2c_client *client = to_i2c_client(dev); pcf8574_kp_resume()
185 struct i2c_client *client = to_i2c_client(dev); pcf8574_kp_suspend()
H A Dmpu3050.c111 struct i2c_client *client;
124 static int mpu3050_xyz_read_reg(struct i2c_client *client, mpu3050_xyz_read_reg()
157 static void mpu3050_read_xyz(struct i2c_client *client, mpu3050_read_xyz()
177 static void mpu3050_set_power_mode(struct i2c_client *client, u8 val) mpu3050_set_power_mode()
261 struct i2c_client *client = sensor->client; mpu3050_hw_init()
308 static int mpu3050_probe(struct i2c_client *client, mpu3050_probe()
405 static int mpu3050_remove(struct i2c_client *client) mpu3050_remove()
428 struct i2c_client *client = to_i2c_client(dev); mpu3050_suspend()
443 struct i2c_client *client = to_i2c_client(dev); mpu3050_resume()
/linux-4.1.27/drivers/watchdog/
H A Dmenf21bmc_wdt.c39 struct i2c_client *i2c_client; member in struct:menf21bmc_wdt
46 rst_rsn = i2c_smbus_read_byte_data(data->i2c_client, BMC_CMD_RST_RSN); menf21bmc_wdt_set_bootstatus()
66 return i2c_smbus_write_byte(drv_data->i2c_client, BMC_CMD_WD_ON); menf21bmc_wdt_start()
73 return i2c_smbus_write_byte_data(drv_data->i2c_client, menf21bmc_wdt_stop()
88 ret = i2c_smbus_write_word_data(drv_data->i2c_client, menf21bmc_wdt_settimeout()
102 return i2c_smbus_write_byte(drv_data->i2c_client, BMC_CMD_WD_TRIG); menf21bmc_wdt_ping()
122 struct i2c_client *i2c_client = to_i2c_client(pdev->dev.parent); menf21bmc_wdt_probe() local
133 drv_data->i2c_client = i2c_client; menf21bmc_wdt_probe()
139 bmc_timeout = i2c_smbus_read_word_data(drv_data->i2c_client, menf21bmc_wdt_probe()
184 i2c_smbus_write_word_data(drv_data->i2c_client, menf21bmc_wdt_shutdown()
/linux-4.1.27/drivers/input/touchscreen/
H A Dad7879-i2c.c24 struct i2c_client *client = to_i2c_client(dev); ad7879_i2c_read()
32 struct i2c_client *client = to_i2c_client(dev); ad7879_i2c_multi_read()
45 struct i2c_client *client = to_i2c_client(dev); ad7879_i2c_write()
57 static int ad7879_i2c_probe(struct i2c_client *client, ad7879_i2c_probe()
78 static int ad7879_i2c_remove(struct i2c_client *client) ad7879_i2c_remove()
H A Dar1021_i2c.c22 struct i2c_client *client;
60 struct i2c_client *client = ar1021->client; ar1021_i2c_open()
70 struct i2c_client *client = ar1021->client; ar1021_i2c_close()
75 static int ar1021_i2c_probe(struct i2c_client *client, ar1021_i2c_probe()
136 struct i2c_client *client = to_i2c_client(dev); ar1021_i2c_suspend()
145 struct i2c_client *client = to_i2c_client(dev); ar1021_i2c_resume()
H A Dwacom_i2c.c39 struct i2c_client *client;
46 static int wacom_query_device(struct i2c_client *client, wacom_query_device()
138 struct i2c_client *client = wac_i2c->client; wacom_i2c_open()
148 struct i2c_client *client = wac_i2c->client; wacom_i2c_close()
153 static int wacom_i2c_probe(struct i2c_client *client, wacom_i2c_probe()
234 static int wacom_i2c_remove(struct i2c_client *client) wacom_i2c_remove()
247 struct i2c_client *client = to_i2c_client(dev); wacom_i2c_suspend()
256 struct i2c_client *client = to_i2c_client(dev); wacom_i2c_resume()
H A Dcyttsp4_i2c.c40 static int cyttsp4_i2c_probe(struct i2c_client *client, cyttsp4_i2c_probe()
59 static int cyttsp4_i2c_remove(struct i2c_client *client) cyttsp4_i2c_remove()
H A Dcyttsp_i2c.c39 static int cyttsp_i2c_probe(struct i2c_client *client, cyttsp_i2c_probe()
59 static int cyttsp_i2c_remove(struct i2c_client *client) cyttsp_i2c_remove()
H A Dili210x.c45 struct i2c_client *client;
52 static int ili210x_read_reg(struct i2c_client *client, u8 reg, void *buf, ili210x_read_reg()
120 struct i2c_client *client = priv->client; ili210x_work()
152 struct i2c_client *client = to_i2c_client(dev); ili210x_calibrate()
183 static int ili210x_i2c_probe(struct i2c_client *client, ili210x_i2c_probe()
301 static int ili210x_i2c_remove(struct i2c_client *client) ili210x_i2c_remove()
316 struct i2c_client *client = to_i2c_client(dev); ili210x_i2c_suspend()
326 struct i2c_client *client = to_i2c_client(dev); ili210x_i2c_resume()
H A Dzforce_ts.c104 * @client the i2c_client
117 struct i2c_client *client;
144 struct i2c_client *client = ts->client; zforce_command()
167 struct i2c_client *client = ts->client; zforce_send_wait()
205 struct i2c_client *client = ts->client; zforce_command_wait()
226 struct i2c_client *client = ts->client; zforce_resolution()
239 struct i2c_client *client = ts->client; zforce_scan_frequency()
254 struct i2c_client *client = ts->client; zforce_setconfig()
265 struct i2c_client *client = ts->client; zforce_start()
318 struct i2c_client *client = ts->client; zforce_stop()
336 struct i2c_client *client = ts->client; zforce_touch_event()
415 struct i2c_client *client = ts->client; zforce_read_packet()
457 struct i2c_client *client = ts->client; zforce_complete()
471 struct i2c_client *client = ts->client; zforce_irq()
482 struct i2c_client *client = ts->client; zforce_irq_thread()
595 struct i2c_client *client = ts->client; zforce_input_close()
607 struct i2c_client *client = to_i2c_client(dev); zforce_suspend()
652 struct i2c_client *client = to_i2c_client(dev); zforce_resume()
741 static int zforce_probe(struct i2c_client *client, zforce_probe()
H A Dcy8ctmg110_ts.c59 struct i2c_client *client;
77 struct i2c_client *client = tsc->client; cy8ctmg110_write_regs()
98 struct i2c_client *client = tsc->client; cy8ctmg110_read_regs()
178 static int cy8ctmg110_probe(struct i2c_client *client, cy8ctmg110_probe()
296 struct i2c_client *client = to_i2c_client(dev); cy8ctmg110_suspend()
310 struct i2c_client *client = to_i2c_client(dev); cy8ctmg110_resume()
324 static int cy8ctmg110_remove(struct i2c_client *client) cy8ctmg110_remove()
H A Degalax_ts.c63 struct i2c_client *client;
71 struct i2c_client *client = ts->client; egalax_ts_interrupt()
123 static int egalax_wake_up_device(struct i2c_client *client) egalax_wake_up_device()
155 static int egalax_firmware_version(struct i2c_client *client) egalax_firmware_version()
167 static int egalax_ts_probe(struct i2c_client *client, egalax_ts_probe()
247 struct i2c_client *client = to_i2c_client(dev); egalax_ts_suspend()
256 struct i2c_client *client = to_i2c_client(dev); egalax_ts_resume()
H A Dmigor_ts.c37 struct i2c_client *client;
105 struct i2c_client *client = priv->client; migor_ts_open()
122 struct i2c_client *client = priv->client; migor_ts_close()
132 static int migor_ts_probe(struct i2c_client *client, migor_ts_probe()
192 static int migor_ts_remove(struct i2c_client *client) migor_ts_remove()
207 struct i2c_client *client = to_i2c_client(dev); migor_ts_suspend()
218 struct i2c_client *client = to_i2c_client(dev); migor_ts_resume()
/linux-4.1.27/drivers/misc/
H A Disl29003.c63 struct i2c_client *client;
77 static int __isl29003_read_reg(struct i2c_client *client, __isl29003_read_reg()
84 static int __isl29003_write_reg(struct i2c_client *client, __isl29003_write_reg()
113 static int isl29003_get_range(struct i2c_client *client) isl29003_get_range()
119 static int isl29003_set_range(struct i2c_client *client, int range) isl29003_set_range()
126 static int isl29003_get_resolution(struct i2c_client *client) isl29003_get_resolution()
132 static int isl29003_set_resolution(struct i2c_client *client, int res) isl29003_set_resolution()
139 static int isl29003_get_mode(struct i2c_client *client) isl29003_get_mode()
145 static int isl29003_set_mode(struct i2c_client *client, int mode) isl29003_set_mode()
152 static int isl29003_set_power_state(struct i2c_client *client, int state) isl29003_set_power_state()
159 static int isl29003_get_power_state(struct i2c_client *client) isl29003_get_power_state()
166 static int isl29003_get_adc_value(struct i2c_client *client) isl29003_get_adc_value()
198 struct i2c_client *client = to_i2c_client(dev); isl29003_show_range()
206 struct i2c_client *client = to_i2c_client(dev); isl29003_store_range()
233 struct i2c_client *client = to_i2c_client(dev); isl29003_show_resolution()
241 struct i2c_client *client = to_i2c_client(dev); isl29003_store_resolution()
266 struct i2c_client *client = to_i2c_client(dev); isl29003_show_mode()
273 struct i2c_client *client = to_i2c_client(dev); isl29003_store_mode()
300 struct i2c_client *client = to_i2c_client(dev); isl29003_show_power_state()
308 struct i2c_client *client = to_i2c_client(dev); isl29003_store_power_state()
331 struct i2c_client *client = to_i2c_client(dev); isl29003_show_lux()
355 static int isl29003_init_client(struct i2c_client *client) isl29003_init_client()
383 static int isl29003_probe(struct i2c_client *client, isl29003_probe()
419 static int isl29003_remove(struct i2c_client *client) isl29003_remove()
430 struct i2c_client *client = to_i2c_client(dev); isl29003_suspend()
440 struct i2c_client *client = to_i2c_client(dev); isl29003_resume()
H A Disl29020.c38 struct i2c_client *client = to_i2c_client(dev); als_sensing_range_show()
52 struct i2c_client *client = to_i2c_client(dev); als_lux_input_data_show()
88 struct i2c_client *client = to_i2c_client(dev); als_sensing_range_store()
122 static void als_set_power_state(struct i2c_client *client, int enable) als_set_power_state()
153 static int als_set_default_config(struct i2c_client *client) als_set_default_config()
165 static int isl29020_probe(struct i2c_client *client, isl29020_probe()
185 static int isl29020_remove(struct i2c_client *client) isl29020_remove()
202 struct i2c_client *client = to_i2c_client(dev); isl29020_runtime_suspend()
209 struct i2c_client *client = to_i2c_client(dev); isl29020_runtime_resume()
H A Dbmp085-i2c.c30 static int bmp085_i2c_detect(struct i2c_client *client, bmp085_i2c_detect()
39 static int bmp085_i2c_probe(struct i2c_client *client, bmp085_i2c_probe()
55 static int bmp085_i2c_remove(struct i2c_client *client) bmp085_i2c_remove()
H A Dhmc6352.c33 static int compass_command(struct i2c_client *c, u8 cmd) compass_command()
44 struct i2c_client *c = to_i2c_client(dev); compass_store()
76 struct i2c_client *client = to_i2c_client(dev); compass_heading_data_show()
114 static int hmc6352_probe(struct i2c_client *client, hmc6352_probe()
129 static int hmc6352_remove(struct i2c_client *client) hmc6352_remove()
H A Dtsl2550.c46 struct i2c_client *client;
65 static int tsl2550_set_operating_mode(struct i2c_client *client, int mode) tsl2550_set_operating_mode()
76 static int tsl2550_set_power_state(struct i2c_client *client, int state) tsl2550_set_power_state()
95 static int tsl2550_get_adc_value(struct i2c_client *client, u8 cmd) tsl2550_get_adc_value()
201 struct i2c_client *client = to_i2c_client(dev); tsl2550_store_power_state()
233 struct i2c_client *client = to_i2c_client(dev); tsl2550_store_operating_mode()
257 static ssize_t __tsl2550_show_lux(struct i2c_client *client, char *buf) __tsl2550_show_lux()
286 struct i2c_client *client = to_i2c_client(dev); tsl2550_show_lux1_input()
319 static int tsl2550_init_client(struct i2c_client *client) tsl2550_init_client()
349 static int tsl2550_probe(struct i2c_client *client, tsl2550_probe()
407 static int tsl2550_remove(struct i2c_client *client) tsl2550_remove()
H A Dfsa9480.c100 struct i2c_client *client;
109 static int fsa9480_write_reg(struct i2c_client *client, fsa9480_write_reg()
122 static int fsa9480_read_reg(struct i2c_client *client, int reg) fsa9480_read_reg()
134 static int fsa9480_read_irq(struct i2c_client *client, int *value) fsa9480_read_irq()
151 struct i2c_client *client = usbsw->client; fsa9480_set_switch()
185 struct i2c_client *client = usbsw->client; fsa9480_get_switch()
209 struct i2c_client *client = usbsw->client; fsa9480_show_device()
271 struct i2c_client *client = usbsw->client; fsa9480_detect_dev()
356 struct i2c_client *client = usbsw->client; fsa9480_irq_handler()
371 struct i2c_client *client = usbsw->client; fsa9480_irq_init()
410 static int fsa9480_probe(struct i2c_client *client, fsa9480_probe()
465 static int fsa9480_remove(struct i2c_client *client) fsa9480_remove()
481 struct i2c_client *client = to_i2c_client(dev); fsa9480_suspend()
496 struct i2c_client *client = to_i2c_client(dev); fsa9480_resume()
H A Dapds9802als.c47 struct i2c_client *client = to_i2c_client(dev); als_sensing_range_show()
61 struct i2c_client *client = to_i2c_client(dev); als_wait_for_data_ready()
81 struct i2c_client *client = to_i2c_client(dev); als_lux0_input_data_show()
123 struct i2c_client *client = to_i2c_client(dev); als_sensing_range_store()
171 static int als_set_power_state(struct i2c_client *client, bool on_off) als_set_power_state()
205 static int als_set_default_config(struct i2c_client *client) als_set_default_config()
227 static int apds9802als_probe(struct i2c_client *client, apds9802als_probe()
257 static int apds9802als_remove(struct i2c_client *client) apds9802als_remove()
278 struct i2c_client *client = to_i2c_client(dev); apds9802als_suspend()
286 struct i2c_client *client = to_i2c_client(dev); apds9802als_resume()
H A Dbh1780gli.c43 struct i2c_client *client;
148 static int bh1780_probe(struct i2c_client *client, bh1780_probe()
178 static int bh1780_remove(struct i2c_client *client) bh1780_remove()
190 struct i2c_client *client = to_i2c_client(dev); bh1780_suspend()
212 struct i2c_client *client = to_i2c_client(dev); bh1780_resume()
/linux-4.1.27/include/drm/bridge/
H A Dptn3460.h20 struct i2c_client;
26 struct i2c_client *client, struct device_node *node);
33 struct drm_encoder *encoder, struct i2c_client *client, ptn3460_init()
/linux-4.1.27/drivers/media/dvb-frontends/
H A Drtl2832.h52 struct dvb_frontend* (*get_dvb_frontend)(struct i2c_client *);
53 struct i2c_adapter* (*get_i2c_adapter)(struct i2c_client *);
54 int (*enable_slave_ts)(struct i2c_client *);
58 int (*bulk_read)(struct i2c_client *, unsigned int, void *, size_t);
59 int (*bulk_write)(struct i2c_client *, unsigned int, const void *, size_t);
60 int (*update_bits)(struct i2c_client *, unsigned int, unsigned int, unsigned int);
H A Drtl2832_sdr.h36 * @i2c_client: rtl2832 demod driver I2C client.
58 struct i2c_client *i2c_client; member in struct:rtl2832_sdr_platform_data
59 int (*bulk_read)(struct i2c_client *, unsigned int, void *, size_t);
60 int (*bulk_write)(struct i2c_client *, unsigned int, const void *, size_t);
61 int (*update_bits)(struct i2c_client *, unsigned int, unsigned int, unsigned int);
H A Drtl2830.h43 struct dvb_frontend* (*get_dvb_frontend)(struct i2c_client *);
44 struct i2c_adapter* (*get_i2c_adapter)(struct i2c_client *);
H A Drtl2830.c21 static int rtl2830_bulk_write(struct i2c_client *client, unsigned int reg, rtl2830_bulk_write()
33 static int rtl2830_update_bits(struct i2c_client *client, unsigned int reg, rtl2830_update_bits()
45 static int rtl2830_bulk_read(struct i2c_client *client, unsigned int reg, rtl2830_bulk_read()
59 struct i2c_client *client = fe->demodulator_priv; rtl2830_init()
151 struct i2c_client *client = fe->demodulator_priv; rtl2830_sleep()
174 struct i2c_client *client = fe->demodulator_priv; rtl2830_set_frontend()
284 struct i2c_client *client = fe->demodulator_priv; rtl2830_get_frontend()
397 struct i2c_client *client = fe->demodulator_priv; rtl2830_read_status()
442 struct i2c_client *client = fe->demodulator_priv; rtl2830_read_ber()
509 struct i2c_client *client = dev->client; rtl2830_stat_work()
611 struct i2c_client *client = fe->demodulator_priv; rtl2830_pid_filter_ctrl()
635 struct i2c_client *client = fe->demodulator_priv; rtl2830_pid_filter()
682 struct i2c_client *client = mux_priv; rtl2830_select()
700 static struct dvb_frontend *rtl2830_get_dvb_frontend(struct i2c_client *client) rtl2830_get_dvb_frontend()
709 static struct i2c_adapter *rtl2830_get_i2c_adapter(struct i2c_client *client) rtl2830_get_i2c_adapter()
725 struct i2c_client *client = context; rtl2830_regmap_read()
753 struct i2c_client *client = context; rtl2830_regmap_write()
778 struct i2c_client *client = context; rtl2830_regmap_gather_write()
803 static int rtl2830_probe(struct i2c_client *client, rtl2830_probe()
897 static int rtl2830_remove(struct i2c_client *client) rtl2830_remove()
H A Drtl2832.c157 static int rtl2832_bulk_write(struct i2c_client *client, unsigned int reg, rtl2832_bulk_write()
169 static int rtl2832_update_bits(struct i2c_client *client, unsigned int reg, rtl2832_update_bits()
181 static int rtl2832_bulk_read(struct i2c_client *client, unsigned int reg, rtl2832_bulk_read()
195 struct i2c_client *client = dev->client; rtl2832_rd_demod_reg()
225 struct i2c_client *client = dev->client; rtl2832_wr_demod_reg()
264 struct i2c_client *client = dev->client; rtl2832_set_if()
298 struct i2c_client *client = dev->client; rtl2832_init()
412 struct i2c_client *client = dev->client; rtl2832_sleep()
436 struct i2c_client *client = dev->client; rtl2832_get_tune_settings()
448 struct i2c_client *client = dev->client; rtl2832_set_frontend()
573 struct i2c_client *client = dev->client; rtl2832_get_frontend()
686 struct i2c_client *client = dev->client; rtl2832_read_status()
741 struct i2c_client *client = dev->client; rtl2832_stat_work()
848 struct i2c_client *client = dev->client; rtl2832_i2c_gate_work()
864 struct i2c_client *client = dev->client; rtl2832_select()
953 struct i2c_client *client = context; rtl2832_regmap_read()
981 struct i2c_client *client = context; rtl2832_regmap_write()
1006 struct i2c_client *client = context; rtl2832_regmap_gather_write()
1042 struct i2c_client *client = dev->client; rtl2832_regmap_lock()
1051 struct i2c_client *client = dev->client; rtl2832_regmap_unlock()
1057 static struct dvb_frontend *rtl2832_get_dvb_frontend(struct i2c_client *client) rtl2832_get_dvb_frontend()
1065 static struct i2c_adapter *rtl2832_get_i2c_adapter(struct i2c_client *client) rtl2832_get_i2c_adapter()
1073 static int rtl2832_enable_slave_ts(struct i2c_client *client) rtl2832_enable_slave_ts()
1126 struct i2c_client *client = dev->client; rtl2832_pid_filter_ctrl()
1152 struct i2c_client *client = dev->client; rtl2832_pid_filter()
1190 static int rtl2832_probe(struct i2c_client *client, rtl2832_probe()
1289 static int rtl2832_remove(struct i2c_client *client) rtl2832_remove()
H A Drtl2830_priv.h30 struct i2c_client *client;
/linux-4.1.27/sound/soc/codecs/
H A Dad193x-i2c.c24 static int ad193x_i2c_probe(struct i2c_client *client, ad193x_i2c_probe()
36 static int ad193x_i2c_remove(struct i2c_client *client) ad193x_i2c_remove()
H A Dadav803.c23 static int adav803_probe(struct i2c_client *client, adav803_probe()
30 static int adav803_remove(struct i2c_client *client) adav803_remove()
H A Dcs35l32.c304 static int cs35l32_handle_of_data(struct i2c_client *i2c_client, cs35l32_handle_of_data() argument
307 struct device_node *np = i2c_client->dev.of_node; cs35l32_handle_of_data()
322 dev_err(&i2c_client->dev, cs35l32_handle_of_data()
336 dev_err(&i2c_client->dev, cs35l32_handle_of_data()
350 dev_err(&i2c_client->dev, cs35l32_handle_of_data()
366 dev_err(&i2c_client->dev, cs35l32_handle_of_data()
374 static int cs35l32_i2c_probe(struct i2c_client *i2c_client, cs35l32_i2c_probe() argument
379 dev_get_platdata(&i2c_client->dev); cs35l32_i2c_probe()
385 cs35l32 = devm_kzalloc(&i2c_client->dev, sizeof(struct cs35l32_private), cs35l32_i2c_probe()
388 dev_err(&i2c_client->dev, "could not allocate codec\n"); cs35l32_i2c_probe()
392 i2c_set_clientdata(i2c_client, cs35l32); cs35l32_i2c_probe()
394 cs35l32->regmap = devm_regmap_init_i2c(i2c_client, &cs35l32_regmap); cs35l32_i2c_probe()
397 dev_err(&i2c_client->dev, "regmap_init() failed: %d\n", ret); cs35l32_i2c_probe()
404 pdata = devm_kzalloc(&i2c_client->dev, cs35l32_i2c_probe()
408 dev_err(&i2c_client->dev, "could not allocate pdata\n"); cs35l32_i2c_probe()
411 if (i2c_client->dev.of_node) { cs35l32_i2c_probe()
412 ret = cs35l32_handle_of_data(i2c_client, cs35l32_i2c_probe()
422 ret = devm_regulator_bulk_get(&i2c_client->dev, cs35l32_i2c_probe()
426 dev_err(&i2c_client->dev, cs35l32_i2c_probe()
434 dev_err(&i2c_client->dev, cs35l32_i2c_probe()
440 cs35l32->reset_gpio = devm_gpiod_get_optional(&i2c_client->dev, cs35l32_i2c_probe()
460 dev_err(&i2c_client->dev, cs35l32_i2c_probe()
468 dev_err(&i2c_client->dev, "Get Revision ID failed\n"); cs35l32_i2c_probe()
475 dev_err(&i2c_client->dev, "Failed to apply errata patch\n"); cs35l32_i2c_probe()
479 dev_info(&i2c_client->dev, cs35l32_i2c_probe()
519 ret = snd_soc_register_codec(&i2c_client->dev, cs35l32_i2c_probe()
533 static int cs35l32_i2c_remove(struct i2c_client *i2c_client) cs35l32_i2c_remove() argument
535 struct cs35l32_private *cs35l32 = i2c_get_clientdata(i2c_client); cs35l32_i2c_remove()
537 snd_soc_unregister_codec(&i2c_client->dev); cs35l32_i2c_remove()
H A Dadau1761-i2c.c18 static int adau1761_i2c_probe(struct i2c_client *client, adau1761_i2c_probe()
32 static int adau1761_i2c_remove(struct i2c_client *client) adau1761_i2c_remove()
H A Dadau1781-i2c.c18 static int adau1781_i2c_probe(struct i2c_client *client, adau1781_i2c_probe()
32 static int adau1781_i2c_remove(struct i2c_client *client) adau1781_i2c_remove()
H A Dadau1977-i2c.c18 static int adau1977_i2c_probe(struct i2c_client *client, adau1977_i2c_probe()
32 static int adau1977_i2c_remove(struct i2c_client *client) adau1977_i2c_remove()
H A Dcs42l51-i2c.c26 static int cs42l51_i2c_probe(struct i2c_client *i2c, cs42l51_i2c_probe()
38 static int cs42l51_i2c_remove(struct i2c_client *i2c) cs42l51_i2c_remove()
H A Dcs42xx8-i2c.c20 static int cs42xx8_i2c_probe(struct i2c_client *i2c, cs42xx8_i2c_probe()
34 static int cs42xx8_i2c_remove(struct i2c_client *i2c) cs42xx8_i2c_remove()
H A Des8328-i2c.c33 static int es8328_i2c_probe(struct i2c_client *i2c, es8328_i2c_probe()
40 static int es8328_i2c_remove(struct i2c_client *i2c) es8328_i2c_remove()
H A Dssm2602-i2c.c23 static int ssm2602_i2c_probe(struct i2c_client *client, ssm2602_i2c_probe()
30 static int ssm2602_i2c_remove(struct i2c_client *client) ssm2602_i2c_remove()
H A Dwm8804-i2c.c19 static int wm8804_i2c_probe(struct i2c_client *i2c, wm8804_i2c_probe()
31 static int wm8804_i2c_remove(struct i2c_client *i2c) wm8804_i2c_remove()
H A Dcs4265.c588 static int cs4265_i2c_probe(struct i2c_client *i2c_client, cs4265_i2c_probe() argument
596 cs4265 = devm_kzalloc(&i2c_client->dev, sizeof(struct cs4265_private), cs4265_i2c_probe()
601 cs4265->regmap = devm_regmap_init_i2c(i2c_client, &cs4265_regmap); cs4265_i2c_probe()
604 dev_err(&i2c_client->dev, "regmap_init() failed: %d\n", ret); cs4265_i2c_probe()
608 cs4265->reset_gpio = devm_gpiod_get_optional(&i2c_client->dev, cs4265_i2c_probe()
618 i2c_set_clientdata(i2c_client, cs4265); cs4265_i2c_probe()
624 dev_err(&i2c_client->dev, cs4265_i2c_probe()
629 dev_info(&i2c_client->dev, cs4265_i2c_probe()
635 ret = snd_soc_register_codec(&i2c_client->dev, cs4265_i2c_probe()
641 static int cs4265_i2c_remove(struct i2c_client *client) cs4265_i2c_remove()
H A Dcs4270.c651 * @i2c_client: the I2C client object
657 static int cs4270_i2c_probe(struct i2c_client *i2c_client, cs4270_i2c_probe() argument
660 struct device_node *np = i2c_client->dev.of_node; cs4270_i2c_probe()
665 cs4270 = devm_kzalloc(&i2c_client->dev, sizeof(struct cs4270_private), cs4270_i2c_probe()
674 ret = devm_regulator_bulk_get(&i2c_client->dev, cs4270_i2c_probe()
686 ret = devm_gpio_request_one(&i2c_client->dev, gpio, cs4270_i2c_probe()
695 cs4270->regmap = devm_regmap_init_i2c(i2c_client, &cs4270_regmap); cs4270_i2c_probe()
702 dev_err(&i2c_client->dev, "failed to read i2c at addr %X\n", cs4270_i2c_probe()
703 i2c_client->addr); cs4270_i2c_probe()
708 dev_err(&i2c_client->dev, "device at addr %X is not a CS4270\n", cs4270_i2c_probe()
709 i2c_client->addr); cs4270_i2c_probe()
713 dev_info(&i2c_client->dev, "found device at i2c address %X\n", cs4270_i2c_probe()
714 i2c_client->addr); cs4270_i2c_probe()
715 dev_info(&i2c_client->dev, "hardware revision %X\n", val & 0xF); cs4270_i2c_probe()
717 i2c_set_clientdata(i2c_client, cs4270); cs4270_i2c_probe()
719 ret = snd_soc_register_codec(&i2c_client->dev, cs4270_i2c_probe()
726 * @i2c_client: the I2C client object
730 static int cs4270_i2c_remove(struct i2c_client *i2c_client) cs4270_i2c_remove() argument
732 snd_soc_unregister_codec(&i2c_client->dev); cs4270_i2c_remove()
H A Dcs4271-i2c.c23 static int cs4271_i2c_probe(struct i2c_client *client, cs4271_i2c_probe()
36 static int cs4271_i2c_remove(struct i2c_client *client) cs4271_i2c_remove()
H A Dpcm512x-i2c.c23 static int pcm512x_i2c_probe(struct i2c_client *i2c, pcm512x_i2c_probe()
40 static int pcm512x_i2c_remove(struct i2c_client *i2c) pcm512x_i2c_remove()
H A Dsigmadsp-i2c.c40 struct i2c_client *client = control_data; sigmadsp_read_i2c()
75 struct sigmadsp *devm_sigmadsp_init_i2c(struct i2c_client *client, devm_sigmadsp_init_i2c()
H A Dsigmadsp.h53 struct i2c_client;
58 struct sigmadsp *devm_sigmadsp_init_i2c(struct i2c_client *client,
H A Dtlv320aic23-i2c.c22 static int tlv320aic23_i2c_probe(struct i2c_client *i2c, tlv320aic23_i2c_probe()
34 static int tlv320aic23_i2c_remove(struct i2c_client *i2c) tlv320aic23_i2c_remove()
/linux-4.1.27/include/linux/mfd/
H A Dbcm590xx.h27 struct i2c_client *i2c_pri;
28 struct i2c_client *i2c_sec;
H A Dmax8925.h197 struct i2c_client *i2c;
198 struct i2c_client *adc;
199 struct i2c_client *rtc;
266 extern int max8925_reg_read(struct i2c_client *, int);
267 extern int max8925_reg_write(struct i2c_client *, int, unsigned char);
268 extern int max8925_bulk_read(struct i2c_client *, int, int, unsigned char *);
269 extern int max8925_bulk_write(struct i2c_client *, int, int, unsigned char *);
270 extern int max8925_set_bits(struct i2c_client *, int, unsigned char,
H A Dstw481x.h44 * @i2c_client: corresponding I2C client
48 struct i2c_client *client;
H A Dmax8998-private.h155 struct i2c_client *i2c;
156 struct i2c_client *rtc;
174 extern int max8998_read_reg(struct i2c_client *i2c, u8 reg, u8 *dest);
175 extern int max8998_bulk_read(struct i2c_client *i2c, u8 reg, int count,
177 extern int max8998_write_reg(struct i2c_client *i2c, u8 reg, u8 value);
178 extern int max8998_bulk_write(struct i2c_client *i2c, u8 reg, int count,
180 extern int max8998_update_reg(struct i2c_client *i2c, u8 reg, u8 val, u8 mask);
H A D88pm860x.h383 struct i2c_client *client;
384 struct i2c_client *companion; /* companion chip client */
472 extern int pm860x_reg_read(struct i2c_client *, int);
473 extern int pm860x_reg_write(struct i2c_client *, int, unsigned char);
474 extern int pm860x_bulk_read(struct i2c_client *, int, int, unsigned char *);
475 extern int pm860x_bulk_write(struct i2c_client *, int, int, unsigned char *);
476 extern int pm860x_set_bits(struct i2c_client *, int, unsigned char,
478 extern int pm860x_page_reg_read(struct i2c_client *, int);
479 extern int pm860x_page_reg_write(struct i2c_client *, int, unsigned char);
480 extern int pm860x_page_bulk_read(struct i2c_client *, int, int,
482 extern int pm860x_page_bulk_write(struct i2c_client *, int, int,
484 extern int pm860x_page_set_bits(struct i2c_client *, int, unsigned char,
H A Dab3100.h81 * @i2c_client: I2C client for this chip
96 struct i2c_client *i2c_client; member in struct:ab3100
97 struct i2c_client *testreg_client;
H A Dmax8997-private.h384 struct i2c_client *i2c; /* 0xcc / PMIC, Battery Control, and FLASH */
385 struct i2c_client *rtc; /* slave addr 0x0c */
386 struct i2c_client *haptic; /* slave addr 0x90 */
387 struct i2c_client *muic; /* slave addr 0x4a */
416 extern int max8997_read_reg(struct i2c_client *i2c, u8 reg, u8 *dest);
417 extern int max8997_bulk_read(struct i2c_client *i2c, u8 reg, int count,
419 extern int max8997_write_reg(struct i2c_client *i2c, u8 reg, u8 value);
420 extern int max8997_bulk_write(struct i2c_client *i2c, u8 reg, int count,
422 extern int max8997_update_reg(struct i2c_client *i2c, u8 reg, u8 val, u8 mask);
/linux-4.1.27/drivers/gpio/
H A Dgpio-max7300.c22 struct i2c_client *client = to_i2c_client(dev); max7300_i2c_write()
29 struct i2c_client *client = to_i2c_client(dev); max7300_i2c_read()
34 static int max7300_probe(struct i2c_client *client, max7300_probe()
54 static int max7300_remove(struct i2c_client *client) max7300_remove()
H A Dgpio-pcf857x.c89 struct i2c_client *client;
95 int (*write)(struct i2c_client *client, unsigned data);
96 int (*read)(struct i2c_client *client);
103 static int i2c_write_le8(struct i2c_client *client, unsigned data) i2c_write_le8()
108 static int i2c_read_le8(struct i2c_client *client) i2c_read_le8()
115 static int i2c_write_le16(struct i2c_client *client, unsigned word) i2c_write_le16()
124 static int i2c_read_le16(struct i2c_client *client) i2c_read_le16()
239 static int pcf857x_probe(struct i2c_client *client, pcf857x_probe()
394 static int pcf857x_remove(struct i2c_client *client) pcf857x_remove()
H A Dgpio-mc9s08dz60.c28 struct i2c_client *client;
91 static int mc9s08dz60_probe(struct i2c_client *client, mc9s08dz60_probe()
115 static int mc9s08dz60_remove(struct i2c_client *client) mc9s08dz60_remove()
/linux-4.1.27/drivers/mfd/
H A Dtps6507x.c40 struct i2c_client *i2c = tps6507x->i2c_client; tps6507x_i2c_read_device()
68 struct i2c_client *i2c = tps6507x->i2c_client; tps6507x_i2c_write_device()
87 static int tps6507x_i2c_probe(struct i2c_client *i2c, tps6507x_i2c_probe()
99 tps6507x->i2c_client = i2c; tps6507x_i2c_probe()
107 static int tps6507x_i2c_remove(struct i2c_client *i2c) tps6507x_i2c_remove()
H A D88pm860x-i2c.c18 int pm860x_reg_read(struct i2c_client *i2c, int reg) pm860x_reg_read()
34 int pm860x_reg_write(struct i2c_client *i2c, int reg, pm860x_reg_write()
47 int pm860x_bulk_read(struct i2c_client *i2c, int reg, pm860x_bulk_read()
60 int pm860x_bulk_write(struct i2c_client *i2c, int reg, pm860x_bulk_write()
73 int pm860x_set_bits(struct i2c_client *i2c, int reg, pm860x_set_bits()
86 static int read_device(struct i2c_client *i2c, int reg, read_device()
122 static int write_device(struct i2c_client *i2c, int reg, write_device()
143 int pm860x_page_reg_write(struct i2c_client *i2c, int reg, pm860x_page_reg_write()
161 int pm860x_page_bulk_read(struct i2c_client *i2c, int reg, pm860x_page_bulk_read()
H A Dstmpe-i2c.c22 struct i2c_client *i2c = stmpe->client; i2c_reg_read()
29 struct i2c_client *i2c = stmpe->client; i2c_reg_write()
36 struct i2c_client *i2c = stmpe->client; i2c_block_read()
44 struct i2c_client *i2c = stmpe->client; i2c_block_write()
69 stmpe_i2c_probe(struct i2c_client *i2c, const struct i2c_device_id *id) stmpe_i2c_probe()
93 static int stmpe_i2c_remove(struct i2c_client *i2c) stmpe_i2c_remove()
H A Dmax8925-i2c.c21 static inline int max8925_read_device(struct i2c_client *i2c, max8925_read_device()
37 static inline int max8925_write_device(struct i2c_client *i2c, max8925_write_device()
52 int max8925_reg_read(struct i2c_client *i2c, int reg) max8925_reg_read()
69 int max8925_reg_write(struct i2c_client *i2c, int reg, max8925_reg_write()
83 int max8925_bulk_read(struct i2c_client *i2c, int reg, max8925_bulk_read()
97 int max8925_bulk_write(struct i2c_client *i2c, int reg, max8925_bulk_write()
111 int max8925_set_bits(struct i2c_client *i2c, int reg, max8925_set_bits()
151 static int max8925_probe(struct i2c_client *client, max8925_probe()
205 static int max8925_remove(struct i2c_client *client) max8925_remove()
218 struct i2c_client *client = container_of(dev, struct i2c_client, dev); max8925_suspend()
228 struct i2c_client *client = container_of(dev, struct i2c_client, dev); max8925_resume()
H A Dmax8997.c60 int max8997_read_reg(struct i2c_client *i2c, u8 reg, u8 *dest) max8997_read_reg()
77 int max8997_bulk_read(struct i2c_client *i2c, u8 reg, int count, u8 *buf) max8997_bulk_read()
92 int max8997_write_reg(struct i2c_client *i2c, u8 reg, u8 value) max8997_write_reg()
104 int max8997_bulk_write(struct i2c_client *i2c, u8 reg, int count, u8 *buf) max8997_bulk_write()
119 int max8997_update_reg(struct i2c_client *i2c, u8 reg, u8 val, u8 mask) max8997_update_reg()
167 static inline unsigned long max8997_i2c_get_driver_data(struct i2c_client *i2c, max8997_i2c_get_driver_data()
178 static int max8997_i2c_probe(struct i2c_client *i2c, max8997_i2c_probe()
265 static int max8997_i2c_remove(struct i2c_client *i2c) max8997_i2c_remove()
439 struct i2c_client *i2c = container_of(dev, struct i2c_client, dev); max8997_freeze()
461 struct i2c_client *i2c = container_of(dev, struct i2c_client, dev); max8997_restore()
483 struct i2c_client *i2c = container_of(dev, struct i2c_client, dev); max8997_suspend()
493 struct i2c_client *i2c = container_of(dev, struct i2c_client, dev); max8997_resume()
H A Dmax8998.c58 int max8998_read_reg(struct i2c_client *i2c, u8 reg, u8 *dest) max8998_read_reg()
75 int max8998_bulk_read(struct i2c_client *i2c, u8 reg, int count, u8 *buf) max8998_bulk_read()
90 int max8998_write_reg(struct i2c_client *i2c, u8 reg, u8 value) max8998_write_reg()
102 int max8998_bulk_write(struct i2c_client *i2c, u8 reg, int count, u8 *buf) max8998_bulk_write()
117 int max8998_update_reg(struct i2c_client *i2c, u8 reg, u8 val, u8 mask) max8998_update_reg()
172 static inline unsigned long max8998_i2c_get_driver_data(struct i2c_client *i2c, max8998_i2c_get_driver_data()
184 static int max8998_i2c_probe(struct i2c_client *i2c, max8998_i2c_probe()
257 static int max8998_i2c_remove(struct i2c_client *i2c) max8998_i2c_remove()
277 struct i2c_client *i2c = container_of(dev, struct i2c_client, dev); max8998_suspend()
287 struct i2c_client *i2c = container_of(dev, struct i2c_client, dev); max8998_resume()
347 struct i2c_client *i2c = container_of(dev, struct i2c_client, dev); max8998_freeze()
360 struct i2c_client *i2c = container_of(dev, struct i2c_client, dev); max8998_restore()
H A Dmax77843.c101 static int max77843_probe(struct i2c_client *i2c, max77843_probe()
172 static int max77843_remove(struct i2c_client *i2c) max77843_remove()
198 struct i2c_client *i2c = container_of(dev, struct i2c_client, dev); max77843_suspend()
210 struct i2c_client *i2c = container_of(dev, struct i2c_client, dev); max77843_resume()
H A Dtps65912-i2c.c28 struct i2c_client *i2c = tps65912->control_data; tps65912_i2c_read()
55 struct i2c_client *i2c = tps65912->control_data; tps65912_i2c_write()
75 static int tps65912_i2c_probe(struct i2c_client *i2c, tps65912_i2c_probe()
94 static int tps65912_i2c_remove(struct i2c_client *i2c) tps65912_i2c_remove()
H A Dadp5520.c32 struct i2c_client *client;
41 static int __adp5520_read(struct i2c_client *client, __adp5520_read()
56 static int __adp5520_write(struct i2c_client *client, __adp5520_write()
70 static int __adp5520_ack_bits(struct i2c_client *client, int reg, __adp5520_ack_bits()
206 static int adp5520_probe(struct i2c_client *client, adp5520_probe()
307 static int adp5520_remove(struct i2c_client *client) adp5520_remove()
322 struct i2c_client *client = to_i2c_client(dev); adp5520_suspend()
334 struct i2c_client *client = to_i2c_client(dev); adp5520_resume()
H A Dwm8350-i2c.c26 static int wm8350_i2c_probe(struct i2c_client *i2c, wm8350_i2c_probe()
51 static int wm8350_i2c_remove(struct i2c_client *i2c) wm8350_i2c_remove()
H A D88pm80x.c52 int pm80x_init(struct i2c_client *client) pm80x_init()
136 struct i2c_client *client = container_of(dev, struct i2c_client, dev); pm80x_suspend()
148 struct i2c_client *client = container_of(dev, struct i2c_client, dev); pm80x_resume()
H A Dmenf21bmc.c30 static int menf21bmc_wdt_exit_prod_mode(struct i2c_client *client) menf21bmc_wdt_exit_prod_mode()
56 menf21bmc_probe(struct i2c_client *client, const struct i2c_device_id *ids) menf21bmc_probe()
109 static int menf21bmc_remove(struct i2c_client *client) menf21bmc_remove()
H A Dcros_ec_i2c.c27 struct i2c_client *client = to_i2c_client(dev); to_ec_dev()
35 struct i2c_client *client = ec_dev->priv; cros_ec_cmd_xfer_i2c()
130 static int cros_ec_i2c_probe(struct i2c_client *client, cros_ec_i2c_probe()
159 static int cros_ec_i2c_remove(struct i2c_client *client) cros_ec_i2c_remove()
/linux-4.1.27/drivers/media/i2c/cx25840/
H A Dcx25840-core.h53 struct i2c_client *c;
125 int cx25840_write(struct i2c_client *client, u16 addr, u8 value);
126 int cx25840_write4(struct i2c_client *client, u16 addr, u32 value);
127 u8 cx25840_read(struct i2c_client *client, u16 addr);
128 u32 cx25840_read4(struct i2c_client *client, u16 addr);
129 int cx25840_and_or(struct i2c_client *client, u16 addr, unsigned mask, u8 value);
130 int cx25840_and_or4(struct i2c_client *client, u16 addr, u32 and_mask,
132 void cx25840_std_setup(struct i2c_client *client);
136 int cx25840_loadfw(struct i2c_client *client);
140 void cx25840_audio_set_path(struct i2c_client *client);
H A Dcx25840-firmware.c45 static void start_fw_load(struct i2c_client *client) start_fw_load()
56 static void end_fw_load(struct i2c_client *client) end_fw_load()
68 static const char *get_fw_name(struct i2c_client *client) get_fw_name()
81 static int check_fw_load(struct i2c_client *client, int size) check_fw_load()
98 static int fw_write(struct i2c_client *client, const u8 *data, int size) fw_write()
108 int cx25840_loadfw(struct i2c_client *client) cx25840_loadfw()
/linux-4.1.27/drivers/staging/iio/addac/
H A Dadt7316-i2c.c23 struct i2c_client *cl = client; adt7316_i2c_read()
43 struct i2c_client *cl = client; adt7316_i2c_write()
55 struct i2c_client *cl = client; adt7316_i2c_multi_read()
74 struct i2c_client *cl = client; adt7316_i2c_multi_write()
95 static int adt7316_i2c_probe(struct i2c_client *client, adt7316_i2c_probe()
/linux-4.1.27/drivers/hwmon/pmbus/
H A Dpmbus.h363 int (*read_byte_data)(struct i2c_client *client, int page, int reg);
364 int (*read_word_data)(struct i2c_client *client, int page, int reg);
365 int (*write_word_data)(struct i2c_client *client, int page, int reg,
367 int (*write_byte)(struct i2c_client *client, int page, u8 value);
373 int (*identify)(struct i2c_client *client,
398 void pmbus_clear_cache(struct i2c_client *client);
399 int pmbus_set_page(struct i2c_client *client, u8 page);
400 int pmbus_read_word_data(struct i2c_client *client, u8 page, u8 reg);
401 int pmbus_write_word_data(struct i2c_client *client, u8 page, u8 reg, u16 word);
402 int pmbus_read_byte_data(struct i2c_client *client, int page, u8 reg);
403 int pmbus_write_byte(struct i2c_client *client, int page, u8 value);
404 int pmbus_write_byte_data(struct i2c_client *client, int page, u8 reg,
406 int pmbus_update_byte_data(struct i2c_client *client, int page, u8 reg,
408 void pmbus_clear_faults(struct i2c_client *client);
409 bool pmbus_check_byte_register(struct i2c_client *client, int page, int reg);
410 bool pmbus_check_word_register(struct i2c_client *client, int page, int reg);
411 int pmbus_do_probe(struct i2c_client *client, const struct i2c_device_id *id,
413 int pmbus_do_remove(struct i2c_client *client);
414 const struct pmbus_driver_info *pmbus_get_driver_info(struct i2c_client
H A Dmax16064.c31 static int max16064_read_word_data(struct i2c_client *client, int page, int reg) max16064_read_word_data()
55 static int max16064_write_word_data(struct i2c_client *client, int page, max16064_write_word_data()
100 static int max16064_probe(struct i2c_client *client, max16064_probe()
H A Dpmbus_core.c121 void pmbus_clear_cache(struct i2c_client *client) pmbus_clear_cache()
129 int pmbus_set_page(struct i2c_client *client, u8 page) pmbus_set_page()
147 int pmbus_write_byte(struct i2c_client *client, int page, u8 value) pmbus_write_byte()
165 static int _pmbus_write_byte(struct i2c_client *client, int page, u8 value) _pmbus_write_byte()
179 int pmbus_write_word_data(struct i2c_client *client, u8 page, u8 reg, u16 word) pmbus_write_word_data()
195 static int _pmbus_write_word_data(struct i2c_client *client, int page, int reg, _pmbus_write_word_data()
212 int pmbus_read_word_data(struct i2c_client *client, u8 page, u8 reg) pmbus_read_word_data()
228 static int _pmbus_read_word_data(struct i2c_client *client, int page, int reg) _pmbus_read_word_data()
244 int pmbus_read_byte_data(struct i2c_client *client, int page, u8 reg) pmbus_read_byte_data()
258 int pmbus_write_byte_data(struct i2c_client *client, int page, u8 reg, u8 value) pmbus_write_byte_data()
270 int pmbus_update_byte_data(struct i2c_client *client, int page, u8 reg, pmbus_update_byte_data()
293 static int _pmbus_read_byte_data(struct i2c_client *client, int page, int reg) _pmbus_read_byte_data()
307 static void pmbus_clear_fault_page(struct i2c_client *client, int page) pmbus_clear_fault_page()
312 void pmbus_clear_faults(struct i2c_client *client) pmbus_clear_faults()
322 static int pmbus_check_status_cml(struct i2c_client *client) pmbus_check_status_cml()
336 static bool pmbus_check_register(struct i2c_client *client, pmbus_check_register()
337 int (*func)(struct i2c_client *client, pmbus_check_register()
351 bool pmbus_check_byte_register(struct i2c_client *client, int page, int reg) pmbus_check_byte_register()
357 bool pmbus_check_word_register(struct i2c_client *client, int page, int reg) pmbus_check_word_register()
363 const struct pmbus_driver_info *pmbus_get_driver_info(struct i2c_client *client) pmbus_get_driver_info()
386 struct i2c_client *client = to_i2c_client(dev->parent); pmbus_update_device()
771 struct i2c_client *client = to_i2c_client(dev->parent); pmbus_set_sensor()
976 static int pmbus_add_limit_attrs(struct i2c_client *client, pmbus_add_limit_attrs()
1015 static int pmbus_add_sensor_attrs_one(struct i2c_client *client, pmbus_add_sensor_attrs_one()
1059 static int pmbus_add_sensor_attrs(struct i2c_client *client, pmbus_add_sensor_attrs()
1574 static int pmbus_add_fan_attributes(struct i2c_client *client, pmbus_add_fan_attributes()
1641 static int pmbus_find_attributes(struct i2c_client *client, pmbus_find_attributes()
1679 static int pmbus_identify_common(struct i2c_client *client, pmbus_identify_common()
1716 static int pmbus_init_common(struct i2c_client *client, struct pmbus_data *data, pmbus_init_common()
1767 struct i2c_client *client = to_i2c_client(dev->parent); pmbus_regulator_is_enabled()
1781 struct i2c_client *client = to_i2c_client(dev->parent); _pmbus_regulator_on_off()
1841 int pmbus_do_probe(struct i2c_client *client, const struct i2c_device_id *id, pmbus_do_probe()
1910 int pmbus_do_remove(struct i2c_client *client) pmbus_do_remove()
H A Dmax8688.c43 static int max8688_read_word_data(struct i2c_client *client, int page, int reg) max8688_read_word_data()
73 static int max8688_write_word_data(struct i2c_client *client, int page, int reg, max8688_write_word_data()
99 static int max8688_read_byte_data(struct i2c_client *client, int page, int reg) max8688_read_byte_data()
177 static int max8688_probe(struct i2c_client *client, max8688_probe()
/linux-4.1.27/drivers/hwmon/
H A Dmenf21bmc_hwmon.c41 struct i2c_client *i2c_client; member in struct:menf21bmc_hwmon
66 val = i2c_smbus_read_word_data(drv_data->i2c_client, menf21bmc_hwmon_update()
86 val = i2c_smbus_read_word_data(drv_data->i2c_client, menf21bmc_hwmon_get_volt_limits()
93 val = i2c_smbus_read_word_data(drv_data->i2c_client, menf21bmc_hwmon_get_volt_limits()
191 struct i2c_client *i2c_client = to_i2c_client(pdev->dev.parent); menf21bmc_hwmon_probe() local
199 drv_data->i2c_client = i2c_client; menf21bmc_hwmon_probe()
H A Dadt7411.c54 struct i2c_client *client;
63 static int adt7411_read_10_bit(struct i2c_client *client, u8 lsb_reg, adt7411_read_10_bit()
87 static int adt7411_modify_bit(struct i2c_client *client, u8 reg, u8 bit, adt7411_modify_bit()
115 struct i2c_client *client = data->client; adt7411_show_vdd()
126 struct i2c_client *client = data->client; adt7411_show_temp()
143 struct i2c_client *client = data->client; adt7411_show_input()
186 struct i2c_client *client = data->client; adt7411_show_bit()
198 struct i2c_client *client = data->client; adt7411_set_bit()
253 static int adt7411_detect(struct i2c_client *client, adt7411_detect()
282 static int adt7411_probe(struct i2c_client *client, adt7411_probe()
H A Dg760a.c40 struct i2c_client *client;
71 static int g760a_read_value(struct i2c_client *client, enum g760a_regs reg) g760a_read_value()
76 static int g760a_write_value(struct i2c_client *client, enum g760a_regs reg, g760a_write_value()
89 struct i2c_client *client = data->client; g760a_update_client()
146 struct i2c_client *client = data->client; set_pwm()
177 static int g760a_probe(struct i2c_client *client, g760a_probe()
H A Dw83l785ts.c78 static int w83l785ts_probe(struct i2c_client *client,
80 static int w83l785ts_detect(struct i2c_client *client,
82 static int w83l785ts_remove(struct i2c_client *client);
83 static u8 w83l785ts_read_value(struct i2c_client *client, u8 reg, u8 defval);
142 static int w83l785ts_detect(struct i2c_client *client, w83l785ts_detect()
179 static int w83l785ts_probe(struct i2c_client *client, w83l785ts_probe()
221 static int w83l785ts_remove(struct i2c_client *client) w83l785ts_remove()
234 static u8 w83l785ts_read_value(struct i2c_client *client, u8 reg, u8 defval) w83l785ts_read_value()
275 struct i2c_client *client = to_i2c_client(dev); w83l785ts_update_device()
H A Dlm95245.c115 struct i2c_client *client;
141 struct i2c_client *client = data->client; lm95245_update_device()
162 static unsigned long lm95245_read_conversion_rate(struct i2c_client *client) lm95245_read_conversion_rate()
188 static unsigned long lm95245_set_conversion_rate(struct i2c_client *client, lm95245_set_conversion_rate()
250 struct i2c_client *client = data->client; set_limit()
286 struct i2c_client *client = data->client; set_crit_hyst()
322 struct i2c_client *client = data->client; set_type()
369 struct i2c_client *client = data->client; set_interval()
423 static int lm95245_detect(struct i2c_client *new_client, lm95245_detect()
456 static void lm95245_init_client(struct i2c_client *client, lm95245_init_client()
474 static int lm95245_probe(struct i2c_client *client, lm95245_probe()
H A Dadt7410.c43 static int adt7410_i2c_probe(struct i2c_client *client, adt7410_i2c_probe()
53 static int adt7410_i2c_remove(struct i2c_client *client) adt7410_i2c_remove()
H A Datxp1.c49 struct i2c_client *client;
65 struct i2c_client *client = data->client; atxp1_update_device()
106 struct i2c_client *client = data->client; atxp1_storevcore()
182 struct i2c_client *client = data->client; atxp1_storegpio1()
228 struct i2c_client *client = data->client; atxp1_storegpio2()
263 static int atxp1_detect(struct i2c_client *new_client, atxp1_detect()
304 static int atxp1_probe(struct i2c_client *client, atxp1_probe()
H A Dpcf8591.c87 static void pcf8591_init_client(struct i2c_client *client);
118 struct i2c_client *client = to_i2c_client(dev); set_out0_output()
149 struct i2c_client *client = to_i2c_client(dev); set_out0_enable()
197 static int pcf8591_probe(struct i2c_client *client, pcf8591_probe()
247 static int pcf8591_remove(struct i2c_client *client) pcf8591_remove()
258 static void pcf8591_init_client(struct i2c_client *client) pcf8591_init_client()
276 struct i2c_client *client = to_i2c_client(dev); pcf8591_read_channel()
H A Dtmp102.c54 struct i2c_client *client;
84 struct i2c_client *client = tmp102->client; tmp102_update_device()
126 struct i2c_client *client = tmp102->client; tmp102_set_temp()
165 static int tmp102_probe(struct i2c_client *client, tmp102_probe()
236 static int tmp102_remove(struct i2c_client *client) tmp102_remove()
259 struct i2c_client *client = to_i2c_client(dev); tmp102_suspend()
272 struct i2c_client *client = to_i2c_client(dev); tmp102_resume()
H A Dads1015.c73 static int ads1015_read_adc(struct i2c_client *client, unsigned int channel) ads1015_read_adc()
123 static int ads1015_reg_to_mv(struct i2c_client *client, unsigned int channel, ads1015_reg_to_mv()
139 struct i2c_client *client = to_i2c_client(dev); show_in()
165 static int ads1015_remove(struct i2c_client *client) ads1015_remove()
177 static int ads1015_get_channels_config_of(struct i2c_client *client) ads1015_get_channels_config_of()
234 static void ads1015_get_channels_config(struct i2c_client *client) ads1015_get_channels_config()
260 static int ads1015_probe(struct i2c_client *client, ads1015_probe()
H A Dlm77.c65 struct i2c_client *client;
95 static u16 lm77_read_value(struct i2c_client *client, u8 reg) lm77_read_value()
103 static int lm77_write_value(struct i2c_client *client, u8 reg, u16 value) lm77_write_value()
114 struct i2c_client *client = data->client; lm77_update_device()
168 struct i2c_client *client = data->client; set_temp()
194 struct i2c_client *client = data->client; set_temp_hyst()
252 static int lm77_detect(struct i2c_client *client, struct i2c_board_info *info) lm77_detect()
322 static void lm77_init_client(struct i2c_client *client) lm77_init_client()
330 static int lm77_probe(struct i2c_client *client, const struct i2c_device_id *id) lm77_probe()
H A Dlm75.c77 struct i2c_client *client;
93 static int lm75_read_value(struct i2c_client *client, u8 reg);
94 static int lm75_write_value(struct i2c_client *client, u8 reg, u16 value);
137 struct i2c_client *client = data->client; set_temp()
189 lm75_probe(struct i2c_client *client, const struct i2c_device_id *id) lm75_probe()
315 static int lm75_remove(struct i2c_client *client) lm75_remove()
353 static int lm75_detect(struct i2c_client *new_client, lm75_detect()
448 struct i2c_client *client = to_i2c_client(dev); lm75_suspend()
462 struct i2c_client *client = to_i2c_client(dev); lm75_resume()
504 static int lm75_read_value(struct i2c_client *client, u8 reg) lm75_read_value()
512 static int lm75_write_value(struct i2c_client *client, u8 reg, u16 value) lm75_write_value()
523 struct i2c_client *client = data->client; lm75_update_device()
H A Dgl520sm.c78 struct i2c_client *client;
107 static int gl520_read_value(struct i2c_client *client, u8 reg) gl520_read_value()
115 static int gl520_write_value(struct i2c_client *client, u8 reg, u16 value) gl520_write_value()
126 struct i2c_client *client = data->client; gl520_update_device()
260 struct i2c_client *client = data->client; set_in_min()
294 struct i2c_client *client = data->client; set_in_max()
395 struct i2c_client *client = data->client; set_fan_min()
434 struct i2c_client *client = data->client; set_fan_div()
483 struct i2c_client *client = data->client; set_fan_off()
551 struct i2c_client *client = data->client; set_temp_max()
571 struct i2c_client *client = data->client; set_temp_max_hyst()
624 struct i2c_client *client = data->client; set_beep_enable()
648 struct i2c_client *client = data->client; set_beep_mask()
702 struct i2c_client *client = data->client; set_beep()
819 static int gl520_detect(struct i2c_client *client, struct i2c_board_info *info) gl520_detect()
841 static void gl520_init_client(struct i2c_client *client) gl520_init_client()
878 static int gl520_probe(struct i2c_client *client, gl520_probe()
H A Dmcp3021.c56 static int mcp3021_read16(struct i2c_client *client) mcp3021_read16()
89 struct i2c_client *client = to_i2c_client(dev); show_in_input()
104 static int mcp3021_probe(struct i2c_client *client, mcp3021_probe()
159 static int mcp3021_remove(struct i2c_client *client) mcp3021_remove()
/linux-4.1.27/include/linux/
H A Di2c.h45 struct i2c_client;
50 typedef int (*i2c_slave_cb_t)(struct i2c_client *, enum i2c_slave_event, u8 *);
62 extern int i2c_master_send(const struct i2c_client *client, const char *buf,
64 extern int i2c_master_recv(const struct i2c_client *client, char *buf,
87 extern s32 i2c_smbus_read_byte(const struct i2c_client *client);
88 extern s32 i2c_smbus_write_byte(const struct i2c_client *client, u8 value);
89 extern s32 i2c_smbus_read_byte_data(const struct i2c_client *client,
91 extern s32 i2c_smbus_write_byte_data(const struct i2c_client *client,
93 extern s32 i2c_smbus_read_word_data(const struct i2c_client *client,
95 extern s32 i2c_smbus_write_word_data(const struct i2c_client *client,
99 i2c_smbus_read_word_swapped(const struct i2c_client *client, u8 command) i2c_smbus_read_word_swapped()
107 i2c_smbus_write_word_swapped(const struct i2c_client *client, i2c_smbus_write_word_swapped()
114 extern s32 i2c_smbus_read_block_data(const struct i2c_client *client,
116 extern s32 i2c_smbus_write_block_data(const struct i2c_client *client,
119 extern s32 i2c_smbus_read_i2c_block_data(const struct i2c_client *client,
121 extern s32 i2c_smbus_write_i2c_block_data(const struct i2c_client *client,
155 * The i2c_client structure which is handed to the @detect callback is
156 * not a real i2c_client. It is initialized just enough so that you can
170 int (*probe)(struct i2c_client *, const struct i2c_device_id *);
171 int (*remove)(struct i2c_client *);
174 void (*shutdown)(struct i2c_client *);
181 void (*alert)(struct i2c_client *, unsigned int data);
186 int (*command)(struct i2c_client *client, unsigned int cmd, void *arg);
192 int (*detect)(struct i2c_client *, struct i2c_board_info *);
199 * struct i2c_client - represent an I2C slave device
213 * An i2c_client identifies a single device (i.e. chip) connected to an
217 struct i2c_client { struct
231 #define to_i2c_client(d) container_of(d, struct i2c_client, dev)
233 extern struct i2c_client *i2c_verify_client(struct device *dev);
236 static inline struct i2c_client *kobj_to_i2c_client(struct kobject *kobj) kobj_to_i2c_client()
242 static inline void *i2c_get_clientdata(const struct i2c_client *dev) i2c_get_clientdata()
247 static inline void i2c_set_clientdata(struct i2c_client *dev, void *data) i2c_set_clientdata()
263 extern int i2c_slave_register(struct i2c_client *client, i2c_slave_cb_t slave_cb);
264 extern int i2c_slave_unregister(struct i2c_client *client);
266 static inline int i2c_slave_event(struct i2c_client *client, i2c_slave_event()
275 * @type: chip type, to initialize i2c_client.name
276 * @flags: to initialize i2c_client.flags
277 * @addr: stored in i2c_client.addr
278 * @platform_data: stored in i2c_client.dev.platform_data
279 * @archdata: copied into i2c_client.dev.archdata
282 * @irq: stored in i2c_client.irq
325 extern struct i2c_client *
334 extern struct i2c_client *
346 extern struct i2c_client *
349 extern void i2c_unregister_device(struct i2c_client *);
408 int (*reg_slave)(struct i2c_client *client);
409 int (*unreg_slave)(struct i2c_client *client);
590 extern struct i2c_client *i2c_use_client(struct i2c_client *client);
591 extern void i2c_release_client(struct i2c_client *client);
593 /* call the i2c_client->command() of all attached clients with
635 /* must call put_device() when done with returned i2c_client device */
636 extern struct i2c_client *of_find_i2c_device_by_node(struct device_node *node);
643 static inline struct i2c_client *of_find_i2c_device_by_node(struct device_node *node) of_find_i2c_device_by_node()
H A Di2c-smbus.h47 struct i2c_client *i2c_setup_smbus_alert(struct i2c_adapter *adapter,
49 int i2c_handle_smbus_alert(struct i2c_client *ara);
/linux-4.1.27/drivers/misc/lis3lv02d/
H A Dlis3lv02d_i2c.c61 struct i2c_client *c = lis3->bus_priv; lis3_i2c_write()
67 struct i2c_client *c = lis3->bus_priv; lis3_i2c_read()
75 struct i2c_client *c = lis3->bus_priv; lis3_i2c_blockread()
116 static int lis3lv02d_i2c_probe(struct i2c_client *client, lis3lv02d_i2c_probe()
193 static int lis3lv02d_i2c_remove(struct i2c_client *client) lis3lv02d_i2c_remove()
212 struct i2c_client *client = container_of(dev, struct i2c_client, dev); lis3lv02d_i2c_suspend()
222 struct i2c_client *client = container_of(dev, struct i2c_client, dev); lis3lv02d_i2c_resume()
241 struct i2c_client *client = container_of(dev, struct i2c_client, dev); lis3_i2c_runtime_suspend()
250 struct i2c_client *client = container_of(dev, struct i2c_client, dev); lis3_i2c_runtime_resume()
/linux-4.1.27/drivers/power/
H A Dmax17040_battery.c41 struct i2c_client *client;
81 static int max17040_write_reg(struct i2c_client *client, int reg, u8 value) max17040_write_reg()
93 static int max17040_read_reg(struct i2c_client *client, int reg) max17040_read_reg()
105 static void max17040_reset(struct i2c_client *client) max17040_reset()
111 static void max17040_get_vcell(struct i2c_client *client) max17040_get_vcell()
123 static void max17040_get_soc(struct i2c_client *client) max17040_get_soc()
135 static void max17040_get_version(struct i2c_client *client) max17040_get_version()
146 static void max17040_get_online(struct i2c_client *client) max17040_get_online()
156 static void max17040_get_status(struct i2c_client *client) max17040_get_status()
209 static int max17040_probe(struct i2c_client *client, max17040_probe()
246 static int max17040_remove(struct i2c_client *client) max17040_remove()
259 struct i2c_client *client = to_i2c_client(dev); max17040_suspend()
268 struct i2c_client *client = to_i2c_client(dev); max17040_resume()
H A Drt5033_battery.c18 static int rt5033_battery_get_capacity(struct i2c_client *client) rt5033_battery_get_capacity()
28 static int rt5033_battery_get_present(struct i2c_client *client) rt5033_battery_get_present()
38 static int rt5033_battery_get_watt_prop(struct i2c_client *client, rt5033_battery_get_watt_prop()
118 static int rt5033_battery_probe(struct i2c_client *client, rt5033_battery_probe()
155 static int rt5033_battery_remove(struct i2c_client *client) rt5033_battery_remove()
H A Dsbs-battery.c158 struct i2c_client *client;
174 static int sbs_read_word_data(struct i2c_client *client, u8 address) sbs_read_word_data()
200 static int sbs_read_string_data(struct i2c_client *client, u8 address, sbs_read_string_data()
268 static int sbs_write_word_data(struct i2c_client *client, u8 address, sbs_write_word_data()
297 struct i2c_client *client, enum power_supply_property psp, sbs_get_battery_presence_and_health()
360 static int sbs_get_battery_property(struct i2c_client *client, sbs_get_battery_property()
407 static int sbs_get_battery_string_property(struct i2c_client *client, sbs_get_battery_string_property()
420 static void sbs_unit_adjustment(struct i2c_client *client, sbs_unit_adjustment()
468 static enum sbs_battery_mode sbs_set_battery_mode(struct i2c_client *client, sbs_set_battery_mode()
492 static int sbs_get_battery_capacity(struct i2c_client *client, sbs_get_battery_capacity()
525 static int sbs_get_battery_serial_number(struct i2c_client *client, sbs_get_battery_serial_number()
540 static int sbs_get_property_index(struct i2c_client *client, sbs_get_property_index()
560 struct i2c_client *client = chip->client; sbs_get_property()
735 struct i2c_client *client) sbs_of_populate_pdata()
790 struct i2c_client *client) sbs_of_populate_pdata()
804 static int sbs_probe(struct i2c_client *client, sbs_probe()
927 static int sbs_remove(struct i2c_client *client) sbs_remove()
950 struct i2c_client *client = to_i2c_client(dev); sbs_suspend()
/linux-4.1.27/drivers/macintosh/ams/
H A Dams.h49 struct i2c_client *i2c_client; member in struct:ams
H A Dams-i2c.c63 static int ams_i2c_probe(struct i2c_client *client,
65 static int ams_i2c_remove(struct i2c_client *client);
85 return i2c_smbus_read_byte_data(ams_info.i2c_client, reg); ams_i2c_read()
90 return i2c_smbus_write_byte_data(ams_info.i2c_client, reg, value); ams_i2c_write()
163 static int ams_i2c_probe(struct i2c_client *client, ams_i2c_probe()
173 ams_info.i2c_client = client; ams_i2c_probe()
238 static int ams_i2c_remove(struct i2c_client *client) ams_i2c_remove()
/linux-4.1.27/include/media/
H A Dtveeprom.h48 void tveeprom_hauppauge_analog(struct i2c_client *c, struct tveeprom *tvee,
51 int tveeprom_read(struct i2c_client *c, unsigned char *eedata, int len);
/linux-4.1.27/drivers/base/regmap/
H A Dregmap-i2c.c23 struct i2c_client *i2c = to_i2c_client(dev); regmap_smbus_byte_reg_read()
42 struct i2c_client *i2c = to_i2c_client(dev); regmap_smbus_byte_reg_write()
59 struct i2c_client *i2c = to_i2c_client(dev); regmap_smbus_word_reg_read()
78 struct i2c_client *i2c = to_i2c_client(dev); regmap_smbus_word_reg_write()
95 struct i2c_client *i2c = to_i2c_client(dev); regmap_smbus_word_read_swapped()
114 struct i2c_client *i2c = to_i2c_client(dev); regmap_smbus_word_write_swapped()
130 struct i2c_client *i2c = to_i2c_client(dev); regmap_i2c_write()
147 struct i2c_client *i2c = to_i2c_client(dev); regmap_i2c_gather_write()
181 struct i2c_client *i2c = to_i2c_client(dev); regmap_i2c_read()
212 static const struct regmap_bus *regmap_get_i2c_bus(struct i2c_client *i2c, regmap_get_i2c_bus()
245 struct regmap *regmap_init_i2c(struct i2c_client *i2c, regmap_init_i2c()
267 struct regmap *devm_regmap_init_i2c(struct i2c_client *i2c, devm_regmap_init_i2c()
/linux-4.1.27/drivers/usb/phy/
H A Dphy-isp1301.c25 struct i2c_client *client;
35 static struct i2c_client *isp1301_i2c_client;
91 static int isp1301_probe(struct i2c_client *client, isp1301_probe()
119 static int isp1301_remove(struct i2c_client *client) isp1301_remove()
147 struct i2c_client *isp1301_get_client(struct device_node *node) isp1301_get_client()
/linux-4.1.27/drivers/input/joystick/
H A Das5011.c76 struct i2c_client *i2c_client; member in struct:as5011_device
82 static int as5011_i2c_write(struct i2c_client *client, as5011_i2c_write()
99 static int as5011_i2c_read(struct i2c_client *client, as5011_i2c_read()
144 error = as5011_i2c_read(as5011->i2c_client, AS5011_X_RES_INT, &x); as5011_axis_interrupt()
148 error = as5011_i2c_read(as5011->i2c_client, AS5011_Y_RES_INT, &y); as5011_axis_interrupt()
163 struct i2c_client *client = as5011->i2c_client; as5011_configure_chip()
228 static int as5011_probe(struct i2c_client *client, as5011_probe()
263 as5011->i2c_client = client; as5011_probe()
345 static int as5011_remove(struct i2c_client *client) as5011_remove()
/linux-4.1.27/drivers/media/platform/s5p-tv/
H A Dsii9234_drv.c34 struct i2c_client *client;
45 static inline int sii9234_readb(struct i2c_client *client, int addr) sii9234_readb()
50 static inline int sii9234_writeb(struct i2c_client *client, int addr, int value) sii9234_writeb()
55 static inline int sii9234_writeb_mask(struct i2c_client *client, int addr, sii9234_writeb_mask()
67 static inline int sii9234_readb_idx(struct i2c_client *client, int addr) sii9234_readb_idx()
79 static inline int sii9234_writeb_idx(struct i2c_client *client, int addr, sii9234_writeb_idx()
93 static inline int sii9234_writeb_idx_mask(struct i2c_client *client, int addr, sii9234_writeb_idx_mask()
107 struct i2c_client *client = ctx->client; sii9234_reset()
142 static int sii9234_verify_version(struct i2c_client *client) sii9234_verify_version()
218 struct i2c_client *client = ctx->client; sii9234_set_internal()
234 struct i2c_client *client = ctx->client; sii9234_runtime_suspend()
248 struct i2c_client *client = ctx->client; sii9234_runtime_resume()
317 static int sii9234_probe(struct i2c_client *client, sii9234_probe()
379 static int sii9234_remove(struct i2c_client *client) sii9234_remove()
/linux-4.1.27/drivers/rtc/
H A Drtc-pcf8523.c42 static int pcf8523_read(struct i2c_client *client, u8 reg, u8 *valuep) pcf8523_read()
67 static int pcf8523_write(struct i2c_client *client, u8 reg, u8 value) pcf8523_write()
85 static int pcf8523_select_capacitance(struct i2c_client *client, bool high) pcf8523_select_capacitance()
106 static int pcf8523_set_pm(struct i2c_client *client, u8 pm) pcf8523_set_pm()
124 static int pcf8523_stop_rtc(struct i2c_client *client) pcf8523_stop_rtc()
142 static int pcf8523_start_rtc(struct i2c_client *client) pcf8523_start_rtc()
162 struct i2c_client *client = to_i2c_client(dev); pcf8523_rtc_read_time()
217 struct i2c_client *client = to_i2c_client(dev); pcf8523_rtc_set_time()
258 struct i2c_client *client = to_i2c_client(dev); pcf8523_rtc_ioctl()
289 static int pcf8523_probe(struct i2c_client *client, pcf8523_probe()
H A Drtc-isl1208.c66 isl1208_i2c_read_regs(struct i2c_client *client, u8 reg, u8 buf[], isl1208_i2c_read_regs()
96 isl1208_i2c_set_regs(struct i2c_client *client, u8 reg, u8 const buf[], isl1208_i2c_set_regs()
123 isl1208_i2c_validate_client(struct i2c_client *client) isl1208_i2c_validate_client()
145 isl1208_i2c_get_sr(struct i2c_client *client) isl1208_i2c_get_sr()
151 isl1208_i2c_get_atr(struct i2c_client *client) isl1208_i2c_get_atr()
176 isl1208_i2c_get_dtr(struct i2c_client *client) isl1208_i2c_get_dtr()
189 isl1208_i2c_get_usr(struct i2c_client *client) isl1208_i2c_get_usr()
203 isl1208_i2c_set_usr(struct i2c_client *client, u16 usr) isl1208_i2c_set_usr()
215 isl1208_rtc_toggle_alarm(struct i2c_client *client, int enable) isl1208_rtc_toggle_alarm()
241 struct i2c_client *const client = to_i2c_client(dev); isl1208_rtc_proc()
278 isl1208_i2c_read_time(struct i2c_client *client, struct rtc_time *tm) isl1208_i2c_read_time()
321 isl1208_i2c_read_alarm(struct i2c_client *client, struct rtc_wkalrm *alarm) isl1208_i2c_read_alarm()
368 isl1208_i2c_set_alarm(struct i2c_client *client, struct rtc_wkalrm *alarm) isl1208_i2c_set_alarm()
426 isl1208_i2c_set_time(struct i2c_client *client, struct rtc_time const *tm) isl1208_i2c_set_time()
504 struct i2c_client *client = data; isl1208_rtc_interrupt()
631 isl1208_probe(struct i2c_client *client, const struct i2c_device_id *id) isl1208_probe()
688 isl1208_remove(struct i2c_client *client) isl1208_remove()
H A Drtc-max6900.c55 static int max6900_i2c_read_regs(struct i2c_client *client, u8 *buf) max6900_i2c_read_regs()
95 static int max6900_i2c_write_regs(struct i2c_client *client, u8 const *buf) max6900_i2c_write_regs()
144 static int max6900_i2c_read_time(struct i2c_client *client, struct rtc_time *tm) max6900_i2c_read_time()
165 static int max6900_i2c_clear_write_protect(struct i2c_client *client) max6900_i2c_clear_write_protect()
171 max6900_i2c_set_time(struct i2c_client *client, struct rtc_time const *tm) max6900_i2c_set_time()
214 max6900_probe(struct i2c_client *client, const struct i2c_device_id *id) max6900_probe()
H A Drtc-ds1374.c71 struct i2c_client *client;
85 static int ds1374_read_rtc(struct i2c_client *client, u32 *time, ds1374_read_rtc()
110 static int ds1374_write_rtc(struct i2c_client *client, u32 time, ds1374_write_rtc()
129 static int ds1374_check_rtc_status(struct i2c_client *client) ds1374_check_rtc_status()
163 struct i2c_client *client = to_i2c_client(dev); ds1374_read_time()
176 struct i2c_client *client = to_i2c_client(dev); ds1374_set_time()
190 struct i2c_client *client = to_i2c_client(dev); ds1374_read_alarm()
228 struct i2c_client *client = to_i2c_client(dev); ds1374_set_alarm()
289 struct i2c_client *client = dev_id; ds1374_irq()
300 struct i2c_client *client = ds1374->client; ds1374_work()
333 struct i2c_client *client = to_i2c_client(dev); ds1374_alarm_irq_enable()
375 static struct i2c_client *save_client;
609 static int ds1374_probe(struct i2c_client *client, ds1374_probe()
663 static int ds1374_remove(struct i2c_client *client) ds1374_remove()
690 struct i2c_client *client = to_i2c_client(dev); ds1374_suspend()
699 struct i2c_client *client = to_i2c_client(dev); ds1374_resume()
H A Drtc-hym8563.c87 struct i2c_client *client;
101 struct i2c_client *client = to_i2c_client(dev); hym8563_rtc_read_time()
126 struct i2c_client *client = to_i2c_client(dev); hym8563_rtc_set_time()
174 struct i2c_client *client = to_i2c_client(dev); hym8563_rtc_alarm_irq_enable()
191 struct i2c_client *client = to_i2c_client(dev); hym8563_rtc_read_alarm()
231 struct i2c_client *client = to_i2c_client(dev); hym8563_rtc_set_alarm()
309 struct i2c_client *client = hym8563->client; hym8563_clkout_recalc_rate()
335 struct i2c_client *client = hym8563->client; hym8563_clkout_set_rate()
356 struct i2c_client *client = hym8563->client; hym8563_clkout_control()
383 struct i2c_client *client = hym8563->client; hym8563_clkout_is_prepared()
403 struct i2c_client *client = hym8563->client; hym8563_clkout_register_clk()
443 struct i2c_client *client = hym8563->client; hym8563_irq()
471 static int hym8563_init_device(struct i2c_client *client) hym8563_init_device()
503 struct i2c_client *client = to_i2c_client(dev); hym8563_suspend()
519 struct i2c_client *client = to_i2c_client(dev); hym8563_resume()
530 static int hym8563_probe(struct i2c_client *client, hym8563_probe()
H A Drtc-pcf8583.c52 static int pcf8583_get_datetime(struct i2c_client *client, struct rtc_time *dt) pcf8583_get_datetime()
90 static int pcf8583_set_datetime(struct i2c_client *client, struct rtc_time *dt, int datetoo) pcf8583_set_datetime()
118 static int pcf8583_get_ctrl(struct i2c_client *client, unsigned char *ctrl) pcf8583_get_ctrl()
124 static int pcf8583_set_ctrl(struct i2c_client *client, unsigned char *ctrl) pcf8583_set_ctrl()
135 static int pcf8583_read_mem(struct i2c_client *client, struct rtc_mem *mem) pcf8583_read_mem()
160 static int pcf8583_write_mem(struct i2c_client *client, struct rtc_mem *mem) pcf8583_write_mem()
177 struct i2c_client *client = to_i2c_client(dev); pcf8583_rtc_read_time()
227 struct i2c_client *client = to_i2c_client(dev); pcf8583_rtc_set_time()
281 static int pcf8583_probe(struct i2c_client *client, pcf8583_probe()
H A Drtc-ds3232.c53 struct i2c_client *client;
68 static int ds3232_check_rtc_status(struct i2c_client *client) ds3232_check_rtc_status()
105 struct i2c_client *client = to_i2c_client(dev); ds3232_read_time()
162 struct i2c_client *client = to_i2c_client(dev); ds3232_set_time()
193 struct i2c_client *client = to_i2c_client(dev); ds3232_read_alarm()
239 struct i2c_client *client = to_i2c_client(dev); ds3232_set_alarm()
286 static void ds3232_update_alarm(struct i2c_client *client) ds3232_update_alarm()
330 struct i2c_client *client = to_i2c_client(dev); ds3232_alarm_irq_enable()
347 struct i2c_client *client = dev_id; ds3232_irq()
366 struct i2c_client *client = ds3232->client; ds3232_work()
409 static int ds3232_probe(struct i2c_client *client, ds3232_probe()
442 static int ds3232_remove(struct i2c_client *client) ds3232_remove()
462 struct i2c_client *client = to_i2c_client(dev); ds3232_suspend()
475 struct i2c_client *client = to_i2c_client(dev); ds3232_resume()
H A Drtc-rx8025.c75 struct i2c_client *client;
82 static int rx8025_read_reg(struct i2c_client *client, int number, u8 *value) rx8025_read_reg()
95 static int rx8025_read_regs(struct i2c_client *client, rx8025_read_regs()
110 static int rx8025_write_reg(struct i2c_client *client, int number, u8 value) rx8025_write_reg()
121 static int rx8025_write_regs(struct i2c_client *client, rx8025_write_regs()
136 struct i2c_client *client = dev_id; rx8025_irq()
148 struct i2c_client *client = rx8025->client; rx8025_work()
264 static int rx8025_init_client(struct i2c_client *client, int *need_reset) rx8025_init_client()
321 struct i2c_client *client = rx8025->client; rx8025_read_alarm()
365 struct i2c_client *client = to_i2c_client(dev); rx8025_set_alarm()
454 struct i2c_client *client = to_i2c_client(dev); rx8025_get_clock_adjust()
472 struct i2c_client *client = to_i2c_client(dev); rx8025_set_clock_adjust()
537 static int rx8025_probe(struct i2c_client *client, rx8025_probe()
610 static int rx8025_remove(struct i2c_client *client) rx8025_remove()
H A Drtc-ds1672.c33 static int ds1672_get_datetime(struct i2c_client *client, struct rtc_time *tm) ds1672_get_datetime()
75 static int ds1672_set_mmss(struct i2c_client *client, unsigned long secs) ds1672_set_mmss()
106 static int ds1672_get_control(struct i2c_client *client, u8 *status) ds1672_get_control()
137 struct i2c_client *client = to_i2c_client(dev); show_control()
156 static int ds1672_probe(struct i2c_client *client, ds1672_probe()
H A Drtc-rv3029c2.c88 rv3029c2_i2c_read_regs(struct i2c_client *client, u8 reg, u8 *buf, rv3029c2_i2c_read_regs()
106 rv3029c2_i2c_write_regs(struct i2c_client *client, u8 reg, u8 const buf[], rv3029c2_i2c_write_regs()
117 rv3029c2_i2c_get_sr(struct i2c_client *client, u8 *buf) rv3029c2_i2c_get_sr()
128 rv3029c2_i2c_set_sr(struct i2c_client *client, u8 val) rv3029c2_i2c_set_sr()
142 rv3029c2_i2c_read_time(struct i2c_client *client, struct rtc_time *tm) rv3029c2_i2c_read_time()
191 rv3029c2_i2c_read_alarm(struct i2c_client *client, struct rtc_wkalrm *alarm) rv3029c2_i2c_read_alarm()
229 static int rv3029c2_rtc_i2c_alarm_set_irq(struct i2c_client *client, rv3029c2_rtc_i2c_alarm_set_irq()
255 static int rv3029c2_rtc_i2c_set_alarm(struct i2c_client *client, rv3029c2_rtc_i2c_set_alarm()
329 rv3029c2_i2c_set_time(struct i2c_client *client, struct rtc_time const *tm) rv3029c2_i2c_set_time()
388 static int rv3029c2_probe(struct i2c_client *client, rv3029c2_probe()
H A Drtc-s35390a.c57 struct i2c_client *client[8];
64 struct i2c_client *client = s35390a->client[reg]; s35390a_set_reg()
81 struct i2c_client *client = s35390a->client[reg]; s35390a_get_reg()
151 static int s35390a_set_datetime(struct i2c_client *client, struct rtc_time *tm) s35390a_set_datetime()
179 static int s35390a_get_datetime(struct i2c_client *client, struct rtc_time *tm) s35390a_get_datetime()
209 static int s35390a_set_alarm(struct i2c_client *client, struct rtc_wkalrm *alm) s35390a_set_alarm()
262 static int s35390a_read_alarm(struct i2c_client *client, struct rtc_wkalrm *alm) s35390a_read_alarm()
327 static int s35390a_probe(struct i2c_client *client, s35390a_probe()
409 static int s35390a_remove(struct i2c_client *client) s35390a_remove()
H A Drtc-em3027.c47 struct i2c_client *client = to_i2c_client(dev); em3027_get_time()
85 struct i2c_client *client = to_i2c_client(dev); em3027_set_time()
117 static int em3027_probe(struct i2c_client *client, em3027_probe()
H A Drtc-ds1307.c115 struct i2c_client *client;
118 s32 (*read_block_data)(const struct i2c_client *client, u8 command,
120 s32 (*write_block_data)(const struct i2c_client *client, u8 command,
130 u8 (*do_trickle_setup)(struct i2c_client *, uint32_t, bool);
133 static u8 do_trickle_setup_ds1339(struct i2c_client *,
191 static s32 ds1307_read_block_data_once(const struct i2c_client *client, ds1307_read_block_data_once()
205 static s32 ds1307_read_block_data(const struct i2c_client *client, u8 command, ds1307_read_block_data()
231 static s32 ds1307_write_block_data(const struct i2c_client *client, u8 command, ds1307_write_block_data()
267 static s32 ds1307_native_smbus_write_block_data(const struct i2c_client *client, ds1307_native_smbus_write_block_data()
289 static s32 ds1307_native_smbus_read_block_data(const struct i2c_client *client, ds1307_native_smbus_read_block_data()
327 struct i2c_client *client; ds1307_work()
362 struct i2c_client *client = dev_id; ds1307_irq()
469 struct i2c_client *client = to_i2c_client(dev); ds1337_read_alarm()
521 struct i2c_client *client = to_i2c_client(dev); ds1337_set_alarm()
584 struct i2c_client *client = to_i2c_client(dev); ds1307_alarm_irq_enable()
640 struct i2c_client *client = ds1307->client; mcp794xx_work()
675 struct i2c_client *client = to_i2c_client(dev); mcp794xx_read_alarm()
714 struct i2c_client *client = to_i2c_client(dev); mcp794xx_set_alarm()
760 struct i2c_client *client = to_i2c_client(dev); mcp794xx_alarm_irq_enable()
794 struct i2c_client *client; ds1307_nvram_read()
820 struct i2c_client *client; ds1307_nvram_write()
846 static u8 do_trickle_setup_ds1339(struct i2c_client *client, do_trickle_setup_ds1339()
870 static void ds1307_trickle_of_init(struct i2c_client *client, ds1307_trickle_of_init()
888 static int ds1307_probe(struct i2c_client *client, ds1307_probe()
1230 static int ds1307_remove(struct i2c_client *client) ds1307_remove()
/linux-4.1.27/drivers/gpu/drm/i2c/
H A Dsil164_drv.c36 struct i2c_client *duallink_slave;
105 sil164_write(struct i2c_client *client, uint8_t addr, uint8_t val) sil164_write()
117 sil164_read(struct i2c_client *client, uint8_t addr) sil164_read()
139 sil164_save_state(struct i2c_client *client, uint8_t *state) sil164_save_state()
148 sil164_restore_state(struct i2c_client *client, uint8_t *state) sil164_restore_state()
157 sil164_set_power_state(struct i2c_client *client, bool on) sil164_set_power_state()
170 sil164_init_state(struct i2c_client *client, sil164_init_state()
301 struct i2c_client *client = drm_i2c_encoder_get_client(encoder); sil164_encoder_detect()
362 sil164_probe(struct i2c_client *client, const struct i2c_device_id *id) sil164_probe()
383 sil164_remove(struct i2c_client *client) sil164_remove()
388 static struct i2c_client * sil164_detect_slave()
389 sil164_detect_slave(struct i2c_client *client) sil164_detect_slave()
409 sil164_encoder_init(struct i2c_client *client, sil164_encoder_init()
/linux-4.1.27/drivers/media/i2c/soc_camera/
H A Dmt9t031.c86 static struct mt9t031 *to_mt9t031(const struct i2c_client *client) to_mt9t031()
91 static int reg_read(struct i2c_client *client, const u8 reg) reg_read()
96 static int reg_write(struct i2c_client *client, const u8 reg, reg_write()
102 static int reg_set(struct i2c_client *client, const u8 reg, reg_set()
113 static int reg_clear(struct i2c_client *client, const u8 reg, reg_clear()
124 static int set_shutter(struct i2c_client *client, const u32 data) set_shutter()
136 static int get_shutter(struct i2c_client *client, u32 *data) get_shutter()
150 static int mt9t031_idle(struct i2c_client *client) mt9t031_idle()
166 struct i2c_client *client = v4l2_get_subdevdata(sd); mt9t031_s_stream()
201 static int mt9t031_set_params(struct i2c_client *client, mt9t031_set_params()
300 struct i2c_client *client = v4l2_get_subdevdata(sd); mt9t031_s_crop()
317 struct i2c_client *client = v4l2_get_subdevdata(sd); mt9t031_g_crop()
343 struct i2c_client *client = v4l2_get_subdevdata(sd); mt9t031_g_fmt()
358 struct i2c_client *client = v4l2_get_subdevdata(sd); mt9t031_s_fmt()
398 struct i2c_client *client = v4l2_get_subdevdata(sd); mt9t031_g_register()
415 struct i2c_client *client = v4l2_get_subdevdata(sd); mt9t031_s_register()
451 struct i2c_client *client = v4l2_get_subdevdata(sd); mt9t031_s_ctrl()
553 struct i2c_client *client = v4l2_get_subdevdata(sd); mt9t031_runtime_resume()
587 struct i2c_client *client = v4l2_get_subdevdata(sd); mt9t031_s_power()
613 static int mt9t031_video_probe(struct i2c_client *client) mt9t031_video_probe()
654 struct i2c_client *client = v4l2_get_subdevdata(sd); mt9t031_g_skip_top_lines()
688 struct i2c_client *client = v4l2_get_subdevdata(sd); mt9t031_g_mbus_config()
703 struct i2c_client *client = v4l2_get_subdevdata(sd); mt9t031_s_mbus_config()
736 static int mt9t031_probe(struct i2c_client *client, mt9t031_probe()
810 static int mt9t031_remove(struct i2c_client *client) mt9t031_remove()
H A Dmt9m001.c105 static struct mt9m001 *to_mt9m001(const struct i2c_client *client) to_mt9m001()
110 static int reg_read(struct i2c_client *client, const u8 reg) reg_read()
115 static int reg_write(struct i2c_client *client, const u8 reg, reg_write()
121 static int reg_set(struct i2c_client *client, const u8 reg, reg_set()
132 static int reg_clear(struct i2c_client *client, const u8 reg, reg_clear()
143 static int mt9m001_init(struct i2c_client *client) mt9m001_init()
166 struct i2c_client *client = v4l2_get_subdevdata(sd); mt9m001_s_stream()
176 struct i2c_client *client = v4l2_get_subdevdata(sd); mt9m001_s_crop()
230 struct i2c_client *client = v4l2_get_subdevdata(sd); mt9m001_g_crop()
256 struct i2c_client *client = v4l2_get_subdevdata(sd); mt9m001_g_fmt()
271 struct i2c_client *client = v4l2_get_subdevdata(sd); mt9m001_s_fmt()
299 struct i2c_client *client = v4l2_get_subdevdata(sd); mt9m001_try_fmt()
327 struct i2c_client *client = v4l2_get_subdevdata(sd); mt9m001_g_register()
344 struct i2c_client *client = v4l2_get_subdevdata(sd); mt9m001_s_register()
358 struct i2c_client *client = v4l2_get_subdevdata(sd); mt9m001_s_power()
387 struct i2c_client *client = v4l2_get_subdevdata(sd); mt9m001_s_ctrl()
463 struct i2c_client *client) mt9m001_video_probe()
544 struct i2c_client *client = v4l2_get_subdevdata(sd); mt9m001_g_skip_top_lines()
568 struct i2c_client *client = v4l2_get_subdevdata(sd); mt9m001_enum_fmt()
581 struct i2c_client *client = v4l2_get_subdevdata(sd); mt9m001_g_mbus_config()
597 const struct i2c_client *client = v4l2_get_subdevdata(sd); mt9m001_s_mbus_config()
635 static int mt9m001_probe(struct i2c_client *client, mt9m001_probe()
703 static int mt9m001_remove(struct i2c_client *client) mt9m001_remove()
H A Dtw9910.c331 static struct tw9910_priv *to_tw9910(const struct i2c_client *client) to_tw9910()
337 static int tw9910_mask_set(struct i2c_client *client, u8 command, tw9910_mask_set()
350 static int tw9910_set_scale(struct i2c_client *client, tw9910_set_scale()
372 static int tw9910_set_hsync(struct i2c_client *client) tw9910_set_hsync()
399 static void tw9910_reset(struct i2c_client *client) tw9910_reset()
405 static int tw9910_power(struct i2c_client *client, int enable) tw9910_power()
461 struct i2c_client *client = v4l2_get_subdevdata(sd); tw9910_s_stream()
501 struct i2c_client *client = v4l2_get_subdevdata(sd); tw9910_g_std()
511 struct i2c_client *client = v4l2_get_subdevdata(sd); tw9910_s_std()
526 struct i2c_client *client = v4l2_get_subdevdata(sd); tw9910_g_register()
549 struct i2c_client *client = v4l2_get_subdevdata(sd); tw9910_s_register()
561 struct i2c_client *client = v4l2_get_subdevdata(sd); tw9910_s_power()
570 struct i2c_client *client = v4l2_get_subdevdata(sd); tw9910_set_frame()
655 struct i2c_client *client = v4l2_get_subdevdata(sd); tw9910_g_crop()
674 struct i2c_client *client = v4l2_get_subdevdata(sd); tw9910_cropcap()
697 struct i2c_client *client = v4l2_get_subdevdata(sd); tw9910_g_fmt()
743 struct i2c_client *client = v4l2_get_subdevdata(sd); tw9910_try_fmt()
770 static int tw9910_video_probe(struct i2c_client *client) tw9910_video_probe()
837 struct i2c_client *client = v4l2_get_subdevdata(sd); tw9910_g_mbus_config()
853 struct i2c_client *client = v4l2_get_subdevdata(sd); tw9910_s_mbus_config()
903 static int tw9910_probe(struct i2c_client *client, tw9910_probe()
947 static int tw9910_remove(struct i2c_client *client) tw9910_remove()
H A Dov9640.c169 static int ov9640_reg_read(struct i2c_client *client, u8 reg, u8 *val) ov9640_reg_read()
198 static int ov9640_reg_write(struct i2c_client *client, u8 reg, u8 val) ov9640_reg_write()
227 static int ov9640_reg_rmw(struct i2c_client *client, u8 reg, u8 set, u8 unset) ov9640_reg_rmw()
251 static int ov9640_reset(struct i2c_client *client) ov9640_reset()
273 struct i2c_client *client = v4l2_get_subdevdata(&priv->subdev); ov9640_s_ctrl()
294 struct i2c_client *client = v4l2_get_subdevdata(sd); ov9640_get_register()
315 struct i2c_client *client = v4l2_get_subdevdata(sd); ov9640_set_register()
326 struct i2c_client *client = v4l2_get_subdevdata(sd); ov9640_s_power()
378 static int ov9640_write_regs(struct i2c_client *client, u32 width, ov9640_write_regs()
466 static int ov9640_prog_dflt(struct i2c_client *client) ov9640_prog_dflt()
487 struct i2c_client *client = v4l2_get_subdevdata(sd); ov9640_s_fmt()
578 static int ov9640_video_probe(struct i2c_client *client) ov9640_video_probe()
645 struct i2c_client *client = v4l2_get_subdevdata(sd); ov9640_g_mbus_config()
675 static int ov9640_probe(struct i2c_client *client, ov9640_probe()
721 static int ov9640_remove(struct i2c_client *client) ov9640_remove()
H A Dmt9t112.c89 struct i2c_client *client;
141 static struct mt9t112_priv *to_mt9t112(const struct i2c_client *client) to_mt9t112()
148 static int __mt9t112_reg_read(const struct i2c_client *client, u16 command) __mt9t112_reg_read()
179 static int __mt9t112_reg_write(const struct i2c_client *client, __mt9t112_reg_write()
208 static int __mt9t112_reg_mask_set(const struct i2c_client *client, __mt9t112_reg_mask_set()
224 static int __mt9t112_mcu_read(const struct i2c_client *client, u16 command) __mt9t112_mcu_read()
235 static int __mt9t112_mcu_write(const struct i2c_client *client, __mt9t112_mcu_write()
247 static int __mt9t112_mcu_mask_set(const struct i2c_client *client, __mt9t112_mcu_mask_set()
262 static int mt9t112_reset(const struct i2c_client *client) mt9t112_reset()
277 static int mt9t112_clock_info(const struct i2c_client *client, u32 ext) mt9t112_clock_info()
350 static int mt9t112_set_a_frame_size(const struct i2c_client *client, mt9t112_set_a_frame_size()
379 static int mt9t112_set_pll_dividers(const struct i2c_client *client, mt9t112_set_pll_dividers()
414 static int mt9t112_init_pll(const struct i2c_client *client) mt9t112_init_pll()
502 static int mt9t112_init_setting(const struct i2c_client *client) mt9t112_init_setting()
660 static int mt9t112_auto_focus_setting(const struct i2c_client *client) mt9t112_auto_focus_setting()
682 static int mt9t112_auto_focus_trigger(const struct i2c_client *client) mt9t112_auto_focus_trigger()
691 static int mt9t112_init_camera(const struct i2c_client *client) mt9t112_init_camera()
744 struct i2c_client *client = v4l2_get_subdevdata(sd); mt9t112_g_register()
758 struct i2c_client *client = v4l2_get_subdevdata(sd); mt9t112_s_register()
769 struct i2c_client *client = v4l2_get_subdevdata(sd); mt9t112_s_power()
790 struct i2c_client *client = v4l2_get_subdevdata(sd); mt9t112_s_stream()
889 struct i2c_client *client = v4l2_get_subdevdata(sd); mt9t112_g_crop()
900 struct i2c_client *client = v4l2_get_subdevdata(sd); mt9t112_s_crop()
910 struct i2c_client *client = v4l2_get_subdevdata(sd); mt9t112_g_fmt()
925 struct i2c_client *client = v4l2_get_subdevdata(sd); mt9t112_s_fmt()
946 struct i2c_client *client = v4l2_get_subdevdata(sd); mt9t112_try_fmt()
972 struct i2c_client *client = v4l2_get_subdevdata(sd); mt9t112_enum_fmt()
986 struct i2c_client *client = v4l2_get_subdevdata(sd); mt9t112_g_mbus_config()
1001 struct i2c_client *client = v4l2_get_subdevdata(sd); mt9t112_s_mbus_config()
1032 static int mt9t112_camera_probe(struct i2c_client *client) mt9t112_camera_probe()
1070 static int mt9t112_probe(struct i2c_client *client, mt9t112_probe()
1111 static int mt9t112_remove(struct i2c_client *client) mt9t112_remove()
H A Dimx074.c88 static struct imx074 *to_imx074(const struct i2c_client *client) to_imx074()
105 static int reg_write(struct i2c_client *client, const u16 addr, const u8 data) reg_write()
128 static int reg_read(struct i2c_client *client, const u16 addr) reg_read()
178 struct i2c_client *client = v4l2_get_subdevdata(sd); imx074_s_fmt()
197 struct i2c_client *client = v4l2_get_subdevdata(sd); imx074_g_fmt()
250 struct i2c_client *client = v4l2_get_subdevdata(sd); imx074_s_stream()
258 struct i2c_client *client = v4l2_get_subdevdata(sd); imx074_s_power()
296 static int imx074_video_probe(struct i2c_client *client) imx074_video_probe()
413 static int imx074_probe(struct i2c_client *client, imx074_probe()
464 static int imx074_remove(struct i2c_client *client) imx074_remove()
H A Dmt9m111.c231 static struct mt9m111 *to_mt9m111(const struct i2c_client *client) to_mt9m111()
236 static int reg_page_map_set(struct i2c_client *client, const u16 reg) reg_page_map_set()
254 static int mt9m111_reg_read(struct i2c_client *client, const u16 reg) mt9m111_reg_read()
266 static int mt9m111_reg_write(struct i2c_client *client, const u16 reg, mt9m111_reg_write()
278 static int mt9m111_reg_set(struct i2c_client *client, const u16 reg, mt9m111_reg_set()
289 static int mt9m111_reg_clear(struct i2c_client *client, const u16 reg, mt9m111_reg_clear()
300 static int mt9m111_reg_mask(struct i2c_client *client, const u16 reg, mt9m111_reg_mask()
314 struct i2c_client *client = v4l2_get_subdevdata(&mt9m111->subdev); mt9m111_set_context()
322 struct i2c_client *client = v4l2_get_subdevdata(&mt9m111->subdev); mt9m111_setup_rect_ctx()
336 struct i2c_client *client = v4l2_get_subdevdata(&mt9m111->subdev); mt9m111_setup_geometry()
367 struct i2c_client *client = v4l2_get_subdevdata(&mt9m111->subdev); mt9m111_enable()
373 struct i2c_client *client = v4l2_get_subdevdata(&mt9m111->subdev); mt9m111_reset()
467 struct i2c_client *client = v4l2_get_subdevdata(&mt9m111->subdev); mt9m111_set_pixfmt()
537 struct i2c_client *client = v4l2_get_subdevdata(sd); mt9m111_try_fmt()
606 struct i2c_client *client = v4l2_get_subdevdata(sd); mt9m111_g_register()
625 struct i2c_client *client = v4l2_get_subdevdata(sd); mt9m111_s_register()
639 struct i2c_client *client = v4l2_get_subdevdata(&mt9m111->subdev); mt9m111_set_flip()
652 struct i2c_client *client = v4l2_get_subdevdata(&mt9m111->subdev); mt9m111_get_global_gain()
664 struct i2c_client *client = v4l2_get_subdevdata(&mt9m111->subdev); mt9m111_set_global_gain()
682 struct i2c_client *client = v4l2_get_subdevdata(&mt9m111->subdev); mt9m111_set_autoexposure()
691 struct i2c_client *client = v4l2_get_subdevdata(&mt9m111->subdev); mt9m111_set_autowhitebalance()
723 struct i2c_client *client = v4l2_get_subdevdata(&mt9m111->subdev); mt9m111_suspend()
761 struct i2c_client *client = v4l2_get_subdevdata(&mt9m111->subdev); mt9m111_init()
776 struct i2c_client *client = v4l2_get_subdevdata(&mt9m111->subdev); mt9m111_power_on()
795 struct i2c_client *client = v4l2_get_subdevdata(&mt9m111->subdev); mt9m111_power_off()
855 struct i2c_client *client = v4l2_get_subdevdata(sd); mt9m111_g_mbus_config()
887 static int mt9m111_video_probe(struct i2c_client *client) mt9m111_video_probe()
926 static int mt9m111_probe(struct i2c_client *client, mt9m111_probe()
1013 static int mt9m111_remove(struct i2c_client *client) mt9m111_remove()
H A Dov5642.c624 static struct ov5642 *to_ov5642(const struct i2c_client *client) to_ov5642()
642 static int reg_read(struct i2c_client *client, u16 reg, u8 *val) reg_read()
664 static int reg_write(struct i2c_client *client, u16 reg, u8 val) reg_write()
683 static int reg_write16(struct i2c_client *client, u16 reg, u16 val16) reg_write16()
696 struct i2c_client *client = v4l2_get_subdevdata(sd); ov5642_get_register()
714 struct i2c_client *client = v4l2_get_subdevdata(sd); ov5642_set_register()
723 static int ov5642_write_array(struct i2c_client *client, ov5642_write_array()
738 struct i2c_client *client = v4l2_get_subdevdata(sd); ov5642_set_resolution()
792 struct i2c_client *client = v4l2_get_subdevdata(sd); ov5642_try_fmt()
812 struct i2c_client *client = v4l2_get_subdevdata(sd); ov5642_s_fmt()
828 struct i2c_client *client = v4l2_get_subdevdata(sd); ov5642_g_fmt()
854 struct i2c_client *client = v4l2_get_subdevdata(sd); ov5642_s_crop()
882 struct i2c_client *client = v4l2_get_subdevdata(sd); ov5642_g_crop()
920 struct i2c_client *client = v4l2_get_subdevdata(sd); ov5642_s_power()
965 static int ov5642_video_probe(struct i2c_client *client) ov5642_video_probe()
1003 static int ov5642_probe(struct i2c_client *client, ov5642_probe()
1041 static int ov5642_remove(struct i2c_client *client) ov5642_remove()
H A Drj54n1cb0c.c423 static struct rj54n1 *to_rj54n1(const struct i2c_client *client) to_rj54n1()
428 static int reg_read(struct i2c_client *client, const u16 reg) reg_read()
444 static int reg_write(struct i2c_client *client, const u16 reg, reg_write()
462 static int reg_set(struct i2c_client *client, const u16 reg, reg_set()
473 static int reg_write_multiple(struct i2c_client *client, reg_write_multiple()
500 struct i2c_client *client = v4l2_get_subdevdata(sd); rj54n1_s_stream()
506 static int rj54n1_set_rect(struct i2c_client *client, rj54n1_set_rect()
528 static int rj54n1_commit(struct i2c_client *client) rj54n1_commit()
542 struct i2c_client *client = v4l2_get_subdevdata(sd); rj54n1_s_crop()
577 struct i2c_client *client = v4l2_get_subdevdata(sd); rj54n1_g_crop()
603 struct i2c_client *client = v4l2_get_subdevdata(sd); rj54n1_g_fmt()
623 struct i2c_client *client = v4l2_get_subdevdata(sd); rj54n1_sensor_scale()
807 static int rj54n1_set_clock(struct i2c_client *client) rj54n1_set_clock()
891 static int rj54n1_reg_init(struct i2c_client *client) rj54n1_reg_init()
965 struct i2c_client *client = v4l2_get_subdevdata(sd); rj54n1_try_fmt()
996 struct i2c_client *client = v4l2_get_subdevdata(sd); rj54n1_s_fmt()
1128 struct i2c_client *client = v4l2_get_subdevdata(sd); rj54n1_g_register()
1146 struct i2c_client *client = v4l2_get_subdevdata(sd); rj54n1_s_register()
1161 struct i2c_client *client = v4l2_get_subdevdata(sd); rj54n1_s_power()
1172 struct i2c_client *client = v4l2_get_subdevdata(sd); rj54n1_s_ctrl()
1223 struct i2c_client *client = v4l2_get_subdevdata(sd); rj54n1_g_mbus_config()
1239 struct i2c_client *client = v4l2_get_subdevdata(sd); rj54n1_s_mbus_config()
1272 static int rj54n1_video_probe(struct i2c_client *client, rj54n1_video_probe()
1309 static int rj54n1_probe(struct i2c_client *client, rj54n1_probe()
1377 static int rj54n1_remove(struct i2c_client *client) rj54n1_remove()
/linux-4.1.27/drivers/misc/eeprom/
H A Dmax6875.c49 struct i2c_client *fake_client;
57 static void max6875_update_slice(struct i2c_client *client, int slice) max6875_update_slice()
113 struct i2c_client *client = kobj_to_i2c_client(kobj); max6875_read()
142 static int max6875_probe(struct i2c_client *client, max6875_probe()
167 /* Init real i2c_client */ max6875_probe()
184 static int max6875_remove(struct i2c_client *client) max6875_remove()
/linux-4.1.27/drivers/iio/adc/
H A Dti-adc081c.c18 struct i2c_client *i2c;
68 static int adc081c_probe(struct i2c_client *client, adc081c_probe()
115 static int adc081c_remove(struct i2c_client *client) adc081c_remove()
/linux-4.1.27/drivers/input/keyboard/
H A Dqt2160.c69 struct i2c_client *client;
81 static int qt2160_read(struct i2c_client *client, u8 reg);
82 static int qt2160_write(struct i2c_client *client, u8 reg, u8 data);
90 struct i2c_client *client = qt2160->client; qt2160_led_work()
130 static int qt2160_read_block(struct i2c_client *client, qt2160_read_block()
183 struct i2c_client *client = qt2160->client; qt2160_get_key_matrix()
255 static int qt2160_read(struct i2c_client *client, u8 reg) qt2160_read()
276 static int qt2160_write(struct i2c_client *client, u8 reg, u8 data) qt2160_write()
292 struct i2c_client *client = qt2160->client; qt2160_register_leds()
346 static bool qt2160_identify(struct i2c_client *client) qt2160_identify()
377 static int qt2160_probe(struct i2c_client *client, qt2160_probe()
472 static int qt2160_remove(struct i2c_client *client) qt2160_remove()
H A Dmax7359_keypad.c64 struct i2c_client *client;
67 static int max7359_write_reg(struct i2c_client *client, u8 reg, u8 val) max7359_write_reg()
77 static int max7359_read_reg(struct i2c_client *client, int reg) max7359_read_reg()
136 static inline void max7359_fall_deepsleep(struct i2c_client *client) max7359_fall_deepsleep()
145 static inline void max7359_take_catnap(struct i2c_client *client) max7359_take_catnap()
166 static void max7359_initialize(struct i2c_client *client) max7359_initialize()
182 static int max7359_probe(struct i2c_client *client, max7359_probe()
266 struct i2c_client *client = to_i2c_client(dev); max7359_suspend()
278 struct i2c_client *client = to_i2c_client(dev); max7359_resume()
H A Dqt1070.c62 struct i2c_client *client;
69 static int qt1070_read(struct i2c_client *client, u8 reg) qt1070_read()
81 static int qt1070_write(struct i2c_client *client, u8 reg, u8 data) qt1070_write()
93 static bool qt1070_identify(struct i2c_client *client) qt1070_identify()
119 struct i2c_client *client = data->client; qt1070_interrupt()
142 static int qt1070_probe(struct i2c_client *client, qt1070_probe()
232 static int qt1070_remove(struct i2c_client *client) qt1070_remove()
248 struct i2c_client *client = to_i2c_client(dev); qt1070_suspend()
259 struct i2c_client *client = to_i2c_client(dev); qt1070_resume()
H A Dmcs_touchkey.c50 struct i2c_client *client;
62 struct i2c_client *client = data->client; mcs_touchkey_interrupt()
99 static int mcs_touchkey_probe(struct i2c_client *client, mcs_touchkey_probe()
202 static int mcs_touchkey_remove(struct i2c_client *client) mcs_touchkey_remove()
215 static void mcs_touchkey_shutdown(struct i2c_client *client) mcs_touchkey_shutdown()
227 struct i2c_client *client = data->client; mcs_touchkey_suspend()
242 struct i2c_client *client = data->client; mcs_touchkey_resume()
/linux-4.1.27/drivers/iio/light/
H A Dcm36651.c133 struct i2c_client *client;
134 struct i2c_client *ps_client;
135 struct i2c_client *ara_client;
148 struct i2c_client *client = cm36651->client; cm36651_setup_reg()
149 struct i2c_client *ps_client = cm36651->ps_client; cm36651_setup_reg()
196 struct i2c_client *client = cm36651->client; cm36651_read_output()
237 struct i2c_client *client = cm36651->client; cm36651_irq_handler()
278 struct i2c_client *client = cm36651->client; cm36651_set_operation_mode()
279 struct i2c_client *ps_client = cm36651->ps_client; cm36651_set_operation_mode()
332 struct i2c_client *client = cm36651->client; cm36651_read_channel()
396 struct i2c_client *client = cm36651->client; cm36651_write_int_time()
397 struct i2c_client *ps_client = cm36651->ps_client; cm36651_write_int_time()
479 struct i2c_client *client = cm36651->client; cm36651_write_raw()
513 struct i2c_client *client = cm36651->client; cm36651_write_prox_thresh()
625 static int cm36651_probe(struct i2c_client *client, cm36651_probe()
709 static int cm36651_remove(struct i2c_client *client) cm36651_remove()
H A Dcm3232.c73 struct i2c_client *client;
89 struct i2c_client *client = chip->client; cm3232_reg_init()
166 struct i2c_client *client = chip->client; cm3232_write_als_it()
203 struct i2c_client *client = chip->client; cm3232_get_lux()
331 static int cm3232_probe(struct i2c_client *client, cm3232_probe()
364 static int cm3232_remove(struct i2c_client *client) cm3232_remove()
386 struct i2c_client *client = chip->client; cm3232_suspend()
400 struct i2c_client *client = chip->client; cm3232_resume()
H A Dtsl4531.c52 struct i2c_client *client;
150 static int tsl4531_check_id(struct i2c_client *client) tsl4531_check_id()
167 static int tsl4531_probe(struct i2c_client *client, tsl4531_probe()
208 static int tsl4531_powerdown(struct i2c_client *client) tsl4531_powerdown()
214 static int tsl4531_remove(struct i2c_client *client) tsl4531_remove()
/linux-4.1.27/drivers/regulator/
H A Dad5398.c22 struct i2c_client *client;
39 static int ad5398_read_reg(struct i2c_client *client, unsigned short *data) ad5398_read_reg()
54 static int ad5398_write_reg(struct i2c_client *client, const unsigned short data) ad5398_write_reg()
70 struct i2c_client *client = chip->client; ad5398_get_current_limit()
86 struct i2c_client *client = chip->client; ad5398_set_current_limit()
126 struct i2c_client *client = chip->client; ad5398_is_enabled()
143 struct i2c_client *client = chip->client; ad5398_enable()
164 struct i2c_client *client = chip->client; ad5398_disable()
214 static int ad5398_probe(struct i2c_client *client, ad5398_probe()
/linux-4.1.27/drivers/nfc/nxp-nci/
H A Di2c.c46 struct i2c_client *i2c_dev;
77 struct i2c_client *client = phy->i2c_dev; nxp_nci_i2c_write()
112 struct i2c_client *client = phy->i2c_dev; nxp_nci_i2c_fw_read()
158 struct i2c_client *client = phy->i2c_dev; nxp_nci_i2c_nci_read()
199 struct i2c_client *client; nxp_nci_i2c_irq_thread_fn()
264 static int nxp_nci_i2c_parse_devtree(struct i2c_client *client) nxp_nci_i2c_parse_devtree()
304 static int nxp_nci_i2c_parse_devtree(struct i2c_client *client) nxp_nci_i2c_parse_devtree()
311 static int nxp_nci_i2c_probe(struct i2c_client *client, nxp_nci_i2c_probe()
378 static int nxp_nci_i2c_remove(struct i2c_client *client) nxp_nci_i2c_remove()
/linux-4.1.27/drivers/nfc/st21nfcb/
H A Di2c.c50 struct i2c_client *i2c_dev;
99 struct i2c_client *client = phy->i2c_dev; st21nfcb_nci_i2c_write()
141 struct i2c_client *client = phy->i2c_dev; st21nfcb_nci_i2c_read()
191 struct i2c_client *client; st21nfcb_nci_irq_thread_fn()
227 static int st21nfcb_nci_i2c_of_request_resources(struct i2c_client *client) st21nfcb_nci_i2c_of_request_resources()
260 static int st21nfcb_nci_i2c_of_request_resources(struct i2c_client *client) st21nfcb_nci_i2c_of_request_resources()
266 static int st21nfcb_nci_i2c_request_resources(struct i2c_client *client) st21nfcb_nci_i2c_request_resources()
292 static int st21nfcb_nci_i2c_probe(struct i2c_client *client, st21nfcb_nci_i2c_probe()
354 static int st21nfcb_nci_i2c_remove(struct i2c_client *client) st21nfcb_nci_i2c_remove()
/linux-4.1.27/drivers/iio/gyro/
H A Dst_gyro_i2c.c58 static int st_gyro_i2c_probe(struct i2c_client *client, st_gyro_i2c_probe()
81 static int st_gyro_i2c_remove(struct i2c_client *client) st_gyro_i2c_remove()
/linux-4.1.27/drivers/iio/magnetometer/
H A Dst_magn_i2c.c42 static int st_magn_i2c_probe(struct i2c_client *client, st_magn_i2c_probe()
65 static int st_magn_i2c_remove(struct i2c_client *client) st_magn_i2c_remove()
/linux-4.1.27/drivers/iio/pressure/
H A Dst_pressure_i2c.c42 static int st_press_i2c_probe(struct i2c_client *client, st_press_i2c_probe()
65 static int st_press_i2c_remove(struct i2c_client *client) st_press_i2c_remove()
/linux-4.1.27/drivers/media/pci/cx25821/
H A Dcx25821-i2c.c298 static struct i2c_client cx25821_i2c_client_template = {
310 bus->i2c_client = cx25821_i2c_client_template; cx25821_i2c_register()
319 bus->i2c_client.adapter = &bus->i2c_adap; cx25821_i2c_register()
322 bus->i2c_client.addr = (0x88 >> 1); cx25821_i2c_register()
360 struct i2c_client *client = &bus->i2c_client; cx25821_i2c_read()
394 struct i2c_client *client = &bus->i2c_client; cx25821_i2c_write()
/linux-4.1.27/drivers/staging/iio/magnetometer/
H A Dhmc5843_i2c.c59 static int hmc5843_i2c_probe(struct i2c_client *cli, hmc5843_i2c_probe()
67 static int hmc5843_i2c_remove(struct i2c_client *client) hmc5843_i2c_remove()
/linux-4.1.27/drivers/media/pci/cx88/
H A Dcx88-i2c.c120 static void do_i2c_scan(const char *name, struct i2c_client *c) do_i2c_scan()
152 core->i2c_client.adapter = &core->i2c_adap; cx88_i2c_init()
153 strlcpy(core->i2c_client.name, "cx88xx internal", I2C_NAME_SIZE); cx88_i2c_init()
172 i2c_transfer(core->i2c_client.adapter, &tuner_msg, 1); cx88_i2c_init()
178 do_i2c_scan(core->name,&core->i2c_client); cx88_i2c_init()
/linux-4.1.27/drivers/media/pci/bt8xx/
H A Dbttv-i2c.c282 btv->i2c_client.addr = addr >> 1; bttv_I2CRead()
283 if (1 != i2c_master_recv(&btv->i2c_client, &buffer, 1)) { bttv_I2CRead()
306 btv->i2c_client.addr = addr >> 1; bttv_I2CWrite()
309 if (bytes != i2c_master_send(&btv->i2c_client, buffer, bytes)) bttv_I2CWrite()
320 btv->i2c_client.addr = addr >> 1; bttv_readee()
321 tveeprom_read(&btv->i2c_client, eedata, 256); bttv_readee()
334 static void do_i2c_scan(char *name, struct i2c_client *c) do_i2c_scan()
352 strlcpy(btv->i2c_client.name, "bttv internal", I2C_NAME_SIZE); init_bttv_i2c()
382 btv->i2c_client.adapter = &btv->c.i2c_adap; init_bttv_i2c()
393 do_i2c_scan(btv->c.v4l2_dev.name, &btv->i2c_client); init_bttv_i2c()
/linux-4.1.27/drivers/media/usb/em28xx/
H A Dem28xx-camera.c64 i2c_master_send(&dev->i2c_client[dev->def_i2c_bus], em28xx_initialize_mt9m111()
91 i2c_master_send(&dev->i2c_client[dev->def_i2c_bus], em28xx_initialize_mt9m001()
108 struct i2c_client client = dev->i2c_client[dev->def_i2c_bus]; em28xx_probe_sensor_micron()
189 dev->i2c_client[dev->def_i2c_bus].addr = client.addr; em28xx_probe_sensor_micron()
205 struct i2c_client client = dev->i2c_client[dev->def_i2c_bus]; em28xx_probe_sensor_omnivision()
294 dev->i2c_client[dev->def_i2c_bus].addr = client.addr; em28xx_probe_sensor_omnivision()
326 struct i2c_client *client = &dev->i2c_client[dev->def_i2c_bus]; em28xx_init_camera()
H A Dem28xx-input.c74 struct i2c_client *i2c_client; member in struct:em28xx_IR
76 int (*get_key_i2c)(struct i2c_client *ir, enum rc_type *protocol, u32 *scancode);
84 static int em28xx_get_key_terratec(struct i2c_client *i2c_dev, em28xx_get_key_terratec()
108 static int em28xx_get_key_em_haup(struct i2c_client *i2c_dev, em28xx_get_key_em_haup()
138 static int em28xx_get_key_pinnacle_usb_grey(struct i2c_client *i2c_dev, em28xx_get_key_pinnacle_usb_grey()
156 static int em28xx_get_key_winfast_usbii_deluxe(struct i2c_client *i2c_dev, em28xx_get_key_winfast_usbii_deluxe()
300 rc = ir->get_key_i2c(ir->i2c_client, &protocol, &scancode); em28xx_i2c_ir_handle_key()
358 if (ir->i2c_client) /* external i2c device */ em28xx_ir_work()
754 ir->i2c_client = kzalloc(sizeof(struct i2c_client), GFP_KERNEL); em28xx_ir_init()
755 if (!ir->i2c_client) em28xx_ir_init()
757 ir->i2c_client->adapter = &ir->dev->i2c_adap[dev->def_i2c_bus]; em28xx_ir_init()
758 ir->i2c_client->addr = i2c_rc_dev_addr; em28xx_ir_init()
759 ir->i2c_client->flags = 0; em28xx_ir_init()
760 /* NOTE: all other fields of i2c_client are unused */ em28xx_ir_init()
819 kfree(ir->i2c_client); em28xx_ir_init()
845 kfree(ir->i2c_client); em28xx_ir_fini()
/linux-4.1.27/drivers/staging/ste_rmi4/
H A Dsynaptics_i2c_rmi4.c153 * @i2c_client: pointer for i2c client
174 struct i2c_client *i2c_client; member in struct:synaptics_rmi4_data
204 struct i2c_client *i2c = pdata->i2c_client; synaptics_rmi4_set_page()
235 struct i2c_client *i2c = pdata->i2c_client; synaptics_rmi4_i2c_block_read()
273 struct i2c_client *i2c = pdata->i2c_client; synaptics_rmi4_i2c_byte_write()
283 retval = i2c_master_send(pdata->i2c_client, txbuf, 2); synaptics_rmi4_i2c_byte_write()
321 struct i2c_client *client = pdata->i2c_client; synpatics_rmi4_touchpad_report()
416 struct i2c_client *client = pdata->i2c_client; synaptics_rmi4_report_device()
443 struct i2c_client *client = pdata->i2c_client; synaptics_rmi4_sensor_report()
528 struct i2c_client *client = pdata->i2c_client; synpatics_rmi4_touchpad_detect()
663 struct i2c_client *client = pdata->i2c_client; synaptics_rmi4_touchpad_config()
711 struct i2c_client *client = pdata->i2c_client; synaptics_rmi4_i2c_query_device()
891 (struct i2c_client *client, const struct i2c_device_id *dev_id) synaptics_rmi4_probe()
935 * Copy i2c_client pointer into RTID's i2c_client pointer for synaptics_rmi4_probe()
938 rmi4_data->i2c_client = client; synaptics_rmi4_probe()
960 /* Store the instance data in the i2c_client */ synaptics_rmi4_probe()
1027 static int synaptics_rmi4_remove(struct i2c_client *client) synaptics_rmi4_remove()
1058 disable_irq(rmi4_data->i2c_client->irq); synaptics_rmi4_suspend()
1096 enable_irq(rmi4_data->i2c_client->irq); synaptics_rmi4_resume()
/linux-4.1.27/drivers/media/usb/go7007/
H A Ds2250-board.c130 struct i2c_client *audio;
159 static int write_reg(struct i2c_client *client, u8 reg, u8 value) write_reg()
193 static int write_reg_fp(struct i2c_client *client, u16 addr, u16 val) write_reg_fp()
257 static int read_reg_fp(struct i2c_client *client, u16 addr, u16 *val) read_reg_fp()
298 static int write_regs(struct i2c_client *client, u8 *regs) write_regs()
311 static int write_regs_fp(struct i2c_client *client, u16 *regs) write_regs_fp()
331 struct i2c_client *client = v4l2_get_subdevdata(sd); s2250_s_video_routing()
355 struct i2c_client *client = v4l2_get_subdevdata(sd); s2250_s_std()
374 struct i2c_client *client = v4l2_get_subdevdata(&state->sd); s2250_s_ctrl()
412 struct i2c_client *client = v4l2_get_subdevdata(sd); s2250_s_mbus_fmt()
493 static int s2250_probe(struct i2c_client *client, s2250_probe()
496 struct i2c_client *audio; s2250_probe()
602 static int s2250_remove(struct i2c_client *client) s2250_remove()
/linux-4.1.27/drivers/hid/i2c-hid/
H A Di2c-hid.c130 struct i2c_client *client; /* i2c client */
154 static int __i2c_hid_command(struct i2c_client *client, __i2c_hid_command()
226 static int i2c_hid_command(struct i2c_client *client, i2c_hid_command()
234 static int i2c_hid_get_report(struct i2c_client *client, u8 reportType, i2c_hid_get_report()
266 * @client: the i2c_client of the device
273 static int i2c_hid_set_or_send_report(struct i2c_client *client, u8 reportType, i2c_hid_set_or_send_report()
339 static int i2c_hid_set_power(struct i2c_client *client, int power_state) i2c_hid_set_power()
354 static int i2c_hid_hwreset(struct i2c_client *client) i2c_hid_hwreset()
441 struct i2c_client *client = hid->driver_data; i2c_hid_init_report()
473 struct i2c_client *client = hid->driver_data; i2c_hid_init_reports()
556 struct i2c_client *client = hid->driver_data; i2c_hid_get_raw_report()
591 struct i2c_client *client = hid->driver_data; i2c_hid_output_raw_report()
638 struct i2c_client *client = hid->driver_data; i2c_hid_parse()
693 struct i2c_client *client = hid->driver_data; i2c_hid_start()
724 struct i2c_client *client = hid->driver_data; i2c_hid_open()
744 struct i2c_client *client = hid->driver_data; i2c_hid_close()
763 struct i2c_client *client = hid->driver_data; i2c_hid_power()
790 static int i2c_hid_init_irq(struct i2c_client *client) i2c_hid_init_irq()
814 struct i2c_client *client = ihid->client; i2c_hid_fetch_hid_descriptor()
859 static int i2c_hid_acpi_pdata(struct i2c_client *client, i2c_hid_acpi_pdata()
897 static inline int i2c_hid_acpi_pdata(struct i2c_client *client, i2c_hid_acpi_pdata()
905 static int i2c_hid_of_probe(struct i2c_client *client, i2c_hid_of_probe()
933 static inline int i2c_hid_of_probe(struct i2c_client *client, i2c_hid_of_probe()
940 static int i2c_hid_probe(struct i2c_client *client, i2c_hid_probe()
1064 static int i2c_hid_remove(struct i2c_client *client) i2c_hid_remove()
1095 struct i2c_client *client = to_i2c_client(dev); i2c_hid_suspend()
1116 struct i2c_client *client = to_i2c_client(dev); i2c_hid_resume()
1140 struct i2c_client *client = to_i2c_client(dev); i2c_hid_runtime_suspend()
1150 struct i2c_client *client = to_i2c_client(dev); i2c_hid_runtime_resume()
/linux-4.1.27/drivers/i2c/
H A Di2c-smbus.c31 struct i2c_client *ara; /* Alert response address */
42 struct i2c_client *client = i2c_verify_client(dev); smbus_do_alert()
77 struct i2c_client *ara; smbus_alert()
134 static int smbalert_probe(struct i2c_client *ara, smbalert_probe()
167 static int smbalert_remove(struct i2c_client *ara) smbalert_remove()
210 struct i2c_client *i2c_setup_smbus_alert(struct i2c_adapter *adapter, i2c_setup_smbus_alert()
234 int i2c_handle_smbus_alert(struct i2c_client *ara) i2c_handle_smbus_alert()
/linux-4.1.27/drivers/char/tpm/st33zp24/
H A Di2c.c32 struct i2c_client *client;
115 struct i2c_client *client = phy->client; st33zp24_i2c_of_request_resources()
156 static int st33zp24_i2c_request_resources(struct i2c_client *client, st33zp24_i2c_request_resources()
186 * @param: client, the i2c_client drescription (TPM I2C description).
191 static int st33zp24_i2c_probe(struct i2c_client *client, st33zp24_i2c_probe()
232 * @param: client, the i2c_client description (TPM I2C description).
235 static int st33zp24_i2c_remove(struct i2c_client *client) st33zp24_i2c_remove()
/linux-4.1.27/drivers/macintosh/
H A Dwindfarm_max6690_sensor.c29 struct i2c_client *i2c;
64 static int wf_max6690_probe(struct i2c_client *client, wf_max6690_probe()
108 static int wf_max6690_remove(struct i2c_client *client) wf_max6690_remove()
H A Dwindfarm_lm87_sensor.c37 struct i2c_client *i2c;
43 static int wf_lm87_read_reg(struct i2c_client *chip, int reg) wf_lm87_read_reg()
100 static int wf_lm87_probe(struct i2c_client *client, wf_lm87_probe()
150 static int wf_lm87_remove(struct i2c_client *client) wf_lm87_remove()
/linux-4.1.27/drivers/media/pci/saa7164/
H A Dsaa7164-i2c.c90 static struct i2c_client saa7164_i2c_client_template = {
101 bus->i2c_client = saa7164_i2c_client_template; saa7164_i2c_register()
112 bus->i2c_client.adapter = &bus->i2c_adap; saa7164_i2c_register()
/linux-4.1.27/drivers/video/backlight/
H A Dlv5207lp.c39 struct i2c_client *client;
87 static int lv5207lp_probe(struct i2c_client *client, lv5207lp_probe()
135 static int lv5207lp_remove(struct i2c_client *client) lv5207lp_remove()
H A Dtosa_bl.c33 struct i2c_client *i2c;
81 static int tosa_bl_probe(struct i2c_client *client, tosa_bl_probe()
128 static int tosa_bl_remove(struct i2c_client *client) tosa_bl_remove()
H A Dadp8860_bl.c100 struct i2c_client *client;
107 struct i2c_client *client;
120 static int adp8860_read(struct i2c_client *client, int reg, uint8_t *val) adp8860_read()
134 static int adp8860_write(struct i2c_client *client, u8 reg, u8 val) adp8860_write()
139 static int adp8860_set_bits(struct i2c_client *client, int reg, uint8_t bit_mask) adp8860_set_bits()
158 static int adp8860_clr_bits(struct i2c_client *client, int reg, uint8_t bit_mask) adp8860_clr_bits()
201 struct i2c_client *client = led->client; adp8860_led_setup()
217 static int adp8860_led_probe(struct i2c_client *client) adp8860_led_probe()
299 static int adp8860_led_remove(struct i2c_client *client) adp8860_led_remove()
314 static int adp8860_led_probe(struct i2c_client *client) adp8860_led_probe()
319 static int adp8860_led_remove(struct i2c_client *client) adp8860_led_remove()
328 struct i2c_client *client = data->client; adp8860_bl_set()
391 struct i2c_client *client = data->client; adp8860_bl_setup()
656 static int adp8860_probe(struct i2c_client *client, adp8860_probe()
760 static int adp8860_remove(struct i2c_client *client) adp8860_remove()
779 struct i2c_client *client = to_i2c_client(dev); adp8860_i2c_suspend()
788 struct i2c_client *client = to_i2c_client(dev); adp8860_i2c_resume()
/linux-4.1.27/drivers/iio/dac/
H A Dmax517.c47 struct i2c_client *client;
60 struct i2c_client *client = data->client; max517_set_value()
163 static int max517_probe(struct i2c_client *client, max517_probe()
214 static int max517_remove(struct i2c_client *client) max517_remove()
/linux-4.1.27/drivers/iio/temperature/
H A Dmlx90614.c55 struct i2c_client *client;
140 static int mlx90614_probe_num_ir_sensors(struct i2c_client *client) mlx90614_probe_num_ir_sensors()
152 static int mlx90614_probe(struct i2c_client *client, mlx90614_probe()
194 static int mlx90614_remove(struct i2c_client *client) mlx90614_remove()
H A Dtmp006.c48 struct i2c_client *client;
185 static bool tmp006_check_identification(struct i2c_client *client) tmp006_check_identification()
200 static int tmp006_probe(struct i2c_client *client, tmp006_probe()
245 static int tmp006_remove(struct i2c_client *client) tmp006_remove()
/linux-4.1.27/drivers/media/pci/ivtv/
H A Divtv-i2c.h24 struct i2c_client *ivtv_i2c_new_ir_legacy(struct ivtv *itv);
/linux-4.1.27/drivers/media/radio/
H A Dtef6862.c71 static u16 tef6862_sigstr(struct i2c_client *client) tef6862_sigstr()
106 struct i2c_client *client = v4l2_get_subdevdata(sd); tef6862_s_frequency()
156 static int tef6862_probe(struct i2c_client *client, tef6862_probe()
180 static int tef6862_remove(struct i2c_client *client) tef6862_remove()
/linux-4.1.27/drivers/staging/media/mn88472/
H A Dmn88472_priv.h28 struct i2c_client *client[3];
/linux-4.1.27/drivers/staging/media/mn88473/
H A Dmn88473_priv.h28 struct i2c_client *client[3];

Completed in 9775 milliseconds

12345