Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/infiniband/hw/hns/
Dhns_roce_hem.c173 mhop->l0_idx = (table_idx / chunk_ba_num) / chunk_ba_num; in hns_roce_calc_hem_mhop()
177 mhop->l0_idx = table_idx / chunk_ba_num; in hns_roce_calc_hem_mhop()
180 mhop->l0_idx = table_idx; in hns_roce_calc_hem_mhop()
187 if (mhop->l0_idx >= mhop->ba_l0_num) in hns_roce_calc_hem_mhop()
188 mhop->l0_idx %= mhop->ba_l0_num; in hns_roce_calc_hem_mhop()
398 hem_idx = mhop.l0_idx * chunk_ba_num * chunk_ba_num + 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()
401 bt_l0_idx = mhop.l0_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()
405 bt_l0_idx = mhop.l0_idx; in hns_roce_table_mhop_get()
[all …]
Dhns_roce_hem.h100 u32 l0_idx;/* level 0 base address table index */ member
Dhns_roce_hw_v2.c2349 i = mhop.l0_idx; in hns_roce_v2_set_hem()