/drivers/media/i2c/cx25840/ |
H A D | cx25840-core.c | 86 static void cx23888_std_setup(struct i2c_client *client); 88 int cx25840_write(struct i2c_client *client, u16 addr, u8 value) argument 94 return i2c_master_send(client, buffer, 3); 97 int cx25840_write4(struct i2c_client *client, u16 addr, u32 value) argument 106 return i2c_master_send(client, buffer, 6); 109 u8 cx25840_read(struct i2c_client * client, u16 addr) argument 117 msgs[0].addr = client->addr; 123 msgs[1].addr = client->addr; 128 if (i2c_transfer(client->adapter, msgs, 2) < 2) 134 u32 cx25840_read4(struct i2c_client * client, u1 argument 160 cx25840_and_or(struct i2c_client *client, u16 addr, unsigned and_mask, u8 or_value) argument 168 cx25840_and_or4(struct i2c_client *client, u16 addr, u32 and_mask, u32 or_value) argument 186 struct i2c_client *client = v4l2_get_subdevdata(sd); local 335 init_dll1(struct i2c_client *client) argument 351 init_dll2(struct i2c_client *client) argument 364 cx25836_initialize(struct i2c_client *client) argument 396 cx25840_initialize(struct i2c_client *client) argument 464 cx23885_initialize(struct i2c_client *client) argument 695 cx231xx_initialize(struct i2c_client *client) argument 773 cx25840_std_setup(struct i2c_client *client) argument 922 input_change(struct i2c_client *client) argument 997 set_input(struct i2c_client *client, enum cx25840_video_input vid_input, enum cx25840_audio_input aud_input) argument 1274 set_v4lstd(struct i2c_client *client) argument 1332 struct i2c_client *client = v4l2_get_subdevdata(sd); local 1372 struct i2c_client *client = v4l2_get_subdevdata(sd); local 1437 log_video_status(struct i2c_client *client) argument 1476 log_audio_status(struct i2c_client *client) argument 1642 struct i2c_client *client = v4l2_get_subdevdata(sd); local 1662 struct i2c_client *client = v4l2_get_subdevdata(sd); local 1671 struct i2c_client *client = v4l2_get_subdevdata(sd); local 1681 struct i2c_client *client = v4l2_get_subdevdata(sd); local 1707 struct i2c_client *client = v4l2_get_subdevdata(sd); local 1739 struct i2c_client *client = v4l2_get_subdevdata(sd); local 1773 struct i2c_client *client = v4l2_get_subdevdata(sd); local 1789 struct i2c_client *client = v4l2_get_subdevdata(sd); local 1810 struct i2c_client *client = v4l2_get_subdevdata(sd); local 1822 struct i2c_client *client = v4l2_get_subdevdata(sd); local 1831 struct i2c_client *client = v4l2_get_subdevdata(sd); local 1840 struct i2c_client *client = v4l2_get_subdevdata(sd); local 1878 struct i2c_client *client = v4l2_get_subdevdata(sd); local 1919 struct i2c_client *client = v4l2_get_subdevdata(sd); local 1935 struct i2c_client *client = v4l2_get_subdevdata(sd); local 2051 cx23885_dif_setup(struct i2c_client *client, u32 ifHz) argument 4961 cx23888_std_setup(struct i2c_client *client) argument 5094 get_cx2388x_ident(struct i2c_client *client) argument 5132 cx25840_probe(struct i2c_client *client, const struct i2c_device_id *did) argument 5293 cx25840_remove(struct i2c_client *client) argument [all...] |
H A D | cx25840-audio.c | 44 static int cx25840_set_audclk_freq(struct i2c_client *client, u32 freq) argument 46 struct cx25840_state *state = to_state(i2c_get_clientdata(client)); 55 cx25840_write4(client, 0x108, 0x1006040f); 70 cx25840_write4(client, 0x110, 0x01bb39ee); 76 cx25840_write(client, 0x127, 0x50); 83 cx25840_write4(client, 0x900, 0x0801f77f); 84 cx25840_write4(client, 0x904, 0x0801f77f); 85 cx25840_write4(client, 0x90c, 0x0801f77f); 93 cx25840_write4(client, 0x108, 0x1009040f); 107 cx25840_write4(client, 294 cx25836_set_audclk_freq(struct i2c_client *client, u32 freq) argument 299 cx23885_set_audclk_freq(struct i2c_client *client, u32 freq) argument 341 cx231xx_set_audclk_freq(struct i2c_client *client, u32 freq) argument 417 set_audclk_freq(struct i2c_client *client, u32 freq) argument 436 cx25840_audio_set_path(struct i2c_client *client) argument 481 set_volume(struct i2c_client *client, int volume) argument 501 set_balance(struct i2c_client *client, int balance) argument 519 struct i2c_client *client = v4l2_get_subdevdata(sd); local 541 struct i2c_client *client = v4l2_get_subdevdata(sd); local [all...] |
H A D | cx25840-firmware.c | 45 static void start_fw_load(struct i2c_client *client) argument 48 cx25840_write(client, 0x800, 0x00); 49 cx25840_write(client, 0x801, 0x00); 51 cx25840_write(client, 0x803, 0x0b); 53 cx25840_write(client, 0x000, 0x20); 56 static void end_fw_load(struct i2c_client *client) argument 59 cx25840_write(client, 0x000, 0x00); 61 cx25840_write(client, 0x803, 0x03); 68 static const char *get_fw_name(struct i2c_client *client) argument 70 struct cx25840_state *state = to_state(i2c_get_clientdata(client)); 81 check_fw_load(struct i2c_client *client, int size) argument 98 fw_write(struct i2c_client *client, const u8 *data, int size) argument 108 cx25840_loadfw(struct i2c_client *client) argument [all...] |
/drivers/gpu/drm/nouveau/nvif/ |
H A D | client.c | 25 #include "client.h" 30 nvif_client_ioctl(struct nvif_client *client, void *data, u32 size) argument 32 return client->driver->ioctl(client->base.priv, client->super, data, size, NULL); 36 nvif_client_suspend(struct nvif_client *client) argument 38 return client->driver->suspend(client->base.priv); 42 nvif_client_resume(struct nvif_client *client) argument 44 return client 48 nvif_client_fini(struct nvif_client *client) argument 70 nvif_client_init(void (*dtor)(struct nvif_client *), const char *driver, const char *name, u64 device, const char *cfg, const char *dbg, struct nvif_client *client) argument 100 nvif_client_del(struct nvif_client *client) argument 111 struct nvif_client *client = kzalloc(sizeof(*client), GFP_KERNEL); local 126 nvif_client_ref(struct nvif_client *client, struct nvif_client **pclient) argument [all...] |
/drivers/misc/ |
H A D | ad525x_dpot-i2c.c | 15 static int write_d8(void *client, u8 val) argument 17 return i2c_smbus_write_byte(client, val); 20 static int write_r8d8(void *client, u8 reg, u8 val) argument 22 return i2c_smbus_write_byte_data(client, reg, val); 25 static int write_r8d16(void *client, u8 reg, u16 val) argument 27 return i2c_smbus_write_word_data(client, reg, val); 30 static int read_d8(void *client) argument 32 return i2c_smbus_read_byte(client); 35 static int read_r8d8(void *client, u8 reg) argument 37 return i2c_smbus_read_byte_data(client, re 40 read_r8d16(void *client, u8 reg) argument 54 ad_dpot_i2c_probe(struct i2c_client *client, const struct i2c_device_id *id) argument 71 ad_dpot_i2c_remove(struct i2c_client *client) argument [all...] |
H A D | apds9802als.c | 47 struct i2c_client *client = to_i2c_client(dev); local 50 val = i2c_smbus_read_byte_data(client, 0x81); 61 struct i2c_client *client = to_i2c_client(dev); local 67 ret = i2c_smbus_read_byte_data(client, 0x86); 81 struct i2c_client *client = to_i2c_client(dev); local 82 struct als_data *data = i2c_get_clientdata(client); 91 i2c_smbus_write_byte(client, 0x40); 93 temp = i2c_smbus_read_byte_data(client, 0x81); 94 i2c_smbus_write_byte_data(client, 0x81, temp | 0x08); 100 temp = i2c_smbus_read_byte_data(client, 123 struct i2c_client *client = to_i2c_client(dev); local 171 als_set_power_state(struct i2c_client *client, bool on_off) argument 205 als_set_default_config(struct i2c_client *client) argument 227 apds9802als_probe(struct i2c_client *client, const struct i2c_device_id *id) argument 257 apds9802als_remove(struct i2c_client *client) argument 278 struct i2c_client *client = to_i2c_client(dev); local 286 struct i2c_client *client = to_i2c_client(dev); local [all...] |
H A D | isl29020.c | 38 struct i2c_client *client = to_i2c_client(dev); local 41 val = i2c_smbus_read_byte_data(client, 0x00); 52 struct i2c_client *client = to_i2c_client(dev); local 61 temp = i2c_smbus_read_byte_data(client, 0x02); /* MSB data */ 68 ret_val = i2c_smbus_read_byte_data(client, 0x01); /* LSB data */ 77 val = i2c_smbus_read_byte_data(client, 0x00); 88 struct i2c_client *client = to_i2c_client(dev); local 109 ret_val = i2c_smbus_read_byte_data(client, 0x00); 115 ret_val = i2c_smbus_write_byte_data(client, 0x00, ret_val); 122 static void als_set_power_state(struct i2c_client *client, in argument 153 als_set_default_config(struct i2c_client *client) argument 165 isl29020_probe(struct i2c_client *client, const struct i2c_device_id *id) argument 185 isl29020_remove(struct i2c_client *client) argument 202 struct i2c_client *client = to_i2c_client(dev); local 209 struct i2c_client *client = to_i2c_client(dev); local [all...] |
/drivers/gpu/drm/nouveau/core/core/ |
H A D | client.c | 26 #include <core/client.h> 38 struct nouveau_client *client; member in struct:nvkm_client_notify 51 struct nouveau_client *client = notify->client; local 52 return client->ntfy(¬ify->rep, notify->size, n->data, n->size); 56 nvkm_client_notify_put(struct nouveau_client *client, int index) argument 58 if (index < ARRAY_SIZE(client->notify)) { 59 if (client->notify[index]) { 60 nvkm_notify_put(&client->notify[index]->n); 68 nvkm_client_notify_get(struct nouveau_client *client, in argument 80 nvkm_client_notify_del(struct nouveau_client *client, int index) argument 97 struct nouveau_client *client = nouveau_client(object); local 187 struct nouveau_client *client = (void *)object; local 209 struct nouveau_client *client; local 239 nouveau_client_init(struct nouveau_client *client) argument 249 nouveau_client_fini(struct nouveau_client *client, bool suspend) argument 267 struct nouveau_client *client = nouveau_client(obj); local [all...] |
/drivers/mfd/ |
H A D | menf21bmc.c | 30 static int menf21bmc_wdt_exit_prod_mode(struct i2c_client *client) argument 34 val = i2c_smbus_read_byte_data(client, BMC_CMD_WDT_PROD_STAT); 44 dev_info(&client->dev, 47 ret = i2c_smbus_write_byte(client, BMC_CMD_WDT_EXIT_PROD); 56 menf21bmc_probe(struct i2c_client *client, const struct i2c_device_id *ids) argument 61 ret = i2c_check_functionality(client->adapter, 68 rev_major = i2c_smbus_read_word_data(client, BMC_CMD_REV_MAJOR); 70 dev_err(&client->dev, "failed to get BMC major revision\n"); 74 rev_minor = i2c_smbus_read_word_data(client, BMC_CMD_REV_MINOR); 76 dev_err(&client 109 menf21bmc_remove(struct i2c_client *client) argument [all...] |
/drivers/media/i2c/ |
H A D | ov7640.c | 38 static int write_regs(struct i2c_client *client, const u8 *regs) argument 43 if (i2c_smbus_write_byte_data(client, regs[i], regs[i + 1]) < 0) 52 static int ov7640_probe(struct i2c_client *client, argument 55 struct i2c_adapter *adapter = client->adapter; 61 sd = devm_kzalloc(&client->dev, sizeof(*sd), GFP_KERNEL); 64 v4l2_i2c_subdev_init(sd, client, &ov7640_ops); 66 client->flags = I2C_CLIENT_SCCB; 68 v4l_info(client, "chip found @ 0x%02x (%s)\n", 69 client->addr << 1, client 80 ov7640_remove(struct i2c_client *client) argument [all...] |
H A D | uda1342.c | 26 static int write_reg(struct i2c_client *client, int reg, int value) argument 29 i2c_smbus_write_word_data(client, reg, swab16(value)); 36 struct i2c_client *client = v4l2_get_subdevdata(sd); local 40 write_reg(client, 0x00, 0x1241); /* select input 1 */ 43 write_reg(client, 0x00, 0x1441); /* select input 2 */ 60 static int uda1342_probe(struct i2c_client *client, argument 63 struct i2c_adapter *adapter = client->adapter; 69 dev_dbg(&client->dev, "initializing UDA1342 at address %d on %s\n", 70 client->addr, adapter->name); 72 sd = devm_kzalloc(&client 87 uda1342_remove(struct i2c_client *client) argument [all...] |
H A D | msp3400-kthreads.c | 189 static void msp_set_source(struct i2c_client *client, u16 src) argument 191 struct msp_state *state = to_state(i2c_get_clientdata(client)); 194 msp_write_dsp(client, 0x0008, 0x0520); /* I2S1 */ 195 msp_write_dsp(client, 0x0009, 0x0620); /* I2S2 */ 197 msp_write_dsp(client, 0x0008, src); 198 msp_write_dsp(client, 0x0009, src); 200 msp_write_dsp(client, 0x000a, src); 201 msp_write_dsp(client, 0x000b, src); 202 msp_write_dsp(client, 0x000c, src); 204 msp_write_dsp(client, 207 msp3400c_set_carrier(struct i2c_client *client, int cdo1, int cdo2) argument 216 msp3400c_set_mode(struct i2c_client *client, int mode) argument 254 msp3400c_set_audmode(struct i2c_client *client) argument 386 msp3400c_print_mode(struct i2c_client *client) argument 415 msp3400c_detect_stereo(struct i2c_client *client) argument 493 watch_stereo(struct i2c_client *client) argument 506 struct i2c_client *client = data; local 697 struct i2c_client *client = data; local 865 msp34xxg_modus(struct i2c_client *client) argument 892 msp34xxg_set_source(struct i2c_client *client, u16 reg, int in) argument 935 msp34xxg_set_sources(struct i2c_client *client) argument 951 msp34xxg_reset(struct i2c_client *client) argument 995 struct i2c_client *client = data; local 1091 msp34xxg_detect_stereo(struct i2c_client *client) argument 1120 msp34xxg_set_audmode(struct i2c_client *client) argument 1137 msp_set_audmode(struct i2c_client *client) argument 1152 msp_detect_stereo(struct i2c_client *client) argument [all...] |
/drivers/media/i2c/soc_camera/ |
H A D | imx074.c | 88 static struct imx074 *to_imx074(const struct i2c_client *client) argument 90 return container_of(i2c_get_clientdata(client), struct imx074, subdev); 105 static int reg_write(struct i2c_client *client, const u16 addr, const u8 data) argument 107 struct i2c_adapter *adap = client->adapter; 112 msg.addr = client->addr; 128 static int reg_read(struct i2c_client *client, const u16 addr) argument 134 .addr = client->addr, 139 .addr = client->addr, 146 ret = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); 148 dev_warn(&client 178 struct i2c_client *client = v4l2_get_subdevdata(sd); local 197 struct i2c_client *client = v4l2_get_subdevdata(sd); local 250 struct i2c_client *client = v4l2_get_subdevdata(sd); local 258 struct i2c_client *client = v4l2_get_subdevdata(sd); local 296 imx074_video_probe(struct i2c_client *client) argument 413 imx074_probe(struct i2c_client *client, const struct i2c_device_id *did) argument 464 imx074_remove(struct i2c_client *client) argument [all...] |
H A D | mt9t112.c | 56 #define mt9t112_reg_write(ret, client, a, b) \ 57 ECHECKER(ret, __mt9t112_reg_write(client, a, b)) 58 #define mt9t112_mcu_write(ret, client, a, b) \ 59 ECHECKER(ret, __mt9t112_mcu_write(client, a, b)) 61 #define mt9t112_reg_mask_set(ret, client, a, b, c) \ 62 ECHECKER(ret, __mt9t112_reg_mask_set(client, a, b, c)) 63 #define mt9t112_mcu_mask_set(ret, client, a, b, c) \ 64 ECHECKER(ret, __mt9t112_mcu_mask_set(client, a, b, c)) 66 #define mt9t112_reg_read(ret, client, a) \ 67 ECHECKER(ret, __mt9t112_reg_read(client, 89 struct i2c_client *client; member in struct:mt9t112_priv 141 to_mt9t112(const struct i2c_client *client) argument 148 __mt9t112_reg_read(const struct i2c_client *client, u16 command) argument 179 __mt9t112_reg_write(const struct i2c_client *client, u16 command, u16 data) argument 208 __mt9t112_reg_mask_set(const struct i2c_client *client, u16 command, u16 mask, u16 set) argument 224 __mt9t112_mcu_read(const struct i2c_client *client, u16 command) argument 235 __mt9t112_mcu_write(const struct i2c_client *client, u16 command, u16 data) argument 247 __mt9t112_mcu_mask_set(const struct i2c_client *client, u16 command, u16 mask, u16 set) argument 262 mt9t112_reset(const struct i2c_client *client) argument 277 mt9t112_clock_info(const struct i2c_client *client, u32 ext) argument 350 mt9t112_set_a_frame_size(const struct i2c_client *client, u16 width, u16 height) argument 379 mt9t112_set_pll_dividers(const struct i2c_client *client, u8 m, u8 n, u8 p1, u8 p2, u8 p3, u8 p4, u8 p5, u8 p6, u8 p7) argument 414 mt9t112_init_pll(const struct i2c_client *client) argument 502 mt9t112_init_setting(const struct i2c_client *client) argument 660 mt9t112_auto_focus_setting(const struct i2c_client *client) argument 682 mt9t112_auto_focus_trigger(const struct i2c_client *client) argument 691 mt9t112_init_camera(const struct i2c_client *client) argument 744 struct i2c_client *client = v4l2_get_subdevdata(sd); local 758 struct i2c_client *client = v4l2_get_subdevdata(sd); local 769 struct i2c_client *client = v4l2_get_subdevdata(sd); local 790 struct i2c_client *client = v4l2_get_subdevdata(sd); local 889 struct i2c_client *client = v4l2_get_subdevdata(sd); local 900 struct i2c_client *client = v4l2_get_subdevdata(sd); local 910 struct i2c_client *client = v4l2_get_subdevdata(sd); local 925 struct i2c_client *client = v4l2_get_subdevdata(sd); local 946 struct i2c_client *client = v4l2_get_subdevdata(sd); local 972 struct i2c_client *client = v4l2_get_subdevdata(sd); local 986 struct i2c_client *client = v4l2_get_subdevdata(sd); local 1001 struct i2c_client *client = v4l2_get_subdevdata(sd); local 1032 mt9t112_camera_probe(struct i2c_client *client) argument 1070 mt9t112_probe(struct i2c_client *client, const struct i2c_device_id *did) argument 1111 mt9t112_remove(struct i2c_client *client) argument [all...] |
/drivers/rtc/ |
H A D | rtc-ds1374.c | 2 * RTC client/driver for the Maxim/Dallas DS1374 Real-Time Clock over I2C 53 struct i2c_client *client; member in struct:ds1374 67 static int ds1374_read_rtc(struct i2c_client *client, u32 *time, argument 79 ret = i2c_smbus_read_i2c_block_data(client, reg, nbytes, buf); 92 static int ds1374_write_rtc(struct i2c_client *client, u32 time, argument 108 return i2c_smbus_write_i2c_block_data(client, reg, nbytes, buf); 111 static int ds1374_check_rtc_status(struct i2c_client *client) argument 116 stat = i2c_smbus_read_byte_data(client, DS1374_REG_SR); 121 dev_warn(&client->dev, 126 ret = i2c_smbus_write_byte_data(client, DS1374_REG_S 145 struct i2c_client *client = to_i2c_client(dev); local 158 struct i2c_client *client = to_i2c_client(dev); local 171 struct i2c_client *client = to_i2c_client(dev); local 209 struct i2c_client *client = to_i2c_client(dev); local 269 struct i2c_client *client = dev_id; local 280 struct i2c_client *client = ds1374->client; local 312 struct i2c_client *client = to_i2c_client(dev); local 343 ds1374_probe(struct i2c_client *client, const struct i2c_device_id *id) argument 384 ds1374_remove(struct i2c_client *client) argument 403 struct i2c_client *client = to_i2c_client(dev); local 412 struct i2c_client *client = to_i2c_client(dev); local [all...] |
/drivers/infiniband/core/ |
H A D | sa.h | 40 static inline void ib_sa_client_get(struct ib_sa_client *client) argument 42 atomic_inc(&client->users); 45 static inline void ib_sa_client_put(struct ib_sa_client *client) argument 47 if (atomic_dec_and_test(&client->users)) 48 complete(&client->comp); 51 int ib_sa_mcmember_rec_query(struct ib_sa_client *client,
|
/drivers/input/keyboard/ |
H A D | max7359_keypad.c | 64 struct i2c_client *client; member in struct:max7359_keypad 67 static int max7359_write_reg(struct i2c_client *client, u8 reg, u8 val) argument 69 int ret = i2c_smbus_write_byte_data(client, reg, val); 72 dev_err(&client->dev, "%s: reg 0x%x, val 0x%x, err %d\n", 77 static int max7359_read_reg(struct i2c_client *client, int reg) argument 79 int ret = i2c_smbus_read_byte_data(client, reg); 82 dev_err(&client->dev, "%s: reg 0x%x, err %d\n", 114 val = max7359_read_reg(keypad->client, MAX7359_REG_KEYFIFO); 121 dev_dbg(&keypad->client->dev, 136 static inline void max7359_fall_deepsleep(struct i2c_client *client) argument 145 max7359_take_catnap(struct i2c_client *client) argument 166 max7359_initialize(struct i2c_client *client) argument 182 max7359_probe(struct i2c_client *client, const struct i2c_device_id *id) argument 266 struct i2c_client *client = to_i2c_client(dev); local 278 struct i2c_client *client = to_i2c_client(dev); local [all...] |
H A D | qt1070.c | 62 struct i2c_client *client; member in struct:qt1070_data 69 static int qt1070_read(struct i2c_client *client, u8 reg) argument 73 ret = i2c_smbus_read_byte_data(client, reg); 75 dev_err(&client->dev, 81 static int qt1070_write(struct i2c_client *client, u8 reg, u8 data) argument 85 ret = i2c_smbus_write_byte_data(client, reg, data); 87 dev_err(&client->dev, 93 static bool qt1070_identify(struct i2c_client *client) argument 98 id = qt1070_read(client, CHIP_ID); 100 dev_err(&client 119 struct i2c_client *client = data->client; local 142 qt1070_probe(struct i2c_client *client, const struct i2c_device_id *id) argument 232 qt1070_remove(struct i2c_client *client) argument 248 struct i2c_client *client = to_i2c_client(dev); local 259 struct i2c_client *client = to_i2c_client(dev); local [all...] |
/drivers/input/touchscreen/ |
H A D | cyttsp_i2c.c | 39 static int cyttsp_i2c_probe(struct i2c_client *client, argument 44 if (!i2c_check_functionality(client->adapter, I2C_FUNC_I2C)) { 45 dev_err(&client->dev, "I2C functionality not Supported\n"); 49 ts = cyttsp_probe(&cyttsp_i2c_bus_ops, &client->dev, client->irq, 55 i2c_set_clientdata(client, ts); 59 static int cyttsp_i2c_remove(struct i2c_client *client) argument 61 struct cyttsp *ts = i2c_get_clientdata(client);
|
/drivers/input/misc/ |
H A D | adxl34x-i2c.c | 19 struct i2c_client *client = to_i2c_client(dev); local 21 return i2c_smbus_read_byte_data(client, reg); 27 struct i2c_client *client = to_i2c_client(dev); local 29 return i2c_smbus_write_byte_data(client, reg, val); 36 struct i2c_client *client = to_i2c_client(dev); local 38 return i2c_smbus_read_i2c_block_data(client, reg, count, buf); 45 struct i2c_client *client = to_i2c_client(dev); local 48 ret = i2c_master_send(client, ®, 1); 52 ret = i2c_master_recv(client, buf, count); 76 static int adxl34x_i2c_probe(struct i2c_client *client, argument 101 adxl34x_i2c_remove(struct i2c_client *client) argument 111 struct i2c_client *client = to_i2c_client(dev); local 121 struct i2c_client *client = to_i2c_client(dev); local [all...] |
H A D | cma3000_d0x_i2c.c | 28 struct i2c_client *client = to_i2c_client(dev); local 31 ret = i2c_smbus_write_byte_data(client, reg, val); 33 dev_err(&client->dev, 40 struct i2c_client *client = to_i2c_client(dev); local 43 ret = i2c_smbus_read_byte_data(client, reg); 45 dev_err(&client->dev, 58 static int cma3000_i2c_probe(struct i2c_client *client, argument 63 data = cma3000_init(&client->dev, client->irq, &cma3000_i2c_bops); 67 i2c_set_clientdata(client, dat 72 cma3000_i2c_remove(struct i2c_client *client) argument 84 struct i2c_client *client = to_i2c_client(dev); local 94 struct i2c_client *client = to_i2c_client(dev); local [all...] |
/drivers/firewire/ |
H A D | core-cdev.c | 59 struct client { struct 84 static inline void client_get(struct client *client) argument 86 kref_get(&client->kref); 91 struct client *client = container_of(kref, struct client, kref); local 93 fw_device_put(client->device); 94 kfree(client); 97 static void client_put(struct client *clien argument 114 struct client *client; member in struct:address_handler_resource 138 struct client *client; member in struct:iso_resource 181 struct client *client; member in struct:outbound_transaction_event 211 struct client *client; member in struct:outbound_phy_packet_event 252 struct client *client; local 284 queue_event(struct client *client, struct event *event, void *data0, size_t size0, void *data1, size_t size1) argument 304 dequeue_event(struct client *client, char __user *buffer, size_t count) argument 346 struct client *client = file->private_data; local 351 fill_bus_reset_event(struct fw_cdev_event_bus_reset *event, struct client *client) argument 370 for_each_client(struct fw_device *device, void (*callback)(struct client *client)) argument 388 queue_bus_reset_event(struct client *client) argument 411 wake_up_client(struct client *client) argument 444 ioctl_get_info(struct client *client, union ioctl_arg *arg) argument 486 add_client_resource(struct client *client, struct client_resource *resource, gfp_t gfp_mask) argument 515 release_client_resource(struct client *client, u32 handle, client_resource_release_fn_t release, struct client_resource **return_resource) argument 543 release_transaction(struct client *client, struct client_resource *resource) argument 553 struct client *client = e->client; local 588 init_request(struct client *client, struct fw_cdev_send_request *request, int destination_id, int speed) argument 635 ioctl_send_request(struct client *client, union ioctl_arg *arg) argument 663 release_request(struct client *client, struct client_resource *resource) argument 764 release_address_handler(struct client *client, struct client_resource *resource) argument 774 ioctl_allocate(struct client *client, union ioctl_arg *arg) argument 815 ioctl_deallocate(struct client *client, union ioctl_arg *arg) argument 821 ioctl_send_response(struct client *client, union ioctl_arg *arg) argument 855 ioctl_initiate_bus_reset(struct client *client, union ioctl_arg *arg) argument 862 release_descriptor(struct client *client, struct client_resource *resource) argument 872 ioctl_add_descriptor(struct client *client, union ioctl_arg *arg) argument 918 ioctl_remove_descriptor(struct client *client, union ioctl_arg *arg) argument 927 struct client *client = data; local 946 struct client *client = data; local 969 ioctl_create_iso_context(struct client *client, union ioctl_arg *arg) argument 1041 ioctl_set_iso_channels(struct client *client, union ioctl_arg *arg) argument 1060 ioctl_queue_iso(struct client *client, union ioctl_arg *arg) argument 1162 ioctl_start_iso(struct client *client, union ioctl_arg *arg) argument 1184 ioctl_stop_iso(struct client *client, union ioctl_arg *arg) argument 1194 ioctl_flush_iso(struct client *client, union ioctl_arg *arg) argument 1204 ioctl_get_cycle_timer2(struct client *client, union ioctl_arg *arg) argument 1233 ioctl_get_cycle_timer(struct client *client, union ioctl_arg *arg) argument 1252 struct client *client = r->client; local 1347 release_iso_resource(struct client *client, struct client_resource *resource) argument 1359 init_iso_resource(struct client *client, struct fw_cdev_allocate_iso_resource *request, int todo) argument 1413 ioctl_allocate_iso_resource(struct client *client, union ioctl_arg *arg) argument 1420 ioctl_deallocate_iso_resource(struct client *client, union ioctl_arg *arg) argument 1427 ioctl_allocate_iso_resource_once(struct client *client, union ioctl_arg *arg) argument 1434 ioctl_deallocate_iso_resource_once(struct client *client, union ioctl_arg *arg) argument 1446 ioctl_get_speed(struct client *client, union ioctl_arg *arg) argument 1451 ioctl_send_broadcast_request(struct client *client, union ioctl_arg *arg) argument 1471 ioctl_send_stream_packet(struct client *client, union ioctl_arg *arg) argument 1520 ioctl_send_phy_packet(struct client *client, union ioctl_arg *arg) argument 1553 ioctl_receive_phy_packets(struct client *client, union ioctl_arg *arg) argument 1574 struct client *client; local 1626 dispatch_ioctl(struct client *client, unsigned int cmd, void __user *arg) argument 1673 struct client *client = file->private_data; local 1728 has_outbound_transactions(struct client *client) argument 1743 struct client *client = data; local 1753 struct client *client = file->private_data; local 1790 struct client *client = file->private_data; local [all...] |
/drivers/hwmon/pmbus/ |
H A D | pmbus.c | 33 static void pmbus_find_sensor_groups(struct i2c_client *client, argument 39 if (pmbus_check_word_register(client, 0, PMBUS_READ_VIN)) 41 if (pmbus_check_word_register(client, 0, PMBUS_READ_VCAP)) 43 if (pmbus_check_word_register(client, 0, PMBUS_READ_IIN)) 45 if (pmbus_check_word_register(client, 0, PMBUS_READ_PIN)) 48 && pmbus_check_byte_register(client, 0, PMBUS_STATUS_INPUT)) 50 if (pmbus_check_byte_register(client, 0, PMBUS_FAN_CONFIG_12) && 51 pmbus_check_word_register(client, 0, PMBUS_READ_FAN_SPEED_1)) { 53 if (pmbus_check_byte_register(client, 0, PMBUS_STATUS_FAN_12)) 56 if (pmbus_check_byte_register(client, 96 pmbus_identify(struct i2c_client *client, struct pmbus_driver_info *info) argument 165 pmbus_probe(struct i2c_client *client, const struct i2c_device_id *id) argument [all...] |
/drivers/power/ |
H A D | max17040_battery.c | 41 struct i2c_client *client; member in struct:max17040_chip 82 static int max17040_write_reg(struct i2c_client *client, int reg, u8 value) argument 86 ret = i2c_smbus_write_byte_data(client, reg, value); 89 dev_err(&client->dev, "%s: err %d\n", __func__, ret); 94 static int max17040_read_reg(struct i2c_client *client, int reg) argument 98 ret = i2c_smbus_read_byte_data(client, reg); 101 dev_err(&client->dev, "%s: err %d\n", __func__, ret); 106 static void max17040_reset(struct i2c_client *client) argument 108 max17040_write_reg(client, MAX17040_CMD_MSB, 0x54); 109 max17040_write_reg(client, MAX17040_CMD_LS 112 max17040_get_vcell(struct i2c_client *client) argument 124 max17040_get_soc(struct i2c_client *client) argument 136 max17040_get_version(struct i2c_client *client) argument 147 max17040_get_online(struct i2c_client *client) argument 157 max17040_get_status(struct i2c_client *client) argument 201 max17040_probe(struct i2c_client *client, const struct i2c_device_id *id) argument 241 max17040_remove(struct i2c_client *client) argument 254 struct i2c_client *client = to_i2c_client(dev); local 263 struct i2c_client *client = to_i2c_client(dev); local [all...] |
/drivers/gpu/vga/ |
H A D | vga_switcheroo.c | 85 struct vga_switcheroo_client *client; local 91 list_for_each_entry(client, &vgasr_priv.clients, list) { 92 if (client->id != -1) 94 ret = vgasr_priv.handler->get_client_id(client->pdev); 98 client->id = ret; 139 struct vga_switcheroo_client *client; local 141 client = kzalloc(sizeof(*client), GFP_KERNEL); 142 if (!client) 145 client 185 struct vga_switcheroo_client *client; local 195 struct vga_switcheroo_client *client; local 205 struct vga_switcheroo_client *client; local 214 struct vga_switcheroo_client *client; local 227 struct vga_switcheroo_client *client; local 249 struct vga_switcheroo_client *client; local 261 struct vga_switcheroo_client *client; local 283 vga_switchon(struct vga_switcheroo_client *client) argument 295 vga_switchoff(struct vga_switcheroo_client *client) argument 309 struct vga_switcheroo_client *client; local 374 struct vga_switcheroo_client *client; local 394 struct vga_switcheroo_client *client = NULL; local 555 struct vga_switcheroo_client *client; local 584 struct vga_switcheroo_client *client; local 603 struct vga_switcheroo_client *client; local 673 struct vga_switcheroo_client *client, *found = NULL; local [all...] |