Home
last modified time | relevance | path

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

1234567891011

/linux/drivers/media/usb/dvb-usb/
H A 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 …]
H A 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 …]
H A Ddvb-usb-urb.c72 struct dvb_usb_adapter *adap = stream->user_priv; in dvb_usb_data_complete() local
73 if (adap->feedcount > 0 && adap->state & DVB_USB_ADAP_STATE_DVB) in dvb_usb_data_complete()
74 dvb_dmx_swfilter(&adap->demux, buffer, length); in dvb_usb_data_complete()
79 struct dvb_usb_adapter *adap = stream->user_priv; in dvb_usb_data_complete_204() local
80 if (adap->feedcount > 0 && adap->state & DVB_USB_ADAP_STATE_DVB) in dvb_usb_data_complete_204()
81 dvb_dmx_swfilter_204(&adap->demux, buffer, length); in dvb_usb_data_complete_204()
87 struct dvb_usb_adapter *adap = stream->user_priv; in dvb_usb_data_complete_raw() local
88 if (adap->feedcount > 0 && adap->state & DVB_USB_ADAP_STATE_DVB) in dvb_usb_data_complete_raw()
89 dvb_dmx_swfilter_raw(&adap->demux, buffer, length); in dvb_usb_data_complete_raw()
92 int dvb_usb_adapter_stream_init(struct dvb_usb_adapter *adap) in dvb_usb_adapter_stream_init() argument
[all …]
H A Ddibusb-mc-common.c84 int dibusb_dib3000mc_frontend_attach(struct dvb_usb_adapter *adap) in dibusb_dib3000mc_frontend_attach() argument
86 if (le16_to_cpu(adap->dev->udev->descriptor.idVendor) == USB_VID_LITEON && in dibusb_dib3000mc_frontend_attach()
87 le16_to_cpu(adap->dev->udev->descriptor.idProduct) == in dibusb_dib3000mc_frontend_attach()
92 adap->fe_adap[0].fe = dvb_attach(dib3000mc_attach, in dibusb_dib3000mc_frontend_attach()
93 &adap->dev->i2c_adap, in dibusb_dib3000mc_frontend_attach()
96 if ((adap->fe_adap[0].fe) == NULL) in dibusb_dib3000mc_frontend_attach()
97 adap->fe_adap[0].fe = dvb_attach(dib3000mc_attach, in dibusb_dib3000mc_frontend_attach()
98 &adap->dev->i2c_adap, in dibusb_dib3000mc_frontend_attach()
101 if ((adap->fe_adap[0].fe) != NULL) { in dibusb_dib3000mc_frontend_attach()
102 if (adap->priv != NULL) { in dibusb_dib3000mc_frontend_attach()
[all …]
/linux/drivers/media/usb/pvrusb2/
H A 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()
41 &adap->demux, in pvr2_dvb_feed_func()
42 adap->buffer_storage[ in pvr2_dvb_feed_func()
62 ret = wait_event_freezable(adap->buffer_wait_data, in pvr2_dvb_feed_func()
89 struct pvr2_dvb_adapter *adap = ptr; in pvr2_dvb_notify() local
91 wake_up(&adap->buffer_wait_data); in pvr2_dvb_notify()
94 static void pvr2_dvb_stream_end(struct pvr2_dvb_adapter *adap) in pvr2_dvb_stream_end() argument
99 if (adap->thread) { in pvr2_dvb_stream_end()
100 kthread_stop(adap->thread); in pvr2_dvb_stream_end()
[all …]
H A Dpvrusb2-devattr.c182 static int pvr2_lgdt3303_attach(struct pvr2_dvb_adapter *adap) in pvr2_lgdt3303_attach() argument
184 adap->fe[0] = dvb_attach(lgdt330x_attach, &pvr2_lgdt3303_config, in pvr2_lgdt3303_attach()
186 &adap->channel.hdw->i2c_adap); in pvr2_lgdt3303_attach()
187 if (adap->fe[0]) in pvr2_lgdt3303_attach()
193 static int pvr2_lgh06xf_attach(struct pvr2_dvb_adapter *adap) in pvr2_lgh06xf_attach() argument
195 dvb_attach(simple_tuner_attach, adap->fe[0], in pvr2_lgh06xf_attach()
196 &adap->channel.hdw->i2c_adap, 0x61, in pvr2_lgh06xf_attach()
242 static int pvr2_lgdt3302_attach(struct pvr2_dvb_adapter *adap) in pvr2_lgdt3302_attach() argument
244 adap->fe[0] = dvb_attach(lgdt330x_attach, &pvr2_lgdt3302_config, in pvr2_lgdt3302_attach()
246 &adap->channel.hdw->i2c_adap); in pvr2_lgdt3302_attach()
[all …]
/linux/drivers/i2c/algos/
H A Di2c-algo-pcf.c30 #define set_pcf(adap, ctl, val) adap->setpcf(adap->data, ctl, val) argument
31 #define get_pcf(adap, ctl) adap->getpcf(adap->data, ctl) argument
32 #define get_own(adap) adap->getown(adap->data) argument
33 #define get_clock(adap) adap->getclock(adap->data) argument
34 #define i2c_outb(adap, val) adap->setpcf(adap->data, 0, val) argument
35 #define i2c_inb(adap) adap->getpcf(adap->data, 0) argument
39 static void i2c_start(struct i2c_algo_pcf_data *adap) in i2c_start() argument
41 set_pcf(adap, 1, I2C_PCF_START); in i2c_start()
44 static void i2c_repstart(struct i2c_algo_pcf_data *adap) in i2c_repstart() argument
46 set_pcf(adap, 1, I2C_PCF_REPSTART); in i2c_repstart()
[all …]
H A 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_cb(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 …]
/linux/drivers/net/ethernet/chelsio/cxgb4/
H A 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 …]
H A Dcxgb4_main.c187 static int cfg_queues(struct adapter *adap);
237 struct adapter *adap = pi->adapter; in dcb_tx_queue_prio_enable() local
238 struct sge_eth_txq *txq = &adap->sge.ethtxq[pi->first_qset]; in dcb_tx_queue_prio_enable()
258 err = t4_set_params_timeout(adap, adap->mbox, adap->pf, 0, 1, in dcb_tx_queue_prio_enable()
263 dev_err(adap->pdev_dev, in dcb_tx_queue_prio_enable()
305 void t4_os_portmod_changed(struct adapter *adap, int port_id) in t4_os_portmod_changed() argument
311 struct net_device *dev = adap->port[port_id]; in t4_os_portmod_changed()
350 struct adapter *adap = pi->adapter; in cxgb4_set_addr_hash() local
356 list_for_each_entry(entry, &adap->mac_hlist, list) { in cxgb4_set_addr_hash()
360 return t4_set_addr_hash(adap, adap->mbox, pi->viid, ucast, in cxgb4_set_addr_hash()
[all …]
H A 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
112 eosw_txq->hwtid = adap->tids.eotid_base + eosw_txq->eotid; in cxgb4_init_eosw_txq()
113 eosw_txq->cred = adap->params.ofldq_wr_cred; in cxgb4_init_eosw_txq()
123 struct adapter *adap = netdev2adap(dev); in cxgb4_clean_eosw_txq() local
125 cxgb4_eosw_txq_free_desc(adap, eosw_txq, eosw_txq->ndesc); in cxgb4_clean_eosw_txq()
132 eosw_txq->cred = adap->params.ofldq_wr_cred; in cxgb4_clean_eosw_txq()
[all …]
H A 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_inc(struct adapter *adap, const u8 *mac_addr, in cxgb4_mps_ref_inc() argument
38 spin_lock_bh(&adap->mps_ref_lock); in cxgb4_mps_ref_inc()
39 list_for_each_entry(mps_entry, &adap->mps_ref, list) { in cxgb4_mps_ref_inc()
54 list_add_tail(&mps_entry->list, &adap->mps_ref); in cxgb4_mps_ref_inc()
56 spin_unlock_bh(&adap->mps_ref_lock); in cxgb4_mps_ref_inc()
[all …]
H A Dt4_hw.c114 void t4_read_indirect(struct adapter *adap, unsigned int addr_reg, in t4_read_indirect() argument
119 t4_write_reg(adap, addr_reg, start_idx); in t4_read_indirect()
120 *vals++ = t4_read_reg(adap, data_reg); in t4_read_indirect()
137 void t4_write_indirect(struct adapter *adap, unsigned int addr_reg, in t4_write_indirect() argument
142 t4_write_reg(adap, addr_reg, start_idx++); in t4_write_indirect()
143 t4_write_reg(adap, data_reg, *vals++); in t4_write_indirect()
153 void t4_hw_pci_read_cfg4(struct adapter *adap, int reg, u32 *val) in t4_hw_pci_read_cfg4() argument
155 u32 req = FUNCTION_V(adap->pf) | REGISTER_V(reg); in t4_hw_pci_read_cfg4()
157 if (CHELSIO_CHIP_VERSION(adap->params.chip) <= CHELSIO_T5) in t4_hw_pci_read_cfg4()
162 if (is_t4(adap->params.chip)) in t4_hw_pci_read_cfg4()
[all …]
/linux/drivers/i2c/busses/
H A Di2c-cht-wc.c59 struct cht_wc_i2c_adap *adap = data; in cht_wc_i2c_adap_thread_handler() local
62 mutex_lock(&adap->adap_lock); in cht_wc_i2c_adap_thread_handler()
65 ret = regmap_read(adap->regmap, CHT_WC_EXTCHGRIRQ, &reg); in cht_wc_i2c_adap_thread_handler()
67 dev_err(&adap->adapter.dev, "Error reading extchgrirq reg\n"); in cht_wc_i2c_adap_thread_handler()
68 mutex_unlock(&adap->adap_lock); in cht_wc_i2c_adap_thread_handler()
72 reg &= ~adap->irq_mask; in cht_wc_i2c_adap_thread_handler()
75 ret = regmap_read(adap->regmap, CHT_WC_I2C_RDDATA, &adap->read_data); in cht_wc_i2c_adap_thread_handler()
77 adap->io_error = true; in cht_wc_i2c_adap_thread_handler()
83 ret = regmap_write(adap->regmap, CHT_WC_EXTCHGRIRQ, reg); in cht_wc_i2c_adap_thread_handler()
85 dev_err(&adap->adapter.dev, "Error writing extchgrirq reg\n"); in cht_wc_i2c_adap_thread_handler()
[all …]
H A Di2c-uniphier.c40 struct i2c_adapter adap; member
61 static int uniphier_i2c_xfer_byte(struct i2c_adapter *adap, u32 txdata, in uniphier_i2c_xfer_byte() argument
64 struct uniphier_i2c_priv *priv = i2c_get_adapdata(adap); in uniphier_i2c_xfer_byte()
73 time_left = wait_for_completion_timeout(&priv->comp, adap->timeout); in uniphier_i2c_xfer_byte()
84 static int uniphier_i2c_send_byte(struct i2c_adapter *adap, u32 txdata) in uniphier_i2c_send_byte() argument
89 ret = uniphier_i2c_xfer_byte(adap, txdata, &rxdata); in uniphier_i2c_send_byte()
102 static int uniphier_i2c_tx(struct i2c_adapter *adap, u16 addr, u16 len, in uniphier_i2c_tx() argument
107 ret = uniphier_i2c_send_byte(adap, addr << 1 | in uniphier_i2c_tx()
114 ret = uniphier_i2c_send_byte(adap, in uniphier_i2c_tx()
123 static int uniphier_i2c_rx(struct i2c_adapter *adap, u16 addr, u16 len, in uniphier_i2c_rx() argument
[all …]
/linux/drivers/media/pci/pt3/
H A 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 …]
H A 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 …]
/linux/drivers/net/ethernet/chelsio/cxgb3/
H A 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 …]
H A 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 …]
/linux/drivers/usb/misc/
H A Dusb-ljca.c202 static void ljca_handle_event(struct ljca_adapter *adap, in ljca_handle_event() argument
207 list_for_each_entry(client, &adap->client_list, link) { in ljca_handle_event()
227 static void ljca_handle_cmd_ack(struct ljca_adapter *adap, struct ljca_msg *header) in ljca_handle_cmd_ack() argument
229 struct ljca_msg *tx_header = adap->tx_buf; in ljca_handle_cmd_ack()
234 spin_lock_irqsave(&adap->lock, flags); in ljca_handle_cmd_ack()
237 spin_unlock_irqrestore(&adap->lock, flags); in ljca_handle_cmd_ack()
238 dev_err(adap->dev, "cmd ack mismatch error\n"); in ljca_handle_cmd_ack()
242 ibuf_len = adap->ex_buf_len; in ljca_handle_cmd_ack()
243 ibuf = adap->ex_buf; in ljca_handle_cmd_ack()
252 adap->actual_length = actual_len; in ljca_handle_cmd_ack()
[all …]
/linux/drivers/media/cec/core/
H A Dcec-priv.h17 pr_info("cec-%s: " fmt, adap->name, ## arg); \
20 #define call_op(adap, op, arg...) \ argument
21 ((adap->ops->op && !adap->devnode.unregistered) ? \
22 adap->ops->op(adap, ## arg) : 0)
24 #define call_void_op(adap, op, arg...) \ argument
26 if (adap->ops->op && !adap->devnode.unregistered) \
27 adap->ops->op(adap, ## arg); \
42 int cec_monitor_all_cnt_inc(struct cec_adapter *adap);
43 void cec_monitor_all_cnt_dec(struct cec_adapter *adap);
44 int cec_monitor_pin_cnt_inc(struct cec_adapter *adap);
[all …]
/linux/drivers/media/usb/as102/
H A Das10x_cmd_stream.c18 int as10x_cmd_add_PID_filter(struct as10x_bus_adapter_t *adap, in as10x_cmd_add_PID_filter() argument
24 pcmd = adap->cmd; in as10x_cmd_add_PID_filter()
25 prsp = adap->rsp; in as10x_cmd_add_PID_filter()
28 as10x_cmd_build(pcmd, (++adap->cmd_xid), in as10x_cmd_add_PID_filter()
43 if (adap->ops->xfer_cmd) { in as10x_cmd_add_PID_filter()
44 error = adap->ops->xfer_cmd(adap, (uint8_t *) pcmd, in as10x_cmd_add_PID_filter()
75 int as10x_cmd_del_PID_filter(struct as10x_bus_adapter_t *adap, in as10x_cmd_del_PID_filter() argument
81 pcmd = adap->cmd; in as10x_cmd_del_PID_filter()
82 prsp = adap->rsp; in as10x_cmd_del_PID_filter()
85 as10x_cmd_build(pcmd, (++adap->cmd_xid), in as10x_cmd_del_PID_filter()
[all …]
H A Das10x_cmd.c18 int as10x_cmd_turn_on(struct as10x_bus_adapter_t *adap) in as10x_cmd_turn_on() argument
23 pcmd = adap->cmd; in as10x_cmd_turn_on()
24 prsp = adap->rsp; in as10x_cmd_turn_on()
27 as10x_cmd_build(pcmd, (++adap->cmd_xid), in as10x_cmd_turn_on()
34 if (adap->ops->xfer_cmd) { in as10x_cmd_turn_on()
35 error = adap->ops->xfer_cmd(adap, (uint8_t *) pcmd, in as10x_cmd_turn_on()
59 int as10x_cmd_turn_off(struct as10x_bus_adapter_t *adap) in as10x_cmd_turn_off() argument
64 pcmd = adap->cmd; in as10x_cmd_turn_off()
65 prsp = adap->rsp; in as10x_cmd_turn_off()
68 as10x_cmd_build(pcmd, (++adap->cmd_xid), in as10x_cmd_turn_off()
[all …]
/linux/drivers/platform/x86/dell/
H A Ddell-lis3lv02d.c71 static int detect_lis3lv02d(struct i2c_adapter *adap, unsigned short addr) in detect_lis3lv02d() argument
76 dev_info(&adap->dev, "Probing for lis3lv02d on address 0x%02x\n", addr); in detect_lis3lv02d()
78 err = i2c_smbus_xfer(adap, addr, 0, I2C_SMBUS_READ, LIS3_WHO_AM_I, in detect_lis3lv02d()
91 dev_warn(&adap->dev, "Unknown who-am-i register value 0x%02x\n", in detect_lis3lv02d()
96 dev_info(&adap->dev, in detect_lis3lv02d()
103 static bool i2c_adapter_is_main_i801(struct i2c_adapter *adap) in i2c_adapter_is_main_i801() argument
109 return strstarts(adap->name, "SMBus I801 adapter"); in i2c_adapter_is_main_i801()
114 struct i2c_adapter *adap, **adap_ret = data; in find_i801() local
116 adap = i2c_verify_adapter(dev); in find_i801()
117 if (!adap) in find_i801()
[all …]
/linux/drivers/media/cec/usb/extron-da-hd-4k-plus/
H A Dcec-splitter.c15 static int cec_feature_abort_reason(struct cec_adapter *adap, in cec_feature_abort_reason() argument
31 return cec_transmit_msg(adap, &tx_msg, false); in cec_feature_abort_reason()
37 struct cec_adapter *adap = p->adap; in cec_port_out_active_source() local
40 if (!adap->is_configured) in cec_port_out_active_source()
43 cec_msg_init(&msg, adap->log_addrs.log_addr[0], 0); in cec_port_out_active_source()
44 cec_msg_active_source(&msg, adap->phys_addr); in cec_port_out_active_source()
45 cec_transmit_msg(adap, &msg, false); in cec_port_out_active_source()
60 struct cec_adapter *adap = p->adap; in cec_port_out_standby() local
63 if (!adap->is_configured) in cec_port_out_standby()
65 cec_msg_init(&msg, adap->log_addrs.log_addr[0], 0); in cec_port_out_standby()
[all …]

1234567891011