/drivers/soc/mediatek/ |
D | mtk-pmic-wrap.c | 1341 int (*pwrap_read)(struct pmic_wrapper *wrp, u32 adr, u32 *rdata); 1342 int (*pwrap_write)(struct pmic_wrapper *wrp, u32 adr, u32 wdata); 1389 int (*init_reg_clock)(struct pmic_wrapper *wrp); 1390 int (*init_soc_specific)(struct pmic_wrapper *wrp); 1393 static u32 pwrap_readl(struct pmic_wrapper *wrp, enum pwrap_regs reg) in pwrap_readl() argument 1395 return readl(wrp->base + wrp->master->regs[reg]); in pwrap_readl() 1398 static void pwrap_writel(struct pmic_wrapper *wrp, u32 val, enum pwrap_regs reg) in pwrap_writel() argument 1400 writel(val, wrp->base + wrp->master->regs[reg]); in pwrap_writel() 1403 static u32 pwrap_get_fsm_state(struct pmic_wrapper *wrp) in pwrap_get_fsm_state() argument 1407 val = pwrap_readl(wrp, PWRAP_WACS2_RDATA); in pwrap_get_fsm_state() [all …]
|
/drivers/usb/musb/ |
D | musb_dsps.c | 104 const struct dsps_musb_wrapper *wrp; /* wrapper register offsets */ member 139 wait = msecs_to_jiffies(glue->wrp->poll_timeout); in dsps_mod_timer() 171 const struct dsps_musb_wrapper *wrp = glue->wrp; in dsps_musb_enable() local 176 epmask = ((musb->epmask & wrp->txep_mask) << wrp->txep_shift) | in dsps_musb_enable() 177 ((musb->epmask & wrp->rxep_mask) << wrp->rxep_shift); in dsps_musb_enable() 178 coremask = (wrp->usb_bitmap & ~MUSB_INTR_SOF); in dsps_musb_enable() 180 musb_writel(reg_base, wrp->epintr_set, epmask); in dsps_musb_enable() 181 musb_writel(reg_base, wrp->coreintr_set, coremask); in dsps_musb_enable() 197 const struct dsps_musb_wrapper *wrp = glue->wrp; in dsps_musb_disable() local 200 musb_writel(reg_base, wrp->coreintr_clear, wrp->usb_bitmap); in dsps_musb_disable() [all …]
|
/drivers/scsi/csiostor/ |
D | csio_scsi.c | 257 struct csio_wr_pair wrp; in csio_scsi_cmd() local 262 req->drv_status = csio_wr_get(hw, req->eq_idx, size, &wrp); in csio_scsi_cmd() 266 if (wrp.size1 >= size) { in csio_scsi_cmd() 268 csio_scsi_init_cmd_wr(req, wrp.addr1, size); in csio_scsi_cmd() 277 memcpy(wrp.addr1, tmpwr, wrp.size1); in csio_scsi_cmd() 278 memcpy(wrp.addr2, tmpwr + wrp.size1, size - wrp.size1); in csio_scsi_cmd() 360 csio_scsi_init_read_wr(struct csio_ioreq *req, void *wrp, uint32_t size) in csio_scsi_init_read_wr() argument 364 struct fw_scsi_read_wr *wr = (struct fw_scsi_read_wr *)wrp; in csio_scsi_init_read_wr() 393 csio_scsi_fcp_cmnd(req, (void *)((uintptr_t)wrp + in csio_scsi_init_read_wr() 397 sgl = (struct ulptx_sgl *)((uintptr_t)wrp + in csio_scsi_init_read_wr() [all …]
|
D | csio_wr.c | 864 struct csio_wr_pair *wrp) in csio_wr_get() argument 910 wrp->addr1 = cwr; in csio_wr_get() 911 wrp->size1 = (uint32_t)((uintptr_t)q->vwrap - (uintptr_t)cwr); in csio_wr_get() 912 wrp->addr2 = q->vstart; in csio_wr_get() 913 wrp->size2 = req_sz - wrp->size1; in csio_wr_get() 914 q->pidx = (uint16_t)(ALIGN(wrp->size2, CSIO_QCREDIT_SZ) / in csio_wr_get() 919 wrp->addr1 = cwr; in csio_wr_get() 920 wrp->size1 = req_sz; in csio_wr_get() 921 wrp->addr2 = NULL; in csio_wr_get() 922 wrp->size2 = 0; in csio_wr_get() [all …]
|
D | csio_lnode.c | 1728 struct csio_wr_pair wrp; in csio_ln_mgmt_submit_wr() local 1754 ret = csio_wr_get(hw, mgmtm->eq_idx, wr_size, &wrp); in csio_ln_mgmt_submit_wr() 1768 csio_wr_copy_to_wrp(&fw_wr[0], &wrp, wr_off, in csio_ln_mgmt_submit_wr() 1774 csio_wr_copy_to_wrp(pld->vaddr, &wrp, wr_off, im_len); in csio_ln_mgmt_submit_wr() 1781 csio_wr_copy_to_wrp(&dsgl, &wrp, ALIGN(wr_off, 8), in csio_ln_mgmt_submit_wr()
|
/drivers/net/wireless/ath/ath11k/ |
D | hal.c | 227 hal->wrp.vaddr = dma_alloc_coherent(ab->dev, size, &hal->wrp.paddr, in ath11k_hal_alloc_cont_wrp() 229 if (!hal->wrp.vaddr) in ath11k_hal_alloc_cont_wrp() 240 if (!hal->wrp.vaddr) in ath11k_hal_free_cont_wrp() 245 hal->wrp.vaddr, hal->wrp.paddr); in ath11k_hal_free_cont_wrp() 246 hal->wrp.vaddr = NULL; in ath11k_hal_free_cont_wrp() 532 return ab->hal.wrp.paddr + in ath11k_hal_srng_get_hp_addr() 534 (unsigned long)ab->hal.wrp.vaddr); in ath11k_hal_srng_get_hp_addr() 552 return ab->hal.wrp.paddr + in ath11k_hal_srng_get_tp_addr() 554 (unsigned long)ab->hal.wrp.vaddr); in ath11k_hal_srng_get_tp_addr() 1004 srng->u.src_ring.hp_addr = (void *)(hal->wrp.vaddr + in ath11k_hal_srng_setup() [all …]
|
D | hal.h | 904 } wrp; member
|
/drivers/net/wireless/ath/ath12k/ |
D | hal.c | 1213 hal->wrp.vaddr = dma_alloc_coherent(ab->dev, size, &hal->wrp.paddr, in ath12k_hal_alloc_cont_wrp() 1215 if (!hal->wrp.vaddr) in ath12k_hal_alloc_cont_wrp() 1226 if (!hal->wrp.vaddr) in ath12k_hal_free_cont_wrp() 1231 hal->wrp.vaddr, hal->wrp.paddr); in ath12k_hal_free_cont_wrp() 1232 hal->wrp.vaddr = NULL; in ath12k_hal_free_cont_wrp() 1503 return ab->hal.wrp.paddr + in ath12k_hal_srng_get_hp_addr() 1505 (unsigned long)ab->hal.wrp.vaddr); in ath12k_hal_srng_get_hp_addr() 1523 return ab->hal.wrp.paddr + in ath12k_hal_srng_get_tp_addr() 1525 (unsigned long)ab->hal.wrp.vaddr); in ath12k_hal_srng_get_tp_addr() 1953 srng->u.src_ring.hp_addr = (void *)(hal->wrp.vaddr + in ath12k_hal_srng_setup() [all …]
|
D | hal.h | 1016 } wrp; member
|
/drivers/net/ethernet/chelsio/cxgb3/ |
D | sge.c | 1095 struct work_request_hdr *wrp = (struct work_request_hdr *)d; in write_wr_hdr_sgl() local 1107 wrp->wr_hi = htonl(F_WR_SOP | F_WR_EOP | V_WR_DATATYPE(1) | in write_wr_hdr_sgl() 1110 wrp->wr_lo = htonl(V_WR_LEN(flits + sgl_flits) | in write_wr_hdr_sgl() 1116 struct work_request_hdr *wp = wrp; in write_wr_hdr_sgl() 1118 wrp->wr_hi = htonl(F_WR_SOP | V_WR_DATATYPE(1) | in write_wr_hdr_sgl() 1144 wrp = (struct work_request_hdr *)d; in write_wr_hdr_sgl() 1145 wrp->wr_hi = htonl(V_WR_DATATYPE(1) | in write_wr_hdr_sgl() 1147 wrp->wr_lo = htonl(V_WR_LEN(min(WR_FLITS, in write_wr_hdr_sgl() 1154 wrp->wr_hi |= htonl(F_WR_EOP); in write_wr_hdr_sgl() 1477 struct work_request_hdr *wrp = (struct work_request_hdr *)skb->data; in ctrl_xmit() local [all …]
|
/drivers/media/pci/dm1105/ |
D | dm1105.c | 350 u32 wrp; member 673 u32 oldwrp = dev->wrp; in dm1105_dmx_buffer() 684 dev->wrp = 0; in dm1105_dmx_buffer() 697 dev->wrp = nextwrp; in dm1105_dmx_buffer()
|