Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/infiniband/hw/hns/
Dhns_roce_hem.c225 mhop->l0_idx = (table_idx / chunk_ba_num) / chunk_ba_num; in hns_roce_calc_hem_mhop()
229 mhop->l0_idx = table_idx / chunk_ba_num; in hns_roce_calc_hem_mhop()
232 mhop->l0_idx = table_idx; in hns_roce_calc_hem_mhop()
239 if (mhop->l0_idx >= mhop->ba_l0_num) in hns_roce_calc_hem_mhop()
240 mhop->l0_idx %= mhop->ba_l0_num; in hns_roce_calc_hem_mhop()
412 u32 l0_idx, l1_idx, l2_idx; in calc_hem_config() local
421 l0_idx = mhop->l0_idx; in calc_hem_config()
428 index->l1 = l0_idx * chunk_ba_num + l1_idx; in calc_hem_config()
429 index->l0 = l0_idx; in calc_hem_config()
430 index->buf = l0_idx * chunk_ba_num * chunk_ba_num + in calc_hem_config()
[all …]
Dhns_roce_hem.h105 u32 l0_idx; /* level 0 base address table index */ member
Dhns_roce_hw_v2.c3637 i = mhop.l0_idx; in hns_roce_v2_set_hem()
3654 obj = mhop.l0_idx; in hns_roce_v2_set_hem()