/drivers/crypto/qat/qat_common/ |
D | adf_admin.c | 148 void *virt_addr; member 170 memcpy(admin->virt_addr + offset, in, ADF_ADMINMSG_LEN); in adf_put_admin_msg_sync() 181 memcpy(out, admin->virt_addr + offset + in adf_put_admin_msg_sync() 238 void __iomem *csr = pmisc->virt_addr; in adf_init_admin_comms() 247 admin->virt_addr = dma_zalloc_coherent(&GET_DEV(accel_dev), PAGE_SIZE, in adf_init_admin_comms() 249 if (!admin->virt_addr) { in adf_init_admin_comms() 262 admin->virt_addr, admin->phy_addr); in adf_init_admin_comms() 285 if (admin->virt_addr) in adf_exit_admin_comms() 287 admin->virt_addr, admin->phy_addr); in adf_exit_admin_comms()
|
D | adf_pf2vf_msg.c | 64 pci_info->pci_bars[hw_data->get_misc_bar_id(hw_data)].virt_addr; in adf_enable_pf2vf_interrupts() 74 pci_info->pci_bars[hw_data->get_misc_bar_id(hw_data)].virt_addr; in adf_disable_pf2vf_interrupts() 85 void __iomem *pmisc_addr = pmisc->virt_addr; in adf_enable_vf2pf_interrupts() 108 void __iomem *pmisc_addr = pmisc->virt_addr; in adf_disable_vf2pf_interrupts() 131 pci_info->pci_bars[hw_data->get_misc_bar_id(hw_data)].virt_addr; in __adf_iov_putmsg() 242 void __iomem *pmisc_addr = pmisc->virt_addr; in adf_vf2pf_req_hndl()
|
D | qat_uclo.c | 1261 u64 virt_addr, bus_addr, virt_base; in qat_uclo_map_auth_fw() local 1285 virt_addr = virt_base; in qat_uclo_map_auth_fw() 1287 memcpy((void *)(uintptr_t)virt_addr, image, sizeof(*css_hdr)); in qat_uclo_map_auth_fw() 1291 virt_addr = virt_addr + sizeof(*css_hdr); in qat_uclo_map_auth_fw() 1296 memcpy((void *)(uintptr_t)virt_addr, in qat_uclo_map_auth_fw() 1300 memset((void *)(uintptr_t)(virt_addr + ICP_QAT_CSS_FWSK_MODULUS_LEN), in qat_uclo_map_auth_fw() 1304 memcpy((void *)(uintptr_t)(virt_addr + ICP_QAT_CSS_FWSK_MODULUS_LEN + in qat_uclo_map_auth_fw() 1314 virt_addr = virt_addr + ICP_QAT_CSS_FWSK_PUB_LEN; in qat_uclo_map_auth_fw() 1318 memcpy((void *)(uintptr_t)virt_addr, in qat_uclo_map_auth_fw() 1327 virt_addr += ICP_QAT_CSS_SIGNATURE_LEN; in qat_uclo_map_auth_fw() [all …]
|
/drivers/w1/masters/ |
D | matrox_w1.c | 86 void __iomem *virt_addr; member 184 dev->virt_addr = ioremap_nocache(dev->phys_addr, 16384); in matrox_w1_probe() 185 if (!dev->virt_addr) { in matrox_w1_probe() 192 dev->base_addr = dev->virt_addr + MATROX_BASE; in matrox_w1_probe() 216 if (dev->virt_addr) in matrox_w1_probe() 217 iounmap(dev->virt_addr); in matrox_w1_probe() 231 iounmap(dev->virt_addr); in matrox_w1_remove()
|
/drivers/net/wireless/ath/ath10k/ |
D | swap.c | 30 u8 *virt_addr = seg_info->virt_address[0]; in ath10k_swap_code_seg_fill() local 66 memcpy(virt_addr, swap_item->tlv.data, payload_len); in ath10k_swap_code_seg_fill() 67 virt_addr += payload_len; in ath10k_swap_code_seg_fill() 104 void *virt_addr; in ath10k_swap_code_seg_alloc() local 118 virt_addr = dma_alloc_coherent(ar->dev, swap_bin_len, &paddr, in ath10k_swap_code_seg_alloc() 120 if (!virt_addr) { in ath10k_swap_code_seg_alloc() 131 seg_info->virt_address[0] = virt_addr; in ath10k_swap_code_seg_alloc()
|
/drivers/net/ethernet/cirrus/ |
D | cs89x0.c | 150 void __iomem *virt_addr;/* CS89x0 virtual address. */ member 204 tmp16 = ioread16(lp->virt_addr + portno); in readwords() 219 iowrite16(tmp16, lp->virt_addr + portno); in writewords() 228 iowrite16(regno, lp->virt_addr + ADD_PORT); in readreg() 229 return ioread16(lp->virt_addr + DATA_PORT); in readreg() 237 iowrite16(regno, lp->virt_addr + ADD_PORT); in writereg() 238 iowrite16(value, lp->virt_addr + DATA_PORT); in writereg() 527 iowrite16(TX_AFTER_ALL, lp->virt_addr + TX_CMD_PORT); in send_test_pkt() 528 iowrite16(ETH_ZLEN, lp->virt_addr + TX_LEN_PORT); in send_test_pkt() 678 status = ioread16(lp->virt_addr + RX_FRAME_PORT); in net_rx() [all …]
|
/drivers/acpi/ |
D | osl.c | 681 void __iomem *virt_addr; in acpi_os_read_memory() local 687 virt_addr = acpi_map_vaddr_lookup(phys_addr, size); in acpi_os_read_memory() 688 if (!virt_addr) { in acpi_os_read_memory() 690 virt_addr = acpi_os_ioremap(phys_addr, size); in acpi_os_read_memory() 691 if (!virt_addr) in acpi_os_read_memory() 701 *(u8 *) value = readb(virt_addr); in acpi_os_read_memory() 704 *(u16 *) value = readw(virt_addr); in acpi_os_read_memory() 707 *(u32 *) value = readl(virt_addr); in acpi_os_read_memory() 710 *(u64 *) value = readq(virt_addr); in acpi_os_read_memory() 717 iounmap(virt_addr); in acpi_os_read_memory() [all …]
|
/drivers/media/platform/omap3isp/ |
D | ispstat.c | 111 for (w = buf->virt_addr, end = w + MAGIC_SIZE; w < end; w++) in isp_stat_buf_check_magic() 122 for (w = buf->virt_addr + buf_size, end = w + MAGIC_SIZE; in isp_stat_buf_check_magic() 151 memset(buf->virt_addr, MAGIC_NUM, MAGIC_SIZE); in isp_stat_buf_insert_magic() 152 memset(buf->virt_addr + buf_size, MAGIC_NUM, MAGIC_SIZE); in isp_stat_buf_insert_magic() 319 buf->virt_addr, in isp_stat_buf_get() 342 if (!buf->virt_addr) in isp_stat_bufs_free() 347 dma_free_coherent(dev, stat->buf_alloc_size, buf->virt_addr, in isp_stat_bufs_free() 351 buf->virt_addr = NULL; in isp_stat_bufs_free() 368 buf->virt_addr = dma_alloc_coherent(dev, size, &buf->dma_addr, in isp_stat_bufs_alloc_one() 370 if (!buf->virt_addr) in isp_stat_bufs_alloc_one() [all …]
|
/drivers/staging/comedi/ |
D | comedi_buf.c | 42 &(virt_to_page(buf->virt_addr)->flags)); in comedi_buf_map_kref_release() 47 buf->virt_addr, in comedi_buf_map_kref_release() 51 free_page((unsigned long)buf->virt_addr); in comedi_buf_map_kref_release() 122 buf->virt_addr = dma_alloc_coherent(bm->dma_hw_dev, in __comedi_buf_alloc() 131 buf->virt_addr = (void *)get_zeroed_page(GFP_KERNEL); in __comedi_buf_alloc() 132 if (!buf->virt_addr) in __comedi_buf_alloc() 135 set_bit(PG_reserved, &(virt_to_page(buf->virt_addr)->flags)); in __comedi_buf_alloc() 137 pages[i] = virt_to_page(buf->virt_addr); in __comedi_buf_alloc()
|
/drivers/net/ethernet/marvell/ |
D | mvneta_bm.c | 122 bm_pool->virt_addr = dma_alloc_coherent(&pdev->dev, size_bytes, in mvneta_bm_pool_create() 125 if (!bm_pool->virt_addr) in mvneta_bm_pool_create() 128 if (!IS_ALIGNED((u32)bm_pool->virt_addr, MVNETA_BM_POOL_PTR_ALIGN)) { in mvneta_bm_pool_create() 129 dma_free_coherent(&pdev->dev, size_bytes, bm_pool->virt_addr, in mvneta_bm_pool_create() 139 dma_free_coherent(&pdev->dev, size_bytes, bm_pool->virt_addr, in mvneta_bm_pool_create() 271 if (bm_pool->virt_addr) { in mvneta_bm_pool_destroy() 274 bm_pool->virt_addr, bm_pool->phys_addr); in mvneta_bm_pool_destroy() 275 bm_pool->virt_addr = NULL; in mvneta_bm_pool_destroy()
|
/drivers/media/platform/omap/ |
D | omap_voutlib.c | 304 unsigned long virt_addr, addr; in omap_vout_alloc_buffer() local 308 virt_addr = __get_free_pages(GFP_KERNEL, order); in omap_vout_alloc_buffer() 309 addr = virt_addr; in omap_vout_alloc_buffer() 311 if (virt_addr) { in omap_vout_alloc_buffer() 318 *phys_addr = (u32) virt_to_phys((void *) virt_addr); in omap_vout_alloc_buffer() 319 return virt_addr; in omap_vout_alloc_buffer()
|
/drivers/mtd/ |
D | ftl.c | 830 uint32_t virt_addr) in set_bam_entry() argument 841 part, log_addr, virt_addr); in set_bam_entry() 857 if (((virt_addr == 0xfffffffe) && !BLOCK_FREE(old_addr)) || in set_bam_entry() 858 ((virt_addr == 0) && (BLOCK_TYPE(old_addr) != BLOCK_DATA)) || in set_bam_entry() 859 (!BLOCK_DELETED(virt_addr) && (old_addr != 0xfffffffe))) { in set_bam_entry() 864 ", new = 0x%x\n", log_addr, old_addr, virt_addr); in set_bam_entry() 869 le_virt_addr = cpu_to_le32(virt_addr); in set_bam_entry() 892 log_addr, virt_addr); in set_bam_entry() 900 uint32_t bsize, log_addr, virt_addr, old_addr, blk; in ftl_write() local 920 virt_addr = sector * SECTOR_SIZE | BLOCK_DATA; in ftl_write() [all …]
|
/drivers/firmware/efi/ |
D | arm-runtime.c | 78 if (md->virt_addr == 0) in efi_virtmap_init() 84 &phys, (void *)(unsigned long)md->virt_addr); in efi_virtmap_init() 97 phys + md->virt_addr); in efi_virtmap_init()
|
D | memattr.c | 96 if (md->virt_addr == 0) { in entry_is_valid() 118 out->virt_addr = in_paddr + (md->virt_addr - md_paddr); in entry_is_valid()
|
D | arm-init.c | 48 if (md->virt_addr == 0) in efi_to_phys() 51 if (md->virt_addr <= addr && in efi_to_phys() 52 (addr - md->virt_addr) < (md->num_pages << EFI_PAGE_SHIFT)) in efi_to_phys() 53 return md->phys_addr + addr - md->virt_addr; in efi_to_phys()
|
/drivers/staging/comedi/drivers/ |
D | comedi_isadma.c | 204 desc->virt_addr = dma_alloc_coherent(NULL, desc->maxsize, in comedi_isadma_alloc() 207 if (!desc->virt_addr) in comedi_isadma_alloc() 235 if (desc->virt_addr) in comedi_isadma_free() 237 desc->virt_addr, in comedi_isadma_free()
|
/drivers/crypto/qat/qat_dh895xccvf/ |
D | adf_drv.c | 99 if (bar->virt_addr) in adf_cleanup_accel() 100 pci_iounmap(accel_pci_dev->pci_dev, bar->virt_addr); in adf_cleanup_accel() 226 bar->virt_addr = pci_iomap(accel_pci_dev->pci_dev, bar_nr, 0); in adf_probe() 227 if (!bar->virt_addr) { in adf_probe()
|
/drivers/crypto/qat/qat_c62xvf/ |
D | adf_drv.c | 99 if (bar->virt_addr) in adf_cleanup_accel() 100 pci_iounmap(accel_pci_dev->pci_dev, bar->virt_addr); in adf_cleanup_accel() 226 bar->virt_addr = pci_iomap(accel_pci_dev->pci_dev, bar_nr, 0); in adf_probe() 227 if (!bar->virt_addr) { in adf_probe()
|
/drivers/crypto/qat/qat_c3xxxvf/ |
D | adf_drv.c | 99 if (bar->virt_addr) in adf_cleanup_accel() 100 pci_iounmap(accel_pci_dev->pci_dev, bar->virt_addr); in adf_cleanup_accel() 226 bar->virt_addr = pci_iomap(accel_pci_dev->pci_dev, bar_nr, 0); in adf_probe() 227 if (!bar->virt_addr) { in adf_probe()
|
/drivers/crypto/qat/qat_dh895xcc/ |
D | adf_drv.c | 99 if (bar->virt_addr) in adf_cleanup_accel() 100 pci_iounmap(accel_pci_dev->pci_dev, bar->virt_addr); in adf_cleanup_accel() 248 bar->virt_addr = pci_iomap(accel_pci_dev->pci_dev, bar_nr, 0); in adf_probe() 249 if (!bar->virt_addr) { in adf_probe()
|
/drivers/crypto/qat/qat_c62x/ |
D | adf_drv.c | 99 if (bar->virt_addr) in adf_cleanup_accel() 100 pci_iounmap(accel_pci_dev->pci_dev, bar->virt_addr); in adf_cleanup_accel() 246 bar->virt_addr = pci_iomap(accel_pci_dev->pci_dev, bar_nr, 0); in adf_probe() 247 if (!bar->virt_addr) { in adf_probe()
|
/drivers/crypto/qat/qat_c3xxx/ |
D | adf_drv.c | 99 if (bar->virt_addr) in adf_cleanup_accel() 100 pci_iounmap(accel_pci_dev->pci_dev, bar->virt_addr); in adf_cleanup_accel() 246 bar->virt_addr = pci_iomap(accel_pci_dev->pci_dev, bar_nr, 0); in adf_probe() 247 if (!bar->virt_addr) { in adf_probe()
|
/drivers/scsi/pm8001/ |
D | pm8001_chips.h | 44 static inline u32 pm8001_read_32(void *virt_addr) in pm8001_read_32() argument 46 return *((u32 *)virt_addr); in pm8001_read_32()
|
/drivers/infiniband/hw/mlx5/ |
D | mr.c | 823 int page_shift, u64 virt_addr, u64 len, in prep_umr_reg_wqe() argument 832 umrwr->target.virt_addr = virt_addr; in prep_umr_reg_wqe() 890 u64 virt_addr, u64 len, int npages, in reg_umr() argument 931 page_shift, virt_addr, len, access_flags); in reg_umr() 946 mr->mmkey.iova = virt_addr; in reg_umr() 1095 u64 virt_addr, u64 length, in reg_create() argument 1135 MLX5_SET64(mkc, mkc, start_addr, virt_addr); in reg_create() 1140 get_octo_len(virt_addr, length, 1 << page_shift)); in reg_create() 1144 get_octo_len(virt_addr, length, 1 << page_shift)); in reg_create() 1182 u64 virt_addr, int access_flags, in mlx5_ib_reg_user_mr() argument [all …]
|
/drivers/net/ethernet/amazon/ena/ |
D | ena_eth_com.c | 45 cdesc = (struct ena_eth_io_rx_cdesc_base *)(io_cq->cdesc_addr.virt_addr in ena_com_get_next_rx_cdesc() 75 return (void *)((uintptr_t)io_sq->desc_addr.virt_addr + offset); in get_sq_desc() 88 io_sq->desc_addr.virt_addr + offset, in ena_com_copy_curr_sq_desc_to_dev() 126 ((uintptr_t)io_cq->cdesc_addr.virt_addr + in ena_com_rx_cdesc_idx_to_ptr() 485 ((uintptr_t)io_cq->cdesc_addr.virt_addr + in ena_com_tx_comp_req_id_get()
|