Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/infiniband/hw/hns/
Dhns_roce_hem.c529 !table->bt_l1[bt_l1_idx]) { in hns_roce_table_mhop_get()
530 table->bt_l1[bt_l1_idx] = dma_alloc_coherent(dev, bt_chunk_size, in hns_roce_table_mhop_get()
533 if (!table->bt_l1[bt_l1_idx]) { in hns_roce_table_mhop_get()
570 *(table->bt_l1[bt_l1_idx] + mhop.l2_idx) = bt_ba; in hns_roce_table_mhop_get()
597 dma_free_coherent(dev, bt_chunk_size, table->bt_l1[bt_l1_idx], in hns_roce_table_mhop_get()
599 table->bt_l1[bt_l1_idx] = NULL; in hns_roce_table_mhop_get()
751 table->bt_l1[bt_l1_idx], in hns_roce_table_mhop_put()
753 table->bt_l1[bt_l1_idx] = NULL; in hns_roce_table_mhop_put()
756 if (hns_roce_check_bt_null(table->bt_l1, start_idx, in hns_roce_table_mhop_put()
973 table->bt_l1 = kcalloc(num_bt_l1, in hns_roce_init_hem_table()
[all …]
Dhns_roce_hw_v2.c5349 dma_free_coherent(dev, bt_chk_sz, eq->bt_l1[i], in hns_roce_mhop_free_eq()
5373 kfree(eq->bt_l1); in hns_roce_mhop_free_eq()
5377 eq->bt_l1 = NULL; in hns_roce_mhop_free_eq()
5602 eq->bt_l1 = kcalloc(bt_num, sizeof(*eq->bt_l1), GFP_KERNEL); in hns_roce_mhop_alloc_eq()
5603 if (!eq->bt_l1) in hns_roce_mhop_alloc_eq()
5644 eq->bt_l1[i] = dma_alloc_coherent(dev, bt_chk_sz, in hns_roce_mhop_alloc_eq()
5647 if (!eq->bt_l1[i]) in hns_roce_mhop_alloc_eq()
5667 *(eq->bt_l1[i] + j) = eq->buf_dma[idx]; in hns_roce_mhop_alloc_eq()
5695 dma_free_coherent(dev, bt_chk_sz, eq->bt_l1[i], in hns_roce_mhop_alloc_eq()
5719 dma_free_coherent(dev, bt_chk_sz, eq->bt_l1[i], in hns_roce_mhop_alloc_eq()
[all …]
Dhns_roce_device.h335 u64 **bt_l1; member
775 u64 **bt_l1; /* Base address table for L1 */ member