Home
last modified time | relevance | path

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

12345678910>>...14

/linux-2.6.39/drivers/i2c/busses/
Di2c-pxa.c165 #define _IBMR(i2c) ((i2c)->reg_ibmr) argument
166 #define _IDBR(i2c) ((i2c)->reg_idbr) argument
167 #define _ICR(i2c) ((i2c)->reg_icr) argument
168 #define _ISR(i2c) ((i2c)->reg_isr) argument
169 #define _ISAR(i2c) ((i2c)->reg_isar) argument
245 static void i2c_pxa_show_state(struct pxa_i2c *i2c, int lno, const char *fname) in i2c_pxa_show_state()
251 #define show_state(i2c) i2c_pxa_show_state(i2c, __LINE__, __func__) argument
253 static void i2c_pxa_scream_blue_murder(struct pxa_i2c *i2c, const char *why) in i2c_pxa_scream_blue_murder()
271 #define show_state(i2c) do { } while (0) argument
274 #define i2c_pxa_scream_blue_murder(i2c, why) do { } while (0) argument
[all …]
Di2c-s3c2410.c93 static inline int s3c24xx_i2c_is2440(struct s3c24xx_i2c *i2c) in s3c24xx_i2c_is2440()
108 static inline void s3c24xx_i2c_master_complete(struct s3c24xx_i2c *i2c, int ret) in s3c24xx_i2c_master_complete()
122 static inline void s3c24xx_i2c_disable_ack(struct s3c24xx_i2c *i2c) in s3c24xx_i2c_disable_ack()
130 static inline void s3c24xx_i2c_enable_ack(struct s3c24xx_i2c *i2c) in s3c24xx_i2c_enable_ack()
140 static inline void s3c24xx_i2c_disable_irq(struct s3c24xx_i2c *i2c) in s3c24xx_i2c_disable_irq()
148 static inline void s3c24xx_i2c_enable_irq(struct s3c24xx_i2c *i2c) in s3c24xx_i2c_enable_irq()
162 static void s3c24xx_i2c_message_start(struct s3c24xx_i2c *i2c, in s3c24xx_i2c_message_start()
202 static inline void s3c24xx_i2c_stop(struct s3c24xx_i2c *i2c, int ret) in s3c24xx_i2c_stop()
226 static inline int is_lastmsg(struct s3c24xx_i2c *i2c) in is_lastmsg()
236 static inline int is_msglast(struct s3c24xx_i2c *i2c) in is_msglast()
[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-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.c84 static void octeon_i2c_write_sw(struct octeon_i2c *i2c, in octeon_i2c_write_sw()
105 static u8 octeon_i2c_read_sw(struct octeon_i2c *i2c, u64 eop_reg) in octeon_i2c_read_sw()
122 static void octeon_i2c_write_int(struct octeon_i2c *i2c, u64 data) in octeon_i2c_write_int()
137 static void octeon_i2c_int_enable(struct octeon_i2c *i2c) in octeon_i2c_int_enable()
146 static void octeon_i2c_int_disable(struct octeon_i2c *i2c) in octeon_i2c_int_disable()
159 static void octeon_i2c_unblock(struct octeon_i2c *i2c) in octeon_i2c_unblock()
184 struct octeon_i2c *i2c = dev_id; in octeon_i2c_isr() local
193 static int octeon_i2c_test_iflg(struct octeon_i2c *i2c) in octeon_i2c_test_iflg()
204 static int octeon_i2c_wait(struct octeon_i2c *i2c) in octeon_i2c_wait()
233 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-ocores.c103 static inline void oc_setreg(struct ocores_i2c *i2c, int reg, u8 value) in oc_setreg()
108 static inline u8 oc_getreg(struct ocores_i2c *i2c, int reg) in oc_getreg()
113 static void ocores_process(struct ocores_i2c *i2c) in ocores_process()
185 struct ocores_i2c *i2c = dev_id; in ocores_isr() local
194 struct ocores_i2c *i2c = i2c_get_adapdata(adap); in ocores_xfer() local
214 static void ocores_init(struct ocores_i2c *i2c) in ocores_init()
251 struct ocores_i2c* i2c) in ocores_i2c_of_probe()
273 #define ocores_i2c_of_probe(pdev,i2c) -ENODEV argument
278 struct ocores_i2c *i2c; in ocores_i2c_probe() local
354 struct ocores_i2c *i2c = platform_get_drvdata(pdev); in ocores_i2c_remove() local
[all …]
Di2c-versatile.c34 struct i2c_versatile *i2c = data; in i2c_versatile_setsda() local
41 struct i2c_versatile *i2c = data; in i2c_versatile_setscl() local
48 struct i2c_versatile *i2c = data; in i2c_versatile_getsda() local
54 struct i2c_versatile *i2c = data; in i2c_versatile_getscl() local
69 struct i2c_versatile *i2c; in i2c_versatile_probe() local
128 struct i2c_versatile *i2c = platform_get_drvdata(dev); in i2c_versatile_remove() local
Di2c-mpc.c80 static inline void writeccr(struct mpc_i2c *i2c, u32 x) in writeccr()
87 struct mpc_i2c *i2c = dev_id; in mpc_i2c_isr() local
102 static void mpc_i2c_fixup(struct mpc_i2c *i2c) in mpc_i2c_fixup()
119 static int i2c_wait(struct mpc_i2c *i2c, unsigned timeout, int writing) in i2c_wait()
231 struct mpc_i2c *i2c, in mpc_i2c_setup_52xx()
253 struct mpc_i2c *i2c, in mpc_i2c_setup_52xx()
261 struct mpc_i2c *i2c, in mpc_i2c_setup_512x()
289 struct mpc_i2c *i2c, in mpc_i2c_setup_512x()
384 struct mpc_i2c *i2c, in mpc_i2c_setup_8xxx()
409 struct mpc_i2c *i2c, in mpc_i2c_setup_8xxx()
[all …]
Di2c-mxs.c117 static void mxs_i2c_reset(struct mxs_i2c_dev *i2c) in mxs_i2c_reset()
125 static void mxs_i2c_pioq_setup_read(struct mxs_i2c_dev *i2c, u8 addr, int len, in mxs_i2c_pioq_setup_read()
139 static void mxs_i2c_pioq_setup_write(struct mxs_i2c_dev *i2c, in mxs_i2c_pioq_setup_write()
180 static int mxs_i2c_wait_for_data(struct mxs_i2c_dev *i2c) in mxs_i2c_wait_for_data()
194 static int mxs_i2c_finish_read(struct mxs_i2c_dev *i2c, u8 *buf, int len) in mxs_i2c_finish_read()
218 struct mxs_i2c_dev *i2c = i2c_get_adapdata(adap); in mxs_i2c_xfer_msg() local
287 struct mxs_i2c_dev *i2c = dev_id; in mxs_i2c_isr() local
317 struct mxs_i2c_dev *i2c; in mxs_i2c_probe() local
373 struct mxs_i2c_dev *i2c = platform_get_drvdata(pdev); in mxs_i2c_remove() local
/linux-2.6.39/drivers/gpu/drm/nouveau/
Dnouveau_i2c.c33 struct nouveau_i2c_chan *i2c = data; in nv04_i2c_setscl() local
44 struct nouveau_i2c_chan *i2c = data; in nv04_i2c_setsda() local
55 struct nouveau_i2c_chan *i2c = data; in nv04_i2c_getscl() local
64 struct nouveau_i2c_chan *i2c = data; in nv04_i2c_getsda() local
73 struct nouveau_i2c_chan *i2c = data; in nv4e_i2c_setscl() local
84 struct nouveau_i2c_chan *i2c = data; in nv4e_i2c_setsda() local
95 struct nouveau_i2c_chan *i2c = data; in nv4e_i2c_getscl() local
104 struct nouveau_i2c_chan *i2c = data; in nv4e_i2c_getsda() local
113 struct nouveau_i2c_chan *i2c = data; in nv50_i2c_getscl() local
123 struct nouveau_i2c_chan *i2c = data; in nv50_i2c_getsda() local
[all …]
/linux-2.6.39/drivers/mfd/
Dmax8998.c53 int max8998_read_reg(struct i2c_client *i2c, u8 reg, u8 *dest) in max8998_read_reg()
70 int max8998_bulk_read(struct i2c_client *i2c, u8 reg, int count, u8 *buf) in max8998_bulk_read()
85 int max8998_write_reg(struct i2c_client *i2c, u8 reg, u8 value) in max8998_write_reg()
97 int max8998_bulk_write(struct i2c_client *i2c, u8 reg, int count, u8 *buf) in max8998_bulk_write()
112 int max8998_update_reg(struct i2c_client *i2c, u8 reg, u8 val, u8 mask) in max8998_update_reg()
129 static int max8998_i2c_probe(struct i2c_client *i2c, in max8998_i2c_probe()
187 static int max8998_i2c_remove(struct i2c_client *i2c) in max8998_i2c_remove()
208 struct i2c_client *i2c = container_of(dev, struct i2c_client, dev); in max8998_suspend() local
218 struct i2c_client *i2c = container_of(dev, struct i2c_client, dev); in max8998_resume() local
278 struct i2c_client *i2c = container_of(dev, struct i2c_client, dev); in max8998_freeze() local
[all …]
D88pm860x-i2c.c18 static inline int pm860x_read_device(struct i2c_client *i2c, in pm860x_read_device()
35 static inline int pm860x_write_device(struct i2c_client *i2c, in pm860x_write_device()
50 int pm860x_reg_read(struct i2c_client *i2c, int reg) in pm860x_reg_read()
67 int pm860x_reg_write(struct i2c_client *i2c, int reg, in pm860x_reg_write()
81 int pm860x_bulk_read(struct i2c_client *i2c, int reg, in pm860x_bulk_read()
95 int pm860x_bulk_write(struct i2c_client *i2c, int reg, in pm860x_bulk_write()
109 int pm860x_set_bits(struct i2c_client *i2c, int reg, in pm860x_set_bits()
129 int pm860x_page_reg_read(struct i2c_client *i2c, int reg) in pm860x_page_reg_read()
150 int pm860x_page_reg_write(struct i2c_client *i2c, int reg, in pm860x_page_reg_write()
169 int pm860x_page_bulk_read(struct i2c_client *i2c, int reg, in pm860x_page_bulk_read()
[all …]
Dmax8997.c47 int max8997_read_reg(struct i2c_client *i2c, u8 reg, u8 *dest) in max8997_read_reg()
64 int max8997_bulk_read(struct i2c_client *i2c, u8 reg, int count, u8 *buf) in max8997_bulk_read()
79 int max8997_write_reg(struct i2c_client *i2c, u8 reg, u8 value) in max8997_write_reg()
91 int max8997_bulk_write(struct i2c_client *i2c, u8 reg, int count, u8 *buf) in max8997_bulk_write()
106 int max8997_update_reg(struct i2c_client *i2c, u8 reg, u8 val, u8 mask) in max8997_update_reg()
123 static int max8997_i2c_probe(struct i2c_client *i2c, in max8997_i2c_probe()
179 static int max8997_i2c_remove(struct i2c_client *i2c) in max8997_i2c_remove()
354 struct i2c_client *i2c = container_of(dev, struct i2c_client, dev); in max8997_freeze() local
376 struct i2c_client *i2c = container_of(dev, struct i2c_client, dev); in max8997_restore() local
D88pm860x-core.c276 struct i2c_client *i2c; in pm860x_irq() local
304 struct i2c_client *i2c; in pm860x_irq_sync_unlock() local
368 struct i2c_client *i2c = (chip->id == CHIP_PM8607) ? chip->client \ in device_gpadc_init() local
415 struct i2c_client *i2c = (chip->id == CHIP_PM8607) ? chip->client \ in device_irq_init() local
504 struct i2c_client *i2c, in device_bk_init()
541 struct i2c_client *i2c, in device_led_init()
578 struct i2c_client *i2c, in device_regulator_init()
636 struct i2c_client *i2c, in device_touch_init()
656 struct i2c_client *i2c, in device_power_init()
683 struct i2c_client *i2c, in device_onkey_init()
[all …]
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()
Dtps6507x.c38 struct i2c_client *i2c = tps6507x->i2c_client; in tps6507x_i2c_read_device() local
66 struct i2c_client *i2c = tps6507x->i2c_client; in tps6507x_i2c_write_device() local
85 static int tps6507x_i2c_probe(struct i2c_client *i2c, in tps6507x_i2c_probe()
116 static int tps6507x_i2c_remove(struct i2c_client *i2c) in tps6507x_i2c_remove()
Dwm831x-i2c.c28 struct i2c_client *i2c = wm831x->control_data; in wm831x_i2c_read_device() local
53 struct i2c_client *i2c = wm831x->control_data; in wm831x_i2c_write_device() local
78 static int wm831x_i2c_probe(struct i2c_client *i2c, in wm831x_i2c_probe()
96 static int wm831x_i2c_remove(struct i2c_client *i2c) in wm831x_i2c_remove()
/linux-2.6.39/sound/soc/codecs/
Dwm2000.c54 struct i2c_client *i2c; member
71 static int wm2000_write(struct i2c_client *i2c, unsigned int reg, in wm2000_write()
92 static unsigned int wm2000_read(struct i2c_client *i2c, unsigned int r) in wm2000_read()
126 struct i2c_client *i2c = wm2000->i2c; in wm2000_reset() local
135 static int wm2000_poll_bit(struct i2c_client *i2c, in wm2000_poll_bit()
153 static int wm2000_power_up(struct i2c_client *i2c, int analogue) in wm2000_power_up()
252 static int wm2000_power_down(struct i2c_client *i2c, int analogue) in wm2000_power_down()
287 static int wm2000_enter_bypass(struct i2c_client *i2c, int analogue) in wm2000_enter_bypass()
325 static int wm2000_exit_bypass(struct i2c_client *i2c, int analogue) in wm2000_exit_bypass()
359 static int wm2000_enter_standby(struct i2c_client *i2c, int analogue) in wm2000_enter_standby()
[all …]
/linux-2.6.39/drivers/media/video/cx23885/
Dnetup-init.c28 static void i2c_av_write(struct i2c_adapter *i2c, u16 reg, u8 val) in i2c_av_write()
49 static void i2c_av_write4(struct i2c_adapter *i2c, u16 reg, u32 val) in i2c_av_write4()
73 static u8 i2c_av_read(struct i2c_adapter *i2c, u16 reg) in i2c_av_read()
103 static void i2c_av_and_or(struct i2c_adapter *i2c, u16 reg, unsigned and_mask, in i2c_av_and_or()
112 struct i2c_adapter *i2c = &i2c_bus->i2c_adap; in netup_initialize() local
/linux-2.6.39/drivers/gpu/drm/radeon/
Dradeon_i2c.c68 static void radeon_i2c_do_lock(struct radeon_i2c_chan *i2c, int lock_state) in radeon_i2c_do_lock()
143 struct radeon_i2c_chan *i2c = i2c_priv; in get_clock() local
158 struct radeon_i2c_chan *i2c = i2c_priv; in get_data() local
172 struct radeon_i2c_chan *i2c = i2c_priv; in set_clock() local
185 struct radeon_i2c_chan *i2c = i2c_priv; in set_data() local
198 struct radeon_i2c_chan *i2c = i2c_get_adapdata(i2c_adap); in pre_xfer() local
207 struct radeon_i2c_chan *i2c = i2c_get_adapdata(i2c_adap); in post_xfer() local
307 struct radeon_i2c_chan *i2c = i2c_get_adapdata(i2c_adap); in r100_hw_i2c_xfer() local
560 struct radeon_i2c_chan *i2c = i2c_get_adapdata(i2c_adap); in r500_hw_i2c_xfer() local
793 struct radeon_i2c_chan *i2c = i2c_get_adapdata(i2c_adap); in radeon_hw_i2c_xfer() local
[all …]
/linux-2.6.39/drivers/media/dvb/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()
Dflexcop-i2c.c41 static int flexcop_i2c_read4(struct flexcop_i2c_adapter *i2c, in flexcop_i2c_read4()
106 int flexcop_i2c_request(struct flexcop_i2c_adapter *i2c, in flexcop_i2c_request()
178 struct flexcop_i2c_adapter *i2c = i2c_get_adapdata(i2c_adap); in flexcop_master_xfer() local
/linux-2.6.39/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()
/linux-2.6.39/drivers/regulator/
Dmax8998.c181 struct i2c_client *i2c = max8998->iodev->i2c; in max8998_ldo_is_enabled() local
199 struct i2c_client *i2c = max8998->iodev->i2c; in max8998_ldo_enable() local
212 struct i2c_client *i2c = max8998->iodev->i2c; in max8998_ldo_disable() local
288 struct i2c_client *i2c = max8998->iodev->i2c; in max8998_get_voltage() local
310 struct i2c_client *i2c = max8998->iodev->i2c; in max8998_set_voltage_ldo() local
362 struct i2c_client *i2c = max8998->iodev->i2c; in max8998_set_voltage_buck() local
695 struct i2c_client *i2c; in max8998_pmic_probe() local

12345678910>>...14