/drivers/i2c/busses/ |
H A D | i2c-nuc900.c | 2 * linux/drivers/i2c/busses/i2c-nuc900.c 18 #include <linux/i2c.h> 32 #include <mach/i2c.h> 34 /* nuc900 i2c registers offset */ 43 /* nuc900 i2c CSR register bits */ 52 /* nuc900 i2c CMDR register bits */ 60 /* i2c controller state */ 70 /* i2c controller private data */ 97 static inline void nuc900_i2c_master_complete(struct nuc900_i2c *i2c, in argument 113 nuc900_i2c_disable_irq(struct nuc900_i2c *i2c) argument 121 nuc900_i2c_enable_irq(struct nuc900_i2c *i2c) argument 135 nuc900_i2c_message_start(struct nuc900_i2c *i2c, struct i2c_msg *msg) argument 146 nuc900_i2c_stop(struct nuc900_i2c *i2c, int ret) argument 168 is_lastmsg(struct nuc900_i2c *i2c) argument 178 is_msglast(struct nuc900_i2c *i2c) argument 188 is_msgend(struct nuc900_i2c *i2c) argument 198 i2c_nuc900_irq_nextbyte(struct nuc900_i2c *i2c, unsigned long iicstat) argument 358 struct nuc900_i2c *i2c = dev_id; local 391 nuc900_i2c_set_master(struct nuc900_i2c *i2c) argument 412 nuc900_i2c_doxfer(struct nuc900_i2c *i2c, struct i2c_msg *msgs, int num) argument 481 struct nuc900_i2c *i2c = (struct nuc900_i2c *)adap->algo_data; local 522 struct nuc900_i2c *i2c; local 667 struct nuc900_i2c *i2c = platform_get_drvdata(pdev); local [all...] |
H A D | i2c-pca-platform.c | 20 #include <linux/i2c.h> 23 #include <linux/i2c-algo-pca.h> 24 #include <linux/i2c-pca-platform.h> 45 struct i2c_pca_pf_data *i2c = pd; local 46 return ioread8(i2c->reg_base + reg); 51 struct i2c_pca_pf_data *i2c = pd; local 52 return ioread8(i2c->reg_base + reg * 2); 57 struct i2c_pca_pf_data *i2c = pd; local 58 return ioread8(i2c->reg_base + reg * 4); 63 struct i2c_pca_pf_data *i2c local 69 struct i2c_pca_pf_data *i2c = pd; local 75 struct i2c_pca_pf_data *i2c = pd; local 82 struct i2c_pca_pf_data *i2c = pd; local 107 struct i2c_pca_pf_data *i2c = pd; local 114 struct i2c_pca_pf_data *i2c = pd; local 123 struct i2c_pca_pf_data *i2c = dev_id; local 136 struct i2c_pca_pf_data *i2c; local 262 struct i2c_pca_pf_data *i2c = platform_get_drvdata(pdev); local [all...] |
H A D | i2c-xiic.c | 2 * i2c-xiic.c 37 #include <linux/i2c.h> 40 #include <linux/i2c-xiic.h> 44 #define DRIVER_NAME "xiic-i2c" 170 #define xiic_tx_space(i2c) ((i2c)->tx_msg->len - (i2c)->tx_pos) 171 #define xiic_rx_space(i2c) ((i2c)->rx_msg->len - (i2c) 176 xiic_setreg8(struct xiic_i2c *i2c, int reg, u8 value) argument 181 xiic_getreg8(struct xiic_i2c *i2c, int reg) argument 186 xiic_setreg16(struct xiic_i2c *i2c, int reg, u16 value) argument 191 xiic_setreg32(struct xiic_i2c *i2c, int reg, int value) argument 196 xiic_getreg32(struct xiic_i2c *i2c, int reg) argument 201 xiic_irq_dis(struct xiic_i2c *i2c, u32 mask) argument 207 xiic_irq_en(struct xiic_i2c *i2c, u32 mask) argument 213 xiic_irq_clr(struct xiic_i2c *i2c, u32 mask) argument 219 xiic_irq_clr_en(struct xiic_i2c *i2c, u32 mask) argument 225 xiic_clear_rx_fifo(struct xiic_i2c *i2c) argument 234 xiic_reinit(struct xiic_i2c *i2c) argument 256 xiic_deinit(struct xiic_i2c *i2c) argument 267 xiic_read_rx(struct xiic_i2c *i2c) argument 292 xiic_tx_fifo_space(struct xiic_i2c *i2c) argument 298 xiic_fill_tx_fifo(struct xiic_i2c *i2c) argument 321 xiic_wakeup(struct xiic_i2c *i2c, int code) argument 330 xiic_process(struct xiic_i2c *i2c) argument 475 xiic_bus_busy(struct xiic_i2c *i2c) argument 482 xiic_busy(struct xiic_i2c *i2c) argument 503 xiic_start_recv(struct xiic_i2c *i2c) argument 540 xiic_start_send(struct xiic_i2c *i2c) argument 571 struct xiic_i2c *i2c = dev_id; local 587 __xiic_start_xfer(struct xiic_i2c *i2c) argument 631 xiic_start_xfer(struct xiic_i2c *i2c) argument 647 struct xiic_i2c *i2c = i2c_get_adapdata(adap); local 693 struct xiic_i2c *i2c; local 775 struct xiic_i2c *i2c = platform_get_drvdata(pdev); local [all...] |
H A D | Makefile | 2 # Makefile for the i2c bus drivers. 6 obj-$(CONFIG_I2C_SCMI) += i2c-scmi.o 9 obj-$(CONFIG_I2C_ALI1535) += i2c-ali1535.o 10 obj-$(CONFIG_I2C_ALI1563) += i2c-ali1563.o 11 obj-$(CONFIG_I2C_ALI15X3) += i2c-ali15x3.o 12 obj-$(CONFIG_I2C_AMD756) += i2c-amd756.o 13 obj-$(CONFIG_I2C_AMD756_S4882) += i2c-amd756-s4882.o 14 obj-$(CONFIG_I2C_AMD8111) += i2c-amd8111.o 15 obj-$(CONFIG_I2C_I801) += i2c-i801.o 16 obj-$(CONFIG_I2C_ISCH) += i2c [all...] |
H A D | i2c-octeon.c | 7 * This is a driver for the i2c adapter in Cavium Networks' OCTEON processors. 21 #include <linux/i2c.h> 28 #define DRV_NAME "i2c-octeon" 78 * @i2c: The struct octeon_i2c. 84 static void octeon_i2c_write_sw(struct octeon_i2c *i2c, argument 90 __raw_writeq(SW_TWSI_V | eop_reg | data, i2c->twsi_base + SW_TWSI); 92 tmp = __raw_readq(i2c->twsi_base + SW_TWSI); 98 * @i2c: The struct octeon_i2c. 105 static u8 octeon_i2c_read_sw(struct octeon_i2c *i2c, u64 eop_reg) argument 109 __raw_writeq(SW_TWSI_V | eop_reg | SW_TWSI_R, i2c 122 octeon_i2c_write_int(struct octeon_i2c *i2c, u64 data) argument 137 octeon_i2c_int_enable(struct octeon_i2c *i2c) argument 146 octeon_i2c_int_disable(struct octeon_i2c *i2c) argument 159 octeon_i2c_unblock(struct octeon_i2c *i2c) argument 184 struct octeon_i2c *i2c = dev_id; local 193 octeon_i2c_test_iflg(struct octeon_i2c *i2c) argument 204 octeon_i2c_wait(struct octeon_i2c *i2c) argument 233 octeon_i2c_start(struct octeon_i2c *i2c) argument 274 octeon_i2c_stop(struct octeon_i2c *i2c) argument 301 octeon_i2c_write(struct octeon_i2c *i2c, int target, const u8 *data, int length) argument 349 octeon_i2c_read(struct octeon_i2c *i2c, int target, u8 *data, int length) argument 410 struct octeon_i2c *i2c = i2c_get_adapdata(adap); local 450 octeon_i2c_setclock(struct octeon_i2c *i2c) argument 493 octeon_i2c_initlowlevel(struct octeon_i2c *i2c) argument 517 struct octeon_i2c *i2c; local 612 struct octeon_i2c *i2c = platform_get_drvdata(pdev); local [all...] |
H A D | i2c-ocores.c | 2 * i2c-ocores.c: I2C bus driver for OpenCores I2C controller 3 * (http://www.opencores.org/projects.cgi/web/i2c/overview). 16 * - compatible : "opencores,i2c-ocores" 25 * compatible = "opencores,i2c-ocores"; 52 #include <linux/i2c.h> 55 #include <linux/i2c-ocores.h> 102 static inline void oc_setreg(struct ocores_i2c *i2c, int reg, u8 value) argument 104 iowrite8(value, i2c->base + reg * i2c->regstep); 107 static inline u8 oc_getreg(struct ocores_i2c *i2c, in argument 112 ocores_process(struct ocores_i2c *i2c) argument 184 struct ocores_i2c *i2c = dev_id; local 193 struct ocores_i2c *i2c = i2c_get_adapdata(adap); local 213 ocores_init(struct ocores_i2c *i2c) argument 249 ocores_i2c_of_probe(struct platform_device* pdev, struct ocores_i2c* i2c) argument 277 struct ocores_i2c *i2c; local 353 struct ocores_i2c *i2c = platform_get_drvdata(pdev); local 369 struct ocores_i2c *i2c = platform_get_drvdata(pdev); local 380 struct ocores_i2c *i2c = platform_get_drvdata(pdev); local [all...] |
H A D | i2c-pxa.c | 24 #include <linux/i2c.h> 31 #include <linux/i2c-pxa.h> 40 #include <linux/i2c/pxa-i2c.h> 93 { "pxa2xx-i2c", REGS_PXA2XX }, 95 { "ce4100-i2c", REGS_CE4100 }, 167 #define _IBMR(i2c) ((i2c)->reg_ibmr) 168 #define _IDBR(i2c) ((i2c) 247 i2c_pxa_show_state(struct pxa_i2c *i2c, int lno, const char *fname) argument 255 i2c_pxa_scream_blue_murder(struct pxa_i2c *i2c, const char *why) argument 283 i2c_pxa_is_slavemode(struct pxa_i2c *i2c) argument 288 i2c_pxa_abort(struct pxa_i2c *i2c) argument 315 i2c_pxa_wait_bus_not_busy(struct pxa_i2c *i2c) argument 333 i2c_pxa_wait_master(struct pxa_i2c *i2c) argument 367 i2c_pxa_set_master(struct pxa_i2c *i2c) argument 385 i2c_pxa_wait_slave(struct pxa_i2c *i2c) argument 418 i2c_pxa_set_slave(struct pxa_i2c *i2c, int errcode) argument 452 i2c_pxa_reset(struct pxa_i2c *i2c) argument 488 i2c_pxa_slave_txempty(struct pxa_i2c *i2c, u32 isr) argument 503 i2c_pxa_slave_rxfull(struct pxa_i2c *i2c, u32 isr) argument 513 i2c_pxa_slave_start(struct pxa_i2c *i2c, u32 isr) argument 550 i2c_pxa_slave_stop(struct pxa_i2c *i2c) argument 569 i2c_pxa_slave_txempty(struct pxa_i2c *i2c, u32 isr) argument 579 i2c_pxa_slave_rxfull(struct pxa_i2c *i2c, u32 isr) argument 584 i2c_pxa_slave_start(struct pxa_i2c *i2c, u32 isr) argument 613 i2c_pxa_slave_stop(struct pxa_i2c *i2c) argument 634 i2c_pxa_start_message(struct pxa_i2c *i2c) argument 650 i2c_pxa_stop_message(struct pxa_i2c *i2c) argument 662 i2c_pxa_pio_set_master(struct pxa_i2c *i2c) argument 690 i2c_pxa_do_pio_xfer(struct pxa_i2c *i2c, struct i2c_msg *msg, int num) argument 730 i2c_pxa_do_xfer(struct pxa_i2c *i2c, struct i2c_msg *msg, int num) argument 788 struct pxa_i2c *i2c = adap->algo_data; local 817 i2c_pxa_master_complete(struct pxa_i2c *i2c, int ret) argument 829 i2c_pxa_irq_txempty(struct pxa_i2c *i2c, u32 isr) argument 937 i2c_pxa_irq_rxfull(struct pxa_i2c *i2c, u32 isr) argument 968 struct pxa_i2c *i2c = dev_id; local 1015 struct pxa_i2c *i2c = adap->algo_data; local 1057 i2c_pxa_probe_dt(struct platform_device *pdev, struct pxa_i2c *i2c, enum pxa_i2c_types *i2c_types) argument 1081 i2c_pxa_probe_pdata(struct platform_device *pdev, struct pxa_i2c *i2c, enum pxa_i2c_types *i2c_types) argument 1100 struct pxa_i2c *i2c; local 1232 struct pxa_i2c *i2c = platform_get_drvdata(dev); local 1254 struct pxa_i2c *i2c = platform_get_drvdata(pdev); local 1264 struct pxa_i2c *i2c = platform_get_drvdata(pdev); local [all...] |
H A D | i2c-s3c2410.c | 1 /* linux/drivers/i2c/busses/i2c-s3c2410.c 26 #include <linux/i2c.h> 47 /* i2c controller state */ 98 static inline int s3c24xx_i2c_is2440(struct s3c24xx_i2c *i2c) argument 100 struct platform_device *pdev = to_platform_device(i2c->dev); 104 if (i2c->dev->of_node) 105 return of_device_is_compatible(i2c->dev->of_node, 106 "samsung,s3c2440-i2c"); 119 static inline void s3c24xx_i2c_master_complete(struct s3c24xx_i2c *i2c, in argument 133 s3c24xx_i2c_disable_ack(struct s3c24xx_i2c *i2c) argument 141 s3c24xx_i2c_enable_ack(struct s3c24xx_i2c *i2c) argument 151 s3c24xx_i2c_disable_irq(struct s3c24xx_i2c *i2c) argument 159 s3c24xx_i2c_enable_irq(struct s3c24xx_i2c *i2c) argument 173 s3c24xx_i2c_message_start(struct s3c24xx_i2c *i2c, struct i2c_msg *msg) argument 213 s3c24xx_i2c_stop(struct s3c24xx_i2c *i2c, int ret) argument 237 is_lastmsg(struct s3c24xx_i2c *i2c) argument 247 is_msglast(struct s3c24xx_i2c *i2c) argument 257 is_msgend(struct s3c24xx_i2c *i2c) argument 267 i2c_s3c_irq_nextbyte(struct s3c24xx_i2c *i2c, unsigned long iicstat) argument 434 struct s3c24xx_i2c *i2c = dev_id; local 469 s3c24xx_i2c_set_master(struct s3c24xx_i2c *i2c) argument 491 s3c24xx_i2c_doxfer(struct s3c24xx_i2c *i2c, struct i2c_msg *msgs, int num) argument 564 struct s3c24xx_i2c *i2c = (struct s3c24xx_i2c *)adap->algo_data; local 641 s3c24xx_i2c_clockrate(struct s3c24xx_i2c *i2c, unsigned int *got) argument 706 struct s3c24xx_i2c *i2c = freq_to_i2c(nb); local 734 s3c24xx_i2c_register_cpufreq(struct s3c24xx_i2c *i2c) argument 742 s3c24xx_i2c_deregister_cpufreq(struct s3c24xx_i2c *i2c) argument 749 s3c24xx_i2c_register_cpufreq(struct s3c24xx_i2c *i2c) argument 754 s3c24xx_i2c_deregister_cpufreq(struct s3c24xx_i2c *i2c) argument 760 s3c24xx_i2c_parse_dt_gpio(struct s3c24xx_i2c *i2c) argument 785 s3c24xx_i2c_dt_gpio_free(struct s3c24xx_i2c *i2c) argument 792 s3c24xx_i2c_parse_dt_gpio(struct s3c24xx_i2c *i2c) argument 797 s3c24xx_i2c_dt_gpio_free(struct s3c24xx_i2c *i2c) argument 807 s3c24xx_i2c_init(struct s3c24xx_i2c *i2c) argument 856 s3c24xx_i2c_parse_dt(struct device_node *np, struct s3c24xx_i2c *i2c) argument 871 s3c24xx_i2c_parse_dt(struct device_node *np, struct s3c24xx_i2c *i2c) argument 884 struct s3c24xx_i2c *i2c; local 1055 struct s3c24xx_i2c *i2c = platform_get_drvdata(pdev); local 1081 struct s3c24xx_i2c *i2c = platform_get_drvdata(pdev); local 1091 struct s3c24xx_i2c *i2c = platform_get_drvdata(pdev); local [all...] |
H A D | i2c-versatile.c | 2 * i2c-versatile.c 13 #include <linux/i2c.h> 14 #include <linux/i2c-algo-bit.h> 35 struct i2c_versatile *i2c = data; local 37 writel(SDA, i2c->base + (state ? I2C_CONTROLS : I2C_CONTROLC)); 42 struct i2c_versatile *i2c = data; local 44 writel(SCL, i2c->base + (state ? I2C_CONTROLS : I2C_CONTROLC)); 49 struct i2c_versatile *i2c = data; local 50 return !!(readl(i2c->base + I2C_CONTROL) & SDA); 55 struct i2c_versatile *i2c local 70 struct i2c_versatile *i2c; local 131 struct i2c_versatile *i2c = platform_get_drvdata(dev); local [all...] |
H A D | i2c-mxs.c | 22 #include <linux/i2c.h> 32 #define DRIVER_NAME "mxs-i2c" 104 * @adapter: i2c subsystem adapter node 118 static void mxs_i2c_reset(struct mxs_i2c_dev *i2c) argument 120 mxs_reset_block(i2c->regs); 121 writel(MXS_I2C_IRQ_MASK << 8, i2c->regs + MXS_I2C_CTRL1_SET); 123 i2c->regs + MXS_I2C_QUEUECTRL_SET); 126 static void mxs_i2c_pioq_setup_read(struct mxs_i2c_dev *i2c, u8 addr, int len, argument 131 writel(MXS_CMD_I2C_SELECT, i2c->regs + MXS_I2C_QUEUECMD); 134 writel(data, i2c 140 mxs_i2c_pioq_setup_write(struct mxs_i2c_dev *i2c, u8 addr, u8 *buf, int len, int flags) argument 181 mxs_i2c_wait_for_data(struct mxs_i2c_dev *i2c) argument 195 mxs_i2c_finish_read(struct mxs_i2c_dev *i2c, u8 *buf, int len) argument 219 struct mxs_i2c_dev *i2c = i2c_get_adapdata(adap); local 292 struct mxs_i2c_dev *i2c = dev_id; local 326 struct mxs_i2c_dev *i2c; local 382 struct mxs_i2c_dev *i2c = platform_get_drvdata(pdev); local [all...] |
/drivers/i2c/ |
H A D | Makefile | 2 # Makefile for the i2c core. 5 obj-$(CONFIG_I2C_BOARDINFO) += i2c-boardinfo.o 6 obj-$(CONFIG_I2C) += i2c-core.o 7 obj-$(CONFIG_I2C_SMBUS) += i2c-smbus.o 8 obj-$(CONFIG_I2C_CHARDEV) += i2c-dev.o 9 obj-$(CONFIG_I2C_MUX) += i2c-mux.o
|
/drivers/i2c/algos/ |
H A D | Makefile | 2 # Makefile for the i2c algorithms 5 obj-$(CONFIG_I2C_ALGOBIT) += i2c-algo-bit.o 6 obj-$(CONFIG_I2C_ALGOPCF) += i2c-algo-pcf.o 7 obj-$(CONFIG_I2C_ALGOPCA) += i2c-algo-pca.o
|
/drivers/mfd/ |
H A D | stmpe-i2c.c | 2 * ST Microelectronics MFD: stmpe's i2c client specific driver 12 #include <linux/i2c.h> 21 struct i2c_client *i2c = stmpe->client; local 23 return i2c_smbus_read_byte_data(i2c, reg); 28 struct i2c_client *i2c = stmpe->client; local 30 return i2c_smbus_write_byte_data(i2c, reg, val); 35 struct i2c_client *i2c = stmpe->client; local 37 return i2c_smbus_read_i2c_block_data(i2c, reg, length, values); 43 struct i2c_client *i2c = stmpe->client; local 45 return i2c_smbus_write_i2c_block_data(i2c, re 56 stmpe_i2c_probe(struct i2c_client *i2c, const struct i2c_device_id *id) argument 66 stmpe_i2c_remove(struct i2c_client *i2c) argument [all...] |
H A D | 88pm860x-i2c.c | 14 #include <linux/i2c.h> 20 int pm860x_reg_read(struct i2c_client *i2c, int reg) argument 22 struct pm860x_chip *chip = i2c_get_clientdata(i2c); 23 struct regmap *map = (i2c == chip->client) ? chip->regmap 36 int pm860x_reg_write(struct i2c_client *i2c, int reg, argument 39 struct pm860x_chip *chip = i2c_get_clientdata(i2c); 40 struct regmap *map = (i2c == chip->client) ? chip->regmap 49 int pm860x_bulk_read(struct i2c_client *i2c, int reg, argument 52 struct pm860x_chip *chip = i2c_get_clientdata(i2c); 53 struct regmap *map = (i2c 62 pm860x_bulk_write(struct i2c_client *i2c, int reg, int count, unsigned char *buf) argument 75 pm860x_set_bits(struct i2c_client *i2c, int reg, unsigned char mask, unsigned char data) argument 88 read_device(struct i2c_client *i2c, int reg, int bytes, void *dest) argument 114 write_device(struct i2c_client *i2c, int reg, int bytes, void *src) argument 135 pm860x_page_reg_read(struct i2c_client *i2c, int reg) argument 155 pm860x_page_reg_write(struct i2c_client *i2c, int reg, unsigned char data) argument 173 pm860x_page_bulk_read(struct i2c_client *i2c, int reg, int count, unsigned char *buf) argument 191 pm860x_page_bulk_write(struct i2c_client *i2c, int reg, int count, unsigned char *buf) argument 210 pm860x_page_set_bits(struct i2c_client *i2c, int reg, unsigned char mask, unsigned char data) argument 241 verify_addr(struct i2c_client *i2c) argument [all...] |
H A D | wm831x-i2c.c | 2 * wm831x-i2c.c -- I2C access for Wolfson WM831x PMICs 17 #include <linux/i2c.h> 27 static int wm831x_i2c_probe(struct i2c_client *i2c, argument 33 wm831x = devm_kzalloc(&i2c->dev, sizeof(struct wm831x), GFP_KERNEL); 37 i2c_set_clientdata(i2c, wm831x); 38 wm831x->dev = &i2c->dev; 40 wm831x->regmap = devm_regmap_init_i2c(i2c, &wm831x_regmap_config); 48 return wm831x_device_init(wm831x, id->driver_data, i2c->irq); 51 static int wm831x_i2c_remove(struct i2c_client *i2c) argument 53 struct wm831x *wm831x = i2c_get_clientdata(i2c); 67 wm831x_i2c_shutdown(struct i2c_client *i2c) argument [all...] |
/drivers/media/dvb/frontends/ |
H A D | stb6000.h | 26 #include <linux/i2c.h> 33 * @param addr i2c address of the tuner. 34 * @param i2c i2c adapter to use. 40 struct i2c_adapter *i2c); 44 struct i2c_adapter *i2c) 42 stb6000_attach(struct dvb_frontend *fe, int addr, struct i2c_adapter *i2c) argument
|
H A D | tda826x.h | 26 #include <linux/i2c.h> 33 * @param addr i2c address of the tuner. 34 * @param i2c i2c adapter to use. 40 struct i2c_adapter *i2c, 45 struct i2c_adapter *i2c, 43 tda826x_attach(struct dvb_frontend *fe, int addr, struct i2c_adapter *i2c, int has_loopthrough) argument
|
H A D | tua6100.h | 34 #include <linux/i2c.h> 38 extern struct dvb_frontend *tua6100_attach(struct dvb_frontend *fe, int addr, struct i2c_adapter *i2c); 40 static inline struct dvb_frontend* tua6100_attach(struct dvb_frontend *fe, int addr, struct i2c_adapter *i2c) argument
|
H A D | zl10036.h | 24 #include <linux/i2c.h> 43 const struct zl10036_config *config, struct i2c_adapter *i2c); 46 const struct zl10036_config *config, struct i2c_adapter *i2c) 45 zl10036_attach(struct dvb_frontend *fe, const struct zl10036_config *config, struct i2c_adapter *i2c) argument
|
H A D | ix2505v.h | 23 #include <linux/i2c.h> 54 const struct ix2505v_config *config, struct i2c_adapter *i2c); 57 const struct ix2505v_config *config, struct i2c_adapter *i2c) 56 ix2505v_attach(struct dvb_frontend *fe, const struct ix2505v_config *config, struct i2c_adapter *i2c) argument
|
H A D | stv0367.h | 45 struct i2c_adapter *i2c); 48 struct i2c_adapter *i2c); 52 struct i2c_adapter *i2c) 59 struct i2c_adapter *i2c) 51 stv0367ter_attach(const struct stv0367_config *config, struct i2c_adapter *i2c) argument 58 stv0367cab_attach(const struct stv0367_config *config, struct i2c_adapter *i2c) argument
|
/drivers/media/video/cx23885/ |
H A D | netup-init.c | 28 static void i2c_av_write(struct i2c_adapter *i2c, u16 reg, u8 val) argument 43 ret = i2c_transfer(i2c, &msg, 1); 46 printk(KERN_ERR "%s: i2c write error!\n", __func__); 49 static void i2c_av_write4(struct i2c_adapter *i2c, u16 reg, u32 val) argument 67 ret = i2c_transfer(i2c, &msg, 1); 70 printk(KERN_ERR "%s: i2c write error!\n", __func__); 73 static u8 i2c_av_read(struct i2c_adapter *i2c, u16 reg) argument 87 ret = i2c_transfer(i2c, &msg, 1); 90 printk(KERN_ERR "%s: i2c write error!\n", __func__); 95 ret = i2c_transfer(i2c, 103 i2c_av_and_or(struct i2c_adapter *i2c, u16 reg, unsigned and_mask, u8 or_value) argument 112 struct i2c_adapter *i2c = &i2c_bus->i2c_adap; local [all...] |
/drivers/media/radio/si470x/ |
H A D | Makefile | 6 radio-i2c-si470x-objs := radio-si470x-i2c.o radio-si470x-common.o 9 obj-$(CONFIG_I2C_SI470X) += radio-i2c-si470x.o
|
/drivers/base/regmap/ |
H A D | regmap-i2c.c | 14 #include <linux/i2c.h> 20 struct i2c_client *i2c = to_i2c_client(dev); local 23 ret = i2c_master_send(i2c, data, count); 36 struct i2c_client *i2c = to_i2c_client(dev); local 43 if (!i2c_check_functionality(i2c->adapter, I2C_FUNC_PROTOCOL_MANGLING)) 46 xfer[0].addr = i2c->addr; 51 xfer[1].addr = i2c->addr; 56 ret = i2c_transfer(i2c->adapter, xfer, 2); 69 struct i2c_client *i2c = to_i2c_client(dev); local 73 xfer[0].addr = i2c 107 regmap_init_i2c(struct i2c_client *i2c, const struct regmap_config *config) argument 124 devm_regmap_init_i2c(struct i2c_client *i2c, const struct regmap_config *config) argument [all...] |
/drivers/media/dvb/dvb-usb/ |
H A D | mxl111sf-i2c.h | 2 * mxl111sf-i2c.h - driver for the MaxLinear MXL111SF 24 #include <linux/i2c.h>
|