/linux/include/linux/ |
A D | i2c.h | 34 struct i2c_adapter; 646 int (*recover_bus)(struct i2c_adapter *adap); 648 int (*get_scl)(struct i2c_adapter *adap); 650 int (*get_sda)(struct i2c_adapter *adap); 652 int (*get_bus_free)(struct i2c_adapter *adap); 665 int i2c_recover_bus(struct i2c_adapter *adap); 724 struct i2c_adapter { struct 767 static inline struct i2c_adapter * 876 int i2c_add_adapter(struct i2c_adapter *adap); 878 void i2c_del_adapter(struct i2c_adapter *adap); [all …]
|
A D | i2c-smbus.h | 29 struct i2c_client *i2c_new_smbus_alert_device(struct i2c_adapter *adapter, 34 int of_i2c_setup_smbus_alert(struct i2c_adapter *adap); 36 static inline int of_i2c_setup_smbus_alert(struct i2c_adapter *adap) in of_i2c_setup_smbus_alert() 42 struct i2c_client *i2c_new_slave_host_notify_device(struct i2c_adapter *adapter); 45 static inline struct i2c_client *i2c_new_slave_host_notify_device(struct i2c_adapter *adapter) in i2c_new_slave_host_notify_device() 55 void i2c_register_spd(struct i2c_adapter *adap); 57 static inline void i2c_register_spd(struct i2c_adapter *adap) { } in i2c_register_spd()
|
/linux/drivers/i2c/ |
A D | i2c-mux.c | 33 struct i2c_adapter adap; 44 struct i2c_adapter *parent = muxc->parent; in __i2c_mux_master_xfer() 63 struct i2c_adapter *parent = muxc->parent; in i2c_mux_master_xfer() 84 struct i2c_adapter *parent = muxc->parent; in __i2c_mux_smbus_xfer() 106 struct i2c_adapter *parent = muxc->parent; in i2c_mux_smbus_xfer() 125 struct i2c_adapter *parent = priv->muxc->parent; in i2c_mux_functionality() 146 struct i2c_adapter *parent = priv->muxc->parent; in i2c_mux_lock_bus() 157 struct i2c_adapter *parent = priv->muxc->parent; in i2c_mux_trylock_bus() 172 struct i2c_adapter *parent = priv->muxc->parent; in i2c_mux_unlock_bus() 216 struct i2c_adapter *i2c_root; in i2c_root_adapter() [all …]
|
A D | i2c-core.h | 35 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()
|
A D | i2c-core-base.c | 271 int i2c_recover_bus(struct i2c_adapter *adap) in i2c_recover_bus() 452 struct i2c_adapter *adap = client->adapter; in i2c_smbus_host_notify_to_irq() 1081 struct i2c_adapter *adapter, in devm_i2c_new_dummy_device() 1295 ATTRIBUTE_GROUPS(i2c_adapter); 1340 struct i2c_adapter *adap) in i2c_do_add_adapter() 1622 struct i2c_adapter *adapter) in i2c_do_del_adapter() 1667 void i2c_del_adapter(struct i2c_adapter *adap) in i2c_del_adapter() 1669 struct i2c_adapter *found; in i2c_del_adapter() 2222 struct i2c_adapter *adap = client->adapter; in i2c_get_device_id() 2443 struct i2c_adapter *i2c_get_adapter(int nr) in i2c_get_adapter() [all …]
|
/linux/drivers/media/dvb-frontends/ |
A D | dib9000.h | 32 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() 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() 106 static inline struct i2c_adapter *dib9000_get_component_bus_interface(struct dvb_frontend *fe) in dib9000_get_component_bus_interface() [all …]
|
A D | stv0367.h | 33 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()
|
A D | dib3000mc.h | 40 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/include/drm/ |
A D | drm_dp_dual_mode_helper.h | 66 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,
|
A D | drm_scdc_helper.h | 91 ssize_t drm_scdc_read(struct i2c_adapter *adapter, u8 offset, void *buffer, 93 ssize_t drm_scdc_write(struct i2c_adapter *adapter, u8 offset, 108 static inline int drm_scdc_readb(struct i2c_adapter *adapter, u8 offset, in drm_scdc_readb() 126 static inline int drm_scdc_writeb(struct i2c_adapter *adapter, u8 offset, in drm_scdc_writeb() 132 bool drm_scdc_get_scrambling_status(struct i2c_adapter *adapter); 134 bool drm_scdc_set_scrambling(struct i2c_adapter *adapter, bool enable); 135 bool drm_scdc_set_high_tmds_clock_ratio(struct i2c_adapter *adapter, bool set);
|
/linux/drivers/gpu/drm/amd/amdgpu/ |
A D | smu_v11_0_i2c.c | 111 static void smu_v11_0_i2c_configure(struct i2c_adapter *control) in smu_v11_0_i2c_configure() 132 static void smu_v11_0_i2c_set_clock(struct i2c_adapter *control) in smu_v11_0_i2c_set_clock() 432 static void smu_v11_0_i2c_abort(struct i2c_adapter *control) in smu_v11_0_i2c_abort() 486 static void smu_v11_0_i2c_init(struct i2c_adapter *control) in smu_v11_0_i2c_init() 509 static void smu_v11_0_i2c_fini(struct i2c_adapter *control) in smu_v11_0_i2c_fini() 544 static bool smu_v11_0_i2c_bus_lock(struct i2c_adapter *control) in smu_v11_0_i2c_bus_lock() 629 static int smu_v11_0_i2c_xfer(struct i2c_adapter *i2c_adap, in smu_v11_0_i2c_xfer() 695 static u32 smu_v11_0_i2c_func(struct i2c_adapter *adap) in smu_v11_0_i2c_func() 709 int smu_v11_0_i2c_control_init(struct i2c_adapter *control) in smu_v11_0_i2c_control_init() 730 void smu_v11_0_i2c_control_fini(struct i2c_adapter *control) in smu_v11_0_i2c_control_fini() [all …]
|
/linux/drivers/media/pci/mantis/ |
A D | mantis_i2c.c | 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() 224 i2c_adapter->dev.parent = &pdev->dev; in mantis_i2c_init() [all …]
|
/linux/drivers/video/fbdev/mb862xx/ |
A D | mb862xx-i2c.c | 17 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/drivers/media/pci/ddbridge/ |
A D | ddbridge-i2c.h | 33 static int __maybe_unused i2c_io(struct i2c_adapter *adapter, u8 adr, in i2c_io() 44 static int __maybe_unused i2c_write(struct i2c_adapter *adap, u8 adr, in i2c_write() 53 static int __maybe_unused i2c_read(struct i2c_adapter *adapter, u8 adr, u8 *val) in i2c_read() 61 static int __maybe_unused i2c_read_regs(struct i2c_adapter *adapter, in i2c_read_regs() 72 static int __maybe_unused i2c_read_regs16(struct i2c_adapter *adapter, in i2c_read_regs16() 84 static int __maybe_unused i2c_write_reg16(struct i2c_adapter *adap, in i2c_write_reg16() 92 static int __maybe_unused i2c_write_reg(struct i2c_adapter *adap, in i2c_write_reg() 100 static int __maybe_unused i2c_read_reg16(struct i2c_adapter *adapter, in i2c_read_reg16() 106 static int __maybe_unused i2c_read_reg(struct i2c_adapter *adapter, in i2c_read_reg()
|
/linux/drivers/media/usb/au0828/ |
A D | au0828-i2c.c | 40 static int i2c_wait_read_ack(struct i2c_adapter *i2c_adap) in i2c_wait_read_ack() 56 static inline int i2c_is_read_busy(struct i2c_adapter *i2c_adap) in i2c_is_read_busy() 63 static int i2c_wait_read_done(struct i2c_adapter *i2c_adap) in i2c_wait_read_done() 86 static int i2c_wait_write_done(struct i2c_adapter *i2c_adap) in i2c_wait_write_done() 102 static inline int i2c_is_busy(struct i2c_adapter *i2c_adap) in i2c_is_busy() 109 static int i2c_wait_done(struct i2c_adapter *i2c_adap) in i2c_wait_done() 126 static int i2c_sendbytes(struct i2c_adapter *i2c_adap, in i2c_sendbytes() 216 static int i2c_readbytes(struct i2c_adapter *i2c_adap, in i2c_readbytes() 282 static int i2c_xfer(struct i2c_adapter *i2c_adap, in i2c_xfer() 317 static u32 au0828_functionality(struct i2c_adapter *adap) in au0828_functionality() [all …]
|
/linux/drivers/media/pci/ngene/ |
A D | ngene-cards.c | 44 static int i2c_io(struct i2c_adapter *adapter, u8 adr, in i2c_io() 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() 201 struct i2c_adapter *i2c, in tuner_tda18212_ping() 326 struct i2c_adapter *i2c) in demod_attach_stv0910() 380 struct i2c_adapter *i2c) in demod_attach_stv0367() 399 struct i2c_adapter *i2c, int osc24) in demod_attach_cxd28xx() 488 struct i2c_adapter *i2c) in demod_attach_drxk() 716 0xb2 >> 1, &chan->i2c_adapter); in demod_attach_lg330x() 752 &chan->i2c_adapter, in tuner_attach_dtt7520x() [all …]
|
/linux/drivers/gpu/drm/i915/display/ |
A D | intel_gmbus.h | 12 struct i2c_adapter; 40 int intel_gmbus_output_aksv(struct i2c_adapter *adapter); 42 struct i2c_adapter * 44 void intel_gmbus_set_speed(struct i2c_adapter *adapter, int speed); 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/drivers/media/usb/hdpvr/ |
A D | hdpvr-i2c.c | 47 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/drivers/media/test-drivers/vidtv/ |
A D | vidtv_bridge.c | 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() 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() 300 i2c_set_adapdata(i2c_adapter, dvb); in vidtv_bridge_i2c_register_adap() 311 &dvb->i2c_adapter.dev, in vidtv_bridge_register_adap() 348 &dvb->i2c_adapter, in vidtv_bridge_probe_demod() 401 &dvb->i2c_adapter, in vidtv_bridge_probe_tuner() [all …]
|
/linux/drivers/media/usb/dvb-usb-v2/ |
A D | dvbsky.c | 278 struct i2c_adapter *i2c_adapter; in dvbsky_s960_attach() local 307 i2c_adapter, in dvbsky_s960_attach() 380 struct i2c_adapter *i2c_adapter; in dvbsky_s960c_attach() local 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() 472 i2c_adapter, in dvbsky_t680c_attach() 501 struct i2c_adapter *i2c_adapter; in dvbsky_t330_attach() local 506 si2168_config.i2c_adapter = &i2c_adapter; in dvbsky_t330_attach() 536 struct i2c_adapter *i2c_adapter; in dvbsky_mygica_t230c_attach() local [all …]
|
/linux/drivers/video/fbdev/omap2/omapfb/displays/ |
A D | connector-dvi.c | 45 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() 255 ddata->i2c_adapter = adapter; in dvic_probe_of() 300 i2c_put_adapter(ddata->i2c_adapter); in dvic_probe() [all …]
|
/linux/drivers/i2c/busses/ |
A D | i2c-uniphier.c | 40 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() 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() 256 static int uniphier_i2c_get_scl(struct i2c_adapter *adap) in uniphier_i2c_get_scl() 264 static void uniphier_i2c_set_scl(struct i2c_adapter *adap, int val) in uniphier_i2c_set_scl() [all …]
|
/linux/drivers/media/radio/si4713/ |
A D | radio-usb-si4713.c | 55 struct i2c_adapter i2c_adapter; member 131 struct i2c_adapter *adapter = &radio->i2c_adapter; in usb_si4713_video_device_release() 363 static int si4713_transfer(struct i2c_adapter *i2c_adapter, in si4713_transfer() argument 382 static u32 si4713_functionality(struct i2c_adapter *adapter) in si4713_functionality() 394 static const struct i2c_adapter si4713_i2c_adapter_template = { 402 radio->i2c_adapter = si4713_i2c_adapter_template; in si4713_register_i2c_adapter() 404 radio->i2c_adapter.dev.parent = &radio->usbdev->dev; in si4713_register_i2c_adapter() 405 i2c_set_adapdata(&radio->i2c_adapter, radio); in si4713_register_i2c_adapter() 407 return i2c_add_adapter(&radio->i2c_adapter); in si4713_register_i2c_adapter() 415 struct i2c_adapter *adapter; in usb_si4713_probe() [all …]
|
/linux/drivers/media/pci/saa7146/ |
A D | hexium_gemini.c | 59 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() 296 i2c_del_adapter(&hexium->i2c_adapter); in hexium_attach() 318 i2c_del_adapter(&hexium->i2c_adapter); in hexium_detach()
|
A D | hexium_orion.c | 56 struct i2c_adapter i2c_adapter; member 222 strscpy(hexium->i2c_adapter.name, "hexium orion", in hexium_probe() 223 sizeof(hexium->i2c_adapter.name)); in hexium_probe() 224 saa7146_i2c_adapter_prepare(dev, &hexium->i2c_adapter, SAA7146_I2C_BUS_BIT_RATE_480); in hexium_probe() 225 if (i2c_add_adapter(&hexium->i2c_adapter) < 0) { in hexium_probe() 257 err = i2c_smbus_xfer(&hexium->i2c_adapter, 0x4e, 0, I2C_SMBUS_READ, in hexium_probe() 267 i2c_del_adapter(&hexium->i2c_adapter); in hexium_probe() 287 …if (0 != i2c_smbus_xfer(&hexium->i2c_adapter, 0x4e, 0, I2C_SMBUS_WRITE, i, I2C_SMBUS_BYTE_DATA, &d… in hexium_init_done() 305 …if (0 != i2c_smbus_xfer(&hexium->i2c_adapter, 0x4e, 0, I2C_SMBUS_WRITE, adr, I2C_SMBUS_BYTE_DATA, … in hexium_set_input() 391 i2c_del_adapter(&hexium->i2c_adapter); in hexium_detach()
|