/freebsd/sys/dev/smartpqi/ |
H A D | smartpqi_mem.c | 100 if ((ret = bus_dmamem_alloc(dma_mem->dma_tag, (void **)&dma_mem->virt_addr, in os_dma_mem_alloc() 108 dma_mem->virt_addr, dma_mem->size, in os_dma_mem_alloc() 115 memset(dma_mem->virt_addr, 0, dma_mem->size); in os_dma_mem_alloc() 123 if(dma_mem->virt_addr) in os_dma_mem_alloc() 124 bus_dmamem_free(dma_mem->dma_tag, dma_mem->virt_addr, in os_dma_mem_alloc() 150 if(dma_mem->virt_addr) { in os_dma_mem_free() 151 bus_dmamem_free(dma_mem->dma_tag, dma_mem->virt_addr, in os_dma_mem_free() 153 dma_mem->virt_addr = NULL; in os_dma_mem_free()
|
H A D | smartpqi_queue.c | 154 char *virt_addr = NULL; in pqisrc_allocate_and_init_inbound_q() local 175 dma_mem->tag, dma_mem->size, dma_mem->align, dma_mem->virt_addr, (void*)dma_mem->dma_addr); in pqisrc_allocate_and_init_inbound_q() 178 virt_addr = dma_mem->virt_addr; in pqisrc_allocate_and_init_inbound_q() 180 ASSERT(!((uint64_t)virt_addr & PQI_ADDR_ALIGN_MASK)); in pqisrc_allocate_and_init_inbound_q() 185 ib_q->array_virt_addr = virt_addr; in pqisrc_allocate_and_init_inbound_q() 190 virt_addr += ib_array_size; in pqisrc_allocate_and_init_inbound_q() 195 ib_q->ci_virt_addr = (uint32_t*)virt_addr; in pqisrc_allocate_and_init_inbound_q() 199 virt_addr += PQI_CI_PI_ALIGN; in pqisrc_allocate_and_init_inbound_q() 205 ASSERT(virt_addr <= ((char*)dma_mem->virt_addr + alloc_size)); in pqisrc_allocate_and_init_inbound_q() 226 char *virt_addr = NULL; in pqisrc_allocate_and_init_outbound_q() local [all …]
|
H A D | smartpqi_event.c | 406 DBG_INFO("buf_report_event.virt_addr = %p \n",(void*)buf_report_event.virt_addr); in pqisrc_report_event_config() 416 event_config_p = (pqi_event_config_t*)buf_report_event.virt_addr; in pqisrc_report_event_config() 468 DBG_INFO("buf_set_event.virt_addr = %p\n",(void*)buf_set_event.virt_addr); in pqisrc_set_event_config() 475 event_config_p = (pqi_event_config_t *)buf_set_event.virt_addr; in pqisrc_set_event_config()
|
/freebsd/sys/dev/xen/bus/ |
H A D | xenpv.c | 151 void *virt_addr; in xenpv_free_physmem() 197 virt_addr = pmap_mapdev_attr(phys_addr, size, VM_MEMATTR_XEN); 198 KASSERT(virt_addr != NULL, ("Failed to create linear mappings")); in xenmem_free() 199 rman_set_virtual(res, virt_addr); in xenmem_free() 208 void *virt_addr; 213 virt_addr = rman_get_virtual(res); 215 pmap_unmapdev(virt_addr, size); 118 void *virt_addr; xenpv_alloc_physmem() local 144 void *virt_addr; xenpv_free_physmem() local
|
/freebsd/sys/contrib/dev/athk/ath10k/ |
H A D | swap.c | 19 u8 *virt_addr = seg_info->virt_address[0]; in ath10k_swap_code_seg_fill() local 55 memcpy(virt_addr, swap_item->tlv.data, payload_len); in ath10k_swap_code_seg_fill() 56 virt_addr += payload_len; in ath10k_swap_code_seg_fill() 93 void *virt_addr; in ath10k_swap_code_seg_alloc() local 107 virt_addr = dma_alloc_coherent(ar->dev, swap_bin_len, &paddr, in ath10k_swap_code_seg_alloc() 109 if (!virt_addr) in ath10k_swap_code_seg_alloc() 118 seg_info->virt_address[0] = virt_addr; in ath10k_swap_code_seg_alloc()
|
/freebsd/sys/dev/qat/qat_hw/qat_4xxx/ |
H A D | adf_drv.c | 61 if (bar->virt_addr) in adf_cleanup_accel() 64 bar->virt_addr); in adf_cleanup_accel() 194 bar->virt_addr = bus_alloc_resource_any(dev, in adf_attach() 198 if (!bar->virt_addr) { in adf_attach() 203 bar->base_addr = rman_get_start(bar->virt_addr); in adf_attach() 204 bar->size = rman_get_size(bar->virt_addr); in adf_attach()
|
/freebsd/sys/dev/qat/qat_hw/qat_c3xxx/ |
H A D | adf_drv.c | 59 if (bar->virt_addr) in adf_cleanup_accel() 62 bar->virt_addr); in adf_cleanup_accel() 193 bar->virt_addr = bus_alloc_resource_any(dev, in adf_attach() 197 if (bar->virt_addr == NULL) { in adf_attach() 202 bar->base_addr = rman_get_start(bar->virt_addr); in adf_attach() 203 bar->size = rman_get_size(bar->virt_addr); in adf_attach()
|
/freebsd/sys/dev/qat/qat_hw/qat_dh895xcc/ |
H A D | adf_drv.c | 59 if (bar->virt_addr) in adf_cleanup_accel() 62 bar->virt_addr); in adf_cleanup_accel() 182 bar->virt_addr = bus_alloc_resource_any(dev, in adf_attach() 186 if (bar->virt_addr == NULL) { in adf_attach() 191 bar->base_addr = rman_get_start(bar->virt_addr); in adf_attach() 192 bar->size = rman_get_size(bar->virt_addr); in adf_attach()
|
/freebsd/sys/dev/qat/qat_hw/qat_c4xxx/ |
H A D | adf_drv.c | 59 if (bar->virt_addr) in adf_cleanup_accel() 62 bar->virt_addr); in adf_cleanup_accel() 192 bar->virt_addr = bus_alloc_resource_any(dev, in adf_attach() 196 if (!bar->virt_addr) { in adf_attach() 201 bar->base_addr = rman_get_start(bar->virt_addr); in adf_attach() 202 bar->size = rman_get_start(bar->virt_addr); in adf_attach()
|
H A D | adf_c4xxx_hw_data.c | 209 struct resource *csr = misc_bar->virt_addr; in c4xxx_set_ssm_wdtimer() 252 struct resource *csr = misc_bar->virt_addr; in c4xxx_check_slice_hang() 318 (&GET_BARS(accel_dev)[ADF_C4XXX_PMISC_BAR])->virt_addr; in get_eth_doorbell_msg() 429 csr = (&GET_BARS(accel_dev)[ADF_C4XXX_PMISC_BAR])->virt_addr; in adf_enable_slice_hang_detection() 449 csr = (&GET_BARS(accel_dev)[ADF_C4XXX_PMISC_BAR])->virt_addr; in adf_enable_ras() 475 csr = (&GET_BARS(accel_dev)[ADF_C4XXX_PMISC_BAR])->virt_addr; in adf_enable_error_interrupts() 476 aram_csr = (&GET_BARS(accel_dev)[ADF_C4XXX_SRAM_BAR])->virt_addr; in adf_enable_error_interrupts() 638 struct resource *csr = misc_bar->virt_addr; in adf_enable_error_correction() 680 addr = (&GET_BARS(accel_dev)[ADF_C4XXX_PMISC_BAR])->virt_addr; in adf_enable_ints() 890 aram_csr_base = (&GET_BARS(accel_dev)[ADF_C4XXX_SRAM_BAR])->virt_addr; in c4xxx_set_sadb_size() [all …]
|
/freebsd/sys/dev/qat/qat_hw/qat_4xxxvf/ |
H A D | adf_drv.c | 61 if (bar->virt_addr) in adf_cleanup_accel() 64 bar->virt_addr); in adf_cleanup_accel() 169 bar->virt_addr = bus_alloc_resource_any(dev, in adf_attach() 173 if (!bar->virt_addr) { in adf_attach() 178 bar->base_addr = rman_get_start(bar->virt_addr); in adf_attach() 179 bar->size = rman_get_size(bar->virt_addr); in adf_attach()
|
H A D | adf_4xxxvf_hw_data.c | 192 pmisc_bar_addr = pmisc->virt_addr; in enable_pf2vm_interrupt() 206 pmisc_bar_addr = pmisc->virt_addr; in disable_pf2vm_interrupt() 221 pmisc_bar_addr = pmisc->virt_addr; in interrupt_active_pf2vm() 239 pmisc_bar_addr = pmisc->virt_addr; in get_int_active_bundles()
|
/freebsd/sys/dev/qat/qat_hw/qat_200xx/ |
H A D | adf_drv.c | 59 if (bar->virt_addr) in adf_cleanup_accel() 62 bar->virt_addr); in adf_cleanup_accel() 204 bar->virt_addr = bus_alloc_resource_any(dev, in adf_attach() 208 if (!bar->virt_addr) { in adf_attach() 213 bar->base_addr = rman_get_start(bar->virt_addr); in adf_attach() 214 bar->size = rman_get_size(bar->virt_addr); in adf_attach()
|
H A D | adf_200xx_hw_data.c | 201 struct resource *csr = misc_bar->virt_addr; in adf_disable_error_interrupts() 221 struct resource *csr = misc_bar->virt_addr; in adf_check_uncorrectable_error() 301 struct resource *csr = misc_bar->virt_addr; in adf_enable_error_correction() 343 addr = (&GET_BARS(accel_dev)[ADF_200XX_PMISC_BAR])->virt_addr; in adf_enable_ints()
|
/freebsd/sys/dev/qat/qat_hw/qat_c62x/ |
H A D | adf_drv.c | 59 if (bar->virt_addr) in adf_cleanup_accel() 62 bar->virt_addr); in adf_cleanup_accel() 193 bar->virt_addr = bus_alloc_resource_any(dev, in adf_attach() 198 if (bar->virt_addr == NULL) { in adf_attach() 203 bar->base_addr = rman_get_start(bar->virt_addr); in adf_attach() 204 bar->size = rman_get_size(bar->virt_addr); in adf_attach()
|
/freebsd/contrib/elftoolchain/libdwarf/ |
H A D | dwarf_pro_frame.c | 97 Dwarf_Unsigned cie, Dwarf_Addr virt_addr, Dwarf_Unsigned code_len, in dwarf_add_frame_fde() argument 101 return (dwarf_add_frame_fde_b(dbg, fde, die, cie, virt_addr, code_len, in dwarf_add_frame_fde() 107 Dwarf_Unsigned cie, Dwarf_Addr virt_addr, Dwarf_Unsigned code_len, in dwarf_add_frame_fde_b() argument 144 fde->fde_initloc = virt_addr; in dwarf_add_frame_fde_b()
|
/freebsd/sys/dev/mlx5/mlx5_ib/ |
H A D | mlx5_ib_mr.c | 603 int page_shift, u64 virt_addr, u64 len, in prep_umr_reg_wqe() argument 610 umrwr->target.virt_addr = virt_addr; in prep_umr_reg_wqe() 666 u64 virt_addr, u64 len, int npages, in reg_umr() argument 707 page_shift, virt_addr, len, access_flags); in reg_umr() 722 mr->mmkey.iova = virt_addr; in reg_umr() 871 u64 virt_addr, u64 length, in reg_create() argument 911 MLX5_SET64(mkc, mkc, start_addr, virt_addr); in reg_create() 916 get_octo_len(virt_addr, length, 1 << page_shift)); in reg_create() 920 get_octo_len(virt_addr, length, 1 << page_shift)); in reg_create() 958 u64 virt_addr, int access_flags, in mlx5_ib_reg_user_mr() argument [all …]
|
/freebsd/sys/dev/qat/qat_common/ |
H A D | adf_freebsd_admin.c | 157 memcpy(admin->virt_addr + offset, in, ADF_ADMINMSG_LEN); in adf_put_admin_msg_sync() 170 admin->virt_addr + offset + ADF_ADMINMSG_LEN, in adf_put_admin_msg_sync() 472 csr = pmisc->virt_addr; in adf_init_admin_comms() 485 admin->virt_addr = admin->dma_mem.dma_vaddr; in adf_init_admin_comms() 487 bzero(admin->virt_addr, PAGE_SIZE); in adf_init_admin_comms() 587 if (admin->virt_addr) in adf_exit_admin_comms()
|
H A D | qat_uclo.c | 1617 u64 virt_addr, bus_addr, virt_base; in qat_uclo_map_auth_fw() local 1642 virt_addr = virt_base; in qat_uclo_map_auth_fw() 1644 memcpy((void *)(uintptr_t)virt_addr, image, sizeof(*css_hdr)); in qat_uclo_map_auth_fw() 1648 virt_addr = virt_addr + sizeof(*css_hdr); in qat_uclo_map_auth_fw() 1653 memcpy((void *)(uintptr_t)virt_addr, in qat_uclo_map_auth_fw() 1658 virt_addr + ICP_QAT_CSS_FWSK_MODULUS_LEN(device_id)), in qat_uclo_map_auth_fw() 1662 memcpy((void *)(uintptr_t)(virt_addr + in qat_uclo_map_auth_fw() 1672 virt_addr = virt_addr + ICP_QAT_CSS_FWSK_PUB_LEN(device_id); in qat_uclo_map_auth_fw() 1676 memcpy((void *)(uintptr_t)virt_addr, in qat_uclo_map_auth_fw() 1685 virt_addr += ICP_QAT_CSS_SIGNATURE_LEN(device_id); in qat_uclo_map_auth_fw() [all …]
|
/freebsd/sys/contrib/ena-com/ |
H A D | ena_com.c | 383 io_sq->desc_addr.virt_addr, in ena_com_init_io_sq() 388 if (!io_sq->desc_addr.virt_addr) { in ena_com_init_io_sq() 391 io_sq->desc_addr.virt_addr, in ena_com_init_io_sq() 396 if (unlikely(!io_sq->desc_addr.virt_addr)) { in ena_com_init_io_sq() 471 io_cq->cdesc_addr.virt_addr, in ena_com_init_io_cq() 477 if (!io_cq->cdesc_addr.virt_addr) { in ena_com_init_io_cq() 480 io_cq->cdesc_addr.virt_addr, in ena_com_init_io_cq() 486 if (unlikely(!io_cq->cdesc_addr.virt_addr)) { in ena_com_init_io_cq() 1004 if (io_cq->cdesc_addr.virt_addr) { in ena_com_io_queue_free() 1009 io_cq->cdesc_addr.virt_addr, in ena_com_io_queue_free() [all …]
|
/freebsd/sys/dev/mlx5/mlx5_core/ |
H A D | mlx5_pagealloc.c | 125 err = bus_dmamem_alloc(dev->cmd.dma_tag, &fwp[x].virt_addr, in mlx5_fwp_alloc() 133 dev->cmd.dma_tag, fwp[x].dma_map, fwp[x].virt_addr, in mlx5_fwp_alloc() 143 bus_dmamem_free(dev->cmd.dma_tag, fwp[x].virt_addr, in mlx5_fwp_alloc() 154 bus_dmamem_free(dev->cmd.dma_tag, fwp[x].virt_addr, fwp[x].dma_map); in mlx5_fwp_alloc() 182 bus_dmamem_free(dev->cmd.dma_tag, fwp[num].virt_addr, fwp[num].dma_map); in mlx5_fwp_free() 203 return ((char *)(fwp + index)->virt_addr + (offset % MLX5_ADAPTER_PAGE_SIZE)); in mlx5_fwp_get_virt()
|
/freebsd/sys/dev/ntb/test/ |
H A D | ntb_tool.c | 217 caddr_t virt_addr; member 826 if (bus_dmamem_alloc(inmw->dma_tag, (void **)&inmw->virt_addr, in tool_setup_mw() 834 if (bus_dmamap_load(inmw->dma_tag, inmw->dma_map, inmw->virt_addr, in tool_setup_mw() 853 bus_dmamem_free(inmw->dma_tag, inmw->virt_addr, inmw->dma_map); in tool_setup_mw() 860 inmw->virt_addr = 0; in tool_setup_mw() 876 if (inmw->virt_addr && inmw->dma_tag) { in tool_free_mw() 878 bus_dmamem_free(inmw->dma_tag, inmw->virt_addr, inmw->dma_map); in tool_free_mw() 882 inmw->virt_addr = 0; in tool_free_mw() 971 return tool_mw_read_fn(req, inmw, (char *)inmw->virt_addr, in sysctl_peer_mw_handle() 977 return tool_mw_write_fn(oidp, req, inmw, buf, inmw->virt_addr, in sysctl_peer_mw_handle()
|
/freebsd/sys/dev/mlx4/mlx4_ib/ |
H A D | mlx4_ib_mr.c | 138 u64 virt_addr, int access_flags, in mlx4_ib_reg_user_mr() argument 163 err = mlx4_mr_alloc(dev->dev, to_mpd(pd)->pdn, virt_addr, length, in mlx4_ib_reg_user_mr() 193 u64 start, u64 length, u64 virt_addr, in mlx4_ib_rereg_user_mr() argument 248 virt_addr, length, n, shift, in mlx4_ib_rereg_user_mr() 254 mmr->mmr.iova = virt_addr; in mlx4_ib_rereg_user_mr()
|
/freebsd/sys/dev/ntb/ |
H A D | ntb_transport.c | 183 /* Rx buff is virt_addr / dma_addr / rx_size */ 186 caddr_t virt_addr; member 422 mw->virt_addr = NULL; in ntb_transport_attach() 1288 if (bus_dmamem_alloc(mw->dma_tag, (void **)&mw->virt_addr, in ntb_set_mw() 1296 if (bus_dmamap_load(mw->dma_tag, mw->dma_map, mw->virt_addr, in ntb_set_mw() 1298 bus_dmamem_free(mw->dma_tag, mw->virt_addr, mw->dma_map); in ntb_set_mw() 1315 if (mw->virt_addr == NULL) in ntb_free_mw() 1320 bus_dmamem_free(mw->dma_tag, mw->virt_addr, mw->dma_map); in ntb_free_mw() 1323 mw->virt_addr = NULL; in ntb_free_mw() 1340 if (mw->virt_addr in ntb_transport_setup_qp_mw() [all...] |
/freebsd/sys/dev/proto/ |
H A D | proto_dev.h | 68 unsigned long virt_addr; member
|