/linux-3.4.99/include/linux/ |
D | i2c.h | 47 struct i2c_client; 62 extern int i2c_master_send(const struct i2c_client *client, const char *buf, 64 extern int i2c_master_recv(const struct i2c_client *client, char *buf, 84 extern s32 i2c_smbus_read_byte(const struct i2c_client *client); 85 extern s32 i2c_smbus_write_byte(const struct i2c_client *client, u8 value); 86 extern s32 i2c_smbus_read_byte_data(const struct i2c_client *client, 88 extern s32 i2c_smbus_write_byte_data(const struct i2c_client *client, 90 extern s32 i2c_smbus_read_word_data(const struct i2c_client *client, 92 extern s32 i2c_smbus_write_word_data(const struct i2c_client *client, 96 i2c_smbus_read_word_swapped(const struct i2c_client *client, u8 command) in i2c_smbus_read_word_swapped() [all …]
|
/linux-3.4.99/drivers/misc/ |
D | isl29003.c | 64 struct i2c_client *client; 78 static int __isl29003_read_reg(struct i2c_client *client, in __isl29003_read_reg() 85 static int __isl29003_write_reg(struct i2c_client *client, in __isl29003_write_reg() 114 static int isl29003_get_range(struct i2c_client *client) in isl29003_get_range() 120 static int isl29003_set_range(struct i2c_client *client, int range) in isl29003_set_range() 127 static int isl29003_get_resolution(struct i2c_client *client) in isl29003_get_resolution() 133 static int isl29003_set_resolution(struct i2c_client *client, int res) in isl29003_set_resolution() 140 static int isl29003_get_mode(struct i2c_client *client) in isl29003_get_mode() 146 static int isl29003_set_mode(struct i2c_client *client, int mode) in isl29003_set_mode() 153 static int isl29003_set_power_state(struct i2c_client *client, int state) in isl29003_set_power_state() [all …]
|
D | isl29020.c | 39 struct i2c_client *client = to_i2c_client(dev); in als_sensing_range_show() 53 struct i2c_client *client = to_i2c_client(dev); in als_lux_input_data_show() 89 struct i2c_client *client = to_i2c_client(dev); in als_sensing_range_store() 121 static void als_set_power_state(struct i2c_client *client, int enable) in als_set_power_state() 152 static int als_set_default_config(struct i2c_client *client) in als_set_default_config() 164 static int isl29020_probe(struct i2c_client *client, in isl29020_probe() 184 static int isl29020_remove(struct i2c_client *client) in isl29020_remove() 201 struct i2c_client *client = to_i2c_client(dev); in isl29020_runtime_suspend() 208 struct i2c_client *client = to_i2c_client(dev); in isl29020_runtime_resume()
|
D | apds9802als.c | 48 struct i2c_client *client = to_i2c_client(dev); in als_sensing_range_show() 62 struct i2c_client *client = to_i2c_client(dev); in als_wait_for_data_ready() 82 struct i2c_client *client = to_i2c_client(dev); in als_lux0_input_data_show() 124 struct i2c_client *client = to_i2c_client(dev); in als_sensing_range_store() 171 static int als_set_power_state(struct i2c_client *client, bool on_off) in als_set_power_state() 205 static int als_set_default_config(struct i2c_client *client) in als_set_default_config() 227 static int apds9802als_probe(struct i2c_client *client, in apds9802als_probe() 257 static int __devexit apds9802als_remove(struct i2c_client *client) in apds9802als_remove() 275 static int apds9802als_suspend(struct i2c_client *client, pm_message_t mesg) in apds9802als_suspend() 281 static int apds9802als_resume(struct i2c_client *client) in apds9802als_resume() [all …]
|
D | tsl2550.c | 47 struct i2c_client *client; 66 static int tsl2550_set_operating_mode(struct i2c_client *client, int mode) in tsl2550_set_operating_mode() 77 static int tsl2550_set_power_state(struct i2c_client *client, int state) in tsl2550_set_power_state() 96 static int tsl2550_get_adc_value(struct i2c_client *client, u8 cmd) in tsl2550_get_adc_value() 202 struct i2c_client *client = to_i2c_client(dev); in tsl2550_store_power_state() 234 struct i2c_client *client = to_i2c_client(dev); in tsl2550_store_operating_mode() 258 static ssize_t __tsl2550_show_lux(struct i2c_client *client, char *buf) in __tsl2550_show_lux() 287 struct i2c_client *client = to_i2c_client(dev); in tsl2550_show_lux1_input() 320 static int tsl2550_init_client(struct i2c_client *client) in tsl2550_init_client() 350 static int __devinit tsl2550_probe(struct i2c_client *client, in tsl2550_probe() [all …]
|
/linux-3.4.99/drivers/hwmon/pmbus/ |
D | pmbus.h | 346 int (*read_byte_data)(struct i2c_client *client, int page, int reg); 347 int (*read_word_data)(struct i2c_client *client, int page, int reg); 348 int (*write_word_data)(struct i2c_client *client, int page, int reg, 350 int (*write_byte)(struct i2c_client *client, int page, u8 value); 356 int (*identify)(struct i2c_client *client, 362 int pmbus_set_page(struct i2c_client *client, u8 page); 363 int pmbus_read_word_data(struct i2c_client *client, u8 page, u8 reg); 364 int pmbus_write_word_data(struct i2c_client *client, u8 page, u8 reg, u16 word); 365 int pmbus_read_byte_data(struct i2c_client *client, int page, u8 reg); 366 int pmbus_write_byte(struct i2c_client *client, int page, u8 value); [all …]
|
/linux-3.4.99/drivers/media/video/ |
D | msp3400-driver.h | 118 int msp_write_dem(struct i2c_client *client, int addr, int val); 119 int msp_write_dsp(struct i2c_client *client, int addr, int val); 120 int msp_read_dem(struct i2c_client *client, int addr); 121 int msp_read_dsp(struct i2c_client *client, int addr); 122 int msp_reset(struct i2c_client *client); 123 void msp_set_scart(struct i2c_client *client, int in, int out); 129 void msp_set_audmode(struct i2c_client *client); 130 int msp_detect_stereo(struct i2c_client *client); 134 void msp3400c_set_mode(struct i2c_client *client, int mode); 135 void msp3400c_set_carrier(struct i2c_client *client, int cdo1, int cdo2);
|
D | ak881x.c | 40 static int reg_read(struct i2c_client *client, const u8 reg) in reg_read() 45 static int reg_write(struct i2c_client *client, const u8 reg, in reg_write() 51 static int reg_set(struct i2c_client *client, const u8 reg, in reg_set() 60 static struct ak881x *to_ak881x(const struct i2c_client *client) in to_ak881x() 68 struct i2c_client *client = v4l2_get_subdevdata(sd); in ak881x_g_chip_ident() 87 struct i2c_client *client = v4l2_get_subdevdata(sd); in ak881x_g_register() 106 struct i2c_client *client = v4l2_get_subdevdata(sd); in ak881x_s_register() 124 struct i2c_client *client = v4l2_get_subdevdata(sd); in ak881x_try_g_mbus_fmt() 158 struct i2c_client *client = v4l2_get_subdevdata(sd); in ak881x_cropcap() 175 struct i2c_client *client = v4l2_get_subdevdata(sd); in ak881x_s_std_output() [all …]
|
D | tcm825x.c | 48 struct i2c_client *i2c_client; member 263 static int tcm825x_read_reg(struct i2c_client *client, int reg) in tcm825x_read_reg() 293 static int tcm825x_write_reg(struct i2c_client *client, u8 reg, u8 val) in tcm825x_write_reg() 314 static int __tcm825x_write_reg_mask(struct i2c_client *client, in __tcm825x_write_reg_mask() 347 static int tcm825x_write_default_regs(struct i2c_client *client, in tcm825x_write_default_regs() 397 dev_dbg(&sensor->i2c_client->dev, "size %d\n", isize); in tcm825x_find_size() 403 dev_dbg(&sensor->i2c_client->dev, "format default VGA\n"); in tcm825x_find_size() 427 sensor->i2c_client, sensor->platform_data->default_regs()); in tcm825x_configure() 433 dev_dbg(&sensor->i2c_client->dev, in tcm825x_configure() 435 err = tcm825x_write_reg_mask(sensor->i2c_client, in tcm825x_configure() [all …]
|
/linux-3.4.99/Documentation/i2c/ |
D | upgrading-clients | 18 struct i2c_client client; 45 i2c_set_clientdata(&state->i2c_client, state); 46 strlcpy(client->i2c_client.name, "example", I2C_NAME_SIZE); 48 ret = i2c_attach_client(&state->i2c_client); 55 dev = &state->i2c_client.dev; 64 static int example_detach(struct i2c_client *client) 124 which include the i2c_client that it will be working with: 127 + static int example_probe(struct i2c_client *client, 132 changed as the i2c_client has already been setup for use. 142 - strlcpy(client->i2c_client.name, "example", I2C_NAME_SIZE); [all …]
|
/linux-3.4.99/drivers/media/video/cx25840/ |
D | cx25840-core.h | 33 struct i2c_client *c; 102 int cx25840_write(struct i2c_client *client, u16 addr, u8 value); 103 int cx25840_write4(struct i2c_client *client, u16 addr, u32 value); 104 u8 cx25840_read(struct i2c_client *client, u16 addr); 105 u32 cx25840_read4(struct i2c_client *client, u16 addr); 106 int cx25840_and_or(struct i2c_client *client, u16 addr, unsigned mask, u8 value); 107 int cx25840_and_or4(struct i2c_client *client, u16 addr, u32 and_mask, 109 void cx25840_std_setup(struct i2c_client *client); 113 int cx25840_loadfw(struct i2c_client *client); 117 void cx25840_audio_set_path(struct i2c_client *client);
|
/linux-3.4.99/drivers/input/misc/ |
D | gp2ap002a00f.c | 25 struct i2c_client *i2c_client; member 63 return i2c_smbus_write_byte_data(dt->i2c_client, GP2A_ADDR_OPMOD, in gp2a_enable() 69 return i2c_smbus_write_byte_data(dt->i2c_client, GP2A_ADDR_OPMOD, in gp2a_disable() 80 dev_err(&dt->i2c_client->dev, in gp2a_device_open() 97 dev_err(&dt->i2c_client->dev, in gp2a_device_close() 105 error = i2c_smbus_write_byte_data(dt->i2c_client, GP2A_ADDR_GAIN, in gp2a_initialize() 110 error = i2c_smbus_write_byte_data(dt->i2c_client, GP2A_ADDR_HYS, in gp2a_initialize() 115 error = i2c_smbus_write_byte_data(dt->i2c_client, GP2A_ADDR_CYCLE, in gp2a_initialize() 125 static int __devinit gp2a_probe(struct i2c_client *client, in gp2a_probe() 152 dt->i2c_client = client; in gp2a_probe() [all …]
|
D | adxl34x-i2c.c | 19 struct i2c_client *client = to_i2c_client(dev); in adxl34x_smbus_read() 27 struct i2c_client *client = to_i2c_client(dev); in adxl34x_smbus_write() 36 struct i2c_client *client = to_i2c_client(dev); in adxl34x_smbus_read_block() 45 struct i2c_client *client = to_i2c_client(dev); in adxl34x_i2c_read_block() 76 static int __devinit adxl34x_i2c_probe(struct i2c_client *client, in adxl34x_i2c_probe() 101 static int __devexit adxl34x_i2c_remove(struct i2c_client *client) in adxl34x_i2c_remove() 111 struct i2c_client *client = to_i2c_client(dev); in adxl34x_i2c_suspend() 121 struct i2c_client *client = to_i2c_client(dev); in adxl34x_i2c_resume()
|
/linux-3.4.99/drivers/mfd/ |
D | max8925-i2c.c | 21 static inline int max8925_read_device(struct i2c_client *i2c, in max8925_read_device() 37 static inline int max8925_write_device(struct i2c_client *i2c, in max8925_write_device() 52 int max8925_reg_read(struct i2c_client *i2c, int reg) in max8925_reg_read() 69 int max8925_reg_write(struct i2c_client *i2c, int reg, in max8925_reg_write() 83 int max8925_bulk_read(struct i2c_client *i2c, int reg, in max8925_bulk_read() 97 int max8925_bulk_write(struct i2c_client *i2c, int reg, in max8925_bulk_write() 111 int max8925_set_bits(struct i2c_client *i2c, int reg, in max8925_set_bits() 138 static int __devinit max8925_probe(struct i2c_client *client, in max8925_probe() 180 static int __devexit max8925_remove(struct i2c_client *client) in max8925_remove() 194 struct i2c_client *client = container_of(dev, struct i2c_client, dev); in max8925_suspend() [all …]
|
D | 88pm860x-i2c.c | 20 int pm860x_reg_read(struct i2c_client *i2c, int reg) in pm860x_reg_read() 36 int pm860x_reg_write(struct i2c_client *i2c, int reg, in pm860x_reg_write() 49 int pm860x_bulk_read(struct i2c_client *i2c, int reg, in pm860x_bulk_read() 62 int pm860x_bulk_write(struct i2c_client *i2c, int reg, in pm860x_bulk_write() 75 int pm860x_set_bits(struct i2c_client *i2c, int reg, in pm860x_set_bits() 88 static int read_device(struct i2c_client *i2c, int reg, in read_device() 114 static int write_device(struct i2c_client *i2c, int reg, in write_device() 135 int pm860x_page_reg_read(struct i2c_client *i2c, int reg) in pm860x_page_reg_read() 155 int pm860x_page_reg_write(struct i2c_client *i2c, int reg, in pm860x_page_reg_write() 173 int pm860x_page_bulk_read(struct i2c_client *i2c, int reg, in pm860x_page_bulk_read() [all …]
|
D | max8998.c | 55 int max8998_read_reg(struct i2c_client *i2c, u8 reg, u8 *dest) in max8998_read_reg() 72 int max8998_bulk_read(struct i2c_client *i2c, u8 reg, int count, u8 *buf) in max8998_bulk_read() 87 int max8998_write_reg(struct i2c_client *i2c, u8 reg, u8 value) in max8998_write_reg() 99 int max8998_bulk_write(struct i2c_client *i2c, u8 reg, int count, u8 *buf) in max8998_bulk_write() 114 int max8998_update_reg(struct i2c_client *i2c, u8 reg, u8 val, u8 mask) in max8998_update_reg() 131 static int max8998_i2c_probe(struct i2c_client *i2c, in max8998_i2c_probe() 195 static int max8998_i2c_remove(struct i2c_client *i2c) in max8998_i2c_remove() 216 struct i2c_client *i2c = container_of(dev, struct i2c_client, dev); in max8998_suspend() 226 struct i2c_client *i2c = container_of(dev, struct i2c_client, dev); in max8998_resume() 286 struct i2c_client *i2c = container_of(dev, struct i2c_client, dev); in max8998_freeze() [all …]
|
D | tps6507x.c | 38 struct i2c_client *i2c = tps6507x->i2c_client; in tps6507x_i2c_read_device() 66 struct i2c_client *i2c = tps6507x->i2c_client; in tps6507x_i2c_write_device() 85 static int tps6507x_i2c_probe(struct i2c_client *i2c, in tps6507x_i2c_probe() 97 tps6507x->i2c_client = i2c; in tps6507x_i2c_probe() 116 static int tps6507x_i2c_remove(struct i2c_client *i2c) in tps6507x_i2c_remove()
|
/linux-3.4.99/drivers/misc/lis3lv02d/ |
D | lis3lv02d_i2c.c | 58 struct i2c_client *c = lis3->bus_priv; in lis3_i2c_write() 64 struct i2c_client *c = lis3->bus_priv; in lis3_i2c_read() 72 struct i2c_client *c = lis3->bus_priv; in lis3_i2c_blockread() 101 static int __devinit lis3lv02d_i2c_probe(struct i2c_client *client, in lis3lv02d_i2c_probe() 168 static int __devexit lis3lv02d_i2c_remove(struct i2c_client *client) in lis3lv02d_i2c_remove() 187 struct i2c_client *client = container_of(dev, struct i2c_client, dev); in lis3lv02d_i2c_suspend() 197 struct i2c_client *client = container_of(dev, struct i2c_client, dev); in lis3lv02d_i2c_resume() 216 struct i2c_client *client = container_of(dev, struct i2c_client, dev); in lis3_i2c_runtime_suspend() 225 struct i2c_client *client = container_of(dev, struct i2c_client, dev); in lis3_i2c_runtime_resume()
|
/linux-3.4.99/include/linux/mfd/ |
D | 88pm860x.h | 318 struct i2c_client *client; 319 struct i2c_client *companion; /* companion chip client */ 395 extern int pm860x_reg_read(struct i2c_client *, int); 396 extern int pm860x_reg_write(struct i2c_client *, int, unsigned char); 397 extern int pm860x_bulk_read(struct i2c_client *, int, int, unsigned char *); 398 extern int pm860x_bulk_write(struct i2c_client *, int, int, unsigned char *); 399 extern int pm860x_set_bits(struct i2c_client *, int, unsigned char, 401 extern int pm860x_page_reg_read(struct i2c_client *, int); 402 extern int pm860x_page_reg_write(struct i2c_client *, int, unsigned char); 403 extern int pm860x_page_bulk_read(struct i2c_client *, int, int, [all …]
|
D | max8925.h | 197 struct i2c_client *i2c; 198 struct i2c_client *adc; 199 struct i2c_client *rtc; 245 extern int max8925_reg_read(struct i2c_client *, int); 246 extern int max8925_reg_write(struct i2c_client *, int, unsigned char); 247 extern int max8925_bulk_read(struct i2c_client *, int, int, unsigned char *); 248 extern int max8925_bulk_write(struct i2c_client *, int, int, unsigned char *); 249 extern int max8925_set_bits(struct i2c_client *, int, unsigned char,
|
D | max8998-private.h | 151 struct i2c_client *i2c; 152 struct i2c_client *rtc; 169 extern int max8998_read_reg(struct i2c_client *i2c, u8 reg, u8 *dest); 170 extern int max8998_bulk_read(struct i2c_client *i2c, u8 reg, int count, 172 extern int max8998_write_reg(struct i2c_client *i2c, u8 reg, u8 value); 173 extern int max8998_bulk_write(struct i2c_client *i2c, u8 reg, int count, 175 extern int max8998_update_reg(struct i2c_client *i2c, u8 reg, u8 val, u8 mask);
|
/linux-3.4.99/drivers/power/ |
D | max17040_battery.c | 41 struct i2c_client *client; 82 static int max17040_write_reg(struct i2c_client *client, int reg, u8 value) in max17040_write_reg() 94 static int max17040_read_reg(struct i2c_client *client, int reg) in max17040_read_reg() 106 static void max17040_reset(struct i2c_client *client) in max17040_reset() 112 static void max17040_get_vcell(struct i2c_client *client) in max17040_get_vcell() 124 static void max17040_get_soc(struct i2c_client *client) in max17040_get_soc() 136 static void max17040_get_version(struct i2c_client *client) in max17040_get_version() 147 static void max17040_get_online(struct i2c_client *client) in max17040_get_online() 157 static void max17040_get_status(struct i2c_client *client) in max17040_get_status() 201 static int __devinit max17040_probe(struct i2c_client *client, in max17040_probe() [all …]
|
/linux-3.4.99/drivers/media/video/s5p-tv/ |
D | sii9234_drv.c | 37 struct i2c_client *client; 48 static inline int sii9234_readb(struct i2c_client *client, int addr) in sii9234_readb() 53 static inline int sii9234_writeb(struct i2c_client *client, int addr, int value) in sii9234_writeb() 58 static inline int sii9234_writeb_mask(struct i2c_client *client, int addr, in sii9234_writeb_mask() 70 static inline int sii9234_readb_idx(struct i2c_client *client, int addr) in sii9234_readb_idx() 82 static inline int sii9234_writeb_idx(struct i2c_client *client, int addr, in sii9234_writeb_idx() 96 static inline int sii9234_writeb_idx_mask(struct i2c_client *client, int addr, in sii9234_writeb_idx_mask() 110 struct i2c_client *client = ctx->client; in sii9234_reset() 145 static int sii9234_verify_version(struct i2c_client *client) in sii9234_verify_version() 221 struct i2c_client *client = ctx->client; in sii9234_set_internal() [all …]
|
/linux-3.4.99/sound/soc/codecs/ |
D | cs4270.c | 649 static int cs4270_i2c_probe(struct i2c_client *i2c_client, in cs4270_i2c_probe() argument 657 ret = i2c_smbus_read_byte_data(i2c_client, CS4270_CHIPID); in cs4270_i2c_probe() 659 dev_err(&i2c_client->dev, "failed to read i2c at addr %X\n", in cs4270_i2c_probe() 660 i2c_client->addr); in cs4270_i2c_probe() 665 dev_err(&i2c_client->dev, "device at addr %X is not a CS4270\n", in cs4270_i2c_probe() 666 i2c_client->addr); in cs4270_i2c_probe() 670 dev_info(&i2c_client->dev, "found device at i2c address %X\n", in cs4270_i2c_probe() 671 i2c_client->addr); in cs4270_i2c_probe() 672 dev_info(&i2c_client->dev, "hardware revision %X\n", ret & 0xF); in cs4270_i2c_probe() 674 cs4270 = devm_kzalloc(&i2c_client->dev, sizeof(struct cs4270_private), in cs4270_i2c_probe() [all …]
|
/linux-3.4.99/drivers/rtc/ |
D | rtc-ds1374.c | 53 struct i2c_client *client; 67 static int ds1374_read_rtc(struct i2c_client *client, u32 *time, in ds1374_read_rtc() 92 static int ds1374_write_rtc(struct i2c_client *client, u32 time, in ds1374_write_rtc() 111 static int ds1374_check_rtc_status(struct i2c_client *client) in ds1374_check_rtc_status() 146 struct i2c_client *client = to_i2c_client(dev); in ds1374_read_time() 159 struct i2c_client *client = to_i2c_client(dev); in ds1374_set_time() 172 struct i2c_client *client = to_i2c_client(dev); in ds1374_read_alarm() 210 struct i2c_client *client = to_i2c_client(dev); in ds1374_set_alarm() 270 struct i2c_client *client = dev_id; in ds1374_irq() 281 struct i2c_client *client = ds1374->client; in ds1374_work() [all …]
|