Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/infiniband/hw/hns/
Dhns_roce_hem.c256 mhop->l1_idx = table_idx / chunk_ba_num & (chunk_ba_num - 1); in hns_roce_calc_hem_mhop()
260 mhop->l1_idx = table_idx & (chunk_ba_num - 1); in hns_roce_calc_hem_mhop()
473 mhop.l1_idx * chunk_ba_num + mhop.l2_idx; in hns_roce_table_mhop_get()
474 bt_l1_idx = mhop.l0_idx * chunk_ba_num + mhop.l1_idx; in hns_roce_table_mhop_get()
478 hem_idx = mhop.l0_idx * chunk_ba_num + mhop.l1_idx; in hns_roce_table_mhop_get()
538 *(table->bt_l0[bt_l0_idx] + mhop.l1_idx) = in hns_roce_table_mhop_get()
573 *(table->bt_l0[bt_l0_idx] + mhop.l1_idx) = bt_ba; in hns_roce_table_mhop_get()
589 *(table->bt_l0[bt_l0_idx] + mhop.l1_idx) = bt_ba; in hns_roce_table_mhop_get()
688 mhop.l1_idx * chunk_ba_num + mhop.l2_idx; in hns_roce_table_mhop_put()
689 bt_l1_idx = mhop.l0_idx * chunk_ba_num + mhop.l1_idx; in hns_roce_table_mhop_put()
[all …]
Dhns_roce_hem.h106 u32 l1_idx; /* level 1 base address table index */ member
Dhns_roce_hw_v2.c3045 u64 l1_idx = 0; in hns_roce_v2_set_hem() local
3056 j = mhop.l1_idx; in hns_roce_v2_set_hem()
3064 l1_idx = i * chunk_ba_num + j; in hns_roce_v2_set_hem()
3097 bt_ba = table->bt_l1_dma_addr[l1_idx]; in hns_roce_v2_set_hem()