Home
last modified time | relevance | path

Searched defs:adap (Results 1 – 25 of 158) sorted by relevance

1234567

/linux-4.19.296/drivers/i2c/algos/
Di2c-algo-pca.c35 #define pca_outw(adap, reg, val) adap->write_byte(adap->data, reg, val) argument
36 #define pca_inw(adap, reg) adap->read_byte(adap->data, reg) argument
38 #define pca_status(adap) pca_inw(adap, I2C_PCA_STA) argument
39 #define pca_clock(adap) adap->i2c_clock argument
40 #define pca_set_con(adap, val) pca_outw(adap, I2C_PCA_CON, val) argument
41 #define pca_get_con(adap) pca_inw(adap, I2C_PCA_CON) argument
42 #define pca_wait(adap) adap->wait_for_completion(adap->data) argument
44 static void pca_reset(struct i2c_algo_pca_data *adap) in pca_reset()
77 static int pca_start(struct i2c_algo_pca_data *adap) in pca_start()
92 static int pca_repeated_start(struct i2c_algo_pca_data *adap) in pca_repeated_start()
[all …]
Di2c-algo-pcf.c47 #define set_pcf(adap, ctl, val) adap->setpcf(adap->data, ctl, val) argument
48 #define get_pcf(adap, ctl) adap->getpcf(adap->data, ctl) argument
49 #define get_own(adap) adap->getown(adap->data) argument
50 #define get_clock(adap) adap->getclock(adap->data) argument
51 #define i2c_outb(adap, val) adap->setpcf(adap->data, 0, val) argument
52 #define i2c_inb(adap) adap->getpcf(adap->data, 0) argument
56 static void i2c_start(struct i2c_algo_pcf_data *adap) in i2c_start()
62 static void i2c_repstart(struct i2c_algo_pcf_data *adap) in i2c_repstart()
68 static void i2c_stop(struct i2c_algo_pcf_data *adap) in i2c_stop()
74 static void handle_lab(struct i2c_algo_pcf_data *adap, const int *status) in handle_lab()
[all …]
Di2c-algo-bit.c57 #define setsda(adap, val) adap->setsda(adap->data, val) argument
58 #define setscl(adap, val) adap->setscl(adap->data, val) argument
59 #define getsda(adap) adap->getsda(adap->data) argument
60 #define getscl(adap) adap->getscl(adap->data) argument
62 static inline void sdalo(struct i2c_algo_bit_data *adap) in sdalo()
68 static inline void sdahi(struct i2c_algo_bit_data *adap) in sdahi()
74 static inline void scllo(struct i2c_algo_bit_data *adap) in scllo()
84 static int sclhi(struct i2c_algo_bit_data *adap) in sclhi()
124 static void i2c_start(struct i2c_algo_bit_data *adap) in i2c_start()
132 static void i2c_repstart(struct i2c_algo_bit_data *adap) in i2c_repstart()
[all …]
/linux-4.19.296/drivers/media/usb/dvb-usb-v2/
Ddvb_usb_core.c215 struct dvb_usb_adapter *adap = stream->user_priv; in dvb_usb_data_complete() local
222 struct dvb_usb_adapter *adap = stream->user_priv; in dvb_usb_data_complete_204() local
229 struct dvb_usb_adapter *adap = stream->user_priv; in dvb_usb_data_complete_raw() local
233 static int dvb_usbv2_adapter_stream_init(struct dvb_usb_adapter *adap) in dvb_usbv2_adapter_stream_init()
245 static int dvb_usbv2_adapter_stream_exit(struct dvb_usb_adapter *adap) in dvb_usbv2_adapter_stream_exit()
255 struct dvb_usb_adapter *adap = dvbdmxfeed->demux->priv; in dvb_usb_start_feed() local
343 struct dvb_usb_adapter *adap = dvbdmxfeed->demux->priv; in dvb_usb_stop_feed() local
400 static int dvb_usbv2_media_device_init(struct dvb_usb_adapter *adap) in dvb_usbv2_media_device_init()
420 static int dvb_usbv2_media_device_register(struct dvb_usb_adapter *adap) in dvb_usbv2_media_device_register()
429 static void dvb_usbv2_media_device_unregister(struct dvb_usb_adapter *adap) in dvb_usbv2_media_device_unregister()
[all …]
Dmxl111sf.c428 static int mxl111sf_lgdt3305_frontend_attach(struct dvb_usb_adapter *adap, u8 fe_id) in mxl111sf_lgdt3305_frontend_attach()
499 static int mxl111sf_lg2160_frontend_attach(struct dvb_usb_adapter *adap, u8 fe_id) in mxl111sf_lg2160_frontend_attach()
584 static int mxl111sf_lg2161_frontend_attach(struct dvb_usb_adapter *adap, u8 fe_id) in mxl111sf_lg2161_frontend_attach()
671 static int mxl111sf_lg2161_ep6_frontend_attach(struct dvb_usb_adapter *adap, u8 fe_id) in mxl111sf_lg2161_ep6_frontend_attach()
746 static int mxl111sf_attach_demod(struct dvb_usb_adapter *adap, u8 fe_id) in mxl111sf_attach_demod()
874 static int mxl111sf_attach_tuner(struct dvb_usb_adapter *adap) in mxl111sf_attach_tuner()
963 static int mxl111sf_frontend_attach_dvbt(struct dvb_usb_adapter *adap) in mxl111sf_frontend_attach_dvbt()
968 static int mxl111sf_frontend_attach_atsc(struct dvb_usb_adapter *adap) in mxl111sf_frontend_attach_atsc()
973 static int mxl111sf_frontend_attach_mh(struct dvb_usb_adapter *adap) in mxl111sf_frontend_attach_mh()
978 static int mxl111sf_frontend_attach_atsc_mh(struct dvb_usb_adapter *adap) in mxl111sf_frontend_attach_atsc_mh()
[all …]
Dgl861.c70 static int gl861_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg msg[], in gl861_i2c_xfer()
116 static int gl861_frontend_attach(struct dvb_usb_adapter *adap) in gl861_frontend_attach()
131 static int gl861_tuner_attach(struct dvb_usb_adapter *adap) in gl861_tuner_attach()
283 static int friio_tuner_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg msg[], in friio_tuner_i2c_xfer()
489 static int friio_frontend_attach(struct dvb_usb_adapter *adap) in friio_frontend_attach()
518 static int friio_frontend_detach(struct dvb_usb_adapter *adap) in friio_frontend_detach()
528 static int friio_tuner_attach(struct dvb_usb_adapter *adap) in friio_tuner_attach()
548 static int friio_tuner_detach(struct dvb_usb_adapter *adap) in friio_tuner_detach()
Ddvbsky.c109 static int dvbsky_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg msg[], in dvbsky_i2c_xfer()
251 static int dvbsky_read_mac_addr(struct dvb_usb_adapter *adap, u8 mac[6]) in dvbsky_read_mac_addr()
293 static int dvbsky_s960_attach(struct dvb_usb_adapter *adap) in dvbsky_s960_attach()
395 static int dvbsky_s960c_attach(struct dvb_usb_adapter *adap) in dvbsky_s960c_attach()
466 static int dvbsky_t680c_attach(struct dvb_usb_adapter *adap) in dvbsky_t680c_attach()
516 static int dvbsky_t330_attach(struct dvb_usb_adapter *adap) in dvbsky_t330_attach()
551 static int dvbsky_mygica_t230c_attach(struct dvb_usb_adapter *adap) in dvbsky_mygica_t230c_attach()
618 static int dvbsky_frontend_detach(struct dvb_usb_adapter *adap) in dvbsky_frontend_detach()
Dce6230.c95 static int ce6230_i2c_master_xfer(struct i2c_adapter *adap, in ce6230_i2c_master_xfer()
183 static int ce6230_zl10353_frontend_attach(struct dvb_usb_adapter *adap) in ce6230_zl10353_frontend_attach()
214 static int ce6230_mxl5003s_tuner_attach(struct dvb_usb_adapter *adap) in ce6230_mxl5003s_tuner_attach()
/linux-4.19.296/drivers/i2c/busses/
Di2c-uniphier.c52 struct i2c_adapter adap; member
73 static int uniphier_i2c_xfer_byte(struct i2c_adapter *adap, u32 txdata, in uniphier_i2c_xfer_byte()
101 static int uniphier_i2c_send_byte(struct i2c_adapter *adap, u32 txdata) in uniphier_i2c_send_byte()
122 static int uniphier_i2c_tx(struct i2c_adapter *adap, u16 addr, u16 len, in uniphier_i2c_tx()
144 static int uniphier_i2c_rx(struct i2c_adapter *adap, u16 addr, u16 len, in uniphier_i2c_rx()
171 static int uniphier_i2c_stop(struct i2c_adapter *adap) in uniphier_i2c_stop()
178 static int uniphier_i2c_master_xfer_one(struct i2c_adapter *adap, in uniphier_i2c_master_xfer_one()
218 static int uniphier_i2c_check_bus_busy(struct i2c_adapter *adap) in uniphier_i2c_check_bus_busy()
240 static int uniphier_i2c_master_xfer(struct i2c_adapter *adap, in uniphier_i2c_master_xfer()
262 static u32 uniphier_i2c_functionality(struct i2c_adapter *adap) in uniphier_i2c_functionality()
[all …]
Di2c-au1550.c50 struct i2c_adapter adap; member
64 static int wait_xfer_done(struct i2c_au1550_data *adap) in wait_xfer_done()
79 static int wait_ack(struct i2c_au1550_data *adap) in wait_ack()
93 static int wait_master_done(struct i2c_au1550_data *adap) in wait_master_done()
108 do_address(struct i2c_au1550_data *adap, unsigned int addr, int rd, int q) in do_address()
140 static int wait_for_rx_byte(struct i2c_au1550_data *adap, unsigned char *out) in wait_for_rx_byte()
164 static int i2c_read(struct i2c_au1550_data *adap, unsigned char *buf, in i2c_read()
194 static int i2c_write(struct i2c_au1550_data *adap, unsigned char *buf, in i2c_write()
224 struct i2c_au1550_data *adap = i2c_adap->algo_data; in au1550_xfer() local
252 static u32 au1550_func(struct i2c_adapter *adap) in au1550_func()
Di2c-powermac.c36 static s32 i2c_powermac_smbus_xfer( struct i2c_adapter* adap, in i2c_powermac_smbus_xfer()
147 static int i2c_powermac_master_xfer( struct i2c_adapter *adap, in i2c_powermac_master_xfer()
214 static u32 i2c_powermac_get_addr(struct i2c_adapter *adap, in i2c_powermac_get_addr()
242 static void i2c_powermac_create_one(struct i2c_adapter *adap, in i2c_powermac_create_one()
258 static void i2c_powermac_add_missing(struct i2c_adapter *adap, in i2c_powermac_add_missing()
284 static bool i2c_powermac_get_type(struct i2c_adapter *adap, in i2c_powermac_get_type()
322 static void i2c_powermac_register_devices(struct i2c_adapter *adap, in i2c_powermac_register_devices()
Di2c-cht-wc.c67 struct cht_wc_i2c_adap *adap = data; in cht_wc_i2c_adap_thread_handler() local
124 static u32 cht_wc_i2c_adap_master_func(struct i2c_adapter *adap) in cht_wc_i2c_adap_master_func()
135 struct cht_wc_i2c_adap *adap = i2c_get_adapdata(_adap); in cht_wc_i2c_adap_smbus_xfer() local
238 struct cht_wc_i2c_adap *adap = irq_data_get_irq_chip_data(data); in cht_wc_i2c_irq_lock() local
245 struct cht_wc_i2c_adap *adap = irq_data_get_irq_chip_data(data); in cht_wc_i2c_irq_sync_unlock() local
262 struct cht_wc_i2c_adap *adap = irq_data_get_irq_chip_data(data); in cht_wc_i2c_irq_enable() local
269 struct cht_wc_i2c_adap *adap = irq_data_get_irq_chip_data(data); in cht_wc_i2c_irq_disable() local
315 struct cht_wc_i2c_adap *adap; in cht_wc_i2c_adap_i2c_probe() local
419 struct cht_wc_i2c_adap *adap = platform_get_drvdata(pdev); in cht_wc_i2c_adap_i2c_remove() local
Di2c-nforce2-s4985.c45 static s32 nforce2_access_virt0(struct i2c_adapter *adap, u16 addr, in nforce2_access_virt0()
71 static inline s32 nforce2_access_channel(struct i2c_adapter *adap, u16 addr, in nforce2_access_channel()
104 static s32 nforce2_access_virt1(struct i2c_adapter *adap, u16 addr, in nforce2_access_virt1()
114 static s32 nforce2_access_virt2(struct i2c_adapter *adap, u16 addr, in nforce2_access_virt2()
124 static s32 nforce2_access_virt3(struct i2c_adapter *adap, u16 addr, in nforce2_access_virt3()
134 static s32 nforce2_access_virt4(struct i2c_adapter *adap, u16 addr, in nforce2_access_virt4()
Di2c-amd756-s4882.c47 static s32 amd756_access_virt0(struct i2c_adapter * adap, u16 addr, in amd756_access_virt0()
75 static inline s32 amd756_access_channel(struct i2c_adapter * adap, u16 addr, in amd756_access_channel()
109 static s32 amd756_access_virt1(struct i2c_adapter * adap, u16 addr, in amd756_access_virt1()
119 static s32 amd756_access_virt2(struct i2c_adapter * adap, u16 addr, in amd756_access_virt2()
129 static s32 amd756_access_virt3(struct i2c_adapter * adap, u16 addr, in amd756_access_virt3()
139 static s32 amd756_access_virt4(struct i2c_adapter * adap, u16 addr, in amd756_access_virt4()
Di2c-eg20t.c119 #define pch_dbg(adap, fmt, arg...) \ argument
122 #define pch_err(adap, fmt, arg...) \ argument
215 static void pch_i2c_init(struct i2c_algo_pch_data *adap) in pch_i2c_init()
266 static s32 pch_i2c_wait_for_bus_idle(struct i2c_algo_pch_data *adap, in pch_i2c_wait_for_bus_idle()
302 static void pch_i2c_start(struct i2c_algo_pch_data *adap) in pch_i2c_start()
313 static void pch_i2c_stop(struct i2c_algo_pch_data *adap) in pch_i2c_stop()
321 static int pch_i2c_wait_for_check_xfer(struct i2c_algo_pch_data *adap) in pch_i2c_wait_for_check_xfer()
359 static void pch_i2c_repstart(struct i2c_algo_pch_data *adap) in pch_i2c_repstart()
378 struct i2c_algo_pch_data *adap = i2c_adap->algo_data; in pch_i2c_writebytes() local
454 static void pch_i2c_sendack(struct i2c_algo_pch_data *adap) in pch_i2c_sendack()
[all …]
Di2c-sis630.c129 static int sis630_transaction_start(struct i2c_adapter *adap, int size, in sis630_transaction_start()
172 static int sis630_transaction_wait(struct i2c_adapter *adap, int size) in sis630_transaction_wait()
204 static void sis630_transaction_end(struct i2c_adapter *adap, u8 oldclock) in sis630_transaction_end()
223 static int sis630_transaction(struct i2c_adapter *adap, int size) in sis630_transaction()
237 static int sis630_block_data(struct i2c_adapter *adap, in sis630_block_data()
331 static s32 sis630_access(struct i2c_adapter *adap, u16 addr, in sis630_access()
Di2c-davinci.c303 static void davinci_i2c_prepare_recovery(struct i2c_adapter *adap) in davinci_i2c_prepare_recovery()
314 static void davinci_i2c_unprepare_recovery(struct i2c_adapter *adap) in davinci_i2c_unprepare_recovery()
327 static void davinci_i2c_set_scl(struct i2c_adapter *adap, int val) in davinci_i2c_set_scl()
339 static int davinci_i2c_get_scl(struct i2c_adapter *adap) in davinci_i2c_get_scl()
349 static int davinci_i2c_get_sda(struct i2c_adapter *adap) in davinci_i2c_get_sda()
359 static void davinci_i2c_scl_prepare_recovery(struct i2c_adapter *adap) in davinci_i2c_scl_prepare_recovery()
373 static void davinci_i2c_scl_unprepare_recovery(struct i2c_adapter *adap) in davinci_i2c_scl_unprepare_recovery()
423 i2c_davinci_xfer_msg(struct i2c_adapter *adap, struct i2c_msg *msg, int stop) in i2c_davinci_xfer_msg()
543 i2c_davinci_xfer(struct i2c_adapter *adap, struct i2c_msg msgs[], int num) in i2c_davinci_xfer()
581 static u32 i2c_davinci_func(struct i2c_adapter *adap) in i2c_davinci_func()
[all …]
Di2c-uniphier-f.c91 struct i2c_adapter adap; member
333 static int uniphier_fi2c_master_xfer_one(struct i2c_adapter *adap, in uniphier_fi2c_master_xfer_one()
412 static int uniphier_fi2c_check_bus_busy(struct i2c_adapter *adap) in uniphier_fi2c_check_bus_busy()
433 static int uniphier_fi2c_master_xfer(struct i2c_adapter *adap, in uniphier_fi2c_master_xfer()
458 static u32 uniphier_fi2c_functionality(struct i2c_adapter *adap) in uniphier_fi2c_functionality()
468 static int uniphier_fi2c_get_scl(struct i2c_adapter *adap) in uniphier_fi2c_get_scl()
476 static void uniphier_fi2c_set_scl(struct i2c_adapter *adap, int val) in uniphier_fi2c_set_scl()
484 static int uniphier_fi2c_get_sda(struct i2c_adapter *adap) in uniphier_fi2c_get_sda()
492 static void uniphier_fi2c_unprepare_recovery(struct i2c_adapter *adap) in uniphier_fi2c_unprepare_recovery()
Di2c-designware-master.c420 i2c_dw_xfer(struct i2c_adapter *adap, struct i2c_msg msgs[], int num) in i2c_dw_xfer()
630 static void i2c_dw_prepare_recovery(struct i2c_adapter *adap) in i2c_dw_prepare_recovery()
639 static void i2c_dw_unprepare_recovery(struct i2c_adapter *adap) in i2c_dw_unprepare_recovery()
651 struct i2c_adapter *adap = &dev->adapter; in i2c_dw_init_recovery_info() local
682 struct i2c_adapter *adap = &dev->adapter; in i2c_dw_probe() local
Di2c-sibyte.c40 struct i2c_algo_sibyte_data *adap = i2c_adap->algo_data; in smbus_xfer() local
114 static u32 bit_func(struct i2c_adapter *adap) in bit_func()
133 struct i2c_algo_sibyte_data *adap = i2c_adap->algo_data; in i2c_sibyte_add_bus() local
Di2c-puv3.c50 static int xfer_read(struct i2c_adapter *adap, unsigned char *buf, int length) in xfer_read()
84 static int xfer_write(struct i2c_adapter *adap, unsigned char *buf, int length) in xfer_write()
121 static int puv3_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg *pmsg, in puv3_i2c_xfer()
/linux-4.19.296/drivers/i2c/
Di2c-core-base.c142 static int get_scl_gpio_value(struct i2c_adapter *adap) in get_scl_gpio_value()
147 static void set_scl_gpio_value(struct i2c_adapter *adap, int val) in set_scl_gpio_value()
152 static int get_sda_gpio_value(struct i2c_adapter *adap) in get_sda_gpio_value()
157 static void set_sda_gpio_value(struct i2c_adapter *adap, int val) in set_sda_gpio_value()
162 static int i2c_generic_bus_free(struct i2c_adapter *adap) in i2c_generic_bus_free()
186 int i2c_generic_scl_recovery(struct i2c_adapter *adap) in i2c_generic_scl_recovery()
253 int i2c_recover_bus(struct i2c_adapter *adap) in i2c_recover_bus()
263 static void i2c_init_recovery(struct i2c_adapter *adap) in i2c_init_recovery()
309 struct i2c_adapter *adap = client->adapter; in i2c_smbus_host_notify_to_irq() local
681 static void i2c_dev_set_name(struct i2c_adapter *adap, in i2c_dev_set_name()
[all …]
Di2c-mux.c32 struct i2c_adapter adap; member
38 static int __i2c_mux_master_xfer(struct i2c_adapter *adap, in __i2c_mux_master_xfer()
57 static int i2c_mux_master_xfer(struct i2c_adapter *adap, in i2c_mux_master_xfer()
76 static int __i2c_mux_smbus_xfer(struct i2c_adapter *adap, in __i2c_mux_smbus_xfer()
98 static int i2c_mux_smbus_xfer(struct i2c_adapter *adap, in i2c_mux_smbus_xfer()
121 static u32 i2c_mux_functionality(struct i2c_adapter *adap) in i2c_mux_functionality()
439 struct i2c_adapter *adap = muxc->adapter[--muxc->num_adapters]; in i2c_mux_del_adapters() local
/linux-4.19.296/include/media/
Dcec.h60 struct cec_adapter *adap; member
86 struct cec_adapter *adap; member
207 static inline void *cec_get_drvdata(const struct cec_adapter *adap) in cec_get_drvdata()
212 static inline bool cec_has_log_addr(const struct cec_adapter *adap, u8 log_addr) in cec_has_log_addr()
217 static inline bool cec_is_sink(const struct cec_adapter *adap) in cec_is_sink()
229 static inline bool cec_is_registered(const struct cec_adapter *adap) in cec_is_registered()
260 static inline void cec_transmit_done(struct cec_adapter *adap, u8 status, in cec_transmit_done()
275 static inline void cec_transmit_attempt_done(struct cec_adapter *adap, in cec_transmit_attempt_done()
284 static inline void cec_received_msg(struct cec_adapter *adap, in cec_received_msg()
338 static inline int cec_register_adapter(struct cec_adapter *adap, in cec_register_adapter()
[all …]
Dcec-notifier.h112 struct cec_adapter *adap, in cec_notifier_register()
113 void (*callback)(struct cec_adapter *adap, u16 pa)) in cec_notifier_register()
121 static inline void cec_register_cec_notifier(struct cec_adapter *adap, in cec_register_cec_notifier()

1234567