Home
last modified time | relevance | path

Searched refs:i2c_reg (Results 1 – 9 of 9) sorted by relevance

/linux-2.6.39/drivers/i2c/busses/
Di2c-cpm.c92 struct i2c_reg { struct
115 struct i2c_reg __iomem *i2c_reg; argument
130 struct i2c_reg __iomem *i2c_reg; in cpm_i2c_interrupt() local
135 i2c_reg = cpm->i2c_reg; in cpm_i2c_interrupt()
138 i = in_8(&i2c_reg->i2cer); in cpm_i2c_interrupt()
139 out_8(&i2c_reg->i2cer, i); in cpm_i2c_interrupt()
181 struct i2c_reg __iomem *i2c_reg = cpm->i2c_reg; in cpm_i2c_force_close() local
187 out_8(&i2c_reg->i2cmr, 0x00); /* Disable all interrupts */ in cpm_i2c_force_close()
188 out_8(&i2c_reg->i2cer, 0xff); in cpm_i2c_force_close()
312 struct i2c_reg __iomem *i2c_reg = cpm->i2c_reg; in cpm_i2c_xfer() local
[all …]
Di2c-puv3.c53 int i2c_reg = *buf; in xfer_read() local
63 writel(i2c_reg | I2C_DATACMD_WRITE, I2C_DATACMD); in xfer_read()
66 i2c_reg++; in xfer_read()
87 int i2c_reg = *buf; in xfer_write() local
90 if (i2c_reg == -1) { in xfer_write()
102 writel(i2c_reg | I2C_DATACMD_WRITE, I2C_DATACMD); in xfer_write()
111 i2c_reg++; in xfer_write()
/linux-2.6.39/drivers/hwmon/
Demc2103.c83 static int read_u8_from_i2c(struct i2c_client *client, u8 i2c_reg, u8 *output) in read_u8_from_i2c() argument
85 int status = i2c_smbus_read_byte_data(client, i2c_reg); in read_u8_from_i2c()
88 i2c_reg, status); in read_u8_from_i2c()
95 static void read_temp_from_i2c(struct i2c_client *client, u8 i2c_reg, in read_temp_from_i2c() argument
100 if (read_u8_from_i2c(client, i2c_reg, &degrees) < 0) in read_temp_from_i2c()
103 if (read_u8_from_i2c(client, i2c_reg + 1, &fractional) < 0) in read_temp_from_i2c()
/linux-2.6.39/drivers/media/video/et61x251/
Det61x251.h105 u8 reg, i2c_reg; member
Det61x251_core.c852 count = sprintf(buf, "%u\n", cam->sysfs.i2c_reg); in et61x251_show_i2c_reg()
885 cam->sysfs.i2c_reg = index; in et61x251_store_i2c_reg()
887 DBG(2, "Moved sensor register index to 0x%02X", cam->sysfs.i2c_reg); in et61x251_store_i2c_reg()
917 if ((val = et61x251_i2c_read(cam, cam->sysfs.i2c_reg)) < 0) { in et61x251_show_i2c_val()
961 err = et61x251_i2c_write(cam, cam->sysfs.i2c_reg, value); in et61x251_store_i2c_val()
968 cam->sysfs.i2c_reg, value); in et61x251_store_i2c_val()
981 static DEVICE_ATTR(i2c_reg, S_IRUGO | S_IWUSR,
/linux-2.6.39/drivers/media/video/sn9c102/
Dsn9c102.h89 u16 reg, i2c_reg; member
Dsn9c102_core.c1195 count = sprintf(buf, "%u\n", cam->sysfs.i2c_reg); in sn9c102_show_i2c_reg()
1228 cam->sysfs.i2c_reg = index; in sn9c102_store_i2c_reg()
1230 DBG(2, "Moved sensor register index to 0x%02X", cam->sysfs.i2c_reg); in sn9c102_store_i2c_reg()
1260 if ((val = sn9c102_i2c_read(cam, cam->sysfs.i2c_reg)) < 0) { in sn9c102_show_i2c_val()
1304 err = sn9c102_i2c_write(cam, cam->sysfs.i2c_reg, value); in sn9c102_store_i2c_val()
1311 cam->sysfs.i2c_reg, value); in sn9c102_store_i2c_val()
1429 static DEVICE_ATTR(i2c_reg, S_IRUGO | S_IWUSR,
/linux-2.6.39/Documentation/video4linux/
Det61x251.txt211 registered camera: "reg", "val", "i2c_reg" and "i2c_val". The first two files
213 "reg" and "i2c_reg" hold the values of the current register index where the
223 [root@localhost #] echo 1 > i2c_reg
Dsn9c102.txt243 "reg", "val", "i2c_reg" and "i2c_val". The first two files control the
245 "i2c_reg" hold the values of the current register index where the following
247 use is not intended for end-users. Note that "i2c_reg" and "i2c_val" will not
257 [root@localhost #] echo 1 > i2c_reg