Home
last modified time | relevance | path

Searched defs:i2c (Results 1 – 25 of 377) sorted by relevance

12345678910>>...16

/drivers/i2c/busses/
Di2c-pxa.c160 #define _IBMR(i2c) ((i2c)->reg_ibmr) argument
161 #define _IDBR(i2c) ((i2c)->reg_idbr) argument
162 #define _ICR(i2c) ((i2c)->reg_icr) argument
163 #define _ISR(i2c) ((i2c)->reg_isr) argument
164 #define _ISAR(i2c) ((i2c)->reg_isar) argument
240 static void i2c_pxa_show_state(struct pxa_i2c *i2c, int lno, const char *fname) in i2c_pxa_show_state()
246 #define show_state(i2c) i2c_pxa_show_state(i2c, __LINE__, __func__) argument
248 static void i2c_pxa_scream_blue_murder(struct pxa_i2c *i2c, const char *why) in i2c_pxa_scream_blue_murder()
266 #define show_state(i2c) do { } while (0) argument
269 #define i2c_pxa_scream_blue_murder(i2c, why) do { } while (0) argument
[all …]
Di2c-xiic.c171 #define xiic_tx_space(i2c) ((i2c)->tx_msg->len - (i2c)->tx_pos) argument
172 #define xiic_rx_space(i2c) ((i2c)->rx_msg->len - (i2c)->rx_pos) argument
177 static inline void xiic_setreg8(struct xiic_i2c *i2c, int reg, u8 value) in xiic_setreg8()
182 static inline u8 xiic_getreg8(struct xiic_i2c *i2c, int reg) in xiic_getreg8()
187 static inline void xiic_setreg16(struct xiic_i2c *i2c, int reg, u16 value) in xiic_setreg16()
192 static inline void xiic_setreg32(struct xiic_i2c *i2c, int reg, int value) in xiic_setreg32()
197 static inline int xiic_getreg32(struct xiic_i2c *i2c, int reg) in xiic_getreg32()
202 static inline void xiic_irq_dis(struct xiic_i2c *i2c, u32 mask) in xiic_irq_dis()
208 static inline void xiic_irq_en(struct xiic_i2c *i2c, u32 mask) in xiic_irq_en()
214 static inline void xiic_irq_clr(struct xiic_i2c *i2c, u32 mask) in xiic_irq_clr()
[all …]
Di2c-s3c2410.c180 static inline void s3c24xx_i2c_master_complete(struct s3c24xx_i2c *i2c, int ret) in s3c24xx_i2c_master_complete()
194 static inline void s3c24xx_i2c_disable_ack(struct s3c24xx_i2c *i2c) in s3c24xx_i2c_disable_ack()
202 static inline void s3c24xx_i2c_enable_ack(struct s3c24xx_i2c *i2c) in s3c24xx_i2c_enable_ack()
212 static inline void s3c24xx_i2c_disable_irq(struct s3c24xx_i2c *i2c) in s3c24xx_i2c_disable_irq()
220 static inline void s3c24xx_i2c_enable_irq(struct s3c24xx_i2c *i2c) in s3c24xx_i2c_enable_irq()
234 static void s3c24xx_i2c_message_start(struct s3c24xx_i2c *i2c, in s3c24xx_i2c_message_start()
274 static inline void s3c24xx_i2c_stop(struct s3c24xx_i2c *i2c, int ret) in s3c24xx_i2c_stop()
337 static inline int is_lastmsg(struct s3c24xx_i2c *i2c) in is_lastmsg()
347 static inline int is_msglast(struct s3c24xx_i2c *i2c) in is_msglast()
363 static inline int is_msgend(struct s3c24xx_i2c *i2c) in is_msgend()
[all …]
Di2c-ocores.c79 static void oc_setreg_8(struct ocores_i2c *i2c, int reg, u8 value) in oc_setreg_8()
84 static void oc_setreg_16(struct ocores_i2c *i2c, int reg, u8 value) in oc_setreg_16()
89 static void oc_setreg_32(struct ocores_i2c *i2c, int reg, u8 value) in oc_setreg_32()
94 static inline u8 oc_getreg_8(struct ocores_i2c *i2c, int reg) in oc_getreg_8()
99 static inline u8 oc_getreg_16(struct ocores_i2c *i2c, int reg) in oc_getreg_16()
104 static inline u8 oc_getreg_32(struct ocores_i2c *i2c, int reg) in oc_getreg_32()
109 static inline void oc_setreg(struct ocores_i2c *i2c, int reg, u8 value) in oc_setreg()
114 static inline u8 oc_getreg(struct ocores_i2c *i2c, int reg) in oc_getreg()
119 static void ocores_process(struct ocores_i2c *i2c) in ocores_process()
191 struct ocores_i2c *i2c = dev_id; in ocores_isr() local
[all …]
Di2c-pca-platform.c45 struct i2c_pca_pf_data *i2c = pd; in i2c_pca_pf_readbyte8() local
51 struct i2c_pca_pf_data *i2c = pd; in i2c_pca_pf_readbyte16() local
57 struct i2c_pca_pf_data *i2c = pd; in i2c_pca_pf_readbyte32() local
63 struct i2c_pca_pf_data *i2c = pd; in i2c_pca_pf_writebyte8() local
69 struct i2c_pca_pf_data *i2c = pd; in i2c_pca_pf_writebyte16() local
75 struct i2c_pca_pf_data *i2c = pd; in i2c_pca_pf_writebyte32() local
82 struct i2c_pca_pf_data *i2c = pd; in i2c_pca_pf_waitforcompletion() local
107 struct i2c_pca_pf_data *i2c = pd; in i2c_pca_pf_dummyreset() local
114 struct i2c_pca_pf_data *i2c = pd; in i2c_pca_pf_resetchip() local
123 struct i2c_pca_pf_data *i2c = dev_id; in i2c_pca_pf_handler() local
[all …]
Di2c-octeon.c85 static void octeon_i2c_write_sw(struct octeon_i2c *i2c, in octeon_i2c_write_sw()
106 static u8 octeon_i2c_read_sw(struct octeon_i2c *i2c, u64 eop_reg) in octeon_i2c_read_sw()
123 static void octeon_i2c_write_int(struct octeon_i2c *i2c, u64 data) in octeon_i2c_write_int()
136 static void octeon_i2c_int_enable(struct octeon_i2c *i2c) in octeon_i2c_int_enable()
145 static void octeon_i2c_int_disable(struct octeon_i2c *i2c) in octeon_i2c_int_disable()
158 static void octeon_i2c_unblock(struct octeon_i2c *i2c) in octeon_i2c_unblock()
183 struct octeon_i2c *i2c = dev_id; in octeon_i2c_isr() local
192 static int octeon_i2c_test_iflg(struct octeon_i2c *i2c) in octeon_i2c_test_iflg()
203 static int octeon_i2c_wait(struct octeon_i2c *i2c) in octeon_i2c_wait()
232 static int octeon_i2c_start(struct octeon_i2c *i2c) in octeon_i2c_start()
[all …]
Di2c-nuc900.c97 static inline void nuc900_i2c_master_complete(struct nuc900_i2c *i2c, int ret) in nuc900_i2c_master_complete()
113 static inline void nuc900_i2c_disable_irq(struct nuc900_i2c *i2c) in nuc900_i2c_disable_irq()
121 static inline void nuc900_i2c_enable_irq(struct nuc900_i2c *i2c) in nuc900_i2c_enable_irq()
135 static void nuc900_i2c_message_start(struct nuc900_i2c *i2c, in nuc900_i2c_message_start()
146 static inline void nuc900_i2c_stop(struct nuc900_i2c *i2c, int ret) in nuc900_i2c_stop()
168 static inline int is_lastmsg(struct nuc900_i2c *i2c) in is_lastmsg()
178 static inline int is_msglast(struct nuc900_i2c *i2c) in is_msglast()
188 static inline int is_msgend(struct nuc900_i2c *i2c) in is_msgend()
198 static void i2c_nuc900_irq_nextbyte(struct nuc900_i2c *i2c, in i2c_nuc900_irq_nextbyte()
358 struct nuc900_i2c *i2c = dev_id; in nuc900_i2c_irq() local
[all …]
Di2c-mpc.c83 static inline void writeccr(struct mpc_i2c *i2c, u32 x) in writeccr()
90 struct mpc_i2c *i2c = dev_id; in mpc_i2c_isr() local
105 static void mpc_i2c_fixup(struct mpc_i2c *i2c) in mpc_i2c_fixup()
122 static int i2c_wait(struct mpc_i2c *i2c, unsigned timeout, int writing) in i2c_wait()
234 struct mpc_i2c *i2c, in mpc_i2c_setup_52xx()
256 struct mpc_i2c *i2c, in mpc_i2c_setup_52xx()
264 struct mpc_i2c *i2c, in mpc_i2c_setup_512x()
292 struct mpc_i2c *i2c, in mpc_i2c_setup_512x()
387 struct mpc_i2c *i2c, in mpc_i2c_setup_8xxx()
412 struct mpc_i2c *i2c, in mpc_i2c_setup_8xxx()
[all …]
Di2c-mxs.c127 static void mxs_i2c_reset(struct mxs_i2c_dev *i2c) in mxs_i2c_reset()
145 static void mxs_i2c_dma_finish(struct mxs_i2c_dev *i2c) in mxs_i2c_dma_finish()
157 struct mxs_i2c_dev *i2c = param; in mxs_i2c_dma_irq_callback() local
167 struct mxs_i2c_dev *i2c = i2c_get_adapdata(adap); in mxs_i2c_dma_setup_xfer() local
291 static int mxs_i2c_pio_wait_dmareq(struct mxs_i2c_dev *i2c) in mxs_i2c_pio_wait_dmareq()
305 static int mxs_i2c_pio_wait_cplt(struct mxs_i2c_dev *i2c, int last) in mxs_i2c_pio_wait_cplt()
341 static int mxs_i2c_pio_check_error_state(struct mxs_i2c_dev *i2c) in mxs_i2c_pio_check_error_state()
358 static void mxs_i2c_pio_trigger_cmd(struct mxs_i2c_dev *i2c, u32 cmd) in mxs_i2c_pio_trigger_cmd()
373 struct mxs_i2c_dev *i2c = i2c_get_adapdata(adap); in mxs_i2c_pio_setup_xfer() local
478 struct mxs_i2c_dev *i2c = i2c_get_adapdata(adap); in mxs_i2c_xfer_msg() local
[all …]
Di2c-versatile.c35 struct i2c_versatile *i2c = data; in i2c_versatile_setsda() local
42 struct i2c_versatile *i2c = data; in i2c_versatile_setscl() local
49 struct i2c_versatile *i2c = data; in i2c_versatile_getsda() local
55 struct i2c_versatile *i2c = data; in i2c_versatile_getscl() local
70 struct i2c_versatile *i2c; in i2c_versatile_probe() local
126 struct i2c_versatile *i2c = platform_get_drvdata(dev); in i2c_versatile_remove() local
/drivers/mfd/
Dmax8998.c55 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()
191 static int max8998_i2c_remove(struct i2c_client *i2c) in max8998_i2c_remove()
212 struct i2c_client *i2c = container_of(dev, struct i2c_client, dev); in max8998_suspend() local
222 struct i2c_client *i2c = container_of(dev, struct i2c_client, dev); in max8998_resume() local
282 struct i2c_client *i2c = container_of(dev, struct i2c_client, dev); in max8998_freeze() local
[all …]
Dmax8997.c59 int max8997_read_reg(struct i2c_client *i2c, u8 reg, u8 *dest) in max8997_read_reg()
76 int max8997_bulk_read(struct i2c_client *i2c, u8 reg, int count, u8 *buf) in max8997_bulk_read()
91 int max8997_write_reg(struct i2c_client *i2c, u8 reg, u8 value) in max8997_write_reg()
103 int max8997_bulk_write(struct i2c_client *i2c, u8 reg, int count, u8 *buf) in max8997_bulk_write()
118 int max8997_update_reg(struct i2c_client *i2c, u8 reg, u8 val, u8 mask) in max8997_update_reg()
174 static inline int max8997_i2c_get_driver_data(struct i2c_client *i2c, in max8997_i2c_get_driver_data()
187 static int max8997_i2c_probe(struct i2c_client *i2c, in max8997_i2c_probe()
258 static int max8997_i2c_remove(struct i2c_client *i2c) in max8997_i2c_remove()
433 struct i2c_client *i2c = container_of(dev, struct i2c_client, dev); in max8997_freeze() local
455 struct i2c_client *i2c = container_of(dev, struct i2c_client, dev); in max8997_restore() local
[all …]
D88pm860x-i2c.c17 int pm860x_reg_read(struct i2c_client *i2c, int reg) in pm860x_reg_read()
33 int pm860x_reg_write(struct i2c_client *i2c, int reg, in pm860x_reg_write()
46 int pm860x_bulk_read(struct i2c_client *i2c, int reg, in pm860x_bulk_read()
59 int pm860x_bulk_write(struct i2c_client *i2c, int reg, in pm860x_bulk_write()
72 int pm860x_set_bits(struct i2c_client *i2c, int reg, in pm860x_set_bits()
85 static int read_device(struct i2c_client *i2c, int reg, in read_device()
121 static int write_device(struct i2c_client *i2c, int reg, in write_device()
142 int pm860x_page_reg_read(struct i2c_client *i2c, int reg) in pm860x_page_reg_read()
162 int pm860x_page_reg_write(struct i2c_client *i2c, int reg, in pm860x_page_reg_write()
180 int pm860x_page_bulk_read(struct i2c_client *i2c, int reg, in pm860x_page_bulk_read()
[all …]
Dstmpe-i2c.c21 struct i2c_client *i2c = stmpe->client; in i2c_reg_read() local
28 struct i2c_client *i2c = stmpe->client; in i2c_reg_write() local
35 struct i2c_client *i2c = stmpe->client; in i2c_block_read() local
43 struct i2c_client *i2c = stmpe->client; in i2c_block_write() local
56 stmpe_i2c_probe(struct i2c_client *i2c, const struct i2c_device_id *id) in stmpe_i2c_probe()
66 static int stmpe_i2c_remove(struct i2c_client *i2c) in stmpe_i2c_remove()
Dmax8925-i2c.c21 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()
Dtps65912-i2c.c28 struct i2c_client *i2c = tps65912->control_data; in tps65912_i2c_read() local
55 struct i2c_client *i2c = tps65912->control_data; in tps65912_i2c_write() local
75 static int tps65912_i2c_probe(struct i2c_client *i2c, in tps65912_i2c_probe()
93 static int tps65912_i2c_remove(struct i2c_client *i2c) in tps65912_i2c_remove()
Dtps6507x.c39 struct i2c_client *i2c = tps6507x->i2c_client; in tps6507x_i2c_read_device() local
67 struct i2c_client *i2c = tps6507x->i2c_client; in tps6507x_i2c_write_device() local
86 static int tps6507x_i2c_probe(struct i2c_client *i2c, in tps6507x_i2c_probe()
106 static int tps6507x_i2c_remove(struct i2c_client *i2c) in tps6507x_i2c_remove()
Dwm831x-i2c.c27 static int wm831x_i2c_probe(struct i2c_client *i2c, in wm831x_i2c_probe()
51 static int wm831x_i2c_remove(struct i2c_client *i2c) in wm831x_i2c_remove()
67 static void wm831x_i2c_shutdown(struct i2c_client *i2c) in wm831x_i2c_shutdown()
/drivers/gpu/drm/mgag200/
Dmgag200_i2c.c62 struct mga_i2c_chan *i2c = data; in mga_gpio_setsda() local
69 struct mga_i2c_chan *i2c = data; in mga_gpio_setscl() local
76 struct mga_i2c_chan *i2c = data; in mga_gpio_getsda() local
83 struct mga_i2c_chan *i2c = data; in mga_gpio_getscl() local
91 struct mga_i2c_chan *i2c; in mgag200_i2c_create() local
149 void mgag200_i2c_destroy(struct mga_i2c_chan *i2c) in mgag200_i2c_destroy()
/drivers/media/pci/cx23885/
Dnetup-init.c29 static void i2c_av_write(struct i2c_adapter *i2c, u16 reg, u8 val) in i2c_av_write()
50 static void i2c_av_write4(struct i2c_adapter *i2c, u16 reg, u32 val) in i2c_av_write4()
74 static u8 i2c_av_read(struct i2c_adapter *i2c, u16 reg) in i2c_av_read()
104 static void i2c_av_and_or(struct i2c_adapter *i2c, u16 reg, unsigned and_mask, in i2c_av_and_or()
113 struct i2c_adapter *i2c = &i2c_bus->i2c_adap; in netup_initialize() local
/drivers/gpu/drm/nouveau/core/subdev/i2c/
Dbase.c101 struct nouveau_i2c *i2c = (void *)engine; in nouveau_i2c_port_create_() local
153 nouveau_i2c_find(struct nouveau_i2c *i2c, u8 index) in nouveau_i2c_find()
161 u16 i2c = dcb_i2c_table(bios, &ver, &hdr, &cnt, &len); in nouveau_i2c_find() local
182 nouveau_i2c_find_type(struct nouveau_i2c *i2c, u16 type) in nouveau_i2c_find_type()
195 nouveau_i2c_identify(struct nouveau_i2c *i2c, int index, const char *what, in nouveau_i2c_identify()
224 struct nouveau_i2c *i2c = (void *)object; in _nouveau_i2c_fini() local
246 struct nouveau_i2c *i2c = (void *)object; in _nouveau_i2c_init() local
271 struct nouveau_i2c *i2c = (void *)object; in _nouveau_i2c_dtor() local
294 struct nouveau_i2c *i2c; in nouveau_i2c_create_() local
/drivers/gpu/drm/radeon/
Dradeon_i2c.c93 struct radeon_i2c_chan *i2c = i2c_get_adapdata(i2c_adap); in pre_xfer() local
161 struct radeon_i2c_chan *i2c = i2c_get_adapdata(i2c_adap); in post_xfer() local
178 struct radeon_i2c_chan *i2c = i2c_priv; in get_clock() local
193 struct radeon_i2c_chan *i2c = i2c_priv; in get_data() local
207 struct radeon_i2c_chan *i2c = i2c_priv; in set_clock() local
220 struct radeon_i2c_chan *i2c = i2c_priv; in set_data() local
326 struct radeon_i2c_chan *i2c = i2c_get_adapdata(i2c_adap); in r100_hw_i2c_xfer() local
579 struct radeon_i2c_chan *i2c = i2c_get_adapdata(i2c_adap); in r500_hw_i2c_xfer() local
812 struct radeon_i2c_chan *i2c = i2c_get_adapdata(i2c_adap); in radeon_hw_i2c_xfer() local
906 struct radeon_i2c_chan *i2c; in radeon_i2c_create() local
[all …]
/drivers/base/regmap/
Dregmap-i2c.c21 struct i2c_client *i2c = to_i2c_client(dev); in regmap_i2c_write() local
38 struct i2c_client *i2c = to_i2c_client(dev); in regmap_i2c_gather_write() local
72 struct i2c_client *i2c = to_i2c_client(dev); in regmap_i2c_read() local
110 struct regmap *regmap_init_i2c(struct i2c_client *i2c, in regmap_init_i2c()
127 struct regmap *devm_regmap_init_i2c(struct i2c_client *i2c, in devm_regmap_init_i2c()
/drivers/media/common/b2c2/
Dflexcop-fe-tuner.c159 struct i2c_adapter *i2c) in skystar2_rev23_attach()
272 struct i2c_adapter *i2c) in skystar2_rev26_attach()
306 struct i2c_adapter *i2c) in skystar2_rev27_attach()
372 struct i2c_adapter *i2c) in skystar2_rev28_attach()
433 struct i2c_adapter *i2c) in airstar_dvbt_attach()
461 struct i2c_adapter *i2c) in airstar_atsc1_attach()
477 struct i2c_adapter *i2c) in airstar_atsc2_attach()
500 struct i2c_adapter *i2c) in airstar_atsc3_attach()
594 struct i2c_adapter *i2c) in cablestar2_attach()
/drivers/media/dvb-frontends/
Dlnbp21.c43 struct i2c_adapter *i2c; member
130 struct i2c_adapter *i2c, u8 override_set, in lnbx2x_attach()
169 struct i2c_adapter *i2c, u8 override_set, in lnbh24_attach()
178 struct i2c_adapter *i2c, u8 override_set, in lnbp21_attach()

12345678910>>...16