Lines Matching refs:rif_entries

82 	u8 rif_entries;  member
8348 u8 rif_entries) in mlxsw_sp_rif_index_alloc() argument
8351 rif_entries); in mlxsw_sp_rif_index_alloc()
8357 WARN_ON_ONCE(*p_rif_index % rif_entries); in mlxsw_sp_rif_index_alloc()
8363 u8 rif_entries) in mlxsw_sp_rif_index_free() argument
8366 MLXSW_SP_ROUTER_GENALLOC_OFFSET + rif_index, rif_entries); in mlxsw_sp_rif_index_free()
8630 u8 rif_entries = params->double_entry ? 2 : 1; in mlxsw_sp_rif_create() local
8649 err = mlxsw_sp_rif_index_alloc(mlxsw_sp, &rif_index, rif_entries); in mlxsw_sp_rif_create()
8670 rif->rif_entries = rif_entries; in mlxsw_sp_rif_create()
8708 atomic_add(rif_entries, &mlxsw_sp->router->rifs_count); in mlxsw_sp_rif_create()
8727 mlxsw_sp_rif_index_free(mlxsw_sp, rif_index, rif_entries); in mlxsw_sp_rif_create()
8741 u8 rif_entries = rif->rif_entries; in mlxsw_sp_rif_destroy() local
8746 atomic_sub(rif_entries, &mlxsw_sp->router->rifs_count); in mlxsw_sp_rif_destroy()
8767 mlxsw_sp_rif_index_free(mlxsw_sp, rif_index, rif_entries); in mlxsw_sp_rif_destroy()
10892 u8 rif_entries = 1; in mlxsw_sp_ul_rif_create() local
10896 err = mlxsw_sp_rif_index_alloc(mlxsw_sp, &rif_index, rif_entries); in mlxsw_sp_ul_rif_create()
10911 ul_rif->rif_entries = rif_entries; in mlxsw_sp_ul_rif_create()
10916 atomic_add(rif_entries, &mlxsw_sp->router->rifs_count); in mlxsw_sp_ul_rif_create()
10923 mlxsw_sp_rif_index_free(mlxsw_sp, rif_index, rif_entries); in mlxsw_sp_ul_rif_create()
10930 u8 rif_entries = ul_rif->rif_entries; in mlxsw_sp_ul_rif_destroy() local
10933 atomic_sub(rif_entries, &mlxsw_sp->router->rifs_count); in mlxsw_sp_ul_rif_destroy()
10937 mlxsw_sp_rif_index_free(mlxsw_sp, rif_index, rif_entries); in mlxsw_sp_ul_rif_destroy()