Searched refs:dma_data (Results 1 – 6 of 6) sorted by relevance
/freebsd/sys/dev/bnxt/bnxt_en/ |
H A D | bnxt_dcb.c | 321 struct iflib_dma_info dma_data; in bnxt_hwrm_get_dcbx_app() local 332 rc = iflib_dma_alloc(softc->ctx, data_len, &dma_data, in bnxt_hwrm_get_dcbx_app() 336 get.dest_data_addr = htole64(dma_data.idi_paddr); in bnxt_hwrm_get_dcbx_app() 344 data = (void *)dma_data.idi_vaddr; in bnxt_hwrm_get_dcbx_app() 361 iflib_dma_free(&dma_data); in bnxt_hwrm_get_dcbx_app() 373 struct iflib_dma_info dma_data; in bnxt_hwrm_set_dcbx_app() local 384 rc = iflib_dma_alloc(softc->ctx, data_len, &dma_data, in bnxt_hwrm_set_dcbx_app() 388 get.dest_data_addr = htole64(dma_data.idi_paddr); in bnxt_hwrm_set_dcbx_app() 396 data = (void *)dma_data.idi_vaddr; in bnxt_hwrm_set_dcbx_app() 441 set.src_data_addr = htole64(dma_data.idi_paddr); in bnxt_hwrm_set_dcbx_app() [all …]
|
H A D | bnxt_mgmt.c | 169 struct iflib_dma_info dma_data = {}; in bnxt_mgmt_process_hwrm() local 237 ret = iflib_dma_alloc(softc->ctx, msg->dma[0].length, &dma_data, in bnxt_mgmt_process_hwrm() 249 dma_data.idi_vaddr, in bnxt_mgmt_process_hwrm() 260 *dmap = htole64(dma_data.idi_paddr); in bnxt_mgmt_process_hwrm() 269 if (copyout(dma_data.idi_vaddr, in bnxt_mgmt_process_hwrm() 294 if (dma_data.idi_paddr) in bnxt_mgmt_process_hwrm() 295 iflib_dma_free(&dma_data); in bnxt_mgmt_process_hwrm()
|
H A D | bnxt_hwrm.c | 2332 struct iflib_dma_info dma_data; in bnxt_hwrm_nvm_modify() local 2338 rc = iflib_dma_alloc(softc->ctx, length, &dma_data, in bnxt_hwrm_nvm_modify() 2343 rc = copyin(data, dma_data.idi_vaddr, length); in bnxt_hwrm_nvm_modify() 2348 memcpy(dma_data.idi_vaddr, data, length); in bnxt_hwrm_nvm_modify() 2349 bus_dmamap_sync(dma_data.idi_tag, dma_data.idi_map, in bnxt_hwrm_nvm_modify() 2353 req.host_src_addr = htole64(dma_data.idi_paddr); in bnxt_hwrm_nvm_modify() 2365 iflib_dma_free(&dma_data); in bnxt_hwrm_nvm_modify() 2428 struct iflib_dma_info dma_data; in bnxt_hwrm_nvm_write() local 2433 rc = iflib_dma_alloc(softc->ctx, data_length, &dma_data, in bnxt_hwrm_nvm_write() 2438 rc = copyin(data, dma_data.idi_vaddr, data_length); in bnxt_hwrm_nvm_write() [all …]
|
H A D | bnxt_sysctl.c | 1099 struct iflib_dma_info dma_data; in bnxt_package_ver_sysctl() local 1113 dma_data.idi_vaddr = NULL; in bnxt_package_ver_sysctl() 1115 rc = iflib_dma_alloc(softc->ctx, data_len, &dma_data, in bnxt_package_ver_sysctl() 1119 &dma_data); in bnxt_package_ver_sysctl() 1121 pkglog = dma_data.idi_vaddr; in bnxt_package_ver_sysctl() 1127 dma_data.idi_vaddr = NULL; in bnxt_package_ver_sysctl() 1131 if (dma_data.idi_vaddr) in bnxt_package_ver_sysctl() 1132 iflib_dma_free(&dma_data); in bnxt_package_ver_sysctl()
|
H A D | bnxt_hwrm.h | 107 uint32_t *entries, uint32_t *entry_length, struct iflib_dma_info *dma_data);
|
H A D | if_bnxt.c | 3629 struct iflib_dma_info dma_data; in bnxt_priv_ioctl() 3638 min(rd->length, 0x8000), &dma_data, BUS_DMA_NOWAIT); in bnxt_priv_ioctl() 3645 rd->offset + offset, csize, &dma_data); in bnxt_priv_ioctl() 3652 rc = copyout(dma_data.idi_vaddr, in bnxt_priv_ioctl() 3661 iflib_dma_free(&dma_data); in bnxt_priv_ioctl() 3760 struct iflib_dma_info dma_data; in bnxt_priv_ioctl() 3763 &dma_data, BUS_DMA_NOWAIT); in bnxt_priv_ioctl() 3767 &get->entry_length, &dma_data); in bnxt_priv_ioctl() 3773 rc = copyout(dma_data.idi_vaddr, get->data, in bnxt_priv_ioctl() 3779 iflib_dma_free(&dma_data); in bnxt_priv_ioctl() 3625 struct iflib_dma_info dma_data; bnxt_priv_ioctl() local 3756 struct iflib_dma_info dma_data; bnxt_priv_ioctl() local [all...] |