Home
last modified time | relevance | path

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

12345678910>>...121

/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-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-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-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-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-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-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-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 …]
Dmsp3400-kthreads.c175 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 …]
/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 …]
/kernel/linux/linux-5.10/drivers/gpu/vga/
Dvga_switcheroo.c74 * register as a client so that vga_switcheroo can take care of the correct
77 * client (on the discrete GPU). The code is mostly prepared to support
81 * active client in vga_switcheroo parlance. The GPU not in use is the
82 * inactive client. When the inactive client's DRM driver is loaded,
86 * a client may alternatively request that the DDC lines are temporarily
93 * struct vga_switcheroo_client - registered client
94 * @pdev: client pci device
98 * @ops: client callbacks
99 * @id: client identifier. Determining the id requires the handler,
102 * @active: whether the outputs are currently switched to this client
[all …]
/kernel/linux/linux-5.10/drivers/input/keyboard/
Dqt2160.c55 struct i2c_client *client; member
65 static int qt2160_read(struct i2c_client *client, u8 reg);
66 static int qt2160_write(struct i2c_client *client, u8 reg, u8 data);
75 struct i2c_client *client = qt2160->client; in qt2160_led_set() local
79 drive = qt2160_read(client, QT2160_CMD_DRIVE_X); in qt2160_led_set()
80 pwmen = qt2160_read(client, QT2160_CMD_PWMEN_X); in qt2160_led_set()
89 qt2160_write(client, QT2160_CMD_DRIVE_X, drive); in qt2160_led_set()
90 qt2160_write(client, QT2160_CMD_PWMEN_X, pwmen); in qt2160_led_set()
97 qt2160_write(client, QT2160_CMD_PWM_DUTY, value); in qt2160_led_set()
107 static int qt2160_read_block(struct i2c_client *client, in qt2160_read_block() argument
[all …]
Dmax7359_keypad.c61 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 …]
Dqt1070.c49 struct i2c_client *client; member
56 static int qt1070_read(struct i2c_client *client, u8 reg) in qt1070_read() argument
60 ret = i2c_smbus_read_byte_data(client, reg); in qt1070_read()
62 dev_err(&client->dev, in qt1070_read()
68 static int qt1070_write(struct i2c_client *client, u8 reg, u8 data) in qt1070_write() argument
72 ret = i2c_smbus_write_byte_data(client, reg, data); in qt1070_write()
74 dev_err(&client->dev, in qt1070_write()
80 static bool qt1070_identify(struct i2c_client *client) in qt1070_identify() argument
85 id = qt1070_read(client, CHIP_ID); in qt1070_identify()
87 dev_err(&client->dev, "ID %d not supported\n", id); in qt1070_identify()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/host1x/
Dbus.c27 struct host1x_client *client; member
110 struct host1x_client *client) in host1x_subdev_register() argument
116 * and associate it with a client. At the same time, associate the in host1x_subdev_register()
117 * client with its parent device. in host1x_subdev_register()
121 list_move_tail(&client->list, &device->clients); in host1x_subdev_register()
123 client->host = &device->dev; in host1x_subdev_register()
124 subdev->client = client; in host1x_subdev_register()
140 struct host1x_client *client = subdev->client; in __host1x_subdev_unregister() local
158 subdev->client = NULL; in __host1x_subdev_unregister()
159 client->host = NULL; in __host1x_subdev_unregister()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvif/
Dclient.c25 #include <nvif/client.h>
33 nvif_client_ioctl(struct nvif_client *client, void *data, u32 size) in nvif_client_ioctl() argument
35 return client->driver->ioctl(client->object.priv, client->super, data, size, NULL); in nvif_client_ioctl()
39 nvif_client_suspend(struct nvif_client *client) in nvif_client_suspend() argument
41 return client->driver->suspend(client->object.priv); in nvif_client_suspend()
45 nvif_client_resume(struct nvif_client *client) in nvif_client_resume() argument
47 return client->driver->resume(client->object.priv); in nvif_client_resume()
51 nvif_client_dtor(struct nvif_client *client) in nvif_client_dtor() argument
53 nvif_object_dtor(&client->object); in nvif_client_dtor()
54 if (client->driver) { in nvif_client_dtor()
[all …]
/kernel/linux/linux-5.10/drivers/input/touchscreen/
Dbu21013_ts.c141 * @client: pointer to the i2c client
158 struct i2c_client *client; member
176 ret = i2c_smbus_read_i2c_block_data(ts->client, in bu21013_read_block_data()
245 dev_err(&ts->client->dev, "%s failed\n", __func__); in bu21013_gpio_irq()
263 struct i2c_client *client = ts->client; in bu21013_init_chip() local
266 error = i2c_smbus_write_byte_data(client, BU21013_RESET_REG, in bu21013_init_chip()
269 dev_err(&client->dev, "BU21013_RESET reg write failed\n"); in bu21013_init_chip()
274 error = i2c_smbus_write_byte_data(client, BU21013_SENSOR_0_7_REG, in bu21013_init_chip()
277 dev_err(&client->dev, "BU21013_SENSOR_0_7 reg write failed\n"); in bu21013_init_chip()
281 error = i2c_smbus_write_byte_data(client, BU21013_SENSOR_8_15_REG, in bu21013_init_chip()
[all …]
Draydium_i2c_ts.c117 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 …]
Diqs5xx.c99 struct i2c_client *client; member
129 static int iqs5xx_read_burst(struct i2c_client *client, in iqs5xx_read_burst() argument
136 .addr = client->addr, in iqs5xx_read_burst()
142 .addr = client->addr, in iqs5xx_read_burst()
155 ret = i2c_transfer(client->adapter, msg, ARRAY_SIZE(msg)); in iqs5xx_read_burst()
165 dev_err(&client->dev, "Failed to read from address 0x%04X: %d\n", in iqs5xx_read_burst()
171 static int iqs5xx_read_word(struct i2c_client *client, u16 reg, u16 *val) in iqs5xx_read_word() argument
176 error = iqs5xx_read_burst(client, reg, &val_buf, sizeof(val_buf)); in iqs5xx_read_word()
185 static int iqs5xx_read_byte(struct i2c_client *client, u16 reg, u8 *val) in iqs5xx_read_byte() argument
187 return iqs5xx_read_burst(client, reg, val, sizeof(*val)); in iqs5xx_read_byte()
[all …]
/kernel/linux/linux-5.10/drivers/input/
Devdev.c75 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()
100 /* flush queued events of type @type, caller must hold client->buffer_lock */
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()
[all …]
/kernel/linux/linux-5.10/drivers/rtc/
Drtc-ds1374.c2 * RTC client/driver for the Maxim/Dallas DS1374 Real-Time Clock over I2C
72 struct i2c_client *client; member
88 static int ds1374_read_rtc(struct i2c_client *client, u32 *time, in ds1374_read_rtc() argument
98 ret = i2c_smbus_read_i2c_block_data(client, reg, nbytes, buf); in ds1374_read_rtc()
111 static int ds1374_write_rtc(struct i2c_client *client, u32 time, in ds1374_write_rtc() argument
127 return i2c_smbus_write_i2c_block_data(client, reg, nbytes, buf); in ds1374_write_rtc()
130 static int ds1374_check_rtc_status(struct i2c_client *client) in ds1374_check_rtc_status() argument
135 stat = i2c_smbus_read_byte_data(client, DS1374_REG_SR); in ds1374_check_rtc_status()
140 dev_warn(&client->dev, in ds1374_check_rtc_status()
145 ret = i2c_smbus_write_byte_data(client, DS1374_REG_SR, stat); in ds1374_check_rtc_status()
[all …]

12345678910>>...121