Home
last modified time | relevance | path

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

12345678910>>...37

/linux-6.1.9/include/linux/
Di2c.h34 struct i2c_adapter;
131 int i2c_transfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num);
133 int __i2c_transfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num);
140 s32 i2c_smbus_xfer(struct i2c_adapter *adapter, u16 addr,
145 s32 __i2c_smbus_xfer(struct i2c_adapter *adapter, u16 addr,
349 struct i2c_adapter *adapter; /* the adapter we sit on */
361 struct i2c_adapter *i2c_verify_adapter(struct device *dev);
461 i2c_new_client_device(struct i2c_adapter *adap, struct i2c_board_info const *info);
470 i2c_new_scanned_device(struct i2c_adapter *adap,
473 int (*probe)(struct i2c_adapter *adap, unsigned short addr));
[all …]
Di2c-smbus.h29 struct i2c_client *i2c_new_smbus_alert_device(struct i2c_adapter *adapter,
34 struct i2c_client *i2c_new_slave_host_notify_device(struct i2c_adapter *adapter);
37 static inline struct i2c_client *i2c_new_slave_host_notify_device(struct i2c_adapter *adapter) in i2c_new_slave_host_notify_device()
47 void i2c_register_spd(struct i2c_adapter *adap);
49 static inline void i2c_register_spd(struct i2c_adapter *adap) { } in i2c_register_spd()
Di2c-algo-bit.h27 int (*pre_xfer) (struct i2c_adapter *);
28 void (*post_xfer) (struct i2c_adapter *);
39 int i2c_bit_add_bus(struct i2c_adapter *);
40 int i2c_bit_add_numbered_bus(struct i2c_adapter *);
/linux-6.1.9/drivers/i2c/
Di2c-core.h35 static inline int __i2c_lock_bus_helper(struct i2c_adapter *adap) in __i2c_lock_bus_helper()
50 static inline int __i2c_check_suspended(struct i2c_adapter *adap) in __i2c_check_suspended()
62 void i2c_acpi_register_devices(struct i2c_adapter *adap);
66 static inline void i2c_acpi_register_devices(struct i2c_adapter *adap) { } in i2c_acpi_register_devices()
76 int i2c_acpi_install_space_handler(struct i2c_adapter *adapter);
77 void i2c_acpi_remove_space_handler(struct i2c_adapter *adapter);
79 static inline int i2c_acpi_install_space_handler(struct i2c_adapter *adapter) { return 0; } in i2c_acpi_install_space_handler()
80 static inline void i2c_acpi_remove_space_handler(struct i2c_adapter *adapter) { } in i2c_acpi_remove_space_handler()
84 void of_i2c_register_devices(struct i2c_adapter *adap);
86 static inline void of_i2c_register_devices(struct i2c_adapter *adap) { } in of_i2c_register_devices()
[all …]
Di2c-mux.c33 struct i2c_adapter adap;
39 static int __i2c_mux_master_xfer(struct i2c_adapter *adap, in __i2c_mux_master_xfer()
44 struct i2c_adapter *parent = muxc->parent; in __i2c_mux_master_xfer()
58 static int i2c_mux_master_xfer(struct i2c_adapter *adap, in i2c_mux_master_xfer()
63 struct i2c_adapter *parent = muxc->parent; in i2c_mux_master_xfer()
77 static int __i2c_mux_smbus_xfer(struct i2c_adapter *adap, in __i2c_mux_smbus_xfer()
84 struct i2c_adapter *parent = muxc->parent; in __i2c_mux_smbus_xfer()
99 static int i2c_mux_smbus_xfer(struct i2c_adapter *adap, in i2c_mux_smbus_xfer()
106 struct i2c_adapter *parent = muxc->parent; in i2c_mux_smbus_xfer()
122 static u32 i2c_mux_functionality(struct i2c_adapter *adap) in i2c_mux_functionality()
[all …]
Di2c-core-base.c64 static int i2c_detect(struct i2c_adapter *adapter, struct i2c_driver *driver);
156 static int get_scl_gpio_value(struct i2c_adapter *adap) in get_scl_gpio_value()
161 static void set_scl_gpio_value(struct i2c_adapter *adap, int val) in set_scl_gpio_value()
166 static int get_sda_gpio_value(struct i2c_adapter *adap) in get_sda_gpio_value()
171 static void set_sda_gpio_value(struct i2c_adapter *adap, int val) in set_sda_gpio_value()
176 static int i2c_generic_bus_free(struct i2c_adapter *adap) in i2c_generic_bus_free()
200 int i2c_generic_scl_recovery(struct i2c_adapter *adap) in i2c_generic_scl_recovery()
271 int i2c_recover_bus(struct i2c_adapter *adap) in i2c_recover_bus()
281 static void i2c_gpio_init_pinctrl_recovery(struct i2c_adapter *adap) in i2c_gpio_init_pinctrl_recovery()
326 static int i2c_gpio_init_generic_recovery(struct i2c_adapter *adap) in i2c_gpio_init_generic_recovery()
[all …]
/linux-6.1.9/include/drm/display/
Ddrm_scdc_helper.h31 struct i2c_adapter;
33 ssize_t drm_scdc_read(struct i2c_adapter *adapter, u8 offset, void *buffer,
35 ssize_t drm_scdc_write(struct i2c_adapter *adapter, u8 offset,
50 static inline int drm_scdc_readb(struct i2c_adapter *adapter, u8 offset, in drm_scdc_readb()
68 static inline int drm_scdc_writeb(struct i2c_adapter *adapter, u8 offset, in drm_scdc_writeb()
74 bool drm_scdc_get_scrambling_status(struct i2c_adapter *adapter);
76 bool drm_scdc_set_scrambling(struct i2c_adapter *adapter, bool enable);
77 bool drm_scdc_set_high_tmds_clock_ratio(struct i2c_adapter *adapter, bool set);
Ddrm_dp_dual_mode_helper.h66 struct i2c_adapter;
68 ssize_t drm_dp_dual_mode_read(struct i2c_adapter *adapter,
70 ssize_t drm_dp_dual_mode_write(struct i2c_adapter *adapter,
108 drm_dp_dual_mode_detect(const struct drm_device *dev, struct i2c_adapter *adapter);
110 struct i2c_adapter *adapter);
112 struct i2c_adapter *adapter, bool *enabled);
114 struct i2c_adapter *adapter, bool enable);
117 int drm_lspcon_get_mode(const struct drm_device *dev, struct i2c_adapter *adapter,
119 int drm_lspcon_set_mode(const struct drm_device *dev, struct i2c_adapter *adapter,
/linux-6.1.9/drivers/media/dvb-frontends/
Ddib9000.h32 extern struct dvb_frontend *dib9000_attach(struct i2c_adapter *i2c_adap, u8 i2c_addr, const struct …
33 extern int dib9000_i2c_enumeration(struct i2c_adapter *host, int no_of_demods, u8 default_addr, u8 …
34 extern struct i2c_adapter *dib9000_get_tuner_interface(struct dvb_frontend *fe);
35 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 …]
Dstv0367.h33 struct i2c_adapter *i2c);
36 struct i2c_adapter *i2c);
39 struct i2c_adapter *i2c);
43 struct i2c_adapter *i2c) in stv0367ter_attach()
50 struct i2c_adapter *i2c) in stv0367cab_attach()
57 struct i2c_adapter *i2c) in stv0367ddb_attach()
Ddib3000mc.h40 extern struct dvb_frontend *dib3000mc_attach(struct i2c_adapter *i2c_adap,
43 extern int dib3000mc_i2c_enumeration(struct i2c_adapter *i2c,
47 struct i2c_adapter *dib3000mc_get_tuner_i2c_master(struct dvb_frontend *demod,
51 struct dvb_frontend *dib3000mc_attach(struct i2c_adapter *i2c_adap, u8 i2c_addr, in dib3000mc_attach()
59 int dib3000mc_i2c_enumeration(struct i2c_adapter *i2c, in dib3000mc_i2c_enumeration()
68 struct i2c_adapter *dib3000mc_get_tuner_i2c_master(struct dvb_frontend *demod, in dib3000mc_get_tuner_i2c_master()
/linux-6.1.9/drivers/media/pci/mantis/
Dmantis_i2c.c116 static int mantis_i2c_xfer(struct i2c_adapter *adapter, struct i2c_msg *msgs, int num) in mantis_i2c_xfer()
198 static u32 mantis_i2c_func(struct i2c_adapter *adapter) in mantis_i2c_func()
211 struct i2c_adapter *i2c_adapter = &mantis->adapter; in mantis_i2c_init() local
216 strscpy(i2c_adapter->name, "Mantis I2C", sizeof(i2c_adapter->name)); in mantis_i2c_init()
217 i2c_set_adapdata(i2c_adapter, mantis); in mantis_i2c_init()
219 i2c_adapter->owner = THIS_MODULE; in mantis_i2c_init()
220 i2c_adapter->algo = &mantis_algo; in mantis_i2c_init()
221 i2c_adapter->algo_data = NULL; in mantis_i2c_init()
222 i2c_adapter->timeout = 500; in mantis_i2c_init()
223 i2c_adapter->retries = 3; in mantis_i2c_init()
[all …]
/linux-6.1.9/drivers/gpu/drm/amd/amdgpu/
Dsmu_v11_0_i2c.c47 static void smu_v11_0_i2c_set_clock_gating(struct i2c_adapter *control, bool en) in smu_v11_0_i2c_set_clock_gating()
76 static int smu_v11_0_i2c_enable(struct i2c_adapter *control, bool enable) in smu_v11_0_i2c_enable()
102 static void smu_v11_0_i2c_clear_status(struct i2c_adapter *control) in smu_v11_0_i2c_clear_status()
113 static void smu_v11_0_i2c_configure(struct i2c_adapter *control) in smu_v11_0_i2c_configure()
135 static void smu_v11_0_i2c_set_clock(struct i2c_adapter *control) in smu_v11_0_i2c_set_clock()
159 static void smu_v11_0_i2c_set_address(struct i2c_adapter *control, u16 address) in smu_v11_0_i2c_set_address()
171 static uint32_t smu_v11_0_i2c_poll_tx_status(struct i2c_adapter *control) in smu_v11_0_i2c_poll_tx_status()
223 static uint32_t smu_v11_0_i2c_poll_rx_status(struct i2c_adapter *control) in smu_v11_0_i2c_poll_rx_status()
268 static uint32_t smu_v11_0_i2c_transmit(struct i2c_adapter *control, in smu_v11_0_i2c_transmit()
367 static uint32_t smu_v11_0_i2c_receive(struct i2c_adapter *control, in smu_v11_0_i2c_receive()
[all …]
/linux-6.1.9/drivers/video/fbdev/mb862xx/
Dmb862xx-i2c.c17 static int mb862xx_i2c_wait_event(struct i2c_adapter *adap) in mb862xx_i2c_wait_event()
32 static int mb862xx_i2c_do_address(struct i2c_adapter *adap, int addr) in mb862xx_i2c_do_address()
45 static int mb862xx_i2c_write_byte(struct i2c_adapter *adap, u8 byte) in mb862xx_i2c_write_byte()
56 static int mb862xx_i2c_read_byte(struct i2c_adapter *adap, u8 *byte, int last) in mb862xx_i2c_read_byte()
67 static void mb862xx_i2c_stop(struct i2c_adapter *adap) in mb862xx_i2c_stop()
76 static int mb862xx_i2c_read(struct i2c_adapter *adap, struct i2c_msg *m) in mb862xx_i2c_read()
90 static int mb862xx_i2c_write(struct i2c_adapter *adap, struct i2c_msg *m) in mb862xx_i2c_write()
103 static int mb862xx_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, in mb862xx_xfer()
138 static u32 mb862xx_func(struct i2c_adapter *adap) in mb862xx_func()
148 static struct i2c_adapter mb862xx_i2c_adapter = {
/linux-6.1.9/drivers/media/pci/ddbridge/
Dddbridge-i2c.h24 static int __maybe_unused i2c_io(struct i2c_adapter *adapter, u8 adr, in i2c_io()
35 static int __maybe_unused i2c_write(struct i2c_adapter *adap, u8 adr, in i2c_write()
44 static int __maybe_unused i2c_read(struct i2c_adapter *adapter, u8 adr, u8 *val) in i2c_read()
52 static int __maybe_unused i2c_read_regs(struct i2c_adapter *adapter, in i2c_read_regs()
63 static int __maybe_unused i2c_read_regs16(struct i2c_adapter *adapter, in i2c_read_regs16()
75 static int __maybe_unused i2c_write_reg16(struct i2c_adapter *adap, in i2c_write_reg16()
83 static int __maybe_unused i2c_write_reg(struct i2c_adapter *adap, in i2c_write_reg()
91 static int __maybe_unused i2c_read_reg16(struct i2c_adapter *adapter, in i2c_read_reg16()
97 static int __maybe_unused i2c_read_reg(struct i2c_adapter *adapter, in i2c_read_reg()
/linux-6.1.9/drivers/media/test-drivers/vidtv/
Dvidtv_bridge.c266 static int vidtv_master_xfer(struct i2c_adapter *i2c_adap, in vidtv_master_xfer()
278 static u32 vidtv_i2c_func(struct i2c_adapter *adapter) in vidtv_i2c_func()
290 struct i2c_adapter *i2c_adapter = &dvb->i2c_adapter; in vidtv_bridge_i2c_register_adap() local
292 strscpy(i2c_adapter->name, "vidtv_i2c", sizeof(i2c_adapter->name)); in vidtv_bridge_i2c_register_adap()
293 i2c_adapter->owner = THIS_MODULE; in vidtv_bridge_i2c_register_adap()
294 i2c_adapter->algo = &vidtv_i2c_algorithm; in vidtv_bridge_i2c_register_adap()
295 i2c_adapter->algo_data = NULL; in vidtv_bridge_i2c_register_adap()
296 i2c_adapter->timeout = 500; in vidtv_bridge_i2c_register_adap()
297 i2c_adapter->retries = 3; in vidtv_bridge_i2c_register_adap()
298 i2c_adapter->dev.parent = &dvb->pdev->dev; in vidtv_bridge_i2c_register_adap()
[all …]
/linux-6.1.9/drivers/media/usb/au0828/
Dau0828-i2c.c26 static inline int i2c_slave_did_read_ack(struct i2c_adapter *i2c_adap) in i2c_slave_did_read_ack()
33 static int i2c_wait_read_ack(struct i2c_adapter *i2c_adap) in i2c_wait_read_ack()
49 static inline int i2c_is_read_busy(struct i2c_adapter *i2c_adap) in i2c_is_read_busy()
56 static int i2c_wait_read_done(struct i2c_adapter *i2c_adap) in i2c_wait_read_done()
72 static inline int i2c_is_write_done(struct i2c_adapter *i2c_adap) in i2c_is_write_done()
79 static int i2c_wait_write_done(struct i2c_adapter *i2c_adap) in i2c_wait_write_done()
95 static inline int i2c_is_busy(struct i2c_adapter *i2c_adap) in i2c_is_busy()
102 static int i2c_wait_done(struct i2c_adapter *i2c_adap) in i2c_wait_done()
119 static int i2c_sendbytes(struct i2c_adapter *i2c_adap, in i2c_sendbytes()
209 static int i2c_readbytes(struct i2c_adapter *i2c_adap, in i2c_readbytes()
[all …]
/linux-6.1.9/drivers/media/usb/hdpvr/
Dhdpvr-i2c.c47 return i2c_new_client_device(&dev->i2c_adapter, &info); in hdpvr_register_ir_i2c()
110 static int hdpvr_transfer(struct i2c_adapter *i2c_adapter, struct i2c_msg *msgs, in hdpvr_transfer() argument
113 struct hdpvr_device *dev = i2c_get_adapdata(i2c_adapter); in hdpvr_transfer()
158 static u32 hdpvr_functionality(struct i2c_adapter *adapter) in hdpvr_functionality()
168 static const struct i2c_adapter hdpvr_i2c_adapter_template = {
198 dev->i2c_adapter = hdpvr_i2c_adapter_template; in hdpvr_register_i2c_adapter()
199 dev->i2c_adapter.dev.parent = &dev->udev->dev; in hdpvr_register_i2c_adapter()
201 i2c_set_adapdata(&dev->i2c_adapter, dev); in hdpvr_register_i2c_adapter()
203 return i2c_add_adapter(&dev->i2c_adapter); in hdpvr_register_i2c_adapter()
/linux-6.1.9/drivers/gpu/drm/i915/display/
Dintel_gmbus.h12 struct i2c_adapter;
41 int intel_gmbus_output_aksv(struct i2c_adapter *adapter);
43 struct i2c_adapter *
45 void intel_gmbus_force_bit(struct i2c_adapter *adapter, bool force_bit);
46 bool intel_gmbus_is_forced_bit(struct i2c_adapter *adapter);
/linux-6.1.9/drivers/media/pci/ngene/
Dngene-cards.c44 static int i2c_io(struct i2c_adapter *adapter, u8 adr, in i2c_io()
54 static int i2c_write(struct i2c_adapter *adap, u8 adr, u8 *data, int len) in i2c_write()
62 static int i2c_write_reg(struct i2c_adapter *adap, u8 adr, in i2c_write_reg()
70 static int i2c_read(struct i2c_adapter *adapter, u8 adr, u8 *val) in i2c_read()
77 static int i2c_read_reg16(struct i2c_adapter *adapter, u8 adr, in i2c_read_reg16()
88 static int i2c_read_regs(struct i2c_adapter *adapter, in i2c_read_regs()
99 static int i2c_read_reg(struct i2c_adapter *adapter, u8 adr, u8 reg, u8 *val) in i2c_read_reg()
108 static struct i2c_adapter *i2c_adapter_from_chan(struct ngene_channel *chan) in i2c_adapter_from_chan()
112 return &chan->dev->channel[0].i2c_adapter; in i2c_adapter_from_chan()
114 return &chan->dev->channel[1].i2c_adapter; in i2c_adapter_from_chan()
[all …]
/linux-6.1.9/drivers/video/fbdev/omap2/omapfb/displays/
Dconnector-dvi.c45 struct i2c_adapter *i2c_adapter; member
137 static int dvic_ddc_read(struct i2c_adapter *adapter, in dvic_ddc_read()
174 if (!ddata->i2c_adapter) in dvic_read_edid()
178 r = dvic_ddc_read(ddata->i2c_adapter, edid, l, 0); in dvic_read_edid()
188 r = dvic_ddc_read(ddata->i2c_adapter, edid + EDID_LENGTH, in dvic_read_edid()
205 if (!ddata->i2c_adapter) in dvic_detect()
208 r = dvic_ddc_read(ddata->i2c_adapter, &out, 1, 0); in dvic_detect()
236 struct i2c_adapter *adapter; in dvic_probe_of()
256 ddata->i2c_adapter = adapter; in dvic_probe_of()
301 i2c_put_adapter(ddata->i2c_adapter); in dvic_probe()
[all …]
/linux-6.1.9/drivers/media/usb/dvb-usb-v2/
Ddvbsky.c99 static int dvbsky_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg msg[], in dvbsky_i2c_xfer()
167 static u32 dvbsky_i2c_func(struct i2c_adapter *adapter) in dvbsky_i2c_func()
278 struct i2c_adapter *i2c_adapter; in dvbsky_s960_attach() local
300 i2c_adapter = m88ds3103_pdata.get_i2c_adapter(state->i2c_client_demod); in dvbsky_s960_attach()
307 i2c_adapter, in dvbsky_s960_attach()
380 struct i2c_adapter *i2c_adapter; in dvbsky_s960c_attach() local
403 i2c_adapter = m88ds3103_pdata.get_i2c_adapter(state->i2c_client_demod); in dvbsky_s960c_attach()
410 i2c_adapter, in dvbsky_s960c_attach()
451 struct i2c_adapter *i2c_adapter; in dvbsky_t680c_attach() local
457 si2168_config.i2c_adapter = &i2c_adapter; in dvbsky_t680c_attach()
[all …]
/linux-6.1.9/drivers/i2c/busses/
Di2c-uniphier.c40 struct i2c_adapter adap;
61 static int uniphier_i2c_xfer_byte(struct i2c_adapter *adap, u32 txdata, in uniphier_i2c_xfer_byte()
86 static int uniphier_i2c_send_byte(struct i2c_adapter *adap, u32 txdata) in uniphier_i2c_send_byte()
104 static int uniphier_i2c_tx(struct i2c_adapter *adap, u16 addr, u16 len, in uniphier_i2c_tx()
125 static int uniphier_i2c_rx(struct i2c_adapter *adap, u16 addr, u16 len, in uniphier_i2c_rx()
151 static int uniphier_i2c_stop(struct i2c_adapter *adap) in uniphier_i2c_stop()
157 static int uniphier_i2c_master_xfer_one(struct i2c_adapter *adap, in uniphier_i2c_master_xfer_one()
194 static int uniphier_i2c_check_bus_busy(struct i2c_adapter *adap) in uniphier_i2c_check_bus_busy()
216 static int uniphier_i2c_master_xfer(struct i2c_adapter *adap, in uniphier_i2c_master_xfer()
238 static u32 uniphier_i2c_functionality(struct i2c_adapter *adap) in uniphier_i2c_functionality()
[all …]
/linux-6.1.9/drivers/staging/media/deprecated/saa7146/saa7146/
Dhexium_gemini.c59 struct i2c_adapter i2c_adapter; member
161 …if (0 != i2c_smbus_xfer(&hexium->i2c_adapter, 0x6c, 0, I2C_SMBUS_WRITE, i, I2C_SMBUS_BYTE_DATA, &d… in hexium_init_done()
177 …if (0 != i2c_smbus_xfer(&hexium->i2c_adapter, 0x6c, 0, I2C_SMBUS_WRITE, hexium_input_select[input]… in hexium_set_input()
193 …if (0 != i2c_smbus_xfer(&hexium->i2c_adapter, 0x6c, 0, I2C_SMBUS_WRITE, vdec[i].adr, I2C_SMBUS_BYT… in hexium_set_standard()
261 strscpy(hexium->i2c_adapter.name, "hexium gemini", in hexium_attach()
262 sizeof(hexium->i2c_adapter.name)); in hexium_attach()
263 saa7146_i2c_adapter_prepare(dev, &hexium->i2c_adapter, SAA7146_I2C_BUS_BIT_RATE_480); in hexium_attach()
264 if (i2c_add_adapter(&hexium->i2c_adapter) < 0) { in hexium_attach()
289 i2c_del_adapter(&hexium->i2c_adapter); in hexium_attach()
301 i2c_del_adapter(&hexium->i2c_adapter); in hexium_attach()
[all …]
/linux-6.1.9/drivers/media/usb/go7007/
Dgo7007-i2c.c128 static int go7007_smbus_xfer(struct i2c_adapter *adapter, u16 addr, in go7007_smbus_xfer()
145 static int go7007_i2c_master_xfer(struct i2c_adapter *adapter, in go7007_i2c_master_xfer()
181 static u32 go7007_functionality(struct i2c_adapter *adapter) in go7007_functionality()
192 static struct i2c_adapter go7007_adap_templ = {
200 memcpy(&go->i2c_adapter, &go7007_adap_templ, in go7007_i2c_init()
202 go->i2c_adapter.dev.parent = go->dev; in go7007_i2c_init()
203 i2c_set_adapdata(&go->i2c_adapter, go); in go7007_i2c_init()
204 if (i2c_add_adapter(&go->i2c_adapter) < 0) { in go7007_i2c_init()

12345678910>>...37