/drivers/i2c/busses/ |
D | i2c-pxa.c | 110 #define _IBMR(i2c) ((i2c)->reg_base + (0x0 << (i2c)->reg_shift)) argument 111 #define _IDBR(i2c) ((i2c)->reg_base + (0x4 << (i2c)->reg_shift)) argument 112 #define _ICR(i2c) ((i2c)->reg_base + (0x8 << (i2c)->reg_shift)) argument 113 #define _ISR(i2c) ((i2c)->reg_base + (0xc << (i2c)->reg_shift)) argument 114 #define _ISAR(i2c) ((i2c)->reg_base + (0x10 << (i2c)->reg_shift)) argument 190 static void i2c_pxa_show_state(struct pxa_i2c *i2c, int lno, const char *fname) in i2c_pxa_show_state() argument 192 dev_dbg(&i2c->adap.dev, "state:%s:%d: ISR=%08x, ICR=%08x, IBMR=%02x\n", fname, lno, in i2c_pxa_show_state() 193 readl(_ISR(i2c)), readl(_ICR(i2c)), readl(_IBMR(i2c))); in i2c_pxa_show_state() 196 #define show_state(i2c) i2c_pxa_show_state(i2c, __LINE__, __func__) argument 200 #define show_state(i2c) do { } while (0) argument [all …]
|
D | i2c-s3c2410.c | 88 static inline int s3c24xx_i2c_is2440(struct s3c24xx_i2c *i2c) in s3c24xx_i2c_is2440() argument 90 struct platform_device *pdev = to_platform_device(i2c->dev); in s3c24xx_i2c_is2440() 101 static inline void s3c24xx_i2c_master_complete(struct s3c24xx_i2c *i2c, int ret) in s3c24xx_i2c_master_complete() argument 103 dev_dbg(i2c->dev, "master_complete %d\n", ret); in s3c24xx_i2c_master_complete() 105 i2c->msg_ptr = 0; in s3c24xx_i2c_master_complete() 106 i2c->msg = NULL; in s3c24xx_i2c_master_complete() 107 i2c->msg_idx++; in s3c24xx_i2c_master_complete() 108 i2c->msg_num = 0; in s3c24xx_i2c_master_complete() 110 i2c->msg_idx = ret; in s3c24xx_i2c_master_complete() 112 wake_up(&i2c->wait); in s3c24xx_i2c_master_complete() [all …]
|
D | i2c-pca-platform.c | 46 struct i2c_pca_pf_data *i2c = pd; in i2c_pca_pf_readbyte8() local 47 return ioread8(i2c->reg_base + reg); in i2c_pca_pf_readbyte8() 52 struct i2c_pca_pf_data *i2c = pd; in i2c_pca_pf_readbyte16() local 53 return ioread8(i2c->reg_base + reg * 2); in i2c_pca_pf_readbyte16() 58 struct i2c_pca_pf_data *i2c = pd; in i2c_pca_pf_readbyte32() local 59 return ioread8(i2c->reg_base + reg * 4); in i2c_pca_pf_readbyte32() 64 struct i2c_pca_pf_data *i2c = pd; in i2c_pca_pf_writebyte8() local 65 iowrite8(val, i2c->reg_base + reg); in i2c_pca_pf_writebyte8() 70 struct i2c_pca_pf_data *i2c = pd; in i2c_pca_pf_writebyte16() local 71 iowrite8(val, i2c->reg_base + reg * 2); in i2c_pca_pf_writebyte16() [all …]
|
D | i2c-ocores.c | 66 static inline void oc_setreg(struct ocores_i2c *i2c, int reg, u8 value) in oc_setreg() argument 68 iowrite8(value, i2c->base + reg * i2c->regstep); in oc_setreg() 71 static inline u8 oc_getreg(struct ocores_i2c *i2c, int reg) in oc_getreg() argument 73 return ioread8(i2c->base + reg * i2c->regstep); in oc_getreg() 76 static void ocores_process(struct ocores_i2c *i2c) in ocores_process() argument 78 struct i2c_msg *msg = i2c->msg; in ocores_process() 79 u8 stat = oc_getreg(i2c, OCI2C_STATUS); in ocores_process() 81 if ((i2c->state == STATE_DONE) || (i2c->state == STATE_ERROR)) { in ocores_process() 83 oc_setreg(i2c, OCI2C_CMD, OCI2C_CMD_IACK); in ocores_process() 84 wake_up(&i2c->wait); in ocores_process() [all …]
|
D | i2c-mpc.c | 61 static __inline__ void writeccr(struct mpc_i2c *i2c, u32 x) in writeccr() argument 63 writeb(x, i2c->base + MPC_I2C_CR); in writeccr() 68 struct mpc_i2c *i2c = dev_id; in mpc_i2c_isr() local 69 if (readb(i2c->base + MPC_I2C_SR) & CSR_MIF) { in mpc_i2c_isr() 71 i2c->interrupt = readb(i2c->base + MPC_I2C_SR); in mpc_i2c_isr() 72 writeb(0, i2c->base + MPC_I2C_SR); in mpc_i2c_isr() 73 wake_up_interruptible(&i2c->queue); in mpc_i2c_isr() 83 static void mpc_i2c_fixup(struct mpc_i2c *i2c) in mpc_i2c_fixup() argument 85 writeccr(i2c, 0); in mpc_i2c_fixup() 87 writeccr(i2c, CCR_MEN); in mpc_i2c_fixup() [all …]
|
D | Makefile | 6 obj-$(CONFIG_I2C_ALI1535) += i2c-ali1535.o 7 obj-$(CONFIG_I2C_ALI1563) += i2c-ali1563.o 8 obj-$(CONFIG_I2C_ALI15X3) += i2c-ali15x3.o 9 obj-$(CONFIG_I2C_AMD756) += i2c-amd756.o 10 obj-$(CONFIG_I2C_AMD756_S4882) += i2c-amd756-s4882.o 11 obj-$(CONFIG_I2C_AMD8111) += i2c-amd8111.o 12 obj-$(CONFIG_I2C_I801) += i2c-i801.o 13 obj-$(CONFIG_I2C_ISCH) += i2c-isch.o 14 obj-$(CONFIG_I2C_NFORCE2) += i2c-nforce2.o 15 obj-$(CONFIG_I2C_NFORCE2_S4985) += i2c-nforce2-s4985.o [all …]
|
D | i2c-versatile.c | 34 struct i2c_versatile *i2c = data; in i2c_versatile_setsda() local 36 writel(SDA, i2c->base + (state ? I2C_CONTROLS : I2C_CONTROLC)); in i2c_versatile_setsda() 41 struct i2c_versatile *i2c = data; in i2c_versatile_setscl() local 43 writel(SCL, i2c->base + (state ? I2C_CONTROLS : I2C_CONTROLC)); in i2c_versatile_setscl() 48 struct i2c_versatile *i2c = data; in i2c_versatile_getsda() local 49 return !!(readl(i2c->base + I2C_CONTROL) & SDA); in i2c_versatile_getsda() 54 struct i2c_versatile *i2c = data; in i2c_versatile_getscl() local 55 return !!(readl(i2c->base + I2C_CONTROL) & SCL); in i2c_versatile_getscl() 69 struct i2c_versatile *i2c; in i2c_versatile_probe() local 84 i2c = kzalloc(sizeof(struct i2c_versatile), GFP_KERNEL); in i2c_versatile_probe() [all …]
|
D | Kconfig | 20 will be called i2c-ali1535. 32 will be called i2c-ali1563. 42 will be called i2c-ali15x3. 54 will be called i2c-amd756. 67 will be called i2c-amd756-s4882. 77 will be called i2c-amd8111. 103 will be called i2c-i801. 113 will be called i2c-isch. 138 will be called i2c-piix4. 148 will be called i2c-nforce2. [all …]
|
/drivers/video/aty/ |
D | radeon_i2c.c | 102 rinfo->i2c[0].rinfo = rinfo; in radeon_create_i2c_busses() 103 rinfo->i2c[0].ddc_reg = GPIO_MONID; in radeon_create_i2c_busses() 104 radeon_setup_i2c_bus(&rinfo->i2c[0], "monid"); in radeon_create_i2c_busses() 106 rinfo->i2c[1].rinfo = rinfo; in radeon_create_i2c_busses() 107 rinfo->i2c[1].ddc_reg = GPIO_DVI_DDC; in radeon_create_i2c_busses() 108 radeon_setup_i2c_bus(&rinfo->i2c[1], "dvi"); in radeon_create_i2c_busses() 110 rinfo->i2c[2].rinfo = rinfo; in radeon_create_i2c_busses() 111 rinfo->i2c[2].ddc_reg = GPIO_VGA_DDC; in radeon_create_i2c_busses() 112 radeon_setup_i2c_bus(&rinfo->i2c[2], "vga"); in radeon_create_i2c_busses() 114 rinfo->i2c[3].rinfo = rinfo; in radeon_create_i2c_busses() [all …]
|
/drivers/macintosh/ |
D | windfarm_lm75_sensor.c | 40 struct i2c_client i2c; member 44 #define i2c_to_lm75(c) container_of(c, struct wf_lm75_sensor, i2c) 62 if (lm->i2c.adapter == NULL) in wf_lm75_get() 67 u8 cfg_new, cfg = (u8)i2c_smbus_read_byte_data(&lm->i2c, 1); in wf_lm75_get() 76 i2c_smbus_write_byte_data(&lm->i2c, 1, cfg_new); in wf_lm75_get() 84 data = (s32)le16_to_cpu(i2c_smbus_read_word_data(&lm->i2c, 0)); in wf_lm75_get() 96 if (lm->i2c.adapter) { in wf_lm75_release() 97 i2c_detach_client(&lm->i2c); in wf_lm75_release() 98 lm->i2c.adapter = NULL; in wf_lm75_release() 142 lm->i2c.addr = (addr >> 1) & 0x7f; in wf_lm75_create() [all …]
|
D | windfarm_max6690_sensor.c | 29 struct i2c_client i2c; member 34 #define i2c_to_6690(x) container_of((x), struct wf_6690_sensor, i2c) 52 if (max->i2c.adapter == NULL) in wf_max6690_get() 56 data = i2c_smbus_read_byte_data(&max->i2c, MAX6690_EXTERNAL_TEMP); in wf_max6690_get() 67 if (max->i2c.adapter) { in wf_max6690_release() 68 i2c_detach_client(&max->i2c); in wf_max6690_release() 69 max->i2c.adapter = NULL; in wf_max6690_release() 104 max->i2c.addr = addr >> 1; in wf_max6690_create() 105 max->i2c.adapter = adapter; in wf_max6690_create() 106 max->i2c.driver = &wf_max6690_driver; in wf_max6690_create() [all …]
|
D | windfarm_smu_sat.c | 42 struct i2c_client i2c; member 57 #define i2c_to_sat(c) container_of(c, struct wf_sat, i2c) 84 err = i2c_smbus_write_word_data(&sat->i2c, 8, id << 8); in smu_sat_get_sdb_partition() 90 err = i2c_smbus_read_word_data(&sat->i2c, 9); in smu_sat_get_sdb_partition() 108 err = i2c_smbus_read_i2c_block_data(&sat->i2c, 0xa, 4, data); in smu_sat_get_sdb_partition() 141 err = i2c_smbus_read_i2c_block_data(&sat->i2c, 0x3f, 16, sat->cache); in wf_sat_read_cache() 164 if (sat->i2c.adapter == NULL) in wf_sat_get() 196 if (sat->i2c.adapter) { in wf_sat_release() 197 i2c_detach_client(&sat->i2c); in wf_sat_release() 198 sat->i2c.adapter = NULL; in wf_sat_release() [all …]
|
/drivers/media/dvb/b2c2/ |
D | flexcop-i2c.c | 43 static int flexcop_i2c_read4(struct flexcop_i2c_adapter *i2c, in flexcop_i2c_read4() argument 50 ret = flexcop_i2c_operation(i2c->fc, &r100); in flexcop_i2c_read4() 53 r100.tw_sm_c_100.no_base_addr_ack_error = i2c->no_base_addr; in flexcop_i2c_read4() 54 ret = flexcop_i2c_operation(i2c->fc, &r100); in flexcop_i2c_read4() 64 r104 = i2c->fc->read_ibi_reg(i2c->fc, tw_sm_c_104); in flexcop_i2c_read4() 96 int flexcop_i2c_request(struct flexcop_i2c_adapter *i2c, in flexcop_i2c_request() argument 112 r100.tw_sm_c_100.twoWS_port_reg = i2c->port; in flexcop_i2c_request() 115 printk(KERN_DEBUG "%d ", i2c->port); in flexcop_i2c_request() 127 if (i2c->no_base_addr && len == 0 && op == FC_WRITE) { in flexcop_i2c_request() 139 ret = flexcop_i2c_read4(i2c, r100, buf); in flexcop_i2c_request() [all …]
|
/drivers/media/video/ |
D | tuner-core.c | 35 #define PREFIX t->i2c->driver->driver.name 80 struct i2c_client *i2c; member 127 i2c_adapter_id(t->i2c->adapter), \ 128 t->i2c->addr, ##arg); \ 133 i2c_adapter_id(t->i2c->adapter), \ 134 t->i2c->addr, ##arg); \ 139 i2c_adapter_id(t->i2c->adapter), \ 140 t->i2c->addr, ##arg); \ 146 i2c_adapter_id(t->i2c->adapter), \ 147 t->i2c->addr, ##arg); \ [all …]
|
/drivers/mfd/ |
D | wm8350-i2c.c | 59 static int wm8350_i2c_probe(struct i2c_client *i2c, in wm8350_i2c_probe() argument 67 kfree(i2c); in wm8350_i2c_probe() 71 i2c_set_clientdata(i2c, wm8350); in wm8350_i2c_probe() 72 wm8350->dev = &i2c->dev; in wm8350_i2c_probe() 73 wm8350->i2c_client = i2c; in wm8350_i2c_probe() 77 ret = wm8350_device_init(wm8350, i2c->irq, i2c->dev.platform_data); in wm8350_i2c_probe() 88 static int wm8350_i2c_remove(struct i2c_client *i2c) in wm8350_i2c_remove() argument 90 struct wm8350 *wm8350 = i2c_get_clientdata(i2c); in wm8350_i2c_remove() 104 MODULE_DEVICE_TABLE(i2c, wm8350_i2c_id);
|
D | wm8400-core.c | 341 struct i2c_client *i2c = io_data; in wm8400_i2c_read() local 346 xfer[0].addr = i2c->addr; in wm8400_i2c_read() 352 xfer[1].addr = i2c->addr; in wm8400_i2c_read() 357 ret = i2c_transfer(i2c->adapter, xfer, 2); in wm8400_i2c_read() 368 struct i2c_client *i2c = io_data; in wm8400_i2c_write() local 380 ret = i2c_master_send(i2c, msg, (count * sizeof(u16)) + 1); in wm8400_i2c_write() 392 static int wm8400_i2c_probe(struct i2c_client *i2c, in wm8400_i2c_probe() argument 404 wm8400->io_data = i2c; in wm8400_i2c_probe() 407 wm8400->dev = &i2c->dev; in wm8400_i2c_probe() 408 i2c_set_clientdata(i2c, wm8400); in wm8400_i2c_probe() [all …]
|
/drivers/sbus/char/ |
D | envctrl.c | 174 static void __iomem *i2c; variable 193 if (!(readb(i2c + PCF8584_CSR) & STATUS_PIN)) in envtrl_i2c_test_pin() 211 if (readb(i2c + PCF8584_CSR) & STATUS_BB) in envctrl_i2c_test_bb() 228 writeb(addr + 1, i2c + PCF8584_DATA); in envctrl_i2c_read_addr() 232 writeb(OBD_SEND_START, i2c + PCF8584_CSR); in envctrl_i2c_read_addr() 238 if (!(readb(i2c + PCF8584_CSR) & STATUS_LRB)) { in envctrl_i2c_read_addr() 239 return readb(i2c + PCF8584_DATA); in envctrl_i2c_read_addr() 241 writeb(OBD_SEND_STOP, i2c + PCF8584_CSR); in envctrl_i2c_read_addr() 252 writeb(addr, i2c + PCF8584_DATA); in envctrl_i2c_write_addr() 255 writeb(OBD_SEND_START, i2c + PCF8584_CSR); in envctrl_i2c_write_addr() [all …]
|
/drivers/media/dvb/frontends/ |
D | tua6100.c | 40 struct i2c_adapter *i2c; member 60 if ((ret = i2c_transfer (priv->i2c, &msg, 1)) != 1) { in tua6100_sleep() 132 if (i2c_transfer(priv->i2c, &msg0, 1) != 1) in tua6100_set_params() 137 if (i2c_transfer(priv->i2c, &msg2, 1) != 1) in tua6100_set_params() 142 if (i2c_transfer(priv->i2c, &msg1, 1) != 1) in tua6100_set_params() 171 struct dvb_frontend *tua6100_attach(struct dvb_frontend *fe, int addr, struct i2c_adapter *i2c) in tua6100_attach() argument 182 ret = i2c_transfer (i2c, msg, 2); in tua6100_attach() 194 priv->i2c = i2c; in tua6100_attach()
|
D | dvb-pll.c | 33 struct i2c_adapter *i2c; member 361 result = i2c_transfer(priv->i2c, &msg, 1); in samsung_dtos403ih102a_set() 468 if (priv->i2c == NULL) in dvb_pll_sleep() 481 if ((result = i2c_transfer(priv->i2c, &msg, 1)) != 1) { in dvb_pll_sleep() 501 if (priv->i2c == NULL) in dvb_pll_set_params() 511 if ((result = i2c_transfer(priv->i2c, &msg, 1)) != 1) { in dvb_pll_set_params() 563 if (priv->i2c == NULL) in dvb_pll_init() 575 if ((result = i2c_transfer(priv->i2c, &msg, 1)) != 1) { in dvb_pll_init() 595 struct i2c_adapter *i2c, in dvb_pll_attach() argument 613 if (i2c != NULL) { in dvb_pll_attach() [all …]
|
D | lnbp21.c | 41 struct i2c_adapter *i2c; member 69 return (i2c_transfer(lnbp21->i2c, &msg, 1) == 1) ? 0 : -EIO; in lnbp21_set_voltage() 87 return (i2c_transfer(lnbp21->i2c, &msg, 1) == 1) ? 0 : -EIO; in lnbp21_enable_high_lnb_voltage() 100 struct dvb_frontend *lnbp21_attach(struct dvb_frontend *fe, struct i2c_adapter *i2c, u8 override_se… in lnbp21_attach() argument 108 lnbp21->i2c = i2c; in lnbp21_attach()
|
D | stb6000.c | 39 struct i2c_adapter *i2c; member 67 ret = i2c_transfer(priv->i2c, &msg, 1); in stb6000_sleep() 148 ret = i2c_transfer(priv->i2c, &msg, 1); in stb6000_set_params() 166 ret = i2c_transfer(priv->i2c, &msg, 1); in stb6000_set_params() 201 struct i2c_adapter *i2c) in stb6000_attach() argument 227 ret = i2c_transfer(i2c, msg, 2); in stb6000_attach() 239 priv->i2c = i2c; in stb6000_attach()
|
D | isl6421.c | 42 struct i2c_adapter *i2c; member 71 return (i2c_transfer(isl6421->i2c, &msg, 1) == 1) ? 0 : -EIO; in isl6421_set_voltage() 89 return (i2c_transfer(isl6421->i2c, &msg, 1) == 1) ? 0 : -EIO; in isl6421_enable_high_lnb_voltage() 102 struct dvb_frontend *isl6421_attach(struct dvb_frontend *fe, struct i2c_adapter *i2c, u8 i2c_addr, in isl6421_attach() argument 111 isl6421->i2c = i2c; in isl6421_attach()
|
D | tda826x.c | 38 struct i2c_adapter *i2c; member 64 if ((ret = i2c_transfer (priv->i2c, &msg, 1)) != 1) { in tda826x_sleep() 112 if ((ret = i2c_transfer (priv->i2c, &msg, 1)) != 1) { in tda826x_set_params() 142 struct dvb_frontend *tda826x_attach(struct dvb_frontend *fe, int addr, struct i2c_adapter *i2c, int… in tda826x_attach() argument 156 ret = i2c_transfer (i2c, msg, 2); in tda826x_attach() 170 priv->i2c = i2c; in tda826x_attach()
|
/drivers/media/video/ivtv/ |
D | ivtv-cards.c | 99 .i2c = &ivtv_i2c_std, 154 .i2c = &ivtv_i2c_std, 186 .i2c = &ivtv_i2c_std, 222 .i2c = &ivtv_i2c_std, 265 .i2c = &ivtv_i2c_std, 307 .i2c = &ivtv_i2c_std, 348 .i2c = &ivtv_i2c_std, 384 .i2c = &ivtv_i2c_std, 427 .i2c = &ivtv_i2c_std, 498 .i2c = &ivtv_i2c_std, [all …]
|
/drivers/media/video/gspca/ |
D | sonixb.c | 632 __u8 i2c[] = in setbrightness() local 636 i2c[4] = value; in setbrightness() 637 PDEBUG(D_CONF, "brightness %d : %d", value, i2c[4]); in setbrightness() 638 if (i2c_w(gspca_dev, i2c) < 0) in setbrightness() 656 __u8 i2c[] = in setsensorgain() local 659 i2c[4] = 255 - gain; in setsensorgain() 660 if (i2c_w(gspca_dev, i2c) < 0) in setsensorgain() 669 __u8 i2c[] = {0xa0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10}; in setsensorgain() local 671 i2c[1] = sensor_data[sd->sensor].sensor_addr; in setsensorgain() 672 i2c[3] = gain >> 2; in setsensorgain() [all …]
|