Home
last modified time | relevance | path

Searched refs:client (Results 1 – 25 of 1584) sorted by relevance

12345678910>>...64

/Linux-v4.19/drivers/media/i2c/cx25840/
Dcx25840-core.c82 static void cx23888_std_setup(struct i2c_client *client);
84 int cx25840_write(struct i2c_client *client, u16 addr, u8 value) in cx25840_write() argument
90 return i2c_master_send(client, buffer, 3); in cx25840_write()
93 int cx25840_write4(struct i2c_client *client, u16 addr, u32 value) in cx25840_write4() argument
102 return i2c_master_send(client, buffer, 6); in cx25840_write4()
105 u8 cx25840_read(struct i2c_client * client, u16 addr) in cx25840_read() argument
113 msgs[0].addr = client->addr; in cx25840_read()
119 msgs[1].addr = client->addr; in cx25840_read()
124 if (i2c_transfer(client->adapter, msgs, 2) < 2) in cx25840_read()
130 u32 cx25840_read4(struct i2c_client * client, u16 addr) in cx25840_read4() argument
[all …]
Dcx25840-audio.c40 static int cx25840_set_audclk_freq(struct i2c_client *client, u32 freq) in cx25840_set_audclk_freq() argument
42 struct cx25840_state *state = to_state(i2c_get_clientdata(client)); in cx25840_set_audclk_freq()
51 cx25840_write4(client, 0x108, 0x1006040f); in cx25840_set_audclk_freq()
66 cx25840_write4(client, 0x110, 0x01bb39ee); in cx25840_set_audclk_freq()
72 cx25840_write(client, 0x127, 0x50); in cx25840_set_audclk_freq()
79 cx25840_write4(client, 0x900, 0x0801f77f); in cx25840_set_audclk_freq()
80 cx25840_write4(client, 0x904, 0x0801f77f); in cx25840_set_audclk_freq()
81 cx25840_write4(client, 0x90c, 0x0801f77f); in cx25840_set_audclk_freq()
89 cx25840_write4(client, 0x108, 0x1009040f); in cx25840_set_audclk_freq()
103 cx25840_write4(client, 0x110, 0x00ec6bd6); in cx25840_set_audclk_freq()
[all …]
Dcx25840-firmware.c41 static void start_fw_load(struct i2c_client *client) in start_fw_load() argument
44 cx25840_write(client, 0x800, 0x00); in start_fw_load()
45 cx25840_write(client, 0x801, 0x00); in start_fw_load()
47 cx25840_write(client, 0x803, 0x0b); in start_fw_load()
49 cx25840_write(client, 0x000, 0x20); in start_fw_load()
52 static void end_fw_load(struct i2c_client *client) in end_fw_load() argument
55 cx25840_write(client, 0x000, 0x00); in end_fw_load()
57 cx25840_write(client, 0x803, 0x03); in end_fw_load()
64 static const char *get_fw_name(struct i2c_client *client) in get_fw_name() argument
66 struct cx25840_state *state = to_state(i2c_get_clientdata(client)); in get_fw_name()
[all …]
/Linux-v4.19/drivers/media/i2c/soc_camera/
Dmt9t112.c56 #define mt9t112_reg_write(ret, client, a, b) \ argument
57 ECHECKER(ret, __mt9t112_reg_write(client, a, b))
58 #define mt9t112_mcu_write(ret, client, a, b) \ argument
59 ECHECKER(ret, __mt9t112_mcu_write(client, a, b))
61 #define mt9t112_reg_mask_set(ret, client, a, b, c) \ argument
62 ECHECKER(ret, __mt9t112_reg_mask_set(client, a, b, c))
63 #define mt9t112_mcu_mask_set(ret, client, a, b, c) \ argument
64 ECHECKER(ret, __mt9t112_mcu_mask_set(client, a, b, c))
66 #define mt9t112_reg_read(ret, client, a) \ argument
67 ECHECKER(ret, __mt9t112_reg_read(client, a))
[all …]
Drj54n1cb0c.c423 static struct rj54n1 *to_rj54n1(const struct i2c_client *client) in to_rj54n1() argument
425 return container_of(i2c_get_clientdata(client), struct rj54n1, subdev); in to_rj54n1()
428 static int reg_read(struct i2c_client *client, const u16 reg) in reg_read() argument
430 struct rj54n1 *rj54n1 = to_rj54n1(client); in reg_read()
435 dev_dbg(&client->dev, "[0x%x] = 0x%x\n", 0xff, reg >> 8); in reg_read()
436 ret = i2c_smbus_write_byte_data(client, 0xff, reg >> 8); in reg_read()
441 return i2c_smbus_read_byte_data(client, reg & 0xff); in reg_read()
444 static int reg_write(struct i2c_client *client, const u16 reg, in reg_write() argument
447 struct rj54n1 *rj54n1 = to_rj54n1(client); in reg_write()
452 dev_dbg(&client->dev, "[0x%x] = 0x%x\n", 0xff, reg >> 8); in reg_write()
[all …]
/Linux-v4.19/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.c184 static void msp_set_source(struct i2c_client *client, u16 src) in msp_set_source() argument
186 struct msp_state *state = to_state(i2c_get_clientdata(client)); in msp_set_source()
189 msp_write_dsp(client, 0x0008, 0x0520); /* I2S1 */ in msp_set_source()
190 msp_write_dsp(client, 0x0009, 0x0620); /* I2S2 */ in msp_set_source()
192 msp_write_dsp(client, 0x0008, src); in msp_set_source()
193 msp_write_dsp(client, 0x0009, src); in msp_set_source()
195 msp_write_dsp(client, 0x000a, src); in msp_set_source()
196 msp_write_dsp(client, 0x000b, src); in msp_set_source()
197 msp_write_dsp(client, 0x000c, src); in msp_set_source()
199 msp_write_dsp(client, 0x0041, src); in msp_set_source()
[all …]
Drj54n1cb0c.c425 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 …]
/Linux-v4.19/drivers/staging/media/imx074/
Dimx074.c88 static struct imx074 *to_imx074(const struct i2c_client *client) in to_imx074() argument
90 return container_of(i2c_get_clientdata(client), struct imx074, subdev); in to_imx074()
105 static int reg_write(struct i2c_client *client, const u16 addr, const u8 data) in reg_write() argument
107 struct i2c_adapter *adap = client->adapter; in reg_write()
112 msg.addr = client->addr; in reg_write()
128 static int reg_read(struct i2c_client *client, const u16 addr) in reg_read() argument
134 .addr = client->addr, in reg_read()
139 .addr = client->addr, in reg_read()
146 ret = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); in reg_read()
148 dev_warn(&client->dev, "Reading register %x from %x failed\n", in reg_read()
[all …]
/Linux-v4.19/drivers/firewire/
Dcore-cdev.c59 struct client { struct
84 static inline void client_get(struct client *client) in client_get() argument
86 kref_get(&client->kref); in client_get()
91 struct client *client = container_of(kref, struct client, kref); in client_release() local
93 fw_device_put(client->device); in client_release()
94 kfree(client); in client_release()
97 static void client_put(struct client *client) in client_put() argument
99 kref_put(&client->kref, client_release); in client_put()
103 typedef void (*client_resource_release_fn_t)(struct client *,
114 struct client *client; member
[all …]
/Linux-v4.19/drivers/input/mouse/
Delan_i2c_i2c.c70 static int elan_i2c_read_block(struct i2c_client *client, in elan_i2c_read_block() argument
78 .addr = client->addr, in elan_i2c_read_block()
79 .flags = client->flags & I2C_M_TEN, in elan_i2c_read_block()
84 .addr = client->addr, in elan_i2c_read_block()
85 .flags = (client->flags & I2C_M_TEN) | I2C_M_RD, in elan_i2c_read_block()
92 ret = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); in elan_i2c_read_block()
96 static int elan_i2c_read_cmd(struct i2c_client *client, u16 reg, u8 *val) in elan_i2c_read_cmd() argument
100 retval = elan_i2c_read_block(client, reg, val, ETP_I2C_INF_LENGTH); in elan_i2c_read_cmd()
102 dev_err(&client->dev, "reading cmd (0x%04x) fail.\n", reg); in elan_i2c_read_cmd()
109 static int elan_i2c_write_cmd(struct i2c_client *client, u16 reg, u16 cmd) in elan_i2c_write_cmd() argument
[all …]
Delan_i2c_smbus.c56 static int elan_smbus_initialize(struct i2c_client *client) in elan_smbus_initialize() argument
63 len = i2c_smbus_read_block_data(client, in elan_smbus_initialize()
66 dev_err(&client->dev, "hello packet length fail: %d\n", len); in elan_smbus_initialize()
73 dev_err(&client->dev, "hello packet fail [%*ph]\n", in elan_smbus_initialize()
79 error = i2c_smbus_write_byte(client, ETP_SMBUS_ENABLE_TP); in elan_smbus_initialize()
81 dev_err(&client->dev, "failed to enable touchpad: %d\n", error); in elan_smbus_initialize()
88 static int elan_smbus_set_mode(struct i2c_client *client, u8 mode) in elan_smbus_set_mode() argument
92 return i2c_smbus_write_block_data(client, ETP_SMBUS_IAP_CMD, in elan_smbus_set_mode()
96 static int elan_smbus_sleep_control(struct i2c_client *client, bool sleep) in elan_smbus_sleep_control() argument
99 return i2c_smbus_write_byte(client, ETP_SMBUS_SLEEP_CMD); in elan_smbus_sleep_control()
[all …]
/Linux-v4.19/drivers/gpu/vga/
Dvga_switcheroo.c190 struct vga_switcheroo_client *client; in vga_switcheroo_enable() local
196 list_for_each_entry(client, &vgasr_priv.clients, list) { in vga_switcheroo_enable()
197 if (!client_is_vga(client) || in vga_switcheroo_enable()
198 client_id(client) != VGA_SWITCHEROO_UNKNOWN_ID) in vga_switcheroo_enable()
201 ret = vgasr_priv.handler->get_client_id(client->pdev); in vga_switcheroo_enable()
205 client->id = ret; in vga_switcheroo_enable()
208 list_for_each_entry(client, &vgasr_priv.clients, list) { in vga_switcheroo_enable()
209 if (!client_is_audio(client) || in vga_switcheroo_enable()
210 client_id(client) != VGA_SWITCHEROO_UNKNOWN_ID) in vga_switcheroo_enable()
213 ret = vgasr_priv.handler->get_client_id(client->vga_dev); in vga_switcheroo_enable()
[all …]
/Linux-v4.19/drivers/misc/
Disl29003.c63 struct i2c_client *client; member
77 static int __isl29003_read_reg(struct i2c_client *client, in __isl29003_read_reg() argument
80 struct isl29003_data *data = i2c_get_clientdata(client); in __isl29003_read_reg()
85 static int __isl29003_write_reg(struct i2c_client *client, in __isl29003_write_reg() argument
88 struct isl29003_data *data = i2c_get_clientdata(client); in __isl29003_write_reg()
101 ret = i2c_smbus_write_byte_data(client, reg, tmp); in __isl29003_write_reg()
114 static int isl29003_get_range(struct i2c_client *client) in isl29003_get_range() argument
116 return __isl29003_read_reg(client, ISL29003_REG_CONTROL, in isl29003_get_range()
120 static int isl29003_set_range(struct i2c_client *client, int range) in isl29003_set_range() argument
122 return __isl29003_write_reg(client, ISL29003_REG_CONTROL, in isl29003_set_range()
[all …]
Dfsa9480.c100 struct i2c_client *client; member
109 static int fsa9480_write_reg(struct i2c_client *client, in fsa9480_write_reg() argument
114 ret = i2c_smbus_write_byte_data(client, reg, value); in fsa9480_write_reg()
117 dev_err(&client->dev, "%s: err %d\n", __func__, ret); in fsa9480_write_reg()
122 static int fsa9480_read_reg(struct i2c_client *client, int reg) in fsa9480_read_reg() argument
126 ret = i2c_smbus_read_byte_data(client, reg); in fsa9480_read_reg()
129 dev_err(&client->dev, "%s: err %d\n", __func__, ret); in fsa9480_read_reg()
134 static int fsa9480_read_irq(struct i2c_client *client, int *value) in fsa9480_read_irq() argument
138 ret = i2c_smbus_read_i2c_block_data(client, in fsa9480_read_irq()
143 dev_err(&client->dev, "%s: err %d\n", __func__, ret); in fsa9480_read_irq()
[all …]
Dapds9802als.c47 struct i2c_client *client = to_i2c_client(dev); in als_sensing_range_show() local
50 val = i2c_smbus_read_byte_data(client, 0x81); in als_sensing_range_show()
61 struct i2c_client *client = to_i2c_client(dev); in als_wait_for_data_ready() local
67 ret = i2c_smbus_read_byte_data(client, 0x86); in als_wait_for_data_ready()
81 struct i2c_client *client = to_i2c_client(dev); in als_lux0_input_data_show() local
82 struct als_data *data = i2c_get_clientdata(client); in als_lux0_input_data_show()
91 i2c_smbus_write_byte(client, 0x40); in als_lux0_input_data_show()
93 temp = i2c_smbus_read_byte_data(client, 0x81); in als_lux0_input_data_show()
94 i2c_smbus_write_byte_data(client, 0x81, temp | 0x08); in als_lux0_input_data_show()
100 temp = i2c_smbus_read_byte_data(client, 0x8C); /* LSB data */ in als_lux0_input_data_show()
[all …]
/Linux-v4.19/drivers/gpu/drm/nouveau/nvif/
Dclient.c33 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_fini(struct nvif_client *client) in nvif_client_fini() argument
53 nvif_object_fini(&client->object); in nvif_client_fini()
54 if (client->driver) { in nvif_client_fini()
55 if (client->driver->fini) in nvif_client_fini()
[all …]
/Linux-v4.19/drivers/gpu/drm/nouveau/nvkm/core/
Dclient.c41 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()
72 struct nvkm_client *client; member
[all …]
/Linux-v4.19/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()
79 int drm_client_init(struct drm_device *dev, struct drm_client_dev *client, in drm_client_init() argument
91 client->dev = dev; in drm_client_init()
92 client->name = name; in drm_client_init()
[all …]
/Linux-v4.19/drivers/input/keyboard/
Dmax7359_keypad.c64 struct i2c_client *client; member
67 static int max7359_write_reg(struct i2c_client *client, u8 reg, u8 val) in max7359_write_reg() argument
69 int ret = i2c_smbus_write_byte_data(client, reg, val); in max7359_write_reg()
72 dev_err(&client->dev, "%s: reg 0x%x, val 0x%x, err %d\n", in max7359_write_reg()
77 static int max7359_read_reg(struct i2c_client *client, int reg) in max7359_read_reg() argument
79 int ret = i2c_smbus_read_byte_data(client, reg); in max7359_read_reg()
82 dev_err(&client->dev, "%s: reg 0x%x, err %d\n", in max7359_read_reg()
94 val = max7359_read_reg(keypad->client, MAX7359_REG_KEYFIFO); in max7359_interrupt()
101 dev_dbg(&keypad->client->dev, in max7359_interrupt()
116 static inline void max7359_fall_deepsleep(struct i2c_client *client) in max7359_fall_deepsleep() argument
[all …]
Dqt2160.c69 struct i2c_client *client; member
81 static int qt2160_read(struct i2c_client *client, u8 reg);
82 static int qt2160_write(struct i2c_client *client, u8 reg, u8 data);
90 struct i2c_client *client = qt2160->client; in qt2160_led_work() local
96 drive = qt2160_read(client, QT2160_CMD_DRIVE_X); in qt2160_led_work()
97 pwmen = qt2160_read(client, QT2160_CMD_PWMEN_X); in qt2160_led_work()
106 qt2160_write(client, QT2160_CMD_DRIVE_X, drive); in qt2160_led_work()
107 qt2160_write(client, QT2160_CMD_PWMEN_X, pwmen); in qt2160_led_work()
114 qt2160_write(client, QT2160_CMD_PWM_DUTY, value); in qt2160_led_work()
130 static int qt2160_read_block(struct i2c_client *client, in qt2160_read_block() argument
[all …]
/Linux-v4.19/drivers/media/common/siano/
Dsmsdvb-main.c75 static void sms_board_dvb3_event(struct smsdvb_client_t *client, in sms_board_dvb3_event() argument
78 struct smscore_device_t *coredev = client->coredev; in sms_board_dvb3_event()
93 if (client->event_fe_state != DVB3_EVENT_FE_LOCK) { in sms_board_dvb3_event()
94 client->event_fe_state = DVB3_EVENT_FE_LOCK; in sms_board_dvb3_event()
100 if (client->event_fe_state != DVB3_EVENT_FE_UNLOCK) { in sms_board_dvb3_event()
101 client->event_fe_state = DVB3_EVENT_FE_UNLOCK; in sms_board_dvb3_event()
107 if (client->event_unc_state != DVB3_EVENT_UNC_OK) { in sms_board_dvb3_event()
108 client->event_unc_state = DVB3_EVENT_UNC_OK; in sms_board_dvb3_event()
114 if (client->event_unc_state != DVB3_EVENT_UNC_ERR) { in sms_board_dvb3_event()
115 client->event_unc_state = DVB3_EVENT_UNC_ERR; in sms_board_dvb3_event()
[all …]
/Linux-v4.19/drivers/input/touchscreen/
Draydium_i2c_ts.c125 struct i2c_client *client; member
148 static int raydium_i2c_send(struct i2c_client *client, in raydium_i2c_send() argument
163 ret = i2c_master_send(client, buf, len + 1); in raydium_i2c_send()
175 dev_err(&client->dev, "%s failed: %d\n", __func__, ret); in raydium_i2c_send()
182 static int raydium_i2c_read(struct i2c_client *client, in raydium_i2c_read() argument
187 .addr = client->addr, in raydium_i2c_read()
192 .addr = client->addr, in raydium_i2c_read()
200 ret = i2c_transfer(client->adapter, xfer, ARRAY_SIZE(xfer)); in raydium_i2c_read()
207 static int raydium_i2c_read_message(struct i2c_client *client, in raydium_i2c_read_message() argument
219 error = raydium_i2c_send(client, RM_CMD_BANK_SWITCH, in raydium_i2c_read_message()
[all …]
Dzforce_ts.c115 struct i2c_client *client; member
145 struct i2c_client *client = ts->client; in zforce_command() local
149 dev_dbg(&client->dev, "%s: 0x%x\n", __func__, cmd); in zforce_command()
156 ret = i2c_master_send(client, &buf[0], ARRAY_SIZE(buf)); in zforce_command()
159 dev_err(&client->dev, "i2c send data request error: %d\n", ret); in zforce_command()
178 struct i2c_client *client = ts->client; in zforce_send_wait() local
183 dev_err(&client->dev, "already waiting for a command\n"); in zforce_send_wait()
187 dev_dbg(&client->dev, "sending %d bytes for command 0x%x\n", in zforce_send_wait()
193 ret = i2c_master_send(client, buf, len); in zforce_send_wait()
196 dev_err(&client->dev, "i2c send data request error: %d\n", ret); in zforce_send_wait()
[all …]
/Linux-v4.19/sound/core/seq/
Dseq_clientmgr.c81 static int bounce_error_event(struct snd_seq_client *client,
84 static int snd_seq_deliver_single_event(struct snd_seq_client *client,
102 static inline int snd_seq_write_pool_allocated(struct snd_seq_client *client) in snd_seq_write_pool_allocated() argument
104 return snd_seq_total_cells(client->pool) > 0; in snd_seq_write_pool_allocated()
121 struct snd_seq_client *client; in snd_seq_client_use_ptr() local
129 client = clientptr(clientid); in snd_seq_client_use_ptr()
130 if (client) in snd_seq_client_use_ptr()
168 client = clientptr(clientid); in snd_seq_client_use_ptr()
169 if (client) in snd_seq_client_use_ptr()
177 snd_use_lock_use(&client->use_lock); in snd_seq_client_use_ptr()
[all …]

12345678910>>...64