Lines Matching full:pbl
165 uint64_t *pbl; member
299 "Use DSGL for PBL/FastReg (default=1)");
314 * PBL regions consist of N full-sized pages. TPT entries support an
405 cb->pbl = NULL; in che_alloc_command_buffer()
422 MPASS(cb->pbl == NULL); in che_free_command_buffer()
590 uint64_t *pbl; in che_alloc_pbl() local
595 MPASS(cb->pbl == NULL); in che_alloc_pbl()
603 len = roundup2(npages, 4) * sizeof(*cb->pbl); in che_alloc_pbl()
608 pbl = malloc(len, M_NVMF_CHE, M_NOWAIT | M_ZERO); in che_alloc_pbl()
609 if (pbl == NULL) { in che_alloc_pbl()
621 pbl[i] = htobe64(pmap_kextract(va + i * PAGE_SIZE)); in che_alloc_pbl()
630 pbl[i] = htobe64(pa + i * PAGE_SIZE); in che_alloc_pbl()
635 pbl[i] = htobe64(VM_PAGE_TO_PHYS(mem->u.md_ma[i])); in che_alloc_pbl()
652 pbl[i] = htobe64(pmap_kextract(va + in che_alloc_pbl()
675 pbl[i] = htobe64(pa + k * PAGE_SIZE); in che_alloc_pbl()
686 error = che_write_adapter_mem(qp, addr >> 5, len, pbl); in che_alloc_pbl()
689 free(pbl, M_NVMF_CHE); in che_alloc_pbl()
693 cb->pbl = pbl; in che_alloc_pbl()
703 free(cb->pbl, M_NVMF_CHE); in che_free_pbl()
705 cb->pbl = NULL; in che_free_pbl()
727 #define PBL_OFF(qp, a) ((a) - (qp)->nca->sc->vres.pbl.start) in che_write_tpt_entry()