Lines Matching refs:bt_idx
268 u64 bt_idx; in hns_roce_loop_free() local
284 bt_idx = i * pbl_bt_sz / 8 + j; in hns_roce_loop_free()
286 mr->pbl_bt_l2[bt_idx], in hns_roce_loop_free()
287 mr->pbl_l2_dma_addr[bt_idx]); in hns_roce_loop_free()
296 bt_idx = i * pbl_bt_sz / 8 + j; in hns_roce_loop_free()
298 mr->pbl_bt_l2[bt_idx], in hns_roce_loop_free()
299 mr->pbl_l2_dma_addr[bt_idx]); in hns_roce_loop_free()
329 u64 bt_idx; in hns_roce_mhop_alloc() local
429 bt_idx = i * pbl_bt_sz / 8 + j; in hns_roce_mhop_alloc()
434 npages_allocated = bt_idx * in hns_roce_mhop_alloc()
438 mr->pbl_bt_l2[bt_idx] = dma_alloc_coherent( in hns_roce_mhop_alloc()
440 &(mr->pbl_l2_dma_addr[bt_idx]), in hns_roce_mhop_alloc()
442 if (!mr->pbl_bt_l2[bt_idx]) { in hns_roce_mhop_alloc()
448 mr->pbl_l2_dma_addr[bt_idx]; in hns_roce_mhop_alloc()
549 u64 bt_idx; in hns_roce_mhop_free() local
590 bt_idx = i * (pbl_bt_sz / 8) + j; in hns_roce_mhop_free()
594 npages_allocated = bt_idx * in hns_roce_mhop_free()
599 mr->pbl_bt_l2[bt_idx], in hns_roce_mhop_free()
600 mr->pbl_l2_dma_addr[bt_idx]); in hns_roce_mhop_free()
606 mr->pbl_bt_l2[bt_idx], in hns_roce_mhop_free()
607 mr->pbl_l2_dma_addr[bt_idx]); in hns_roce_mhop_free()