Lines Matching refs:cmp_arg
3521 const struct mlxsw_sp_nexthop_group_cmp_arg *cmp_arg = arg->key; in mlxsw_sp_nexthop_group_cmp() local
3524 if (nh_grp->type != cmp_arg->type) in mlxsw_sp_nexthop_group_cmp()
3527 switch (cmp_arg->type) { in mlxsw_sp_nexthop_group_cmp()
3529 return cmp_arg->fi != nh_grp->ipv4.fi; in mlxsw_sp_nexthop_group_cmp()
3532 cmp_arg->fib6_entry); in mlxsw_sp_nexthop_group_cmp()
3534 return cmp_arg->id != nh_grp->obj.id; in mlxsw_sp_nexthop_group_cmp()
3590 const struct mlxsw_sp_nexthop_group_cmp_arg *cmp_arg = data; in mlxsw_sp_nexthop_group_hash() local
3592 switch (cmp_arg->type) { in mlxsw_sp_nexthop_group_hash()
3594 return jhash(&cmp_arg->fi, sizeof(cmp_arg->fi), seed); in mlxsw_sp_nexthop_group_hash()
3596 return mlxsw_sp_nexthop6_group_hash(cmp_arg->fib6_entry, seed); in mlxsw_sp_nexthop_group_hash()
3598 return jhash(&cmp_arg->id, sizeof(cmp_arg->id), seed); in mlxsw_sp_nexthop_group_hash()
3640 struct mlxsw_sp_nexthop_group_cmp_arg cmp_arg; in mlxsw_sp_nexthop4_group_lookup() local
3642 cmp_arg.type = MLXSW_SP_NEXTHOP_GROUP_TYPE_IPV4; in mlxsw_sp_nexthop4_group_lookup()
3643 cmp_arg.fi = fi; in mlxsw_sp_nexthop4_group_lookup()
3645 &cmp_arg, in mlxsw_sp_nexthop4_group_lookup()
3653 struct mlxsw_sp_nexthop_group_cmp_arg cmp_arg; in mlxsw_sp_nexthop6_group_lookup() local
3655 cmp_arg.type = MLXSW_SP_NEXTHOP_GROUP_TYPE_IPV6; in mlxsw_sp_nexthop6_group_lookup()
3656 cmp_arg.fib6_entry = fib6_entry; in mlxsw_sp_nexthop6_group_lookup()
3658 &cmp_arg, in mlxsw_sp_nexthop6_group_lookup()
5346 struct mlxsw_sp_nexthop_group_cmp_arg cmp_arg; in mlxsw_sp_nexthop_obj_group_lookup() local
5348 cmp_arg.type = MLXSW_SP_NEXTHOP_GROUP_TYPE_OBJ; in mlxsw_sp_nexthop_obj_group_lookup()
5349 cmp_arg.id = id; in mlxsw_sp_nexthop_obj_group_lookup()
5351 &cmp_arg, in mlxsw_sp_nexthop_obj_group_lookup()