Lines Matching refs:cmp_arg

3208 	const struct mlxsw_sp_nexthop_group_cmp_arg *cmp_arg = arg->key;  in mlxsw_sp_nexthop_group_cmp()  local
3211 if (nh_grp->type != cmp_arg->type) in mlxsw_sp_nexthop_group_cmp()
3214 switch (cmp_arg->type) { in mlxsw_sp_nexthop_group_cmp()
3216 return cmp_arg->fi != nh_grp->ipv4.fi; in mlxsw_sp_nexthop_group_cmp()
3219 cmp_arg->fib6_entry); in mlxsw_sp_nexthop_group_cmp()
3221 return cmp_arg->id != nh_grp->obj.id; in mlxsw_sp_nexthop_group_cmp()
3277 const struct mlxsw_sp_nexthop_group_cmp_arg *cmp_arg = data; in mlxsw_sp_nexthop_group_hash() local
3279 switch (cmp_arg->type) { in mlxsw_sp_nexthop_group_hash()
3281 return jhash(&cmp_arg->fi, sizeof(cmp_arg->fi), seed); in mlxsw_sp_nexthop_group_hash()
3283 return mlxsw_sp_nexthop6_group_hash(cmp_arg->fib6_entry, seed); in mlxsw_sp_nexthop_group_hash()
3285 return jhash(&cmp_arg->id, sizeof(cmp_arg->id), seed); in mlxsw_sp_nexthop_group_hash()
3327 struct mlxsw_sp_nexthop_group_cmp_arg cmp_arg; in mlxsw_sp_nexthop4_group_lookup() local
3329 cmp_arg.type = MLXSW_SP_NEXTHOP_GROUP_TYPE_IPV4; in mlxsw_sp_nexthop4_group_lookup()
3330 cmp_arg.fi = fi; in mlxsw_sp_nexthop4_group_lookup()
3332 &cmp_arg, in mlxsw_sp_nexthop4_group_lookup()
3340 struct mlxsw_sp_nexthop_group_cmp_arg cmp_arg; in mlxsw_sp_nexthop6_group_lookup() local
3342 cmp_arg.type = MLXSW_SP_NEXTHOP_GROUP_TYPE_IPV6; in mlxsw_sp_nexthop6_group_lookup()
3343 cmp_arg.fib6_entry = fib6_entry; in mlxsw_sp_nexthop6_group_lookup()
3345 &cmp_arg, in mlxsw_sp_nexthop6_group_lookup()
4895 struct mlxsw_sp_nexthop_group_cmp_arg cmp_arg; in mlxsw_sp_nexthop_obj_group_lookup() local
4897 cmp_arg.type = MLXSW_SP_NEXTHOP_GROUP_TYPE_OBJ; in mlxsw_sp_nexthop_obj_group_lookup()
4898 cmp_arg.id = id; in mlxsw_sp_nexthop_obj_group_lookup()
4900 &cmp_arg, in mlxsw_sp_nexthop_obj_group_lookup()