Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/infiniband/hw/hns/
Dhns_roce_hem.c172 mhop->l1_idx = table_idx / chunk_ba_num & (chunk_ba_num - 1); in hns_roce_calc_hem_mhop()
176 mhop->l1_idx = table_idx & (chunk_ba_num - 1); in hns_roce_calc_hem_mhop()
399 mhop.l1_idx * chunk_ba_num + mhop.l2_idx; in hns_roce_table_mhop_get()
400 bt_l1_idx = mhop.l0_idx * chunk_ba_num + mhop.l1_idx; in hns_roce_table_mhop_get()
404 hem_idx = mhop.l0_idx * chunk_ba_num + mhop.l1_idx; in hns_roce_table_mhop_get()
458 *(table->bt_l0[bt_l0_idx] + mhop.l1_idx) = in hns_roce_table_mhop_get()
493 *(table->bt_l0[bt_l0_idx] + mhop.l1_idx) = bt_ba; in hns_roce_table_mhop_get()
509 *(table->bt_l0[bt_l0_idx] + mhop.l1_idx) = bt_ba; in hns_roce_table_mhop_get()
608 mhop.l1_idx * chunk_ba_num + mhop.l2_idx; in hns_roce_table_mhop_put()
609 bt_l1_idx = mhop.l0_idx * chunk_ba_num + mhop.l1_idx; in hns_roce_table_mhop_put()
[all …]
Dhns_roce_hem.h101 u32 l1_idx;/* level 1 base address table index */ member
Dhns_roce_hw_v2.c2339 u64 l1_idx = 0; in hns_roce_v2_set_hem() local
2350 j = mhop.l1_idx; in hns_roce_v2_set_hem()
2358 l1_idx = i * chunk_ba_num + j; in hns_roce_v2_set_hem()
2404 bt_ba = table->bt_l1_dma_addr[l1_idx]; in hns_roce_v2_set_hem()