pbl_bt_sz 301 drivers/infiniband/hw/hns/hns_roce_mr.c u32 pbl_bt_sz; pbl_bt_sz 305 drivers/infiniband/hw/hns/hns_roce_mr.c pbl_bt_sz = 1 << (hr_dev->caps.pbl_ba_pg_sz + PAGE_SHIFT); pbl_bt_sz 311 drivers/infiniband/hw/hns/hns_roce_mr.c dma_free_coherent(dev, pbl_bt_sz, mr->pbl_bt_l1[i], pbl_bt_sz 314 drivers/infiniband/hw/hns/hns_roce_mr.c for (j = 0; j < pbl_bt_sz / BA_BYTE_LEN; j++) { pbl_bt_sz 318 drivers/infiniband/hw/hns/hns_roce_mr.c bt_idx = i * pbl_bt_sz / BA_BYTE_LEN + j; pbl_bt_sz 319 drivers/infiniband/hw/hns/hns_roce_mr.c dma_free_coherent(dev, pbl_bt_sz, pbl_bt_sz 326 drivers/infiniband/hw/hns/hns_roce_mr.c dma_free_coherent(dev, pbl_bt_sz, mr->pbl_bt_l1[i], pbl_bt_sz 329 drivers/infiniband/hw/hns/hns_roce_mr.c for (j = 0; j < pbl_bt_sz / BA_BYTE_LEN; j++) { pbl_bt_sz 330 drivers/infiniband/hw/hns/hns_roce_mr.c bt_idx = i * pbl_bt_sz / BA_BYTE_LEN + j; pbl_bt_sz 331 drivers/infiniband/hw/hns/hns_roce_mr.c dma_free_coherent(dev, pbl_bt_sz, pbl_bt_sz 338 drivers/infiniband/hw/hns/hns_roce_mr.c dma_free_coherent(dev, pbl_bt_sz, mr->pbl_bt_l1[i], pbl_bt_sz 346 drivers/infiniband/hw/hns/hns_roce_mr.c dma_free_coherent(dev, pbl_bt_sz, mr->pbl_bt_l0, mr->pbl_l0_dma_addr); pbl_bt_sz 351 drivers/infiniband/hw/hns/hns_roce_mr.c struct hns_roce_mr *mr, u32 pbl_bt_sz) pbl_bt_sz 355 drivers/infiniband/hw/hns/hns_roce_mr.c if (npages > pbl_bt_sz / 8) { pbl_bt_sz 377 drivers/infiniband/hw/hns/hns_roce_mr.c struct hns_roce_mr *mr, u32 pbl_bt_sz) pbl_bt_sz 386 drivers/infiniband/hw/hns/hns_roce_mr.c pbl_last_bt_num = (npages + pbl_bt_sz / 8 - 1) / (pbl_bt_sz / 8); pbl_bt_sz 389 drivers/infiniband/hw/hns/hns_roce_mr.c for (i = 0; i < pbl_bt_sz / 8; i++) { pbl_bt_sz 391 drivers/infiniband/hw/hns/hns_roce_mr.c size = pbl_bt_sz; pbl_bt_sz 393 drivers/infiniband/hw/hns/hns_roce_mr.c npages_allocated = i * (pbl_bt_sz / 8); pbl_bt_sz 417 drivers/infiniband/hw/hns/hns_roce_mr.c struct hns_roce_mr *mr, u32 pbl_bt_sz) pbl_bt_sz 429 drivers/infiniband/hw/hns/hns_roce_mr.c pbl_last_bt_num = (npages + pbl_bt_sz / 8 - 1) / (pbl_bt_sz / 8); pbl_bt_sz 444 drivers/infiniband/hw/hns/hns_roce_mr.c for (i = 0; i < pbl_bt_sz / 8; i++) { pbl_bt_sz 445 drivers/infiniband/hw/hns/hns_roce_mr.c mr->pbl_bt_l1[i] = dma_alloc_coherent(dev, pbl_bt_sz, pbl_bt_sz 455 drivers/infiniband/hw/hns/hns_roce_mr.c for (j = 0; j < pbl_bt_sz / 8; j++) { pbl_bt_sz 456 drivers/infiniband/hw/hns/hns_roce_mr.c bt_idx = i * pbl_bt_sz / 8 + j; pbl_bt_sz 459 drivers/infiniband/hw/hns/hns_roce_mr.c size = pbl_bt_sz; pbl_bt_sz 462 drivers/infiniband/hw/hns/hns_roce_mr.c (pbl_bt_sz / 8); pbl_bt_sz 511 drivers/infiniband/hw/hns/hns_roce_mr.c u32 pbl_bt_sz; pbl_bt_sz 515 drivers/infiniband/hw/hns/hns_roce_mr.c pbl_bt_sz = 1 << (hr_dev->caps.pbl_ba_pg_sz + PAGE_SHIFT); pbl_bt_sz 521 drivers/infiniband/hw/hns/hns_roce_mr.c return pbl_1hop_alloc(hr_dev, npages, mr, pbl_bt_sz); pbl_bt_sz 523 drivers/infiniband/hw/hns/hns_roce_mr.c mr->pbl_l1_dma_addr = kcalloc(pbl_bt_sz / 8, pbl_bt_sz 529 drivers/infiniband/hw/hns/hns_roce_mr.c mr->pbl_bt_l1 = kcalloc(pbl_bt_sz / 8, sizeof(*mr->pbl_bt_l1), pbl_bt_sz 535 drivers/infiniband/hw/hns/hns_roce_mr.c mr->pbl_bt_l0 = dma_alloc_coherent(dev, pbl_bt_sz, pbl_bt_sz 542 drivers/infiniband/hw/hns/hns_roce_mr.c if (pbl_2hop_alloc(hr_dev, npages, mr, pbl_bt_sz)) pbl_bt_sz 547 drivers/infiniband/hw/hns/hns_roce_mr.c if (pbl_3hop_alloc(hr_dev, npages, mr, pbl_bt_sz)) pbl_bt_sz 624 drivers/infiniband/hw/hns/hns_roce_mr.c u32 pbl_bt_sz; pbl_bt_sz 629 drivers/infiniband/hw/hns/hns_roce_mr.c pbl_bt_sz = 1 << (hr_dev->caps.pbl_ba_pg_sz + PAGE_SHIFT); pbl_bt_sz 641 drivers/infiniband/hw/hns/hns_roce_mr.c dma_free_coherent(dev, pbl_bt_sz, mr->pbl_bt_l0, pbl_bt_sz 648 drivers/infiniband/hw/hns/hns_roce_mr.c i * (pbl_bt_sz / BA_BYTE_LEN); pbl_bt_sz 658 drivers/infiniband/hw/hns/hns_roce_mr.c dma_free_coherent(dev, pbl_bt_sz, mr->pbl_bt_l1[i], pbl_bt_sz 663 drivers/infiniband/hw/hns/hns_roce_mr.c dma_free_coherent(dev, pbl_bt_sz, mr->pbl_bt_l1[i], pbl_bt_sz 666 drivers/infiniband/hw/hns/hns_roce_mr.c for (j = 0; j < pbl_bt_sz / BA_BYTE_LEN; j++) { pbl_bt_sz 667 drivers/infiniband/hw/hns/hns_roce_mr.c bt_idx = i * (pbl_bt_sz / BA_BYTE_LEN) + j; pbl_bt_sz 672 drivers/infiniband/hw/hns/hns_roce_mr.c (pbl_bt_sz / BA_BYTE_LEN); pbl_bt_sz 683 drivers/infiniband/hw/hns/hns_roce_mr.c dma_free_coherent(dev, pbl_bt_sz, pbl_bt_sz 1097 drivers/infiniband/hw/hns/hns_roce_mr.c u32 pbl_bt_sz; pbl_bt_sz 1102 drivers/infiniband/hw/hns/hns_roce_mr.c pbl_bt_sz = 1 << (hr_dev->caps.pbl_ba_pg_sz + PAGE_SHIFT); pbl_bt_sz 1117 drivers/infiniband/hw/hns/hns_roce_mr.c if (j >= (pbl_bt_sz / BA_BYTE_LEN)) {