| /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-firmware.c | 32 static void start_fw_load(struct i2c_client *client) in start_fw_load() argument 35 cx25840_write(client, 0x800, 0x00); in start_fw_load() 36 cx25840_write(client, 0x801, 0x00); in start_fw_load() 38 cx25840_write(client, 0x803, 0x0b); in start_fw_load() 40 cx25840_write(client, 0x000, 0x20); in start_fw_load() 43 static void end_fw_load(struct i2c_client *client) in end_fw_load() argument 46 cx25840_write(client, 0x000, 0x00); in end_fw_load() 48 cx25840_write(client, 0x803, 0x03); in end_fw_load() 55 static const char *get_fw_name(struct i2c_client *client) in get_fw_name() argument 57 struct cx25840_state *state = to_state(i2c_get_clientdata(client)); in get_fw_name() [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/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 …]
|
| H A D | apds9802als.c | 35 struct i2c_client *client = to_i2c_client(dev); in als_sensing_range_show() local 38 val = i2c_smbus_read_byte_data(client, 0x81); in als_sensing_range_show() 49 struct i2c_client *client = to_i2c_client(dev); in als_wait_for_data_ready() local 55 ret = i2c_smbus_read_byte_data(client, 0x86); in als_wait_for_data_ready() 69 struct i2c_client *client = to_i2c_client(dev); in als_lux0_input_data_show() local 70 struct als_data *data = i2c_get_clientdata(client); in als_lux0_input_data_show() 79 i2c_smbus_write_byte(client, 0x40); in als_lux0_input_data_show() 81 temp = i2c_smbus_read_byte_data(client, 0x81); in als_lux0_input_data_show() 82 i2c_smbus_write_byte_data(client, 0x81, temp | 0x08); in als_lux0_input_data_show() 88 temp = i2c_smbus_read_byte_data(client, 0x8C); /* LSB data */ in als_lux0_input_data_show() [all …]
|
| H A D | ad525x_dpot-i2c.c | 14 static int write_d8(void *client, u8 val) in write_d8() argument 16 return i2c_smbus_write_byte(client, val); in write_d8() 19 static int write_r8d8(void *client, u8 reg, u8 val) in write_r8d8() argument 21 return i2c_smbus_write_byte_data(client, reg, val); in write_r8d8() 24 static int write_r8d16(void *client, u8 reg, u16 val) in write_r8d16() argument 26 return i2c_smbus_write_word_data(client, reg, val); in write_r8d16() 29 static int read_d8(void *client) in read_d8() argument 31 return i2c_smbus_read_byte(client); in read_d8() 34 static int read_r8d8(void *client, u8 reg) in read_r8d8() argument 36 return i2c_smbus_read_byte_data(client, reg); in read_r8d8() [all …]
|
| H A D | tsl2550.c | 33 struct i2c_client *client; member 52 static int tsl2550_set_operating_mode(struct i2c_client *client, int mode) in tsl2550_set_operating_mode() argument 54 struct tsl2550_data *data = i2c_get_clientdata(client); in tsl2550_set_operating_mode() 56 int ret = i2c_smbus_write_byte(client, TSL2550_MODE_RANGE[mode]); in tsl2550_set_operating_mode() 63 static int tsl2550_set_power_state(struct i2c_client *client, int state) in tsl2550_set_power_state() argument 65 struct tsl2550_data *data = i2c_get_clientdata(client); in tsl2550_set_power_state() 69 ret = i2c_smbus_write_byte(client, TSL2550_POWER_DOWN); in tsl2550_set_power_state() 71 ret = i2c_smbus_write_byte(client, TSL2550_POWER_UP); in tsl2550_set_power_state() 74 tsl2550_set_operating_mode(client, data->operating_mode); in tsl2550_set_power_state() 82 static int tsl2550_get_adc_value(struct i2c_client *client, u8 cmd) in tsl2550_get_adc_value() argument [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 …]
|
| H A D | elan_i2c.h | 73 int (*initialize)(struct i2c_client *client); 76 int (*set_mode)(struct i2c_client *client, u8 mode); 78 int (*calibrate)(struct i2c_client *client); 79 int (*calibrate_result)(struct i2c_client *client, u8 *val); 81 int (*get_baseline_data)(struct i2c_client *client, 84 int (*get_version)(struct i2c_client *client, u8 pattern, bool iap, 86 int (*get_sm_version)(struct i2c_client *client, u8 pattern, 88 int (*get_checksum)(struct i2c_client *client, bool iap, u16 *csum); 89 int (*get_product_id)(struct i2c_client *client, u16 *id); 91 int (*get_max)(struct i2c_client *client, [all …]
|
| /linux/sound/core/seq/ |
| H A D | seq_ump_client.c | 35 /* sequencer client, per UMP EP (rawmidi) */ 38 int seq_client; /* sequencer client id */ 43 void *ump_info[SNDRV_UMP_MAX_BLOCKS + 1]; /* shadow of seq client ump_info */ 64 struct seq_ump_client *client = ump->seq_client; in seq_ump_input_receive() 67 if (!client->opened[STR_IN]) in seq_ump_input_receive() 74 ev.dest.client = SNDRV_SEQ_ADDRESS_SUBSCRIBERS; in seq_ump_input_receive() 77 snd_seq_kernel_client_dispatch(client->seq_client, in seq_ump_input_receive() 86 struct seq_ump_client *client = private_data; in seq_ump_process_event() 92 guard(read_lock_irqsave)(&client->output_lock); in seq_ump_process_event() 93 substream = client in seq_ump_process_event() 63 struct seq_ump_client *client = ump->seq_client; seq_ump_input_receive() local 85 struct seq_ump_client *client = private_data; seq_ump_process_event() local 106 seq_ump_client_open(struct seq_ump_client * client,int dir) seq_ump_client_open() argument 125 seq_ump_client_close(struct seq_ump_client * client,int dir) seq_ump_client_close() argument 139 struct seq_ump_client *client = pdata; seq_ump_subscribe() local 146 struct seq_ump_client *client = pdata; seq_ump_unsubscribe() local 153 struct seq_ump_client *client = pdata; seq_ump_use() local 160 struct seq_ump_client *client = pdata; seq_ump_unuse() local 167 fill_port_info(struct snd_seq_port_info * port,struct seq_ump_client * client,struct snd_ump_group * group) fill_port_info() argument 207 skip_group(struct seq_ump_client * client,struct snd_ump_group * group) skip_group() argument 214 seq_ump_group_init(struct seq_ump_client * client,int group_index) seq_ump_group_init() argument 244 update_port_infos(struct seq_ump_client * client) update_port_infos() argument 279 create_ump_endpoint_port(struct seq_ump_client * client) create_ump_endpoint_port() argument 334 seq_ump_client_free(struct seq_ump_client * client) seq_ump_client_free() argument 348 setup_client_midi_version(struct seq_ump_client * client) setup_client_midi_version() argument 363 setup_client_group_filter(struct seq_ump_client * client) setup_client_group_filter() argument 384 struct seq_ump_client *client = handle_group_notify() local 394 struct seq_ump_client *client = ump->seq_client; seq_ump_notify_ep_change() local 422 struct seq_ump_client *client = ump->seq_client; seq_ump_notify_fb_change() local 436 struct seq_ump_client *client = ump->seq_client; seq_ump_switch_protocol() local 459 struct seq_ump_client *client; snd_seq_ump_probe() local [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 727 deliver_to_subscribers(struct snd_seq_client * client,struct snd_seq_event * event,int atomic,int hop) deliver_to_subscribers() argument 767 snd_seq_deliver_event(struct snd_seq_client * client,struct snd_seq_event * event,int atomic,int hop) snd_seq_deliver_event() argument 875 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 966 struct snd_seq_client *client = file->private_data; snd_seq_write() local 1086 struct snd_seq_client *client = file->private_data; snd_seq_poll() local 1114 snd_seq_ioctl_pversion(struct snd_seq_client * client,void * arg) snd_seq_ioctl_pversion() argument 1122 snd_seq_ioctl_user_pversion(struct snd_seq_client * client,void * arg) snd_seq_ioctl_user_pversion() argument 1128 snd_seq_ioctl_client_id(struct snd_seq_client * client,void * arg) snd_seq_ioctl_client_id() argument 1137 snd_seq_ioctl_system_info(struct snd_seq_client * client,void * arg) snd_seq_ioctl_system_info() argument 1155 snd_seq_ioctl_running_mode(struct snd_seq_client * client,void * arg) snd_seq_ioctl_running_mode() argument 1207 snd_seq_ioctl_get_client_info(struct snd_seq_client * client,void * arg) snd_seq_ioctl_get_client_info() argument 1224 snd_seq_ioctl_set_client_info(struct snd_seq_client * client,void * arg) snd_seq_ioctl_set_client_info() argument 1268 snd_seq_ioctl_create_port(struct snd_seq_client * client,void * arg) snd_seq_ioctl_create_port() argument 1323 snd_seq_ioctl_delete_port(struct snd_seq_client * client,void * arg) snd_seq_ioctl_delete_port() argument 1345 snd_seq_ioctl_get_port_info(struct snd_seq_client * client,void * arg) snd_seq_ioctl_get_port_info() argument 1368 snd_seq_ioctl_set_port_info(struct snd_seq_client * client,void * arg) snd_seq_ioctl_set_port_info() argument 1393 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 1427 snd_seq_client_notify_subscription(int client,int port,struct snd_seq_port_subscribe * info,int evtype) snd_seq_client_notify_subscription() argument 1445 snd_seq_ioctl_subscribe_port(struct snd_seq_client * client,void * arg) snd_seq_ioctl_subscribe_port() argument 1484 snd_seq_ioctl_unsubscribe_port(struct snd_seq_client * client,void * arg) snd_seq_ioctl_unsubscribe_port() argument 1520 snd_seq_ioctl_create_queue(struct snd_seq_client * client,void * arg) snd_seq_ioctl_create_queue() argument 1542 snd_seq_ioctl_delete_queue(struct snd_seq_client * client,void * arg) snd_seq_ioctl_delete_queue() argument 1550 snd_seq_ioctl_get_queue_info(struct snd_seq_client * client,void * arg) snd_seq_ioctl_get_queue_info() argument 1570 snd_seq_ioctl_set_queue_info(struct snd_seq_client * client,void * arg) snd_seq_ioctl_set_queue_info() argument 1600 snd_seq_ioctl_get_named_queue(struct snd_seq_client * client,void * arg) snd_seq_ioctl_get_named_queue() argument 1617 snd_seq_ioctl_get_queue_status(struct snd_seq_client * client,void * arg) snd_seq_ioctl_get_queue_status() argument 1645 snd_seq_ioctl_get_queue_tempo(struct snd_seq_client * client,void * arg) snd_seq_ioctl_get_queue_tempo() argument 1672 snd_seq_set_queue_tempo(int client,struct snd_seq_queue_tempo * tempo) snd_seq_set_queue_tempo() argument 1680 snd_seq_ioctl_set_queue_tempo(struct snd_seq_client * client,void * arg) snd_seq_ioctl_set_queue_tempo() argument 1694 snd_seq_ioctl_get_queue_timer(struct snd_seq_client * client,void * arg) snd_seq_ioctl_get_queue_timer() argument 1721 snd_seq_ioctl_set_queue_timer(struct snd_seq_client * client,void * arg) snd_seq_ioctl_set_queue_timer() argument 1755 snd_seq_ioctl_get_queue_client(struct snd_seq_client * client,void * arg) snd_seq_ioctl_get_queue_client() argument 1772 snd_seq_ioctl_set_queue_client(struct snd_seq_client * client,void * arg) snd_seq_ioctl_set_queue_client() argument 1789 snd_seq_ioctl_get_client_pool(struct snd_seq_client * client,void * arg) snd_seq_ioctl_get_client_pool() argument 1817 snd_seq_ioctl_set_client_pool(struct snd_seq_client * client,void * arg) snd_seq_ioctl_set_client_pool() argument 1862 snd_seq_ioctl_remove_events(struct snd_seq_client * client,void * arg) snd_seq_ioctl_remove_events() argument 1889 snd_seq_ioctl_get_subscription(struct snd_seq_client * client,void * arg) snd_seq_ioctl_get_subscription() argument 1909 snd_seq_ioctl_query_subs(struct snd_seq_client * client,void * arg) snd_seq_ioctl_query_subs() argument 1964 snd_seq_ioctl_query_next_client(struct snd_seq_client * client,void * arg) snd_seq_ioctl_query_next_client() argument 1988 snd_seq_ioctl_query_next_port(struct snd_seq_client * client,void * arg) snd_seq_ioctl_query_next_port() argument 2015 free_ump_info(struct snd_seq_client * client) free_ump_info() argument 2040 dump_ump_info(struct snd_info_buffer * buffer,struct snd_seq_client * client) dump_ump_info() argument 2072 int client, type, err = 0; snd_seq_ioctl_client_ump_info() local 2194 struct snd_seq_client *client = file->private_data; snd_seq_ioctl() local 2276 struct snd_seq_client *client; snd_seq_create_kernel_client() local 2323 snd_seq_delete_kernel_client(int client) snd_seq_delete_kernel_client() argument 2345 snd_seq_kernel_client_enqueue(int client,struct snd_seq_event * ev,struct file * file,bool blocking) snd_seq_kernel_client_enqueue() argument 2387 snd_seq_kernel_client_dispatch(int client,struct snd_seq_event * ev,int atomic,int hop) snd_seq_kernel_client_dispatch() argument 2412 call_seq_client_ctl(struct snd_seq_client * client,unsigned int cmd,void * arg) call_seq_client_ctl() argument 2441 struct snd_seq_client *client; snd_seq_kernel_client_ctl() local 2467 struct snd_seq_client *client; snd_seq_kernel_client_write_poll() local 2548 snd_seq_info_dump_ports(struct snd_info_buffer * buffer,struct snd_seq_client * client) snd_seq_info_dump_ports() argument [all...] |
| /linux/drivers/media/pci/mgb4/ |
| H A D | mgb4_i2c.c | 13 static int read_r16(struct i2c_client *client, u16 reg, u8 *val, int len) in read_r16() argument 19 .addr = client->addr, in read_r16() 24 .addr = client->addr, in read_r16() 34 ret = i2c_transfer(client->adapter, msg, 2); in read_r16() 43 static int write_r16(struct i2c_client *client, u16 reg, const u8 *val, int len) in write_r16() argument 49 .addr = client->addr, in write_r16() 63 ret = i2c_transfer(client->adapter, msg, 1); in write_r16() 72 int mgb4_i2c_init(struct mgb4_i2c_client *client, struct i2c_adapter *adap, in mgb4_i2c_init() argument 75 client->client = i2c_new_client_device(adap, info); in mgb4_i2c_init() 76 if (IS_ERR(client->client)) in mgb4_i2c_init() [all …]
|
| /linux/include/linux/ceph/ |
| H A D | ceph_debug.h | 22 # define doutc(client, fmt, ...) \ argument 26 &client->fsid, client->monc.auth->global_id, \ 32 # define doutc(client, fmt, ...) \ argument 34 &client->fsid, \ 35 client->monc.auth->global_id, \ 45 # define doutc(client, fmt, ...) \ argument 46 pr_debug(" [%pU %llu] %s: " fmt, &client->fsid, \ 47 client->monc.auth->global_id, __func__, ##__VA_ARGS__) 51 #define pr_notice_client(client, fmt, ...) \ argument 52 pr_notice("[%pU %llu]: " fmt, &client->fsid, \ [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 …]
|
| /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/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/input/touchscreen/ |
| 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 …]
|
| /linux/drivers/gpu/drm/nouveau/nvkm/core/ |
| H A D | client.c | 40 struct nvkm_client *client; in nvkm_uclient_new() local 45 ret = nvkm_client_new(args->v0.name, oclass->client->device, NULL, in nvkm_uclient_new() 46 NULL, oclass->client->event, &client); in nvkm_uclient_new() 52 client->object.client = oclass->client; in nvkm_uclient_new() 53 client->object.handle = oclass->handle; in nvkm_uclient_new() 54 client->object.object = oclass->object; in nvkm_uclient_new() 55 client->debug = oclass->client->debug; in nvkm_uclient_new() 56 *pobject = &client->object; in nvkm_uclient_new() 110 struct nvkm_client *client; in nvkm_client_new() local 112 if (!(client = *pclient = kzalloc_obj(*client))) in nvkm_client_new() [all …]
|
| /linux/drivers/input/ |
| H A D | evdev.c | 75 static bool __evdev_is_filtered(struct evdev_client *client, in __evdev_is_filtered() argument 87 mask = client->evmasks[0]; in __evdev_is_filtered() 96 mask = client->evmasks[type]; in __evdev_is_filtered() 101 static void __evdev_flush_queue(struct evdev_client *client, unsigned int type) in __evdev_flush_queue() argument 104 unsigned int mask = client->bufsize - 1; in __evdev_flush_queue() 110 head = client->tail; in __evdev_flush_queue() 111 client->packet_head = client->tail; in __evdev_flush_queue() 116 for (i = client->tail; i != client->head; i = (i + 1) & mask) { in __evdev_flush_queue() 117 ev = &client->buffer[i]; in __evdev_flush_queue() 128 client->buffer[head] = *ev; in __evdev_flush_queue() [all …]
|
| H A D | mousedev.c | 264 struct mousedev_client *client; in mousedev_notify_readers() local 270 list_for_each_entry_rcu(client, &mousedev->client_list, node) { in mousedev_notify_readers() 273 spin_lock(&client->packet_lock); in mousedev_notify_readers() 275 p = &client->packets[client->head]; in mousedev_notify_readers() 276 if (client->ready && p->buttons != mousedev->packet.buttons) { in mousedev_notify_readers() 277 new_head = (client->head + 1) % PACKET_QUEUE_LEN; in mousedev_notify_readers() 278 if (new_head != client->tail) { in mousedev_notify_readers() 279 p = &client->packets[client->head = new_head]; in mousedev_notify_readers() 285 p->dx += packet->x - client->pos_x; in mousedev_notify_readers() 286 p->dy += packet->y - client->pos_y; in mousedev_notify_readers() [all …]
|
| /linux/drivers/gpu/drm/i915/ |
| H A D | i915_drm_client.c | 22 struct i915_drm_client *client; in i915_drm_client_alloc() local 24 client = kzalloc_obj(*client); in i915_drm_client_alloc() 25 if (!client) in i915_drm_client_alloc() 28 kref_init(&client->kref); in i915_drm_client_alloc() 29 spin_lock_init(&client->ctx_lock); in i915_drm_client_alloc() 30 INIT_LIST_HEAD(&client->ctx_list); in i915_drm_client_alloc() 32 spin_lock_init(&client->objects_lock); in i915_drm_client_alloc() 33 INIT_LIST_HEAD(&client->objects_list); in i915_drm_client_alloc() 36 return client; in i915_drm_client_alloc() 41 struct i915_drm_client *client = in __i915_drm_client_free() local [all …]
|
| /linux/drivers/gpu/drm/nouveau/nvif/ |
| H A D | client.c | 33 nvif_client_suspend(struct nvif_client *client, bool runtime) in nvif_client_suspend() argument 35 return client->driver->suspend(client->object.priv, runtime); in nvif_client_suspend() 39 nvif_client_resume(struct nvif_client *client) in nvif_client_resume() argument 41 return client->driver->resume(client->object.priv); in nvif_client_resume() 45 nvif_client_dtor(struct nvif_client *client) in nvif_client_dtor() argument 47 nvif_object_dtor(&client->object); in nvif_client_dtor() 48 client->driver = NULL; in nvif_client_dtor() 52 nvif_client_ctor(struct nvif_client *parent, const char *name, struct nvif_client *client) in nvif_client_ctor() argument 58 ret = nvif_object_ctor(parent != client ? &parent->object : NULL, in nvif_client_ctor() 61 &client->object); in nvif_client_ctor() [all …]
|
| /linux/drivers/firmware/qcom/ |
| H A D | qcom_qseecom.c | 24 struct qseecom_client *client; in qseecom_client_release() local 26 client = container_of(dev, struct qseecom_client, aux_dev.dev); in qseecom_client_release() 27 kfree(client); in qseecom_client_release() 32 struct qseecom_client *client = data; in qseecom_client_remove() local 34 auxiliary_device_delete(&client->aux_dev); in qseecom_client_remove() 35 auxiliary_device_uninit(&client->aux_dev); in qseecom_client_remove() 41 struct qseecom_client *client; in qseecom_client_register() local 53 client = kzalloc_obj(*client); in qseecom_client_register() 54 if (!client) in qseecom_client_register() 57 client->aux_dev.name = desc->dev_name; in qseecom_client_register() [all …]
|
| /linux/drivers/mfd/ |
| H A D | tps65010.c | 62 struct i2c_client *client; member 213 value = i2c_smbus_read_byte_data(tps->client, TPS_CHGCONFIG); in dbg_show() 217 value = i2c_smbus_read_byte_data(tps->client, TPS_CHGSTATUS); in dbg_show() 220 value = i2c_smbus_read_byte_data(tps->client, TPS_MASK1); in dbg_show() 225 value = i2c_smbus_read_byte_data(tps->client, TPS_REGSTATUS); in dbg_show() 228 value = i2c_smbus_read_byte_data(tps->client, TPS_MASK2); in dbg_show() 237 value = i2c_smbus_read_byte_data(tps->client, TPS_VDCDC1); in dbg_show() 241 value = i2c_smbus_read_byte_data(tps->client, TPS_VDCDC2); in dbg_show() 245 value = i2c_smbus_read_byte_data(tps->client, TPS_VREGS1); in dbg_show() 250 value = i2c_smbus_read_byte_data(tps->client, TPS_LED1_ON); in dbg_show() [all …]
|