Home
last modified time | relevance | path

Searched refs:pbl_last_bt_num (Results 1 – 1 of 1) sorted by relevance

/Linux-v5.4/drivers/infiniband/hw/hns/
Dhns_roce_mr.c381 u64 pbl_last_bt_num; in pbl_2hop_alloc() local
386 pbl_last_bt_num = (npages + pbl_bt_sz / 8 - 1) / (pbl_bt_sz / 8); in pbl_2hop_alloc()
390 if (pbl_bt_cnt + 1 < pbl_last_bt_num) { in pbl_2hop_alloc()
407 if (pbl_bt_cnt >= pbl_last_bt_num) in pbl_2hop_alloc()
422 u64 pbl_last_bt_num; in pbl_3hop_alloc() local
429 pbl_last_bt_num = (npages + pbl_bt_sz / 8 - 1) / (pbl_bt_sz / 8); in pbl_3hop_alloc()
431 mr->pbl_l2_dma_addr = kcalloc(pbl_last_bt_num, in pbl_3hop_alloc()
437 mr->pbl_bt_l2 = kcalloc(pbl_last_bt_num, in pbl_3hop_alloc()
458 if (pbl_bt_cnt + 1 < pbl_last_bt_num) { in pbl_3hop_alloc()
478 if (pbl_bt_cnt >= pbl_last_bt_num) { in pbl_3hop_alloc()