/kernel/linux/linux-6.6/drivers/infiniband/hw/hns/ |
H A D | hns_roce_hem.c | 123 struct hns_roce_hem_mhop *mhop, in get_hem_table_config() 130 mhop->buf_chunk_size = 1 << (hr_dev->caps.qpc_buf_pg_sz in get_hem_table_config() 132 mhop->bt_chunk_size = 1 << (hr_dev->caps.qpc_ba_pg_sz in get_hem_table_config() 134 mhop->ba_l0_num = hr_dev->caps.qpc_bt_num; in get_hem_table_config() 135 mhop->hop_num = hr_dev->caps.qpc_hop_num; in get_hem_table_config() 138 mhop->buf_chunk_size = 1 << (hr_dev->caps.mpt_buf_pg_sz in get_hem_table_config() 140 mhop->bt_chunk_size = 1 << (hr_dev->caps.mpt_ba_pg_sz in get_hem_table_config() 142 mhop->ba_l0_num = hr_dev->caps.mpt_bt_num; in get_hem_table_config() 143 mhop->hop_num = hr_dev->caps.mpt_hop_num; in get_hem_table_config() 146 mhop in get_hem_table_config() 122 get_hem_table_config(struct hns_roce_dev *hr_dev, struct hns_roce_hem_mhop *mhop, u32 type) get_hem_table_config() argument 202 hns_roce_calc_hem_mhop(struct hns_roce_dev *hr_dev, struct hns_roce_hem_table *table, unsigned long *obj, struct hns_roce_hem_mhop *mhop) hns_roce_calc_hem_mhop() argument 335 calc_hem_config(struct hns_roce_dev *hr_dev, struct hns_roce_hem_table *table, unsigned long obj, struct hns_roce_hem_mhop *mhop, struct hns_roce_hem_index *index) calc_hem_config() argument 385 free_mhop_hem(struct hns_roce_dev *hr_dev, struct hns_roce_hem_table *table, struct hns_roce_hem_mhop *mhop, struct hns_roce_hem_index *index) free_mhop_hem() argument 411 alloc_mhop_hem(struct hns_roce_dev *hr_dev, struct hns_roce_hem_table *table, struct hns_roce_hem_mhop *mhop, struct hns_roce_hem_index *index) alloc_mhop_hem() argument 485 set_mhop_hem(struct hns_roce_dev *hr_dev, struct hns_roce_hem_table *table, unsigned long obj, struct hns_roce_hem_mhop *mhop, struct hns_roce_hem_index *index) set_mhop_hem() argument 529 struct hns_roce_hem_mhop mhop = {}; hns_roce_table_mhop_get() local 613 clear_mhop_hem(struct hns_roce_dev *hr_dev, struct hns_roce_hem_table *table, unsigned long obj, struct hns_roce_hem_mhop *mhop, struct hns_roce_hem_index *index) clear_mhop_hem() argument 674 struct hns_roce_hem_mhop mhop = {}; hns_roce_table_mhop_put() local 729 struct hns_roce_hem_mhop mhop; hns_roce_table_find() local 809 struct hns_roce_hem_mhop mhop = {}; hns_roce_init_hem_table() local 899 struct hns_roce_hem_mhop mhop; hns_roce_cleanup_mhop_hem_table() local [all...] |
H A D | hns_roce_hem.h | 120 struct hns_roce_hem_mhop *mhop);
|
H A D | hns_roce_hw_v2.c | 4050 struct hns_roce_hem_mhop mhop; in hns_roce_v2_set_hem() local 4064 hns_roce_calc_hem_mhop(hr_dev, table, &mhop_obj, &mhop); in hns_roce_v2_set_hem() 4065 i = mhop.l0_idx; in hns_roce_v2_set_hem() 4066 j = mhop.l1_idx; in hns_roce_v2_set_hem() 4067 k = mhop.l2_idx; in hns_roce_v2_set_hem() 4068 hop_num = mhop.hop_num; in hns_roce_v2_set_hem() 4069 chunk_ba_num = mhop.bt_chunk_size / 8; in hns_roce_v2_set_hem() 4082 obj = mhop.l0_idx; in hns_roce_v2_set_hem()
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/hns/ |
H A D | hns_roce_hem.c | 121 struct hns_roce_hem_mhop *mhop, in get_hem_table_config() 128 mhop->buf_chunk_size = 1 << (hr_dev->caps.qpc_buf_pg_sz in get_hem_table_config() 130 mhop->bt_chunk_size = 1 << (hr_dev->caps.qpc_ba_pg_sz in get_hem_table_config() 132 mhop->ba_l0_num = hr_dev->caps.qpc_bt_num; in get_hem_table_config() 133 mhop->hop_num = hr_dev->caps.qpc_hop_num; in get_hem_table_config() 136 mhop->buf_chunk_size = 1 << (hr_dev->caps.mpt_buf_pg_sz in get_hem_table_config() 138 mhop->bt_chunk_size = 1 << (hr_dev->caps.mpt_ba_pg_sz in get_hem_table_config() 140 mhop->ba_l0_num = hr_dev->caps.mpt_bt_num; in get_hem_table_config() 141 mhop->hop_num = hr_dev->caps.mpt_hop_num; in get_hem_table_config() 144 mhop in get_hem_table_config() 120 get_hem_table_config(struct hns_roce_dev *hr_dev, struct hns_roce_hem_mhop *mhop, u32 type) get_hem_table_config() argument 192 hns_roce_calc_hem_mhop(struct hns_roce_dev *hr_dev, struct hns_roce_hem_table *table, unsigned long *obj, struct hns_roce_hem_mhop *mhop) hns_roce_calc_hem_mhop() argument 326 calc_hem_config(struct hns_roce_dev *hr_dev, struct hns_roce_hem_table *table, unsigned long obj, struct hns_roce_hem_mhop *mhop, struct hns_roce_hem_index *index) calc_hem_config() argument 376 free_mhop_hem(struct hns_roce_dev *hr_dev, struct hns_roce_hem_table *table, struct hns_roce_hem_mhop *mhop, struct hns_roce_hem_index *index) free_mhop_hem() argument 402 alloc_mhop_hem(struct hns_roce_dev *hr_dev, struct hns_roce_hem_table *table, struct hns_roce_hem_mhop *mhop, struct hns_roce_hem_index *index) alloc_mhop_hem() argument 476 set_mhop_hem(struct hns_roce_dev *hr_dev, struct hns_roce_hem_table *table, unsigned long obj, struct hns_roce_hem_mhop *mhop, struct hns_roce_hem_index *index) set_mhop_hem() argument 520 struct hns_roce_hem_mhop mhop = {}; hns_roce_table_mhop_get() local 606 clear_mhop_hem(struct hns_roce_dev *hr_dev, struct hns_roce_hem_table *table, unsigned long obj, struct hns_roce_hem_mhop *mhop, struct hns_roce_hem_index *index) clear_mhop_hem() argument 658 struct hns_roce_hem_mhop mhop = {}; hns_roce_table_mhop_put() local 711 struct hns_roce_hem_mhop mhop; hns_roce_table_find() local 796 struct hns_roce_hem_mhop mhop = {}; hns_roce_init_hem_table() local 888 struct hns_roce_hem_mhop mhop; hns_roce_cleanup_mhop_hem_table() local [all...] |
H A D | hns_roce_hem.h | 120 struct hns_roce_hem_mhop *mhop);
|
H A D | hns_roce_hw_v2.c | 3621 struct hns_roce_hem_mhop mhop; in hns_roce_v2_set_hem() local 3635 hns_roce_calc_hem_mhop(hr_dev, table, &mhop_obj, &mhop); in hns_roce_v2_set_hem() 3636 i = mhop.l0_idx; in hns_roce_v2_set_hem() 3637 j = mhop.l1_idx; in hns_roce_v2_set_hem() 3638 k = mhop.l2_idx; in hns_roce_v2_set_hem() 3639 hop_num = mhop.hop_num; in hns_roce_v2_set_hem() 3640 chunk_ba_num = mhop.bt_chunk_size / 8; in hns_roce_v2_set_hem() 3653 obj = mhop.l0_idx; in hns_roce_v2_set_hem()
|