Lines Matching refs:prefix_usage

328 #define mlxsw_sp_prefix_usage_for_each(prefix, prefix_usage) \  argument
329 for_each_set_bit(prefix, (prefix_usage)->b, MLXSW_SP_PREFIX_COUNT)
346 mlxsw_sp_prefix_usage_set(struct mlxsw_sp_prefix_usage *prefix_usage, in mlxsw_sp_prefix_usage_set() argument
349 set_bit(prefix_len, prefix_usage->b); in mlxsw_sp_prefix_usage_set()
353 mlxsw_sp_prefix_usage_clear(struct mlxsw_sp_prefix_usage *prefix_usage, in mlxsw_sp_prefix_usage_clear() argument
356 clear_bit(prefix_len, prefix_usage->b); in mlxsw_sp_prefix_usage_clear()
428 struct mlxsw_sp_prefix_usage prefix_usage; member
532 struct mlxsw_sp_prefix_usage *prefix_usage, in mlxsw_sp_lpm_tree_left_struct_set() argument
540 mlxsw_sp_prefix_usage_for_each(prefix, prefix_usage) in mlxsw_sp_lpm_tree_left_struct_set()
544 mlxsw_sp_prefix_usage_for_each(prefix, prefix_usage) { in mlxsw_sp_lpm_tree_left_struct_set()
556 struct mlxsw_sp_prefix_usage *prefix_usage, in mlxsw_sp_lpm_tree_create() argument
570 err = mlxsw_sp_lpm_tree_left_struct_set(mlxsw_sp, prefix_usage, in mlxsw_sp_lpm_tree_create()
574 memcpy(&lpm_tree->prefix_usage, prefix_usage, in mlxsw_sp_lpm_tree_create()
575 sizeof(lpm_tree->prefix_usage)); in mlxsw_sp_lpm_tree_create()
594 struct mlxsw_sp_prefix_usage *prefix_usage, in mlxsw_sp_lpm_tree_get() argument
604 mlxsw_sp_prefix_usage_eq(&lpm_tree->prefix_usage, in mlxsw_sp_lpm_tree_get()
605 prefix_usage)) { in mlxsw_sp_lpm_tree_get()
610 return mlxsw_sp_lpm_tree_create(mlxsw_sp, prefix_usage, proto); in mlxsw_sp_lpm_tree_get()
4544 mlxsw_sp_prefix_usage_cpy(&req_prefix_usage, &lpm_tree->prefix_usage); in mlxsw_sp_fib_lpm_tree_link()
4577 mlxsw_sp_prefix_usage_cpy(&req_prefix_usage, &lpm_tree->prefix_usage); in mlxsw_sp_fib_lpm_tree_unlink()