/linux/drivers/media/usb/dvb-usb/ |
A D | dvb-usb-dvb.c | 35 ret = adap->props.fe[adap->active_fe].streaming_ctrl(adap, 0); in dvb_usb_ctrl_feed() 47 adap->fe_adap[adap->active_fe].pid_filtering ? in dvb_usb_ctrl_feed() 51 adap->fe_adap[adap->active_fe].pid_filtering && in dvb_usb_ctrl_feed() 61 adap->props.fe[adap->active_fe].caps & in dvb_usb_ctrl_feed() 64 ret = adap->props.fe[adap->active_fe].pid_filter_ctrl(adap, in dvb_usb_ctrl_feed() 73 ret = adap->props.fe[adap->active_fe].streaming_ctrl(adap, 1); in dvb_usb_ctrl_feed() 156 adap->dvb_adap.priv = adap; in dvb_usb_adapter_dvb_init() 173 adap->demux.priv = adap; in dvb_usb_adapter_dvb_init() 223 adap->demux.dmx.close(&adap->demux.dmx); in dvb_usb_adapter_dvb_exit() 285 adap->dev->desc->name, adap->id, i); in dvb_usb_adapter_frontend_init() [all …]
|
A D | dib0700_devices.c | 88 if (adap->id == 0) { in bristol_frontend_attach() 105 return (adap->fe_adap[0].fe = dvb_attach(dib3000mc_attach, &adap->dev->i2c_adap, in bristol_frontend_attach() 280 if (adap->id == 0) { in stk7700P2_frontend_attach() 299 adap->fe_adap[0].fe = state->dib7000p_ops.init(&adap->dev->i2c_adap, in stk7700P2_frontend_attach() 313 if (adap->id == 0) { in stk7700d_frontend_attach() 333 adap->fe_adap[0].fe = state->dib7000p_ops.init(&adap->dev->i2c_adap, in stk7700d_frontend_attach() 486 adap->fe_adap[0].fe = state->dib7000p_ops.init(&adap->dev->i2c_adap, 0x80, in stk7700ph_frontend_attach() 903 if (adap->id == 0) { in dib7070p_tuner_attach() 1311 if (adap->id == 0) { in dib807x_tuner_attach() 2174 adap->fe_adap[0].fe = state->dib8000_ops.init(&adap->dev->i2c_adap, in tfe8096p_frontend_attach() [all …]
|
/linux/drivers/media/usb/pvrusb2/ |
A D | pvrusb2-dvb.c | 256 adap->dvb_adap.priv = adap; in pvr2_dvb_adapter_init() 261 adap->demux.priv = adap; in pvr2_dvb_adapter_init() 275 adap->dmxdev.filternum = adap->demux.filternum; in pvr2_dvb_adapter_init() 276 adap->dmxdev.demux = &adap->demux.dmx; in pvr2_dvb_adapter_init() 286 dvb_net_init(&adap->dvb_adap, &adap->dvb_net, &adap->demux.dmx); in pvr2_dvb_adapter_init() 302 adap->demux.dmx.close(&adap->demux.dmx); in pvr2_dvb_adapter_exit() 345 adap->fe[0]->ops.analog_ops.standby(adap->fe[0]); in pvr2_dvb_frontend_init() 365 adap->fe[1]->tuner_priv = adap->fe[0]->tuner_priv; in pvr2_dvb_frontend_init() 380 adap->fe[1]->ops.analog_ops.standby(adap->fe[1]); in pvr2_dvb_frontend_init() 454 adap = kzalloc(sizeof(*adap), GFP_KERNEL); in pvr2_dvb_create() [all …]
|
/linux/drivers/i2c/busses/ |
A D | i2c-cht-wc.c | 74 ret = regmap_read(adap->regmap, CHT_WC_I2C_RDDATA, &adap->read_data); in cht_wc_i2c_adap_thread_handler() 88 adap->done = true; in cht_wc_i2c_adap_thread_handler() 161 if (!adap->done) in cht_wc_i2c_adap_smbus_xfer() 239 if (adap->irq_mask != adap->old_irq_mask) { in cht_wc_i2c_irq_sync_unlock() 243 adap->old_irq_mask = adap->irq_mask; in cht_wc_i2c_irq_sync_unlock() 324 adap = devm_kzalloc(&pdev->dev, sizeof(*adap), GFP_KERNEL); in cht_wc_i2c_adap_i2c_probe() 325 if (!adap) in cht_wc_i2c_adap_i2c_probe() 361 adap->client_irq = irq_create_mapping(adap->irq_domain, 0); in cht_wc_i2c_adap_i2c_probe() 367 irq_set_chip_data(adap->client_irq, adap); in cht_wc_i2c_adap_i2c_probe() 368 irq_set_chip_and_handler(adap->client_irq, &adap->irqchip, in cht_wc_i2c_adap_i2c_probe() [all …]
|
A D | i2c-au1550.c | 41 struct i2c_adapter adap; member 74 if (wait_xfer_done(adap)) in wait_ack() 124 WR(adap, PSC_SMBTXRX, addr); in do_address() 126 if (wait_ack(adap)) in do_address() 135 if (wait_xfer_done(adap)) in wait_for_rx_byte() 169 WR(adap, PSC_SMBTXRX, 0); in i2c_read() 178 if (wait_master_done(adap)) in i2c_read() 198 if (wait_ack(adap)) in i2c_write() 207 if (wait_master_done(adap)) in i2c_write() 320 priv->adap.nr = pdev->id; in i2c_au1550_probe() [all …]
|
A D | i2c-eg20t.c | 246 pch_dbg(adap, in pch_i2c_init() 270 pch_i2c_init(adap); in pch_i2c_wait_for_bus_idle() 323 pch_i2c_stop(adap); in pch_i2c_wait_for_check_xfer() 324 pch_i2c_init(adap); in pch_i2c_wait_for_check_xfer() 333 pch_i2c_init(adap); in pch_i2c_wait_for_check_xfer() 400 pch_i2c_start(adap); in pch_i2c_writebytes() 434 pch_i2c_stop(adap); in pch_i2c_writebytes() 539 pch_i2c_start(adap); in pch_i2c_readbytes() 546 pch_i2c_stop(adap); in pch_i2c_readbytes() 579 pch_i2c_stop(adap); in pch_i2c_readbytes() [all …]
|
/linux/sound/soc/codecs/ |
A D | l3.c | 31 adap->setclk(adap, 0); in sendbyte() 35 adap->setclk(adap, 1); in sendbyte() 54 adap->setmode(adap, 0); in sendbytes() 57 adap->setmode(adap, 1); in sendbytes() 65 adap->setclk(adap, 1); in l3_write() 66 adap->setdat(adap, 1); in l3_write() 67 adap->setmode(adap, 1); in l3_write() 70 adap->setmode(adap, 0); in l3_write() 77 adap->setclk(adap, 1); in l3_write() 78 adap->setdat(adap, 1); in l3_write() [all …]
|
/linux/drivers/media/cec/core/ |
A D | cec-adap.c | 43 (adap->ops->op ? adap->ops->op(adap, ## arg) : 0) 48 adap->ops->op(adap, ## arg); \ 575 if (adap->ops->adap_transmit(adap, data->attempts, in cec_thread_func() 723 struct cec_adapter *adap = data->adap; in cec_wait_timeout() local 866 if (!adap->is_configured && !adap->is_configuring) { in cec_transmit_msg_fh() 893 data->adap = adap; in cec_transmit_msg_fh() 1310 err = adap->ops->adap_log_addr(adap, log_addr); in cec_config_log_addr() 1578 WARN_ON(adap->ops->adap_enable(adap, false)); in __cec_s_phys_addr() 1592 adap->ops->adap_enable(adap, true)) { in __cec_s_phys_addr() 1600 WARN_ON(adap->ops->adap_enable(adap, false)); in __cec_s_phys_addr() [all …]
|
A D | cec-core.c | 205 if (!adap->ops->error_inj_parse_line(adap, line)) { in cec_error_inj_write() 218 return adap->ops->error_inj_show(adap, sf); in cec_error_inj_show() 252 adap = kzalloc(sizeof(*adap), GFP_KERNEL); in cec_allocate_adapter() 253 if (!adap) in cec_allocate_adapter() 255 strscpy(adap->name, name, sizeof(adap->name)); in cec_allocate_adapter() 299 snprintf(adap->input_phys, sizeof(adap->input_phys), in cec_allocate_adapter() 302 adap->rc->device_name = adap->name; in cec_allocate_adapter() 303 adap->rc->input_phys = adap->input_phys; in cec_allocate_adapter() 310 adap->rc->priv = adap; in cec_allocate_adapter() 357 dev_set_drvdata(&adap->devnode.dev, adap); in cec_register_adapter() [all …]
|
A D | cec-api.c | 38 struct cec_adapter *adap = fh->adap; in cec_poll() local 432 adap->cec_follower && adap->cec_follower != fh) in cec_s_mode() 439 adap->cec_initiator && adap->cec_initiator != fh) in cec_s_mode() 507 struct cec_adapter *adap = fh->adap; in cec_ioctl() local 581 fh->adap = adap; in cec_open() 593 err = adap->ops->adap_enable(adap, true); in cec_open() 609 if (adap->pin && adap->pin->ops->read_hpd) { in cec_open() 610 err = adap->pin->ops->read_hpd(adap); in cec_open() 617 if (adap->pin && adap->pin->ops->read_5v) { in cec_open() 618 err = adap->pin->ops->read_5v(adap); in cec_open() [all …]
|
/linux/drivers/net/ethernet/chelsio/cxgb4/ |
A D | cxgb4_uld.c | 59 struct adapter *adap = q->adap; in uldrx_flush_handler() local 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() 195 ret = t4_set_params(adap, adap->mbox, adap->pf, in setup_sge_queues_uld() 226 t4_set_params(adap, adap->mbox, adap->pf, in free_sge_queues_uld() 294 ciq_size = 64 + adap->vres.cq.size + adap->tids.nftids; in cfg_queues_uld() 411 t4_ofld_eq_free(adap, adap->mbox, adap->pf, 0, in free_sge_txq_uld() 434 err = t4_sge_alloc_uld_txq(adap, txq, adap->port[i / j], in alloc_sge_txq_uld() 700 ret = t4_set_params(adap, adap->mbox, adap->pf, in cxgb4_set_ktls_feature() [all …]
|
A D | cxgb4_main.c | 259 err = t4_set_params_timeout(adap, adap->mbox, adap->pf, 0, 1, in dcb_tx_queue_prio_enable() 1260 err = t4_set_params(adap, adap->mbox, adap->pf, 0, 1, in cxgb4_set_rspq_intr_params() 4216 ret = t4_cfg_pfvf(adap, adap->mbox, adap->pf, 0, adap->sge.egr_sz, 64, in adap_init1() 4779 ret = t4_fw_hello(adap, adap->mbox, adap->mbox, in adap_init0() 4957 ret = t4_query_params(adap, adap->mbox, adap->pf, 0, in adap_init0() 5127 ret = t4_query_params(adap, adap->mbox, adap->pf, 0, in adap_init0() 5134 ret = t4_query_params(adap, adap->mbox, adap->pf, 0, in adap_init0() 5143 ret = t4_query_params(adap, adap->mbox, adap->pf, 0, in adap_init0() 5153 ret = t4_query_params(adap, adap->mbox, adap->pf, 0, in adap_init0() 5346 ret = t4_query_params(adap, adap->mbox, adap->pf, 0, in adap_init0() [all …]
|
A D | cxgb4_mps.c | 13 spin_lock_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() 36 spin_lock(&adap->mps_ref_lock); 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() 60 spin_lock_bh(&adap->mps_ref_lock); in cxgb4_mps_ref_inc() 89 ret = t4_free_mac_filt(adap, adap->mbox, viid, in cxgb4_free_mac_filt() 106 ret = t4_alloc_mac_filt(adap, adap->mbox, viid, free, in cxgb4_alloc_mac_filt() 223 INIT_LIST_HEAD(&adap->mps_ref); in cxgb4_init_mps_ref_entries() 232 if (list_empty(&adap->mps_ref)) in cxgb4_free_mps_ref_entries() [all …]
|
A D | cxgb4_tc_mqprio.c | 34 adap->params.nsched_cls); in cxgb4_mqprio_validate() 81 if (qoffset >= adap->tids.neotids || qcount > adap->tids.neotids) in cxgb4_mqprio_validate() 160 adap->sge.eohw_rxq = kcalloc(adap->sge.eoqsets, in cxgb4_mqprio_alloc_hw_resources() 163 if (!adap->sge.eohw_rxq) in cxgb4_mqprio_alloc_hw_resources() 166 adap->sge.eohw_txq = kcalloc(adap->sge.eoqsets, in cxgb4_mqprio_alloc_hw_resources() 169 if (!adap->sge.eohw_txq) { in cxgb4_mqprio_alloc_hw_resources() 634 if (!adap->tc_mqprio || !adap->tc_mqprio->port_mqprio) in cxgb4_mqprio_stop_offload() 638 for_each_port(adap, i) { in cxgb4_mqprio_stop_offload() 639 dev = adap->port[i]; in cxgb4_mqprio_stop_offload() 706 if (adap->tc_mqprio) { in cxgb4_cleanup_tc_mqprio() [all …]
|
A D | t4_hw.c | 466 CH_WARN(adap, in t4_edc_err_read() 470 CH_WARN(adap, in t4_edc_err_read() 3367 ret = t4_get_fw_version(adap, &adap->params.fw_vers); in t4_check_fw_version() 3370 ret = t4_get_fw_version(adap, &adap->params.fw_vers); in t4_check_fw_version() 3504 ret = t4_fw_upgrade(adap, adap->mbox, fw_data, in t4_prep_fw() 3722 ret = t4_query_params(adap, adap->mbox, adap->pf, 0, 1, in t4_phy_fw_ver() 3790 ret = t4_query_params_rw(adap, adap->mbox, adap->pf, 0, 1, in t4_load_phy_fw() 3817 ret = t4_set_params_timeout(adap, adap->mbox, adap->pf, 0, 1, in t4_load_phy_fw() 5279 return (adap->flags & CXGB4_FW_OK) && !adap->use_bd; in t4_use_ldst() 6815 ret = t4_query_params(adap, adap->mbox, adap->pf, 0, in t4_read_sge_dbqtimers() [all …]
|
/linux/drivers/i2c/algos/ |
A D | i2c-algo-pcf.c | 38 #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 124 adap->waitforpin(adap->data); in wait_for_pin() 168 i2c_outb(adap, get_own(adap)); in pcf_init_8584() 184 i2c_outb(adap, get_clock(adap)); in pcf_init_8584() 304 adap->xfer_begin(adap->data); in pcf_xfer() [all …]
|
A D | i2c-algo-bit.c | 48 #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 120 scllo(adap); in i2c_start() 219 udelay(i == 7 ? adap->udelay / 2 : adap->udelay); in i2c_inb() 245 scl = (adap->getscl == NULL) ? 1 : getscl(adap); in test_bus() 255 scl = (adap->getscl == NULL) ? 1 : getscl(adap); in test_bus() 269 scl = (adap->getscl == NULL) ? 1 : getscl(adap); in test_bus() 283 scl = (adap->getscl == NULL) ? 0 : getscl(adap); in test_bus() [all …]
|
A D | i2c-algo-pca.c | 26 #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 50 pca_outw(adap, I2C_PCA_IND, adap->bus_settings.mode); in pca_reset() 52 pca_outw(adap, I2C_PCA_IND, adap->bus_settings.tlow); in pca_reset() 54 pca_outw(adap, I2C_PCA_IND, adap->bus_settings.thi); in pca_reset() [all …]
|
/linux/drivers/media/pci/pt3/ |
A D | pt3_dma.c | 77 idx = adap->buf_idx; in pt3_proc_dma() 78 ofs = adap->buf_ofs; in pt3_proc_dma() 86 p = &adap->buffer[adap->buf_idx].data[adap->buf_ofs]; in pt3_proc_dma() 99 adap->buf_idx = idx; in pt3_proc_dma() 123 adap->buf_idx = 0; in pt3_init_dmabuf() 124 adap->buf_ofs = 0; in pt3_init_dmabuf() 135 adap->buffer[i].data, adap->buffer[i].b_addr); in pt3_free_dmabuf() 136 adap->num_bufs = 0; in pt3_free_dmabuf() 140 adap->desc_buf[i].descs, adap->desc_buf[i].b_addr); in pt3_free_dmabuf() 156 adap->num_bufs = 0; in pt3_alloc_dmabuf() [all …]
|
A D | pt3.c | 464 adap->dvb_adap.num, adap->dmxdev.dvbdev->id); in pt3_start_streaming() 471 adap->dvb_adap.num, adap->dmxdev.dvbdev->id); in pt3_start_streaming() 487 adap->dvb_adap.num, adap->fe->id); in pt3_stop_streaming() 518 if (adap->num_feeds > 0 || !adap->thread) in pt3_stop_feed() 532 adap = kzalloc(sizeof(*adap), GFP_KERNEL); in pt3_alloc_adapter() 533 if (!adap) in pt3_alloc_adapter() 553 adap->demux.priv = adap; in pt3_alloc_adapter() 565 adap->dmxdev.demux = &adap->demux.dmx; in pt3_alloc_adapter() 589 kfree(adap); in pt3_alloc_adapter() 609 if (adap->fe) { in pt3_cleanup_adapter() [all …]
|
/linux/drivers/media/usb/dvb-usb-v2/ |
A D | dvb_usb_core.c | 226 adap->stream.udev = adap_to_d(adap)->udev; in dvb_usbv2_adapter_stream_init() 227 adap->stream.user_priv = adap; in dvb_usbv2_adapter_stream_init() 298 ret = adap->props->pid_filter_ctrl(adap, 1); in dvb_usb_start_feed() 367 ret = adap->props->pid_filter_ctrl(adap, 0); in dvb_usb_stop_feed() 447 adap->dvb_adap.priv = adap; in dvb_usbv2_adapter_dvb_init() 467 adap->demux.priv = adap; in dvb_usbv2_adapter_dvb_init() 491 ret = dvb_net_init(&adap->dvb_adap, &adap->dvb_net, &adap->demux.dmx); in dvb_usbv2_adapter_dvb_init() 519 adap->demux.dmx.close(&adap->demux.dmx); in dvb_usbv2_adapter_dvb_exit() 638 memset(adap->fe, 0, sizeof(adap->fe)); in dvb_usbv2_adapter_frontend_init() 659 adap->fe_init[i] = adap->fe[i]->ops.init; in dvb_usbv2_adapter_frontend_init() [all …]
|
/linux/drivers/net/ethernet/chelsio/cxgb3/ |
A D | mc5.c | 128 struct adapter *adap = mc5->adapter; in init_mask_data_array() local 143 dbgi_wr_data3(adap, 0, 0, 0); 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() 217 dbgi_wr_data3(adap, 1, 0, 0); in init_idt52100() 230 struct adapter *adap = mc5->adapter; in init_idt43102() local 277 dbgi_wr_data3(adap, 0xf0000000, 0, 0); in init_idt43102() 313 struct adapter *adap = mc5->adapter; in t3_mc5_init() local 369 struct adapter *adap = mc5->adapter; in t3_mc5_intr_handler() local 373 CH_ALERT(adap, "MC5 parity error\n"); in t3_mc5_intr_handler() [all …]
|
A D | xgmac.c | 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() 111 if (uses_xaui(adap)) { in t3_mac_reset() 117 CH_ERR(adap, in t3_mac_reset() 133 if (is_10G(adap)) in t3_mac_reset() 135 else if (uses_xaui(adap)) in t3_mac_reset() 193 if (is_10G(adap)) in t3b2_mac_reset() 195 else if (uses_xaui(adap)) in t3b2_mac_reset() 409 if (is_10G(adap)) in t3_mac_set_mtu() 521 if (is_10G(adap)) in t3_mac_disable() [all …]
|
/linux/drivers/i2c/ |
A D | i2c-core-base.c | 277 return adap->bus_recovery_info->recover_bus(adap); in i2c_recover_bus() 1419 if (!adap) in i2c_handle_smbus_host_notify() 1472 dev_set_name(&adap->dev, "i2c-%d", adap->nr); in i2c_register_adapter() 1493 dev_dbg(&adap->dev, "adapter [%s] registered\n", adap->name); in i2c_register_adapter() 1541 id = idr_alloc(&i2c_adapter_idr, adap, adap->nr, adap->nr + 1, GFP_KERNEL); in __i2c_add_numbered_adapter() 1714 dev_dbg(&adap->dev, "adapter [%s] unregistered\n", adap->name); in i2c_del_adapter() 1738 memset(&adap->dev, 0, sizeof(adap->dev)); in i2c_del_adapter() 2090 if (adap->quirks && i2c_check_for_quirks(adap, msgs, num)) in __i2c_transfer() 2111 ret = adap->algo->master_xfer_atomic(adap, msgs, num); in __i2c_transfer() 2113 ret = adap->algo->master_xfer(adap, msgs, num); in __i2c_transfer() [all …]
|
/linux/include/media/ |
A D | cec.h | 60 struct cec_adapter *adap; member 86 struct cec_adapter *adap; member 117 void (*adap_free)(struct cec_adapter *adap); 259 return adap->priv; in cec_get_drvdata() 269 return adap->phys_addr == 0; in cec_is_sink() 281 return adap && adap->devnode.registered; in cec_is_registered() 295 void cec_delete_adapter(struct cec_adapter *adap); 303 void cec_s_conn_info(struct cec_adapter *adap, 334 void cec_received_msg_ts(struct cec_adapter *adap, 340 cec_received_msg_ts(adap, msg, ktime_get()); in cec_received_msg() [all …]
|