gid 31 arch/alpha/kernel/asm-offsets.c DEFINE(CRED_GID, offsetof(struct cred, gid)); gid 285 arch/alpha/kernel/osf_sys.c tmp.st_gid = from_kgid_munged(current_user_ns(), lstat->gid); gid 13 arch/arc/plat-eznps/include/plat/mtm.h struct global_id gid; gid 16 arch/arc/plat-eznps/include/plat/mtm.h gid.value = cpu; gid 17 arch/arc/plat-eznps/include/plat/mtm.h core = gid.core; gid 25 arch/arc/plat-eznps/include/plat/mtm.h ({ struct global_id gid; gid.value = cpu; gid.thread; }) gid 100 arch/arc/plat-eznps/smp.c struct global_id gid; gid 110 arch/arc/plat-eznps/smp.c gid.value = cpu; gid 111 arch/arc/plat-eznps/smp.c ipi.thread = get_thread(gid); gid 112 arch/arc/plat-eznps/smp.c ipi.core = gid.core; gid 113 arch/arc/plat-eznps/smp.c ipi.cluster = nps_cluster_logic_to_phys(gid.cluster); gid 126 arch/arm/kernel/sys_oabi-compat.c tmp.st_gid = from_kgid_munged(current_user_ns(), stat->gid); gid 145 arch/arm64/include/asm/compat.h __compat_gid32_t gid; gid 2315 arch/ia64/kernel/perfmon.c kgid_t gid = current_gid(); gid 2324 arch/ia64/kernel/perfmon.c from_kgid(&init_user_ns, gid), gid 2334 arch/ia64/kernel/perfmon.c || (!gid_eq(gid, tcred->egid)) gid 2335 arch/ia64/kernel/perfmon.c || (!gid_eq(gid, tcred->sgid)) gid 2336 arch/ia64/kernel/perfmon.c || (!gid_eq(gid, tcred->gid))) && !capable(CAP_SYS_PTRACE); gid 132 arch/mips/include/asm/compat.h __compat_gid32_t gid; gid 113 arch/parisc/include/asm/compat.h __compat_gid_t gid; gid 19 arch/parisc/include/uapi/asm/ipcbuf.h __kernel_gid_t gid; gid 139 arch/powerpc/include/asm/compat.h __compat_gid_t gid; gid 25 arch/powerpc/include/uapi/asm/ipcbuf.h __kernel_gid_t gid; gid 186 arch/powerpc/kvm/e500.c unsigned int as, unsigned int gid, gid 193 arch/powerpc/kvm/e500.c BUG_ON(gid >= NUM_TIDS); gid 196 arch/powerpc/kvm/e500.c sid = local_sid_lookup(&idt->id[as][gid][pr]); gid 200 arch/powerpc/kvm/e500.c sid = local_sid_setup_one(&idt->id[as][gid][pr]); gid 145 arch/powerpc/kvm/e500.h unsigned int as, unsigned int gid, gid 580 arch/powerpc/platforms/cell/spufs/inode.c kgid_t gid; gid 625 arch/powerpc/platforms/cell/spufs/inode.c kgid_t gid; gid 640 arch/powerpc/platforms/cell/spufs/inode.c gid = make_kgid(current_user_ns(), result.uint_32); gid 641 arch/powerpc/platforms/cell/spufs/inode.c if (!gid_valid(gid)) gid 643 arch/powerpc/platforms/cell/spufs/inode.c ctx->gid = gid; gid 700 arch/powerpc/platforms/cell/spufs/inode.c inode->i_gid = ctx->gid; gid 761 arch/powerpc/platforms/cell/spufs/inode.c ctx->gid = current_gid(); gid 37 arch/s390/hypfs/inode.c kgid_t gid; /* gid used for files and dirs */ gid 103 arch/s390/hypfs/inode.c ret->i_gid = hypfs_info->gid; gid 228 arch/s390/hypfs/inode.c kgid_t gid; gid 243 arch/s390/hypfs/inode.c gid = make_kgid(current_user_ns(), result.uint_32); gid 244 arch/s390/hypfs/inode.c if (!gid_valid(gid)) gid 246 arch/s390/hypfs/inode.c hypfs_info->gid = gid; gid 257 arch/s390/hypfs/inode.c seq_printf(s, ",gid=%u", from_kgid_munged(&init_user_ns, hypfs_info->gid)); gid 322 arch/s390/hypfs/inode.c sbi->gid = current_gid(); gid 208 arch/s390/include/asm/compat.h __compat_gid32_t gid; gid 103 arch/s390/include/asm/debug.h gid_t gid); gid 19 arch/s390/include/uapi/asm/ipcbuf.h __kernel_gid32_t gid; gid 138 arch/s390/kernel/compat_linux.c tmp.st_gid = from_kgid_munged(current_user_ns(), stat->gid); gid 95 arch/s390/kernel/compat_linux.h long compat_sys_s390_setgid16(u16 gid); gid 103 arch/s390/kernel/compat_linux.h long compat_sys_s390_setfsgid16(u16 gid); gid 670 arch/s390/kernel/debug.c uid_t uid, gid_t gid) gid 676 arch/s390/kernel/debug.c if ((uid != 0) || (gid != 0)) gid 167 arch/sparc/include/asm/compat.h __compat_gid32_t gid; gid 20 arch/sparc/include/uapi/asm/ipcbuf.h __kernel_gid32_t gid; gid 75 arch/sparc/kernel/sys_sparc32.c err |= put_user(from_kgid_munged(current_user_ns(), stat->gid), &statbuf->st_gid); gid 75 arch/x86/ia32/sys_ia32.c typeof(ubuf->st_gid) gid = 0; gid 77 arch/x86/ia32/sys_ia32.c SET_GID(gid, from_kgid_munged(current_user_ns(), stat->gid)); gid 85 arch/x86/ia32/sys_ia32.c __put_user(gid, &ubuf->st_gid) || gid 109 arch/x86/include/asm/compat.h __compat_gid32_t gid; gid 29 arch/xtensa/include/uapi/asm/ipcbuf.h __kernel_gid32_t gid; gid 1341 block/genhd.c kuid_t *uid, kgid_t *gid) gid 1119 drivers/base/core.c static void device_get_ownership(struct kobject *kobj, kuid_t *uid, kgid_t *gid) gid 1124 drivers/base/core.c dev->class->get_ownership(dev, uid, gid); gid 1172 drivers/base/core.c kgid_t gid = GLOBAL_ROOT_GID; gid 1176 drivers/base/core.c name = device_get_devnode(dev, &mode, &uid, &gid, &tmp); gid 1183 drivers/base/core.c if (!gid_eq(gid, GLOBAL_ROOT_GID)) gid 1184 drivers/base/core.c add_uevent_var(env, "DEVGID=%u", from_kgid(&init_user_ns, gid)); gid 2453 drivers/base/core.c umode_t *mode, kuid_t *uid, kgid_t *gid, gid 2462 drivers/base/core.c *tmp = dev->type->devnode(dev, mode, uid, gid); gid 48 drivers/base/devtmpfs.c kgid_t gid; gid 106 drivers/base/devtmpfs.c req.gid = GLOBAL_ROOT_GID; gid 107 drivers/base/devtmpfs.c req.name = device_get_devnode(dev, &req.mode, &req.uid, &req.gid, &tmp); gid 210 drivers/base/devtmpfs.c kgid_t gid, struct device *dev) gid 230 drivers/base/devtmpfs.c newattrs.ia_gid = gid; gid 382 drivers/base/devtmpfs.c static int handle(const char *name, umode_t mode, kuid_t uid, kgid_t gid, gid 386 drivers/base/devtmpfs.c return handle_create(name, mode, uid, gid, dev); gid 412 drivers/base/devtmpfs.c req->uid, req->gid, req->dev); gid 374 drivers/block/rbd.c u64 gid; gid 3750 drivers/block/rbd.c return lhs->gid == rhs->gid && lhs->handle == rhs->handle; gid 3758 drivers/block/rbd.c cid.gid = ceph_client_gid(rbd_dev->rbd_client->client); gid 3771 drivers/block/rbd.c rbd_dev->owner_cid.gid, rbd_dev->owner_cid.handle, gid 3772 drivers/block/rbd.c cid->gid, cid->handle); gid 3855 drivers/block/rbd.c ceph_encode_64(&p, cid.gid); gid 4056 drivers/block/rbd.c .gid = le64_to_cpu(watchers[i].name.num), gid 4061 drivers/block/rbd.c rbd_dev, cid.gid, cid.handle); gid 4336 drivers/block/rbd.c cid.gid = ceph_decode_64(p); gid 4340 drivers/block/rbd.c dout("%s rbd_dev %p cid %llu-%llu\n", __func__, rbd_dev, cid.gid, gid 4369 drivers/block/rbd.c cid.gid = ceph_decode_64(p); gid 4373 drivers/block/rbd.c dout("%s rbd_dev %p cid %llu-%llu\n", __func__, rbd_dev, cid.gid, gid 4379 drivers/block/rbd.c __func__, rbd_dev, cid.gid, cid.handle, gid 4380 drivers/block/rbd.c rbd_dev->owner_cid.gid, rbd_dev->owner_cid.handle); gid 4407 drivers/block/rbd.c cid.gid = ceph_decode_64(p); gid 4411 drivers/block/rbd.c dout("%s rbd_dev %p cid %llu-%llu\n", __func__, rbd_dev, cid.gid, gid 138 drivers/connector/cn_proc.c ev->event_data.id.r.rgid = from_kgid_munged(&init_user_ns, cred->gid); gid 893 drivers/fsi/fsi-core.c kuid_t *uid, kgid_t *gid) gid 911 drivers/fsi/fsi-core.c kuid_t *uid, kgid_t *gid) gid 86 drivers/hwmon/ibmpowernv.c u32 gid; gid 151 drivers/hwmon/ibmpowernv.c ret = sensor_group_enable(sgrp_data->gid, data); gid 363 drivers/hwmon/ibmpowernv.c u32 gid; gid 369 drivers/hwmon/ibmpowernv.c if (of_property_read_u32(sgrp, "sensor-group-id", &gid)) gid 376 drivers/hwmon/ibmpowernv.c sgrp_data[count].gid = gid; gid 400 drivers/hwmon/ibmpowernv.c u32 gid; gid 408 drivers/hwmon/ibmpowernv.c if (of_property_read_u32(sgrp, "sensor-group-id", &gid)) gid 421 drivers/hwmon/ibmpowernv.c if (gid == sgrp_data[i].gid) { gid 651 drivers/hwmon/ibmpowernv.c sgrp_data->gid, "enable", type, gid 189 drivers/hwtracing/intel_th/core.c kuid_t *uid, kgid_t *gid) gid 101 drivers/infiniband/core/addr.c union ib_gid gid; gid 111 drivers/infiniband/core/addr.c memcpy(&gid, nla_data(curr), nla_len(curr)); gid 119 drivers/infiniband/core/addr.c rdma_addr_set_dgid(req->addr, &gid); gid 128 drivers/infiniband/core/addr.c &gid); gid 153 drivers/infiniband/core/cache.c bool rdma_is_zero_gid(const union ib_gid *gid) gid 155 drivers/infiniband/core/cache.c return !memcmp(gid, &zgid, sizeof(*gid)); gid 198 drivers/infiniband/core/cache.c return device->port_data[port].cache.gid; gid 240 drivers/infiniband/core/cache.c port_num, entry->attr.index, entry->attr.gid.raw); gid 324 drivers/infiniband/core/cache.c entry->attr.gid.raw); gid 387 drivers/infiniband/core/cache.c ix, table->data_vec[ix]->attr.gid.raw); gid 440 drivers/infiniband/core/cache.c if (rdma_is_zero_gid(&attr->gid)) gid 462 drivers/infiniband/core/cache.c static int find_gid(struct ib_gid_table *table, const union ib_gid *gid, gid 516 drivers/infiniband/core/cache.c memcmp(gid, &data->attr.gid, sizeof(*gid))) gid 536 drivers/infiniband/core/cache.c static void make_default_gid(struct net_device *dev, union ib_gid *gid) gid 538 drivers/infiniband/core/cache.c gid->global.subnet_prefix = cpu_to_be64(0xfe80000000000000LL); gid 539 drivers/infiniband/core/cache.c addrconf_ifid_eui48(&gid->raw[8], dev); gid 543 drivers/infiniband/core/cache.c union ib_gid *gid, struct ib_gid_attr *attr, gid 555 drivers/infiniband/core/cache.c if (rdma_is_zero_gid(gid)) gid 562 drivers/infiniband/core/cache.c ix = find_gid(table, gid, attr, default_gid, mask, &empty); gid 573 drivers/infiniband/core/cache.c attr->gid = *gid; gid 582 drivers/infiniband/core/cache.c __func__, gid->raw, ret); gid 587 drivers/infiniband/core/cache.c union ib_gid *gid, struct ib_gid_attr *attr) gid 593 drivers/infiniband/core/cache.c return __ib_cache_gid_add(ib_dev, port, gid, attr, mask, false); gid 598 drivers/infiniband/core/cache.c union ib_gid *gid, struct ib_gid_attr *attr, gid 609 drivers/infiniband/core/cache.c ix = find_gid(table, gid, attr, default_gid, mask, NULL); gid 622 drivers/infiniband/core/cache.c __func__, gid->raw, ret); gid 627 drivers/infiniband/core/cache.c union ib_gid *gid, struct ib_gid_attr *attr) gid 634 drivers/infiniband/core/cache.c return _ib_cache_gid_del(ib_dev, port, gid, attr, mask, false); gid 681 drivers/infiniband/core/cache.c const union ib_gid *gid, gid 702 drivers/infiniband/core/cache.c local_index = find_gid(table, gid, &val, false, mask, NULL); gid 733 drivers/infiniband/core/cache.c struct ib_device *ib_dev, const union ib_gid *gid, u8 port, gid 734 drivers/infiniband/core/cache.c bool (*filter)(const union ib_gid *gid, const struct ib_gid_attr *, gid 755 drivers/infiniband/core/cache.c if (memcmp(gid, &entry->attr.gid, sizeof(*gid))) gid 758 drivers/infiniband/core/cache.c if (filter(gid, &entry->attr, context)) { gid 844 drivers/infiniband/core/cache.c union ib_gid gid = { }; gid 862 drivers/infiniband/core/cache.c make_default_gid(ndev, &gid); gid 863 drivers/infiniband/core/cache.c __ib_cache_gid_add(ib_dev, port, &gid, gid 866 drivers/infiniband/core/cache.c _ib_cache_gid_del(ib_dev, port, &gid, gid 892 drivers/infiniband/core/cache.c release_gid_table(ib_dev, ib_dev->port_data[p].cache.gid); gid 893 drivers/infiniband/core/cache.c ib_dev->port_data[p].cache.gid = NULL; gid 909 drivers/infiniband/core/cache.c ib_dev->port_data[rdma_port].cache.gid = table; gid 924 drivers/infiniband/core/cache.c ib_dev->port_data[p].cache.gid); gid 956 drivers/infiniband/core/cache.c int index, union ib_gid *gid) gid 972 drivers/infiniband/core/cache.c memcpy(gid, &table->data_vec[index]->attr.gid, sizeof(*gid)); gid 995 drivers/infiniband/core/cache.c const union ib_gid *gid, gid 1012 drivers/infiniband/core/cache.c table = device->port_data[p].cache.gid; gid 1014 drivers/infiniband/core/cache.c index = find_gid(table, gid, &gid_attr_val, false, mask, NULL); gid 1374 drivers/infiniband/core/cache.c ret = device->ops.query_gid(device, port, i, &gid_attr.gid); gid 1539 drivers/infiniband/core/cm.c struct sa_path_rec *path, union ib_gid *gid) gid 1541 drivers/infiniband/core/cm.c if (ib_is_opa_gid(gid) && rdma_cap_opa_ah(ib_device, port_num)) gid 610 drivers/infiniband/core/cma.c union ib_gid *gid, gid 636 drivers/infiniband/core/cma.c sgid_attr = rdma_find_gid_by_port(device, gid, gid_type, port, ndev); gid 662 drivers/infiniband/core/cma.c union ib_gid gid, iboe_gid, *gidp; gid 675 drivers/infiniband/core/cma.c memcpy(&gid, dev_addr->src_dev_addr + gid 676 drivers/infiniband/core/cma.c rdma_addr_gid_offset(dev_addr), sizeof(gid)); gid 682 drivers/infiniband/core/cma.c &iboe_gid : &gid; gid 718 drivers/infiniband/core/cma.c union ib_gid gid; gid 726 drivers/infiniband/core/cma.c &gid); gid 728 drivers/infiniband/core/cma.c memcpy(&gid, dev_addr->src_dev_addr + gid 729 drivers/infiniband/core/cma.c rdma_addr_gid_offset(dev_addr), sizeof(gid)); gid 733 drivers/infiniband/core/cma.c gid_type, &gid, id_priv); gid 757 drivers/infiniband/core/cma.c union ib_gid gid; gid 764 drivers/infiniband/core/cma.c memcpy(&gid, dev_addr->src_dev_addr + gid 765 drivers/infiniband/core/cma.c rdma_addr_gid_offset(dev_addr), sizeof(gid)); gid 773 drivers/infiniband/core/cma.c gid_type, &gid, id_priv); gid 789 drivers/infiniband/core/cma.c gid_type, &gid, id_priv); gid 814 drivers/infiniband/core/cma.c union ib_gid gid, sgid, *dgid; gid 837 drivers/infiniband/core/cma.c p, i, &gid); gid 839 drivers/infiniband/core/cma.c if (!memcmp(&gid, dgid, sizeof(gid))) { gid 841 drivers/infiniband/core/cma.c sgid = gid; gid 846 drivers/infiniband/core/cma.c if (!cma_dev && (gid.global.subnet_prefix == gid 850 drivers/infiniband/core/cma.c sgid = gid; gid 1516 drivers/infiniband/core/cma.c const union ib_gid *gid = req->has_gid ? &req->local_gid : NULL; gid 1529 drivers/infiniband/core/cma.c gid, listen_addr); gid 2970 drivers/infiniband/core/cma.c union ib_gid gid; gid 3003 drivers/infiniband/core/cma.c ret = rdma_query_gid(cma_dev->device, p, 0, &gid); gid 3015 drivers/infiniband/core/cma.c rdma_addr_set_sgid(&id_priv->id.route.addr.dev_addr, &gid); gid 3079 drivers/infiniband/core/cma.c union ib_gid gid; gid 3092 drivers/infiniband/core/cma.c rdma_addr_get_sgid(&id_priv->id.route.addr.dev_addr, &gid); gid 3093 drivers/infiniband/core/cma.c rdma_addr_set_dgid(&id_priv->id.route.addr.dev_addr, &gid); gid 136 drivers/infiniband/core/core_priv.h union ib_gid *gid, struct ib_gid_attr *attr); gid 139 drivers/infiniband/core/core_priv.h union ib_gid *gid, struct ib_gid_attr *attr); gid 2025 drivers/infiniband/core/device.c union ib_gid gid = {}; gid 2038 drivers/infiniband/core/device.c err = device->ops.query_gid(device, port_num, 0, &gid); gid 2042 drivers/infiniband/core/device.c port_attr->subnet_prefix = be64_to_cpu(gid.global.subnet_prefix); gid 2420 drivers/infiniband/core/device.c int ib_find_gid(struct ib_device *device, union ib_gid *gid, gid 2436 drivers/infiniband/core/device.c if (!memcmp(&tmp_gid, gid, sizeof *gid)) { gid 2503 drivers/infiniband/core/device.c const union ib_gid *gid, gid 2525 drivers/infiniband/core/device.c net_dev = client->get_net_dev_by_params(dev, port, pkey, gid, gid 54 drivers/infiniband/core/roce_gid_mgmt.c union ib_gid gid; gid 99 drivers/infiniband/core/roce_gid_mgmt.c u8 port, union ib_gid *gid, gid 111 drivers/infiniband/core/roce_gid_mgmt.c gid, gid_attr); gid 115 drivers/infiniband/core/roce_gid_mgmt.c gid, gid_attr); gid 286 drivers/infiniband/core/roce_gid_mgmt.c union ib_gid gid; gid 289 drivers/infiniband/core/roce_gid_mgmt.c rdma_ip2gid(addr, &gid); gid 293 drivers/infiniband/core/roce_gid_mgmt.c update_gid(gid_op, ib_dev, port, &gid, &gid_attr); gid 411 drivers/infiniband/core/roce_gid_mgmt.c union ib_gid gid; gid 413 drivers/infiniband/core/roce_gid_mgmt.c rdma_ip2gid((struct sockaddr *)&sin6_iter->sin6, &gid); gid 414 drivers/infiniband/core/roce_gid_mgmt.c update_gid(GID_ADD, ib_dev, port, &gid, &gid_attr); gid 525 drivers/infiniband/core/roce_gid_mgmt.c port, &parsed->gid, gid 842 drivers/infiniband/core/roce_gid_mgmt.c rdma_ip2gid(sa, &work->gid); gid 515 drivers/infiniband/core/sa_query.c { SERVICE_REC_FIELD(gid), gid 421 drivers/infiniband/core/sysfs.c ret = sprintf(buf, "%pI6\n", gid_attr->gid.raw); gid 277 drivers/infiniband/core/user_mad.c memcpy(packet->mad.hdr.gid, &grh->dgid, 16); gid 445 drivers/infiniband/core/user_mad.c return !memcmp(hdr1->gid, hdr2->gid, 16); gid 544 drivers/infiniband/core/user_mad.c rdma_ah_set_dgid_raw(&ah_attr, packet->mad.hdr.gid); gid 180 drivers/infiniband/core/uverbs.h union ib_gid gid; gid 2503 drivers/infiniband/core/uverbs_cmd.c !memcmp(cmd.gid, mcast->gid.raw, sizeof mcast->gid.raw)) { gid 2515 drivers/infiniband/core/uverbs_cmd.c memcpy(mcast->gid.raw, cmd.gid, sizeof mcast->gid.raw); gid 2517 drivers/infiniband/core/uverbs_cmd.c ret = ib_attach_mcast(qp, &mcast->gid, cmd.mlid); gid 2552 drivers/infiniband/core/uverbs_cmd.c !memcmp(cmd.gid, mcast->gid.raw, sizeof mcast->gid.raw)) { gid 2564 drivers/infiniband/core/uverbs_cmd.c ret = ib_detach_mcast(qp, (union ib_gid *)cmd.gid, cmd.mlid); gid 180 drivers/infiniband/core/uverbs_main.c ib_detach_mcast(qp, &mcast->gid, mcast->lid); gid 660 drivers/infiniband/core/verbs.c static bool find_gid_index(const union ib_gid *gid, gid 746 drivers/infiniband/core/verbs.c ret = rdma_addr_find_l2_eth_by_grh(&sgid_attr->gid, &grh->dgid, gid 2183 drivers/infiniband/core/verbs.c int ib_attach_mcast(struct ib_qp *qp, union ib_gid *gid, u16 lid) gid 2190 drivers/infiniband/core/verbs.c if (!rdma_is_multicast_addr((struct in6_addr *)gid->raw) || gid 2194 drivers/infiniband/core/verbs.c ret = qp->device->ops.attach_mcast(qp, gid, lid); gid 2201 drivers/infiniband/core/verbs.c int ib_detach_mcast(struct ib_qp *qp, union ib_gid *gid, u16 lid) gid 2208 drivers/infiniband/core/verbs.c if (!rdma_is_multicast_addr((struct in6_addr *)gid->raw) || gid 2212 drivers/infiniband/core/verbs.c ret = qp->device->ops.detach_mcast(qp, gid, lid); gid 291 drivers/infiniband/hw/bnxt_re/ib_verbs.c int index, union ib_gid *gid) gid 297 drivers/infiniband/hw/bnxt_re/ib_verbs.c memset(gid, 0, sizeof(*gid)); gid 300 drivers/infiniband/hw/bnxt_re/ib_verbs.c (struct bnxt_qplib_gid *)gid); gid 321 drivers/infiniband/hw/bnxt_re/ib_verbs.c gid_to_del = &sgid_tbl->tbl[ctx->idx].gid; gid 370 drivers/infiniband/hw/bnxt_re/ib_verbs.c rc = bnxt_qplib_add_sgid(sgid_tbl, (struct bnxt_qplib_gid *)&attr->gid, gid 1879 drivers/infiniband/hw/bnxt_re/ib_verbs.c if (ipv6_addr_v4mapped((struct in6_addr *)&sgid_attr->gid)) { gid 1912 drivers/infiniband/hw/bnxt_re/ib_verbs.c memcpy(qp->qp1_hdr.grh.source_gid.raw, sgid_attr->gid.raw, gid 1913 drivers/infiniband/hw/bnxt_re/ib_verbs.c sizeof(sgid_attr->gid)); gid 1915 drivers/infiniband/hw/bnxt_re/ib_verbs.c sizeof(sgid_attr->gid)); gid 1925 drivers/infiniband/hw/bnxt_re/ib_verbs.c memcpy(&qp->qp1_hdr.ip4.saddr, sgid_attr->gid.raw + 12, 4); gid 161 drivers/infiniband/hw/bnxt_re/ib_verbs.h int index, union ib_gid *gid); gid 1139 drivers/infiniband/hw/bnxt_re/main.c struct bnxt_qplib_gid gid; gid 1163 drivers/infiniband/hw/bnxt_re/main.c memcpy(&gid, &sgid_tbl->tbl[index], sizeof(gid)); gid 1165 drivers/infiniband/hw/bnxt_re/main.c rc = bnxt_qplib_update_sgid(sgid_tbl, &gid, gid_idx, gid 529 drivers/infiniband/hw/bnxt_re/qplib_res.c bnxt_qplib_del_sgid(sgid_tbl, &sgid_tbl->tbl[i].gid, gid 208 drivers/infiniband/hw/bnxt_re/qplib_sp.c struct bnxt_qplib_gid *gid) gid 216 drivers/infiniband/hw/bnxt_re/qplib_sp.c memcpy(gid, &sgid_tbl->tbl[index].gid, sizeof(*gid)); gid 221 drivers/infiniband/hw/bnxt_re/qplib_sp.c struct bnxt_qplib_gid *gid, u16 vlan_id, bool update) gid 239 drivers/infiniband/hw/bnxt_re/qplib_sp.c if (!memcmp(&sgid_tbl->tbl[index].gid, gid, sizeof(*gid)) && gid 266 drivers/infiniband/hw/bnxt_re/qplib_sp.c memcpy(&sgid_tbl->tbl[index].gid, &bnxt_qplib_gid_zero, gid 281 drivers/infiniband/hw/bnxt_re/qplib_sp.c struct bnxt_qplib_gid *gid, u8 *smac, u16 vlan_id, gid 301 drivers/infiniband/hw/bnxt_re/qplib_sp.c if (!memcmp(&sgid_tbl->tbl[i], gid, sizeof(*gid)) && gid 326 drivers/infiniband/hw/bnxt_re/qplib_sp.c req.gid[0] = cpu_to_be32(((u32 *)gid->data)[3]); gid 327 drivers/infiniband/hw/bnxt_re/qplib_sp.c req.gid[1] = cpu_to_be32(((u32 *)gid->data)[2]); gid 328 drivers/infiniband/hw/bnxt_re/qplib_sp.c req.gid[2] = cpu_to_be32(((u32 *)gid->data)[1]); gid 329 drivers/infiniband/hw/bnxt_re/qplib_sp.c req.gid[3] = cpu_to_be32(((u32 *)gid->data)[0]); gid 356 drivers/infiniband/hw/bnxt_re/qplib_sp.c memcpy(&sgid_tbl->tbl[free_idx], gid, sizeof(*gid)); gid 372 drivers/infiniband/hw/bnxt_re/qplib_sp.c struct bnxt_qplib_gid *gid, u16 gid_idx, gid 386 drivers/infiniband/hw/bnxt_re/qplib_sp.c req.gid[0] = cpu_to_be32(((u32 *)gid->data)[3]); gid 387 drivers/infiniband/hw/bnxt_re/qplib_sp.c req.gid[1] = cpu_to_be32(((u32 *)gid->data)[2]); gid 388 drivers/infiniband/hw/bnxt_re/qplib_sp.c req.gid[2] = cpu_to_be32(((u32 *)gid->data)[1]); gid 389 drivers/infiniband/hw/bnxt_re/qplib_sp.c req.gid[3] = cpu_to_be32(((u32 *)gid->data)[0]); gid 88 drivers/infiniband/hw/bnxt_re/qplib_sp.h struct bnxt_qplib_gid gid; gid 227 drivers/infiniband/hw/bnxt_re/qplib_sp.h struct bnxt_qplib_gid *gid); gid 229 drivers/infiniband/hw/bnxt_re/qplib_sp.h struct bnxt_qplib_gid *gid, u16 vlan_id, bool update); gid 231 drivers/infiniband/hw/bnxt_re/qplib_sp.h struct bnxt_qplib_gid *gid, u8 *mac, u16 vlan_id, gid 234 drivers/infiniband/hw/bnxt_re/qplib_sp.h struct bnxt_qplib_gid *gid, u16 gid_idx, u8 *smac); gid 1495 drivers/infiniband/hw/bnxt_re/roce_hsi.h __be32 gid[4]; gid 1545 drivers/infiniband/hw/bnxt_re/roce_hsi.h __be32 gid[4]; gid 2547 drivers/infiniband/hw/bnxt_re/roce_hsi.h __le32 gid[4]; gid 920 drivers/infiniband/hw/cxgb3/iwch_provider.c int index, union ib_gid *gid) gid 925 drivers/infiniband/hw/cxgb3/iwch_provider.c __func__, ibdev, port, index, gid); gid 928 drivers/infiniband/hw/cxgb3/iwch_provider.c memset(&(gid->raw[0]), 0, sizeof(gid->raw)); gid 929 drivers/infiniband/hw/cxgb3/iwch_provider.c memcpy(&(gid->raw[0]), dev->rdev.port_info.lldevs[port-1]->dev_addr, 6); gid 248 drivers/infiniband/hw/cxgb4/provider.c union ib_gid *gid) gid 253 drivers/infiniband/hw/cxgb4/provider.c ibdev, port, index, gid); gid 257 drivers/infiniband/hw/cxgb4/provider.c memset(&(gid->raw[0]), 0, sizeof(gid->raw)); gid 258 drivers/infiniband/hw/cxgb4/provider.c memcpy(&(gid->raw[0]), dev->rdev.lldi.ports[port-1]->dev_addr, 6); gid 128 drivers/infiniband/hw/efa/efa.h union ib_gid *gid); gid 400 drivers/infiniband/hw/efa/efa_verbs.c union ib_gid *gid) gid 404 drivers/infiniband/hw/efa/efa_verbs.c memcpy(gid->raw, dev->addr, sizeof(dev->addr)); gid 102 drivers/infiniband/hw/hfi1/mad.h union ib_gid gid; gid 56 drivers/infiniband/hw/hfi1/ruc.c static int gid_ok(union ib_gid *gid, __be64 gid_prefix, __be64 id) gid 58 drivers/infiniband/hw/hfi1/ruc.c return (gid->global.interface_id == id && gid 59 drivers/infiniband/hw/hfi1/ruc.c (gid->global.subnet_prefix == gid_prefix || gid 60 drivers/infiniband/hw/hfi1/ruc.c gid->global.subnet_prefix == IB_DEFAULT_GID_PREFIX)); gid 941 drivers/infiniband/hw/hns/hns_roce_device.h const union ib_gid *gid, const struct ib_gid_attr *attr); gid 1740 drivers/infiniband/hw/hns/hns_roce_hw_v1.c int gid_index, const union ib_gid *gid, gid 1751 drivers/infiniband/hw/hns/hns_roce_hw_v1.c p = (u32 *)&gid->raw[0]; gid 1755 drivers/infiniband/hw/hns/hns_roce_hw_v1.c p = (u32 *)&gid->raw[4]; gid 1759 drivers/infiniband/hw/hns/hns_roce_hw_v1.c p = (u32 *)&gid->raw[8]; gid 1763 drivers/infiniband/hw/hns/hns_roce_hw_v1.c p = (u32 *)&gid->raw[0xc]; gid 2137 drivers/infiniband/hw/hns/hns_roce_hw_v2.c int gid_index, const union ib_gid *gid, gid 2154 drivers/infiniband/hw/hns/hns_roce_hw_v2.c p = (u32 *)&gid->raw[0]; gid 2157 drivers/infiniband/hw/hns/hns_roce_hw_v2.c p = (u32 *)&gid->raw[4]; gid 2160 drivers/infiniband/hw/hns/hns_roce_hw_v2.c p = (u32 *)&gid->raw[8]; gid 2163 drivers/infiniband/hw/hns/hns_roce_hw_v2.c p = (u32 *)&gid->raw[0xc]; gid 2170 drivers/infiniband/hw/hns/hns_roce_hw_v2.c int gid_index, const union ib_gid *gid, gid 2176 drivers/infiniband/hw/hns/hns_roce_hw_v2.c if (!gid || !attr) gid 2183 drivers/infiniband/hw/hns/hns_roce_hw_v2.c if (ipv6_addr_v4mapped((void *)gid)) gid 2189 drivers/infiniband/hw/hns/hns_roce_hw_v2.c ret = hns_roce_config_sgid_table(hr_dev, gid_index, gid, sgid_type); gid 85 drivers/infiniband/hw/hns/hns_roce_main.c ret = hr_dev->hw->set_gid(hr_dev, port, attr->index, &attr->gid, attr); gid 2608 drivers/infiniband/hw/i40iw/i40iw_verbs.c union ib_gid *gid) gid 2612 drivers/infiniband/hw/i40iw/i40iw_verbs.c memset(gid->raw, 0, sizeof(gid->raw)); gid 2613 drivers/infiniband/hw/i40iw/i40iw_verbs.c ether_addr_copy(gid->raw, iwdev->netdev->dev_addr); gid 838 drivers/infiniband/hw/mlx4/alias_GUID.c union ib_gid gid; gid 852 drivers/infiniband/hw/mlx4/alias_GUID.c if (dev->ib_dev.ops.query_gid(&dev->ib_dev, i, 0, &gid)) { gid 338 drivers/infiniband/hw/mlx4/cm.c union ib_gid gid; gid 343 drivers/infiniband/hw/mlx4/cm.c gid = gid_from_req_msg(ibdev, mad); gid 344 drivers/infiniband/hw/mlx4/cm.c *slave = mlx4_ib_find_real_gid(ibdev, port, gid.global.interface_id); gid 347 drivers/infiniband/hw/mlx4/cm.c be64_to_cpu(gid.global.interface_id)); gid 1214 drivers/infiniband/hw/mlx4/mad.c union ib_gid gid; gid 1218 drivers/infiniband/hw/mlx4/mad.c err = __mlx4_ib_query_gid(&dev->ib_dev, port, 0, &gid, 1); gid 1220 drivers/infiniband/hw/mlx4/mad.c gid.global.subnet_prefix = gid 1229 drivers/infiniband/hw/mlx4/mad.c be64_to_cpu(gid.global.subnet_prefix)); gid 1231 drivers/infiniband/hw/mlx4/mad.c be64_to_cpu(gid.global.subnet_prefix)); gid 2320 drivers/infiniband/hw/mlx4/mad.c union ib_gid gid; gid 2321 drivers/infiniband/hw/mlx4/mad.c err = __mlx4_ib_query_gid(&dev->ib_dev, i + 1, 0, &gid, 1); gid 2324 drivers/infiniband/hw/mlx4/mad.c dev->sriov.demux[i].guid_cache[0] = gid.global.interface_id; gid 2326 drivers/infiniband/hw/mlx4/mad.c be64_to_cpu(gid.global.subnet_prefix)); gid 178 drivers/infiniband/hw/mlx4/main.c memcpy(&gid_tbl[i], &gids[i].gid, sizeof(union ib_gid)); gid 203 drivers/infiniband/hw/mlx4/main.c union ib_gid gid; gid 217 drivers/infiniband/hw/mlx4/main.c memcpy(&gid_tbl[i].gid, &gids[i].gid, sizeof(union ib_gid)); gid 220 drivers/infiniband/hw/mlx4/main.c if (!ipv6_addr_v4mapped((struct in6_addr *)&gids[i].gid)) gid 251 drivers/infiniband/hw/mlx4/main.c memset(&entry->gid, 0, sizeof(entry->gid)); gid 279 drivers/infiniband/hw/mlx4/main.c if (!memcmp(&port_gid_table->gids[i].gid, gid 280 drivers/infiniband/hw/mlx4/main.c &attr->gid, sizeof(attr->gid)) && gid 285 drivers/infiniband/hw/mlx4/main.c if (free < 0 && rdma_is_zero_gid(&port_gid_table->gids[i].gid)) gid 298 drivers/infiniband/hw/mlx4/main.c memcpy(&port_gid_table->gids[free].gid, gid 299 drivers/infiniband/hw/mlx4/main.c &attr->gid, sizeof(attr->gid)); gid 320 drivers/infiniband/hw/mlx4/main.c memcpy(&gids[i].gid, &port_gid_table->gids[i].gid, sizeof(union ib_gid)); gid 377 drivers/infiniband/hw/mlx4/main.c memcpy(&gids[i].gid, gid 378 drivers/infiniband/hw/mlx4/main.c &port_gid_table->gids[i].gid, gid 418 drivers/infiniband/hw/mlx4/main.c if (!memcmp(&port_gid_table->gids[i].gid, gid 419 drivers/infiniband/hw/mlx4/main.c &attr->gid, sizeof(attr->gid)) && gid 835 drivers/infiniband/hw/mlx4/main.c union ib_gid *gid, int netw_view) gid 860 drivers/infiniband/hw/mlx4/main.c memcpy(gid->raw, out_mad->data + 8, 8); gid 880 drivers/infiniband/hw/mlx4/main.c memcpy(gid->raw + 8, out_mad->data + (index % 8) * 8, 8); gid 884 drivers/infiniband/hw/mlx4/main.c memset(gid->raw + 8, 0, 8); gid 891 drivers/infiniband/hw/mlx4/main.c union ib_gid *gid) gid 894 drivers/infiniband/hw/mlx4/main.c return __mlx4_ib_query_gid(ibdev, port, index, gid, 0); gid 1268 drivers/infiniband/hw/mlx4/main.c static int add_gid_entry(struct ib_qp *ibqp, union ib_gid *gid) gid 1278 drivers/infiniband/hw/mlx4/main.c ge->gid = *gid; gid 1279 drivers/infiniband/hw/mlx4/main.c if (mlx4_ib_add_mc(mdev, mqp, gid)) { gid 1308 drivers/infiniband/hw/mlx4/main.c union ib_gid *gid) gid 1333 drivers/infiniband/hw/mlx4/main.c union ib_gid gid; gid 1856 drivers/infiniband/hw/mlx4/main.c static int mlx4_ib_mcg_attach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) gid 1873 drivers/infiniband/hw/mlx4/main.c err = mlx4_multicast_attach(mdev->dev, &mqp->mqp, gid->raw, mqp->port, gid 1884 drivers/infiniband/hw/mlx4/main.c err = mlx4_multicast_attach(mdev->dev, &mqp->mqp, gid->raw, gid 1893 drivers/infiniband/hw/mlx4/main.c err = add_gid_entry(ibqp, gid); gid 1898 drivers/infiniband/hw/mlx4/main.c memcpy(ib_steering->gid.raw, gid->raw, 16); gid 1907 drivers/infiniband/hw/mlx4/main.c mlx4_multicast_detach(mdev->dev, &mqp->mqp, gid->raw, gid 1910 drivers/infiniband/hw/mlx4/main.c mlx4_multicast_detach(mdev->dev, &mqp->mqp, gid->raw, gid 1925 drivers/infiniband/hw/mlx4/main.c if (!memcmp(raw, ge->gid.raw, 16)) { gid 1934 drivers/infiniband/hw/mlx4/main.c static int mlx4_ib_mcg_detach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) gid 1951 drivers/infiniband/hw/mlx4/main.c if (!memcmp(ib_steering->gid.raw, gid->raw, 16)) { gid 1965 drivers/infiniband/hw/mlx4/main.c err = mlx4_multicast_detach(mdev->dev, &mqp->mqp, gid->raw, gid 1971 drivers/infiniband/hw/mlx4/main.c err = mlx4_multicast_detach(mdev->dev, &mqp->mqp, gid->raw, gid 1978 drivers/infiniband/hw/mlx4/main.c ge = find_gid_entry(mqp, gid->raw); gid 197 drivers/infiniband/hw/mlx4/mlx4_ib.h union ib_gid gid; gid 508 drivers/infiniband/hw/mlx4/mlx4_ib.h union ib_gid gid; gid 809 drivers/infiniband/hw/mlx4/mlx4_ib.h union ib_gid *gid, int netw_view); gid 835 drivers/infiniband/hw/mlx4/mlx4_ib.h union ib_gid *gid); gid 1942 drivers/infiniband/hw/mlx4/qp.c if (!ge->added && mlx4_ib_add_mc(dev, qp, &ge->gid)) { gid 3013 drivers/infiniband/hw/mlx4/qp.c int index, union ib_gid *gid, gid 3022 drivers/infiniband/hw/mlx4/qp.c memcpy(gid, &port_gid_table->gids[index].gid, sizeof(*gid)); gid 3025 drivers/infiniband/hw/mlx4/qp.c if (rdma_is_zero_gid(gid)) gid 3129 drivers/infiniband/hw/mlx4/qp.c ah->ibah.sgid_attr->gid; gid 3559 drivers/infiniband/hw/mlx4/qp.c union ib_gid gid; gid 3563 drivers/infiniband/hw/mlx4/qp.c &gid, &gid_type)) gid 119 drivers/infiniband/hw/mlx4/sysfs.c union ib_gid gid; gid 123 drivers/infiniband/hw/mlx4/sysfs.c mlx4_ib_iov_dentry->entry_num, &gid, 1); gid 127 drivers/infiniband/hw/mlx4/sysfs.c be16_to_cpu(((__be16 *) gid.raw)[0]), gid 128 drivers/infiniband/hw/mlx4/sysfs.c be16_to_cpu(((__be16 *) gid.raw)[1]), gid 129 drivers/infiniband/hw/mlx4/sysfs.c be16_to_cpu(((__be16 *) gid.raw)[2]), gid 130 drivers/infiniband/hw/mlx4/sysfs.c be16_to_cpu(((__be16 *) gid.raw)[3]), gid 131 drivers/infiniband/hw/mlx4/sysfs.c be16_to_cpu(((__be16 *) gid.raw)[4]), gid 132 drivers/infiniband/hw/mlx4/sysfs.c be16_to_cpu(((__be16 *) gid.raw)[5]), gid 133 drivers/infiniband/hw/mlx4/sysfs.c be16_to_cpu(((__be16 *) gid.raw)[6]), gid 134 drivers/infiniband/hw/mlx4/sysfs.c be16_to_cpu(((__be16 *) gid.raw)[7])); gid 282 drivers/infiniband/hw/mlx5/cmd.c void *gid; gid 287 drivers/infiniband/hw/mlx5/cmd.c gid = MLX5_ADDR_OF(attach_to_mcg_in, in, multicast_gid); gid 288 drivers/infiniband/hw/mlx5/cmd.c memcpy(gid, mgid, sizeof(*mgid)); gid 297 drivers/infiniband/hw/mlx5/cmd.c void *gid; gid 302 drivers/infiniband/hw/mlx5/cmd.c gid = MLX5_ADDR_OF(detach_from_mcg_in, in, multicast_gid); gid 303 drivers/infiniband/hw/mlx5/cmd.c memcpy(gid, mgid, sizeof(*mgid)); gid 495 drivers/infiniband/hw/mlx5/mad.c union ib_gid *gid) gid 515 drivers/infiniband/hw/mlx5/mad.c memcpy(gid->raw, out_mad->data + 8, 8); gid 526 drivers/infiniband/hw/mlx5/mad.c memcpy(gid->raw + 8, out_mad->data + (index % 8) * 8, 8); gid 579 drivers/infiniband/hw/mlx5/main.c unsigned int index, const union ib_gid *gid, gid 589 drivers/infiniband/hw/mlx5/main.c if (gid) { gid 602 drivers/infiniband/hw/mlx5/main.c if (ipv6_addr_v4mapped((void *)gid)) gid 613 drivers/infiniband/hw/mlx5/main.c roce_l3_type, gid->raw, mac, gid 622 drivers/infiniband/hw/mlx5/main.c attr->index, &attr->gid, attr); gid 1430 drivers/infiniband/hw/mlx5/main.c union ib_gid *gid) gid 1437 drivers/infiniband/hw/mlx5/main.c return mlx5_query_mad_ifc_gids(ibdev, port, index, gid); gid 1440 drivers/infiniband/hw/mlx5/main.c return mlx5_query_hca_vport_gid(mdev, 0, port, 0, index, gid); gid 4340 drivers/infiniband/hw/mlx5/main.c static int mlx5_ib_mcg_attach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) gid 4355 drivers/infiniband/hw/mlx5/main.c err = mlx5_cmd_attach_mcg(dev->mdev, gid, ibqp->qp_num, uid); gid 4358 drivers/infiniband/hw/mlx5/main.c ibqp->qp_num, gid->raw); gid 4363 drivers/infiniband/hw/mlx5/main.c static int mlx5_ib_mcg_detach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) gid 4371 drivers/infiniband/hw/mlx5/main.c err = mlx5_cmd_detach_mcg(dev->mdev, gid, ibqp->qp_num, uid); gid 4374 drivers/infiniband/hw/mlx5/main.c ibqp->qp_num, gid->raw); gid 1204 drivers/infiniband/hw/mlx5/mlx5_ib.h union ib_gid *gid); gid 284 drivers/infiniband/hw/mthca/mthca_av.c header->grh.source_gid = ah->ibah.sgid_attr->gid; gid 576 drivers/infiniband/hw/mthca/mthca_dev.h int mthca_multicast_attach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid); gid 577 drivers/infiniband/hw/mthca/mthca_dev.h int mthca_multicast_detach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid); gid 42 drivers/infiniband/hw/mthca/mthca_mcg.c u8 gid[16]; gid 64 drivers/infiniband/hw/mthca/mthca_mcg.c u8 *gid, struct mthca_mailbox *mgm_mailbox, gid 77 drivers/infiniband/hw/mthca/mthca_mcg.c memcpy(mgid, gid, 16); gid 86 drivers/infiniband/hw/mthca/mthca_mcg.c mthca_dbg(dev, "Hash for %pI6 is %04x\n", gid, *hash); gid 98 drivers/infiniband/hw/mthca/mthca_mcg.c if (!memcmp(mgm->gid, zero_gid, 16)) { gid 106 drivers/infiniband/hw/mthca/mthca_mcg.c if (!memcmp(mgm->gid, gid, 16)) gid 120 drivers/infiniband/hw/mthca/mthca_mcg.c int mthca_multicast_attach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) gid 138 drivers/infiniband/hw/mthca/mthca_mcg.c err = find_mgm(dev, gid->raw, mailbox, &hash, &prev, &index); gid 143 drivers/infiniband/hw/mthca/mthca_mcg.c if (!memcmp(mgm->gid, zero_gid, 16)) gid 144 drivers/infiniband/hw/mthca/mthca_mcg.c memcpy(mgm->gid, gid->raw, 16); gid 161 drivers/infiniband/hw/mthca/mthca_mcg.c memcpy(mgm->gid, gid->raw, 16); gid 214 drivers/infiniband/hw/mthca/mthca_mcg.c int mthca_multicast_detach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) gid 231 drivers/infiniband/hw/mthca/mthca_mcg.c err = find_mgm(dev, gid->raw, mailbox, &hash, &prev, &index); gid 236 drivers/infiniband/hw/mthca/mthca_mcg.c mthca_err(dev, "MGID %pI6 not found\n", gid->raw); gid 277 drivers/infiniband/hw/mthca/mthca_mcg.c memset(mgm->gid, 0, 16); gid 265 drivers/infiniband/hw/mthca/mthca_provider.c int index, union ib_gid *gid) gid 285 drivers/infiniband/hw/mthca/mthca_provider.c memcpy(gid->raw, out_mad->data + 8, 8); gid 296 drivers/infiniband/hw/mthca/mthca_provider.c memcpy(gid->raw + 8, out_mad->data + (index % 8) * 8, 8); gid 189 drivers/infiniband/hw/ocrdma/ocrdma_ah.c status = set_av_attr(dev, ah, attr, &sgid_attr->gid, pd->id, gid 2529 drivers/infiniband/hw/ocrdma/ocrdma_hw.c memcpy(&cmd->params.sgid[0], &sgid_attr->gid.raw[0], gid 2540 drivers/infiniband/hw/ocrdma/ocrdma_hw.c rdma_gid2ip((struct sockaddr *)&sgid_addr, &sgid_attr->gid); gid 416 drivers/infiniband/hw/qedr/qedr_roce_cm.c } else if (ipv6_addr_v4mapped((struct in6_addr *)&sgid_attr->gid)) { gid 464 drivers/infiniband/hw/qedr/qedr_roce_cm.c memcpy(&udh->grh.source_gid.raw, sgid_attr->gid.raw, gid 475 drivers/infiniband/hw/qedr/qedr_roce_cm.c ipv4_addr = qedr_get_ipv4_from_gid(sgid_attr->gid.raw); gid 42 drivers/infiniband/hw/qedr/qedr_roce_cm.h static inline u32 qedr_get_ipv4_from_gid(const u8 *gid) gid 44 drivers/infiniband/hw/qedr/qedr_roce_cm.h return *(u32 *)(void *)&gid[12]; gid 1029 drivers/infiniband/hw/qedr/verbs.c memcpy(&qp_params->sgid.bytes[0], &gid_attr->gid.raw[0], gid 1039 drivers/infiniband/hw/qedr/verbs.c memcpy(&qp_params->sgid.bytes[0], &gid_attr->gid.raw[0], gid 1049 drivers/infiniband/hw/qedr/verbs.c ipv4_addr = qedr_get_ipv4_from_gid(gid_attr->gid.raw); gid 42 drivers/infiniband/hw/qedr/verbs.h int index, union ib_gid *gid); gid 69 drivers/infiniband/hw/qib/qib_ruc.c static int gid_ok(union ib_gid *gid, __be64 gid_prefix, __be64 id) gid 71 drivers/infiniband/hw/qib/qib_ruc.c return (gid->global.interface_id == id && gid 72 drivers/infiniband/hw/qib/qib_ruc.c (gid->global.subnet_prefix == gid_prefix || gid 73 drivers/infiniband/hw/qib/qib_ruc.c gid->global.subnet_prefix == IB_DEFAULT_GID_PREFIX)); gid 371 drivers/infiniband/hw/usnic/usnic_ib_main.c union ib_gid gid; gid 450 drivers/infiniband/hw/usnic/usnic_ib_main.c us_ibdev->ufdev->inaddr, &gid.raw[0]); gid 451 drivers/infiniband/hw/usnic/usnic_ib_main.c memcpy(&us_ibdev->ib_dev.node_guid, &gid.global.interface_id, gid 452 drivers/infiniband/hw/usnic/usnic_ib_main.c sizeof(gid.global.interface_id)); gid 280 drivers/infiniband/hw/usnic/usnic_ib_verbs.c union ib_gid gid; gid 292 drivers/infiniband/hw/usnic/usnic_ib_verbs.c &gid.raw[0]); gid 293 drivers/infiniband/hw/usnic/usnic_ib_verbs.c memcpy(&props->sys_image_guid, &gid.global.interface_id, gid 294 drivers/infiniband/hw/usnic/usnic_ib_verbs.c sizeof(gid.global.interface_id)); gid 423 drivers/infiniband/hw/usnic/usnic_ib_verbs.c union ib_gid *gid) gid 433 drivers/infiniband/hw/usnic/usnic_ib_verbs.c memset(&(gid->raw[0]), 0, sizeof(gid->raw)); gid 435 drivers/infiniband/hw/usnic/usnic_ib_verbs.c &gid->raw[0]); gid 50 drivers/infiniband/hw/usnic/usnic_ib_verbs.h union ib_gid *gid); gid 611 drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c const union ib_gid *gid, gid 626 drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c memcpy(cmd_bind->new_gid, gid->raw, 16); gid 638 drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c memcpy(&dev->sgid_tbl[index], gid, sizeof(*gid)); gid 646 drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c return pvrdma_add_gid_at_index(dev, &attr->gid, gid 187 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c union ib_gid *gid) gid 194 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c memcpy(gid, &dev->sgid_tbl[index], sizeof(union ib_gid)); gid 389 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.h int index, union ib_gid *gid); gid 280 drivers/infiniband/sw/rdmavt/mcast.c int rvt_attach_mcast(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) gid 296 drivers/infiniband/sw/rdmavt/mcast.c mcast = rvt_mcast_alloc(gid, lid); gid 343 drivers/infiniband/sw/rdmavt/mcast.c int rvt_detach_mcast(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) gid 368 drivers/infiniband/sw/rdmavt/mcast.c ret = memcmp(gid->raw, mcast->mcast_addr.mgid.raw, gid 369 drivers/infiniband/sw/rdmavt/mcast.c sizeof(*gid)); gid 54 drivers/infiniband/sw/rdmavt/mcast.h int rvt_attach_mcast(struct ib_qp *ibqp, union ib_gid *gid, u16 lid); gid 55 drivers/infiniband/sw/rdmavt/mcast.h int rvt_detach_mcast(struct ib_qp *ibqp, union ib_gid *gid, u16 lid); gid 263 drivers/infiniband/sw/rdmavt/vt.c int guid_index, union ib_gid *gid) gid 281 drivers/infiniband/sw/rdmavt/vt.c gid->global.subnet_prefix = rvp->gid_prefix; gid 284 drivers/infiniband/sw/rdmavt/vt.c &gid->global.interface_id); gid 96 drivers/infiniband/sw/rxe/rxe_av.c rdma_gid2ip((struct sockaddr *)&av->sgid_addr, &sgid_attr->gid); gid 254 drivers/infiniband/sw/siw/siw_verbs.c union ib_gid *gid) gid 259 drivers/infiniband/sw/siw/siw_verbs.c memset(gid, 0, sizeof(*gid)); gid 260 drivers/infiniband/sw/siw/siw_verbs.c memcpy(&gid->raw[0], sdev->netdev->dev_addr, 6); gid 51 drivers/infiniband/sw/siw/siw_verbs.h union ib_gid *gid); gid 475 drivers/infiniband/ulp/ipoib/ipoib.h void ipoib_del_neighs_by_gid(struct net_device *dev, u8 *gid); gid 502 drivers/infiniband/ulp/ipoib/ipoib.h struct ipoib_path *__path_find(struct net_device *dev, void *gid); gid 568 drivers/infiniband/ulp/ipoib/ipoib.h union ib_gid *gid, gid 46 drivers/infiniband/ulp/ipoib/ipoib_fs.c static void format_gid(union ib_gid *gid, char *buf) gid 52 drivers/infiniband/ulp/ipoib/ipoib_fs.c be16_to_cpu(((__be16 *) gid->raw)[i])); gid 98 drivers/infiniband/ulp/ipoib/ipoib_main.c const union ib_gid *gid, const struct sockaddr *addr, gid 398 drivers/infiniband/ulp/ipoib/ipoib_main.c const union ib_gid *gid, gid 409 drivers/infiniband/ulp/ipoib/ipoib_main.c (!gid || !memcmp(gid, &priv->local_gid, sizeof(*gid)))) { gid 429 drivers/infiniband/ulp/ipoib/ipoib_main.c matches += ipoib_match_gid_pkey_addr(child_priv, gid, gid 446 drivers/infiniband/ulp/ipoib/ipoib_main.c const union ib_gid *gid, gid 459 drivers/infiniband/ulp/ipoib/ipoib_main.c matches += ipoib_match_gid_pkey_addr(priv, gid, pkey_index, gid 470 drivers/infiniband/ulp/ipoib/ipoib_main.c const union ib_gid *gid, const struct sockaddr *addr, gid 491 drivers/infiniband/ulp/ipoib/ipoib_main.c gid, NULL, &net_dev); gid 505 drivers/infiniband/ulp/ipoib/ipoib_main.c gid, addr, &net_dev); gid 555 drivers/infiniband/ulp/ipoib/ipoib_main.c struct ipoib_path *__path_find(struct net_device *dev, void *gid) gid 565 drivers/infiniband/ulp/ipoib/ipoib_main.c ret = memcmp(gid, path->pathrec.dgid.raw, gid 860 drivers/infiniband/ulp/ipoib/ipoib_main.c void *gid) gid 869 drivers/infiniband/ulp/ipoib/ipoib_main.c memcpy(path->pathrec.dgid.raw, gid, sizeof(union ib_gid)); gid 876 drivers/infiniband/ulp/ipoib/ipoib_main.c static struct ipoib_path *path_rec_create(struct net_device *dev, void *gid) gid 892 drivers/infiniband/ulp/ipoib/ipoib_main.c init_path_rec(priv, path, gid); gid 1555 drivers/infiniband/ulp/ipoib/ipoib_main.c void ipoib_del_neighs_by_gid(struct net_device *dev, u8 *gid) gid 1579 drivers/infiniband/ulp/ipoib/ipoib_main.c if (!memcmp(gid, neigh->daddr + 4, sizeof (union ib_gid))) { gid 2292 drivers/infiniband/ulp/ipoib/ipoib_main.c static void set_base_guid(struct ipoib_dev_priv *priv, union ib_gid *gid) gid 2300 drivers/infiniband/ulp/ipoib/ipoib_main.c &gid->global.interface_id, gid 2301 drivers/infiniband/ulp/ipoib/ipoib_main.c sizeof(gid->global.interface_id)); gid 2310 drivers/infiniband/ulp/ipoib/ipoib_main.c set_base_guid(child_priv, gid); gid 2318 drivers/infiniband/ulp/ipoib/ipoib_main.c union ib_gid *gid = (union ib_gid *)(ss->__data + 4); gid 2327 drivers/infiniband/ulp/ipoib/ipoib_main.c 4 + sizeof(gid->global.subnet_prefix)) || gid 2328 drivers/infiniband/ulp/ipoib/ipoib_main.c gid->global.interface_id == 0) gid 574 drivers/infiniband/ulp/srpt/ib_srpt.c ret = rdma_query_gid(sport->sdev->device, sport->port, 0, &sport->gid); gid 580 drivers/infiniband/ulp/srpt/ib_srpt.c &sport->gid.global.interface_id); gid 584 drivers/infiniband/ulp/srpt/ib_srpt.c be64_to_cpu(sport->gid.global.subnet_prefix), gid 585 drivers/infiniband/ulp/srpt/ib_srpt.c be64_to_cpu(sport->gid.global.interface_id)); gid 2181 drivers/infiniband/ulp/srpt/ib_srpt.c port_num, &sport->gid, be16_to_cpu(pkey)); gid 394 drivers/infiniband/ulp/srpt/ib_srpt.h union ib_gid gid; gid 741 drivers/misc/sgi-gru/grufault.c int gid, ctxnum; gid 745 drivers/misc/sgi-gru/grufault.c foreach_gid(gid) { gid 746 drivers/misc/sgi-gru/grufault.c gru = GID_TO_GRU(gid); gid 164 drivers/misc/sgi-gru/grukdump.c hdr.gid = gru->gs_gid; gid 187 drivers/misc/sgi-gru/grukdump.c if (req.gid >= gru_max_gids) gid 189 drivers/misc/sgi-gru/grukdump.c req.gid = array_index_nospec(req.gid, gru_max_gids); gid 191 drivers/misc/sgi-gru/grukdump.c gru = GID_TO_GRU(req.gid); gid 116 drivers/misc/sgi-gru/grulib.h unsigned int gid; gid 132 drivers/misc/sgi-gru/grulib.h unsigned int gid; gid 95 drivers/misc/sgi-gru/grumain.c int i, gid, inuse_asid, limit; gid 103 drivers/misc/sgi-gru/grumain.c gid = gru->gs_gid; gid 108 drivers/misc/sgi-gru/grumain.c inuse_asid = gru->gs_gts[i]->ts_gms->ms_asids[gid].mt_asid; gid 161 drivers/misc/sgi-gru/gruprocfs.c long gid = *(long *)data; gid 163 drivers/misc/sgi-gru/gruprocfs.c struct gru_state *gru = GID_TO_GRU(gid); gid 167 drivers/misc/sgi-gru/gruprocfs.c if (gid == 0) gid 177 drivers/misc/sgi-gru/gruprocfs.c is_kernel_context(ts) ? 0 : ts->ts_gms->ms_asids[gid].mt_asid, gid 190 drivers/misc/sgi-gru/gruprocfs.c long gid = *(long *)data, ctxfree, cbrfree, dsrfree; gid 191 drivers/misc/sgi-gru/gruprocfs.c struct gru_state *gru = GID_TO_GRU(gid); gid 193 drivers/misc/sgi-gru/gruprocfs.c if (gid == 0) { gid 216 drivers/misc/sgi-gru/gruprocfs.c static void *seq_start(struct seq_file *file, loff_t *gid) gid 218 drivers/misc/sgi-gru/gruprocfs.c if (*gid < gru_max_gids) gid 219 drivers/misc/sgi-gru/gruprocfs.c return gid; gid 223 drivers/misc/sgi-gru/gruprocfs.c static void *seq_next(struct seq_file *file, void *data, loff_t *gid) gid 225 drivers/misc/sgi-gru/gruprocfs.c (*gid)++; gid 226 drivers/misc/sgi-gru/gruprocfs.c if (*gid < gru_max_gids) gid 227 drivers/misc/sgi-gru/gruprocfs.c return gid; gid 497 drivers/misc/sgi-gru/grutables.h #define GID_TO_GRU(gid) \ gid 498 drivers/misc/sgi-gru/grutables.h (gru_base[(gid) / GRU_CHIPLETS_PER_BLADE] ? \ gid 499 drivers/misc/sgi-gru/grutables.h (&gru_base[(gid) / GRU_CHIPLETS_PER_BLADE]-> \ gid 500 drivers/misc/sgi-gru/grutables.h bs_grus[(gid) % GRU_CHIPLETS_PER_BLADE]) : \ gid 504 drivers/misc/sgi-gru/grutables.h #define for_each_gru_in_bitmap(gid, map) \ gid 505 drivers/misc/sgi-gru/grutables.h for_each_set_bit((gid), (map), GRU_MAX_GRUS) gid 514 drivers/misc/sgi-gru/grutables.h #define foreach_gid(gid) \ gid 515 drivers/misc/sgi-gru/grutables.h for ((gid) = 0; (gid) < gru_max_gids; (gid)++) gid 152 drivers/misc/sgi-gru/grutlbpurge.c int grupagesize, pagesize, pageshift, gid, asid; gid 165 drivers/misc/sgi-gru/grutlbpurge.c for_each_gru_in_bitmap(gid, gms->ms_asidmap) { gid 167 drivers/misc/sgi-gru/grutlbpurge.c gru = GID_TO_GRU(gid); gid 168 drivers/misc/sgi-gru/grutlbpurge.c asids = gms->ms_asids + gid; gid 175 drivers/misc/sgi-gru/grutlbpurge.c gid, asid, start, grupagesize, num, asids->mt_ctxbitmap); gid 186 drivers/misc/sgi-gru/grutlbpurge.c gid, asid, asids->mt_ctxbitmap, gid 776 drivers/misc/vmw_vmci/vmci_queue_pair.c static int qp_host_unmap_queues(u32 gid, gid 2311 drivers/misc/vmw_vmci/vmci_queue_pair.c u32 gid) gid 2350 drivers/misc/vmw_vmci/vmci_queue_pair.c qp_host_unmap_queues(gid, entry->produce_q, entry->consume_q); gid 163 drivers/misc/vmw_vmci/vmci_queue_pair.h struct vmci_ctx *context, u32 gid); gid 567 drivers/net/ethernet/mellanox/mlx4/en_netdev.c u8 gid[16] = {0}; gid 570 drivers/net/ethernet/mellanox/mlx4/en_netdev.c memcpy(&gid[10], mac, ETH_ALEN); gid 571 drivers/net/ethernet/mellanox/mlx4/en_netdev.c gid[5] = priv->port; gid 573 drivers/net/ethernet/mellanox/mlx4/en_netdev.c err = mlx4_unicast_attach(dev, &qp, gid, 0, MLX4_PROT_ETH); gid 618 drivers/net/ethernet/mellanox/mlx4/en_netdev.c u8 gid[16] = {0}; gid 621 drivers/net/ethernet/mellanox/mlx4/en_netdev.c memcpy(&gid[10], mac, ETH_ALEN); gid 622 drivers/net/ethernet/mellanox/mlx4/en_netdev.c gid[5] = priv->port; gid 624 drivers/net/ethernet/mellanox/mlx4/en_netdev.c mlx4_unicast_detach(dev, &qp, gid, MLX4_PROT_ETH); gid 2763 drivers/net/ethernet/mellanox/mlx4/fw.c mgm->gid, gid 2767 drivers/net/ethernet/mellanox/mlx4/fw.c mgm->gid, gid 2768 drivers/net/ethernet/mellanox/mlx4/fw.c mgm->gid[5] gid 695 drivers/net/ethernet/mellanox/mlx4/mcg.c u8 *gid, enum mlx4_protocol prot, gid 712 drivers/net/ethernet/mellanox/mlx4/mcg.c memcpy(mgid, gid, 16); gid 720 drivers/net/ethernet/mellanox/mlx4/mcg.c mlx4_dbg(dev, "Hash for %pI6 is %04x\n", gid, hash); gid 738 drivers/net/ethernet/mellanox/mlx4/mcg.c if (!memcmp(mgm->gid, gid, 16) && gid 1104 drivers/net/ethernet/mellanox/mlx4/mcg.c int mlx4_qp_attach_common(struct mlx4_dev *dev, struct mlx4_qp *qp, u8 gid[16], gid 1116 drivers/net/ethernet/mellanox/mlx4/mcg.c u8 port = gid[5]; gid 1125 drivers/net/ethernet/mellanox/mlx4/mcg.c err = find_entry(dev, port, gid, prot, gid 1133 drivers/net/ethernet/mellanox/mlx4/mcg.c memcpy(mgm->gid, gid, 16); gid 1148 drivers/net/ethernet/mellanox/mlx4/mcg.c memcpy(mgm->gid, gid, 16); gid 1214 drivers/net/ethernet/mellanox/mlx4/mcg.c int mlx4_qp_detach_common(struct mlx4_dev *dev, struct mlx4_qp *qp, u8 gid[16], gid 1224 drivers/net/ethernet/mellanox/mlx4/mcg.c u8 port = gid[5]; gid 1234 drivers/net/ethernet/mellanox/mlx4/mcg.c err = find_entry(dev, port, gid, prot, gid 1240 drivers/net/ethernet/mellanox/mlx4/mcg.c mlx4_err(dev, "MGID %pI6 not found\n", gid); gid 1290 drivers/net/ethernet/mellanox/mlx4/mcg.c memset(mgm->gid, 0, 16); gid 1336 drivers/net/ethernet/mellanox/mlx4/mcg.c u8 gid[16], u8 attach, u8 block_loopback, gid 1350 drivers/net/ethernet/mellanox/mlx4/mcg.c memcpy(mailbox->buf, gid, 16); gid 1368 drivers/net/ethernet/mellanox/mlx4/mcg.c u8 gid[16], u8 port, gid 1390 drivers/net/ethernet/mellanox/mlx4/mcg.c memcpy(spec.eth.dst_mac, &gid[10], ETH_ALEN); gid 1396 drivers/net/ethernet/mellanox/mlx4/mcg.c memcpy(spec.ib.dst_gid, gid, 16); gid 1407 drivers/net/ethernet/mellanox/mlx4/mcg.c int mlx4_multicast_attach(struct mlx4_dev *dev, struct mlx4_qp *qp, u8 gid[16], gid 1419 drivers/net/ethernet/mellanox/mlx4/mcg.c gid[7] |= (MLX4_MC_STEER << 1); gid 1422 drivers/net/ethernet/mellanox/mlx4/mcg.c return mlx4_QP_ATTACH(dev, qp, gid, 1, gid 1424 drivers/net/ethernet/mellanox/mlx4/mcg.c return mlx4_qp_attach_common(dev, qp, gid, gid 1429 drivers/net/ethernet/mellanox/mlx4/mcg.c return mlx4_trans_to_dmfs_attach(dev, qp, gid, port, gid 1438 drivers/net/ethernet/mellanox/mlx4/mcg.c int mlx4_multicast_detach(struct mlx4_dev *dev, struct mlx4_qp *qp, u8 gid[16], gid 1449 drivers/net/ethernet/mellanox/mlx4/mcg.c gid[7] |= (MLX4_MC_STEER << 1); gid 1452 drivers/net/ethernet/mellanox/mlx4/mcg.c return mlx4_QP_ATTACH(dev, qp, gid, 0, 0, prot); gid 1454 drivers/net/ethernet/mellanox/mlx4/mcg.c return mlx4_qp_detach_common(dev, qp, gid, prot, gid 1530 drivers/net/ethernet/mellanox/mlx4/mcg.c struct mlx4_qp *qp, u8 gid[16], gid 1534 drivers/net/ethernet/mellanox/mlx4/mcg.c gid[7] |= (MLX4_UC_STEER << 1); gid 1537 drivers/net/ethernet/mellanox/mlx4/mcg.c return mlx4_QP_ATTACH(dev, qp, gid, 1, gid 1540 drivers/net/ethernet/mellanox/mlx4/mcg.c return mlx4_qp_attach_common(dev, qp, gid, block_mcast_loopback, gid 1546 drivers/net/ethernet/mellanox/mlx4/mcg.c u8 gid[16], enum mlx4_protocol prot) gid 1549 drivers/net/ethernet/mellanox/mlx4/mcg.c gid[7] |= (MLX4_UC_STEER << 1); gid 1552 drivers/net/ethernet/mellanox/mlx4/mcg.c return mlx4_QP_ATTACH(dev, qp, gid, 0, 0, prot); gid 1554 drivers/net/ethernet/mellanox/mlx4/mcg.c return mlx4_qp_detach_common(dev, qp, gid, prot, MLX4_UC_STEER); gid 623 drivers/net/ethernet/mellanox/mlx4/mlx4.h u8 gid[16]; gid 1321 drivers/net/ethernet/mellanox/mlx4/mlx4.h int mlx4_qp_detach_common(struct mlx4_dev *dev, struct mlx4_qp *qp, u8 gid[16], gid 1323 drivers/net/ethernet/mellanox/mlx4/mlx4.h int mlx4_qp_attach_common(struct mlx4_dev *dev, struct mlx4_qp *qp, u8 gid[16], gid 1327 drivers/net/ethernet/mellanox/mlx4/mlx4.h u8 gid[16], u8 port, gid 1857 drivers/net/ethernet/mellanox/mlx4/port.c int mlx4_get_slave_from_roce_gid(struct mlx4_dev *dev, int port, u8 *gid, gid 1875 drivers/net/ethernet/mellanox/mlx4/port.c if (!memcmp(priv->port[port].gid_table.roce_gids[i].raw, gid, gid 1957 drivers/net/ethernet/mellanox/mlx4/port.c u8 *gid) gid 1964 drivers/net/ethernet/mellanox/mlx4/port.c memcpy(gid, priv->port[port].gid_table.roce_gids[slave_id].raw, gid 89 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c u8 gid[16]; gid 4016 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c struct res_qp *rqp, u8 *gid) gid 4021 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c if (!memcmp(res->gid, gid, 16)) gid 4028 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c u8 *gid, enum mlx4_protocol prot, gid 4039 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c if (find_gid(dev, slave, rqp, gid)) { gid 4043 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c memcpy(res->gid, gid, 16); gid 4056 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c u8 *gid, enum mlx4_protocol prot, gid 4063 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c res = find_gid(dev, slave, rqp, gid); gid 4078 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c u8 gid[16], int block_loopback, enum mlx4_protocol prot, gid 4083 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c int port = mlx4_slave_convert_port(dev, slave, gid[5]); gid 4086 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c return mlx4_trans_to_dmfs_attach(dev, qp, gid, port, gid 4092 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c int port = mlx4_slave_convert_port(dev, slave, gid[5]); gid 4095 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c gid[5] = port; gid 4097 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c return mlx4_qp_attach_common(dev, qp, gid, gid 4105 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c u8 gid[16], enum mlx4_protocol prot, gid 4112 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c return mlx4_qp_detach_common(dev, qp, gid, prot, type); gid 4119 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c u8 *gid, enum mlx4_protocol prot) gid 4128 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c real_port = mlx4_slave_convert_port(dev, slave, gid[5]); gid 4131 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c gid[5] = real_port; gid 4144 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c u8 *gid = inbox->buf; gid 4153 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c enum mlx4_steer_type type = (gid[7] & steer_type_mask) >> 1; gid 4162 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = qp_attach(dev, slave, &qp, gid, block_loopback, prot, gid 4168 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = add_mcg_res(dev, slave, rqp, gid, prot, type, reg_id); gid 4172 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = mlx4_adjust_port(dev, slave, gid, prot); gid 4176 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = rem_mcg_res(dev, slave, rqp, gid, prot, type, ®_id); gid 4180 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = qp_detach(dev, &qp, gid, prot, type, reg_id); gid 4189 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c qp_detach(dev, &qp, gid, prot, type, reg_id); gid 4594 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c (void) mlx4_qp_detach_common(dev, &qp, rgid->gid, gid 585 drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.c union ib_gid *gid, u16 lid, int set_qkey, gid 593 drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.c mlx5_core_dbg(mdev, "attaching QPN 0x%x, MGID %pI6\n", ipriv->qp.qpn, gid->raw); gid 594 drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.c err = mlx5_core_attach_mcg(mdev, gid, ipriv->qp.qpn); gid 597 drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.c ipriv->qp.qpn, gid->raw); gid 609 drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.c union ib_gid *gid, u16 lid) gid 616 drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.c mlx5_core_dbg(mdev, "detaching QPN 0x%x, MGID %pI6\n", ipriv->qp.qpn, gid->raw); gid 618 drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.c err = mlx5_core_detach_mcg(mdev, gid, ipriv->qp.qpn); gid 621 drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.c ipriv->qp.qpn, gid->raw); gid 123 drivers/net/ethernet/mellanox/mlx5/core/lib/gid.c u8 roce_version, u8 roce_l3_type, const u8 *gid, gid 139 drivers/net/ethernet/mellanox/mlx5/core/lib/gid.c if (gid) { gid 148 drivers/net/ethernet/mellanox/mlx5/core/lib/gid.c memcpy(addr_l3_addr, gid, gidsz); gid 44 drivers/net/ethernet/mellanox/mlx5/core/mcg.c void *gid; gid 48 drivers/net/ethernet/mellanox/mlx5/core/mcg.c gid = MLX5_ADDR_OF(attach_to_mcg_in, in, multicast_gid); gid 49 drivers/net/ethernet/mellanox/mlx5/core/mcg.c memcpy(gid, mgid, sizeof(*mgid)); gid 58 drivers/net/ethernet/mellanox/mlx5/core/mcg.c void *gid; gid 62 drivers/net/ethernet/mellanox/mlx5/core/mcg.c gid = MLX5_ADDR_OF(detach_from_mcg_in, in, multicast_gid); gid 63 drivers/net/ethernet/mellanox/mlx5/core/mcg.c memcpy(gid, mgid, sizeof(*mgid)); gid 122 drivers/net/ethernet/mellanox/mlx5/core/rdma.c static void mlx5_rdma_make_default_gid(struct mlx5_core_dev *dev, union ib_gid *gid) gid 127 drivers/net/ethernet/mellanox/mlx5/core/rdma.c gid->global.subnet_prefix = cpu_to_be64(0xfe80000000000000LL); gid 128 drivers/net/ethernet/mellanox/mlx5/core/rdma.c addrconf_addr_eui48(&gid->raw[8], hw_id); gid 133 drivers/net/ethernet/mellanox/mlx5/core/rdma.c union ib_gid gid; gid 136 drivers/net/ethernet/mellanox/mlx5/core/rdma.c mlx5_rdma_make_default_gid(dev, &gid); gid 139 drivers/net/ethernet/mellanox/mlx5/core/rdma.c 0, gid.raw, mac, gid 464 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_cmd.c memcpy(&attr->gid, gid 467 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_cmd.c sizeof(attr->gid)); gid 628 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c attr->dgid_attr.gid, sizeof(attr->dgid_attr.gid)); gid 923 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_types.h u8 gid[16]; gid 532 drivers/net/ethernet/mellanox/mlx5/core/vport.c union ib_gid *gid) gid 557 drivers/net/ethernet/mellanox/mlx5/core/vport.c out_sz += nout * sizeof(*gid); gid 586 drivers/net/ethernet/mellanox/mlx5/core/vport.c gid->global.subnet_prefix = tmp->global.subnet_prefix; gid 587 drivers/net/ethernet/mellanox/mlx5/core/vport.c gid->global.interface_id = tmp->global.interface_id; gid 212 drivers/net/ethernet/netronome/nfp/flower/action.c int gid; gid 215 drivers/net/ethernet/netronome/nfp/flower/action.c gid = nfp_flower_lag_get_output_id(app, out_dev); gid 216 drivers/net/ethernet/netronome/nfp/flower/action.c if (gid < 0) { gid 218 drivers/net/ethernet/netronome/nfp/flower/action.c return gid; gid 220 drivers/net/ethernet/netronome/nfp/flower/action.c output->port = cpu_to_be32(NFP_FL_LAG_OUT | gid); gid 332 drivers/net/wireless/mediatek/mt76/mt7615/mcu.h u8 gid; gid 42 drivers/pinctrl/mvebu/pinctrl-mvebu.c unsigned gid; gid 163 drivers/pinctrl/mvebu/pinctrl-mvebu.c unsigned gid, unsigned long *config) gid 166 drivers/pinctrl/mvebu/pinctrl-mvebu.c struct mvebu_pinctrl_group *grp = &pctl->groups[gid]; gid 175 drivers/pinctrl/mvebu/pinctrl-mvebu.c unsigned gid, unsigned long *configs, gid 179 drivers/pinctrl/mvebu/pinctrl-mvebu.c struct mvebu_pinctrl_group *grp = &pctl->groups[gid]; gid 195 drivers/pinctrl/mvebu/pinctrl-mvebu.c struct seq_file *s, unsigned gid) gid 198 drivers/pinctrl/mvebu/pinctrl-mvebu.c struct mvebu_pinctrl_group *grp = &pctl->groups[gid]; gid 203 drivers/pinctrl/mvebu/pinctrl-mvebu.c if (mvebu_pinconf_group_get(pctldev, gid, &config)) gid 285 drivers/pinctrl/mvebu/pinctrl-mvebu.c unsigned gid) gid 289 drivers/pinctrl/mvebu/pinctrl-mvebu.c struct mvebu_pinctrl_group *grp = &pctl->groups[gid]; gid 299 drivers/pinctrl/mvebu/pinctrl-mvebu.c func->name, func->groups[gid]); gid 304 drivers/pinctrl/mvebu/pinctrl-mvebu.c ret = mvebu_pinconf_group_set(pctldev, grp->gid, &config, 1); gid 307 drivers/pinctrl/mvebu/pinctrl-mvebu.c func->groups[gid], func->name); gid 335 drivers/pinctrl/mvebu/pinctrl-mvebu.c return mvebu_pinconf_group_set(pctldev, grp->gid, &config, 1); gid 379 drivers/pinctrl/mvebu/pinctrl-mvebu.c unsigned gid) gid 382 drivers/pinctrl/mvebu/pinctrl-mvebu.c return pctl->groups[gid].name; gid 386 drivers/pinctrl/mvebu/pinctrl-mvebu.c unsigned gid, const unsigned **pins, gid 390 drivers/pinctrl/mvebu/pinctrl-mvebu.c *pins = pctl->groups[gid].pins; gid 391 drivers/pinctrl/mvebu/pinctrl-mvebu.c *num_pins = pctl->groups[gid].npins; gid 573 drivers/pinctrl/mvebu/pinctrl-mvebu.c unsigned gid, n, k; gid 646 drivers/pinctrl/mvebu/pinctrl-mvebu.c gid = 0; gid 652 drivers/pinctrl/mvebu/pinctrl-mvebu.c pctl->groups[gid].gid = gid; gid 653 drivers/pinctrl/mvebu/pinctrl-mvebu.c pctl->groups[gid].ctrl = ctrl; gid 654 drivers/pinctrl/mvebu/pinctrl-mvebu.c pctl->groups[gid].data = data; gid 655 drivers/pinctrl/mvebu/pinctrl-mvebu.c pctl->groups[gid].name = ctrl->name; gid 656 drivers/pinctrl/mvebu/pinctrl-mvebu.c pctl->groups[gid].pins = ctrl->pins; gid 657 drivers/pinctrl/mvebu/pinctrl-mvebu.c pctl->groups[gid].npins = ctrl->npins; gid 665 drivers/pinctrl/mvebu/pinctrl-mvebu.c pctl->groups[gid].name = noname_buf; gid 666 drivers/pinctrl/mvebu/pinctrl-mvebu.c pctl->groups[gid].npins = 1; gid 671 drivers/pinctrl/mvebu/pinctrl-mvebu.c gid++; gid 672 drivers/pinctrl/mvebu/pinctrl-mvebu.c pctl->groups[gid].gid = gid; gid 673 drivers/pinctrl/mvebu/pinctrl-mvebu.c pctl->groups[gid].ctrl = ctrl; gid 674 drivers/pinctrl/mvebu/pinctrl-mvebu.c pctl->groups[gid].data = data; gid 675 drivers/pinctrl/mvebu/pinctrl-mvebu.c pctl->groups[gid].name = noname_buf; gid 676 drivers/pinctrl/mvebu/pinctrl-mvebu.c pctl->groups[gid].pins = &ctrl->pins[k]; gid 677 drivers/pinctrl/mvebu/pinctrl-mvebu.c pctl->groups[gid].npins = 1; gid 682 drivers/pinctrl/mvebu/pinctrl-mvebu.c gid++; gid 76 drivers/s390/net/ism.h u64 gid; gid 194 drivers/s390/net/ism_drv.c ism->smcd->local_gid = cmd.response.gid; gid 598 drivers/scsi/lpfc/lpfc_ct.c uint32_t *ctptr = (uint32_t *) & Response->un.gid.PortType; gid 767 drivers/scsi/lpfc/lpfc_ct.c CTreq->un.gid.Fc4Type, gid 772 drivers/scsi/lpfc/lpfc_ct.c CTreq->un.gid.Fc4Type, gid 965 drivers/scsi/lpfc/lpfc_ct.c CTreq->un.gid.Fc4Type); gid 969 drivers/scsi/lpfc/lpfc_ct.c CTreq->un.gid.Fc4Type, gid 1545 drivers/scsi/lpfc/lpfc_ct.c type = (uint32_t)CtReq->un.gid.Fc4Type; gid 1656 drivers/scsi/lpfc/lpfc_ct.c CtReq->un.gid.Fc4Type = context; gid 1668 drivers/scsi/lpfc/lpfc_ct.c CtReq->un.gid.PortType = context; gid 122 drivers/scsi/lpfc/lpfc_hw.h } gid; gid 197 drivers/scsi/lpfc/lpfc_hw.h sizeof(struct gid)) gid 60 drivers/scsi/qla2xxx/qla_dfs.c struct gid_list_info *gid_list, *gid; gid 84 drivers/scsi/qla2xxx/qla_dfs.c gid = gid_list; gid 89 drivers/scsi/qla2xxx/qla_dfs.c loop_id = le16_to_cpu(gid->loop_id); gid 99 drivers/scsi/qla2xxx/qla_dfs.c gid = (void *)gid + ha->gid_list_info_size; gid 5041 drivers/scsi/qla2xxx/qla_init.c struct gid_list_info *gid; gid 5134 drivers/scsi/qla2xxx/qla_init.c gid = ha->gid_list; gid 5136 drivers/scsi/qla2xxx/qla_init.c domain = gid->domain; gid 5137 drivers/scsi/qla2xxx/qla_init.c area = gid->area; gid 5138 drivers/scsi/qla2xxx/qla_init.c al_pa = gid->al_pa; gid 5140 drivers/scsi/qla2xxx/qla_init.c loop_id = gid->loop_id_2100; gid 5142 drivers/scsi/qla2xxx/qla_init.c loop_id = le16_to_cpu(gid->loop_id); gid 5143 drivers/scsi/qla2xxx/qla_init.c gid = (void *)gid + ha->gid_list_info_size; gid 1290 drivers/scsi/qla2xxx/qla_target.c struct gid_list_info *gid_list, *gid; gid 1313 drivers/scsi/qla2xxx/qla_target.c gid = gid_list; gid 1316 drivers/scsi/qla2xxx/qla_target.c if (gid->al_pa == s_id.al_pa && gid 1317 drivers/scsi/qla2xxx/qla_target.c gid->area == s_id.area && gid 1318 drivers/scsi/qla2xxx/qla_target.c gid->domain == s_id.domain) { gid 1319 drivers/scsi/qla2xxx/qla_target.c *loop_id = le16_to_cpu(gid->loop_id); gid 1323 drivers/scsi/qla2xxx/qla_target.c gid = (void *)gid + ha->gid_list_info_size; gid 511 drivers/usb/core/usb.c umode_t *mode, kuid_t *uid, kgid_t *gid) gid 1406 drivers/usb/gadget/function/f_fs.c inode->i_gid = perms->gid; gid 1551 drivers/usb/gadget/function/f_fs.c data->perms.gid = make_kgid(current_user_ns(), result.uint_32); gid 1552 drivers/usb/gadget/function/f_fs.c if (!gid_valid(data->perms.gid)) gid 1633 drivers/usb/gadget/function/f_fs.c ctx->perms.gid = GLOBAL_ROOT_GID; gid 275 drivers/usb/gadget/function/u_fs.h kgid_t gid; gid 211 fs/9p/vfs_inode.c wstat->gid = NULL; gid 232 fs/9p/vfs_inode_dotl.c kgid_t gid; gid 278 fs/9p/vfs_inode_dotl.c gid = v9fs_get_fsgid_for_create(dir); gid 289 fs/9p/vfs_inode_dotl.c mode, gid, &qid); gid 374 fs/9p/vfs_inode_dotl.c kgid_t gid; gid 397 fs/9p/vfs_inode_dotl.c gid = v9fs_get_fsgid_for_create(dir); gid 407 fs/9p/vfs_inode_dotl.c err = p9_client_mkdir_dotl(dfid, name, mode, gid, &qid); gid 556 fs/9p/vfs_inode_dotl.c p9attr.gid = iattr->ia_gid; gid 672 fs/9p/vfs_inode_dotl.c kgid_t gid; gid 691 fs/9p/vfs_inode_dotl.c gid = v9fs_get_fsgid_for_create(dir); gid 694 fs/9p/vfs_inode_dotl.c err = p9_client_symlink(dfid, name, symname, gid, &qid); gid 806 fs/9p/vfs_inode_dotl.c kgid_t gid; gid 828 fs/9p/vfs_inode_dotl.c gid = v9fs_get_fsgid_for_create(dir); gid 839 fs/9p/vfs_inode_dotl.c err = p9_client_mknod_dotl(dfid, name, mode, rdev, gid, &qid); gid 89 fs/affs/amigaffs.h __be16 gid; gid 84 fs/affs/inode.c id = be16_to_cpu(tail->gid); gid 176 fs/affs/inode.c gid_t gid; gid 198 fs/affs/inode.c gid = i_gid_read(inode); gid 202 fs/affs/inode.c if (gid == 0 || gid == 0xFFFF) gid 203 fs/affs/inode.c gid = gid ^ ~0; gid 208 fs/affs/inode.c tail->gid = cpu_to_be16(gid); gid 190 fs/affs/super.c parse_options(char *options, kuid_t *uid, kgid_t *gid, int *mode, int *reserved, s32 *root, gid 199 fs/affs/super.c *gid = current_gid(); gid 259 fs/affs/super.c *gid = make_kgid(current_user_ns(), option); gid 260 fs/affs/super.c if (!gid_valid(*gid)) gid 345 fs/affs/super.c kgid_t gid; gid 373 fs/affs/super.c if (!parse_options(data,&uid,&gid,&i,&reserved,&root_block, gid 384 fs/affs/super.c sbi->s_gid = gid; gid 558 fs/affs/super.c kgid_t gid; gid 573 fs/affs/super.c if (!parse_options(data, &uid, &gid, &mode, &reserved, &root_block, gid 585 fs/affs/super.c sbi->s_gid = gid; gid 34 fs/attr.c static bool chgrp_ok(const struct inode *inode, kgid_t gid) gid 37 fs/attr.c (in_group_p(gid) || gid_eq(gid, inode->i_gid))) gid 69 fs/autofs/autofs_i.h kgid_t gid; gid 93 fs/autofs/autofs_i.h kgid_t gid; gid 431 fs/autofs/dev-ioctl.c param->requester.uid = param->requester.gid = -1; gid 444 fs/autofs/dev-ioctl.c param->requester.gid = gid 445 fs/autofs/dev-ioctl.c from_kgid_munged(current_user_ns(), ino->gid); gid 30 fs/autofs/inode.c ino->gid = GLOBAL_ROOT_GID; gid 140 fs/autofs/inode.c kgid_t gid; gid 177 fs/autofs/inode.c gid = make_kgid(current_user_ns(), option); gid 178 fs/autofs/inode.c if (!gid_valid(gid)) gid 180 fs/autofs/inode.c root->i_gid = gid; gid 148 fs/autofs/waitq.c packet->gid = from_kgid_munged(user_ns, wq->gid); gid 436 fs/autofs/waitq.c wq->gid = current_gid(); gid 508 fs/autofs/waitq.c ino->gid = wq->gid; gid 24 fs/befs/befs.h kgid_t gid; gid 180 fs/befs/befs_fs_types.h fs32 gid; gid 87 fs/befs/debug.c befs_debug(sb, " gid %u", fs32_to_cpu(sb, inode->gid)); gid 349 fs/befs/linuxvfs.c befs_sb->mount_opts.gid : gid 350 fs/befs/linuxvfs.c make_kgid(&init_user_ns, fs32_to_cpu(sb, raw_inode->gid)); gid 698 fs/befs/linuxvfs.c kgid_t gid; gid 702 fs/befs/linuxvfs.c opts->gid = GLOBAL_ROOT_GID; gid 736 fs/befs/linuxvfs.c gid = INVALID_GID; gid 738 fs/befs/linuxvfs.c gid = make_kgid(current_user_ns(), option); gid 739 fs/befs/linuxvfs.c if (!gid_valid(gid)) { gid 744 fs/befs/linuxvfs.c opts->gid = gid; gid 776 fs/befs/linuxvfs.c if (!gid_eq(opts->gid, GLOBAL_ROOT_GID)) gid 778 fs/befs/linuxvfs.c from_kgid_munged(&init_user_ns, opts->gid)); gid 257 fs/binfmt_elf.c NEW_AUX_ENT(AT_GID, from_kgid_munged(cred->user_ns, cred->gid)); gid 1542 fs/binfmt_elf.c SET_GID(psinfo->pr_gid, from_kgid_munged(cred->user_ns, cred->gid)); gid 654 fs/binfmt_elf_fdpic.c NEW_AUX_ENT(AT_GID, (elf_addr_t) from_kgid_munged(cred->user_ns, cred->gid)); gid 1414 fs/binfmt_elf_fdpic.c SET_GID(psinfo->pr_gid, from_kgid_munged(cred->user_ns, cred->gid)); gid 1559 fs/btrfs/ctree.h BTRFS_SETGET_FUNCS(inode_gid, struct btrfs_inode_item, gid, 32); gid 1576 fs/btrfs/ctree.h BTRFS_SETGET_STACK_FUNCS(stack_inode_gid, struct btrfs_inode_item, gid, 32); gid 826 fs/btrfs/send.c u64 *gid, u64 *rdev) gid 852 fs/btrfs/send.c if (gid) gid 853 fs/btrfs/send.c *gid = btrfs_inode_gid(path->nodes[0], ii); gid 862 fs/btrfs/send.c u64 *mode, u64 *uid, u64 *gid, gid 871 fs/btrfs/send.c ret = __get_inode_info(root, path, ino, size, gen, mode, uid, gid, gid 2491 fs/btrfs/send.c static int send_chown(struct send_ctx *sctx, u64 ino, u64 gen, u64 uid, u64 gid) gid 2498 fs/btrfs/send.c ino, uid, gid); gid 2513 fs/btrfs/send.c TLV_PUT_U64(sctx, BTRFS_SEND_A_GID, gid); gid 1125 fs/ceph/caps.c kgid_t gid; gid 1186 fs/ceph/caps.c fc->gid = cpu_to_le32(from_kgid(&init_user_ns, arg->gid)); gid 1365 fs/ceph/caps.c arg.gid = inode->i_gid; gid 1435 fs/ceph/caps.c arg.gid = capsnap->gid; gid 3170 fs/ceph/caps.c inode->i_gid = make_kgid(&init_user_ns, le32_to_cpu(grant->gid)); gid 819 fs/ceph/inode.c inode->i_gid = make_kgid(&init_user_ns, le32_to_cpu(info->gid)); gid 2055 fs/ceph/inode.c req->r_args.setattr.gid = cpu_to_le32( gid 542 fs/ceph/snap.c capsnap->gid = inode->i_gid; gid 201 fs/ceph/super.h kgid_t gid; gid 377 fs/cifs/cifsacl.c kgid_t gid; gid 381 fs/cifs/cifsacl.c gid = make_kgid(&init_user_ns, id); gid 382 fs/cifs/cifsacl.c if (gid_valid(gid)) { gid 383 fs/cifs/cifsacl.c fgid = gid; gid 436 fs/cifs/cifsacl.c kgid_t gid; gid 439 fs/cifs/cifsacl.c gid = make_kgid(&init_user_ns, id); gid 440 fs/cifs/cifsacl.c if (gid_valid(gid)) gid 441 fs/cifs/cifsacl.c fgid = gid; gid 951 fs/cifs/cifsacl.c __u32 secdesclen, __u64 nmode, kuid_t uid, kgid_t gid, gid 1004 fs/cifs/cifsacl.c if (gid_valid(gid)) { /* chgrp */ gid 1012 fs/cifs/cifsacl.c id = from_kgid(&init_user_ns, gid); gid 1217 fs/cifs/cifsacl.c kuid_t uid, kgid_t gid) gid 1270 fs/cifs/cifsacl.c rc = build_sec_desc(pntsd, pnntsd, secdesclen, nmode, uid, gid, gid 167 fs/cifs/cifsglob.h int gid; gid 362 fs/cifs/cifsproto.h kgid_t gid; gid 6011 fs/cifs/cifssmb.c u64 uid = NO_CHANGE_64, gid = NO_CHANGE_64; gid 6016 fs/cifs/cifssmb.c if (gid_valid(args->gid)) gid 6017 fs/cifs/cifssmb.c gid = from_kgid(&init_user_ns, args->gid); gid 6032 fs/cifs/cifssmb.c data_offset->Gid = cpu_to_le64(gid); gid 1392 fs/cifs/connect.c kgid_t gid; gid 1399 fs/cifs/connect.c gid = make_kgid(current_user_ns(), value); gid 1400 fs/cifs/connect.c if (!gid_valid(gid)) gid 1403 fs/cifs/connect.c *result = gid; gid 394 fs/cifs/dir.c args.gid = inode->i_gid; gid 396 fs/cifs/dir.c args.gid = current_fsgid(); gid 399 fs/cifs/dir.c args.gid = INVALID_GID; /* no change */ gid 625 fs/cifs/file.c .gid = INVALID_GID, /* no change */ gid 305 fs/cifs/inode.c kgid_t gid = make_kgid(&init_user_ns, id); gid 306 fs/cifs/inode.c if (gid_valid(gid)) gid 307 fs/cifs/inode.c fattr->cf_gid = gid; gid 1485 fs/cifs/inode.c args.gid = parent->i_gid; gid 1487 fs/cifs/inode.c args.gid = current_fsgid(); gid 1490 fs/cifs/inode.c args.gid = INVALID_GID; /* no change */ gid 2130 fs/cifs/inode.c stat->gid = current_fsgid(); gid 2353 fs/cifs/inode.c args->gid = attrs->ia_gid; gid 2355 fs/cifs/inode.c args->gid = INVALID_GID; /* no change */ gid 2423 fs/cifs/inode.c kgid_t gid = INVALID_GID; gid 2500 fs/cifs/inode.c gid = attrs->ia_gid; gid 2504 fs/cifs/inode.c if (uid_valid(uid) || gid_valid(gid)) { gid 2506 fs/cifs/inode.c uid, gid); gid 1058 fs/cifs/smb1ops.c args.gid = current_fsgid(); gid 1061 fs/cifs/smb1ops.c args.gid = INVALID_GID; /* no change */ gid 278 fs/coredump.c cred->gid)); gid 127 fs/cramfs/inode.c i_gid_write(inode, cramfs_inode->gid); gid 78 fs/debugfs/inode.c kgid_t gid; gid 106 fs/debugfs/inode.c kgid_t gid; gid 128 fs/debugfs/inode.c gid = make_kgid(current_user_ns(), option); gid 129 fs/debugfs/inode.c if (!gid_valid(gid)) gid 131 fs/debugfs/inode.c opts->gid = gid; gid 158 fs/debugfs/inode.c inode->i_gid = opts->gid; gid 187 fs/debugfs/inode.c if (!gid_eq(opts->gid, GLOBAL_ROOT_GID)) gid 189 fs/debugfs/inode.c from_kgid_munged(&init_user_ns, opts->gid)); gid 97 fs/devpts/inode.c kgid_t gid; gid 250 fs/devpts/inode.c kgid_t gid; gid 255 fs/devpts/inode.c opts->gid = GLOBAL_ROOT_GID; gid 289 fs/devpts/inode.c gid = make_kgid(current_user_ns(), option); gid 290 fs/devpts/inode.c if (!gid_valid(gid)) gid 292 fs/devpts/inode.c opts->gid = gid; gid 413 fs/devpts/inode.c from_kgid_munged(&init_user_ns, opts->gid)); gid 580 fs/devpts/inode.c inode->i_gid = opts->setgid ? opts->gid : current_fsgid(); gid 1521 fs/exec.c kgid_t gid; gid 1549 fs/exec.c gid = inode->i_gid; gid 1554 fs/exec.c !kgid_has_mapping(bprm->cred->user_ns, gid)) gid 1564 fs/exec.c bprm->cred->egid = gid; gid 1541 fs/ext2/inode.c gid_t gid = i_gid_read(inode); gid 1558 fs/ext2/inode.c raw_inode->i_gid_low = cpu_to_le16(low_16_bits(gid)); gid 1565 fs/ext2/inode.c raw_inode->i_gid_high = cpu_to_le16(high_16_bits(gid)); gid 1572 fs/ext2/inode.c raw_inode->i_gid_low = cpu_to_le16(fs_high2lowgid(gid)); gid 482 fs/ext2/super.c kgid_t gid; gid 520 fs/ext2/super.c gid = make_kgid(current_user_ns(), option); gid 521 fs/ext2/super.c if (!gid_valid(gid)) { gid 525 fs/ext2/super.c opts->s_resgid = gid; gid 1809 fs/ext4/super.c kgid_t gid; gid 1938 fs/ext4/super.c gid = make_kgid(current_user_ns(), arg); gid 1939 fs/ext4/super.c if (!gid_valid(gid)) { gid 1943 fs/ext4/super.c sbi->s_resgid = gid; gid 397 fs/f2fs/super.c kgid_t gid; gid 577 fs/f2fs/super.c gid = make_kgid(current_user_ns(), arg); gid 578 fs/f2fs/super.c if (!gid_valid(gid)) { gid 582 fs/f2fs/super.c F2FS_OPTION(sbi).s_resgid = gid; gid 137 fs/fuse/dev.c req->in.h.gid = from_kgid(fc->user_ns, current_fsgid()); gid 145 fs/fuse/dev.c req->in.h.gid == ((gid_t)-1))) { gid 463 fs/fuse/dev.c req->in.h.gid = from_kgid_munged(fc->user_ns, current_fsgid()); gid 904 fs/fuse/dir.c stat->gid = make_kgid(fc->user_ns, attr->gid); gid 1097 fs/fuse/dir.c gid_eq(cred->gid, fc->group_id)) gid 1370 fs/fuse/dir.c arg->valid |= FATTR_GID, arg->gid = from_kgid(fc->user_ns, iattr->ia_gid); gid 161 fs/fuse/inode.c inode->i_gid = make_kgid(fc->user_ns, attr->gid); gid 560 fs/gfs2/quota.c int gfs2_quota_hold(struct gfs2_inode *ip, kuid_t uid, kgid_t gid) gid 602 fs/gfs2/quota.c if (!gid_eq(gid, NO_GID_QUOTA_CHANGE) && gid 603 fs/gfs2/quota.c !gid_eq(gid, ip->i_inode.i_gid)) { gid 604 fs/gfs2/quota.c error = qdsb_get(sdp, make_kqid_gid(gid), qd); gid 1036 fs/gfs2/quota.c int gfs2_quota_lock(struct gfs2_inode *ip, kuid_t uid, kgid_t gid) gid 1046 fs/gfs2/quota.c error = gfs2_quota_hold(ip, uid, gid); gid 1188 fs/gfs2/quota.c int gfs2_quota_check(struct gfs2_inode *ip, kuid_t uid, kgid_t gid, gid 1208 fs/gfs2/quota.c qid_eq(qd->qd_id, make_kqid_gid(gid)))) gid 1249 fs/gfs2/quota.c kuid_t uid, kgid_t gid) gid 1265 fs/gfs2/quota.c qid_eq(qd->qd_id, make_kqid_gid(gid))) { gid 20 fs/gfs2/quota.h extern int gfs2_quota_hold(struct gfs2_inode *ip, kuid_t uid, kgid_t gid); gid 23 fs/gfs2/quota.h extern int gfs2_quota_lock(struct gfs2_inode *ip, kuid_t uid, kgid_t gid); gid 26 fs/gfs2/quota.h extern int gfs2_quota_check(struct gfs2_inode *ip, kuid_t uid, kgid_t gid, gid 29 fs/gfs2/quota.h kuid_t uid, kgid_t gid); gid 185 fs/hfsplus/hfsplus_fs.h kgid_t gid; gid 195 fs/hfsplus/inode.c inode->i_gid = sbi->gid; gid 58 fs/hfsplus/options.c opts->gid = current_gid(); gid 150 fs/hfsplus/options.c sbi->gid = make_kgid(current_user_ns(), (gid_t)tmp); gid 151 fs/hfsplus/options.c if (!gid_valid(sbi->gid)) { gid 227 fs/hfsplus/options.c from_kgid_munged(&init_user_ns, sbi->gid)); gid 57 fs/hostfs/hostfs.h unsigned int gid; gid 551 fs/hostfs/hostfs_kern.c i_gid_write(ino, st.gid); gid 27 fs/hostfs/hostfs_user.c p->gid = buf->st_gid; gid 314 fs/hpfs/super.c static int parse_opts(char *opts, kuid_t *uid, kgid_t *gid, umode_t *umask, gid 346 fs/hpfs/super.c *gid = make_kgid(current_user_ns(), option); gid 347 fs/hpfs/super.c if (!gid_valid(*gid)) gid 446 fs/hpfs/super.c kgid_t gid; gid 457 fs/hpfs/super.c uid = sbi->sb_uid; gid = sbi->sb_gid; gid 463 fs/hpfs/super.c if (!(o = parse_opts(data, &uid, &gid, &umask, &lowercase, gid 479 fs/hpfs/super.c sbi->sb_uid = uid; sbi->sb_gid = gid; gid 548 fs/hpfs/super.c kgid_t gid; gid 568 fs/hpfs/super.c gid = current_gid(); gid 577 fs/hpfs/super.c if (!(o = parse_opts(options, &uid, &gid, &umask, &lowercase, gid 627 fs/hpfs/super.c sbi->sb_gid = gid; gid 60 fs/hugetlbfs/inode.c kgid_t gid; gid 738 fs/hugetlbfs/inode.c inode->i_gid = ctx->gid; gid 935 fs/hugetlbfs/inode.c if (!gid_eq(sbinfo->gid, GLOBAL_ROOT_GID)) gid 937 fs/hugetlbfs/inode.c from_kgid_munged(&init_user_ns, sbinfo->gid)); gid 1166 fs/hugetlbfs/inode.c ctx->gid = make_kgid(current_user_ns(), result.uint_32); gid 1167 fs/hugetlbfs/inode.c if (!gid_valid(ctx->gid)) gid 1266 fs/hugetlbfs/inode.c sbinfo->gid = ctx->gid; gid 1327 fs/hugetlbfs/inode.c ctx->gid = current_fsgid(); gid 164 fs/isofs/inode.c kgid_t gid; gid 355 fs/isofs/inode.c popt->gid = GLOBAL_ROOT_GID; gid 447 fs/isofs/inode.c popt->gid = make_kgid(current_user_ns(), option); gid 448 fs/isofs/inode.c if (!gid_valid(popt->gid)) gid 890 fs/isofs/inode.c sbi->s_gid = opt.gid; gid 389 fs/isofs/rock.c i_gid_write(inode, isonum_733(rr->u.PX.gid)); gid 36 fs/isofs/rock.h __u8 gid[8]; gid 818 fs/jffs2/debug.c printk(JFFS2_DBG "gid:\t%#04x\n", je16_to_cpu(node.i.gid)); gid 176 fs/jffs2/file.c ri.gid = cpu_to_je16(i_gid_read(inode)); gid 284 fs/jffs2/file.c ri->gid = cpu_to_je16(i_gid_read(inode)); gid 106 fs/jffs2/fs.c ri->gid = cpu_to_je16((ivalid & ATTR_GID)? gid 155 fs/jffs2/fs.c i_gid_write(inode, je16_to_cpu(ri->gid)); gid 282 fs/jffs2/fs.c i_gid_write(inode, je16_to_cpu(latest_node.gid)); gid 449 fs/jffs2/fs.c ri->gid = cpu_to_je16(i_gid_read(dir_i)); gid 453 fs/jffs2/fs.c ri->gid = cpu_to_je16(from_kgid(&init_user_ns, current_fsgid())); gid 475 fs/jffs2/fs.c i_gid_write(inode, je16_to_cpu(ri->gid)); gid 822 fs/jffs2/gc.c ri.gid = cpu_to_je16(JFFS2_F_I_GID(f)); gid 1093 fs/jffs2/gc.c ri.gid = cpu_to_je16(JFFS2_F_I_GID(f)); gid 1371 fs/jffs2/gc.c ri.gid = cpu_to_je16(JFFS2_F_I_GID(f)); gid 1198 fs/jffs2/readinode.c latest_node->gid = cpu_to_je16(0); gid 3058 fs/jfs/jfs_imap.c if (!gid_valid(sbi->gid)) gid 3061 fs/jfs/jfs_imap.c ip->i_gid = sbi->gid; gid 3127 fs/jfs/jfs_imap.c if (!gid_valid(sbi->gid)) gid 189 fs/jfs/jfs_incore.h kgid_t gid; /* gid to override on-disk gid */ gid 349 fs/jfs/super.c char *gid = args[0].from; gid 351 fs/jfs/super.c int rc = kstrtouint(gid, 0, &val); gid 355 fs/jfs/super.c sbi->gid = make_kgid(current_user_ns(), val); gid 356 fs/jfs/super.c if (!gid_valid(sbi->gid)) gid 510 fs/jfs/super.c sbi->gid = INVALID_GID; gid 703 fs/jfs/super.c if (gid_valid(sbi->gid)) gid 704 fs/jfs/super.c seq_printf(seq, ",gid=%d", from_kgid(&init_user_ns, sbi->gid)); gid 620 fs/kernfs/dir.c kuid_t uid, kgid_t gid, gid 661 fs/kernfs/dir.c if (!uid_eq(uid, GLOBAL_ROOT_UID) || !gid_eq(gid, GLOBAL_ROOT_GID)) { gid 665 fs/kernfs/dir.c .ia_gid = gid, gid 692 fs/kernfs/dir.c kuid_t uid, kgid_t gid, gid 698 fs/kernfs/dir.c name, mode, uid, gid, flags); gid 1015 fs/kernfs/dir.c kuid_t uid, kgid_t gid, gid 1023 fs/kernfs/dir.c uid, gid, KERNFS_DIR); gid 989 fs/kernfs/file.c umode_t mode, kuid_t uid, kgid_t gid, gid 1002 fs/kernfs/file.c uid, gid, flags); gid 110 fs/kernfs/kernfs-internal.h kuid_t uid, kgid_t gid, gid 32 fs/kernfs/symlink.c kgid_t gid = GLOBAL_ROOT_GID; gid 36 fs/kernfs/symlink.c gid = target->iattr->ia_gid; gid 39 fs/kernfs/symlink.c kn = kernfs_new_node(parent, name, S_IFLNK|S_IRWXUGO, uid, gid, gid 419 fs/nfs/flexfilelayout/flexfilelayout.c kgid_t gid; gid 494 fs/nfs/flexfilelayout/flexfilelayout.c gid = make_kgid(&init_user_ns, id); gid 507 fs/nfs/flexfilelayout/flexfilelayout.c kcred->fsgid = gid; gid 532 fs/nfs/flexfilelayout/flexfilelayout.c from_kgid(&init_user_ns, gid)); gid 535 fs/nfs/inode.c inode->i_gid = fattr->gid; gid 1454 fs/nfs/inode.c if ((fattr->valid & NFS_ATTR_FATTR_GROUP) && !gid_eq(inode->i_gid, fattr->gid)) gid 1988 fs/nfs/inode.c if (!gid_eq(inode->i_gid, fattr->gid)) { gid 1991 fs/nfs/inode.c inode->i_gid = fattr->gid; gid 284 fs/nfs/nfs2xdr.c fattr->gid = make_kgid(userns, be32_to_cpup(p++)); gid 285 fs/nfs/nfs2xdr.c if (!gid_valid(fattr->gid)) gid 641 fs/nfs/nfs3xdr.c fattr->gid = make_kgid(userns, be32_to_cpup(p++)); gid 642 fs/nfs/nfs3xdr.c if (!gid_valid(fattr->gid)) gid 125 fs/nfs/nfs4idmap.c kgid_t gid; gid 129 fs/nfs/nfs4idmap.c if (nfs_map_group_to_gid(server, group->data, group->len, &gid) == 0) { gid 130 fs/nfs/nfs4idmap.c fattr->gid = gid; gid 759 fs/nfs/nfs4idmap.c int nfs_map_group_to_gid(const struct nfs_server *server, const char *name, size_t namelen, kgid_t *gid) gid 768 fs/nfs/nfs4idmap.c *gid = make_kgid(idmap_userns(idmap), id); gid 769 fs/nfs/nfs4idmap.c if (!gid_valid(*gid)) gid 790 fs/nfs/nfs4idmap.c int nfs_map_gid_to_group(const struct nfs_server *server, kgid_t gid, char *buf, size_t buflen) gid 796 fs/nfs/nfs4idmap.c id = from_kgid_munged(idmap_userns(idmap), gid); gid 3929 fs/nfs/nfs4xdr.c const struct nfs_server *server, kgid_t *gid, gid 3935 fs/nfs/nfs4xdr.c *gid = make_kgid(&init_user_ns, -2); gid 3951 fs/nfs/nfs4xdr.c if (len <= 0 || nfs_map_group_to_gid(server, p, len, gid) != 0) gid 3953 fs/nfs/nfs4xdr.c dprintk("%s: gid=%d\n", __func__, (int)from_kgid(&init_user_ns, *gid)); gid 4620 fs/nfs/nfs4xdr.c status = decode_attr_group(xdr, bitmap, server, &fattr->gid, fattr->group_name); gid 40 fs/nfs_common/nfsacl.c kgid_t gid; gid 64 fs/nfs_common/nfsacl.c *p++ = htonl(from_kgid(&init_user_ns, nfsacl_desc->gid)); gid 105 fs/nfs_common/nfsacl.c .gid = inode->i_gid, gid 59 fs/nfsd/auth.c if (gid_eq(GLOBAL_ROOT_GID, rqgi->gid[i])) gid 60 fs/nfsd/auth.c gi->gid[i] = exp->ex_anon_gid; gid 62 fs/nfsd/auth.c gi->gid[i] = rqgi->gid[i]; gid 727 fs/nfsd/filecache.c if (!gid_eq(c1->group_info->gid[i], c2->group_info->gid[i])) gid 57 fs/nfsd/flexfilelayout.c fl->gid = inode->i_gid; gid 31 fs/nfsd/flexfilelayoutxdr.c struct ff_idmap gid; gid 36 fs/nfsd/flexfilelayoutxdr.c gid.len = sprintf(gid.buf, "%u", from_kgid(&init_user_ns, fl->gid)); gid 40 fs/nfsd/flexfilelayoutxdr.c 8 + uid.len + 8 + gid.len; gid 70 fs/nfsd/flexfilelayoutxdr.c p = xdr_encode_opaque(p, gid.buf, gid.len); gid 39 fs/nfsd/flexfilelayoutxdr.h kgid_t gid; gid 175 fs/nfsd/nfs3xdr.c *p++ = htonl((u32) from_kgid_munged(userns, stat->gid)); gid 429 fs/nfsd/nfs4acl.c kgid_t gid; gid 542 fs/nfsd/nfs4acl.c pace->e_gid = state->groups->aces[i].gid; gid 588 fs/nfsd/nfs4acl.c static int find_gid(struct posix_acl_state *state, kgid_t gid) gid 594 fs/nfsd/nfs4acl.c if (gid_eq(a->aces[i].gid, gid)) gid 598 fs/nfsd/nfs4acl.c a->aces[i].gid = gid; gid 844 fs/nfsd/nfs4callback.c kcred->gid = ses->se_cb_sec.gid; gid 645 fs/nfsd/nfs4idmap.c kgid_t *gid) gid 654 fs/nfsd/nfs4idmap.c *gid = make_kgid(nfsd_user_namespace(rqstp), id); gid 655 fs/nfsd/nfs4idmap.c if (!gid_valid(*gid)) gid 668 fs/nfsd/nfs4idmap.c kgid_t gid) gid 670 fs/nfsd/nfs4idmap.c u32 id = from_kgid_munged(nfsd_user_namespace(rqstp), gid); gid 2145 fs/nfsd/nfs4state.c if (!gid_eq(g1->gid[i], g2->gid[i])) gid 529 fs/nfsd/nfs4xdr.c u32 dummy, uid, gid; gid 564 fs/nfsd/nfs4xdr.c gid = be32_to_cpup(p++); gid 572 fs/nfsd/nfs4xdr.c kgid_t kgid = make_kgid(userns, gid); gid 575 fs/nfsd/nfs4xdr.c cbs->gid = kgid; gid 2782 fs/nfsd/nfs4xdr.c status = nfsd4_encode_group(xdr, rqstp, stat.gid); gid 144 fs/nfsd/nfsxdr.c *p++ = htonl((u32) from_kgid_munged(userns, stat->gid)); gid 200 fs/nfsd/state.h kgid_t gid; gid 538 fs/ntfs/inode.c vi->i_gid = vol->gid; gid 2286 fs/ntfs/inode.c seq_printf(sf, ",gid=%i", from_kgid_munged(&init_user_ns, vol->gid)); gid 2641 fs/ntfs/mft.c vi->i_gid = vol->gid; gid 93 fs/ntfs/super.c kgid_t gid = INVALID_GID; gid 180 fs/ntfs/super.c else NTFS_GETOPT_GID("gid", gid) gid 299 fs/ntfs/super.c if (gid_valid(gid)) gid 300 fs/ntfs/super.c vol->gid = gid; gid 37 fs/ntfs/volume.h kgid_t gid; /* gid that files will be mounted as. */ gid 365 fs/open.c override_cred->fsgid = override_cred->gid; gid 627 fs/open.c kgid_t gid; gid 630 fs/open.c gid = make_kgid(current_user_ns(), group); gid 641 fs/open.c if (!gid_valid(gid)) gid 644 fs/open.c newattrs.ia_gid = gid; gid 650 fs/open.c error = security_path_chown(path, uid, gid); gid 91 fs/orangefs/file.c new_op->upcall.gid = from_kgid(&init_user_ns, wr->gid); gid 87 fs/orangefs/inode.c kgid_t gid; gid 127 fs/orangefs/inode.c wr.gid = ow->gid; gid 182 fs/orangefs/inode.c ow->gid = wr->gid; gid 187 fs/orangefs/inode.c if (!uid_eq(ow->uid, wr->uid) || !gid_eq(ow->gid, wr->gid)) { gid 421 fs/orangefs/inode.c gid_eq(wr->gid, current_fsgid())) { gid 438 fs/orangefs/inode.c wr->gid = current_fsgid(); gid 513 fs/orangefs/inode.c wr->gid = current_fsgid(); gid 524 fs/orangefs/inode.c wr->gid = current_fsgid(); gid 750 fs/orangefs/inode.c gid_eq(wr->gid, current_fsgid())) { gid 769 fs/orangefs/inode.c wr->gid = current_fsgid(); gid 145 fs/orangefs/orangefs-cache.c new_op->upcall.gid = from_kgid(&init_user_ns, gid 239 fs/orangefs/orangefs-kernel.h kgid_t gid; gid 429 fs/orangefs/orangefs-utils.c new_op->upcall.gid = from_kgid(&init_user_ns, orangefs_inode->attr_gid); gid 223 fs/orangefs/upcall.h __u32 gid; gid 217 fs/overlayfs/copy_up.c .ia_gid = stat->gid, gid 674 fs/posix_acl.c kgid_t gid; gid 696 fs/posix_acl.c gid = make_kgid(from, le32_to_cpu(entry->e_id)); gid 697 fs/posix_acl.c entry->e_id = cpu_to_le32(from_kgid(to, gid)); gid 197 fs/proc/array.c seq_put_decimal_ull(m, "\nGid:\t", from_kgid_munged(user_ns, cred->gid)); gid 207 fs/proc/array.c from_kgid_munged(user_ns, group_info->gid[g])); gid 1696 fs/proc/base.c kgid_t gid; gid 1708 fs/proc/base.c gid = cred->egid; gid 1732 fs/proc/base.c gid = make_kgid(user_ns, 0); gid 1733 fs/proc/base.c if (!gid_valid(gid)) gid 1734 fs/proc/base.c gid = GLOBAL_ROOT_GID; gid 1738 fs/proc/base.c gid = GLOBAL_ROOT_GID; gid 1743 fs/proc/base.c *rgid = gid; gid 1793 fs/proc/base.c stat->gid = GLOBAL_ROOT_GID; gid 1805 fs/proc/base.c task_dump_owner(task, inode->i_mode, &stat->uid, &stat->gid); gid 431 fs/proc/generic.c proc_set_user(ent, (*parent)->uid, (*parent)->gid); gid 637 fs/proc/generic.c void proc_set_user(struct proc_dir_entry *de, kuid_t uid, kgid_t gid) gid 640 fs/proc/generic.c de->gid = gid; gid 465 fs/proc/inode.c inode->i_gid = de->gid; gid 54 fs/proc/internal.h kgid_t gid; gid 336 fs/proc/proc_net.c kgid_t gid; gid 356 fs/proc/proc_net.c gid = make_kgid(net->user_ns, 0); gid 357 fs/proc/proc_net.c if (!gid_valid(gid)) gid 358 fs/proc/proc_net.c gid = netd->gid; gid 360 fs/proc/proc_net.c proc_set_user(netd, uid, gid); gid 36 fs/proc/root.c int gid; gid 67 fs/proc/root.c ctx->gid = result.uint_32; gid 93 fs/proc/root.c pid_ns->pid_gid = make_kgid(user_ns, ctx->gid); gid 1174 fs/quota/dquot.c return in_group_p(warn->w_dq_id.gid); gid 21 fs/quota/kqid.c return gid_eq(left.gid, right.gid); gid 47 fs/quota/kqid.c return gid_lt(left.gid, right.gid); gid 74 fs/quota/kqid.c return from_kgid(targ, kqid.gid); gid 107 fs/quota/kqid.c return from_kgid_munged(targ, kqid.gid); gid 126 fs/quota/kqid.c return gid_valid(qid.gid); gid 90 fs/quota/quota_v1.c ((type == GRPQUOTA) && gid_eq(dquot->dq_id.gid, GLOBAL_ROOT_GID))) { gid 40 fs/stat.c stat->gid = inode->i_gid; gid 233 fs/stat.c SET_GID(tmp.st_gid, from_kgid_munged(current_user_ns(), stat->gid)); gid 321 fs/stat.c SET_GID(tmp.st_gid, from_kgid_munged(current_user_ns(), stat->gid)); gid 465 fs/stat.c tmp.st_gid = from_kgid_munged(current_user_ns(), stat->gid); gid 538 fs/stat.c tmp.stx_gid = from_kgid_munged(current_user_ns(), stat->gid); gid 609 fs/stat.c SET_GID(tmp.st_gid, from_kgid_munged(current_user_ns(), stat->gid)); gid 44 fs/sysfs/dir.c kgid_t gid; gid 57 fs/sysfs/dir.c kobject_get_ownership(kobj, &uid, &gid); gid 60 fs/sysfs/dir.c S_IRWXU | S_IRUGO | S_IXUGO, uid, gid, gid 247 fs/sysfs/file.c umode_t mode, kuid_t uid, kgid_t gid, const void *ns) gid 305 fs/sysfs/file.c kn = __kernfs_create_file(parent, attr->name, mode & 0777, uid, gid, gid 325 fs/sysfs/file.c kgid_t gid; gid 330 fs/sysfs/file.c kobject_get_ownership(kobj, &uid, &gid); gid 332 fs/sysfs/file.c uid, gid, ns); gid 362 fs/sysfs/file.c kgid_t gid; gid 375 fs/sysfs/file.c kobject_get_ownership(kobj, &uid, &gid); gid 377 fs/sysfs/file.c attr->mode, uid, gid, NULL); gid 539 fs/sysfs/file.c kgid_t gid; gid 544 fs/sysfs/file.c kobject_get_ownership(kobj, &uid, &gid); gid 546 fs/sysfs/file.c attr->attr.mode, uid, gid, NULL); gid 34 fs/sysfs/group.c kuid_t uid, kgid_t gid, gid 64 fs/sysfs/group.c mode, uid, gid, NULL); gid 95 fs/sysfs/group.c uid, gid, NULL); gid 112 fs/sysfs/group.c kgid_t gid; gid 126 fs/sysfs/group.c kobject_get_ownership(kobj, &uid, &gid); gid 138 fs/sysfs/group.c uid, gid, kobj, NULL); gid 148 fs/sysfs/group.c error = create_files(kn, kobj, uid, gid, grp, update); gid 330 fs/sysfs/group.c kgid_t gid; gid 339 fs/sysfs/group.c kobject_get_ownership(kobj, &uid, &gid); gid 343 fs/sysfs/group.c (*attr)->mode, uid, gid, NULL); gid 32 fs/sysfs/sysfs.h umode_t amode, kuid_t uid, kgid_t gid, gid 140 fs/tracefs/inode.c kgid_t gid; gid 168 fs/tracefs/inode.c kgid_t gid; gid 190 fs/tracefs/inode.c gid = make_kgid(current_user_ns(), option); gid 191 fs/tracefs/inode.c if (!gid_valid(gid)) gid 193 fs/tracefs/inode.c opts->gid = gid; gid 220 fs/tracefs/inode.c inode->i_gid = opts->gid; gid 249 fs/tracefs/inode.c if (!gid_eq(opts->gid, GLOBAL_ROOT_GID)) gid 251 fs/tracefs/inode.c from_kgid_munged(&init_user_ns, opts->gid)); gid 430 fs/ubifs/debug.c pr_err("\tgid %u\n", le32_to_cpu(ino->gid)); gid 462 fs/ubifs/journal.c ino->gid = cpu_to_le32(i_gid_read(inode)); gid 126 fs/ubifs/super.c i_gid_write(inode, le32_to_cpu(ino->gid)); gid 528 fs/ubifs/ubifs-media.h __le32 gid; gid 561 fs/udf/ecma_167.h __le32 gid; gid 785 fs/udf/ecma_167.h __le32 gid; gid 1313 fs/udf/inode.c uint32_t uid, gid; gid 1452 fs/udf/inode.c gid = le32_to_cpu(fe->gid); gid 1453 fs/udf/inode.c if (gid == UDF_INVALID_ID || gid 1457 fs/udf/inode.c i_gid_write(inode, gid); gid 1724 fs/udf/inode.c fe->gid = cpu_to_le32(UDF_INVALID_ID); gid 1726 fs/udf/inode.c fe->gid = cpu_to_le32(i_gid_read(inode)); gid 219 fs/udf/super.c kgid_t gid; gid 513 fs/udf/super.c uopt->gid = make_kgid(current_user_ns(), option); gid 514 fs/udf/super.c if (!gid_valid(uopt->gid)) gid 616 fs/udf/super.c uopt.gid = sbi->s_gid; gid 628 fs/udf/super.c sbi->s_gid = uopt.gid; gid 2119 fs/udf/super.c uopt.gid = make_kgid(current_user_ns(), overflowgid); gid 2156 fs/udf/super.c sbi->s_gid = uopt.gid; gid 508 fs/xfs/xfs_iops.c stat->gid = inode->i_gid; gid 628 fs/xfs/xfs_iops.c kgid_t gid = GLOBAL_ROOT_GID, igid = GLOBAL_ROOT_GID; gid 652 fs/xfs/xfs_iops.c gid = iattr->ia_gid; gid 655 fs/xfs/xfs_iops.c gid = inode->i_gid; gid 666 fs/xfs/xfs_iops.c xfs_kgid_to_gid(gid), gid 692 fs/xfs/xfs_iops.c gid = (mask & ATTR_GID) ? iattr->ia_gid : igid; gid 701 fs/xfs/xfs_iops.c (XFS_IS_GQUOTA_ON(mp) && !gid_eq(igid, gid)))) { gid 739 fs/xfs/xfs_iops.c if (!gid_eq(igid, gid)) { gid 748 fs/xfs/xfs_iops.c ip->i_d.di_gid = xfs_kgid_to_gid(gid); gid 749 fs/xfs/xfs_iops.c inode->i_gid = gid; gid 182 fs/xfs/xfs_linux.h static inline uint32_t xfs_kgid_to_gid(kgid_t gid) gid 184 fs/xfs/xfs_linux.h return from_kgid(&init_user_ns, gid); gid 187 fs/xfs/xfs_linux.h static inline kgid_t xfs_gid_to_kgid(uint32_t gid) gid 189 fs/xfs/xfs_linux.h return make_kgid(&init_user_ns, gid); gid 1612 fs/xfs/xfs_qm.c xfs_dqid_t gid, gid 1633 fs/xfs/xfs_qm.c gid = ip->i_d.di_gid; gid 1680 fs/xfs/xfs_qm.c if (ip->i_d.di_gid != gid) { gid 1682 fs/xfs/xfs_qm.c error = xfs_qm_dqget(mp, gid, XFS_DQ_GROUP, true, &gq); gid 112 fs/xfs/xfs_quota.h xfs_qm_vop_dqalloc(struct xfs_inode *ip, xfs_dqid_t uid, xfs_dqid_t gid, gid 65 include/linux/audit.h kgid_t gid; gid 363 include/linux/audit.h extern void __audit_ipc_set_perm(unsigned long qbytes, uid_t uid, gid_t gid, umode_t mode); gid 392 include/linux/audit.h static inline void audit_ipc_set_perm(unsigned long qbytes, uid_t uid, gid_t gid, umode_t mode) gid 395 include/linux/audit.h __audit_ipc_set_perm(qbytes, uid, gid, mode); gid 579 include/linux/audit.h gid_t gid, umode_t mode) gid 394 include/linux/ceph/ceph_fs.h __le32 gid; gid 518 include/linux/ceph/ceph_fs.h __le32 mode, uid, gid; gid 701 include/linux/ceph/ceph_fs.h __le32 uid, gid, mode; gid 28 include/linux/cred.h kgid_t gid[0]; gid 121 include/linux/cred.h kgid_t gid; /* real GID of the task */ gid 380 include/linux/cred.h #define current_gid() (current_cred_xxx(gid)) gid 406 include/linux/cred.h *(_gid) = __cred->gid; \ gid 592 include/linux/device.h void (*get_ownership)(struct device *dev, kuid_t *uid, kgid_t *gid); gid 798 include/linux/device.h kuid_t *uid, kgid_t *gid); gid 1514 include/linux/device.h umode_t *mode, kuid_t *uid, kgid_t *gid, gid 1574 include/linux/fs.h static inline void i_gid_write(struct inode *inode, gid_t gid) gid 1576 include/linux/fs.h inode->i_gid = make_kgid(inode->i_sb->s_user_ns, gid); gid 48 include/linux/highuid.h #define high2lowgid(gid) ((gid) & ~0xFFFF ? (old_gid_t)overflowgid : (old_gid_t)(gid)) gid 54 include/linux/highuid.h #define low2highgid(gid) ((gid) == (old_gid_t)-1 ? (gid_t)-1 : (gid_t)(gid)) gid 58 include/linux/highuid.h #define __convert_gid(size, gid) \ gid 59 include/linux/highuid.h (size >= sizeof(gid) ? (gid) : high2lowgid(gid)) gid 65 include/linux/highuid.h #define __convert_gid(size, gid) (gid) gid 71 include/linux/highuid.h #define SET_GID(var, gid) do { (var) = __convert_gid(sizeof(var), (gid)); } while (0) gid 93 include/linux/highuid.h #define fs_high2lowgid(gid) ((gid) & ~0xFFFF ? (gid16_t)fs_overflowgid : (gid16_t)(gid)) gid 267 include/linux/hugetlb.h kgid_t gid; gid 18 include/linux/ipc.h kgid_t gid; gid 346 include/linux/kernfs.h kuid_t uid, kgid_t gid, gid 352 include/linux/kernfs.h kuid_t uid, kgid_t gid, gid 443 include/linux/kernfs.h umode_t mode, kuid_t uid, kgid_t gid, gid 449 include/linux/kernfs.h umode_t mode, kuid_t uid, kgid_t gid, gid 543 include/linux/kernfs.h umode_t mode, kuid_t uid, kgid_t gid, gid 552 include/linux/kernfs.h return __kernfs_create_file(parent, name, mode, uid, gid, gid 188 include/linux/key.h kgid_t gid; gid 259 include/linux/key.h kuid_t uid, kgid_t gid, gid 385 include/linux/key.h extern struct key *keyring_alloc(const char *description, kuid_t uid, kgid_t gid, gid 119 include/linux/kobject.h kuid_t *uid, kgid_t *gid); gid 146 include/linux/kobject.h void (*get_ownership)(struct kobject *kobj, kuid_t *uid, kgid_t *gid); gid 1543 include/linux/lsm_hooks.h int (*path_chown)(const struct path *path, kuid_t uid, kgid_t gid); gid 1159 include/linux/mlx4/device.h int mlx4_unicast_attach(struct mlx4_dev *dev, struct mlx4_qp *qp, u8 gid[16], gid 1161 include/linux/mlx4/device.h int mlx4_unicast_detach(struct mlx4_dev *dev, struct mlx4_qp *qp, u8 gid[16], gid 1163 include/linux/mlx4/device.h int mlx4_multicast_attach(struct mlx4_dev *dev, struct mlx4_qp *qp, u8 gid[16], gid 1166 include/linux/mlx4/device.h int mlx4_multicast_detach(struct mlx4_dev *dev, struct mlx4_qp *qp, u8 gid[16], gid 1478 include/linux/mlx4/device.h int mlx4_get_slave_from_roce_gid(struct mlx4_dev *dev, int port, u8 *gid, gid 1481 include/linux/mlx4/device.h u8 *gid); gid 1021 include/linux/mlx5/driver.h u8 roce_version, u8 roce_l3_type, const u8 *gid, gid 4989 include/linux/mlx5/mlx5_ifc.h struct mlx5_ifc_array128_auto_bits gid[0]; gid 90 include/linux/mlx5/vport.h union ib_gid *gid); gid 50 include/linux/nfs_xdr.h kgid_t gid; gid 115 include/linux/proc_fs.h static inline void proc_set_user(struct proc_dir_entry *de, kuid_t uid, kgid_t gid) {} gid 71 include/linux/quota.h kgid_t gid; gid 108 include/linux/quota.h kqid.gid = make_kgid(from, qid); gid 135 include/linux/quota.h kqid.gid = INVALID_GID; gid 162 include/linux/quota.h static inline struct kqid make_kqid_gid(kgid_t gid) gid 166 include/linux/quota.h kqid.gid = gid; gid 1672 include/linux/security.h int security_path_chown(const struct path *path, kuid_t uid, kgid_t gid); gid 1729 include/linux/security.h static inline int security_path_chown(const struct path *path, kuid_t uid, kgid_t gid) gid 37 include/linux/shmem_fs.h kgid_t gid; /* Mount gid for root directory */ gid 158 include/linux/socket.h __u32 gid; gid 42 include/linux/stat.h kgid_t gid; gid 705 include/linux/syscalls.h asmlinkage long sys_setgid(gid_t gid); gid 713 include/linux/syscalls.h asmlinkage long sys_setfsgid(gid_t gid); gid 1162 include/linux/syscalls.h asmlinkage long sys_setgid16(old_gid_t gid); gid 1172 include/linux/syscalls.h asmlinkage long sys_setfsgid16(old_gid_t gid); gid 179 include/linux/sysctl.h kuid_t *uid, kgid_t *gid); gid 39 include/linux/uidgid.h static inline gid_t __kgid_val(kgid_t gid) gid 41 include/linux/uidgid.h return gid.val; gid 49 include/linux/uidgid.h static inline gid_t __kgid_val(kgid_t gid) gid 116 include/linux/uidgid.h static inline bool gid_valid(kgid_t gid) gid 118 include/linux/uidgid.h return __kgid_val(gid) != (gid_t) -1; gid 124 include/linux/uidgid.h extern kgid_t make_kgid(struct user_namespace *from, gid_t gid); gid 127 include/linux/uidgid.h extern gid_t from_kgid(struct user_namespace *to, kgid_t gid); gid 129 include/linux/uidgid.h extern gid_t from_kgid_munged(struct user_namespace *to, kgid_t gid); gid 136 include/linux/uidgid.h static inline bool kgid_has_mapping(struct user_namespace *ns, kgid_t gid) gid 138 include/linux/uidgid.h return from_kgid(ns, gid) != (gid_t) -1; gid 148 include/linux/uidgid.h static inline kgid_t make_kgid(struct user_namespace *from, gid_t gid) gid 150 include/linux/uidgid.h return KGIDT_INIT(gid); gid 173 include/linux/uidgid.h gid_t gid = from_kgid(to, kgid); gid 174 include/linux/uidgid.h if (gid == (gid_t)-1) gid 175 include/linux/uidgid.h gid = overflowgid; gid 176 include/linux/uidgid.h return gid; gid 184 include/linux/uidgid.h static inline bool kgid_has_mapping(struct user_namespace *ns, kgid_t gid) gid 186 include/linux/uidgid.h return gid_valid(gid); gid 395 include/net/9p/9p.h const char *gid; gid 463 include/net/9p/9p.h kgid_t gid; gid 195 include/net/9p/client.h kgid_t gid, struct p9_qid *qid); gid 197 include/net/9p/client.h kgid_t gid, struct p9_qid *qid); gid 215 include/net/9p/client.h dev_t rdev, kgid_t gid, struct p9_qid *); gid 217 include/net/9p/client.h kgid_t gid, struct p9_qid *); gid 36 include/net/af_unix.h kgid_t gid; gid 107 include/net/garp.h struct rb_root gid; gid 195 include/net/net_namespace.h void net_ns_get_ownership(const struct net *net, kuid_t *uid, kgid_t *gid); gid 210 include/net/net_namespace.h kuid_t *uid, kgid_t *gid) gid 213 include/net/net_namespace.h *gid = GLOBAL_ROOT_GID; gid 176 include/net/nfc/nci.h #define nci_opcode_pack(gid, oid) (__u16)((((__u16)((gid)&0x0f))<<8)|\ gid 203 include/net/nfc/nci.h __u8 gid; /* MT & PBF & GID */ gid 21 include/net/scm.h kgid_t gid; gid 57 include/net/scm.h struct pid *pid, kuid_t uid, kgid_t gid) gid 62 include/net/scm.h scm->creds.gid = gid; gid 83 include/net/scm.h scm->creds.gid = INVALID_GID; gid 128 include/net/scm.h .gid = from_kgid_munged(current_ns, scm->creds.gid), gid 125 include/rdma/ib_addr.h union ib_gid *gid) gid 127 include/rdma/ib_addr.h memcpy(gid, dev_addr->broadcast + 4, sizeof *gid); gid 140 include/rdma/ib_addr.h static inline int rdma_ip2gid(struct sockaddr *addr, union ib_gid *gid) gid 146 include/rdma/ib_addr.h (struct in6_addr *)gid); gid 149 include/rdma/ib_addr.h *(struct in6_addr *)&gid->raw = gid 159 include/rdma/ib_addr.h static inline void rdma_gid2ip(struct sockaddr *out, const union ib_gid *gid) gid 161 include/rdma/ib_addr.h if (ipv6_addr_v4mapped((struct in6_addr *)gid)) { gid 165 include/rdma/ib_addr.h memcpy(&out_in->sin_addr.s_addr, gid->raw + 12, 4); gid 170 include/rdma/ib_addr.h memcpy(&out_in->sin6_addr.s6_addr, gid->raw, 16); gid 179 include/rdma/ib_addr.h static inline void rdma_addr_get_sgid(struct rdma_dev_addr *dev_addr, union ib_gid *gid) gid 181 include/rdma/ib_addr.h memcpy(gid, dev_addr->src_dev_addr + rdma_addr_gid_offset(dev_addr), gid 182 include/rdma/ib_addr.h sizeof(*gid)); gid 185 include/rdma/ib_addr.h static inline void rdma_addr_set_sgid(struct rdma_dev_addr *dev_addr, union ib_gid *gid) gid 187 include/rdma/ib_addr.h memcpy(dev_addr->src_dev_addr + rdma_addr_gid_offset(dev_addr), gid, sizeof *gid); gid 190 include/rdma/ib_addr.h static inline void rdma_addr_get_dgid(struct rdma_dev_addr *dev_addr, union ib_gid *gid) gid 192 include/rdma/ib_addr.h memcpy(gid, dev_addr->dst_dev_addr + rdma_addr_gid_offset(dev_addr), sizeof *gid); gid 195 include/rdma/ib_addr.h static inline void rdma_addr_set_dgid(struct rdma_dev_addr *dev_addr, union ib_gid *gid) gid 197 include/rdma/ib_addr.h memcpy(dev_addr->dst_dev_addr + rdma_addr_gid_offset(dev_addr), gid, sizeof *gid); gid 41 include/rdma/ib_cache.h union ib_gid *gid); gid 43 include/rdma/ib_cache.h const union ib_gid *gid, gid 47 include/rdma/ib_cache.h const union ib_gid *gid, gid 52 include/rdma/ib_cache.h struct ib_device *device, const union ib_gid *gid, u8 port_num, gid 53 include/rdma/ib_cache.h bool (*filter)(const union ib_gid *gid, const struct ib_gid_attr *, gid 134 include/rdma/ib_cache.h bool rdma_is_zero_gid(const union ib_gid *gid); gid 398 include/rdma/ib_sa.h union ib_gid gid; gid 171 include/rdma/ib_verbs.h union ib_gid gid; gid 223 include/rdma/ib_verbs.h if (ipv6_addr_v4mapped((struct in6_addr *)&attr->gid)) gid 2142 include/rdma/ib_verbs.h struct ib_gid_table *gid; gid 2204 include/rdma/ib_verbs.h union ib_gid *gid, u16 mlid, gid 2207 include/rdma/ib_verbs.h union ib_gid *gid, u16 mlid); gid 2335 include/rdma/ib_verbs.h union ib_gid *gid); gid 2426 include/rdma/ib_verbs.h int (*attach_mcast)(struct ib_qp *qp, union ib_gid *gid, u16 lid); gid 2427 include/rdma/ib_verbs.h int (*detach_mcast)(struct ib_qp *qp, union ib_gid *gid, u16 lid); gid 2696 include/rdma/ib_verbs.h const union ib_gid *gid, gid 3323 include/rdma/ib_verbs.h int ib_find_gid(struct ib_device *device, union ib_gid *gid, gid 4222 include/rdma/ib_verbs.h int ib_attach_mcast(struct ib_qp *qp, union ib_gid *gid, u16 lid); gid 4230 include/rdma/ib_verbs.h int ib_detach_mcast(struct ib_qp *qp, union ib_gid *gid, u16 lid); gid 4317 include/rdma/ib_verbs.h u16 pkey, const union ib_gid *gid, gid 75 include/rdma/opa_addr.h static inline bool ib_is_opa_gid(const union ib_gid *gid) gid 77 include/rdma/opa_addr.h return ((be64_to_cpu(gid->global.interface_id) >> 40) == gid 88 include/rdma/opa_addr.h static inline u32 opa_get_lid_from_gid(const union ib_gid *gid) gid 90 include/rdma/opa_addr.h return be64_to_cpu(gid->global.interface_id) & 0xFFFFFFFF; gid 28 include/scsi/fc_encode.h struct fc_ns_gid_ft gid; gid 131 include/scsi/fc_encode.h ct->payload.gid.fn_fc4_type = FC_TYPE_FCP; gid 137 include/scsi/fc_encode.h ct->payload.gid.fn_fc4_type = FC_TYPE_FCP; gid 118 include/soc/nps/common.h ({ struct global_id gid; gid.value = cpu; \ gid 119 include/soc/nps/common.h nps_cluster_logic_to_phys(gid.cluster); }) gid 89 include/trace/events/ext4.h __field( gid_t, gid ) gid 98 include/trace/events/ext4.h __entry->gid = i_gid_read(inode); gid 106 include/trace/events/ext4.h __entry->uid, __entry->gid) gid 118 include/trace/events/ext4.h __field( gid_t, gid ) gid 127 include/trace/events/ext4.h __entry->gid = i_gid_read(inode); gid 135 include/trace/events/ext4.h __entry->uid, __entry->gid, __entry->blocks) gid 47 include/trace/events/ib_umad.h __array(u8, gid, 16) gid 70 include/trace/events/ib_umad.h memcpy(__entry->gid, umad_hdr->gid, sizeof(umad_hdr->gid)); gid 98 include/trace/events/ib_umad.h __entry->traffic_class, &__entry->gid, gid 25 include/trace/events/iommu.h __field(int, gid) gid 30 include/trace/events/iommu.h __entry->gid = group_id; gid 35 include/trace/events/iommu.h __entry->gid, __get_str(device) gid 23 include/uapi/asm-generic/ipcbuf.h __kernel_gid32_t gid; gid 59 include/uapi/linux/auto_dev-ioctl.h __u32 gid; gid 197 include/uapi/linux/auto_fs.h __u32 gid; gid 569 include/uapi/linux/btrfs_tree.h __le32 gid; gid 33 include/uapi/linux/cramfs_fs.h __u32 size:CRAMFS_SIZE_WIDTH, gid:CRAMFS_GID_WIDTH; gid 231 include/uapi/linux/fuse.h uint32_t gid; gid 575 include/uapi/linux/fuse.h uint32_t gid; gid 792 include/uapi/linux/fuse.h uint32_t gid; gid 14 include/uapi/linux/ipc.h __kernel_gid_t gid; gid 145 include/uapi/linux/jffs2.h jint16_t gid; /* The file's group. */ gid 90 include/uapi/linux/smc_diag.h __u8 gid[40]; /* local GID */ gid 88 include/uapi/rdma/ib_user_mad.h __u8 gid[16]; gid 132 include/uapi/rdma/ib_user_mad.h __u8 gid[16]; gid 888 include/uapi/rdma/ib_user_verbs.h __u8 gid[16]; gid 896 include/uapi/rdma/ib_user_verbs.h __u8 gid[16]; gid 250 include/uapi/rdma/rdma_netlink.h __u8 gid[16]; gid 151 init/initramfs.c static __initdata gid_t gid; gid 168 init/initramfs.c gid = parsed[3]; gid 338 init/initramfs.c ksys_fchown(wfd, uid, gid); gid 348 init/initramfs.c ksys_chown(collected, uid, gid); gid 355 init/initramfs.c ksys_chown(collected, uid, gid); gid 388 init/initramfs.c ksys_lchown(collected, uid, gid); gid 45 ipc/compat.c to->gid = v.gid; gid 57 ipc/compat.c to->gid = v.gid; gid 66 ipc/compat.c to->gid = from->gid; gid 77 ipc/compat.c SET_GID(to->gid, from->gid); gid 359 ipc/msg.c out->msg_perm.gid = tbuf_old.msg_perm.gid; gid 1305 ipc/msg.c from_kgid_munged(user_ns, msq->q_perm.gid), gid 1568 ipc/sem.c out->sem_perm.gid = tbuf_old.sem_perm.gid; gid 2436 ipc/sem.c from_kgid_munged(user_ns, sma->sem_perm.gid), gid 792 ipc/shm.c out->shm_perm.gid = tbuf_old.shm_perm.gid; gid 1768 ipc/shm.c from_kgid_munged(user_ns, shp->shm_perm.gid), gid 300 ipc/util.c new->gid = new->cgid = egid; gid 530 ipc/util.c else if (in_group_p(ipcp->cgid) || in_group_p(ipcp->gid)) gid 557 ipc/util.c out->gid = from_kgid_munged(current_user_ns(), in->gid); gid 576 ipc/util.c SET_GID(out->gid, in->gid); gid 656 ipc/util.c kgid_t gid = make_kgid(current_user_ns(), in->gid); gid 657 ipc/util.c if (!uid_valid(uid) || !gid_valid(gid)) gid 661 ipc/util.c out->gid = gid; gid 705 ipc/util.c perm->gid, perm->mode); gid 260 ipc/util.h __compat_gid_t gid; gid 496 kernel/acct.c ac.ac_gid = from_kgid_munged(file->f_cred->user_ns, orig_cred->gid); gid 2145 kernel/audit.c from_kgid(&init_user_ns, cred->gid), gid 78 kernel/audit.h kgid_t gid; gid 129 kernel/audit.h kgid_t gid, egid, sgid, fsgid; gid 152 kernel/audit.h kgid_t gid; gid 498 kernel/auditfilter.c f->gid = make_kgid(current_user_ns(), f_val); gid 499 kernel/auditfilter.c if (!gid_valid(f->gid)) gid 761 kernel/auditfilter.c if (!gid_eq(a->fields[i].gid, b->fields[i].gid)) gid 1345 kernel/auditfilter.c result = audit_gid_comparator(current_gid(), f->op, f->gid); gid 330 kernel/auditsc.c static int audit_compare_gid(kgid_t gid, gid 339 kernel/auditsc.c rc = audit_gid_comparator(gid, f->op, name->gid); gid 346 kernel/auditsc.c rc = audit_gid_comparator(gid, f->op, n->gid); gid 365 kernel/auditsc.c return audit_compare_gid(cred->gid, name, f, ctx); gid 410 kernel/auditsc.c return audit_gid_comparator(cred->gid, f->op, cred->egid); gid 412 kernel/auditsc.c return audit_gid_comparator(cred->gid, f->op, cred->sgid); gid 414 kernel/auditsc.c return audit_gid_comparator(cred->gid, f->op, cred->fsgid); gid 488 kernel/auditsc.c result = audit_gid_comparator(cred->gid, f->op, f->gid); gid 491 kernel/auditsc.c result = groups_search(cred->group_info, f->gid); gid 494 kernel/auditsc.c result = !groups_search(cred->group_info, f->gid); gid 498 kernel/auditsc.c result = audit_gid_comparator(cred->egid, f->op, f->gid); gid 501 kernel/auditsc.c result = groups_search(cred->group_info, f->gid); gid 504 kernel/auditsc.c result = !groups_search(cred->group_info, f->gid); gid 508 kernel/auditsc.c result = audit_gid_comparator(cred->sgid, f->op, f->gid); gid 511 kernel/auditsc.c result = audit_gid_comparator(cred->fsgid, f->op, f->gid); gid 593 kernel/auditsc.c result = audit_gid_comparator(name->gid, f->op, f->gid); gid 596 kernel/auditsc.c if (audit_gid_comparator(n->gid, f->op, f->gid)) { gid 1210 kernel/auditsc.c from_kgid(&init_user_ns, context->ipc.gid), gid 1359 kernel/auditsc.c from_kgid(&init_user_ns, n->gid), gid 1928 kernel/auditsc.c name->gid = inode->i_gid; gid 2277 kernel/auditsc.c context->ipc.gid = ipcp->gid; gid 2293 kernel/auditsc.c void __audit_ipc_set_perm(unsigned long qbytes, uid_t uid, gid_t gid, umode_t mode) gid 2299 kernel/auditsc.c context->ipc.perm_gid = gid; gid 2551 kernel/auditsc.c kgid_t gid; gid 2557 kernel/auditsc.c current_uid_gid(&uid, &gid); gid 2562 kernel/auditsc.c from_kgid(&init_user_ns, gid), gid 175 kernel/bpf/helpers.c kgid_t gid; gid 180 kernel/bpf/helpers.c current_uid_gid(&uid, &gid); gid 181 kernel/bpf/helpers.c return (u64) from_kgid(&init_user_ns, gid) << 32 | gid 48 kernel/cred.c .gid = GLOBAL_ROOT_GID, gid 500 kernel/cred.c if (!gid_eq(new->gid, old->gid) || gid 644 kernel/cred.c if (gid_lt(ga->gid[g], gb->gid[g])) gid 646 kernel/cred.c if (gid_gt(ga->gid[g], gb->gid[g])) gid 820 kernel/cred.c from_kgid_munged(&init_user_ns, cred->gid), gid 50 kernel/groups.c gid_t gid; gid 51 kernel/groups.c gid = from_kgid_munged(user_ns, group_info->gid[i]); gid 52 kernel/groups.c if (put_user(gid, grouplist+i)) gid 67 kernel/groups.c gid_t gid; gid 69 kernel/groups.c if (get_user(gid, grouplist+i)) gid 72 kernel/groups.c kgid = make_kgid(user_ns, gid); gid 76 kernel/groups.c group_info->gid[i] = kgid; gid 91 kernel/groups.c sort(group_info->gid, group_info->ngroups, sizeof(*group_info->gid), gid 108 kernel/groups.c if (gid_gt(grp, group_info->gid[mid])) gid 110 kernel/groups.c else if (gid_lt(grp, group_info->gid[mid])) gid 319 kernel/ptrace.c caller_gid = cred->gid; gid 327 kernel/ptrace.c gid_eq(caller_gid, tcred->gid)) gid 1073 kernel/sched/fair.c pid_t gid; gid 1214 kernel/sched/fair.c pid_t gid = 0; gid 1219 kernel/sched/fair.c gid = ng->gid; gid 1222 kernel/sched/fair.c return gid; gid 2265 kernel/sched/fair.c grp->gid = p->pid; gid 373 kernel/sys.c if (gid_eq(old->gid, krgid) || gid 376 kernel/sys.c new->gid = krgid; gid 381 kernel/sys.c if (gid_eq(old->gid, kegid) || gid 391 kernel/sys.c (egid != (gid_t) -1 && !gid_eq(kegid, old->gid))) gid 412 kernel/sys.c long __sys_setgid(gid_t gid) gid 420 kernel/sys.c kgid = make_kgid(ns, gid); gid 431 kernel/sys.c new->gid = new->egid = new->sgid = new->fsgid = kgid; gid 432 kernel/sys.c else if (gid_eq(kgid, old->gid) || gid_eq(kgid, old->sgid)) gid 444 kernel/sys.c SYSCALL_DEFINE1(setgid, gid_t, gid) gid 446 kernel/sys.c return __sys_setgid(gid); gid 739 kernel/sys.c if (rgid != (gid_t) -1 && !gid_eq(krgid, old->gid) && gid 742 kernel/sys.c if (egid != (gid_t) -1 && !gid_eq(kegid, old->gid) && gid 745 kernel/sys.c if (sgid != (gid_t) -1 && !gid_eq(ksgid, old->gid) && gid 751 kernel/sys.c new->gid = krgid; gid 776 kernel/sys.c rgid = from_kgid_munged(cred->user_ns, cred->gid); gid 841 kernel/sys.c long __sys_setfsgid(gid_t gid) gid 851 kernel/sys.c kgid = make_kgid(old->user_ns, gid); gid 859 kernel/sys.c if (gid_eq(kgid, old->gid) || gid_eq(kgid, old->egid) || gid 876 kernel/sys.c SYSCALL_DEFINE1(setfsgid, gid_t, gid) gid 878 kernel/sys.c return __sys_setfsgid(gid); gid 1597 kernel/sys.c gid_eq(cred->gid, tcred->egid) && gid 1598 kernel/sys.c gid_eq(cred->gid, tcred->sgid) && gid 1599 kernel/sys.c gid_eq(cred->gid, tcred->gid)); gid 55 kernel/tsacct.c stats->ac_gid = from_kgid_munged(user_ns, tcred->gid); gid 43 kernel/uid16.c SYSCALL_DEFINE1(setgid16, old_gid_t, gid) gid 45 kernel/uid16.c return __sys_setgid(low2highgid(gid)); gid 93 kernel/uid16.c rgid = high2lowgid(from_kgid_munged(cred->user_ns, cred->gid)); gid 109 kernel/uid16.c SYSCALL_DEFINE1(setfsgid16, old_gid_t, gid) gid 111 kernel/uid16.c return __sys_setfsgid(low2highgid(gid)); gid 123 kernel/uid16.c kgid = group_info->gid[i]; gid 148 kernel/uid16.c group_info->gid[i] = kgid; gid 6 kernel/uid16.h long __sys_setgid(gid_t gid); gid 12 kernel/uid16.h long __sys_setfsgid(gid_t gid); gid 454 kernel/user_namespace.c kgid_t make_kgid(struct user_namespace *ns, gid_t gid) gid 457 kernel/user_namespace.c return KGIDT_INIT(map_id_down(&ns->gid_map, gid)); gid 499 kernel/user_namespace.c gid_t gid; gid 500 kernel/user_namespace.c gid = from_kgid(targ, kgid); gid 502 kernel/user_namespace.c if (gid == (gid_t) -1) gid 503 kernel/user_namespace.c gid = overflowgid; gid 504 kernel/user_namespace.c return gid; gid 1100 kernel/user_namespace.c kgid_t gid = make_kgid(ns->parent, id); gid 1102 kernel/user_namespace.c gid_eq(gid, cred->egid)) gid 48 lib/kobject.c void kobject_get_ownership(struct kobject *kobj, kuid_t *uid, kgid_t *gid) gid 51 lib/kobject.c *gid = GLOBAL_ROOT_GID; gid 54 lib/kobject.c kobj->ktype->get_ownership(kobj, uid, gid); gid 921 lib/kobject.c static void kset_get_ownership(struct kobject *kobj, kuid_t *uid, kgid_t *gid) gid 924 lib/kobject.c kobject_get_ownership(kobj->parent, uid, gid); gid 301 lib/kobject_uevent.c parms->creds.gid = GLOBAL_ROOT_GID; gid 368 lib/kobject_uevent.c parms->creds.gid = root_gid; gid 816 lib/vsprintf.c !gid_eq(cred->egid, cred->gid)) gid 116 mm/shmem.c kgid_t gid; gid 3459 mm/shmem.c ctx->gid = make_kgid(current_user_ns(), result.uint_32); gid 3460 mm/shmem.c if (!gid_valid(ctx->gid)) gid 3609 mm/shmem.c if (!gid_eq(sbinfo->gid, GLOBAL_ROOT_GID)) gid 3611 mm/shmem.c from_kgid_munged(&init_user_ns, sbinfo->gid)); gid 3670 mm/shmem.c sbinfo->gid = ctx->gid; gid 3700 mm/shmem.c inode->i_gid = sbinfo->gid; gid 3882 mm/shmem.c ctx->gid = current_fsgid(); gid 150 net/802/garp.c struct rb_node *parent = app->gid.rb_node; gid 170 net/802/garp.c struct rb_node *parent = NULL, **p = &app->gid.rb_node; gid 196 net/802/garp.c rb_insert_color(&attr->node, &app->gid); gid 202 net/802/garp.c rb_erase(&attr->node, &app->gid); gid 385 net/802/garp.c for (node = rb_first(&app->gid); gid 580 net/802/garp.c app->gid = RB_ROOT; gid 1286 net/9p/client.c kgid_t gid, struct p9_qid *qid) gid 1296 net/9p/client.c from_kgid(&init_user_ns, gid)); gid 1303 net/9p/client.c mode, gid); gid 1376 net/9p/client.c const char *symtgt, kgid_t gid, struct p9_qid *qid) gid 1387 net/9p/client.c gid); gid 1723 net/9p/client.c ret->name, ret->uid, ret->gid, ret->muid, ret->extension, gid 1812 net/9p/client.c if (wst->gid) gid 1813 net/9p/client.c ret += strlen(wst->gid); gid 1845 net/9p/client.c wst->name, wst->uid, wst->gid, wst->muid, wst->extension, gid 1879 net/9p/client.c from_kgid(&init_user_ns, p9attr->gid), gid 2135 net/9p/client.c dev_t rdev, kgid_t gid, struct p9_qid *qid) gid 2146 net/9p/client.c MAJOR(rdev), MINOR(rdev), gid); gid 2166 net/9p/client.c kgid_t gid, struct p9_qid *qid) gid 2175 net/9p/client.c fid->fid, name, mode, from_kgid(&init_user_ns, gid)); gid 2177 net/9p/client.c gid); gid 37 net/9p/protocol.c kfree(stbuf->gid); gid 38 net/9p/protocol.c stbuf->gid = NULL; gid 171 net/9p/protocol.c kgid_t *gid = va_arg(ap, kgid_t *); gid 177 net/9p/protocol.c *gid = make_kgid(&init_user_ns, gid 205 net/9p/protocol.c &stbuf->gid, &stbuf->muid, gid 404 net/9p/protocol.c kgid_t gid = va_arg(ap, kgid_t); gid 406 net/9p/protocol.c from_kgid(&init_user_ns, gid)); gid 429 net/9p/protocol.c stbuf->gid, stbuf->muid, gid 495 net/9p/protocol.c p9attr->gid, gid 256 net/bridge/br_if.c static void brport_get_ownership(struct kobject *kobj, kuid_t *uid, kgid_t *gid) gid 260 net/bridge/br_if.c net_ns_get_ownership(dev_net(p->dev), uid, gid); gid 7649 net/core/dev.c kgid_t gid; gid 7674 net/core/dev.c current_uid_gid(&uid, &gid); gid 7682 net/core/dev.c from_kgid(&init_user_ns, gid), gid 901 net/core/net-sysfs.c kuid_t *uid, kgid_t *gid) gid 905 net/core/net-sysfs.c net_ns_get_ownership(net, uid, gid); gid 1444 net/core/net-sysfs.c kuid_t *uid, kgid_t *gid) gid 1448 net/core/net-sysfs.c net_ns_get_ownership(net, uid, gid); gid 1654 net/core/net-sysfs.c static void net_get_ownership(struct device *d, kuid_t *uid, kgid_t *gid) gid 1659 net/core/net-sysfs.c net_ns_get_ownership(net, uid, gid); gid 501 net/core/net_namespace.c void net_ns_get_ownership(const struct net *net, kuid_t *uid, kgid_t *gid) gid 511 net/core/net_namespace.c *gid = ns_root_gid; gid 514 net/core/net_namespace.c *gid = GLOBAL_ROOT_GID; gid 49 net/core/scm.c kgid_t gid = make_kgid(cred->user_ns, creds->gid); gid 51 net/core/scm.c if (!uid_valid(uid) || !gid_valid(gid)) gid 58 net/core/scm.c ((gid_eq(gid, cred->gid) || gid_eq(gid, cred->egid) || gid 59 net/core/scm.c gid_eq(gid, cred->sgid)) || ns_capable(cred->user_ns, CAP_SETGID))) { gid 166 net/core/scm.c kgid_t gid; gid 187 net/core/scm.c gid = make_kgid(current_user_ns(), creds.gid); gid 188 net/core/scm.c if (!uid_valid(uid) || !gid_valid(gid)) gid 192 net/core/scm.c p->creds.gid = gid; gid 1194 net/core/sock.c ucred->uid = ucred->gid = -1; gid 1199 net/core/sock.c ucred->gid = from_kgid_munged(current_ns, cred->egid); gid 1209 net/core/sock.c if (put_user(from_kgid_munged(user_ns, src->gid[i]), dst + i)) gid 270 net/ipv4/ping.c kgid_t gid = group_info->gid[i]; gid 272 net/ipv4/ping.c if (gid_lte(low, gid) && gid_lte(gid, high)) gid 610 net/netfilter/nfnetlink_log.c __be32 gid = htonl(from_kgid_munged(user_ns, cred->fsgid)); gid 613 net/netfilter/nfnetlink_log.c nla_put_be32(inst->skb, NFULA_GID, gid)) gid 105 net/netfilter/xt_owner.c kgid_t group = gi->gid[i]; gid 332 net/netfilter/xt_recent.c kgid_t gid; gid 401 net/netfilter/xt_recent.c gid = make_kgid(&init_user_ns, ip_list_gid); gid 402 net/netfilter/xt_recent.c if (!uid_valid(uid) || !gid_valid(gid)) { gid 414 net/netfilter/xt_recent.c proc_set_user(pde, uid, gid); gid 1329 net/nfc/nci/core.c hdr->gid = nci_opcode_gid(opcode); gid 411 net/smc/af_smc.c link->gid, SMC_LLC_RESP); gid 458 net/smc/af_smc.c memcpy(link->peer_gid, clc->lcl.gid, SMC_GID_SIZE); gid 669 net/smc/af_smc.c ini->ism_gid = aclc->gid; gid 1030 net/smc/af_smc.c link->gid, SMC_LLC_REQ); gid 1158 net/smc/af_smc.c ini->ism_gid = pclc_smcd->gid; gid 423 net/smc/smc_clc.c memcpy(&pclc.lcl.gid, ini->ib_gid, SMC_GID_SIZE); gid 433 net/smc/smc_clc.c pclc_smcd.gid = ini->ism_dev->local_gid; gid 489 net/smc/smc_clc.c cclc.gid = conn->lgr->smcd->local_gid; gid 505 net/smc/smc_clc.c memcpy(&cclc.lcl.gid, link->gid, SMC_GID_SIZE); gid 561 net/smc/smc_clc.c aclc.gid = conn->lgr->smcd->local_gid; gid 577 net/smc/smc_clc.c memcpy(&aclc.lcl.gid, link->gid, SMC_GID_SIZE); gid 77 net/smc/smc_clc.h u8 gid[16]; /* gid of ib_device port */ gid 99 net/smc/smc_clc.h u64 gid; /* ISM GID of requestor */ gid 142 net/smc/smc_clc.h u64 gid; /* Sender GID */ gid 258 net/smc/smc_core.c ini->vlan_id, lnk->gid, gid 596 net/smc/smc_core.c !memcmp(lgr->lnk[SMC_SINGLE_LINK].peer_gid, &lcl->gid, gid 108 net/smc/smc_core.h u8 gid[SMC_GID_SIZE];/* gid matching used vlan id*/ gid 161 net/smc/smc_diag.c smc_gid_be16_convert(linfo.lnk[0].gid, gid 162 net/smc/smc_diag.c smc->conn.lgr->lnk[0].gid); gid 180 net/smc/smc_ib.c unsigned short vlan_id, u8 gid[], u8 *sgid_index) gid 199 net/smc/smc_ib.c if (gid) gid 200 net/smc/smc_ib.c memcpy(gid, &attr->gid, SMC_GID_SIZE); gid 82 net/smc/smc_ib.h unsigned short vlan_id, u8 gid[], u8 *sgid_index); gid 207 net/smc/smc_llc.c memcpy(confllc->sender_gid, link->gid, SMC_GID_SIZE); gid 267 net/smc/smc_llc.c struct smc_link *link, u8 mac[], u8 gid[], gid 280 net/smc/smc_llc.c memcpy(addllc->sender_gid, gid, SMC_GID_SIZE); gid 284 net/smc/smc_llc.c int smc_llc_send_add_link(struct smc_link *link, u8 mac[], u8 gid[], gid 296 net/smc/smc_llc.c smc_llc_prep_add_link(addllc, link, mac, gid, reqresp); gid 448 net/smc/smc_llc.c link->gid, SMC_LLC_REQ); gid 453 net/smc/smc_llc.c link->gid, SMC_LLC_RESP); gid 41 net/smc/smc_llc.h int smc_llc_send_add_link(struct smc_link *link, u8 mac[], u8 gid[], gid 219 net/sunrpc/auth_gss/gss_rpc_xdr.c creds->cr_group_info->gid[i] = kgid; gid 503 net/sunrpc/auth_gss/svcauth_gss.c rsci.cred.cr_group_info->gid[i] = kgid; gid 93 net/sunrpc/auth_unix.c if (!gid_eq(cred->cr_cred->group_info->gid[i], acred->cred->group_info->gid[i])) gid 133 net/sunrpc/auth_unix.c *p++ = cpu_to_be32(from_kgid_munged(userns, gi->gid[i])); gid 520 net/sunrpc/svcauth_unix.c int gid; gid 522 net/sunrpc/svcauth_unix.c rv = get_int(&mesg, &gid); gid 526 net/sunrpc/svcauth_unix.c kgid = make_kgid(current_user_ns(), gid); gid 529 net/sunrpc/svcauth_unix.c ug.gi->gid[i] = kgid; gid 577 net/sunrpc/svcauth_unix.c seq_printf(m, " %d", from_kgid_munged(user_ns, ug->gi->gid[i])); gid 833 net/sunrpc/svcauth_unix.c cred->cr_group_info->gid[i] = kgid; gid 58 net/sysctl_net.c kuid_t *uid, kgid_t *gid) gid 70 net/sysctl_net.c *gid = ns_root_gid; gid 1514 net/unix/af_unix.c UNIXCB(skb).gid = scm->creds.gid; gid 1544 net/unix/af_unix.c current_uid_gid(&UNIXCB(skb).uid, &UNIXCB(skb).gid); gid 1561 net/unix/af_unix.c current_uid_gid(&scm->creds.uid, &scm->creds.gid); gid 1573 net/unix/af_unix.c gid_eq(u->gid, scm->creds.gid) && gid 2107 net/unix/af_unix.c scm_set_cred(&scm, UNIXCB(skb).pid, UNIXCB(skb).uid, UNIXCB(skb).gid); gid 2313 net/unix/af_unix.c scm_set_cred(&scm, UNIXCB(skb).pid, UNIXCB(skb).uid, UNIXCB(skb).gid); gid 72 samples/bpf/ibumad_kern.c u8 gid[16]; gid 15 samples/bpf/sock_flags_kern.c __u32 gid = gid_uid >> 32; gid 18 samples/bpf/sock_flags_kern.c bpf_trace_printk(fmt2, sizeof(fmt2), uid, gid); gid 382 security/apparmor/lsm.c static int apparmor_path_chown(const struct path *path, kuid_t uid, kgid_t gid) gid 758 security/commoncap.c { return !gid_eq(new->egid, old->gid); } gid 845 security/commoncap.c new->egid = new->gid; gid 149 security/integrity/evm/evm_crypto.c gid_t gid; gid 170 security/integrity/evm/evm_crypto.c hmac_misc.gid = from_kgid(&init_user_ns, inode->i_gid); gid 225 security/keys/key.c kuid_t uid, kgid_t gid, const struct cred *cred, gid 294 security/keys/key.c key->gid = gid; gid 681 security/keys/keyctl.c from_kgid_munged(current_user_ns(), key->gid), gid 953 security/keys/keyctl.c kgid_t gid; gid 956 security/keys/keyctl.c gid = make_kgid(current_user_ns(), group); gid 960 security/keys/keyctl.c if ((group != (gid_t) -1) && !gid_valid(gid)) gid 987 security/keys/keyctl.c if (group != (gid_t) -1 && !gid_eq(gid, key->gid) && !in_group_p(gid)) gid 1037 security/keys/keyctl.c key->gid = gid; gid 1672 security/keys/keyctl.c !gid_eq(pcred->gid, mycred->egid) || gid 517 security/keys/keyring.c struct key *keyring_alloc(const char *description, kuid_t uid, kgid_t gid, gid 527 security/keys/keyring.c uid, gid, cred, perm, flags, restrict_link); gid 43 security/keys/permission.c if (gid_valid(key->gid) && key->perm & KEY_GRP_ALL) { gid 44 security/keys/permission.c if (gid_eq(key->gid, cred->fsgid)) { gid 49 security/keys/permission.c ret = groups_search(cred->group_info, key->gid); gid 239 security/keys/proc.c from_kgid_munged(seq_user_ns(m), key->gid), gid 228 security/keys/process_keys.c keyring = keyring_alloc("_tid", new->uid, new->gid, new, gid 275 security/keys/process_keys.c keyring = keyring_alloc("_pid", new->uid, new->gid, new, gid 330 security/keys/process_keys.c keyring = keyring_alloc("_ses", cred->uid, cred->gid, cred, gid 395 security/keys/process_keys.c new_cred->thread_keyring->gid = new_cred->fsgid; gid 871 security/keys/process_keys.c name, old->uid, old->gid, old, gid 926 security/keys/process_keys.c new-> gid = old-> gid; gid 1098 security/security.c int security_path_chown(const struct path *path, kuid_t uid, kgid_t gid) gid 1102 security/security.c return call_int_hook(path_chown, 0, path, uid, gid); gid 201 security/tomoyo/audit.c from_kgid(&init_user_ns, stat->gid), gid 210 security/tomoyo/audit.c from_kgid(&init_user_ns, stat->gid), gid 569 security/tomoyo/common.h kgid_t gid; gid 743 security/tomoyo/condition.c stat->gid = inode->i_gid; gid 1005 security/tomoyo/condition.c value = from_kgid(&init_user_ns, stat->gid); gid 361 security/tomoyo/tomoyo.c static int tomoyo_path_chown(const struct path *path, kuid_t uid, kgid_t gid) gid 368 security/tomoyo/tomoyo.c if (!error && gid_valid(gid)) gid 370 security/tomoyo/tomoyo.c from_kgid(&init_user_ns, gid)); gid 234 tools/testing/selftests/capabilities/test_execve.c uid_t gid = getegid(); gid 259 tools/testing/selftests/capabilities/test_execve.c if (chown("validate_cap_sgidnonroot", -1, gid + 1) != 0) gid 74 tools/testing/selftests/filesystems/binderfs/binderfs_test.c gid_t gid; gid 79 tools/testing/selftests/filesystems/binderfs/binderfs_test.c gid = getgid(); gid 95 tools/testing/selftests/filesystems/binderfs/binderfs_test.c ret = snprintf(idmap, sizeof(idmap), "0 %d 1", gid); gid 157 tools/testing/selftests/mount/unprivileged-remount-test.c gid_t gid; gid 160 tools/testing/selftests/mount/unprivileged-remount-test.c gid = getgid(); gid 169 tools/testing/selftests/mount/unprivileged-remount-test.c write_file("/proc/self/gid_map", "0 %d 1", gid); gid 104 usr/gen_init_cpio.c unsigned int mode, uid_t uid, gid_t gid) gid 116 usr/gen_init_cpio.c (long) gid, /* gid */ gid 140 usr/gen_init_cpio.c int gid; gid 143 usr/gen_init_cpio.c if (5 != sscanf(line, "%" str(PATH_MAX) "s %" str(PATH_MAX) "s %o %d %d", name, target, &mode, &uid, &gid)) { gid 147 usr/gen_init_cpio.c rc = cpio_mkslink(name, target, mode, uid, gid); gid 153 usr/gen_init_cpio.c uid_t uid, gid_t gid) gid 165 usr/gen_init_cpio.c (long) gid, /* gid */ gid 211 usr/gen_init_cpio.c int gid; gid 214 usr/gen_init_cpio.c if (4 != sscanf(line, "%" str(PATH_MAX) "s %o %d %d", name, &mode, &uid, &gid)) { gid 220 usr/gen_init_cpio.c rc = cpio_mkgeneric(name, mode, uid, gid); gid 241 usr/gen_init_cpio.c uid_t uid, gid_t gid, char dev_type, gid 259 usr/gen_init_cpio.c (long) gid, /* gid */ gid 279 usr/gen_init_cpio.c int gid; gid 286 usr/gen_init_cpio.c name, &mode, &uid, &gid, &dev_type, &maj, &min)) { gid 290 usr/gen_init_cpio.c rc = cpio_mknod(name, mode, uid, gid, dev_type, maj, min); gid 296 usr/gen_init_cpio.c unsigned int mode, uid_t uid, gid_t gid, gid 349 usr/gen_init_cpio.c (long) gid, /* gid */ gid 407 usr/gen_init_cpio.c int gid; gid 414 usr/gen_init_cpio.c name, location, &mode, &uid, &gid, &end)) { gid 446 usr/gen_init_cpio.c mode, uid, gid, nlinks);