gids              161 drivers/infiniband/hw/mlx4/main.c static int mlx4_ib_update_gids_v1(struct gid_entry *gids,
gids              178 drivers/infiniband/hw/mlx4/main.c 		memcpy(&gid_tbl[i], &gids[i].gid, sizeof(union ib_gid));
gids              194 drivers/infiniband/hw/mlx4/main.c static int mlx4_ib_update_gids_v1_v2(struct gid_entry *gids,
gids              217 drivers/infiniband/hw/mlx4/main.c 		memcpy(&gid_tbl[i].gid, &gids[i].gid, sizeof(union ib_gid));
gids              218 drivers/infiniband/hw/mlx4/main.c 		if (gids[i].gid_type == IB_GID_TYPE_ROCE_UDP_ENCAP) {
gids              220 drivers/infiniband/hw/mlx4/main.c 			if (!ipv6_addr_v4mapped((struct in6_addr *)&gids[i].gid))
gids              239 drivers/infiniband/hw/mlx4/main.c static int mlx4_ib_update_gids(struct gid_entry *gids,
gids              244 drivers/infiniband/hw/mlx4/main.c 		return mlx4_ib_update_gids_v1_v2(gids, ibdev, port_num);
gids              246 drivers/infiniband/hw/mlx4/main.c 	return mlx4_ib_update_gids_v1(gids, ibdev, port_num);
gids              265 drivers/infiniband/hw/mlx4/main.c 	struct gid_entry *gids = NULL;
gids              276 drivers/infiniband/hw/mlx4/main.c 	port_gid_table = &iboe->gids[attr->port_num - 1];
gids              279 drivers/infiniband/hw/mlx4/main.c 		if (!memcmp(&port_gid_table->gids[i].gid,
gids              281 drivers/infiniband/hw/mlx4/main.c 		    port_gid_table->gids[i].gid_type == attr->gid_type)  {
gids              285 drivers/infiniband/hw/mlx4/main.c 		if (free < 0 && rdma_is_zero_gid(&port_gid_table->gids[i].gid))
gids              293 drivers/infiniband/hw/mlx4/main.c 			port_gid_table->gids[free].ctx = kmalloc(sizeof(*port_gid_table->gids[free].ctx), GFP_ATOMIC);
gids              294 drivers/infiniband/hw/mlx4/main.c 			if (!port_gid_table->gids[free].ctx) {
gids              297 drivers/infiniband/hw/mlx4/main.c 				*context = port_gid_table->gids[free].ctx;
gids              298 drivers/infiniband/hw/mlx4/main.c 				memcpy(&port_gid_table->gids[free].gid,
gids              300 drivers/infiniband/hw/mlx4/main.c 				port_gid_table->gids[free].gid_type = attr->gid_type;
gids              301 drivers/infiniband/hw/mlx4/main.c 				port_gid_table->gids[free].ctx->real_index = free;
gids              302 drivers/infiniband/hw/mlx4/main.c 				port_gid_table->gids[free].ctx->refcount = 1;
gids              307 drivers/infiniband/hw/mlx4/main.c 		struct gid_cache_context *ctx = port_gid_table->gids[found].ctx;
gids              312 drivers/infiniband/hw/mlx4/main.c 		gids = kmalloc_array(MLX4_MAX_PORT_GIDS, sizeof(*gids),
gids              314 drivers/infiniband/hw/mlx4/main.c 		if (!gids) {
gids              317 drivers/infiniband/hw/mlx4/main.c 			free_gid_entry(&port_gid_table->gids[free]);
gids              320 drivers/infiniband/hw/mlx4/main.c 				memcpy(&gids[i].gid, &port_gid_table->gids[i].gid, sizeof(union ib_gid));
gids              321 drivers/infiniband/hw/mlx4/main.c 				gids[i].gid_type = port_gid_table->gids[i].gid_type;
gids              328 drivers/infiniband/hw/mlx4/main.c 		ret = mlx4_ib_update_gids(gids, ibdev, attr->port_num);
gids              332 drivers/infiniband/hw/mlx4/main.c 			free_gid_entry(&port_gid_table->gids[free]);
gids              335 drivers/infiniband/hw/mlx4/main.c 		kfree(gids);
gids              349 drivers/infiniband/hw/mlx4/main.c 	struct gid_entry *gids = NULL;
gids              357 drivers/infiniband/hw/mlx4/main.c 	port_gid_table = &iboe->gids[attr->port_num - 1];
gids              364 drivers/infiniband/hw/mlx4/main.c 			free_gid_entry(&port_gid_table->gids[real_index]);
gids              371 drivers/infiniband/hw/mlx4/main.c 		gids = kmalloc_array(MLX4_MAX_PORT_GIDS, sizeof(*gids),
gids              373 drivers/infiniband/hw/mlx4/main.c 		if (!gids) {
gids              377 drivers/infiniband/hw/mlx4/main.c 				memcpy(&gids[i].gid,
gids              378 drivers/infiniband/hw/mlx4/main.c 				       &port_gid_table->gids[i].gid,
gids              380 drivers/infiniband/hw/mlx4/main.c 				gids[i].gid_type =
gids              381 drivers/infiniband/hw/mlx4/main.c 				    port_gid_table->gids[i].gid_type;
gids              388 drivers/infiniband/hw/mlx4/main.c 		ret = mlx4_ib_update_gids(gids, ibdev, attr->port_num);
gids              389 drivers/infiniband/hw/mlx4/main.c 		kfree(gids);
gids              415 drivers/infiniband/hw/mlx4/main.c 	port_gid_table = &iboe->gids[port_num - 1];
gids              418 drivers/infiniband/hw/mlx4/main.c 		if (!memcmp(&port_gid_table->gids[i].gid,
gids              420 drivers/infiniband/hw/mlx4/main.c 		    attr->gid_type == port_gid_table->gids[i].gid_type) {
gids              421 drivers/infiniband/hw/mlx4/main.c 			ctx = port_gid_table->gids[i].ctx;
gids              514 drivers/infiniband/hw/mlx4/mlx4_ib.h 	struct gid_entry gids[MLX4_MAX_PORT_GIDS];
gids              522 drivers/infiniband/hw/mlx4/mlx4_ib.h 	struct mlx4_port_gid_table gids[MLX4_MAX_PORTS];
gids             3020 drivers/infiniband/hw/mlx4/qp.c 	port_gid_table = &iboe->gids[port_num - 1];
gids             3022 drivers/infiniband/hw/mlx4/qp.c 	memcpy(gid, &port_gid_table->gids[index].gid, sizeof(*gid));
gids             3023 drivers/infiniband/hw/mlx4/qp.c 	*gid_type = port_gid_table->gids[index].gid_type;
gids             1130 drivers/net/ethernet/mellanox/mlx4/port.c 	int gids;
gids             1159 drivers/net/ethernet/mellanox/mlx4/port.c 	gids = MLX4_ROCE_MAX_GIDS - MLX4_ROCE_PF_GIDS;
gids             1161 drivers/net/ethernet/mellanox/mlx4/port.c 	if (slave_gid <= gids % vfs)
gids             1162 drivers/net/ethernet/mellanox/mlx4/port.c 		return MLX4_ROCE_PF_GIDS + ((gids / vfs) + 1) * (slave_gid - 1);
gids             1164 drivers/net/ethernet/mellanox/mlx4/port.c 	return MLX4_ROCE_PF_GIDS + (gids % vfs) +
gids             1165 drivers/net/ethernet/mellanox/mlx4/port.c 		((gids / vfs) * (slave_gid - 1));
gids              490 net/sunrpc/svcauth_unix.c 	int gids;
gids              511 net/sunrpc/svcauth_unix.c 	rv = get_int(&mesg, &gids);
gids              512 net/sunrpc/svcauth_unix.c 	if (rv || gids < 0 || gids > 8192)
gids              515 net/sunrpc/svcauth_unix.c 	ug.gi = groups_alloc(gids);
gids              519 net/sunrpc/svcauth_unix.c 	for (i = 0 ; i < gids ; i++) {