Home
last modified time | relevance | path

Searched refs:obj_per_chunk (Results 1 – 4 of 4) sorted by relevance

/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx4/
Dicm.c419 int obj_per_chunk; in mlx4_init_icm_table() local
425 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()
/kernel/linux/linux-5.10/drivers/infiniband/hw/hns/
Dhns_roce_hem.c794 unsigned long obj_per_chunk; in hns_roce_table_find() local
807 obj_per_chunk = table->table_chunk_size / table->obj_size; in hns_roce_table_find()
808 hem = table->hem[(obj & (table->num_obj - 1)) / obj_per_chunk]; in hns_roce_table_find()
809 idx_offset = (obj & (table->num_obj - 1)) % obj_per_chunk; in hns_roce_table_find()
863 unsigned long obj_per_chunk; in hns_roce_init_hem_table() local
868 obj_per_chunk = table->table_chunk_size / obj_size; in hns_roce_init_hem_table()
869 num_hem = (nobj + obj_per_chunk - 1) / obj_per_chunk; in hns_roce_init_hem_table()
890 obj_per_chunk = buf_chunk_size / obj_size; in hns_roce_init_hem_table()
891 num_hem = (nobj + obj_per_chunk - 1) / obj_per_chunk; in hns_roce_init_hem_table()
Dhns_roce_hw_v2.c1913 u64 obj_per_chunk; in calc_pg_sz() local
1923 obj_per_chunk = ctx_bt_num * (bt_chunk_size / BA_BYTE_LEN) * in calc_pg_sz()
1929 obj_per_chunk = ctx_bt_num * (bt_chunk_size / BA_BYTE_LEN) * in calc_pg_sz()
1934 obj_per_chunk = ctx_bt_num * (bt_chunk_size / BA_BYTE_LEN) * in calc_pg_sz()
1938 obj_per_chunk = ctx_bt_num * obj_per_chunk_default; in calc_pg_sz()
1947 *bt_page_size = ilog2(DIV_ROUND_UP(obj_num, obj_per_chunk)); in calc_pg_sz()
1949 *buf_page_size = ilog2(DIV_ROUND_UP(obj_num, obj_per_chunk)); in calc_pg_sz()
/kernel/linux/linux-5.10/drivers/infiniband/hw/mthca/
Dmthca_memfree.c362 int obj_per_chunk; in mthca_alloc_icm_table() local
367 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()