Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/infiniband/hw/hns/
Dhns_roce_hem.c377 u64 bt_l1_idx = 0; in hns_roce_table_mhop_get() local
400 bt_l1_idx = mhop.l0_idx * chunk_ba_num + mhop.l1_idx; in hns_roce_table_mhop_get()
449 !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()
451 &(table->bt_l1_dma_addr[bt_l1_idx]), in hns_roce_table_mhop_get()
453 if (!table->bt_l1[bt_l1_idx]) { in hns_roce_table_mhop_get()
459 table->bt_l1_dma_addr[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()
518 table->bt_l1_dma_addr[bt_l1_idx]); in hns_roce_table_mhop_get()
[all …]