Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/infiniband/hw/hns/
Dhns_roce_hem.c449 !table->bt_l1[bt_l1_idx]) { in hns_roce_table_mhop_get()
450 table->bt_l1[bt_l1_idx] = dma_alloc_coherent(dev, bt_chunk_size, in hns_roce_table_mhop_get()
453 if (!table->bt_l1[bt_l1_idx]) { in hns_roce_table_mhop_get()
490 *(table->bt_l1[bt_l1_idx] + mhop.l2_idx) = bt_ba; in hns_roce_table_mhop_get()
517 dma_free_coherent(dev, bt_chunk_size, table->bt_l1[bt_l1_idx], in hns_roce_table_mhop_get()
519 table->bt_l1[bt_l1_idx] = NULL; in hns_roce_table_mhop_get()
671 table->bt_l1[bt_l1_idx], in hns_roce_table_mhop_put()
673 table->bt_l1[bt_l1_idx] = NULL; in hns_roce_table_mhop_put()
676 if (hns_roce_check_bt_null(table->bt_l1, start_idx, in hns_roce_table_mhop_put()
931 table->bt_l1 = kcalloc(num_bt_l1, in hns_roce_init_hem_table()
[all …]
Dhns_roce_hw_v2.c4540 dma_free_coherent(dev, bt_chk_sz, eq->bt_l1[i], in hns_roce_mhop_free_eq()
4564 kfree(eq->bt_l1); in hns_roce_mhop_free_eq()
4568 eq->bt_l1 = NULL; in hns_roce_mhop_free_eq()
4796 eq->bt_l1 = kcalloc(bt_num, sizeof(*eq->bt_l1), GFP_KERNEL); in hns_roce_mhop_alloc_eq()
4797 if (!eq->bt_l1) in hns_roce_mhop_alloc_eq()
4838 eq->bt_l1[i] = dma_alloc_coherent(dev, bt_chk_sz, in hns_roce_mhop_alloc_eq()
4841 if (!eq->bt_l1[i]) in hns_roce_mhop_alloc_eq()
4862 *(eq->bt_l1[i] + j) = eq->buf_dma[idx]; in hns_roce_mhop_alloc_eq()
4889 dma_free_coherent(dev, bt_chk_sz, eq->bt_l1[i], in hns_roce_mhop_alloc_eq()
4913 dma_free_coherent(dev, bt_chk_sz, eq->bt_l1[i], in hns_roce_mhop_alloc_eq()
[all …]
Dhns_roce_device.h283 u64 **bt_l1; member
637 u64 **bt_l1; /* Base address table for L1 */ member