Home
last modified time | relevance | path

Searched refs:adap (Results 1 – 25 of 413) sorted by relevance

12345678910>>...17

/kernel/linux/linux-5.10/drivers/media/usb/dvb-usb/
Ddvb-usb-dvb.c16 struct dvb_usb_adapter *adap = dvbdmxfeed->demux->priv; in dvb_usb_ctrl_feed() local
19 if (adap == NULL) in dvb_usb_ctrl_feed()
22 if ((adap->active_fe < 0) || in dvb_usb_ctrl_feed()
23 (adap->active_fe >= adap->num_frontends_initialized)) { in dvb_usb_ctrl_feed()
27 newfeedcount = adap->feedcount + (onoff ? 1 : -1); in dvb_usb_ctrl_feed()
32 usb_urb_kill(&adap->fe_adap[adap->active_fe].stream); in dvb_usb_ctrl_feed()
34 if (adap->props.fe[adap->active_fe].streaming_ctrl != NULL) { in dvb_usb_ctrl_feed()
35 ret = adap->props.fe[adap->active_fe].streaming_ctrl(adap, 0); in dvb_usb_ctrl_feed()
43 adap->feedcount = newfeedcount; in dvb_usb_ctrl_feed()
47 adap->fe_adap[adap->active_fe].pid_filtering ? in dvb_usb_ctrl_feed()
[all …]
Ddib0700_devices.c85 static int bristol_frontend_attach(struct dvb_usb_adapter *adap) in bristol_frontend_attach() argument
87 struct dib0700_state *st = adap->dev->priv; in bristol_frontend_attach()
88 if (adap->id == 0) { in bristol_frontend_attach()
89 dib0700_set_gpio(adap->dev, GPIO6, GPIO_OUT, 0); msleep(10); in bristol_frontend_attach()
90 dib0700_set_gpio(adap->dev, GPIO6, GPIO_OUT, 1); msleep(10); in bristol_frontend_attach()
91 dib0700_set_gpio(adap->dev, GPIO10, GPIO_OUT, 0); msleep(10); in bristol_frontend_attach()
92 dib0700_set_gpio(adap->dev, GPIO10, GPIO_OUT, 1); msleep(10); in bristol_frontend_attach()
95 dib0700_set_gpio(adap->dev, GPIO0, GPIO_OUT, 1); in bristol_frontend_attach()
97 dib0700_set_gpio(adap->dev, GPIO0, GPIO_OUT, 0); in bristol_frontend_attach()
99 …if (dib3000mc_i2c_enumeration(&adap->dev->i2c_adap, 2, DEFAULT_DIB3000P_I2C_ADDRESS, bristol_dib30… in bristol_frontend_attach()
[all …]
/kernel/linux/linux-5.10/drivers/media/usb/pvrusb2/
Dpvrusb2-dvb.c21 static int pvr2_dvb_feed_func(struct pvr2_dvb_adapter *adap) in pvr2_dvb_feed_func() argument
31 stream = adap->channel.stream->stream; in pvr2_dvb_feed_func()
44 &adap->demux, in pvr2_dvb_feed_func()
45 adap->buffer_storage[ in pvr2_dvb_feed_func()
66 adap->buffer_wait_data, in pvr2_dvb_feed_func()
91 static void pvr2_dvb_notify(struct pvr2_dvb_adapter *adap) in pvr2_dvb_notify() argument
93 wake_up(&adap->buffer_wait_data); in pvr2_dvb_notify()
96 static void pvr2_dvb_stream_end(struct pvr2_dvb_adapter *adap) in pvr2_dvb_stream_end() argument
101 if (adap->thread) { in pvr2_dvb_stream_end()
102 kthread_stop(adap->thread); in pvr2_dvb_stream_end()
[all …]
/kernel/linux/linux-5.10/sound/soc/codecs/
Dl3.c26 static void sendbyte(struct l3_pins *adap, unsigned int byte) in sendbyte() argument
31 adap->setclk(adap, 0); in sendbyte()
32 udelay(adap->data_hold); in sendbyte()
33 adap->setdat(adap, byte & 1); in sendbyte()
34 udelay(adap->data_setup); in sendbyte()
35 adap->setclk(adap, 1); in sendbyte()
36 udelay(adap->clock_high); in sendbyte()
46 static void sendbytes(struct l3_pins *adap, const u8 *buf, in sendbytes() argument
53 udelay(adap->mode_hold); in sendbytes()
54 adap->setmode(adap, 0); in sendbytes()
[all …]
/kernel/linux/linux-5.10/drivers/i2c/busses/
Di2c-cht-wc.c58 struct cht_wc_i2c_adap *adap = data; in cht_wc_i2c_adap_thread_handler() local
61 mutex_lock(&adap->adap_lock); in cht_wc_i2c_adap_thread_handler()
64 ret = regmap_read(adap->regmap, CHT_WC_EXTCHGRIRQ, &reg); in cht_wc_i2c_adap_thread_handler()
66 dev_err(&adap->adapter.dev, "Error reading extchgrirq reg\n"); in cht_wc_i2c_adap_thread_handler()
67 mutex_unlock(&adap->adap_lock); in cht_wc_i2c_adap_thread_handler()
71 reg &= ~adap->irq_mask; in cht_wc_i2c_adap_thread_handler()
74 ret = regmap_read(adap->regmap, CHT_WC_I2C_RDDATA, &adap->read_data); in cht_wc_i2c_adap_thread_handler()
76 adap->io_error = true; in cht_wc_i2c_adap_thread_handler()
82 ret = regmap_write(adap->regmap, CHT_WC_EXTCHGRIRQ, reg); in cht_wc_i2c_adap_thread_handler()
84 dev_err(&adap->adapter.dev, "Error writing extchgrirq reg\n"); in cht_wc_i2c_adap_thread_handler()
[all …]
Di2c-au1550.c41 struct i2c_adapter adap; member
55 static int wait_xfer_done(struct i2c_au1550_data *adap) in wait_xfer_done() argument
60 for (i = 0; i < adap->xfer_timeout; i++) { in wait_xfer_done()
61 if (RD(adap, PSC_SMBSTAT) & PSC_SMBSTAT_TE) in wait_xfer_done()
70 static int wait_ack(struct i2c_au1550_data *adap) in wait_ack() argument
74 if (wait_xfer_done(adap)) in wait_ack()
77 stat = RD(adap, PSC_SMBEVNT); in wait_ack()
84 static int wait_master_done(struct i2c_au1550_data *adap) in wait_master_done() argument
89 for (i = 0; i < 2 * adap->xfer_timeout; i++) { in wait_master_done()
90 if ((RD(adap, PSC_SMBEVNT) & PSC_SMBEVNT_MD) != 0) in wait_master_done()
[all …]
Di2c-eg20t.c111 #define pch_dbg(adap, fmt, arg...) \ argument
112 dev_dbg(adap->pch_adapter.dev.parent, "%s :" fmt, __func__, ##arg)
114 #define pch_err(adap, fmt, arg...) \ argument
115 dev_err(adap->pch_adapter.dev.parent, "%s :" fmt, __func__, ##arg)
207 static void pch_i2c_init(struct i2c_algo_pch_data *adap) in pch_i2c_init() argument
209 void __iomem *p = adap->pch_base_address; in pch_i2c_init()
222 pch_setbit(adap->pch_base_address, PCH_I2CCTL, PCH_I2CCTL_I2CMEN); in pch_i2c_init()
230 pch_dbg(adap, "Fast mode enabled\n"); in pch_i2c_init()
246 pch_dbg(adap, in pch_i2c_init()
258 static s32 pch_i2c_wait_for_bus_idle(struct i2c_algo_pch_data *adap, in pch_i2c_wait_for_bus_idle() argument
[all …]
/kernel/linux/linux-5.10/drivers/i2c/algos/
Di2c-algo-pcf.c38 #define set_pcf(adap, ctl, val) adap->setpcf(adap->data, ctl, val) argument
39 #define get_pcf(adap, ctl) adap->getpcf(adap->data, ctl) argument
40 #define get_own(adap) adap->getown(adap->data) argument
41 #define get_clock(adap) adap->getclock(adap->data) argument
42 #define i2c_outb(adap, val) adap->setpcf(adap->data, 0, val) argument
43 #define i2c_inb(adap) adap->getpcf(adap->data, 0) argument
47 static void i2c_start(struct i2c_algo_pcf_data *adap) in i2c_start() argument
50 set_pcf(adap, 1, I2C_PCF_START); in i2c_start()
53 static void i2c_repstart(struct i2c_algo_pcf_data *adap) in i2c_repstart() argument
56 set_pcf(adap, 1, I2C_PCF_REPSTART); in i2c_repstart()
[all …]
Di2c-algo-bit.c48 #define setsda(adap, val) adap->setsda(adap->data, val) argument
49 #define setscl(adap, val) adap->setscl(adap->data, val) argument
50 #define getsda(adap) adap->getsda(adap->data) argument
51 #define getscl(adap) adap->getscl(adap->data) argument
53 static inline void sdalo(struct i2c_algo_bit_data *adap) in sdalo() argument
55 setsda(adap, 0); in sdalo()
56 udelay((adap->udelay + 1) / 2); in sdalo()
59 static inline void sdahi(struct i2c_algo_bit_data *adap) in sdahi() argument
61 setsda(adap, 1); in sdahi()
62 udelay((adap->udelay + 1) / 2); in sdahi()
[all …]
Di2c-algo-pca.c26 #define pca_outw(adap, reg, val) adap->write_byte(adap->data, reg, val) argument
27 #define pca_inw(adap, reg) adap->read_byte(adap->data, reg) argument
29 #define pca_status(adap) pca_inw(adap, I2C_PCA_STA) argument
30 #define pca_clock(adap) adap->i2c_clock argument
31 #define pca_set_con(adap, val) pca_outw(adap, I2C_PCA_CON, val) argument
32 #define pca_get_con(adap) pca_inw(adap, I2C_PCA_CON) argument
33 #define pca_wait(adap) adap->wait_for_completion(adap->data) argument
35 static void pca_reset(struct i2c_algo_pca_data *adap) in pca_reset() argument
37 if (adap->chip == I2C_PCA_CHIP_9665) { in pca_reset()
41 pca_outw(adap, I2C_PCA_INDPTR, I2C_PCA_IPRESET); in pca_reset()
[all …]
/kernel/linux/linux-5.10/drivers/media/cec/core/
Dcec-core.c157 static void cec_devnode_unregister(struct cec_adapter *adap) in cec_devnode_unregister() argument
159 struct cec_devnode *devnode = &adap->devnode; in cec_devnode_unregister()
177 mutex_lock(&adap->lock); in cec_devnode_unregister()
178 __cec_s_phys_addr(adap, CEC_PHYS_ADDR_INVALID, false); in cec_devnode_unregister()
179 __cec_s_log_addrs(adap, NULL, false); in cec_devnode_unregister()
180 mutex_unlock(&adap->lock); in cec_devnode_unregister()
191 struct cec_adapter *adap = sf->private; in cec_error_inj_write() local
205 if (!adap->ops->error_inj_parse_line(adap, line)) { in cec_error_inj_write()
216 struct cec_adapter *adap = sf->private; in cec_error_inj_show() local
218 return adap->ops->error_inj_show(adap, sf); in cec_error_inj_show()
[all …]
Dcec-adap.c26 static void cec_fill_msg_report_features(struct cec_adapter *adap,
42 #define call_op(adap, op, arg...) \ argument
43 (adap->ops->op ? adap->ops->op(adap, ## arg) : 0)
45 #define call_void_op(adap, op, arg...) \ argument
47 if (adap->ops->op) \
48 adap->ops->op(adap, ## arg); \
51 static int cec_log_addr2idx(const struct cec_adapter *adap, u8 log_addr) in cec_log_addr2idx() argument
55 for (i = 0; i < adap->log_addrs.num_log_addrs; i++) in cec_log_addr2idx()
56 if (adap->log_addrs.log_addr[i] == log_addr) in cec_log_addr2idx()
61 static unsigned int cec_log_addr2dev(const struct cec_adapter *adap, u8 log_addr) in cec_log_addr2dev() argument
[all …]
Dcec-api.c29 return &fh->adap->devnode; in cec_devnode_data()
38 struct cec_adapter *adap = fh->adap; in cec_poll() local
42 if (!cec_is_registered(adap)) in cec_poll()
44 mutex_lock(&adap->lock); in cec_poll()
45 if (adap->is_configured && in cec_poll()
46 adap->transmit_queue_sz < CEC_MAX_MSG_TX_QUEUE_SZ) in cec_poll()
52 mutex_unlock(&adap->lock); in cec_poll()
56 static bool cec_is_busy(const struct cec_adapter *adap, in cec_is_busy() argument
59 bool valid_initiator = adap->cec_initiator && adap->cec_initiator == fh; in cec_is_busy()
60 bool valid_follower = adap->cec_follower && adap->cec_follower == fh; in cec_is_busy()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_uld.c59 struct adapter *adap = q->adap; in uldrx_flush_handler() local
61 if (adap->uld[q->uld].lro_flush) in uldrx_flush_handler()
62 adap->uld[q->uld].lro_flush(&q->lro_mgr); in uldrx_flush_handler()
77 struct adapter *adap = q->adap; in uldrx_handler() local
87 ret = adap->uld[q->uld].lro_rx_handler(adap->uld[q->uld].handle, in uldrx_handler()
91 ret = adap->uld[q->uld].rx_handler(adap->uld[q->uld].handle, in uldrx_handler()
108 static int alloc_uld_rxqs(struct adapter *adap, in alloc_uld_rxqs() argument
115 struct sge *s = &adap->sge; in alloc_uld_rxqs()
118 per_chan = rxq_info->nrxq / adap->params.nports; in alloc_uld_rxqs()
120 if (adap->flags & CXGB4_USING_MSIX) in alloc_uld_rxqs()
[all …]
Dcxgb4_main.c188 static int cfg_queues(struct adapter *adap);
238 struct adapter *adap = pi->adapter; in dcb_tx_queue_prio_enable() local
239 struct sge_eth_txq *txq = &adap->sge.ethtxq[pi->first_qset]; in dcb_tx_queue_prio_enable()
259 err = t4_set_params_timeout(adap, adap->mbox, adap->pf, 0, 1, in dcb_tx_queue_prio_enable()
264 dev_err(adap->pdev_dev, in dcb_tx_queue_prio_enable()
306 void t4_os_portmod_changed(struct adapter *adap, int port_id) in t4_os_portmod_changed() argument
312 struct net_device *dev = adap->port[port_id]; in t4_os_portmod_changed()
351 struct adapter *adap = pi->adapter; in cxgb4_set_addr_hash() local
357 list_for_each_entry(entry, &adap->mac_hlist, list) { in cxgb4_set_addr_hash()
361 return t4_set_addr_hash(adap, adap->mbox, pi->viid, ucast, in cxgb4_set_addr_hash()
[all …]
Dcxgb4_mps.c6 static int cxgb4_mps_ref_dec_by_mac(struct adapter *adap, in cxgb4_mps_ref_dec_by_mac() argument
13 spin_lock_bh(&adap->mps_ref_lock); in cxgb4_mps_ref_dec_by_mac()
14 list_for_each_entry_safe(mps_entry, tmp, &adap->mps_ref, list) { in cxgb4_mps_ref_dec_by_mac()
18 spin_unlock_bh(&adap->mps_ref_lock); in cxgb4_mps_ref_dec_by_mac()
27 spin_unlock_bh(&adap->mps_ref_lock); in cxgb4_mps_ref_dec_by_mac()
31 static int cxgb4_mps_ref_dec(struct adapter *adap, u16 idx) in cxgb4_mps_ref_dec() argument
36 spin_lock(&adap->mps_ref_lock); in cxgb4_mps_ref_dec()
37 list_for_each_entry_safe(mps_entry, tmp, &adap->mps_ref, list) { in cxgb4_mps_ref_dec()
40 spin_unlock(&adap->mps_ref_lock); in cxgb4_mps_ref_dec()
49 spin_unlock(&adap->mps_ref_lock); in cxgb4_mps_ref_dec()
[all …]
Dcxgb4_tc_mqprio.c13 struct adapter *adap = netdev2adap(dev); in cxgb4_mqprio_validate() local
31 } else if (mqprio->qopt.num_tc > adap->params.nsched_cls) { in cxgb4_mqprio_validate()
34 adap->params.nsched_cls); in cxgb4_mqprio_validate()
81 if (qoffset >= adap->tids.neotids || qcount > adap->tids.neotids) in cxgb4_mqprio_validate()
98 struct adapter *adap = netdev2adap(dev); in cxgb4_init_eosw_txq() local
113 eosw_txq->hwtid = adap->tids.eotid_base + eosw_txq->eotid; in cxgb4_init_eosw_txq()
114 eosw_txq->cred = adap->params.ofldq_wr_cred; in cxgb4_init_eosw_txq()
124 struct adapter *adap = netdev2adap(dev); in cxgb4_clean_eosw_txq() local
126 cxgb4_eosw_txq_free_desc(adap, eosw_txq, eosw_txq->ndesc); in cxgb4_clean_eosw_txq()
133 eosw_txq->cred = adap->params.ofldq_wr_cred; in cxgb4_clean_eosw_txq()
[all …]
Dcxgb4_thermal.c15 struct adapter *adap = tzdev->devdata; in cxgb4_thermal_get_temp() local
23 ret = t4_query_params(adap, adap->mbox, adap->pf, 0, 1, in cxgb4_thermal_get_temp()
35 struct adapter *adap = tzdev->devdata; in cxgb4_thermal_get_trip_type() local
37 if (!adap->ch_thermal.trip_temp) in cxgb4_thermal_get_trip_type()
40 *type = adap->ch_thermal.trip_type; in cxgb4_thermal_get_trip_type()
47 struct adapter *adap = tzdev->devdata; in cxgb4_thermal_get_trip_temp() local
49 if (!adap->ch_thermal.trip_temp) in cxgb4_thermal_get_trip_temp()
52 *temp = adap->ch_thermal.trip_temp; in cxgb4_thermal_get_trip_temp()
62 int cxgb4_thermal_init(struct adapter *adap) in cxgb4_thermal_init() argument
64 struct ch_thermal *ch_thermal = &adap->ch_thermal; in cxgb4_thermal_init()
[all …]
/kernel/linux/linux-5.10/drivers/media/pci/pt3/
Dpt3_dma.c24 int pt3_stop_dma(struct pt3_adapter *adap) in pt3_stop_dma() argument
26 struct pt3_board *pt3 = adap->dvb_adap.priv; in pt3_stop_dma()
31 base = get_dma_base(adap->adap_idx); in pt3_stop_dma()
46 int pt3_start_dma(struct pt3_adapter *adap) in pt3_start_dma() argument
48 struct pt3_board *pt3 = adap->dvb_adap.priv; in pt3_start_dma()
49 u32 base = get_dma_base(adap->adap_idx); in pt3_start_dma()
52 iowrite32(lower_32_bits(adap->desc_buf[0].b_addr), in pt3_start_dma()
54 iowrite32(upper_32_bits(adap->desc_buf[0].b_addr), in pt3_start_dma()
61 static u8 *next_unit(struct pt3_adapter *adap, int *idx, int *ofs) in next_unit() argument
67 if (*idx == adap->num_bufs) in next_unit()
[all …]
Dpt3.c92 pt3_demod_write(struct pt3_adapter *adap, const struct reg_val *data, int num) in pt3_demod_write() argument
98 msg.addr = adap->i2c_demod->addr; in pt3_demod_write()
103 ret = i2c_transfer(adap->i2c_demod->adapter, &msg, 1); in pt3_demod_write()
150 struct pt3_adapter *adap; in pt3_set_lna() local
157 adap = pt3_find_adapter(fe); in pt3_set_lna()
159 if (val == LNA_AUTO || val == adap->cur_lna) in pt3_set_lna()
162 pt3 = adap->dvb_adap.priv; in pt3_set_lna()
179 adap->cur_lna = (val != 0); in pt3_set_lna()
185 struct pt3_adapter *adap; in pt3_set_voltage() local
191 adap = pt3_find_adapter(fe); in pt3_set_voltage()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb3/
Dmc5.c128 struct adapter *adap = mc5->adapter; in init_mask_data_array() local
135 unsigned int server_base = t3_read_reg(adap, A_MC5_DB_SERVER_INDEX); in init_mask_data_array()
143 dbgi_wr_data3(adap, 0, 0, 0); in init_mask_data_array()
145 if (mc5_write(adap, data_array_base + (i << addr_shift), in init_mask_data_array()
150 dbgi_wr_data3(adap, 0xffffffff, 0xffffffff, 0xff); in init_mask_data_array()
153 t3_write_reg(adap, A_MC5_DB_DBGI_REQ_DATA0, in init_mask_data_array()
156 if (mc5_write(adap, mask_array_base + (i << addr_shift), in init_mask_data_array()
166 struct adapter *adap = mc5->adapter; in init_idt52100() local
168 t3_write_reg(adap, A_MC5_DB_RSP_LATENCY, in init_idt52100()
170 t3_write_reg(adap, A_MC5_DB_PART_ID_INDEX, 2); in init_idt52100()
[all …]
Dxgmac.c54 struct adapter *adap = mac->adapter; in xaui_serdes_reset() local
57 t3_write_reg(adap, ctrl, adap->params.vpd.xauicfg[macidx(mac)] | in xaui_serdes_reset()
61 t3_read_reg(adap, ctrl); in xaui_serdes_reset()
65 t3_set_reg_field(adap, ctrl, clear[i], 0); in xaui_serdes_reset()
99 struct adapter *adap = mac->adapter; in t3_mac_reset() local
102 t3_write_reg(adap, A_XGM_RESET_CTRL + oft, F_MAC_RESET_); in t3_mac_reset()
103 t3_read_reg(adap, A_XGM_RESET_CTRL + oft); /* flush */ in t3_mac_reset()
105 t3_write_regs(adap, mac_reset_avp, ARRAY_SIZE(mac_reset_avp), oft); in t3_mac_reset()
106 t3_set_reg_field(adap, A_XGM_RXFIFO_CFG + oft, in t3_mac_reset()
108 uses_xaui(adap) ? 0 : F_RXSTRFRWRD); in t3_mac_reset()
[all …]
/kernel/linux/linux-5.10/drivers/media/usb/dvb-usb-v2/
Ddvb_usb_core.c203 struct dvb_usb_adapter *adap = stream->user_priv; in dvb_usb_data_complete() local
204 dvb_dmx_swfilter(&adap->demux, buf, len); in dvb_usb_data_complete()
210 struct dvb_usb_adapter *adap = stream->user_priv; in dvb_usb_data_complete_204() local
211 dvb_dmx_swfilter_204(&adap->demux, buf, len); in dvb_usb_data_complete_204()
217 struct dvb_usb_adapter *adap = stream->user_priv; in dvb_usb_data_complete_raw() local
218 dvb_dmx_swfilter_raw(&adap->demux, buf, len); in dvb_usb_data_complete_raw()
221 static int dvb_usbv2_adapter_stream_init(struct dvb_usb_adapter *adap) in dvb_usbv2_adapter_stream_init() argument
223 dev_dbg(&adap_to_d(adap)->udev->dev, "%s: adap=%d\n", __func__, in dvb_usbv2_adapter_stream_init()
224 adap->id); in dvb_usbv2_adapter_stream_init()
226 adap->stream.udev = adap_to_d(adap)->udev; in dvb_usbv2_adapter_stream_init()
[all …]
/kernel/linux/linux-5.10/include/media/
Dcec.h60 struct cec_adapter *adap; member
86 struct cec_adapter *adap; member
110 int (*adap_enable)(struct cec_adapter *adap, bool enable);
111 int (*adap_monitor_all_enable)(struct cec_adapter *adap, bool enable);
112 int (*adap_monitor_pin_enable)(struct cec_adapter *adap, bool enable);
113 int (*adap_log_addr)(struct cec_adapter *adap, u8 logical_addr);
114 int (*adap_transmit)(struct cec_adapter *adap, u8 attempts,
116 void (*adap_status)(struct cec_adapter *adap, struct seq_file *file);
117 void (*adap_free)(struct cec_adapter *adap);
120 int (*error_inj_show)(struct cec_adapter *adap, struct seq_file *sf);
[all …]
/kernel/linux/linux-5.10/drivers/i2c/
Di2c-core-base.c135 static int get_scl_gpio_value(struct i2c_adapter *adap) in get_scl_gpio_value() argument
137 return gpiod_get_value_cansleep(adap->bus_recovery_info->scl_gpiod); in get_scl_gpio_value()
140 static void set_scl_gpio_value(struct i2c_adapter *adap, int val) in set_scl_gpio_value() argument
142 gpiod_set_value_cansleep(adap->bus_recovery_info->scl_gpiod, val); in set_scl_gpio_value()
145 static int get_sda_gpio_value(struct i2c_adapter *adap) in get_sda_gpio_value() argument
147 return gpiod_get_value_cansleep(adap->bus_recovery_info->sda_gpiod); in get_sda_gpio_value()
150 static void set_sda_gpio_value(struct i2c_adapter *adap, int val) in set_sda_gpio_value() argument
152 gpiod_set_value_cansleep(adap->bus_recovery_info->sda_gpiod, val); in set_sda_gpio_value()
155 static int i2c_generic_bus_free(struct i2c_adapter *adap) in i2c_generic_bus_free() argument
157 struct i2c_bus_recovery_info *bri = adap->bus_recovery_info; in i2c_generic_bus_free()
[all …]

12345678910>>...17