/linux-master/drivers/media/tuners/ |
H A D | si2157.c | 17 static int si2157_cmd_execute(struct i2c_client *client, struct si2157_cmd *cmd) argument 19 struct si2157_dev *dev = i2c_get_clientdata(client); 27 ret = i2c_master_send(client, cmd->args, cmd->wlen); 41 ret = i2c_master_recv(client, cmd->args, cmd->rlen); 54 dev_dbg(&client->dev, "cmd execution took %d ms, status=%x\n", 75 dev_dbg(&client->dev, "failed=%d\n", ret); 95 struct i2c_client *client = fe->tuner_priv; local 101 ret = firmware_request_nowarn(&fw, fw_name, &client->dev); 107 dev_err(&client->dev, "firmware file '%s' is invalid\n", 113 dev_info(&client 142 struct i2c_client *client = fe->tuner_priv; local 219 struct i2c_client *client = fe->tuner_priv; local 329 struct i2c_client *client = fe->tuner_priv; local 355 si2157_tune_wait(struct i2c_client *client, u8 is_digital) argument 444 struct i2c_client *client = fe->tuner_priv; local 572 struct i2c_client *client = fe->tuner_priv; local 768 struct i2c_client *client = fe->tuner_priv; local 778 struct i2c_client *client = fe->tuner_priv; local 788 struct i2c_client *client = fe->tuner_priv; local 798 struct i2c_client *client = fe->tuner_priv; local 854 struct i2c_client *client = fe->tuner_priv; local 878 si2157_probe(struct i2c_client *client) argument 954 si2157_remove(struct i2c_client *client) argument [all...] |
/linux-master/drivers/hwmon/ |
H A D | hs3001.c | 44 struct i2c_client *client; member in struct:hs3001_data 68 static int hs3001_data_fetch_command(struct i2c_client *client, argument 75 ret = i2c_master_recv(client, buf, HS3001_RESPONSE_LENGTH); 78 dev_dbg(&client->dev, 85 dev_dbg(&client->dev, "Sensor busy.\n"); 89 dev_dbg(&client->dev, "Data invalid.\n"); 112 struct i2c_client *client = data->client; local 116 ret = i2c_master_send(client, NULL, 0); 128 ret = hs3001_data_fetch_command(client, dat 191 hs3001_probe(struct i2c_client *client) argument [all...] |
H A D | adt7411.c | 106 struct i2c_client *client; member in struct:adt7411_data 116 static int adt7411_read_10_bit(struct i2c_client *client, u8 lsb_reg, argument 119 struct adt7411_data *data = i2c_get_clientdata(client); 124 val = i2c_smbus_read_byte_data(client, lsb_reg); 129 val = i2c_smbus_read_byte_data(client, msb_reg); 140 static int adt7411_modify_bit(struct i2c_client *client, u8 reg, u8 bit, argument 143 struct adt7411_data *data = i2c_get_clientdata(client); 148 ret = i2c_smbus_read_byte_data(client, reg); 157 ret = i2c_smbus_write_byte_data(client, reg, val); 169 struct i2c_client *client local 181 struct i2c_client *client = data->client; local 218 struct i2c_client *client = data->client; local 231 struct i2c_client *client = data->client; local 264 struct i2c_client *client = data->client; local 291 struct i2c_client *client = data->client; local 351 struct i2c_client *client = data->client; local 382 struct i2c_client *client = data->client; local 433 struct i2c_client *client = data->client; local 457 struct i2c_client *client = data->client; local 498 struct i2c_client *client = data->client; local 569 adt7411_detect(struct i2c_client *client, struct i2c_board_info *info) argument 669 adt7411_probe(struct i2c_client *client) argument [all...] |
H A D | thmc50.c | 56 /* Each client has this additional data */ 58 struct i2c_client *client; member in struct:thmc50_data 79 struct i2c_client *client = data->client; local 89 int prog = i2c_smbus_read_byte_data(client, THMC50_REG_CONF); 94 data->temp_input[i] = i2c_smbus_read_byte_data(client, 96 data->temp_max[i] = i2c_smbus_read_byte_data(client, 98 data->temp_min[i] = i2c_smbus_read_byte_data(client, 101 i2c_smbus_read_byte_data(client, 106 i2c_smbus_read_byte_data(client, THMC50_REG_ANALOG_OU 130 struct i2c_client *client = data->client; local 185 struct i2c_client *client = data->client; local 215 struct i2c_client *client = data->client; local 307 thmc50_detect(struct i2c_client *client, struct i2c_board_info *info) argument 362 struct i2c_client *client = data->client; local 382 thmc50_probe(struct i2c_client *client) argument [all...] |
/linux-master/drivers/misc/eeprom/ |
H A D | ee1004.c | 98 static int ee1004_set_current_page(struct i2c_client *client, int page) argument 100 struct ee1004_bus_data *bd = i2c_get_clientdata(client); 115 dev_err(&client->dev, "Failed to select page %d (%d)\n", page, ret); 119 dev_dbg(&client->dev, "Selected page %d\n", page); 125 static ssize_t ee1004_eeprom_read(struct i2c_client *client, char *buf, argument 133 status = ee1004_set_current_page(client, page); 144 return i2c_smbus_read_i2c_block_data_or_emulated(client, offset, count, buf); 151 struct i2c_client *client = kobj_to_i2c_client(kobj); local 162 ret = ee1004_eeprom_read(client, buf, off, count); 185 static void ee1004_probe_temp_sensor(struct i2c_client *client) argument 210 ee1004_probe(struct i2c_client *client) argument 271 ee1004_remove(struct i2c_client *client) argument [all...] |
/linux-master/drivers/input/touchscreen/ |
H A D | goodix_berlin_i2c.c | 32 static int goodix_berlin_i2c_probe(struct i2c_client *client) argument 37 regmap = devm_regmap_init_i2c(client, &goodix_berlin_i2c_regmap_conf); 41 error = goodix_berlin_probe(&client->dev, client->irq,
|
/linux-master/drivers/hid/i2c-hid/ |
H A D | i2c-hid-core.c | 71 #define i2c_hid_dbg(ihid, ...) dev_dbg(&(ihid)->client->dev, __VA_ARGS__) 92 struct i2c_client *client; /* i2c client */ member in struct:i2c_hid 169 struct i2c_client *client = ihid->client; local 178 msgs[n].addr = client->addr; 179 msgs[n].flags = (client->flags & I2C_M_TEN) | I2C_M_DMA_SAFE; 186 msgs[n].addr = client->addr; 187 msgs[n].flags = (client->flags & I2C_M_TEN) | 194 ret = i2c_transfer(client 626 struct i2c_client *client = hid->driver_data; local 657 struct i2c_client *client = hid->driver_data; local 710 struct i2c_client *client = hid->driver_data; local 776 struct i2c_client *client = hid->driver_data; local 806 struct i2c_client *client = hid->driver_data; local 815 struct i2c_client *client = hid->driver_data; local 831 i2c_hid_init_irq(struct i2c_client *client) argument 859 struct i2c_client *client = ihid->client; local 931 struct i2c_client *client = ihid->client; local 953 struct i2c_client *client = ihid->client; local 991 struct i2c_client *client = ihid->client; local 1027 struct i2c_client *client = ihid->client; local 1159 i2c_hid_core_probe(struct i2c_client *client, struct i2chid_ops *ops, u16 hid_descriptor_address, u32 quirks) argument 1260 i2c_hid_core_remove(struct i2c_client *client) argument 1284 i2c_hid_core_shutdown(struct i2c_client *client) argument 1297 struct i2c_client *client = to_i2c_client(dev); local 1308 struct i2c_client *client = to_i2c_client(dev); local [all...] |
/linux-master/drivers/gpu/drm/ |
H A D | drm_encoder_slave.c | 58 struct i2c_client *client; local 64 client = i2c_new_client_device(adap, info); 65 if (!i2c_client_has_driver(client)) { 70 module = client->dev.driver->owner; 76 encoder->bus_priv = client; 78 encoder_drv = to_drm_i2c_encoder_driver(to_i2c_driver(client->dev.driver)); 80 err = encoder_drv->encoder_init(client, dev, encoder); 93 i2c_unregister_device(client); 108 struct i2c_client *client = drm_i2c_encoder_get_client(drm_encoder); local 109 struct module *module = client [all...] |
/linux-master/drivers/hwmon/pmbus/ |
H A D | pxe1610.c | 19 static int pxe1610_identify(struct i2c_client *client, argument 25 if (pmbus_check_byte_register(client, i, PMBUS_VOUT_MODE)) { 30 ret = pmbus_read_byte_data(client, i, PMBUS_VOUT_MODE); 90 static int pxe1610_probe(struct i2c_client *client) argument 97 client->adapter, 107 i2c_smbus_write_byte_data(client, PMBUS_PAGE, 0); 110 ret = i2c_smbus_read_block_data(client, PMBUS_MFR_ID, buf); 112 dev_err(&client->dev, "Failed to read PMBUS_MFR_ID\n"); 116 dev_err(&client->dev, "MFR_ID unrecognized\n"); 120 info = devm_kmemdup(&client [all...] |
H A D | acbel-fsg032.c | 21 struct i2c_client *client = file->private_data; local 26 rc = i2c_smbus_read_block_data(client, ACBEL_MFR_FW_REVISION, data); 41 static void acbel_fsg032_init_debugfs(struct i2c_client *client) argument 43 struct dentry *debugfs = pmbus_get_debugfs_dir(client); 48 debugfs_create_file("fw_version", 0444, debugfs, client, &acbel_debugfs_ops); 66 static int acbel_fsg032_probe(struct i2c_client *client) argument 69 struct device *dev = &client->dev; 72 rc = i2c_smbus_read_block_data(client, PMBUS_MFR_ID, buf); 83 rc = i2c_smbus_read_block_data(client, PMBUS_MFR_MODEL, buf); 95 rc = pmbus_do_probe(client, [all...] |
H A D | ibm-cffps.c | 65 struct i2c_client *client; member in struct:ibm_cffps 86 .addr = psu->client->addr, 87 .flags = psu->client->flags, 91 .addr = psu->client->addr, 92 .flags = psu->client->flags | I2C_M_RD, 99 rc = pmbus_lock_interruptible(psu->client); 103 rc = pmbus_set_page(psu->client, 0, 0xff); 105 pmbus_unlock(psu->client); 113 rc = i2c_transfer(psu->client->adapter, msg, 2); 114 pmbus_unlock(psu->client); 258 ibm_cffps_read_byte_data(struct i2c_client *client, int page, int reg) argument 308 ibm_cffps_read_word_data(struct i2c_client *client, int page, int phase, int reg) argument 422 struct i2c_client *client = psu->client; local 482 ibm_cffps_probe(struct i2c_client *client) argument [all...] |
H A D | max16064.c | 18 static int max16064_read_word_data(struct i2c_client *client, int page, argument 25 ret = pmbus_read_word_data(client, page, phase, 29 ret = pmbus_read_word_data(client, page, phase, 43 static int max16064_write_word_data(struct i2c_client *client, int page, argument 50 ret = pmbus_write_word_data(client, page, 54 ret = pmbus_write_word_data(client, page, 88 static int max16064_probe(struct i2c_client *client) argument 90 return pmbus_do_probe(client, &max16064_info);
|
/linux-master/drivers/media/i2c/ |
H A D | tw2804.c | 106 static int write_reg(struct i2c_client *client, u8 reg, u8 value, u8 channel) argument 108 return i2c_smbus_write_byte_data(client, reg | (channel << 6), value); 111 static int write_regs(struct i2c_client *client, const u8 *regs, u8 channel) argument 117 ret = i2c_smbus_write_byte_data(client, 125 static int read_reg(struct i2c_client *client, u8 reg, u8 channel) argument 127 return i2c_smbus_read_byte_data(client, (reg) | (channel << 6)); 167 struct i2c_client *client = v4l2_get_subdevdata(&state->sd); local 171 ctrl->val = read_reg(client, TW2804_REG_GAIN, 0); 175 ctrl->val = read_reg(client, TW2804_REG_CHROMA_GAIN, 0); 179 ctrl->val = read_reg(client, TW2804_REG_BLUE_BALANC 192 struct i2c_client *client = v4l2_get_subdevdata(&state->sd); local 253 struct i2c_client *client = v4l2_get_subdevdata(sd); local 278 struct i2c_client *client = v4l2_get_subdevdata(sd); local 346 tw2804_probe(struct i2c_client *client) argument 407 tw2804_remove(struct i2c_client *client) argument [all...] |
H A D | sony-btf-mpx.c | 47 static int mpx_write(struct i2c_client *client, int dev, int addr, int val) argument 57 msg.addr = client->addr; 61 i2c_transfer(client->adapter, &msg, 1); 159 struct i2c_client *client = v4l2_get_subdevdata(&t->sd); local 169 msg.addr = client->addr; 173 i2c_transfer(client->adapter, &msg, 1); 175 i2c_transfer(client->adapter, &msg, 1); 211 mpx_write(client, 0x10, 0x0030, mpx_audio_modes[mode].modus); 212 mpx_write(client, 0x12, 0x0008, source); 213 mpx_write(client, 334 sony_btf_mpx_probe(struct i2c_client *client) argument 359 sony_btf_mpx_remove(struct i2c_client *client) argument [all...] |
/linux-master/drivers/iio/common/ms_sensors/ |
H A D | ms_sensors_i2c.c | 39 * @cli: pointer to device client 50 struct i2c_client *client = cli; local 52 ret = i2c_smbus_write_byte(client, cmd); 54 dev_err(&client->dev, "Failed to reset device\n"); 65 * @cli: pointer to device client 76 struct i2c_client *client = cli; local 78 ret = i2c_smbus_read_word_swapped(client, cmd); 80 dev_err(&client->dev, "Failed to read prom word\n"); 91 * @cli: pointer to device client 109 struct i2c_client *client local 185 ms_sensors_read_serial(struct i2c_client *client, u64 *sn) argument 253 ms_sensors_read_config_reg(struct i2c_client *client, u8 *config_reg) argument [all...] |
/linux-master/drivers/iio/light/ |
H A D | vl6180.c | 85 struct i2c_client *client; member in struct:vl6180_data 127 static int vl6180_read(struct i2c_client *client, u16 cmd, void *databuf, argument 132 { .addr = client->addr, .len = sizeof(cmdbuf), .buf = (u8 *) &cmdbuf }, 133 { .addr = client->addr, .len = len, .buf = databuf, 137 ret = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); 139 dev_err(&client->dev, "failed reading register 0x%04x\n", cmd); 144 static int vl6180_read_byte(struct i2c_client *client, u16 cmd) argument 149 ret = vl6180_read(client, cmd, &data, sizeof(data)); 156 static int vl6180_read_word(struct i2c_client *client, u16 cmd) argument 161 ret = vl6180_read(client, cm 168 vl6180_write_byte(struct i2c_client *client, u16 cmd, u8 val) argument 188 vl6180_write_word(struct i2c_client *client, u16 cmd, u16 val) argument 209 struct i2c_client *client = data->client; local 443 struct i2c_client *client = data->client; local 495 vl6180_probe(struct i2c_client *client) argument [all...] |
H A D | cm3232.c | 71 struct i2c_client *client; member in struct:cm3232_chip 87 struct i2c_client *client = chip->client; local 93 ret = i2c_smbus_read_word_data(client, CM3232_REG_ADDR_ID); 95 dev_err(&chip->client->dev, "Error reading addr_id\n"); 104 ret = i2c_smbus_write_byte_data(client, CM3232_REG_ADDR_CMD, 107 dev_err(&chip->client->dev, "Error writing reg_cmd\n"); 115 ret = i2c_smbus_write_byte_data(client, CM3232_REG_ADDR_CMD, 118 dev_err(&chip->client->dev, "Error writing reg_cmd\n"); 164 struct i2c_client *client local 201 struct i2c_client *client = chip->client; local 328 cm3232_probe(struct i2c_client *client) argument 360 cm3232_remove(struct i2c_client *client) argument 379 struct i2c_client *client = chip->client; local 393 struct i2c_client *client = chip->client; local [all...] |
/linux-master/drivers/iio/temperature/ |
H A D | mlx90614.c | 100 struct i2c_client *client; member in struct:mlx90614_data 111 static s32 mlx90614_write_word(const struct i2c_client *client, u8 command, argument 122 dev_dbg(&client->dev, "Writing 0x%x to address 0x%x", value, command); 125 ret = i2c_smbus_xfer(client->adapter, client->addr, 126 client->flags | I2C_CLIENT_PEC, 135 ret = i2c_smbus_xfer(client->adapter, client->addr, 136 client->flags | I2C_CLIENT_PEC, 149 static inline s32 mlx90614_iir_search(const struct i2c_client *client, argument 525 mlx90614_probe_wakeup(struct i2c_client *client) argument 559 mlx90614_probe_wakeup(struct i2c_client *client) argument 566 mlx90614_probe_num_ir_sensors(struct i2c_client *client) argument 584 mlx90614_probe(struct i2c_client *client) argument 638 mlx90614_remove(struct i2c_client *client) argument [all...] |
/linux-master/sound/core/seq/ |
H A D | seq_ports.c | 17 registration of client ports 32 1) leave it this way, a client does normaly does not have more than a few 44 struct snd_seq_client_port *snd_seq_port_use_ptr(struct snd_seq_client *client, argument 49 if (client == NULL) 51 guard(read_lock)(&client->ports_lock); 52 list_for_each_entry(port, &client->ports_list_head, list) { 65 struct snd_seq_client_port *snd_seq_port_query_nearest(struct snd_seq_client *client, argument 74 guard(read_lock)(&client->ports_lock); 75 list_for_each_entry(port, &client->ports_list_head, list) { 114 int snd_seq_create_port(struct snd_seq_client *client, in argument 212 clear_subscriber_list(struct snd_seq_client *client, struct snd_seq_client_port *port, struct snd_seq_port_subs_info *grp, int is_src) argument 250 port_delete(struct snd_seq_client *client, struct snd_seq_client_port *port) argument 273 snd_seq_delete_port(struct snd_seq_client *client, int port) argument 296 snd_seq_delete_all_ports(struct snd_seq_client *client) argument 421 subscribe_port(struct snd_seq_client *client, struct snd_seq_client_port *port, struct snd_seq_port_subs_info *grp, struct snd_seq_port_subscribe *info, int send_ack) argument 446 unsubscribe_port(struct snd_seq_client *client, struct snd_seq_client_port *port, struct snd_seq_port_subs_info *grp, struct snd_seq_port_subscribe *info, int send_ack) argument 489 check_and_subscribe_port(struct snd_seq_client *client, struct snd_seq_client_port *port, struct snd_seq_subscribers *subs, bool is_src, bool exclusive, bool ack) argument 534 __delete_and_unsubscribe_port(struct snd_seq_client *client, struct snd_seq_client_port *port, struct snd_seq_subscribers *subs, bool is_src, bool ack) argument 556 delete_and_unsubscribe_port(struct snd_seq_client *client, struct snd_seq_client_port *port, struct snd_seq_subscribers *subs, bool is_src, bool ack) argument 675 snd_seq_event_port_attach(int client, struct snd_seq_port_callback *pcbp, int cap, int type, int midi_channels, int midi_voices, char *portname) argument 711 snd_seq_event_port_detach(int client, int port) argument [all...] |
H A D | seq_prioq.h | 38 /* client left queue */ 39 void snd_seq_prioq_leave(struct snd_seq_prioq *f, int client, int timestamp); 42 void snd_seq_prioq_remove_events(struct snd_seq_prioq *f, int client,
|
/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/therm/ |
H A D | ic.c | 35 struct i2c_client *client; local 39 client = i2c_new_client_device(&bus->i2c, info); 40 if (IS_ERR(client)) 43 if (!client->dev.driver || 44 to_i2c_driver(client->dev.driver)->detect(client, info)) { 45 i2c_unregister_device(client); 53 therm->ic = client;
|
/linux-master/drivers/gpu/drm/solomon/ |
H A D | ssd130x-i2c.c | 24 static int ssd130x_i2c_probe(struct i2c_client *client) argument 29 regmap = devm_regmap_init_i2c(client, &ssd130x_i2c_regmap_config); 33 ssd130x = ssd130x_probe(&client->dev, regmap); 37 i2c_set_clientdata(client, ssd130x); 42 static void ssd130x_i2c_remove(struct i2c_client *client) argument 44 struct ssd130x_device *ssd130x = i2c_get_clientdata(client); 49 static void ssd130x_i2c_shutdown(struct i2c_client *client) argument 51 struct ssd130x_device *ssd130x = i2c_get_clientdata(client);
|
/linux-master/drivers/iio/pressure/ |
H A D | mprls0025pa_i2c.c | 28 struct i2c_client *client = to_i2c_client(data->dev); local 34 ret = i2c_master_recv(client, data->buffer, cnt); 46 struct i2c_client *client = to_i2c_client(data->dev); local 52 ret = i2c_master_send(client, wdata, MPR_PKT_SYNC_LEN); 67 static int mpr_i2c_probe(struct i2c_client *client) argument 69 if (!i2c_check_functionality(client->adapter, I2C_FUNC_SMBUS_READ_BYTE)) 72 return mpr_common_probe(&client->dev, &mpr_i2c_ops, client->irq);
|
/linux-master/drivers/media/dvb-frontends/ |
H A D | mn88472.c | 19 struct i2c_client *client = fe->demodulator_priv; local 20 struct mn88472_dev *dev = i2c_get_clientdata(client); 82 dev_dbg(&client->dev, "strength=%u\n", utmp1); 104 dev_dbg(&client->dev, "cnr=%d value=%u\n", stmp, utmp); 129 dev_dbg(&client->dev, "cnr=%d value=%u MISO\n", 137 dev_dbg(&client->dev, "cnr=%d value=%u SISO\n", 161 dev_dbg(&client->dev, "cnr=%d signal=%u noise=%u\n", 181 dev_dbg(&client->dev, "block_error=%u block_count=%u\n", 195 dev_dbg(&client->dev, "failed=%d\n", ret); 201 struct i2c_client *client local 396 struct i2c_client *client = fe->demodulator_priv; local 506 struct i2c_client *client = fe->demodulator_priv; local 566 mn88472_get_dvb_frontend(struct i2c_client *client) argument 575 mn88472_probe(struct i2c_client *client) argument 693 mn88472_remove(struct i2c_client *client) argument [all...] |
/linux-master/drivers/leds/ |
H A D | leds-pca955x.c | 111 struct i2c_client *client; member in struct:pca955x 152 static int pca955x_write_psc(struct i2c_client *client, int n, u8 val) argument 154 struct pca955x *pca955x = i2c_get_clientdata(client); 158 ret = i2c_smbus_write_byte_data(client, cmd, val); 160 dev_err(&client->dev, "%s: reg 0x%x, val 0x%x, err %d\n", 172 static int pca955x_write_pwm(struct i2c_client *client, int n, u8 val) argument 174 struct pca955x *pca955x = i2c_get_clientdata(client); 178 ret = i2c_smbus_write_byte_data(client, cmd, val); 180 dev_err(&client->dev, "%s: reg 0x%x, val 0x%x, err %d\n", 189 static int pca955x_write_ls(struct i2c_client *client, in argument 206 pca955x_read_ls(struct i2c_client *client, int n, u8 *val) argument 222 pca955x_read_pwm(struct i2c_client *client, int n, u8 *val) argument 332 pca955x_read_input(struct i2c_client *client, int n, u8 *val) argument 408 pca955x_get_pdata(struct i2c_client *client, const struct pca955x_chipdef *chip) argument 450 pca955x_probe(struct i2c_client *client) argument [all...] |