Lines Matching refs:num_hem
376 if (unlikely(index->buf >= table->num_hem)) { in calc_hem_config()
378 table->type, index->buf, table->num_hem); in calc_hem_config()
628 chunk_ba_num, table->num_hem)) in clear_mhop_hem()
632 chunk_ba_num, table->num_hem)) { in clear_mhop_hem()
798 unsigned long num_hem; in hns_roce_init_hem_table() local
803 num_hem = DIV_ROUND_UP(nobj, obj_per_chunk); in hns_roce_init_hem_table()
805 table->hem = kcalloc(num_hem, sizeof(*table->hem), GFP_KERNEL); in hns_roce_init_hem_table()
825 num_hem = DIV_ROUND_UP(nobj, obj_per_chunk); in hns_roce_init_hem_table()
831 table->hem = kcalloc(num_hem, sizeof(*table->hem), in hns_roce_init_hem_table()
839 num_bt_l1 = DIV_ROUND_UP(num_hem, bt_chunk_num); in hns_roce_init_hem_table()
870 table->num_hem = num_hem; in hns_roce_init_hem_table()
909 for (i = 0; i < table->num_hem; ++i) { in hns_roce_cleanup_mhop_hem_table()
940 for (i = 0; i < table->num_hem; ++i) in hns_roce_cleanup_hem_table()