Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/net/ethernet/mellanox/mlx4/
Dicm.c420 int num_icm; in mlx4_init_icm_table() local
428 num_icm = DIV_ROUND_UP(nobj, obj_per_chunk); in mlx4_init_icm_table()
430 table->icm = kvcalloc(num_icm, sizeof(*table->icm), GFP_KERNEL); in mlx4_init_icm_table()
434 table->num_icm = num_icm; in mlx4_init_icm_table()
469 for (i = 0; i < num_icm; ++i) in mlx4_init_icm_table()
485 for (i = 0; i < table->num_icm; ++i) in mlx4_cleanup_icm_table()
Dmlx4.h264 int num_icm; member
/linux-6.6.21/drivers/infiniband/hw/mthca/
Dmthca_memfree.c363 int num_icm; in mthca_alloc_icm_table() local
368 num_icm = DIV_ROUND_UP(nobj, obj_per_chunk); in mthca_alloc_icm_table()
370 table = kmalloc(struct_size(table, icm, num_icm), GFP_KERNEL); in mthca_alloc_icm_table()
375 table->num_icm = num_icm; in mthca_alloc_icm_table()
382 for (i = 0; i < num_icm; ++i) in mthca_alloc_icm_table()
412 for (i = 0; i < num_icm; ++i) in mthca_alloc_icm_table()
428 for (i = 0; i < table->num_icm; ++i) in mthca_free_icm_table()
Dmthca_memfree.h65 int num_icm; member