Lines Matching refs:cmp_arg

3238 	const struct mlxsw_sp_nexthop_group_cmp_arg *cmp_arg = arg->key;  in mlxsw_sp_nexthop_group_cmp()  local
3241 if (nh_grp->type != cmp_arg->type) in mlxsw_sp_nexthop_group_cmp()
3244 switch (cmp_arg->type) { in mlxsw_sp_nexthop_group_cmp()
3246 return cmp_arg->fi != nh_grp->ipv4.fi; in mlxsw_sp_nexthop_group_cmp()
3249 cmp_arg->fib6_entry); in mlxsw_sp_nexthop_group_cmp()
3251 return cmp_arg->id != nh_grp->obj.id; in mlxsw_sp_nexthop_group_cmp()
3307 const struct mlxsw_sp_nexthop_group_cmp_arg *cmp_arg = data; in mlxsw_sp_nexthop_group_hash() local
3309 switch (cmp_arg->type) { in mlxsw_sp_nexthop_group_hash()
3311 return jhash(&cmp_arg->fi, sizeof(cmp_arg->fi), seed); in mlxsw_sp_nexthop_group_hash()
3313 return mlxsw_sp_nexthop6_group_hash(cmp_arg->fib6_entry, seed); in mlxsw_sp_nexthop_group_hash()
3315 return jhash(&cmp_arg->id, sizeof(cmp_arg->id), seed); in mlxsw_sp_nexthop_group_hash()
3357 struct mlxsw_sp_nexthop_group_cmp_arg cmp_arg; in mlxsw_sp_nexthop4_group_lookup() local
3359 cmp_arg.type = MLXSW_SP_NEXTHOP_GROUP_TYPE_IPV4; in mlxsw_sp_nexthop4_group_lookup()
3360 cmp_arg.fi = fi; in mlxsw_sp_nexthop4_group_lookup()
3362 &cmp_arg, in mlxsw_sp_nexthop4_group_lookup()
3370 struct mlxsw_sp_nexthop_group_cmp_arg cmp_arg; in mlxsw_sp_nexthop6_group_lookup() local
3372 cmp_arg.type = MLXSW_SP_NEXTHOP_GROUP_TYPE_IPV6; in mlxsw_sp_nexthop6_group_lookup()
3373 cmp_arg.fib6_entry = fib6_entry; in mlxsw_sp_nexthop6_group_lookup()
3375 &cmp_arg, in mlxsw_sp_nexthop6_group_lookup()
4993 struct mlxsw_sp_nexthop_group_cmp_arg cmp_arg; in mlxsw_sp_nexthop_obj_group_lookup() local
4995 cmp_arg.type = MLXSW_SP_NEXTHOP_GROUP_TYPE_OBJ; in mlxsw_sp_nexthop_obj_group_lookup()
4996 cmp_arg.id = id; in mlxsw_sp_nexthop_obj_group_lookup()
4998 &cmp_arg, in mlxsw_sp_nexthop_obj_group_lookup()