/linux-master/drivers/char/ipmi/ |
H A D | ipmb_dev_int.c | 57 struct i2c_client *client; member in struct:ipmb_dev 116 static int ipmb_i2c_write(struct i2c_client *client, u8 *msg, u8 addr) argument 130 i2c_msg.flags = client->flags & I2C_CLIENT_PEC; 132 return i2c_transfer(client->adapter, &i2c_msg, 1); 158 ret = ipmb_i2c_write(ipmb_dev->client, msg, rq_sa); 164 * temporary client. Note that its use is an exception for IPMI. 167 temp_client = kmemdup(ipmb_dev->client, sizeof(*temp_client), GFP_KERNEL); 249 static int ipmb_slave_cb(struct i2c_client *client, argument 252 struct ipmb_dev *ipmb_dev = i2c_get_clientdata(client); 278 buf[++ipmb_dev->msg_idx] = GET_8BIT_ADDR(client 302 ipmb_probe(struct i2c_client *client) argument 344 ipmb_remove(struct i2c_client *client) argument [all...] |
/linux-master/drivers/hwmon/ |
H A D | max1619.c | 76 * Client data (each client gets its own) 80 struct i2c_client *client; member in struct:max1619_data 109 struct i2c_client *client = data->client; local 115 dev_dbg(&client->dev, "Updating max1619 data.\n"); 117 data->temp[i] = i2c_smbus_read_byte_data(client, 119 data->alarms = i2c_smbus_read_byte_data(client, 122 config = i2c_smbus_read_byte_data(client, MAX1619_REG_R_CONFIG); 154 struct i2c_client *client = data->client; local 214 max1619_detect(struct i2c_client *client, struct i2c_board_info *info) argument 249 max1619_init_client(struct i2c_client *client) argument [all...] |
H A D | tc654.c | 60 struct i2c_client *client; member in struct:tc654_data 137 struct i2c_client *client = data->client; local 145 ret = i2c_smbus_read_byte_data(client, TC654_REG_RPM(0)); 150 ret = i2c_smbus_read_byte_data(client, TC654_REG_RPM(1)); 155 ret = i2c_smbus_read_byte_data(client, TC654_REG_FAN_FAULT(0)); 160 ret = i2c_smbus_read_byte_data(client, TC654_REG_FAN_FAULT(1)); 165 ret = i2c_smbus_read_byte_data(client, TC654_REG_CONFIG); 170 ret = i2c_smbus_read_byte_data(client, TC654_REG_STATUS); 175 ret = i2c_smbus_read_byte_data(client, TC654_REG_DUTY_CYCL 231 struct i2c_client *client = data->client; local 290 struct i2c_client *client = data->client; local 340 struct i2c_client *client = data->client; local 385 struct i2c_client *client = data->client; local 512 tc654_probe(struct i2c_client *client) argument [all...] |
H A D | emc2305.c | 88 * @client: i2c client 97 struct i2c_client *client; member in struct:emc2305_data 176 struct i2c_client *client = data->client; local 185 ret = i2c_smbus_write_byte_data(client, EMC2305_REG_FAN_DRIVE(cdev_idx), val); 194 ret = i2c_smbus_write_byte_data(client, EMC2305_REG_FAN_DRIVE(i), val); 233 struct i2c_client *client = data->client; local 236 status_reg = i2c_smbus_read_byte_data(client, EMC2305_REG_DRIVE_FAIL_STATU 246 struct i2c_client *client = data->client; local 264 struct i2c_client *client = data->client; local 272 struct i2c_client *client = data->client; local 502 struct i2c_client *client = to_i2c_client(dev); local 530 emc2305_probe(struct i2c_client *client) argument 602 emc2305_remove(struct i2c_client *client) argument [all...] |
/linux-master/drivers/mfd/ |
H A D | rsmu_i2c.c | 61 struct i2c_client *client = to_i2c_client(rsmu->dev); local 63 return i2c_smbus_write_i2c_block_data(client, reg, bytes, buf); 68 struct i2c_client *client = to_i2c_client(rsmu->dev); local 71 ret = i2c_smbus_read_i2c_block_data(client, reg, bytes, buf); 82 struct i2c_client *client = to_i2c_client(rsmu->dev); local 86 msg[0].addr = client->addr; 91 msg[1].addr = client->addr; 96 cnt = i2c_transfer(client->adapter, msg, 2); 112 struct i2c_client *client = to_i2c_client(rsmu->dev); local 123 cnt = i2c_master_send(client, ms 274 rsmu_i2c_probe(struct i2c_client *client) argument 327 rsmu_i2c_remove(struct i2c_client *client) argument [all...] |
H A D | ene-kb3930.c | 31 struct i2c_client *client; member in struct:kb3930 89 return i2c_smbus_write_word_data(ddata->client, EC_RAM_OUT, 99 ret = i2c_smbus_write_word_data(ddata->client, EC_RAM_IN, reg); 103 ret = i2c_smbus_read_word_data(ddata->client, EC_DATA_IN); 122 static int kb3930_probe(struct i2c_client *client) argument 124 struct device *dev = &client->dev; 135 ddata->client = client; 136 i2c_set_clientdata(client, ddata); 180 static void kb3930_remove(struct i2c_client *client) argument [all...] |
/linux-master/drivers/gpu/drm/tegra/ |
H A D | nvdec.c | 40 struct tegra_drm_client client; member in struct:nvdec 55 static inline struct nvdec *to_nvdec(struct tegra_drm_client *client) argument 57 return container_of(client, struct nvdec, client); 152 static int nvdec_init(struct host1x_client *client) argument 154 struct tegra_drm_client *drm = host1x_to_drm_client(client); 155 struct drm_device *dev = dev_get_drvdata(client->host); 160 err = host1x_client_iommu_attach(client); 166 nvdec->channel = host1x_channel_request(client); 172 client 200 nvdec_exit(struct host1x_client *client) argument 246 struct host1x_client *client = &nvdec->client.base; local 352 nvdec_open_channel(struct tegra_drm_client *client, struct tegra_drm_context *context) argument 369 nvdec_can_use_memory_ctx(struct tegra_drm_client *client, bool *supported) argument [all...] |
/linux-master/drivers/power/supply/ |
H A D | ltc2941-battery-gauge.c | 3 * I2C client/driver for the Linear Technology LTC2941, LTC2942, LTC2943 72 struct i2c_client *client; /* I2C Client pointer */ member in struct:ltc294x_info 97 static int ltc294x_read_regs(struct i2c_client *client, argument 104 msgs[0].addr = client->addr; 108 msgs[1].addr = client->addr; 113 ret = i2c_transfer(client->adapter, &msgs[0], 2); 115 dev_err(&client->dev, "ltc2941 read_reg(0x%x[%d]) failed: %pe\n", 120 dev_dbg(&client->dev, "%s (%#x, %d) -> %#x\n", 126 static int ltc294x_write_regs(struct i2c_client *client, argument 132 ret = i2c_smbus_write_i2c_block_data(client, reg_star 442 ltc294x_i2c_probe(struct i2c_client *client) argument 551 ltc294x_i2c_shutdown(struct i2c_client *client) argument 578 struct i2c_client *client = to_i2c_client(dev); local 587 struct i2c_client *client = to_i2c_client(dev); local [all...] |
/linux-master/drivers/iio/light/ |
H A D | stk3310.c | 59 devm_regmap_field_alloc(&client->dev, regmap, \ 62 dev_err(&client->dev, "reg field alloc failed.\n"); \ 105 struct i2c_client *client; member in struct:stk3310_data 240 dev_err(&data->client->dev, "register read failed\n"); 260 struct i2c_client *client = data->client; local 279 dev_err(&client->dev, "failed to set PS threshold!\n"); 308 struct i2c_client *client = data->client; local 317 dev_err(&client 332 struct i2c_client *client = data->client; local 444 struct i2c_client *client = data->client; local 470 struct i2c_client *client = data->client; local 525 struct i2c_client *client; local 589 stk3310_probe(struct i2c_client *client) argument 651 stk3310_remove(struct i2c_client *client) argument [all...] |
/linux-master/drivers/media/dvb-frontends/ |
H A D | af9033.c | 12 struct i2c_client *client; member in struct:af9033_dev 35 struct i2c_client *client = dev->client; local 40 dev_dbg(&client->dev, "tab_len=%d\n", tab_len); 43 dev_warn(&client->dev, "tab len %d is too big\n", tab_len); 64 dev_dbg(&client->dev, "failed=%d\n", ret); 71 struct i2c_client *client = dev->client; local 106 dev_dbg(&client->dev, "\n"); 118 dev_dbg(&client 307 struct i2c_client *client = dev->client; local 358 struct i2c_client *client = dev->client; local 490 struct i2c_client *client = dev->client; local 615 struct i2c_client *client = dev->client; local 822 struct i2c_client *client = dev->client; local 873 struct i2c_client *client = dev->client; local 949 struct i2c_client *client = dev->client; local 967 struct i2c_client *client = dev->client; local 986 struct i2c_client *client = dev->client; local 1052 af9033_probe(struct i2c_client *client) argument 1165 af9033_remove(struct i2c_client *client) argument [all...] |
/linux-master/net/9p/ |
H A D | trans_fd.c | 28 #include <net/9p/client.h> 91 * @client: reference to client instance for this connection 114 struct p9_client *client; member in struct:p9_conn 217 p9_client_cb(m->client, req, REQ_STATUS_ERROR); 222 p9_fd_poll(struct p9_client *client, struct poll_table_struct *pt, int *err) argument 227 if (client && client->status == Connected) 228 ts = client->trans; 244 * @client 250 p9_fd_read(struct p9_client *client, void *v, int len) argument 418 p9_fd_write(struct p9_client *client, void *v, int len) argument 583 p9_conn_create(struct p9_client *client) argument 665 p9_fd_request(struct p9_client *client, struct p9_req_t *req) argument 696 p9_fd_cancel(struct p9_client *client, struct p9_req_t *req) argument 717 p9_fd_cancelled(struct p9_client *client, struct p9_req_t *req) argument 826 p9_fd_open(struct p9_client *client, int rfd, int wfd) argument 868 p9_socket_open(struct p9_client *client, struct socket *csocket) argument 934 p9_fd_close(struct p9_client *client) argument 993 p9_fd_create_tcp(struct p9_client *client, const char *addr, char *args) argument 1046 p9_fd_create_unix(struct p9_client *client, const char *addr, char *args) argument 1086 p9_fd_create(struct p9_client *client, const char *addr, char *args) argument [all...] |
/linux-master/drivers/input/touchscreen/ |
H A D | msg2638.c | 72 struct i2c_client *client; member in struct:msg2638_ts_data 109 struct i2c_client *client = msg2638->client; local 115 .addr = client->addr, 125 ret = i2c_transfer(client->adapter, msg, ARRAY_SIZE(msg)); 127 dev_err(&client->dev, 135 dev_err(&client->dev, "Failed checksum!\n"); 186 struct i2c_client *client = msg2638->client; local 192 .addr = client 358 msg2638_ts_probe(struct i2c_client *client) argument 446 struct i2c_client *client = to_i2c_client(dev); local 461 struct i2c_client *client = to_i2c_client(dev); local [all...] |
/linux-master/drivers/input/misc/ |
H A D | iqs269a.c | 316 struct i2c_client *client; member in struct:iqs269_private 559 struct i2c_client *client = iqs269->client; local 568 dev_err(&client->dev, "Failed to read channel number: %d\n", 572 dev_err(&client->dev, "Invalid channel number: %u\n", reg); 595 dev_err(&client->dev, "Invalid channel %u RX enable mask: %d\n", 603 dev_err(&client->dev, "Invalid channel %u TX enable mask: %d\n", 635 dev_err(&client->dev, 648 dev_err(&client->dev, 660 dev_err(&client 813 struct i2c_client *client = iqs269->client; local 1246 struct i2c_client *client = iqs269->client; local 1338 struct i2c_client *client = iqs269->client; local 1498 struct i2c_client *client = iqs269->client; local 1533 struct i2c_client *client = iqs269->client; local 1773 struct i2c_client *client = iqs269->client; local 1832 iqs269_probe(struct i2c_client *client) argument 1923 struct i2c_client *client = iqs269->client; local 1943 struct i2c_client *client = iqs269->client; local [all...] |
/linux-master/sound/drivers/opl4/ |
H A D | opl4_seq.c | 74 if (info->sender.client != SNDRV_SEQ_CLIENT_SYSTEM) { 98 if (info->sender.client != SNDRV_SEQ_CLIENT_SYSTEM) 131 int client; local 146 /* allocate new client */ 147 client = snd_seq_create_kernel_client(opl4->card, opl4->seq_dev_num, 149 if (client < 0) { 151 return client; 153 opl4->seq_client = client; 154 opl4->chset->client = client; [all...] |
/linux-master/net/ceph/ |
H A D | debugfs.c | 21 * /sys/kernel/debug/ceph/client* - an instance of the ceph client 25 * .../monc - mon client state 37 struct ceph_client *client = s->private; local 39 if (client->monc.monmap == NULL) 42 seq_printf(s, "epoch %d\n", client->monc.monmap->epoch); 43 for (i = 0; i < client->monc.monmap->num_mon; i++) { 45 &client->monc.monmap->mon_inst[i]; 57 struct ceph_client *client = s->private; local 58 struct ceph_osd_client *osdc = &client 140 struct ceph_client *client = s->private; local 344 struct ceph_client *client = s->private; local 380 struct ceph_client *client = s->private; local 407 ceph_debugfs_client_init(struct ceph_client *client) argument 449 ceph_debugfs_client_cleanup(struct ceph_client *client) argument 470 ceph_debugfs_client_init(struct ceph_client *client) argument 474 ceph_debugfs_client_cleanup(struct ceph_client *client) argument [all...] |
/linux-master/drivers/iio/dac/ |
H A D | max517.c | 34 struct i2c_client *client; member in struct:max517_data 47 struct i2c_client *client = data->client; local 57 res = i2c_master_send(client, outbuf, 2); 144 static int max517_probe(struct i2c_client *client) argument 146 const struct i2c_device_id *id = i2c_client_get_device_id(client); 149 struct max517_platform_data *platform_data = client->dev.platform_data; 152 indio_dev = devm_iio_device_alloc(&client->dev, sizeof(*data)); 156 data->client = client; [all...] |
/linux-master/drivers/usb/typec/mux/ |
H A D | pi3usb30532.c | 24 struct i2c_client *client; member in struct:pi3usb30532 38 ret = i2c_smbus_write_byte_data(pi->client, PI3USB30532_CONF, new_conf); 40 dev_err(&pi->client->dev, "Error writing conf: %d\n", ret); 114 static int pi3usb30532_probe(struct i2c_client *client) argument 116 struct device *dev = &client->dev; 126 pi->client = client; 129 ret = i2c_smbus_read_byte_data(client, PI3USB30532_CONF); 159 i2c_set_clientdata(client, pi); 163 static void pi3usb30532_remove(struct i2c_client *client) argument [all...] |
/linux-master/drivers/media/i2c/ |
H A D | m52790.c | 41 struct i2c_client *client = v4l2_get_subdevdata(sd); local 46 return i2c_smbus_write_byte_data(client, sw1, sw2); 132 static int m52790_probe(struct i2c_client *client) argument 138 if (!i2c_check_functionality(client->adapter, I2C_FUNC_SMBUS_BYTE_DATA)) 141 v4l_info(client, "chip found @ 0x%x (%s)\n", 142 client->addr << 1, client->adapter->name); 144 state = devm_kzalloc(&client->dev, sizeof(*state), GFP_KERNEL); 149 v4l2_i2c_subdev_init(sd, client, &m52790_ops); 156 static void m52790_remove(struct i2c_client *client) argument [all...] |
H A D | vp27smpx.c | 41 struct i2c_client *client = v4l2_get_subdevdata(sd); local 57 if (i2c_master_send(client, data, sizeof(data)) != sizeof(data)) 141 static int vp27smpx_probe(struct i2c_client *client) argument 147 if (!i2c_check_functionality(client->adapter, I2C_FUNC_SMBUS_BYTE_DATA)) 150 v4l_info(client, "chip found @ 0x%x (%s)\n", 151 client->addr << 1, client->adapter->name); 153 state = devm_kzalloc(&client->dev, sizeof(*state), GFP_KERNEL); 157 v4l2_i2c_subdev_init(sd, client, &vp27smpx_ops); 165 static void vp27smpx_remove(struct i2c_client *client) argument [all...] |
H A D | tlv320aic23b.c | 47 struct i2c_client *client = v4l2_get_subdevdata(sd); local 56 if (i2c_smbus_write_byte_data(client, 132 static int tlv320aic23b_probe(struct i2c_client *client) argument 138 if (!i2c_check_functionality(client->adapter, I2C_FUNC_SMBUS_BYTE_DATA)) 141 v4l_info(client, "chip found @ 0x%x (%s)\n", 142 client->addr << 1, client->adapter->name); 144 state = devm_kzalloc(&client->dev, sizeof(*state), GFP_KERNEL); 148 v4l2_i2c_subdev_init(sd, client, &tlv320aic23b_ops); 179 static void tlv320aic23b_remove(struct i2c_client *client) argument [all...] |
/linux-master/drivers/char/tpm/ |
H A D | tpm_i2c_atmel.c | 43 struct i2c_client *client = to_i2c_client(chip->dev.parent); local 51 status = i2c_master_send(client, buf, len); 70 struct i2c_client *client = to_i2c_client(chip->dev.parent); local 94 rc = i2c_master_recv(client, buf, expected_len); 110 struct i2c_client *client = to_i2c_client(chip->dev.parent); local 122 rc = i2c_master_recv(client, priv->buffer, sizeof(priv->buffer)); 149 static int i2c_atmel_probe(struct i2c_client *client) argument 152 struct device *dev = &client->dev; 155 if (!i2c_check_functionality(client->adapter, I2C_FUNC_I2C)) 181 static void i2c_atmel_remove(struct i2c_client *client) argument [all...] |
/linux-master/drivers/regulator/ |
H A D | raa215300.c | 52 static int raa215300_clk_present(struct i2c_client *client, const char *name) argument 56 clk = devm_clk_get_optional(&client->dev, name); 63 static int raa215300_i2c_probe(struct i2c_client *client) argument 65 struct device *dev = &client->dev; 73 regmap = devm_regmap_init_i2c(client, &raa215300_regmap_config); 108 ret = raa215300_clk_present(client, xin_name); 114 ret = raa215300_clk_present(client, clkin_name); 123 struct device_node *np = client->dev.of_node; 147 if (client->irq > 0) 148 info.irq = client [all...] |
/linux-master/drivers/iio/potentiometer/ |
H A D | mcp4018.c | 43 struct i2c_client *client; member in struct:mcp4018_data 65 ret = i2c_smbus_read_byte(data->client); 94 return i2c_smbus_write_byte(data->client, val); 146 static int mcp4018_probe(struct i2c_client *client) argument 148 struct device *dev = &client->dev; 152 if (!i2c_check_functionality(client->adapter, 162 i2c_set_clientdata(client, indio_dev); 163 data->client = client; 165 data->cfg = i2c_get_match_data(client); [all...] |
/linux-master/drivers/iio/chemical/ |
H A D | atlas-ezo-sensor.c | 37 struct i2c_client *client; member in struct:atlas_ezo_data 118 struct i2c_client *client = data->client; local 130 tmp = i2c_smbus_write_byte(client, 'R'); 139 tmp = i2c_master_recv(client, data->buffer, sizeof(data->buffer)); 204 static int atlas_ezo_probe(struct i2c_client *client) argument 210 indio_dev = devm_iio_device_alloc(&client->dev, sizeof(*data)); 214 chip = i2c_get_match_data(client); 225 data->client = client; [all...] |
/linux-master/sound/core/seq/ |
H A D | seq_queue.c | 9 * - When owner client is deleted, all owned queues are deleted, too. 13 * caller client. i.e. Changing owner to a third client is not 66 static struct snd_seq_queue *queue_list_remove(int id, int client) argument 74 if (q->owner == client) { 153 static void queue_use(struct snd_seq_queue *queue, int client, int use); 160 struct snd_seq_queue *snd_seq_queue_alloc(int client, int locked, unsigned int info_flags) argument 164 q = queue_new(client, locked); 168 queue_use(q, client, 1); 178 /* delete a queue - queue must be owned by the client */ 179 snd_seq_queue_delete(int client, int queueid) argument 340 check_access(struct snd_seq_queue *q, int client) argument 348 queue_access_lock(struct snd_seq_queue *q, int client) argument 367 snd_seq_queue_check_access(int queueid, int client) argument 385 snd_seq_queue_set_owner(int queueid, int client, int locked) argument 450 snd_seq_queue_timer_set_tempo(int queueid, int client, struct snd_seq_queue_tempo *info) argument 473 queue_use(struct snd_seq_queue *queue, int client, int use) argument 495 snd_seq_queue_use(int queueid, int client, int use) argument 514 snd_seq_queue_is_used(int queueid, int client) argument 534 snd_seq_queue_client_leave(int client) argument 567 snd_seq_queue_client_leave_cells(int client) argument 583 snd_seq_queue_remove_cells(int client, struct snd_seq_remove_events *info) argument [all...] |