Home
last modified time | relevance | path

Searched refs:i2c_adapter (Results 1 – 25 of 670) sorted by relevance

12345678910>>...27

/linux-3.4.99/include/linux/
Di2c.h46 struct i2c_adapter;
69 extern int i2c_transfer(struct i2c_adapter *adap, struct i2c_msg *msgs,
77 extern s32 i2c_smbus_xfer(struct i2c_adapter *adapter, u16 addr,
168 int (*attach_adapter)(struct i2c_adapter *) __deprecated;
169 int (*detach_adapter)(struct i2c_adapter *) __deprecated;
226 struct i2c_adapter *adapter; /* the adapter we sit on */
303 i2c_new_device(struct i2c_adapter *adap, struct i2c_board_info const *info);
312 i2c_new_probed_device(struct i2c_adapter *adap,
315 int (*probe)(struct i2c_adapter *, unsigned short addr));
318 extern int i2c_probe_func_quick_read(struct i2c_adapter *, unsigned short addr);
[all …]
Di2c-mux.h36 struct i2c_adapter *i2c_add_mux_adapter(struct i2c_adapter *parent,
38 int (*select) (struct i2c_adapter *,
40 int (*deselect) (struct i2c_adapter *,
43 int i2c_del_mux_adapter(struct i2c_adapter *adap);
Di2c-algo-bit.h40 int (*pre_xfer) (struct i2c_adapter *);
41 void (*post_xfer) (struct i2c_adapter *);
51 int i2c_bit_add_bus(struct i2c_adapter *);
52 int i2c_bit_add_numbered_bus(struct i2c_adapter *);
/linux-3.4.99/drivers/i2c/
Di2c-mux.c30 struct i2c_adapter adap;
33 struct i2c_adapter *parent;
37 int (*select)(struct i2c_adapter *, void *mux_dev, u32 chan_id);
38 int (*deselect)(struct i2c_adapter *, void *mux_dev, u32 chan_id);
41 static int i2c_mux_master_xfer(struct i2c_adapter *adap, in i2c_mux_master_xfer()
45 struct i2c_adapter *parent = priv->parent; in i2c_mux_master_xfer()
59 static int i2c_mux_smbus_xfer(struct i2c_adapter *adap, in i2c_mux_smbus_xfer()
65 struct i2c_adapter *parent = priv->parent; in i2c_mux_smbus_xfer()
81 static u32 i2c_mux_functionality(struct i2c_adapter *adap) in i2c_mux_functionality()
84 struct i2c_adapter *parent = priv->parent; in i2c_mux_functionality()
[all …]
/linux-3.4.99/drivers/media/dvb/frontends/
Ddib9000.h31 extern struct dvb_frontend *dib9000_attach(struct i2c_adapter *i2c_adap, u8 i2c_addr, const struct …
32 extern int dib9000_i2c_enumeration(struct i2c_adapter *host, int no_of_demods, u8 default_addr, u8 …
33 extern struct i2c_adapter *dib9000_get_tuner_interface(struct dvb_frontend *fe);
34 extern struct i2c_adapter *dib9000_get_i2c_master(struct dvb_frontend *fe, enum dibx000_i2c_interfa…
42 extern struct i2c_adapter *dib9000_get_component_bus_interface(struct dvb_frontend *fe);
43 extern int dib9000_set_i2c_adapter(struct dvb_frontend *fe, struct i2c_adapter *i2c);
46 static inline struct dvb_frontend *dib9000_attach(struct i2c_adapter *i2c_adap, u8 i2c_addr, struct… in dib9000_attach()
52 static inline struct i2c_adapter *dib9000_get_i2c_master(struct dvb_frontend *fe, enum dibx000_i2c_… in dib9000_get_i2c_master()
58 static inline int dib9000_i2c_enumeration(struct i2c_adapter *host, int no_of_demods, u8 default_ad… in dib9000_i2c_enumeration()
64 static inline struct i2c_adapter *dib9000_get_tuner_interface(struct dvb_frontend *fe) in dib9000_get_tuner_interface()
[all …]
Ddib7000p.h49 extern struct dvb_frontend *dib7000p_attach(struct i2c_adapter *i2c_adap, u8 i2c_addr, struct dib70…
50 extern struct i2c_adapter *dib7000p_get_i2c_master(struct dvb_frontend *, enum dibx000_i2c_interfac…
51 extern int dib7000p_i2c_enumeration(struct i2c_adapter *i2c, int no_of_demods, u8 default_addr, str…
54 extern int dib7000pc_detection(struct i2c_adapter *i2c_adap);
61 extern struct i2c_adapter *dib7090_get_i2c_tuner(struct dvb_frontend *fe);
66 static inline struct dvb_frontend *dib7000p_attach(struct i2c_adapter *i2c_adap, u8 i2c_addr, struc… in dib7000p_attach()
72 static inline struct i2c_adapter *dib7000p_get_i2c_master(struct dvb_frontend *fe, enum dibx000_i2c… in dib7000p_get_i2c_master()
78 static inline int dib7000p_i2c_enumeration(struct i2c_adapter *i2c, int no_of_demods, u8 default_ad… in dib7000p_i2c_enumeration()
96 static inline int dib7000pc_detection(struct i2c_adapter *i2c_adap) in dib7000pc_detection()
138 static inline struct i2c_adapter *dib7090_get_i2c_tuner(struct dvb_frontend *fe) in dib7090_get_i2c_tuner()
Ddib3000mc.h44 extern struct dvb_frontend *dib3000mc_attach(struct i2c_adapter *i2c_adap,
47 extern int dib3000mc_i2c_enumeration(struct i2c_adapter *i2c,
51 struct i2c_adapter *dib3000mc_get_tuner_i2c_master(struct dvb_frontend *demod,
55 struct dvb_frontend *dib3000mc_attach(struct i2c_adapter *i2c_adap, u8 i2c_addr, in dib3000mc_attach()
63 int dib3000mc_i2c_enumeration(struct i2c_adapter *i2c, in dib3000mc_i2c_enumeration()
72 struct i2c_adapter *dib3000mc_get_tuner_i2c_master(struct dvb_frontend *demod, in dib3000mc_get_tuner_i2c_master()
Ds921.h30 struct i2c_adapter *i2c);
31 extern struct i2c_adapter *s921_get_tuner_i2c_adapter(struct dvb_frontend *);
34 const struct s921_config *config, struct i2c_adapter *i2c) in s921_attach()
39 static struct i2c_adapter *
Dmb86a20s.h35 struct i2c_adapter *i2c);
36 extern struct i2c_adapter *mb86a20s_get_tuner_i2c_adapter(struct dvb_frontend *);
39 const struct mb86a20s_config *config, struct i2c_adapter *i2c) in mb86a20s_attach()
44 static struct i2c_adapter *
Ds5h1420.h45 struct i2c_adapter *i2c);
46 extern struct i2c_adapter *s5h1420_get_tuner_i2c_adapter(struct dvb_frontend *fe);
49 struct i2c_adapter *i2c) in s5h1420_attach()
55 static inline struct i2c_adapter *s5h1420_get_tuner_i2c_adapter(struct dvb_frontend *fe) in s5h1420_get_tuner_i2c_adapter()
Ddibx000_common.h22 struct i2c_adapter gated_tuner_i2c_adap;
23 struct i2c_adapter master_i2c_adap_gpio12;
24 struct i2c_adapter master_i2c_adap_gpio34;
25 struct i2c_adapter master_i2c_adap_gpio67;
27 struct i2c_adapter *i2c_adap;
40 u16 device_rev, struct i2c_adapter *i2c_adap,
42 extern struct i2c_adapter *dibx000_get_i2c_adapter(struct dibx000_i2c_master
48 extern int dibx000_i2c_set_speed(struct i2c_adapter *i2c_adap, u16 speed);
Dcx24123.h44 struct i2c_adapter *i2c);
45 extern struct i2c_adapter *cx24123_get_tuner_i2c_adapter(struct dvb_frontend *);
48 const struct cx24123_config *config, struct i2c_adapter *i2c) in cx24123_attach()
53 static struct i2c_adapter *
Drtl2830.h73 struct i2c_adapter *i2c
76 extern struct i2c_adapter *rtl2830_get_tuner_i2c_adapter(
82 struct i2c_adapter *i2c in rtl2830_attach()
89 static inline struct i2c_adapter *rtl2830_get_tuner_i2c_adapter( in rtl2830_get_tuner_i2c_adapter()
Dstv0367.h45 struct i2c_adapter *i2c);
48 struct i2c_adapter *i2c);
52 struct i2c_adapter *i2c) in stv0367ter_attach()
59 struct i2c_adapter *i2c) in stv0367cab_attach()
/linux-3.4.99/drivers/media/dvb/mantis/
Dmantis_i2c.c128 static int mantis_i2c_xfer(struct i2c_adapter *adapter, struct i2c_msg *msgs, int num) in mantis_i2c_xfer()
210 static u32 mantis_i2c_func(struct i2c_adapter *adapter) in mantis_i2c_func()
223 struct i2c_adapter *i2c_adapter = &mantis->adapter; in mantis_i2c_init() local
228 strncpy(i2c_adapter->name, "Mantis I2C", sizeof(i2c_adapter->name)); in mantis_i2c_init()
229 i2c_set_adapdata(i2c_adapter, mantis); in mantis_i2c_init()
231 i2c_adapter->owner = THIS_MODULE; in mantis_i2c_init()
232 i2c_adapter->algo = &mantis_algo; in mantis_i2c_init()
233 i2c_adapter->algo_data = NULL; in mantis_i2c_init()
234 i2c_adapter->timeout = 500; in mantis_i2c_init()
235 i2c_adapter->retries = 3; in mantis_i2c_init()
[all …]
/linux-3.4.99/drivers/gpu/drm/
Ddrm_dp_i2c_helper.c35 i2c_algo_dp_aux_transaction(struct i2c_adapter *adapter, int mode, in i2c_algo_dp_aux_transaction()
56 i2c_algo_dp_aux_address(struct i2c_adapter *adapter, u16 address, bool reading) in i2c_algo_dp_aux_address()
77 i2c_algo_dp_aux_stop(struct i2c_adapter *adapter, bool reading) in i2c_algo_dp_aux_stop()
97 i2c_algo_dp_aux_put_byte(struct i2c_adapter *adapter, u8 byte) in i2c_algo_dp_aux_put_byte()
114 i2c_algo_dp_aux_get_byte(struct i2c_adapter *adapter, u8 *byte_ret) in i2c_algo_dp_aux_get_byte()
127 i2c_algo_dp_aux_xfer(struct i2c_adapter *adapter, in i2c_algo_dp_aux_xfer()
167 i2c_algo_dp_aux_functionality(struct i2c_adapter *adapter) in i2c_algo_dp_aux_functionality()
181 i2c_dp_aux_reset_bus(struct i2c_adapter *adapter) in i2c_dp_aux_reset_bus()
189 i2c_dp_aux_prepare_bus(struct i2c_adapter *adapter) in i2c_dp_aux_prepare_bus()
198 i2c_dp_aux_add_bus(struct i2c_adapter *adapter) in i2c_dp_aux_add_bus()
/linux-3.4.99/drivers/media/video/hdpvr/
Dhdpvr-i2c.c45 return i2c_new_device(&dev->i2c_adapter, &hdpvr_ir_tx_i2c_board_info); in hdpvr_register_ir_tx_i2c()
63 return i2c_new_device(&dev->i2c_adapter, &hdpvr_ir_rx_i2c_board_info); in hdpvr_register_ir_rx_i2c()
126 static int hdpvr_transfer(struct i2c_adapter *i2c_adapter, struct i2c_msg *msgs, in hdpvr_transfer() argument
129 struct hdpvr_device *dev = i2c_get_adapdata(i2c_adapter); in hdpvr_transfer()
178 static u32 hdpvr_functionality(struct i2c_adapter *adapter) in hdpvr_functionality()
188 static struct i2c_adapter hdpvr_i2c_adapter_template = {
220 memcpy(&dev->i2c_adapter, &hdpvr_i2c_adapter_template, in hdpvr_register_i2c_adapter()
221 sizeof(struct i2c_adapter)); in hdpvr_register_i2c_adapter()
222 dev->i2c_adapter.dev.parent = &dev->udev->dev; in hdpvr_register_i2c_adapter()
224 i2c_set_adapdata(&dev->i2c_adapter, dev); in hdpvr_register_i2c_adapter()
[all …]
/linux-3.4.99/drivers/video/mb862xx/
Dmb862xx-i2c.c21 static int mb862xx_i2c_wait_event(struct i2c_adapter *adap) in mb862xx_i2c_wait_event()
36 static int mb862xx_i2c_do_address(struct i2c_adapter *adap, int addr) in mb862xx_i2c_do_address()
49 static int mb862xx_i2c_write_byte(struct i2c_adapter *adap, u8 byte) in mb862xx_i2c_write_byte()
60 static int mb862xx_i2c_read_byte(struct i2c_adapter *adap, u8 *byte, int last) in mb862xx_i2c_read_byte()
71 void mb862xx_i2c_stop(struct i2c_adapter *adap) in mb862xx_i2c_stop()
80 static int mb862xx_i2c_read(struct i2c_adapter *adap, struct i2c_msg *m) in mb862xx_i2c_read()
94 static int mb862xx_i2c_write(struct i2c_adapter *adap, struct i2c_msg *m) in mb862xx_i2c_write()
107 static int mb862xx_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, in mb862xx_xfer()
142 static u32 mb862xx_func(struct i2c_adapter *adap) in mb862xx_func()
152 static struct i2c_adapter mb862xx_i2c_adapter = {
/linux-3.4.99/drivers/media/video/au0828/
Dau0828-i2c.c39 static inline int i2c_slave_did_write_ack(struct i2c_adapter *i2c_adap) in i2c_slave_did_write_ack()
46 static inline int i2c_slave_did_read_ack(struct i2c_adapter *i2c_adap) in i2c_slave_did_read_ack()
53 static int i2c_wait_read_ack(struct i2c_adapter *i2c_adap) in i2c_wait_read_ack()
69 static inline int i2c_is_read_busy(struct i2c_adapter *i2c_adap) in i2c_is_read_busy()
76 static int i2c_wait_read_done(struct i2c_adapter *i2c_adap) in i2c_wait_read_done()
92 static inline int i2c_is_write_done(struct i2c_adapter *i2c_adap) in i2c_is_write_done()
99 static int i2c_wait_write_done(struct i2c_adapter *i2c_adap) in i2c_wait_write_done()
115 static inline int i2c_is_busy(struct i2c_adapter *i2c_adap) in i2c_is_busy()
122 static int i2c_wait_done(struct i2c_adapter *i2c_adap) in i2c_wait_done()
139 static int i2c_sendbytes(struct i2c_adapter *i2c_adap, in i2c_sendbytes()
[all …]
/linux-3.4.99/drivers/media/dvb/ngene/
Dngene-cards.c53 struct i2c_adapter *i2c; in tuner_attach_stv6110()
62 i2c = &chan->dev->channel[0].i2c_adapter; in tuner_attach_stv6110()
64 i2c = &chan->dev->channel[1].i2c_adapter; in tuner_attach_stv6110()
105 struct i2c_adapter *i2c; in tuner_attach_tda18271()
108 i2c = &chan->dev->channel[0].i2c_adapter; in tuner_attach_tda18271()
133 struct i2c_adapter *i2c; in demod_attach_stv0900()
141 i2c = &chan->dev->channel[0].i2c_adapter; in demod_attach_stv0900()
143 i2c = &chan->dev->channel[1].i2c_adapter; in demod_attach_stv0900()
178 static int i2c_read(struct i2c_adapter *adapter, u8 adr, u8 *val) in i2c_read()
185 static int i2c_read_reg16(struct i2c_adapter *adapter, u8 adr, in i2c_read_reg16()
[all …]
/linux-3.4.99/drivers/media/common/tuners/
Dtea5761.h24 extern int tea5761_autodetection(struct i2c_adapter* i2c_adap, u8 i2c_addr);
27 struct i2c_adapter* i2c_adap,
30 static inline int tea5761_autodetection(struct i2c_adapter* i2c_adap, in tea5761_autodetection()
39 struct i2c_adapter* i2c_adap, in tea5761_attach()
Dtda8290.h32 extern int tda829x_probe(struct i2c_adapter *i2c_adap, u8 i2c_addr);
35 struct i2c_adapter *i2c_adap,
39 static inline int tda829x_probe(struct i2c_adapter *i2c_adap, u8 i2c_addr) in tda829x_probe()
46 struct i2c_adapter *i2c_adap, in tda829x_attach()
/linux-3.4.99/drivers/staging/media/go7007/
Dgo7007-i2c.c142 static int go7007_smbus_xfer(struct i2c_adapter *adapter, u16 addr, in go7007_smbus_xfer()
159 static int go7007_i2c_master_xfer(struct i2c_adapter *adapter, in go7007_i2c_master_xfer()
195 static u32 go7007_functionality(struct i2c_adapter *adapter) in go7007_functionality()
206 static struct i2c_adapter go7007_adap_templ = {
214 memcpy(&go->i2c_adapter, &go7007_adap_templ, in go7007_i2c_init()
216 go->i2c_adapter.dev.parent = go->dev; in go7007_i2c_init()
217 i2c_set_adapdata(&go->i2c_adapter, go); in go7007_i2c_init()
218 if (i2c_add_adapter(&go->i2c_adapter) < 0) { in go7007_i2c_init()
/linux-3.4.99/drivers/i2c/busses/
Di2c-nforce2-s4985.c41 extern struct i2c_adapter *nforce2_smbus;
43 static struct i2c_adapter *s4985_adapter;
49 static s32 nforce2_access_virt0(struct i2c_adapter *adap, u16 addr, in nforce2_access_virt0()
75 static inline s32 nforce2_access_channel(struct i2c_adapter *adap, u16 addr, in nforce2_access_channel()
108 static s32 nforce2_access_virt1(struct i2c_adapter *adap, u16 addr, in nforce2_access_virt1()
118 static s32 nforce2_access_virt2(struct i2c_adapter *adap, u16 addr, in nforce2_access_virt2()
128 static s32 nforce2_access_virt3(struct i2c_adapter *adap, u16 addr, in nforce2_access_virt3()
138 static s32 nforce2_access_virt4(struct i2c_adapter *adap, u16 addr, in nforce2_access_virt4()
175 s4985_adapter = kzalloc(5 * sizeof(struct i2c_adapter), GFP_KERNEL); in nforce2_s4985_init()
Di2c-amd756-s4882.c43 extern struct i2c_adapter amd756_smbus;
45 static struct i2c_adapter *s4882_adapter;
51 static s32 amd756_access_virt0(struct i2c_adapter * adap, u16 addr, in amd756_access_virt0()
79 static inline s32 amd756_access_channel(struct i2c_adapter * adap, u16 addr, in amd756_access_channel()
113 static s32 amd756_access_virt1(struct i2c_adapter * adap, u16 addr, in amd756_access_virt1()
123 static s32 amd756_access_virt2(struct i2c_adapter * adap, u16 addr, in amd756_access_virt2()
133 static s32 amd756_access_virt3(struct i2c_adapter * adap, u16 addr, in amd756_access_virt3()
143 static s32 amd756_access_virt4(struct i2c_adapter * adap, u16 addr, in amd756_access_virt4()
180 if (!(s4882_adapter = kzalloc(5 * sizeof(struct i2c_adapter), in amd756_s4882_init()

12345678910>>...27