Home
last modified time | relevance | path

Searched full:client (Results 1 – 25 of 6025) sorted by relevance

12345678910>>...241

/kernel/linux/linux-5.10/drivers/media/i2c/cx25840/
Dcx25840-core.c74 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 …]
Dcx25840-audio.c31 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 …]
/kernel/linux/linux-6.6/drivers/media/i2c/cx25840/
Dcx25840-core.c74 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 …]
Dcx25840-audio.c31 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 …]
/kernel/linux/linux-5.10/drivers/firewire/
Dcore-cdev.c46 struct client { struct
71 static inline void client_get(struct client *client) in client_get() argument
73 kref_get(&client->kref); in client_get()
78 struct client *client = container_of(kref, struct client, kref); in client_release() local
80 fw_device_put(client->device); in client_release()
81 kfree(client); in client_release()
84 static void client_put(struct client *client) in client_put() argument
86 kref_put(&client->kref, client_release); in client_put()
90 typedef void (*client_resource_release_fn_t)(struct client *,
101 struct client *client; member
[all …]
/kernel/linux/linux-6.6/drivers/firewire/
Dcore-cdev.c48 struct client { struct
73 static inline void client_get(struct client *client) in client_get() argument
75 kref_get(&client->kref); in client_get()
80 struct client *client = container_of(kref, struct client, kref); in client_release() local
82 fw_device_put(client->device); in client_release()
83 kfree(client); in client_release()
86 static void client_put(struct client *client) in client_put() argument
88 kref_put(&client->kref, client_release); in client_put()
92 typedef void (*client_resource_release_fn_t)(struct client *,
103 struct client *client; member
[all …]
/kernel/linux/linux-6.6/drivers/gpu/drm/
Ddrm_client.c35 static int drm_client_open(struct drm_client_dev *client) in drm_client_open() argument
37 struct drm_device *dev = client->dev; in drm_client_open()
48 client->file = file; in drm_client_open()
53 static void drm_client_close(struct drm_client_dev *client) in drm_client_close() argument
55 struct drm_device *dev = client->dev; in drm_client_close()
58 list_del(&client->file->lhead); in drm_client_close()
61 drm_file_free(client->file); in drm_client_close()
65 * drm_client_init - Initialise a DRM client
67 * @client: DRM client
68 * @name: Client name
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/
Ddrm_client.c34 static int drm_client_open(struct drm_client_dev *client) in drm_client_open() argument
36 struct drm_device *dev = client->dev; in drm_client_open()
47 client->file = file; in drm_client_open()
52 static void drm_client_close(struct drm_client_dev *client) in drm_client_close() argument
54 struct drm_device *dev = client->dev; in drm_client_close()
57 list_del(&client->file->lhead); in drm_client_close()
60 drm_file_free(client->file); in drm_client_close()
64 * drm_client_init - Initialise a DRM client
66 * @client: DRM client
67 * @name: Client name
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/iavf/
Diavf_client.c18 struct iavf_client *client,
22 struct iavf_client *client,
31 * iavf_client_get_params - retrieve relevant client parameters
33 * @params: client param struct
51 * iavf_notify_client_message - call the client message receive callback
52 * @vsi: the VSI associated with this client
56 * If there is a client to this VSI, call the client
66 if (!cinst || !cinst->client || !cinst->client->ops || in iavf_notify_client_message()
67 !cinst->client->ops->virtchnl_receive) { in iavf_notify_client_message()
69 "Cannot locate client instance virtchnl_receive function\n"); in iavf_notify_client_message()
[all …]
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/iavf/
Diavf_client.c18 struct iavf_client *client,
22 struct iavf_client *client,
31 * iavf_client_get_params - retrieve relevant client parameters
33 * @params: client param struct
51 * iavf_notify_client_message - call the client message receive callback
52 * @vsi: the VSI associated with this client
56 * If there is a client to this VSI, call the client
66 if (!cinst || !cinst->client || !cinst->client->ops || in iavf_notify_client_message()
67 !cinst->client->ops->virtchnl_receive) { in iavf_notify_client_message()
69 "Cannot locate client instance virtchnl_receive function\n"); in iavf_notify_client_message()
[all …]
/kernel/linux/linux-5.10/sound/core/seq/
Dseq_clientmgr.c3 * ALSA sequencer Client Manager
28 /* Client Manager
35 * There are four ranges of client numbers (last two shared):
37 * 16..127: statically allocated client numbers for cards 0..27
38 * 128..191: dynamically allocated client numbers for cards 28..31
39 * 128..191: dynamically allocated client numbers for applications
46 /* dynamically allocated client numbers (both kernel drivers and user space) */
57 * client table
66 static int bounce_error_event(struct snd_seq_client *client,
69 static int snd_seq_deliver_single_event(struct snd_seq_client *client,
[all …]
/kernel/linux/linux-6.6/sound/core/seq/
Dseq_ump_client.c35 /* sequencer client, per UMP EP (rawmidi) */
38 int seq_client; /* sequencer client id */
42 void *ump_info[SNDRV_UMP_MAX_BLOCKS + 1]; /* shadow of seq client ump_info */
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
[all …]
Dseq_clientmgr.c3 * ALSA sequencer Client Manager
30 /* Client Manager
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,
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/core/
Dclient.c24 #include <core/client.h>
41 struct nvkm_client *client; in nvkm_uclient_new() local
47 NULL, oclass->client->ntfy, &client); in nvkm_uclient_new()
53 client->object.client = oclass->client; in nvkm_uclient_new()
54 client->object.handle = oclass->handle; in nvkm_uclient_new()
55 client->object.route = oclass->route; in nvkm_uclient_new()
56 client->object.token = oclass->token; in nvkm_uclient_new()
57 client->object.object = oclass->object; in nvkm_uclient_new()
58 client->debug = oclass->client->debug; in nvkm_uclient_new()
59 *pobject = &client->object; in nvkm_uclient_new()
[all …]
/kernel/linux/linux-6.6/drivers/misc/
Disl29003.c50 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 …]
/kernel/linux/linux-5.10/drivers/misc/
Disl29003.c50 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 …]
/kernel/linux/linux-6.6/tools/testing/selftests/tpm2/
Dtpm2_tests.py15 self.client = tpm2.Client()
16 self.root_key = self.client.create_root_key()
19 self.client.flush_context(self.root_key)
20 self.client.close()
26 blob = self.client.seal(self.root_key, data, auth, None)
27 result = self.client.unseal(self.root_key, blob, auth, None)
31 pcr_banks = self.client.get_cap_pcrs()
41 handle = self.client.start_auth_session(tpm2.TPM2_SE_TRIAL)
48 self.client.policy_pcr(handle, pcrs, bank_alg=bank_alg)
49 self.client.policy_password(handle)
[all …]
/kernel/linux/linux-6.6/drivers/virt/acrn/
Dioreq.c29 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()
107 * acrn_ioreq_range_add() - Add an iorange monitored by an ioreq client
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/tpm2/
Dtpm2_tests.py15 self.client = tpm2.Client()
16 self.root_key = self.client.create_root_key()
19 self.client.flush_context(self.root_key)
20 self.client.close()
26 blob = self.client.seal(self.root_key, data, auth, None)
27 result = self.client.unseal(self.root_key, blob, auth, None)
31 handle = self.client.start_auth_session(tpm2.TPM2_SE_TRIAL)
38 self.client.policy_pcr(handle, pcrs)
39 self.client.policy_password(handle)
41 policy_dig = self.client.get_policy_digest(handle)
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/i40e/
Di40e_client.c17 struct i40e_client *client,
21 struct i40e_client *client,
25 struct i40e_client *client,
29 struct i40e_client *client,
43 * @params: client param struct
75 * i40e_notify_client_of_vf_msg - call the client vf message callback
81 * If there is a client to this VSI, call the client
89 if (!cdev || !cdev->client) in i40e_notify_client_of_vf_msg()
91 if (!cdev->client->ops || !cdev->client->ops->virtchnl_receive) { in i40e_notify_client_of_vf_msg()
93 "Cannot locate client instance virtual channel receive routine\n"); in i40e_notify_client_of_vf_msg()
[all …]
/kernel/linux/linux-6.6/drivers/input/mouse/
Delan_i2c_i2c.c74 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 …]
/kernel/linux/linux-5.10/drivers/input/mouse/
Delan_i2c_i2c.c74 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 …]
/kernel/linux/linux-5.10/drivers/media/i2c/
Dmt9t112.c60 #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 …]
/kernel/linux/linux-6.6/drivers/media/i2c/
Dmt9t112.c60 #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 …]
/kernel/linux/linux-5.10/drivers/media/common/siano/
Dsmsdvb-main.c64 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 …]

12345678910>>...241