/drivers/media/i2c/cx25840/ |
D | cx25840-core.c | 82 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 …]
|
D | cx25840-audio.c | 40 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 …]
|
D | cx25840-firmware.c | 41 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 …]
|
/drivers/media/i2c/soc_camera/ |
D | mt9t112.c | 56 #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 …]
|
D | imx074.c | 88 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 …]
|
D | rj54n1cb0c.c | 423 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 …]
|
/drivers/firewire/ |
D | core-cdev.c | 59 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 …]
|
/drivers/media/i2c/ |
D | msp3400-kthreads.c | 184 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 …]
|
D | msp3400-driver.c | 109 int msp_reset(struct i2c_client *client) in msp_reset() argument 118 .addr = client->addr, in msp_reset() 124 .addr = client->addr, in msp_reset() 132 .addr = client->addr, in msp_reset() 137 .addr = client->addr, in msp_reset() 144 dev_dbg_lvl(&client->dev, 3, msp_debug, "msp_reset\n"); in msp_reset() 145 if (i2c_transfer(client->adapter, &reset[0], 1) != 1 || in msp_reset() 146 i2c_transfer(client->adapter, &reset[1], 1) != 1 || in msp_reset() 147 i2c_transfer(client->adapter, test, 2) != 2) { in msp_reset() 148 dev_err(&client->dev, "chip reset failed\n"); in msp_reset() [all …]
|
/drivers/input/mouse/ |
D | elan_i2c_i2c.c | 70 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 …]
|
D | elan_i2c_smbus.c | 56 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 …]
|
/drivers/gpu/drm/i915/ |
D | i915_guc_submission.c | 83 static inline bool is_high_priority(struct i915_guc_client* client) in is_high_priority() argument 85 return client->priority <= GUC_CLIENT_PRIORITY_HIGH; in is_high_priority() 88 static int __reserve_doorbell(struct i915_guc_client *client) in __reserve_doorbell() argument 94 GEM_BUG_ON(client->doorbell_id != GUC_DOORBELL_INVALID); in __reserve_doorbell() 103 if (is_high_priority(client)) { in __reserve_doorbell() 108 id = find_next_zero_bit(client->guc->doorbell_bitmap, end, offset); in __reserve_doorbell() 112 __set_bit(id, client->guc->doorbell_bitmap); in __reserve_doorbell() 113 client->doorbell_id = id; in __reserve_doorbell() 115 client->stage_id, yesno(is_high_priority(client)), in __reserve_doorbell() 120 static void __unreserve_doorbell(struct i915_guc_client *client) in __unreserve_doorbell() argument [all …]
|
/drivers/misc/ |
D | isl29003.c | 63 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() 84 static int __isl29003_write_reg(struct i2c_client *client, in __isl29003_write_reg() argument 87 struct isl29003_data *data = i2c_get_clientdata(client); in __isl29003_write_reg() 100 ret = i2c_smbus_write_byte_data(client, reg, tmp); in __isl29003_write_reg() 113 static int isl29003_get_range(struct i2c_client *client) in isl29003_get_range() argument 115 return __isl29003_read_reg(client, ISL29003_REG_CONTROL, in isl29003_get_range() 119 static int isl29003_set_range(struct i2c_client *client, int range) in isl29003_set_range() argument 121 return __isl29003_write_reg(client, ISL29003_REG_CONTROL, in isl29003_set_range() [all …]
|
D | fsa9480.c | 100 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 …]
|
/drivers/media/common/siano/ |
D | smsdvb-main.c | 75 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 …]
|
/drivers/gpu/vga/ |
D | vga_switcheroo.c | 188 struct vga_switcheroo_client *client; in vga_switcheroo_enable() local 194 list_for_each_entry(client, &vgasr_priv.clients, list) { in vga_switcheroo_enable() 195 if (client->id != VGA_SWITCHEROO_UNKNOWN_ID) in vga_switcheroo_enable() 197 ret = vgasr_priv.handler->get_client_id(client->pdev); in vga_switcheroo_enable() 201 client->id = ret; in vga_switcheroo_enable() 278 struct vga_switcheroo_client *client; in register_client() local 280 client = kzalloc(sizeof(*client), GFP_KERNEL); in register_client() 281 if (!client) in register_client() 284 client->pwr_state = VGA_SWITCHEROO_ON; in register_client() 285 client->pdev = pdev; in register_client() [all …]
|
/drivers/gpu/drm/nouveau/nvkm/core/ |
D | client.c | 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() 72 struct nvkm_client *client; member [all …]
|
/drivers/input/touchscreen/ |
D | raydium_i2c_ts.c | 125 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 …]
|
D | elants_i2c.c | 123 struct i2c_client *client; member 156 static int elants_i2c_send(struct i2c_client *client, in elants_i2c_send() argument 161 ret = i2c_master_send(client, data, size); in elants_i2c_send() 168 dev_err(&client->dev, "%s failed (%*ph): %d\n", in elants_i2c_send() 174 static int elants_i2c_read(struct i2c_client *client, void *data, size_t size) in elants_i2c_read() argument 178 ret = i2c_master_recv(client, data, size); in elants_i2c_read() 185 dev_err(&client->dev, "%s failed: %d\n", __func__, ret); in elants_i2c_read() 190 static int elants_i2c_execute_command(struct i2c_client *client, in elants_i2c_execute_command() argument 208 dev_err(&client->dev, "%s: invalid command %*ph\n", in elants_i2c_execute_command() 213 msgs[0].addr = client->addr; in elants_i2c_execute_command() [all …]
|
D | zforce_ts.c | 115 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 …]
|
/drivers/input/keyboard/ |
D | max7359_keypad.c | 64 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 …]
|
D | qt2160.c | 69 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 …]
|
/drivers/gpu/drm/nouveau/nvif/ |
D | client.c | 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_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 …]
|
/drivers/media/dvb-frontends/ |
D | rtl2830.c | 21 static int rtl2830_bulk_write(struct i2c_client *client, unsigned int reg, in rtl2830_bulk_write() argument 24 struct rtl2830_dev *dev = i2c_get_clientdata(client); in rtl2830_bulk_write() 27 i2c_lock_adapter(client->adapter); in rtl2830_bulk_write() 29 i2c_unlock_adapter(client->adapter); in rtl2830_bulk_write() 33 static int rtl2830_update_bits(struct i2c_client *client, unsigned int reg, in rtl2830_update_bits() argument 36 struct rtl2830_dev *dev = i2c_get_clientdata(client); in rtl2830_update_bits() 39 i2c_lock_adapter(client->adapter); in rtl2830_update_bits() 41 i2c_unlock_adapter(client->adapter); in rtl2830_update_bits() 45 static int rtl2830_bulk_read(struct i2c_client *client, unsigned int reg, in rtl2830_bulk_read() argument 48 struct rtl2830_dev *dev = i2c_get_clientdata(client); in rtl2830_bulk_read() [all …]
|
/drivers/hid/i2c-hid/ |
D | i2c-hid-core.c | 67 dev_printk(KERN_DEBUG, &(ihid)->client->dev, fmt, ##arg); \ 137 struct i2c_client *client; /* i2c client */ member 196 static int __i2c_hid_command(struct i2c_client *client, in __i2c_hid_command() argument 201 struct i2c_hid *ihid = i2c_get_clientdata(client); in __i2c_hid_command() 229 msg[0].addr = client->addr; in __i2c_hid_command() 230 msg[0].flags = client->flags & I2C_M_TEN; in __i2c_hid_command() 234 msg[1].addr = client->addr; in __i2c_hid_command() 235 msg[1].flags = client->flags & I2C_M_TEN; in __i2c_hid_command() 246 ret = i2c_transfer(client->adapter, msg, msg_num); in __i2c_hid_command() 268 static int i2c_hid_command(struct i2c_client *client, in i2c_hid_command() argument [all …]
|