Searched refs:client (Results 76 - 100 of 1853) sorted by relevance

1234567891011>>

/linux-master/drivers/mfd/
H A D88pm80x.c51 int pm80x_init(struct i2c_client *client) argument
59 devm_kzalloc(&client->dev, sizeof(struct pm80x_chip), GFP_KERNEL);
63 map = devm_regmap_init_i2c(client, &pm80x_regmap_config);
66 dev_err(&client->dev, "Failed to allocate register map: %d\n",
71 chip->client = client;
74 chip->irq = client->irq;
76 chip->dev = &client->dev;
77 i2c_set_clientdata(chip->client, chip);
98 device_init_wakeup(&client
133 struct i2c_client *client = to_i2c_client(dev); local
145 struct i2c_client *client = to_i2c_client(dev); local
[all...]
/linux-master/drivers/iio/chemical/
H A Dags02ma.c32 struct i2c_client *client; member in struct:ags02ma_data
40 static int ags02ma_register_read(struct i2c_client *client, u8 reg, u16 delay, argument
47 ret = i2c_master_send(client, &reg, sizeof(reg));
49 dev_err(&client->dev,
57 ret = i2c_master_recv(client, (u8 *)&read_buffer, sizeof(read_buffer));
59 dev_err(&client->dev,
67 dev_err(&client->dev, "CRC error\n");
84 ret = ags02ma_register_read(data->client, AGS02MA_TVOC_READ_REG,
111 static int ags02ma_probe(struct i2c_client *client) argument
118 indio_dev = devm_iio_device_alloc(&client
[all...]
/linux-master/drivers/gpu/drm/i915/
H A Di915_drm_client.c22 struct i915_drm_client *client; local
24 client = kzalloc(sizeof(*client), GFP_KERNEL);
25 if (!client)
28 kref_init(&client->kref);
29 spin_lock_init(&client->ctx_lock);
30 INIT_LIST_HEAD(&client->ctx_list);
32 spin_lock_init(&client->objects_lock);
33 INIT_LIST_HEAD(&client->objects_list);
36 return client;
41 struct i915_drm_client *client = local
77 struct i915_drm_client *client = fpriv->client; local
135 show_client_class(struct drm_printer *p, struct drm_i915_private *i915, struct i915_drm_client *client, unsigned int class) argument
180 i915_drm_client_add_object(struct i915_drm_client *client, struct drm_i915_gem_object *obj) argument
196 struct i915_drm_client *client = fetch_and_zero(&obj->client); local
210 i915_drm_client_add_context_objects(struct i915_drm_client *client, struct intel_context *ce) argument
[all...]
H A Di915_drm_client.h28 struct list_head ctx_list; /* List of contexts belonging to client. */
37 * @objects_list: list of objects created by this client
51 i915_drm_client_get(struct i915_drm_client *client) argument
53 kref_get(&client->kref);
54 return client;
59 static inline void i915_drm_client_put(struct i915_drm_client *client) argument
61 kref_put(&client->kref, __i915_drm_client_free);
69 void i915_drm_client_add_object(struct i915_drm_client *client,
72 void i915_drm_client_add_context_objects(struct i915_drm_client *client,
75 static inline void i915_drm_client_add_object(struct i915_drm_client *client, argument
86 i915_drm_client_add_context_objects(struct i915_drm_client *client, struct intel_context *ce) argument
[all...]
/linux-master/drivers/input/touchscreen/
H A Delants_i2c.c152 struct i2c_client *client; member in struct:elants_data
190 static int elants_i2c_send(struct i2c_client *client, argument
195 ret = i2c_master_send(client, data, size);
202 dev_err(&client->dev, "%s failed (%*ph): %d\n",
208 static int elants_i2c_read(struct i2c_client *client, void *data, size_t size) argument
212 ret = i2c_master_recv(client, data, size);
219 dev_err(&client->dev, "%s failed: %d\n", __func__, ret);
224 static int elants_i2c_execute_command(struct i2c_client *client, argument
247 dev_err(&client->dev, "(%s): invalid command: %*ph\n",
253 msgs[0].addr = client
300 struct i2c_client *client = ts->client; local
339 elants_i2c_sw_reset(struct i2c_client *client) argument
367 struct i2c_client *client = ts->client; local
392 struct i2c_client *client = ts->client; local
420 struct i2c_client *client = ts->client; local
443 struct i2c_client *client = ts->client; local
464 struct i2c_client *client = ts->client; local
508 struct i2c_client *client = ts->client; local
588 elants_i2c_fastboot(struct i2c_client *client) argument
605 struct i2c_client *client = ts->client; local
686 elants_i2c_fw_write_page(struct i2c_client *client, const void *page) argument
724 struct i2c_client *client = ts->client; local
754 struct i2c_client *client = ts->client; local
783 elants_i2c_do_update_firmware(struct i2c_client *client, const struct firmware *fw, bool force) argument
908 struct i2c_client *client = ts->client; local
1069 struct i2c_client *client = ts->client; local
1185 struct i2c_client *client = to_i2c_client(dev); local
1203 struct i2c_client *client = to_i2c_client(dev); local
1221 struct i2c_client *client = to_i2c_client(dev); local
1232 struct i2c_client *client = to_i2c_client(dev); local
1276 struct i2c_client *client = to_i2c_client(dev); local
1408 elants_i2c_probe(struct i2c_client *client) argument
1557 struct i2c_client *client = to_i2c_client(dev); local
1596 struct i2c_client *client = to_i2c_client(dev); local
[all...]
/linux-master/sound/core/seq/
H A Dseq_clientmgr.c37 * There are four ranges of client numbers (last two shared):
39 * 16..127: statically allocated client numbers for cards 0..27
40 * 128..191: dynamically allocated client numbers for cards 28..31
41 * 128..191: dynamically allocated client numbers for applications
48 /* dynamically allocated client numbers (both kernel drivers and user space) */
59 * client table
68 static int bounce_error_event(struct snd_seq_client *client,
71 static int snd_seq_deliver_single_event(struct snd_seq_client *client,
76 static void free_ump_info(struct snd_seq_client *client);
93 static inline int snd_seq_write_pool_allocated(struct snd_seq_client *client) argument
112 struct snd_seq_client *client; local
177 struct snd_seq_client *client; local
191 struct snd_seq_client *client; local
231 struct snd_seq_client *client; local
276 seq_free_client1(struct snd_seq_client *client) argument
296 seq_free_client(struct snd_seq_client * client) argument
327 struct snd_seq_client *client; local
384 struct snd_seq_client *client = file->private_data; local
400 event_is_compatible(const struct snd_seq_client *client, const struct snd_seq_event *ev) argument
420 struct snd_seq_client *client = file->private_data; local
564 bounce_error_event(struct snd_seq_client *client, struct snd_seq_event *event, int err, int atomic, int hop) argument
653 snd_seq_deliver_single_event(struct snd_seq_client *client, struct snd_seq_event *event, int filter, int atomic, int hop) argument
714 __deliver_to_subscribers(struct snd_seq_client *client, struct snd_seq_event *event, struct snd_seq_client_port *src_port, int atomic, int hop) argument
764 deliver_to_subscribers(struct snd_seq_client *client, struct snd_seq_event *event, int atomic, int hop) argument
797 snd_seq_deliver_event(struct snd_seq_client *client, struct snd_seq_event *event, int atomic, int hop) argument
835 struct snd_seq_client *client; local
906 snd_seq_client_enqueue_event(struct snd_seq_client *client, struct snd_seq_event *event, struct file *file, int blocking, int atomic, int hop, struct mutex *mutexp) argument
997 struct snd_seq_client *client = file->private_data; local
1117 struct snd_seq_client *client = file->private_data; local
1146 snd_seq_ioctl_pversion(struct snd_seq_client *client, void *arg) argument
1154 snd_seq_ioctl_user_pversion(struct snd_seq_client *client, void *arg) argument
1160 snd_seq_ioctl_client_id(struct snd_seq_client *client, void *arg) argument
1169 snd_seq_ioctl_system_info(struct snd_seq_client *client, void *arg) argument
1187 snd_seq_ioctl_running_mode(struct snd_seq_client *client, void *arg) argument
1249 snd_seq_ioctl_get_client_info(struct snd_seq_client *client, void *arg) argument
1268 snd_seq_ioctl_set_client_info(struct snd_seq_client *client, void *arg) argument
1302 snd_seq_ioctl_create_port(struct snd_seq_client *client, void *arg) argument
1357 snd_seq_ioctl_delete_port(struct snd_seq_client *client, void *arg) argument
1379 snd_seq_ioctl_get_port_info(struct snd_seq_client *client, void *arg) argument
1407 snd_seq_ioctl_set_port_info(struct snd_seq_client *client, void *arg) argument
1429 check_subscription_permission(struct snd_seq_client *client, struct snd_seq_client_port *sport, struct snd_seq_client_port *dport, struct snd_seq_port_subscribe *subs) argument
1463 snd_seq_client_notify_subscription(int client, int port, struct snd_seq_port_subscribe *info, int evtype) argument
1481 snd_seq_ioctl_subscribe_port(struct snd_seq_client *client, void *arg) argument
1527 snd_seq_ioctl_unsubscribe_port(struct snd_seq_client *client, void *arg) argument
1570 snd_seq_ioctl_create_queue(struct snd_seq_client *client, void *arg) argument
1593 snd_seq_ioctl_delete_queue(struct snd_seq_client *client, void *arg) argument
1601 snd_seq_ioctl_get_queue_info(struct snd_seq_client *client, void *arg) argument
1622 snd_seq_ioctl_set_queue_info(struct snd_seq_client *client, void *arg) argument
1655 snd_seq_ioctl_get_named_queue(struct snd_seq_client *client, void *arg) argument
1673 snd_seq_ioctl_get_queue_status(struct snd_seq_client *client, void *arg) argument
1702 snd_seq_ioctl_get_queue_tempo(struct snd_seq_client *client, void *arg) argument
1728 snd_seq_set_queue_tempo(int client, struct snd_seq_queue_tempo *tempo) argument
1736 snd_seq_ioctl_set_queue_tempo(struct snd_seq_client *client, void *arg) argument
1748 snd_seq_ioctl_get_queue_timer(struct snd_seq_client *client, void *arg) argument
1777 snd_seq_ioctl_set_queue_timer(struct snd_seq_client *client, void *arg) argument
1813 snd_seq_ioctl_get_queue_client(struct snd_seq_client *client, void *arg) argument
1830 snd_seq_ioctl_set_queue_client(struct snd_seq_client *client, void *arg) argument
1847 snd_seq_ioctl_get_client_pool(struct snd_seq_client *client, void *arg) argument
1876 snd_seq_ioctl_set_client_pool(struct snd_seq_client *client, void *arg) argument
1921 snd_seq_ioctl_remove_events(struct snd_seq_client *client, void *arg) argument
1948 snd_seq_ioctl_get_subscription(struct snd_seq_client *client, void *arg) argument
1978 snd_seq_ioctl_query_subs(struct snd_seq_client *client, void *arg) argument
2043 snd_seq_ioctl_query_next_client(struct snd_seq_client *client, void *arg) argument
2071 snd_seq_ioctl_query_next_port(struct snd_seq_client *client, void *arg) argument
2102 free_ump_info(struct snd_seq_client *client) argument
2126 dump_ump_info(struct snd_info_buffer *buffer, struct snd_seq_client *client) argument
2160 int client, type, err = 0; local
2272 struct snd_seq_client *client = file->private_data; local
2354 struct snd_seq_client *client; local
2403 snd_seq_delete_kernel_client(int client) argument
2425 snd_seq_kernel_client_enqueue(int client, struct snd_seq_event *ev, struct file *file, bool blocking) argument
2473 snd_seq_kernel_client_dispatch(int client, struct snd_seq_event * ev, int atomic, int hop) argument
2518 struct snd_seq_client *client; local
2538 struct snd_seq_client *client; local
2623 snd_seq_info_dump_ports(struct snd_info_buffer *buffer, struct snd_seq_client *client) argument
2664 struct snd_seq_client *client; local
[all...]
H A Dseq_ump_client.c43 /* sequencer client, per UMP EP (rawmidi) */
46 int seq_client; /* sequencer client id */
51 void *ump_info[SNDRV_UMP_MAX_BLOCKS + 1]; /* shadow of seq client ump_info */
72 struct seq_ump_client *client = ump->seq_client; local
75 if (!client->opened[STR_IN])
82 ev.dest.client = SNDRV_SEQ_ADDRESS_SUBSCRIBERS;
85 snd_seq_kernel_client_dispatch(client->seq_client,
94 struct seq_ump_client *client = private_data; local
100 substream = client->out_rfile.output;
115 static int seq_ump_client_open(struct seq_ump_client *client, in argument
134 seq_ump_client_close(struct seq_ump_client *client, int dir) argument
148 struct seq_ump_client *client = pdata; local
155 struct seq_ump_client *client = pdata; local
162 struct seq_ump_client *client = pdata; local
169 struct seq_ump_client *client = pdata; local
175 fill_port_info(struct snd_seq_port_info *port, struct seq_ump_client *client, struct seq_ump_group *group) argument
214 seq_ump_group_init(struct seq_ump_client *client, int group_index) argument
241 update_port_infos(struct seq_ump_client *client) argument
275 update_group_attrs(struct seq_ump_client *client) argument
324 create_ump_endpoint_port(struct seq_ump_client *client) argument
379 seq_ump_client_free(struct seq_ump_client *client) argument
393 setup_client_midi_version(struct seq_ump_client *client) argument
408 setup_client_group_filter(struct seq_ump_client *client) argument
429 struct seq_ump_client *client = local
441 struct seq_ump_client *client = ump->seq_client; local
470 struct seq_ump_client *client; local
[all...]
/linux-master/drivers/power/supply/
H A Drt5033_battery.c17 struct i2c_client *client; member in struct:rt5033_battery
22 static int rt5033_battery_get_status(struct i2c_client *client) argument
24 struct rt5033_battery *battery = i2c_get_clientdata(client);
37 static int rt5033_battery_get_capacity(struct i2c_client *client) argument
39 struct rt5033_battery *battery = i2c_get_clientdata(client);
47 static int rt5033_battery_get_present(struct i2c_client *client) argument
49 struct rt5033_battery *battery = i2c_get_clientdata(client);
57 static int rt5033_battery_get_watt_prop(struct i2c_client *client, argument
60 struct rt5033_battery *battery = i2c_get_clientdata(client);
100 val->intval = rt5033_battery_get_watt_prop(battery->client,
141 rt5033_battery_probe(struct i2c_client *client) argument
[all...]
/linux-master/drivers/media/dvb-frontends/
H A Dcxd2820r_core.c15 struct i2c_client *client = priv->client[0]; local
20 dev_dbg(&client->dev, "tab_len=%d\n", tab_len);
42 dev_dbg(&client->dev, "failed=%d\n", ret);
49 struct i2c_client *client = priv->client[0]; local
54 dev_dbg(&client->dev, "delivery_system=%d\n", c->delivery_system);
81 dev_dbg(&client->dev, "gpio i=%d %02x %02x\n", i, tmp0, tmp1);
84 dev_dbg(&client->dev, "wr gpio=%02x %02x\n", tmp0, tmp1);
100 dev_dbg(&client
107 struct i2c_client *client = priv->client[0]; local
150 struct i2c_client *client = priv->client[0]; local
177 struct i2c_client *client = priv->client[0]; local
206 struct i2c_client *client = priv->client[0]; local
220 struct i2c_client *client = priv->client[0]; local
236 struct i2c_client *client = priv->client[0]; local
252 struct i2c_client *client = priv->client[0]; local
270 struct i2c_client *client = priv->client[0]; local
297 struct i2c_client *client = priv->client[0]; local
323 struct i2c_client *client = priv->client[0]; local
401 struct i2c_client *client = priv->client[0]; local
413 struct i2c_client *client = priv->client[0]; local
425 struct i2c_client *client = priv->client[0]; local
439 struct i2c_client *client = priv->client[0]; local
455 struct i2c_client *client = priv->client[0]; local
518 struct i2c_client *client; local
541 cxd2820r_get_dvb_frontend(struct i2c_client *client) argument
550 cxd2820r_probe(struct i2c_client *client) argument
707 cxd2820r_remove(struct i2c_client *client) argument
[all...]
/linux-master/drivers/gpu/drm/amd/amdkfd/
H A Dkfd_smi_events.c67 struct kfd_smi_client *client = filep->private_data; local
70 poll_wait(filep, &client->wait_queue, wait);
72 spin_lock(&client->lock);
73 if (!kfifo_is_empty(&client->fifo))
75 spin_unlock(&client->lock);
85 struct kfd_smi_client *client = filep->private_data; local
96 spin_lock(&client->lock);
97 to_copy = kfifo_len(&client->fifo);
99 spin_unlock(&client->lock);
104 ret = kfifo_out(&client
128 struct kfd_smi_client *client = filep->private_data; local
151 struct kfd_smi_client *client = filep->private_data; local
162 kfd_smi_ev_enabled(pid_t pid, struct kfd_smi_client *client, unsigned int event) argument
177 struct kfd_smi_client *client; local
338 struct kfd_smi_client *client; local
[all...]
/linux-master/drivers/iio/light/
H A Dbh1780.c40 struct i2c_client *client; member in struct:bh1780_data
45 int ret = i2c_smbus_write_byte_data(bh1780->client,
49 dev_err(&bh1780->client->dev,
58 int ret = i2c_smbus_read_byte_data(bh1780->client,
61 dev_err(&bh1780->client->dev,
70 int ret = i2c_smbus_read_word_data(bh1780->client,
73 dev_err(&bh1780->client->dev,
110 pm_runtime_get_sync(&bh1780->client->dev);
114 pm_runtime_mark_last_busy(&bh1780->client->dev);
115 pm_runtime_put_autosuspend(&bh1780->client
144 bh1780_probe(struct i2c_client *client) argument
204 bh1780_remove(struct i2c_client *client) argument
222 struct i2c_client *client = to_i2c_client(dev); local
238 struct i2c_client *client = to_i2c_client(dev); local
[all...]
/linux-master/drivers/media/tuners/
H A Dtua9001.c13 struct i2c_client *client = dev->client; local
33 dev_dbg(&client->dev, "\n");
36 ret = fe->callback(client->adapter,
50 dev_dbg(&client->dev, "failed=%d\n", ret);
57 struct i2c_client *client = dev->client; local
60 dev_dbg(&client->dev, "\n");
63 ret = fe->callback(client->adapter,
71 dev_dbg(&client
78 struct i2c_client *client = dev->client; local
148 struct i2c_client *client = dev->client; local
170 tua9001_probe(struct i2c_client *client) argument
229 tua9001_remove(struct i2c_client *client) argument
[all...]
/linux-master/drivers/firewire/
H A Dcore-cdev.c48 struct client { struct
73 static inline void client_get(struct client *client) argument
75 kref_get(&client->kref);
80 struct client *client = container_of(kref, struct client, kref); local
82 fw_device_put(client->device);
83 kfree(client);
86 static void client_put(struct client *clien argument
103 struct client *client; member in struct:address_handler_resource
128 struct client *client; member in struct:iso_resource
171 struct client *client; member in struct:outbound_transaction_event
205 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
552 struct client *client = e->client; local
611 init_request(struct client *client, struct fw_cdev_send_request *request, int destination_id, int speed) argument
669 ioctl_send_request(struct client *client, union ioctl_arg *arg) argument
692 release_request(struct client *client, struct client_resource *resource) argument
803 release_address_handler(struct client *client, struct client_resource *resource) argument
813 ioctl_allocate(struct client *client, union ioctl_arg *arg) argument
854 ioctl_deallocate(struct client *client, union ioctl_arg *arg) argument
860 ioctl_send_response(struct client *client, union ioctl_arg *arg) argument
896 ioctl_initiate_bus_reset(struct client *client, union ioctl_arg *arg) argument
903 release_descriptor(struct client *client, struct client_resource *resource) argument
913 ioctl_add_descriptor(struct client *client, union ioctl_arg *arg) argument
959 ioctl_remove_descriptor(struct client *client, union ioctl_arg *arg) argument
968 struct client *client = data; local
987 struct client *client = data; local
1024 ioctl_create_iso_context(struct client *client, union ioctl_arg *arg) argument
1101 ioctl_set_iso_channels(struct client *client, union ioctl_arg *arg) argument
1120 ioctl_queue_iso(struct client *client, union ioctl_arg *arg) argument
1220 ioctl_start_iso(struct client *client, union ioctl_arg *arg) argument
1242 ioctl_stop_iso(struct client *client, union ioctl_arg *arg) argument
1252 ioctl_flush_iso(struct client *client, union ioctl_arg *arg) argument
1262 ioctl_get_cycle_timer2(struct client *client, union ioctl_arg *arg) argument
1293 ioctl_get_cycle_timer(struct client *client, union ioctl_arg *arg) argument
1312 struct client *client = r->client; local
1406 release_iso_resource(struct client *client, struct client_resource *resource) argument
1418 init_iso_resource(struct client *client, struct fw_cdev_allocate_iso_resource *request, int todo) argument
1472 ioctl_allocate_iso_resource(struct client *client, union ioctl_arg *arg) argument
1479 ioctl_deallocate_iso_resource(struct client *client, union ioctl_arg *arg) argument
1486 ioctl_allocate_iso_resource_once(struct client *client, union ioctl_arg *arg) argument
1493 ioctl_deallocate_iso_resource_once(struct client *client, union ioctl_arg *arg) argument
1505 ioctl_get_speed(struct client *client, union ioctl_arg *arg) argument
1510 ioctl_send_broadcast_request(struct client *client, union ioctl_arg *arg) argument
1530 ioctl_send_stream_packet(struct client *client, union ioctl_arg *arg) argument
1616 ioctl_send_phy_packet(struct client *client, union ioctl_arg *arg) argument
1663 ioctl_receive_phy_packets(struct client *client, union ioctl_arg *arg) argument
1684 struct client *client; local
1751 dispatch_ioctl(struct client *client, unsigned int cmd, void __user *arg) argument
1790 struct client *client = file->private_data; local
1846 has_outbound_transactions(struct client *client) argument
1861 struct client *client = data; local
1871 struct client *client = file->private_data; local
1908 struct client *client = file->private_data; local
[all...]
/linux-master/drivers/input/rmi4/
H A Drmi_i2c.c20 * @client: The I2C client device structure
33 struct i2c_client *client; member in struct:rmi_i2c_xport
64 struct i2c_client *client = rmi_i2c->client; local
68 retval = i2c_master_send(client, txbuf, sizeof(txbuf));
70 dev_err(&client->dev,
84 struct i2c_client *client = rmi_i2c->client; local
92 devm_kfree(&client
133 struct i2c_client *client = rmi_i2c->client; local
201 rmi_i2c_probe(struct i2c_client *client) argument
292 struct i2c_client *client = to_i2c_client(dev); local
308 struct i2c_client *client = to_i2c_client(dev); local
328 struct i2c_client *client = to_i2c_client(dev); local
344 struct i2c_client *client = to_i2c_client(dev); local
[all...]
H A Drmi_smbus.c33 struct i2c_client *client; member in struct:rmi_smb_xport
44 struct i2c_client *client = rmi_smb->client; local
48 retval = i2c_smbus_read_byte_data(client, SMB_PROTOCOL_VERSION_ADDRESS);
50 dev_err(&client->dev, "failed to get SMBus version number!\n");
63 struct i2c_client *client = rmi_smb->client; local
66 retval = i2c_smbus_write_block_data(client, commandcode, len, buf);
68 rmi_dbg(RMI_DEBUG_XPORT, &client->dev,
179 struct i2c_client *client local
238 struct i2c_client *client = rmi_smb->client; local
287 rmi_smb_probe(struct i2c_client *client) argument
346 rmi_smb_remove(struct i2c_client *client) argument
355 struct i2c_client *client = to_i2c_client(dev); local
368 struct i2c_client *client = to_i2c_client(dev); local
381 struct i2c_client *client = container_of(dev, struct i2c_client, dev); local
399 struct i2c_client *client = to_i2c_client(dev); local
[all...]
/linux-master/drivers/hwmon/pmbus/
H A Dmp2856.c113 mp2856_read_word_helper(struct i2c_client *client, int page, int phase, u8 reg, argument
116 int ret = pmbus_read_word_data(client, page, phase, reg);
122 mp2856_read_vout(struct i2c_client *client, struct mp2856_data *data, int page, argument
127 ret = mp2856_read_word_helper(client, page, phase, reg,
140 mp2856_read_phase(struct i2c_client *client, struct mp2856_data *data, argument
146 ret = pmbus_read_word_data(client, page, phase, reg);
163 mp2856_read_phases(struct i2c_client *client, struct mp2856_data *data, argument
171 ret = mp2856_read_phase(client, data, page, phase,
175 ret = mp2856_read_phase(client, data, page, phase,
179 ret = mp2856_read_phase(client, dat
207 mp2856_read_word_data(struct i2c_client *client, int page, int phase, int reg) argument
232 mp2856_read_byte_data(struct i2c_client *client, int page, int reg) argument
244 mp2856_identify_multiphase(struct i2c_client *client, u8 reg, u8 max_phase, u16 mask) argument
262 mp2856_identify_multiphase_rail1(struct i2c_client *client, struct mp2856_data *data) argument
282 mp2856_identify_multiphase_rail2(struct i2c_client *client, struct mp2856_data *data) argument
302 mp2856_current_sense_gain_get(struct i2c_client *client, struct mp2856_data *data) argument
341 mp2856_identify_vout_format(struct i2c_client *client, struct mp2856_data *data) argument
361 mp2856_is_rail2_active(struct i2c_client *client) argument
396 mp2856_probe(struct i2c_client *client) argument
[all...]
/linux-master/drivers/i2c/
H A Di2c-core-of.c68 struct i2c_client *client; local
78 client = i2c_new_client_device(adap, &info);
79 if (IS_ERR(client))
82 return client;
88 struct i2c_client *client; local
104 client = of_i2c_register_device(adap, node);
105 if (IS_ERR(client)) {
118 struct i2c_client *client)
129 if (sysfs_streq(client->name, matches->compatible))
138 if (sysfs_streq(client
117 i2c_of_match_device_sysfs(const struct of_device_id *matches, struct i2c_client *client) argument
146 i2c_of_match_device(const struct of_device_id *matches, struct i2c_client *client) argument
168 struct i2c_client *client; local
[all...]
/linux-master/drivers/iio/proximity/
H A Drfd77402.c80 struct i2c_client *client; member in struct:rfd77402_data
93 static int rfd77402_set_state(struct i2c_client *client, u8 state, u16 check) argument
97 ret = i2c_smbus_write_byte_data(client, RFD77402_CMD_R,
104 ret = i2c_smbus_read_word_data(client, RFD77402_STATUS_R);
113 static int rfd77402_measure(struct i2c_client *client) argument
118 ret = rfd77402_set_state(client, RFD77402_CMD_MCPU_ON,
123 ret = i2c_smbus_write_byte_data(client, RFD77402_CMD_R,
130 ret = i2c_smbus_read_byte_data(client, RFD77402_ICSR);
143 ret = i2c_smbus_read_word_data(client, RFD77402_RESULT_R);
156 rfd77402_set_state(client, RFD77402_CMD_MCPU_OF
191 rfd77402_init(struct i2c_client *client) argument
249 rfd77402_powerdown(struct i2c_client *client) argument
255 rfd77402_disable(void *client) argument
260 rfd77402_probe(struct i2c_client *client) argument
[all...]
H A Dvl53l0x-i2c.c45 struct i2c_client *client; member in struct:vl53l0x_data
61 static int vl53l0x_configure_irq(struct i2c_client *client, argument
64 int irq_flags = irq_get_trigger_type(client->irq);
71 ret = devm_request_irq(&client->dev, client->irq, vl53l0x_handle_irq,
74 dev_err(&client->dev, "devm_request_irq error: %d\n", ret);
78 ret = i2c_smbus_write_byte_data(data->client,
82 dev_err(&client->dev, "failed to configure IRQ: %d\n", ret);
89 struct device *dev = &data->client->dev;
92 ret = i2c_smbus_write_byte_data(data->client,
111 struct i2c_client *client = data->client; local
221 vl53l0x_probe(struct i2c_client *client) argument
[all...]
/linux-master/drivers/misc/
H A Dad525x_dpot-spi.c14 static int write8(void *client, u8 val) argument
18 return spi_write(client, &data, 1);
21 static int write16(void *client, u8 reg, u8 val) argument
25 return spi_write(client, data, 2);
28 static int write24(void *client, u8 reg, u16 val) argument
32 return spi_write(client, data, 3);
35 static int read8(void *client) argument
40 ret = spi_read(client, &data, 1);
47 static int read16(void *client, u8 reg) argument
52 write16(client, re
60 read24(void *client, u8 reg) argument
[all...]
/linux-master/drivers/iio/accel/
H A Dmma9551_core.c108 static int mma9551_transfer(struct i2c_client *client, argument
120 dev_err(&client->dev, "register offset too large\n");
137 out.addr = client->addr;
142 ret = i2c_transfer(client->adapter, &out, 1);
144 dev_err(&client->dev, "i2c write failed\n");
152 in.addr = client->addr;
157 ret = i2c_transfer(client->adapter, &in, 1);
159 dev_err(&client->dev, "i2c read failed\n");
168 dev_err(&client->dev,
174 dev_err(&client
216 mma9551_read_config_byte(struct i2c_client *client, u8 app_id, u16 reg, u8 *val) argument
241 mma9551_write_config_byte(struct i2c_client *client, u8 app_id, u16 reg, u8 val) argument
266 mma9551_read_status_byte(struct i2c_client *client, u8 app_id, u16 reg, u8 *val) argument
291 mma9551_read_config_word(struct i2c_client *client, u8 app_id, u16 reg, u16 *val) argument
325 mma9551_write_config_word(struct i2c_client *client, u8 app_id, u16 reg, u16 val) argument
352 mma9551_read_status_word(struct i2c_client *client, u8 app_id, u16 reg, u16 *val) argument
385 mma9551_read_config_words(struct i2c_client *client, u8 app_id, u16 reg, u8 len, u16 *buf) argument
424 mma9551_read_status_words(struct i2c_client *client, u8 app_id, u16 reg, u8 len, u16 *buf) argument
463 mma9551_write_config_words(struct i2c_client *client, u8 app_id, u16 reg, u8 len, u16 *buf) argument
498 mma9551_update_config_bits(struct i2c_client *client, u8 app_id, u16 reg, u8 mask, u8 val) argument
537 mma9551_gpio_config(struct i2c_client *client, enum mma9551_gpio_pin pin, u8 app_id, u8 bitnum, int polarity) argument
609 mma9551_read_version(struct i2c_client *client) argument
644 mma9551_set_device_state(struct i2c_client *client, bool enable) argument
667 mma9551_set_power_state(struct i2c_client *client, bool on) argument
725 mma9551_read_accel_chan(struct i2c_client *client, const struct iio_chan_spec *chan, int *val, int *val2) argument
794 mma9551_app_reset(struct i2c_client *client, u32 app_mask) argument
[all...]
/linux-master/drivers/staging/iio/addac/
H A Dadt7316-i2c.c20 static int adt7316_i2c_read(void *client, u8 reg, u8 *data) argument
22 struct i2c_client *cl = client;
31 ret = i2c_smbus_read_byte(client);
42 static int adt7316_i2c_write(void *client, u8 reg, u8 data) argument
44 struct i2c_client *cl = client;
54 static int adt7316_i2c_multi_read(void *client, u8 reg, u8 count, u8 *data) argument
56 struct i2c_client *cl = client;
73 static int adt7316_i2c_multi_write(void *client, u8 reg, u8 count, u8 *data) argument
75 struct i2c_client *cl = client;
96 static int adt7316_i2c_probe(struct i2c_client *client) argument
[all...]
/linux-master/drivers/input/misc/
H A Dad714x-i2c.c18 struct i2c_client *client = to_i2c_client(chip->dev); local
24 error = i2c_master_send(client, (u8 *)chip->xfer_buf,
27 dev_err(&client->dev, "I2C write error: %d\n", error);
37 struct i2c_client *client = to_i2c_client(chip->dev); local
43 error = i2c_master_send(client, (u8 *)chip->xfer_buf,
46 error = i2c_master_recv(client, (u8 *)chip->xfer_buf,
50 dev_err(&client->dev, "I2C read error: %d\n", error);
60 static int ad714x_i2c_probe(struct i2c_client *client) argument
64 chip = ad714x_probe(&client->dev, BUS_I2C, client
[all...]
/linux-master/drivers/media/i2c/
H A Dtea6415c.c40 struct i2c_client *client = v4l2_get_subdevdata(sd); local
100 ret = i2c_smbus_write_byte(client, byte);
119 static int tea6415c_probe(struct i2c_client *client) argument
124 if (!i2c_check_functionality(client->adapter, I2C_FUNC_SMBUS_WRITE_BYTE))
127 v4l_info(client, "chip found @ 0x%x (%s)\n",
128 client->addr << 1, client->adapter->name);
129 sd = devm_kzalloc(&client->dev, sizeof(*sd), GFP_KERNEL);
132 v4l2_i2c_subdev_init(sd, client, &tea6415c_ops);
136 static void tea6415c_remove(struct i2c_client *client) argument
[all...]
/linux-master/drivers/gpio/
H A Dgpio-pcf857x.c70 struct i2c_client *client; member in struct:pcf857x
76 int (*write)(struct i2c_client *client, unsigned int data);
77 int (*read)(struct i2c_client *client);
84 static int i2c_write_le8(struct i2c_client *client, unsigned int data) argument
86 return i2c_smbus_write_byte(client, data);
89 static int i2c_read_le8(struct i2c_client *client) argument
91 return i2c_smbus_read_byte(client);
96 static int i2c_write_le16(struct i2c_client *client, unsigned int word) argument
101 status = i2c_master_send(client, buf, 2);
105 static int i2c_read_le16(struct i2c_client *client) argument
273 pcf857x_probe(struct i2c_client *client) argument
408 pcf857x_shutdown(struct i2c_client *client) argument
[all...]

Completed in 205 milliseconds

1234567891011>>