Lines Matching refs:prefix_usage
302 #define mlxsw_sp_prefix_usage_for_each(prefix, prefix_usage) \ argument
303 for_each_set_bit(prefix, (prefix_usage)->b, MLXSW_SP_PREFIX_COUNT)
320 mlxsw_sp_prefix_usage_set(struct mlxsw_sp_prefix_usage *prefix_usage, in mlxsw_sp_prefix_usage_set() argument
323 set_bit(prefix_len, prefix_usage->b); in mlxsw_sp_prefix_usage_set()
327 mlxsw_sp_prefix_usage_clear(struct mlxsw_sp_prefix_usage *prefix_usage, in mlxsw_sp_prefix_usage_clear() argument
330 clear_bit(prefix_len, prefix_usage->b); in mlxsw_sp_prefix_usage_clear()
403 struct mlxsw_sp_prefix_usage prefix_usage; member
507 struct mlxsw_sp_prefix_usage *prefix_usage, in mlxsw_sp_lpm_tree_left_struct_set() argument
515 mlxsw_sp_prefix_usage_for_each(prefix, prefix_usage) in mlxsw_sp_lpm_tree_left_struct_set()
519 mlxsw_sp_prefix_usage_for_each(prefix, prefix_usage) { in mlxsw_sp_lpm_tree_left_struct_set()
531 struct mlxsw_sp_prefix_usage *prefix_usage, in mlxsw_sp_lpm_tree_create() argument
545 err = mlxsw_sp_lpm_tree_left_struct_set(mlxsw_sp, prefix_usage, in mlxsw_sp_lpm_tree_create()
549 memcpy(&lpm_tree->prefix_usage, prefix_usage, in mlxsw_sp_lpm_tree_create()
550 sizeof(lpm_tree->prefix_usage)); in mlxsw_sp_lpm_tree_create()
569 struct mlxsw_sp_prefix_usage *prefix_usage, in mlxsw_sp_lpm_tree_get() argument
579 mlxsw_sp_prefix_usage_eq(&lpm_tree->prefix_usage, in mlxsw_sp_lpm_tree_get()
580 prefix_usage)) { in mlxsw_sp_lpm_tree_get()
585 return mlxsw_sp_lpm_tree_create(mlxsw_sp, prefix_usage, proto); in mlxsw_sp_lpm_tree_get()
4746 mlxsw_sp_prefix_usage_cpy(&req_prefix_usage, &lpm_tree->prefix_usage); in mlxsw_sp_fib_lpm_tree_link()
4779 mlxsw_sp_prefix_usage_cpy(&req_prefix_usage, &lpm_tree->prefix_usage); in mlxsw_sp_fib_lpm_tree_unlink()