Searched refs:obj_per_chunk (Results 1 – 4 of 4) sorted by relevance
419 int obj_per_chunk; in mlx4_init_icm_table() local425 obj_per_chunk = MLX4_TABLE_CHUNK_SIZE / obj_size; in mlx4_init_icm_table()426 if (WARN_ON(!obj_per_chunk)) in mlx4_init_icm_table()428 num_icm = DIV_ROUND_UP(nobj, obj_per_chunk); in mlx4_init_icm_table()
691 unsigned long obj_per_chunk; in hns_roce_table_find() local701 obj_per_chunk = table->table_chunk_size / table->obj_size; in hns_roce_table_find()702 hem = table->hem[obj / obj_per_chunk]; in hns_roce_table_find()703 idx_offset = obj % obj_per_chunk; in hns_roce_table_find()740 unsigned long obj_per_chunk; in hns_roce_init_hem_table() local745 obj_per_chunk = table->table_chunk_size / obj_size; in hns_roce_init_hem_table()746 num_hem = DIV_ROUND_UP(nobj, obj_per_chunk); in hns_roce_init_hem_table()767 obj_per_chunk = buf_chunk_size / obj_size; in hns_roce_init_hem_table()768 num_hem = DIV_ROUND_UP(nobj, obj_per_chunk); in hns_roce_init_hem_table()
1968 u64 obj_per_chunk; in calc_pg_sz() local1978 obj_per_chunk = ctx_bt_num * (bt_chunk_size / BA_BYTE_LEN) * in calc_pg_sz()1984 obj_per_chunk = ctx_bt_num * (bt_chunk_size / BA_BYTE_LEN) * in calc_pg_sz()1989 obj_per_chunk = ctx_bt_num * (bt_chunk_size / BA_BYTE_LEN) * in calc_pg_sz()1993 obj_per_chunk = ctx_bt_num * obj_per_chunk_default; in calc_pg_sz()2002 *bt_page_size = ilog2(DIV_ROUND_UP(obj_num, obj_per_chunk)); in calc_pg_sz()2004 *buf_page_size = ilog2(DIV_ROUND_UP(obj_num, obj_per_chunk)); in calc_pg_sz()
362 int obj_per_chunk; in mthca_alloc_icm_table() local367 obj_per_chunk = MTHCA_TABLE_CHUNK_SIZE / obj_size; in mthca_alloc_icm_table()368 num_icm = DIV_ROUND_UP(nobj, obj_per_chunk); in mthca_alloc_icm_table()