| /linux/drivers/media/i2c/cx25840/ ! |
| H A D | cx25840-audio.c | 31 static int cx25840_set_audclk_freq(struct i2c_client *client, u32 freq) in cx25840_set_audclk_freq() argument 33 struct cx25840_state *state = to_state(i2c_get_clientdata(client)); in cx25840_set_audclk_freq() 42 cx25840_write4(client, 0x108, 0x1006040f); in cx25840_set_audclk_freq() 57 cx25840_write4(client, 0x110, 0x01bb39ee); in cx25840_set_audclk_freq() 63 cx25840_write(client, 0x127, 0x50); in cx25840_set_audclk_freq() 70 cx25840_write4(client, 0x900, 0x0801f77f); in cx25840_set_audclk_freq() 71 cx25840_write4(client, 0x904, 0x0801f77f); in cx25840_set_audclk_freq() 72 cx25840_write4(client, 0x90c, 0x0801f77f); in cx25840_set_audclk_freq() 80 cx25840_write4(client, 0x108, 0x1009040f); in cx25840_set_audclk_freq() 94 cx25840_write4(client, 0x110, 0x00ec6bd6); in cx25840_set_audclk_freq() [all …]
|
| H A D | cx25840-core.c | 74 static void cx23888_std_setup(struct i2c_client *client); 76 int cx25840_write(struct i2c_client *client, u16 addr, u8 value) in cx25840_write() argument 83 return i2c_master_send(client, buffer, 3); in cx25840_write() 86 int cx25840_write4(struct i2c_client *client, u16 addr, u32 value) in cx25840_write4() argument 96 return i2c_master_send(client, buffer, 6); in cx25840_write4() 99 u8 cx25840_read(struct i2c_client *client, u16 addr) in cx25840_read() argument 107 msgs[0].addr = client->addr; in cx25840_read() 113 msgs[1].addr = client->addr; in cx25840_read() 118 if (i2c_transfer(client->adapter, msgs, 2) < 2) in cx25840_read() 124 u32 cx25840_read4(struct i2c_client *client, u16 addr) in cx25840_read4() argument [all …]
|
| /linux/drivers/media/i2c/ ! |
| H A D | mt9t112.c | 60 #define mt9t112_reg_write(ret, client, a, b) \ argument 61 ECHECKER(ret, __mt9t112_reg_write(client, a, b)) 62 #define mt9t112_mcu_write(ret, client, a, b) \ argument 63 ECHECKER(ret, __mt9t112_mcu_write(client, a, b)) 65 #define mt9t112_reg_mask_set(ret, client, a, b, c) \ argument 66 ECHECKER(ret, __mt9t112_reg_mask_set(client, a, b, c)) 67 #define mt9t112_mcu_mask_set(ret, client, a, b, c) \ argument 68 ECHECKER(ret, __mt9t112_mcu_mask_set(client, a, b, c)) 70 #define mt9t112_reg_read(ret, client, a) \ argument 71 ECHECKER(ret, __mt9t112_reg_read(client, a)) [all …]
|
| H A D | msp3400-kthreads.c | 175 static void msp_set_source(struct i2c_client *client, u16 src) in msp_set_source() argument 177 struct msp_state *state = to_state(i2c_get_clientdata(client)); in msp_set_source() 180 msp_write_dsp(client, 0x0008, 0x0520); /* I2S1 */ in msp_set_source() 181 msp_write_dsp(client, 0x0009, 0x0620); /* I2S2 */ in msp_set_source() 183 msp_write_dsp(client, 0x0008, src); in msp_set_source() 184 msp_write_dsp(client, 0x0009, src); in msp_set_source() 186 msp_write_dsp(client, 0x000a, src); in msp_set_source() 187 msp_write_dsp(client, 0x000b, src); in msp_set_source() 188 msp_write_dsp(client, 0x000c, src); in msp_set_source() 190 msp_write_dsp(client, 0x0041, src); in msp_set_source() [all …]
|
| H A D | rj54n1cb0c.c | 425 static struct rj54n1 *to_rj54n1(const struct i2c_client *client) in to_rj54n1() argument 427 return container_of(i2c_get_clientdata(client), struct rj54n1, subdev); in to_rj54n1() 430 static int reg_read(struct i2c_client *client, const u16 reg) in reg_read() argument 432 struct rj54n1 *rj54n1 = to_rj54n1(client); in reg_read() 437 dev_dbg(&client->dev, "[0x%x] = 0x%x\n", 0xff, reg >> 8); in reg_read() 438 ret = i2c_smbus_write_byte_data(client, 0xff, reg >> 8); in reg_read() 443 return i2c_smbus_read_byte_data(client, reg & 0xff); in reg_read() 446 static int reg_write(struct i2c_client *client, const u16 reg, in reg_write() argument 449 struct rj54n1 *rj54n1 = to_rj54n1(client); in reg_write() 454 dev_dbg(&client->dev, "[0x%x] = 0x%x\n", 0xff, reg >> 8); in reg_write() [all …]
|
| H A D | msp3400-driver.c | 100 int msp_reset(struct i2c_client *client) in msp_reset() argument 109 .addr = client->addr, in msp_reset() 115 .addr = client->addr, in msp_reset() 123 .addr = client->addr, in msp_reset() 128 .addr = client->addr, in msp_reset() 135 dev_dbg_lvl(&client->dev, 3, msp_debug, "msp_reset\n"); in msp_reset() 136 if (i2c_transfer(client->adapter, &reset[0], 1) != 1 || in msp_reset() 137 i2c_transfer(client->adapter, &reset[1], 1) != 1 || in msp_reset() 138 i2c_transfer(client->adapter, test, 2) != 2) { in msp_reset() 139 dev_err(&client->dev, "chip reset failed\n"); in msp_reset() [all …]
|
| /linux/drivers/gpu/drm/ ! |
| H A D | drm_client_event.c | 34 struct drm_client_dev *client, *tmp; in drm_client_dev_unregister() local 40 list_for_each_entry_safe(client, tmp, &dev->clientlist, list) { in drm_client_dev_unregister() 41 list_del(&client->list); in drm_client_dev_unregister() 45 if (client->funcs && client->funcs->unregister) in drm_client_dev_unregister() 46 client->funcs->unregister(client); in drm_client_dev_unregister() 48 drm_client_release(client); in drm_client_dev_unregister() 54 static void drm_client_hotplug(struct drm_client_dev *client) in drm_client_hotplug() argument 56 struct drm_device *dev = client->dev; in drm_client_hotplug() 59 if (!client->funcs || !client->funcs->hotplug) in drm_client_hotplug() 62 if (client->hotplug_failed) in drm_client_hotplug() [all …]
|
| /linux/drivers/firewire/ ! |
| H A D | core-cdev.c | 53 struct client { struct 78 static inline void client_get(struct client *client) in client_get() argument 80 kref_get(&client->kref); in client_get() 85 struct client *client = container_of(kref, struct client, kref); in client_release() local 87 fw_device_put(client->device); in client_release() 88 kfree(client); in client_release() 91 static void client_put(struct client *client) in client_put() argument 93 kref_put(&client->kref, client_release); in client_put() 97 typedef void (*client_resource_release_fn_t)(struct client *, 108 struct client *client; member [all …]
|
| /linux/drivers/gpu/vga/ ! |
| H A D | vga_switcheroo.c | 189 struct vga_switcheroo_client *client; in vga_switcheroo_enable() local 195 list_for_each_entry(client, &vgasr_priv.clients, list) { in vga_switcheroo_enable() 196 if (!client_is_vga(client) || in vga_switcheroo_enable() 197 client_id(client) != VGA_SWITCHEROO_UNKNOWN_ID) in vga_switcheroo_enable() 200 ret = vgasr_priv.handler->get_client_id(client->pdev); in vga_switcheroo_enable() 204 client->id = ret; in vga_switcheroo_enable() 207 list_for_each_entry(client, &vgasr_priv.clients, list) { in vga_switcheroo_enable() 208 if (!client_is_audio(client) || in vga_switcheroo_enable() 209 client_id(client) != VGA_SWITCHEROO_UNKNOWN_ID) in vga_switcheroo_enable() 212 ret = vgasr_priv.handler->get_client_id(client->vga_dev); in vga_switcheroo_enable() [all …]
|
| /linux/drivers/input/mouse/ ! |
| H A D | elan_i2c_i2c.c | 74 static int elan_i2c_read_block(struct i2c_client *client, in elan_i2c_read_block() argument 82 .addr = client->addr, in elan_i2c_read_block() 83 .flags = client->flags & I2C_M_TEN, in elan_i2c_read_block() 88 .addr = client->addr, in elan_i2c_read_block() 89 .flags = (client->flags & I2C_M_TEN) | I2C_M_RD, in elan_i2c_read_block() 96 ret = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); in elan_i2c_read_block() 100 static int elan_i2c_read_cmd(struct i2c_client *client, u16 reg, u8 *val) in elan_i2c_read_cmd() argument 104 retval = elan_i2c_read_block(client, reg, val, ETP_I2C_INF_LENGTH); in elan_i2c_read_cmd() 106 dev_err(&client->dev, "reading cmd (0x%04x) fail.\n", reg); in elan_i2c_read_cmd() 113 static int elan_i2c_write_cmd(struct i2c_client *client, u16 reg, u16 cmd) in elan_i2c_write_cmd() argument [all …]
|
| H A D | elan_i2c_smbus.c | 54 static int elan_smbus_initialize(struct i2c_client *client) in elan_smbus_initialize() argument 61 len = i2c_smbus_read_block_data(client, in elan_smbus_initialize() 64 dev_err(&client->dev, "hello packet length fail: %d\n", len); in elan_smbus_initialize() 71 dev_err(&client->dev, "hello packet fail [%*ph]\n", in elan_smbus_initialize() 77 error = i2c_smbus_write_byte(client, ETP_SMBUS_ENABLE_TP); in elan_smbus_initialize() 79 dev_err(&client->dev, "failed to enable touchpad: %d\n", error); in elan_smbus_initialize() 86 static int elan_smbus_set_mode(struct i2c_client *client, u8 mode) in elan_smbus_set_mode() argument 90 return i2c_smbus_write_block_data(client, ETP_SMBUS_IAP_CMD, in elan_smbus_set_mode() 94 static int elan_smbus_sleep_control(struct i2c_client *client, bool sleep) in elan_smbus_sleep_control() argument 97 return i2c_smbus_write_byte(client, ETP_SMBUS_SLEEP_CMD); in elan_smbus_sleep_control() [all …]
|
| /linux/drivers/input/touchscreen/ ! |
| H A D | zforce_ts.c | 105 struct i2c_client *client; member 130 struct i2c_client *client = ts->client; in zforce_command() local 134 dev_dbg(&client->dev, "%s: 0x%x\n", __func__, cmd); in zforce_command() 140 ret = i2c_master_send(client, &buf[0], ARRAY_SIZE(buf)); in zforce_command() 142 dev_err(&client->dev, "i2c send data request error: %d\n", ret); in zforce_command() 151 struct i2c_client *client = ts->client; in zforce_send_wait() local 154 dev_dbg(&client->dev, "sending %d bytes for command 0x%x\n", in zforce_send_wait() 159 ret = i2c_master_send(client, buf, len); in zforce_send_wait() 161 dev_err(&client->dev, "i2c send data request error: %d\n", ret); in zforce_send_wait() 165 dev_dbg(&client->dev, "waiting for result for command 0x%x\n", buf[2]); in zforce_send_wait() [all …]
|
| H A D | raydium_i2c_ts.c | 119 struct i2c_client *client; member 149 static int raydium_i2c_xfer(struct i2c_client *client, u32 addr, in raydium_i2c_xfer() argument 160 ret = i2c_transfer(client->adapter, &xfer[xfer_start_idx], xfer_count); in raydium_i2c_xfer() 167 static int raydium_i2c_send(struct i2c_client *client, in raydium_i2c_send() argument 200 .addr = client->addr, in raydium_i2c_send() 205 .addr = client->addr, in raydium_i2c_send() 211 error = raydium_i2c_xfer(client, addr, xfer, ARRAY_SIZE(xfer)); in raydium_i2c_send() 218 dev_err(&client->dev, "%s failed: %d\n", __func__, error); in raydium_i2c_send() 224 static int raydium_i2c_read(struct i2c_client *client, in raydium_i2c_read() argument 249 .addr = client->addr, in raydium_i2c_read() [all …]
|
| H A D | hynitron_cstxxx.c | 31 int (*firmware_info)(struct i2c_client *client); 32 int (*bootloader_enter)(struct i2c_client *client); 33 int (*init_input)(struct i2c_client *client); 34 void (*report_touch)(struct i2c_client *client); 40 struct i2c_client *client; member 72 static void hyn_reset_proc(struct i2c_client *client, int delay) in hyn_reset_proc() argument 74 struct hynitron_ts_data *ts_data = i2c_get_clientdata(client); in hyn_reset_proc() 85 struct i2c_client *client = dev_id; in hyn_interrupt_handler() local 86 struct hynitron_ts_data *ts_data = i2c_get_clientdata(client); in hyn_interrupt_handler() 88 ts_data->chip->report_touch(client); in hyn_interrupt_handler() [all …]
|
| H A D | elants_i2c.c | 152 struct i2c_client *client; member 190 static int elants_i2c_send(struct i2c_client *client, in elants_i2c_send() argument 195 ret = i2c_master_send(client, data, size); in elants_i2c_send() 202 dev_err(&client->dev, "%s failed (%*ph): %d\n", in elants_i2c_send() 208 static int elants_i2c_read(struct i2c_client *client, void *data, size_t size) in elants_i2c_read() argument 212 ret = i2c_master_recv(client, data, size); in elants_i2c_read() 219 dev_err(&client->dev, "%s failed: %d\n", __func__, ret); in elants_i2c_read() 224 static int elants_i2c_execute_command(struct i2c_client *client, in elants_i2c_execute_command() argument 247 dev_err(&client->dev, "(%s): invalid command: %*ph\n", in elants_i2c_execute_command() 253 msgs[0].addr = client->addr; in elants_i2c_execute_command() [all …]
|
| /linux/sound/core/seq/ ! |
| H A D | seq_ump_client.c | 63 struct seq_ump_client *client = ump->seq_client; in seq_ump_input_receive() local 66 if (!client->opened[STR_IN]) in seq_ump_input_receive() 73 ev.dest.client = SNDRV_SEQ_ADDRESS_SUBSCRIBERS; in seq_ump_input_receive() 76 snd_seq_kernel_client_dispatch(client->seq_client, in seq_ump_input_receive() 85 struct seq_ump_client *client = private_data; in seq_ump_process_event() local 91 substream = client->out_rfile.output; in seq_ump_process_event() 106 static int seq_ump_client_open(struct seq_ump_client *client, int dir) in seq_ump_client_open() argument 108 struct snd_ump_endpoint *ump = client->ump; in seq_ump_client_open() 112 if (dir == STR_OUT && !client->opened[dir]) { in seq_ump_client_open() 116 &client->out_rfile); in seq_ump_client_open() [all …]
|
| H A D | seq_clientmgr.c | 37 * 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) in snd_seq_write_pool_allocated() argument 111 struct snd_seq_client *client; client_use_ptr() local 202 struct snd_seq_client *client; seq_create_client1() local 246 seq_free_client1(struct snd_seq_client * client) seq_free_client1() argument 266 seq_free_client(struct snd_seq_client * client) seq_free_client() argument 297 struct snd_seq_client *client; snd_seq_open() local 351 struct snd_seq_client *client = file->private_data; snd_seq_release() local 367 event_is_compatible(const struct snd_seq_client * client,const struct snd_seq_event * ev) event_is_compatible() argument 387 struct snd_seq_client *client = file->private_data; snd_seq_read() local 526 bounce_error_event(struct snd_seq_client * client,struct snd_seq_event * event,int err,int atomic,int hop) bounce_error_event() argument 608 _snd_seq_deliver_single_event(struct snd_seq_client * client,struct snd_seq_event * event,int atomic,int hop) _snd_seq_deliver_single_event() argument 656 snd_seq_deliver_single_event(struct snd_seq_client * client,struct snd_seq_event * event,int atomic,int hop) snd_seq_deliver_single_event() argument 671 __deliver_to_subscribers(struct snd_seq_client * client,struct snd_seq_event * event,int port,int atomic,int hop) __deliver_to_subscribers() argument 726 deliver_to_subscribers(struct snd_seq_client * client,struct snd_seq_event * event,int atomic,int hop) deliver_to_subscribers() argument 766 snd_seq_deliver_event(struct snd_seq_client * client,struct snd_seq_event * event,int atomic,int hop) snd_seq_deliver_event() argument 874 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) snd_seq_client_enqueue_event() argument 965 struct snd_seq_client *client = file->private_data; snd_seq_write() local 1085 struct snd_seq_client *client = file->private_data; snd_seq_poll() local 1113 snd_seq_ioctl_pversion(struct snd_seq_client * client,void * arg) snd_seq_ioctl_pversion() argument 1121 snd_seq_ioctl_user_pversion(struct snd_seq_client * client,void * arg) snd_seq_ioctl_user_pversion() argument 1127 snd_seq_ioctl_client_id(struct snd_seq_client * client,void * arg) snd_seq_ioctl_client_id() argument 1136 snd_seq_ioctl_system_info(struct snd_seq_client * client,void * arg) snd_seq_ioctl_system_info() argument 1154 snd_seq_ioctl_running_mode(struct snd_seq_client * client,void * arg) snd_seq_ioctl_running_mode() argument 1206 snd_seq_ioctl_get_client_info(struct snd_seq_client * client,void * arg) snd_seq_ioctl_get_client_info() argument 1223 snd_seq_ioctl_set_client_info(struct snd_seq_client * client,void * arg) snd_seq_ioctl_set_client_info() argument 1267 snd_seq_ioctl_create_port(struct snd_seq_client * client,void * arg) snd_seq_ioctl_create_port() argument 1322 snd_seq_ioctl_delete_port(struct snd_seq_client * client,void * arg) snd_seq_ioctl_delete_port() argument 1344 snd_seq_ioctl_get_port_info(struct snd_seq_client * client,void * arg) snd_seq_ioctl_get_port_info() argument 1367 snd_seq_ioctl_set_port_info(struct snd_seq_client * client,void * arg) snd_seq_ioctl_set_port_info() argument 1391 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) check_subscription_permission() argument 1425 snd_seq_client_notify_subscription(int client,int port,struct snd_seq_port_subscribe * info,int evtype) snd_seq_client_notify_subscription() argument 1443 snd_seq_ioctl_subscribe_port(struct snd_seq_client * client,void * arg) snd_seq_ioctl_subscribe_port() argument 1482 snd_seq_ioctl_unsubscribe_port(struct snd_seq_client * client,void * arg) snd_seq_ioctl_unsubscribe_port() argument 1518 snd_seq_ioctl_create_queue(struct snd_seq_client * client,void * arg) snd_seq_ioctl_create_queue() argument 1540 snd_seq_ioctl_delete_queue(struct snd_seq_client * client,void * arg) snd_seq_ioctl_delete_queue() argument 1548 snd_seq_ioctl_get_queue_info(struct snd_seq_client * client,void * arg) snd_seq_ioctl_get_queue_info() argument 1568 snd_seq_ioctl_set_queue_info(struct snd_seq_client * client,void * arg) snd_seq_ioctl_set_queue_info() argument 1598 snd_seq_ioctl_get_named_queue(struct snd_seq_client * client,void * arg) snd_seq_ioctl_get_named_queue() argument 1615 snd_seq_ioctl_get_queue_status(struct snd_seq_client * client,void * arg) snd_seq_ioctl_get_queue_status() argument 1643 snd_seq_ioctl_get_queue_tempo(struct snd_seq_client * client,void * arg) snd_seq_ioctl_get_queue_tempo() argument 1670 snd_seq_set_queue_tempo(int client,struct snd_seq_queue_tempo * tempo) snd_seq_set_queue_tempo() argument 1678 snd_seq_ioctl_set_queue_tempo(struct snd_seq_client * client,void * arg) snd_seq_ioctl_set_queue_tempo() argument 1692 snd_seq_ioctl_get_queue_timer(struct snd_seq_client * client,void * arg) snd_seq_ioctl_get_queue_timer() argument 1719 snd_seq_ioctl_set_queue_timer(struct snd_seq_client * client,void * arg) snd_seq_ioctl_set_queue_timer() argument 1753 snd_seq_ioctl_get_queue_client(struct snd_seq_client * client,void * arg) snd_seq_ioctl_get_queue_client() argument 1770 snd_seq_ioctl_set_queue_client(struct snd_seq_client * client,void * arg) snd_seq_ioctl_set_queue_client() argument 1787 snd_seq_ioctl_get_client_pool(struct snd_seq_client * client,void * arg) snd_seq_ioctl_get_client_pool() argument 1815 snd_seq_ioctl_set_client_pool(struct snd_seq_client * client,void * arg) snd_seq_ioctl_set_client_pool() argument 1860 snd_seq_ioctl_remove_events(struct snd_seq_client * client,void * arg) snd_seq_ioctl_remove_events() argument 1887 snd_seq_ioctl_get_subscription(struct snd_seq_client * client,void * arg) snd_seq_ioctl_get_subscription() argument 1907 snd_seq_ioctl_query_subs(struct snd_seq_client * client,void * arg) snd_seq_ioctl_query_subs() argument 1962 snd_seq_ioctl_query_next_client(struct snd_seq_client * client,void * arg) snd_seq_ioctl_query_next_client() argument 1986 snd_seq_ioctl_query_next_port(struct snd_seq_client * client,void * arg) snd_seq_ioctl_query_next_port() argument 2013 free_ump_info(struct snd_seq_client * client) free_ump_info() argument 2038 dump_ump_info(struct snd_info_buffer * buffer,struct snd_seq_client * client) dump_ump_info() argument 2071 int client, type, err = 0; snd_seq_ioctl_client_ump_info() local 2191 struct snd_seq_client *client = file->private_data; snd_seq_ioctl() local 2273 struct snd_seq_client *client; snd_seq_create_kernel_client() local 2320 snd_seq_delete_kernel_client(int client) snd_seq_delete_kernel_client() argument 2342 snd_seq_kernel_client_enqueue(int client,struct snd_seq_event * ev,struct file * file,bool blocking) snd_seq_kernel_client_enqueue() argument 2385 snd_seq_kernel_client_dispatch(int client,struct snd_seq_event * ev,int atomic,int hop) snd_seq_kernel_client_dispatch() argument 2411 call_seq_client_ctl(struct snd_seq_client * client,unsigned int cmd,void * arg) call_seq_client_ctl() argument 2440 struct snd_seq_client *client; snd_seq_kernel_client_ctl() local 2466 struct snd_seq_client *client; snd_seq_kernel_client_write_poll() local 2547 snd_seq_info_dump_ports(struct snd_info_buffer * buffer,struct snd_seq_client * client) snd_seq_info_dump_ports() argument [all...] |
| /linux/drivers/rtc/ ! |
| H A D | rtc-nct3018y.c | 45 struct i2c_client *client; member 52 static int nct3018y_set_alarm_mode(struct i2c_client *client, bool on) in nct3018y_set_alarm_mode() argument 56 dev_dbg(&client->dev, "%s:on:%d\n", __func__, on); in nct3018y_set_alarm_mode() 58 flags = i2c_smbus_read_byte_data(client, NCT3018Y_REG_CTRL); in nct3018y_set_alarm_mode() 60 dev_dbg(&client->dev, in nct3018y_set_alarm_mode() 71 err = i2c_smbus_write_byte_data(client, NCT3018Y_REG_CTRL, flags); in nct3018y_set_alarm_mode() 73 dev_dbg(&client->dev, "Unable to write NCT3018Y_REG_CTRL\n"); in nct3018y_set_alarm_mode() 77 flags = i2c_smbus_read_byte_data(client, NCT3018Y_REG_ST); in nct3018y_set_alarm_mode() 79 dev_dbg(&client->dev, in nct3018y_set_alarm_mode() 85 err = i2c_smbus_write_byte_data(client, NCT3018Y_REG_ST, flags); in nct3018y_set_alarm_mode() [all …]
|
| H A D | rtc-ds1374.c | 69 struct i2c_client *client; member 85 static int ds1374_read_rtc(struct i2c_client *client, u32 *time, in ds1374_read_rtc() argument 95 ret = i2c_smbus_read_i2c_block_data(client, reg, nbytes, buf); in ds1374_read_rtc() 108 static int ds1374_write_rtc(struct i2c_client *client, u32 time, in ds1374_write_rtc() argument 124 return i2c_smbus_write_i2c_block_data(client, reg, nbytes, buf); in ds1374_write_rtc() 127 static int ds1374_check_rtc_status(struct i2c_client *client) in ds1374_check_rtc_status() argument 132 stat = i2c_smbus_read_byte_data(client, DS1374_REG_SR); in ds1374_check_rtc_status() 137 dev_warn(&client->dev, in ds1374_check_rtc_status() 142 ret = i2c_smbus_write_byte_data(client, DS1374_REG_SR, stat); in ds1374_check_rtc_status() 151 control = i2c_smbus_read_byte_data(client, DS1374_REG_CR); in ds1374_check_rtc_status() [all …]
|
| /linux/drivers/misc/ ! |
| H A D | isl29003.c | 50 struct i2c_client *client; member 64 static int __isl29003_read_reg(struct i2c_client *client, in __isl29003_read_reg() argument 67 struct isl29003_data *data = i2c_get_clientdata(client); in __isl29003_read_reg() 72 static int __isl29003_write_reg(struct i2c_client *client, in __isl29003_write_reg() argument 75 struct isl29003_data *data = i2c_get_clientdata(client); in __isl29003_write_reg() 88 ret = i2c_smbus_write_byte_data(client, reg, tmp); in __isl29003_write_reg() 101 static int isl29003_get_range(struct i2c_client *client) in isl29003_get_range() argument 103 return __isl29003_read_reg(client, ISL29003_REG_CONTROL, in isl29003_get_range() 107 static int isl29003_set_range(struct i2c_client *client, int range) in isl29003_set_range() argument 109 return __isl29003_write_reg(client, ISL29003_REG_CONTROL, in isl29003_set_range() [all …]
|
| /linux/drivers/platform/surface/ ! |
| H A D | surface_aggregator_cdev.c | 52 struct ssam_cdev_client *client; member 96 struct ssam_cdev_client *client = cdev_nf->client; in ssam_cdev_notifier() local 107 mutex_lock(&client->write_lock); in ssam_cdev_notifier() 110 if (kfifo_avail(&client->buffer) < n) { in ssam_cdev_notifier() 111 dev_warn(client->cdev->dev, in ssam_cdev_notifier() 114 mutex_unlock(&client->write_lock); in ssam_cdev_notifier() 119 kfifo_in(&client->buffer, (const u8 *)&event, struct_size(&event, data, 0)); in ssam_cdev_notifier() 120 kfifo_in(&client->buffer, &in->data[0], in->length); in ssam_cdev_notifier() 122 mutex_unlock(&client->write_lock); in ssam_cdev_notifier() 125 kill_fasync(&client->fasync, SIGIO, POLL_IN); in ssam_cdev_notifier() [all …]
|
| /linux/drivers/input/keyboard/ ! |
| H A D | qt2160.c | 55 struct i2c_client *client; member 64 static int qt2160_read(struct i2c_client *client, u8 reg); 65 static int qt2160_write(struct i2c_client *client, u8 reg, u8 data); 74 struct i2c_client *client = qt2160->client; in qt2160_led_set() local 78 drive = qt2160_read(client, QT2160_CMD_DRIVE_X); in qt2160_led_set() 79 pwmen = qt2160_read(client, QT2160_CMD_PWMEN_X); in qt2160_led_set() 88 qt2160_write(client, QT2160_CMD_DRIVE_X, drive); in qt2160_led_set() 89 qt2160_write(client, QT2160_CMD_PWMEN_X, pwmen); in qt2160_led_set() 96 qt2160_write(client, QT2160_CMD_PWM_DUTY, value); in qt2160_led_set() 106 static int qt2160_read_block(struct i2c_client *client, in qt2160_read_block() argument [all …]
|
| H A D | max7359_keypad.c | 61 struct i2c_client *client; member 64 static int max7359_write_reg(struct i2c_client *client, u8 reg, u8 val) in max7359_write_reg() argument 66 int ret = i2c_smbus_write_byte_data(client, reg, val); in max7359_write_reg() 69 dev_err(&client->dev, "%s: reg 0x%x, val 0x%x, err %d\n", in max7359_write_reg() 74 static int max7359_read_reg(struct i2c_client *client, int reg) in max7359_read_reg() argument 76 int ret = i2c_smbus_read_byte_data(client, reg); in max7359_read_reg() 79 dev_err(&client->dev, "%s: reg 0x%x, err %d\n", in max7359_read_reg() 91 val = max7359_read_reg(keypad->client, MAX7359_REG_KEYFIFO); in max7359_interrupt() 98 dev_dbg(&keypad->client->dev, in max7359_interrupt() 113 static inline void max7359_fall_deepsleep(struct i2c_client *client) in max7359_fall_deepsleep() argument [all …]
|
| /linux/drivers/media/common/siano/ ! |
| H A D | smsdvb-main.c | 64 static void sms_board_dvb3_event(struct smsdvb_client_t *client, in sms_board_dvb3_event() argument 67 struct smscore_device_t *coredev = client->coredev; in sms_board_dvb3_event() 82 if (client->event_fe_state != DVB3_EVENT_FE_LOCK) { in sms_board_dvb3_event() 83 client->event_fe_state = DVB3_EVENT_FE_LOCK; in sms_board_dvb3_event() 89 if (client->event_fe_state != DVB3_EVENT_FE_UNLOCK) { in sms_board_dvb3_event() 90 client->event_fe_state = DVB3_EVENT_FE_UNLOCK; in sms_board_dvb3_event() 96 if (client->event_unc_state != DVB3_EVENT_UNC_OK) { in sms_board_dvb3_event() 97 client->event_unc_state = DVB3_EVENT_UNC_OK; in sms_board_dvb3_event() 103 if (client->event_unc_state != DVB3_EVENT_UNC_ERR) { in sms_board_dvb3_event() 104 client->event_unc_state = DVB3_EVENT_UNC_ERR; in sms_board_dvb3_event() [all …]
|
| /linux/drivers/virt/acrn/ ! |
| H A D | ioreq.c | 29 static inline bool has_pending_request(struct acrn_ioreq_client *client) in has_pending_request() argument 31 return !bitmap_empty(client->ioreqs_map, ACRN_IO_REQUEST_MAX); in has_pending_request() 34 static inline bool is_destroying(struct acrn_ioreq_client *client) in is_destroying() argument 36 return test_bit(ACRN_IOREQ_CLIENT_DESTROYING, &client->flags); in is_destroying() 73 static int acrn_ioreq_complete_request(struct acrn_ioreq_client *client, in acrn_ioreq_complete_request() argument 79 if (vcpu >= client->vm->vcpu_num) in acrn_ioreq_complete_request() 82 clear_bit(vcpu, client->ioreqs_map); in acrn_ioreq_complete_request() 84 acrn_req = (struct acrn_io_request *)client->vm->ioreq_buf; in acrn_ioreq_complete_request() 88 ret = ioreq_complete_request(client->vm, vcpu, acrn_req); in acrn_ioreq_complete_request() 115 int acrn_ioreq_range_add(struct acrn_ioreq_client *client, in acrn_ioreq_range_add() argument [all …]
|