Home
last modified time | relevance | path

Searched refs:adp (Results 1 – 15 of 15) sorted by relevance

/drivers/staging/crystalhd/
Dcrystalhd_misc.c33 static inline uint32_t crystalhd_dram_rd(struct crystalhd_adp *adp, uint32_t mem_off) in crystalhd_dram_rd() argument
35 crystalhd_reg_wr(adp, DCI_DRAM_BASE_ADDR, (mem_off >> 19)); in crystalhd_dram_rd()
36 return bc_dec_reg_rd(adp, (0x00380000 | (mem_off & 0x0007FFFF))); in crystalhd_dram_rd()
39 static inline void crystalhd_dram_wr(struct crystalhd_adp *adp, uint32_t mem_off, uint32_t val) in crystalhd_dram_wr() argument
41 crystalhd_reg_wr(adp, DCI_DRAM_BASE_ADDR, (mem_off >> 19)); in crystalhd_dram_wr()
42 bc_dec_reg_wr(adp, (0x00380000 | (mem_off & 0x0007FFFF)), val); in crystalhd_dram_wr()
45 static inline enum BC_STATUS bc_chk_dram_range(struct crystalhd_adp *adp, uint32_t start_off, uint3… in bc_chk_dram_range() argument
50 static struct crystalhd_dio_req *crystalhd_alloc_dio(struct crystalhd_adp *adp) in crystalhd_alloc_dio() argument
55 if (!adp) { in crystalhd_alloc_dio()
60 spin_lock_irqsave(&adp->lock, flags); in crystalhd_alloc_dio()
[all …]
Dcrystalhd_lnx.c31 struct crystalhd_adp *adp = (struct crystalhd_adp *) arg; in chd_dec_isr() local
33 if (adp) in chd_dec_isr()
34 rc = crystalhd_cmd_interrupt(&adp->cmds); in chd_dec_isr()
39 static int chd_dec_enable_int(struct crystalhd_adp *adp) in chd_dec_enable_int() argument
43 if (!adp || !adp->pdev) { in chd_dec_enable_int()
48 if (adp->pdev->msi_enabled) in chd_dec_enable_int()
49 adp->msi = 1; in chd_dec_enable_int()
51 adp->msi = pci_enable_msi(adp->pdev); in chd_dec_enable_int()
53 rc = request_irq(adp->pdev->irq, chd_dec_isr, IRQF_SHARED, in chd_dec_enable_int()
54 adp->name, (void *)adp); in chd_dec_enable_int()
[all …]
Dcrystalhd_hw.c33 static void crystalhd_enable_uarts(struct crystalhd_adp *adp) in crystalhd_enable_uarts() argument
35 bc_dec_reg_wr(adp, UartSelectA, BSVS_UART_STREAM); in crystalhd_enable_uarts()
36 bc_dec_reg_wr(adp, UartSelectB, BSVS_UART_DEC_OUTER); in crystalhd_enable_uarts()
40 static void crystalhd_start_dram(struct crystalhd_adp *adp) in crystalhd_start_dram() argument
42 bc_dec_reg_wr(adp, SDRAM_PARAM, ((40 / 5 - 1) << 0) | in crystalhd_start_dram()
51 bc_dec_reg_wr(adp, SDRAM_PRECHARGE, 0); in crystalhd_start_dram()
52 bc_dec_reg_wr(adp, SDRAM_EXT_MODE, 2); in crystalhd_start_dram()
53 bc_dec_reg_wr(adp, SDRAM_MODE, 0x132); in crystalhd_start_dram()
54 bc_dec_reg_wr(adp, SDRAM_PRECHARGE, 0); in crystalhd_start_dram()
55 bc_dec_reg_wr(adp, SDRAM_REFRESH, 0); in crystalhd_start_dram()
[all …]
Dcrystalhd_cmds.c105 rc = crystalhd_create_dio_pool(ctx->adp, BC_LINK_MAX_SGLS); in bc_cproc_notify_mode()
136 crystalhd_pci_cfg_rd(ctx->adp, 0, 2, in bc_cproc_get_hwtype()
138 crystalhd_pci_cfg_rd(ctx->adp, 2, 2, in bc_cproc_get_hwtype()
140 crystalhd_pci_cfg_rd(ctx->adp, 8, 1, in bc_cproc_get_hwtype()
151 idata->udata.u.regAcc.Value = bc_dec_reg_rd(ctx->adp, in bc_cproc_reg_rd()
162 bc_dec_reg_wr(ctx->adp, idata->udata.u.regAcc.Offset, in bc_cproc_reg_wr()
174 idata->udata.u.regAcc.Value = crystalhd_reg_rd(ctx->adp, in bc_cproc_link_reg_rd()
185 crystalhd_reg_wr(ctx->adp, idata->udata.u.regAcc.Offset, in bc_cproc_link_reg_wr()
203 sts = crystalhd_mem_rd(ctx->adp, idata->udata.u.devMem.StartOff, in bc_cproc_mem_rd()
223 sts = crystalhd_mem_wr(ctx->adp, idata->udata.u.devMem.StartOff, in bc_cproc_mem_wr()
[all …]
Dcrystalhd_cmds.h59 struct crystalhd_adp *adp; member
83 enum BC_STATUS crystalhd_setup_cmd_context(struct crystalhd_cmd *ctx, struct crystalhd_adp *adp);
Dcrystalhd_hw.h293 void *adp; member
359 enum BC_STATUS crystalhd_download_fw(struct crystalhd_adp *adp,
362 bool crystalhd_hw_interrupt(struct crystalhd_adp *adp, struct crystalhd_hw *hw);
Dcrystalhd_lnx.h91 void chd_set_log_level(struct crystalhd_adp *adp, char *arg);
Dcrystalhd_misc.h108 struct crystalhd_adp *adp; member
/drivers/scsi/megaraid/
Dmegaraid_mm.c119 mraid_mmadp_t *adp; in mraid_mm_ioctl() local
165 if ((adp = mraid_mm_get_adapter(argp, &rval)) == NULL) { in mraid_mm_ioctl()
173 if (!adp->quiescent) { in mraid_mm_ioctl()
183 kioc = mraid_mm_alloc_kioc(adp); in mraid_mm_ioctl()
188 if ((rval = mimd_to_kioc(argp, adp, kioc))) { in mraid_mm_ioctl()
189 mraid_mm_dealloc_kioc(adp, kioc); in mraid_mm_ioctl()
200 if ((rval = lld_ioctl(adp, kioc))) { in mraid_mm_ioctl()
203 mraid_mm_dealloc_kioc(adp, kioc); in mraid_mm_ioctl()
216 mraid_mm_dealloc_kioc(adp, kioc); in mraid_mm_ioctl()
358 mimd_to_kioc(mimd_t __user *umimd, mraid_mmadp_t *adp, uioc_t *kioc) in mimd_to_kioc() argument
[all …]
Dmega_common.h214 #define MRAID_IS_LOGICAL(adp, scp) \ argument
215 (SCP2CHANNEL(scp) == (adp)->max_channel) ? 1 : 0
217 #define MRAID_IS_LOGICAL_SDEV(adp, sdev) \ argument
218 (sdev->channel == (adp)->max_channel) ? 1 : 0
231 #define MRAID_GET_DEVICE_MAP(adp, scp, p_chan, target, islogical) \ argument
235 islogical = MRAID_IS_LOGICAL(adp, scp); \
243 (adp)->device_ids[(adp)->max_channel][SCP2TARGET(scp)]; \
246 p_chan = ((adp)->device_ids[SCP2CHANNEL(scp)] \
248 target = ((adp)->device_ids[SCP2CHANNEL(scp)] \
Dmegaraid_mbox.h223 #define ADAP2RAIDDEV(adp) ((mraid_device_t *)((adp)->raid_device)) argument
Dmegaraid_mbox.c3501 mraid_mmadp_t adp; in megaraid_cmm_register() local
3557 adp.unique_id = adapter->unique_id; in megaraid_cmm_register()
3558 adp.drvr_type = DRVRTYPE_MBOX; in megaraid_cmm_register()
3559 adp.drvr_data = (unsigned long)adapter; in megaraid_cmm_register()
3560 adp.pdev = adapter->pdev; in megaraid_cmm_register()
3561 adp.issue_uioc = megaraid_mbox_mm_handler; in megaraid_cmm_register()
3562 adp.timeout = MBOX_RESET_WAIT + MBOX_RESET_EXT_WAIT; in megaraid_cmm_register()
3563 adp.max_kioc = MBOX_MAX_USER_CMDS; in megaraid_cmm_register()
3565 if ((rval = mraid_mm_register_adp(&adp)) != 0) { in megaraid_cmm_register()
/drivers/s390/net/
Dqeth_core.h172 qeth_is_ipa_supported(&c->options.adp, f)
174 qeth_is_ipa_enabled(&c->options.adp, f)
672 struct qeth_ipa_info adp; /*Adapter parameters*/ member
Dqeth_core_main.c2951 card->options.adp.supported_funcs = in qeth_query_setadapterparms_cb()
4815 QETH_CARD_TEXT_(card, 2, "%x", card->options.adp.supported_funcs); in qeth_trace_features()
4816 QETH_CARD_TEXT_(card, 2, "%x", card->options.adp.enabled_funcs); in qeth_trace_features()
4915 card->options.adp.supported_funcs = 0; in qeth_core_hardsetup_card()
/drivers/media/dvb-frontends/
Ddib8000.c2010 const u16 *adp; in dib8000_adp_fine_tune() local
2016 adp = &adp_Q64[0]; in dib8000_adp_fine_tune()
2020 adp = &adp_Q16[0]; in dib8000_adp_fine_tune()
2024 adp = &adp_Qdefault[0]; in dib8000_adp_fine_tune()
2029 dib8000_write_word(state, 215 + i, adp[i]); in dib8000_adp_fine_tune()