Home
last modified time | relevance | path

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

/linux/drivers/infiniband/hw/hns/
H A Dhns_roce_hem.c207 u32 chunk_ba_num; in hns_roce_calc_hem_mhop() local
223 chunk_ba_num = mhop->bt_chunk_size / BA_BYTE_LEN; in hns_roce_calc_hem_mhop()
229 mhop->l2_idx = table_idx & (chunk_ba_num - 1); in hns_roce_calc_hem_mhop()
230 mhop->l1_idx = table_idx / chunk_ba_num & (chunk_ba_num - 1); in hns_roce_calc_hem_mhop()
231 mhop->l0_idx = (table_idx / chunk_ba_num) / chunk_ba_num; in hns_roce_calc_hem_mhop()
234 mhop->l1_idx = table_idx & (chunk_ba_num - 1); in hns_roce_calc_hem_mhop()
235 mhop->l0_idx = table_idx / chunk_ba_num; in hns_roce_calc_hem_mhop()
306 u32 chunk_ba_num; in calc_hem_config() local
317 chunk_ba_num = mhop->bt_chunk_size / BA_BYTE_LEN; in calc_hem_config()
321 index->l1 = l0_idx * chunk_ba_num + l1_idx; in calc_hem_config()
[all …]
H A Dhns_roce_hw_v2.c4105 u32 chunk_ba_num; in hns_roce_v2_set_hem() local
4116 chunk_ba_num = mhop.bt_chunk_size / 8; in hns_roce_v2_set_hem()
4119 hem_idx = i * chunk_ba_num * chunk_ba_num + j * chunk_ba_num + in hns_roce_v2_set_hem()
4121 l1_idx = i * chunk_ba_num + j; in hns_roce_v2_set_hem()
4123 hem_idx = i * chunk_ba_num + j; in hns_roce_v2_set_hem()