Lines Matching refs:prefix_usage

376 #define mlxsw_sp_prefix_usage_for_each(prefix, prefix_usage) \  argument
377 for_each_set_bit(prefix, (prefix_usage)->b, MLXSW_SP_PREFIX_COUNT)
394 mlxsw_sp_prefix_usage_set(struct mlxsw_sp_prefix_usage *prefix_usage, in mlxsw_sp_prefix_usage_set() argument
397 set_bit(prefix_len, prefix_usage->b); in mlxsw_sp_prefix_usage_set()
401 mlxsw_sp_prefix_usage_clear(struct mlxsw_sp_prefix_usage *prefix_usage, in mlxsw_sp_prefix_usage_clear() argument
404 clear_bit(prefix_len, prefix_usage->b); in mlxsw_sp_prefix_usage_clear()
478 struct mlxsw_sp_prefix_usage prefix_usage; member
582 struct mlxsw_sp_prefix_usage *prefix_usage, in mlxsw_sp_lpm_tree_left_struct_set() argument
590 mlxsw_sp_prefix_usage_for_each(prefix, prefix_usage) in mlxsw_sp_lpm_tree_left_struct_set()
594 mlxsw_sp_prefix_usage_for_each(prefix, prefix_usage) { in mlxsw_sp_lpm_tree_left_struct_set()
606 struct mlxsw_sp_prefix_usage *prefix_usage, in mlxsw_sp_lpm_tree_create() argument
620 err = mlxsw_sp_lpm_tree_left_struct_set(mlxsw_sp, prefix_usage, in mlxsw_sp_lpm_tree_create()
624 memcpy(&lpm_tree->prefix_usage, prefix_usage, in mlxsw_sp_lpm_tree_create()
625 sizeof(lpm_tree->prefix_usage)); in mlxsw_sp_lpm_tree_create()
644 struct mlxsw_sp_prefix_usage *prefix_usage, in mlxsw_sp_lpm_tree_get() argument
654 mlxsw_sp_prefix_usage_eq(&lpm_tree->prefix_usage, in mlxsw_sp_lpm_tree_get()
655 prefix_usage)) { in mlxsw_sp_lpm_tree_get()
660 return mlxsw_sp_lpm_tree_create(mlxsw_sp, prefix_usage, proto); in mlxsw_sp_lpm_tree_get()
6157 mlxsw_sp_prefix_usage_cpy(&req_prefix_usage, &lpm_tree->prefix_usage); in mlxsw_sp_fib_lpm_tree_link()
6190 mlxsw_sp_prefix_usage_cpy(&req_prefix_usage, &lpm_tree->prefix_usage); in mlxsw_sp_fib_lpm_tree_unlink()