Searched refs:i2c (Results 276 - 300 of 2512) sorted by relevance

<<11121314151617181920>>

/linux-master/drivers/nfc/pn533/
H A DMakefile6 pn533_i2c-objs = i2c.o
/linux-master/arch/arm/mach-s3c/
H A Dsetup-i2c0-s3c64xx.c16 #include <linux/platform_data/i2c-s3c2410.h>
H A Dsetup-i2c1-s3c64xx.c16 #include <linux/platform_data/i2c-s3c2410.h>
/linux-master/include/media/drv-intf/
H A Ds3c_camif.h11 #include <linux/i2c.h>
19 * @i2c_bus_num: i2c control bus id the sensor is attached to
/linux-master/drivers/nfc/s3fwrn5/
H A DMakefile7 s3fwrn5_i2c-objs = i2c.o
/linux-master/drivers/gpu/drm/bridge/analogix/
H A DMakefile2 analogix_dp-objs := analogix_dp_core.o analogix_dp_reg.o analogix-i2c-dptx.o
/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/
H A Dgk104.c28 gk104_aux_stat(struct nvkm_i2c *i2c, u32 *hi, u32 *lo, u32 *rq, u32 *tx) argument
30 struct nvkm_device *device = i2c->subdev.device;
43 gk104_aux_mask(struct nvkm_i2c *i2c, u32 type, u32 mask, u32 data) argument
45 struct nvkm_device *device = i2c->subdev.device;
H A Dg94.c28 g94_aux_stat(struct nvkm_i2c *i2c, u32 *hi, u32 *lo, u32 *rq, u32 *tx) argument
30 struct nvkm_device *device = i2c->subdev.device;
43 g94_aux_mask(struct nvkm_i2c *i2c, u32 type, u32 mask, u32 data) argument
45 struct nvkm_device *device = i2c->subdev.device;
H A Dbusgf119.c36 struct nvkm_device *device = bus->base.pad->i2c->subdev.device;
44 struct nvkm_device *device = bus->base.pad->i2c->subdev.device;
52 struct nvkm_device *device = bus->base.pad->i2c->subdev.device;
60 struct nvkm_device *device = bus->base.pad->i2c->subdev.device;
68 struct nvkm_device *device = bus->base.pad->i2c->subdev.device;
/linux-master/sound/ppc/
H A Ddaca.c10 #include <linux/i2c.h>
16 /* i2c address */
29 struct pmac_keywest i2c; member in struct:pmac_daca
39 static int daca_init_client(struct pmac_keywest *i2c) argument
44 if (i2c_smbus_write_byte_data(i2c->client, DACA_REG_SR, 0x08) < 0 ||
45 i2c_smbus_write_byte_data(i2c->client, DACA_REG_GCFG, 0x05) < 0)
47 return i2c_smbus_write_block_data(i2c->client, DACA_REG_AVOL,
58 if (! mix->i2c.client)
70 if (i2c_smbus_write_block_data(mix->i2c.client, DACA_REG_AVOL,
189 i2c_smbus_write_byte_data(mix->i2c
[all...]
/linux-master/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_eeprom.h27 #include <linux/i2c.h>
/linux-master/drivers/platform/x86/
H A Ddual_accel_detect.h18 #include <linux/i2c.h>
/linux-master/include/linux/mfd/
H A Drt5033.h13 #include <linux/i2c.h>
/linux-master/drivers/iio/imu/inv_icm42600/
H A DMakefile10 obj-$(CONFIG_INV_ICM42600_I2C) += inv-icm42600-i2c.o
11 inv-icm42600-i2c-y += inv_icm42600_i2c.o
/linux-master/drivers/macintosh/
H A Dwindfarm_max6690_sensor.c12 #include <linux/i2c.h>
28 struct i2c_client *i2c; member in struct:wf_6690_sensor
39 if (max->i2c == NULL)
43 data = i2c_smbus_read_byte_data(max->i2c, MAX6690_EXTERNAL_TEMP);
95 max->i2c = client;
110 max->i2c = NULL;
118 MODULE_DEVICE_TABLE(i2c, wf_max6690_id);
/linux-master/drivers/mfd/
H A Dwm8400-core.c13 #include <linux/i2c.h>
119 static int wm8400_i2c_probe(struct i2c_client *i2c) argument
123 wm8400 = devm_kzalloc(&i2c->dev, sizeof(struct wm8400), GFP_KERNEL);
127 wm8400->regmap = devm_regmap_init_i2c(i2c, &wm8400_regmap_config);
131 wm8400->dev = &i2c->dev;
132 i2c_set_clientdata(i2c, wm8400);
134 return wm8400_init(wm8400, dev_get_platdata(&i2c->dev));
/linux-master/drivers/regulator/
H A Dfan53880.c3 #include <linux/i2c.h>
117 static int fan53880_i2c_probe(struct i2c_client *i2c) argument
125 regmap = devm_regmap_init_i2c(i2c, &fan53880_regmap);
128 dev_err(&i2c->dev, "Failed to create regmap: %d\n", ret);
134 dev_err(&i2c->dev, "Failed to read PRODUCT_ID: %d\n", ret);
138 dev_err(&i2c->dev, "Unsupported device id: 0x%x.\n", data);
142 config.dev = &i2c->dev;
146 rdev = devm_regulator_register(&i2c->dev,
151 dev_err(&i2c->dev, "Failed to register %s: %d\n",
170 MODULE_DEVICE_TABLE(i2c, fan53880_i2c_i
[all...]
H A Dmt6311-regulator.c7 #include <linux/i2c.h>
87 static int mt6311_i2c_probe(struct i2c_client *i2c) argument
95 regmap = devm_regmap_init_i2c(i2c, &mt6311_regmap_config);
98 dev_err(&i2c->dev, "Failed to allocate register map: %d\n",
105 dev_err(&i2c->dev, "Failed to read DEVICE_ID reg: %d\n", ret);
115 dev_err(&i2c->dev, "Unsupported device id = 0x%x.\n", data);
120 config.dev = &i2c->dev;
123 rdev = devm_regulator_register(&i2c->dev,
126 dev_err(&i2c->dev,
139 MODULE_DEVICE_TABLE(i2c, mt6311_i2c_i
[all...]
H A Drpi-panel-attiny-regulator.c11 #include <linux/i2c.h>
284 static int attiny_i2c_probe(struct i2c_client *i2c) argument
295 state = devm_kzalloc(&i2c->dev, sizeof(*state), GFP_KERNEL);
300 i2c_set_clientdata(i2c, state);
302 regmap = devm_regmap_init_i2c(i2c, &attiny_regmap_config);
305 dev_err(&i2c->dev, "Failed to allocate register map: %d\n",
310 ret = attiny_i2c_read(i2c, REG_ID, &data);
312 dev_err(&i2c->dev, "Failed to read REG_ID reg: %d\n", ret);
321 dev_err(&i2c->dev, "Unknown Atmel firmware revision: 0x%02x\n", data);
330 config.dev = &i2c
[all...]
H A Drt6160-regulator.c5 #include <linux/i2c.h>
227 static int rt6160_probe(struct i2c_client *i2c) argument
236 priv = devm_kzalloc(&i2c->dev, sizeof(*priv), GFP_KERNEL);
241 device_property_present(&i2c->dev, "richtek,vsel-active-low");
243 priv->enable_gpio = devm_gpiod_get_optional(&i2c->dev, "enable", GPIOD_OUT_HIGH);
245 dev_err(&i2c->dev, "Failed to get 'enable' gpio\n");
252 priv->regmap = devm_regmap_init_i2c(i2c, &rt6160_regmap_config);
255 dev_err(&i2c->dev, "Failed to init regmap (%d)\n", ret);
264 dev_err(&i2c->dev, "VID not correct [0x%02x]\n", devid);
286 regulator_cfg.dev = &i2c
[all...]
/linux-master/drivers/iio/magnetometer/
H A Dak8974.c17 #include <linux/i2c.h>
174 * @i2c: parent I2C client
187 struct i2c_client *i2c; member in struct:ak8974
346 dev_err(&ak8974->i2c->dev,
363 dev_err(&ak8974->i2c->dev, "timeout waiting for DRDY\n");
381 dev_err(&ak8974->i2c->dev,
413 dev_err(&ak8974->i2c->dev, "error reading DRDY status\n");
428 struct device *dev = &ak8974->i2c->dev;
478 dev_warn(&ak8974->i2c->dev,
513 dev_info(&ak8974->i2c
765 struct i2c_client *i2c = to_i2c_client(dev); local
817 ak8974_probe(struct i2c_client *i2c) argument
971 ak8974_remove(struct i2c_client *i2c) argument
[all...]
/linux-master/drivers/media/dvb-frontends/
H A Dtda1004x.h58 /* the demodulator's i2c address */
99 struct i2c_adapter* i2c; member in struct:tda1004x_state
109 struct i2c_adapter* i2c);
112 struct i2c_adapter* i2c);
115 struct i2c_adapter* i2c)
121 struct i2c_adapter* i2c)
114 tda10045_attach(const struct tda1004x_config* config, struct i2c_adapter* i2c) argument
120 tda10046_attach(const struct tda1004x_config* config, struct i2c_adapter* i2c) argument
/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/therm/
H A Dic.c27 #include <subdev/i2c.h>
39 client = i2c_new_client_device(&bus->i2c, info);
87 struct nvkm_i2c *i2c = device->i2c; local
91 bus = nvkm_i2c_bus_find(i2c, NVKM_I2C_BUS_PRI);
/linux-master/sound/soc/codecs/
H A Dlm4857.c13 #include <linux/i2c.h>
118 static int lm4857_i2c_probe(struct i2c_client *i2c) argument
122 regmap = devm_regmap_init_i2c(i2c, &lm4857_regmap_config);
126 return devm_snd_soc_register_component(&i2c->dev,
134 MODULE_DEVICE_TABLE(i2c, lm4857_i2c_id);
/linux-master/drivers/nfc/nfcmrvl/
H A Di2c.c10 #include <linux/i2c.h>
21 struct i2c_client *i2c; member in struct:nfcmrvl_i2c_drv_data
32 ret = i2c_master_recv(drv_data->i2c, (u8 *)&nci_hdr, NCI_CTRL_HDR_SIZE);
34 nfc_err(&drv_data->i2c->dev, "cannot read NCI header\n");
48 ret = i2c_master_recv(drv_data->i2c,
53 nfc_err(&drv_data->i2c->dev,
84 nfc_err(&drv_data->i2c->dev, "read failed %d\n", ret);
88 nfc_err(&drv_data->i2c->dev, "corrupted RX packet\n");
120 ret = i2c_master_send(drv_data->i2c, skb->data, skb->len);
126 ret = i2c_master_send(drv_data->i2c, sk
[all...]

Completed in 295 milliseconds

<<11121314151617181920>>