Lines Matching refs:cmp_arg

3269 	const struct mlxsw_sp_nexthop_group_cmp_arg *cmp_arg = arg->key;  in mlxsw_sp_nexthop_group_cmp()  local
3272 if (nh_grp->type != cmp_arg->type) in mlxsw_sp_nexthop_group_cmp()
3275 switch (cmp_arg->type) { in mlxsw_sp_nexthop_group_cmp()
3277 return cmp_arg->fi != nh_grp->ipv4.fi; in mlxsw_sp_nexthop_group_cmp()
3280 cmp_arg->fib6_entry); in mlxsw_sp_nexthop_group_cmp()
3282 return cmp_arg->id != nh_grp->obj.id; in mlxsw_sp_nexthop_group_cmp()
3338 const struct mlxsw_sp_nexthop_group_cmp_arg *cmp_arg = data; in mlxsw_sp_nexthop_group_hash() local
3340 switch (cmp_arg->type) { in mlxsw_sp_nexthop_group_hash()
3342 return jhash(&cmp_arg->fi, sizeof(cmp_arg->fi), seed); in mlxsw_sp_nexthop_group_hash()
3344 return mlxsw_sp_nexthop6_group_hash(cmp_arg->fib6_entry, seed); in mlxsw_sp_nexthop_group_hash()
3346 return jhash(&cmp_arg->id, sizeof(cmp_arg->id), seed); in mlxsw_sp_nexthop_group_hash()
3388 struct mlxsw_sp_nexthop_group_cmp_arg cmp_arg; in mlxsw_sp_nexthop4_group_lookup() local
3390 cmp_arg.type = MLXSW_SP_NEXTHOP_GROUP_TYPE_IPV4; in mlxsw_sp_nexthop4_group_lookup()
3391 cmp_arg.fi = fi; in mlxsw_sp_nexthop4_group_lookup()
3393 &cmp_arg, in mlxsw_sp_nexthop4_group_lookup()
3401 struct mlxsw_sp_nexthop_group_cmp_arg cmp_arg; in mlxsw_sp_nexthop6_group_lookup() local
3403 cmp_arg.type = MLXSW_SP_NEXTHOP_GROUP_TYPE_IPV6; in mlxsw_sp_nexthop6_group_lookup()
3404 cmp_arg.fib6_entry = fib6_entry; in mlxsw_sp_nexthop6_group_lookup()
3406 &cmp_arg, in mlxsw_sp_nexthop6_group_lookup()
5022 struct mlxsw_sp_nexthop_group_cmp_arg cmp_arg; in mlxsw_sp_nexthop_obj_group_lookup() local
5024 cmp_arg.type = MLXSW_SP_NEXTHOP_GROUP_TYPE_OBJ; in mlxsw_sp_nexthop_obj_group_lookup()
5025 cmp_arg.id = id; in mlxsw_sp_nexthop_obj_group_lookup()
5027 &cmp_arg, in mlxsw_sp_nexthop_obj_group_lookup()