Lines Matching refs:num_hem
339 if (unlikely(index->buf >= table->num_hem)) { in calc_hem_config()
341 table->type, index->buf, table->num_hem); in calc_hem_config()
588 chunk_ba_num, table->num_hem)) in clear_mhop_hem()
592 chunk_ba_num, table->num_hem)) { in clear_mhop_hem()
741 unsigned long num_hem; in hns_roce_init_hem_table() local
746 num_hem = DIV_ROUND_UP(nobj, obj_per_chunk); in hns_roce_init_hem_table()
748 table->hem = kcalloc(num_hem, sizeof(*table->hem), GFP_KERNEL); in hns_roce_init_hem_table()
768 num_hem = DIV_ROUND_UP(nobj, obj_per_chunk); in hns_roce_init_hem_table()
774 table->hem = kcalloc(num_hem, sizeof(*table->hem), in hns_roce_init_hem_table()
782 num_bt_l1 = DIV_ROUND_UP(num_hem, bt_chunk_num); in hns_roce_init_hem_table()
813 table->num_hem = num_hem; in hns_roce_init_hem_table()
852 for (i = 0; i < table->num_hem; ++i) { in hns_roce_cleanup_mhop_hem_table()
884 for (i = 0; i < table->num_hem; ++i) in hns_roce_cleanup_hem_table()