sgid 2329 arch/ia64/kernel/perfmon.c from_kgid(&init_user_ns, tcred->sgid))); sgid 2335 arch/ia64/kernel/perfmon.c || (!gid_eq(gid, tcred->sgid)) sgid 183 arch/powerpc/platforms/powernv/opal-sensor-groups.c u32 sgid, len, nr_attrs, chipid; sgid 207 arch/powerpc/platforms/powernv/opal-sensor-groups.c if (of_property_read_u32(node, "sensor-group-id", &sgid)) { sgid 218 arch/powerpc/platforms/powernv/opal-sensor-groups.c if (add_attr_group(ops, len, &sgs[i], sgid)) { sgid 100 arch/s390/kernel/compat_linux.h long compat_sys_s390_setresgid16(u16 rgid, u16 egid, u16 sgid); sgid 101 arch/s390/kernel/compat_linux.h long compat_sys_s390_getresgid16(u16 __user *rgid, u16 __user *egid, u16 __user *sgid); sgid 726 drivers/infiniband/core/addr.c } sgid, dgid; sgid 733 drivers/infiniband/core/addr.c rdma_gid2ip((struct sockaddr *)&sgid, &rec->sgid); sgid 736 drivers/infiniband/core/addr.c if (sgid._sockaddr.sa_family != dgid._sockaddr.sa_family) sgid 745 drivers/infiniband/core/addr.c ret = addr_resolve((struct sockaddr *)&sgid, (struct sockaddr *)&dgid, sgid 809 drivers/infiniband/core/addr.c int rdma_addr_find_l2_eth_by_grh(const union ib_gid *sgid, sgid 822 drivers/infiniband/core/addr.c rdma_gid2ip((struct sockaddr *)&sgid_addr, sgid); sgid 538 drivers/infiniband/core/cm.c &path->sgid, sgid 1310 drivers/infiniband/core/cm.c req_msg->primary_local_gid = pri_path->sgid; sgid 1345 drivers/infiniband/core/cm.c req_msg->alt_local_gid = alt_path->sgid; sgid 1586 drivers/infiniband/core/cm.c primary_path->sgid = req_msg->primary_remote_gid; sgid 1607 drivers/infiniband/core/cm.c alt_path->sgid = req_msg->alt_remote_gid; sgid 1664 drivers/infiniband/core/cm.c (ib_is_opa_gid(&path->sgid))) { sgid 1665 drivers/infiniband/core/cm.c union ib_gid sgid; sgid 1667 drivers/infiniband/core/cm.c if (rdma_query_gid(dev, port_num, 0, &sgid)) { sgid 1673 drivers/infiniband/core/cm.c path->sgid = sgid; sgid 2010 drivers/infiniband/core/cm.c &work->path[0].sgid); sgid 2016 drivers/infiniband/core/cm.c &work->path[0].sgid, sgid 2017 drivers/infiniband/core/cm.c sizeof(work->path[0].sgid), sgid 2026 drivers/infiniband/core/cm.c &work->path[0].sgid, sgid 2027 drivers/infiniband/core/cm.c sizeof(work->path[0].sgid), NULL, 0); sgid 3101 drivers/infiniband/core/cm.c lap_msg->alt_local_gid = alternate_path->sgid; sgid 3199 drivers/infiniband/core/cm.c path->sgid = lap_msg->alt_remote_gid; sgid 814 drivers/infiniband/core/cma.c union ib_gid gid, sgid, *dgid; sgid 841 drivers/infiniband/core/cma.c sgid = gid; sgid 850 drivers/infiniband/core/cma.c sgid = gid; sgid 864 drivers/infiniband/core/cma.c memcpy(&addr->sib_addr, &sgid, sizeof(sgid)); sgid 1248 drivers/infiniband/core/cma.c memcpy(&ib->sib_addr, &path->sgid, 16); sgid 1380 drivers/infiniband/core/cma.c memcpy(&req->local_gid, &req_param->primary_path->sgid, sgid 2048 drivers/infiniband/core/cma.c rdma_addr_set_sgid(&rt->addr.dev_addr, &rt->path_rec[0].sgid); sgid 2238 drivers/infiniband/core/cma.c void rdma_read_gids(struct rdma_cm_id *cm_id, union ib_gid *sgid, sgid 2244 drivers/infiniband/core/cma.c if (sgid) sgid 2245 drivers/infiniband/core/cma.c memset(sgid, 0, sizeof(*sgid)); sgid 2252 drivers/infiniband/core/cma.c if (sgid) sgid 2253 drivers/infiniband/core/cma.c rdma_ip2gid((struct sockaddr *)&addr->src_addr, sgid); sgid 2257 drivers/infiniband/core/cma.c if (sgid) sgid 2258 drivers/infiniband/core/cma.c rdma_addr_get_sgid(&addr->dev_addr, sgid); sgid 2591 drivers/infiniband/core/cma.c rdma_addr_get_sgid(dev_addr, &path_rec.sgid); sgid 2881 drivers/infiniband/core/cma.c &route->path_rec->sgid); sgid 379 drivers/infiniband/core/core_priv.h int rdma_addr_find_l2_eth_by_grh(const union ib_gid *sgid, sgid 1914 drivers/infiniband/core/mad.c union ib_gid sgid; sgid 1949 drivers/infiniband/core/mad.c grh->sgid_index, &sgid)) sgid 1951 drivers/infiniband/core/mad.c return !memcmp(sgid.raw, rwc->recv_buf.grh->dgid.raw, sgid 1960 drivers/infiniband/core/mad.c rwc->recv_buf.grh->sgid.raw, sgid 205 drivers/infiniband/core/sa_query.c { PATH_REC_FIELD(sgid), sgid 307 drivers/infiniband/core/sa_query.c { OPA_PATH_REC_FIELD(sgid), sgid 785 drivers/infiniband/core/sa_query.c sizeof(sa_rec->sgid), &sa_rec->sgid); sgid 1228 drivers/infiniband/core/sa_query.c gid_attr = rdma_find_gid_by_port(device, &rec->sgid, type, sgid 786 drivers/infiniband/core/ucma.c (union ib_gid *) &resp->ib_route[0].sgid); sgid 812 drivers/infiniband/core/ucma.c (union ib_gid *)&resp->ib_route[0].sgid); sgid 835 drivers/infiniband/core/ucma.c rdma_addr_get_sgid(dev_addr, (union ib_gid *) &resp->ib_route[0].sgid); sgid 140 drivers/infiniband/core/uverbs_marshall.c memcpy(dst->sgid, src->sgid.raw, sizeof(src->sgid)); sgid 181 drivers/infiniband/core/uverbs_marshall.c if ((ib_is_opa_gid((union ib_gid *)src->sgid)) || sgid 184 drivers/infiniband/core/uverbs_marshall.c slid = opa_get_lid_from_gid((union ib_gid *)src->sgid); sgid 192 drivers/infiniband/core/uverbs_marshall.c memcpy(dst->sgid.raw, src->sgid, sizeof dst->sgid); sgid 680 drivers/infiniband/core/verbs.c u16 vlan_id, const union ib_gid *sgid, sgid 686 drivers/infiniband/core/verbs.c return rdma_find_gid_by_filter(device, sgid, port_num, find_gid_index, sgid 692 drivers/infiniband/core/verbs.c union ib_gid *sgid, union ib_gid *dgid) sgid 698 drivers/infiniband/core/verbs.c if (!sgid || !dgid) sgid 709 drivers/infiniband/core/verbs.c (struct in6_addr *)sgid); sgid 716 drivers/infiniband/core/verbs.c *sgid = hdr->ibgrh.sgid; sgid 777 drivers/infiniband/core/verbs.c union ib_gid sgid; sgid 791 drivers/infiniband/core/verbs.c &sgid, &dgid); sgid 813 drivers/infiniband/core/verbs.c &sgid, sgid 842 drivers/infiniband/core/verbs.c &sgid, sgid 898 drivers/infiniband/hw/bnxt_re/ib_verbs.c union ib_gid sgid; sgid 908 drivers/infiniband/hw/bnxt_re/ib_verbs.c rc = bnxt_re_query_gid(&rdev->ibdev, 1, 0, &sgid); sgid 913 drivers/infiniband/hw/bnxt_re/ib_verbs.c memcpy(ah->qplib_ah.dgid.data, &sgid.raw, sgid 2463 drivers/infiniband/hw/hfi1/hfi.h grh->sgid.global.subnet_prefix = ibp->rvp.gid_prefix; sgid 2465 drivers/infiniband/hw/hfi1/hfi.h grh->sgid.global.interface_id = sgid 2468 drivers/infiniband/hw/hfi1/hfi.h grh->sgid.global.interface_id = OPA_MAKE_ID(slid); sgid 99 drivers/infiniband/hw/hfi1/ruc.c &packet->grh->sgid, sgid 136 drivers/infiniband/hw/hfi1/ruc.c &packet->grh->sgid, sgid 180 drivers/infiniband/hw/hfi1/ruc.c hdr->sgid.global.subnet_prefix = ibp->rvp.gid_prefix; sgid 181 drivers/infiniband/hw/hfi1/ruc.c hdr->sgid.global.interface_id = sgid 658 drivers/infiniband/hw/hfi1/ud.c grh->sgid = old_grh->dgid; sgid 659 drivers/infiniband/hw/hfi1/ud.c grh->dgid = old_grh->sgid; sgid 716 drivers/infiniband/hw/hfi1/ud.c grh->sgid = old_grh->dgid; sgid 717 drivers/infiniband/hw/hfi1/ud.c grh->dgid = old_grh->sgid; sgid 486 drivers/infiniband/hw/mlx4/mad.c static int get_gids_from_l3_hdr(struct ib_grh *grh, union ib_gid *sgid, sgid 500 drivers/infiniband/hw/mlx4/mad.c sgid, dgid); sgid 563 drivers/infiniband/hw/mlx4/mad.c union ib_gid sgid; sgid 566 drivers/infiniband/hw/mlx4/mad.c if (get_gids_from_l3_hdr(grh, &sgid, &dgid)) sgid 681 drivers/infiniband/hw/mlx4/mad.c union ib_gid sgid; sgid 683 drivers/infiniband/hw/mlx4/mad.c if (get_gids_from_l3_hdr(grh, &sgid, &dgid)) sgid 823 drivers/infiniband/hw/mlx4/mad.c be64_to_cpu(in_grh->sgid.global.subnet_prefix), sgid 824 drivers/infiniband/hw/mlx4/mad.c be64_to_cpu(in_grh->sgid.global.interface_id)); sgid 3041 drivers/infiniband/hw/mlx4/qp.c union ib_gid sgid; sgid 3069 drivers/infiniband/hw/mlx4/qp.c ah->av.ib.gid_index, &sgid.raw[0]); sgid 3075 drivers/infiniband/hw/mlx4/qp.c &sgid, &gid_type); sgid 3079 drivers/infiniband/hw/mlx4/qp.c if (ipv6_addr_v4mapped((struct in6_addr *)&sgid)) sgid 3113 drivers/infiniband/hw/mlx4/qp.c memcpy(sqp->ud_header.grh.source_gid.raw, sgid.raw, 16); sgid 3144 drivers/infiniband/hw/mlx4/qp.c sgid.raw + 12, 4); sgid 3195 drivers/infiniband/hw/mlx4/qp.c memcpy(&in6, sgid.raw, sizeof(in6)); sgid 74 drivers/infiniband/hw/ocrdma/ocrdma_ah.c struct rdma_ah_attr *attr, const union ib_gid *sgid, sgid 135 drivers/infiniband/hw/ocrdma/ocrdma_ah.c rdma_gid2ip((struct sockaddr *)&sgid_addr, sgid); sgid 141 drivers/infiniband/hw/ocrdma/ocrdma_ah.c memcpy(&grh.sgid[0], sgid->raw, sizeof(union ib_gid)); sgid 2529 drivers/infiniband/hw/ocrdma/ocrdma_hw.c memcpy(&cmd->params.sgid[0], &sgid_attr->gid.raw[0], sgid 2530 drivers/infiniband/hw/ocrdma/ocrdma_hw.c sizeof(cmd->params.sgid)); sgid 2544 drivers/infiniband/hw/ocrdma/ocrdma_hw.c memcpy(&cmd->params.sgid[0], sgid 2549 drivers/infiniband/hw/ocrdma/ocrdma_hw.c ocrdma_cpu_to_le32(&cmd->params.sgid[0], sizeof(cmd->params.sgid)); sgid 1195 drivers/infiniband/hw/ocrdma/ocrdma_sli.h u8 sgid[16]; sgid 1910 drivers/infiniband/hw/ocrdma/ocrdma_sli.h u8 sgid[16]; sgid 980 drivers/infiniband/hw/qedr/main.c union ib_gid *sgid = &dev->sgid_tbl[0]; sgid 994 drivers/infiniband/hw/qedr/main.c sgid->global.subnet_prefix = cpu_to_be64(0xfe80000000000000LL); sgid 995 drivers/infiniband/hw/qedr/main.c memcpy(&sgid->raw[8], guid, sizeof(guid)); sgid 80 drivers/infiniband/hw/qedr/verbs.c int index, union ib_gid *sgid) sgid 84 drivers/infiniband/hw/qedr/verbs.c memset(sgid->raw, 0, sizeof(sgid->raw)); sgid 85 drivers/infiniband/hw/qedr/verbs.c ether_addr_copy(sgid->raw, dev->ndev->dev_addr); sgid 88 drivers/infiniband/hw/qedr/verbs.c sgid->global.interface_id, sgid->global.subnet_prefix); sgid 1029 drivers/infiniband/hw/qedr/verbs.c memcpy(&qp_params->sgid.bytes[0], &gid_attr->gid.raw[0], sgid 1030 drivers/infiniband/hw/qedr/verbs.c sizeof(qp_params->sgid)); sgid 1039 drivers/infiniband/hw/qedr/verbs.c memcpy(&qp_params->sgid.bytes[0], &gid_attr->gid.raw[0], sgid 1040 drivers/infiniband/hw/qedr/verbs.c sizeof(qp_params->sgid)); sgid 1047 drivers/infiniband/hw/qedr/verbs.c memset(&qp_params->sgid, 0, sizeof(qp_params->sgid)); sgid 1050 drivers/infiniband/hw/qedr/verbs.c qp_params->sgid.ipv4_addr = ipv4_addr; sgid 1061 drivers/infiniband/hw/qedr/verbs.c qp_params->sgid.dwords[i] = ntohl(qp_params->sgid.dwords[i]); sgid 2225 drivers/infiniband/hw/qedr/verbs.c qp_params.sgid.dwords[0], qp_params.sgid.dwords[1], sgid 2226 drivers/infiniband/hw/qedr/verbs.c qp_params.sgid.dwords[2], qp_params.sgid.dwords[3]); sgid 177 drivers/infiniband/hw/qib/qib_mad.h u8 sgid[16]; sgid 104 drivers/infiniband/hw/qib/qib_ruc.c if (!gid_ok(&hdr->u.l.grh.sgid, sgid 143 drivers/infiniband/hw/qib/qib_ruc.c if (!gid_ok(&hdr->u.l.grh.sgid, sgid 195 drivers/infiniband/hw/qib/qib_ruc.c hdr->sgid.global.subnet_prefix = ibp->rvp.gid_prefix; sgid 197 drivers/infiniband/hw/qib/qib_ruc.c hdr->sgid.global.interface_id = ppd_from_ibp(ibp)->guid; sgid 199 drivers/infiniband/hw/qib/qib_ruc.c hdr->sgid.global.interface_id = ibp->guids[grh->sgid_index - 1]; sgid 198 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.h union pvrdma_gid sgid; sgid 180 drivers/infiniband/ulp/ipoib/ipoib_ib.c union ib_gid *sgid; sgid 233 drivers/infiniband/ulp/ipoib/ipoib_ib.c sgid = &((struct ib_grh *)skb->data)->sgid; sgid 243 drivers/infiniband/ulp/ipoib/ipoib_ib.c sgid->global.interface_id != priv->local_gid.global.interface_id) sgid 870 drivers/infiniband/ulp/ipoib/ipoib_main.c path->pathrec.sgid = priv->local_gid; sgid 331 drivers/infiniband/ulp/srp/ib_srp.c ch->ib_cm.path.sgid = target->sgid; sgid 784 drivers/infiniband/ulp/srp/ib_srp.c ch->ib_cm.path.sgid.raw, ch->ib_cm.path.dgid.raw, sgid 926 drivers/infiniband/ulp/srp/ib_srp.c memcpy(ipi, &target->sgid.global.interface_id, 8); sgid 932 drivers/infiniband/ulp/srp/ib_srp.c memcpy(ipi + 8, &target->sgid.global.interface_id, 8); sgid 2681 drivers/infiniband/ulp/srp/ib_srp.c target->sgid.raw, sgid 3107 drivers/infiniband/ulp/srp/ib_srp.c return sprintf(buf, "%pI6\n", target->sgid.raw); sgid 3214 drivers/infiniband/ulp/srp/ib_srp.c static DEVICE_ATTR(sgid, S_IRUGO, show_sgid, NULL); sgid 3896 drivers/infiniband/ulp/srp/ib_srp.c ret = rdma_query_gid(ibdev, host->port, 0, &target->sgid); sgid 3989 drivers/infiniband/ulp/srp/ib_srp.c target->sgid.raw, &target->rdma_cm.dst); sgid 3997 drivers/infiniband/ulp/srp/ib_srp.c target->sgid.raw, sgid 217 drivers/infiniband/ulp/srp/ib_srp.h union ib_gid sgid; sgid 1373 drivers/net/ethernet/qlogic/qed/qed_rdma.c qp->sgid = params->sgid; sgid 140 drivers/net/ethernet/qlogic/qed/qed_rdma.h union qed_gid sgid; sgid 130 drivers/net/ethernet/qlogic/qed/qed_roce.c src_gid[3] = cpu_to_le32(qp->sgid.ipv4_addr); sgid 134 drivers/net/ethernet/qlogic/qed/qed_roce.c for (i = 0; i < ARRAY_SIZE(qp->sgid.dwords); i++) { sgid 135 drivers/net/ethernet/qlogic/qed/qed_roce.c src_gid[i] = cpu_to_le32(qp->sgid.dwords[i]); sgid 1096 fs/fuse/dir.c gid_eq(cred->sgid, fc->group_id) && sgid 199 fs/proc/array.c seq_put_decimal_ull(m, "\t", from_kgid_munged(user_ns, cred->sgid)); sgid 123 include/linux/cred.h kgid_t sgid; /* saved GID of the task */ sgid 384 include/linux/cred.h #define current_sgid() (current_cred_xxx(sgid)) sgid 379 include/linux/qed/qed_rdma_if.h union qed_gid sgid; sgid 411 include/linux/qed/qed_rdma_if.h union qed_gid sgid; sgid 710 include/linux/syscalls.h asmlinkage long sys_setresgid(gid_t rgid, gid_t egid, gid_t sgid); sgid 711 include/linux/syscalls.h asmlinkage long sys_getresgid(gid_t __user *rgid, gid_t __user *egid, gid_t __user *sgid); sgid 1168 include/linux/syscalls.h asmlinkage long sys_setresgid16(old_gid_t rgid, old_gid_t egid, old_gid_t sgid); sgid 1170 include/linux/syscalls.h old_gid_t __user *egid, old_gid_t __user *sgid); sgid 192 include/rdma/ib_sa.h union ib_gid sgid; sgid 256 include/rdma/ib_sa.h ib->sgid.global.interface_id sgid 276 include/rdma/ib_sa.h if ((ib_is_opa_gid(&ib->sgid)) || sgid 278 include/rdma/ib_sa.h slid = htonl(opa_get_lid_from_gid(&ib->sgid)); sgid 757 include/rdma/ib_verbs.h union ib_gid sgid; sgid 3408 include/rdma/ib_verbs.h union ib_gid *sgid, union ib_gid *dgid); sgid 426 include/rdma/rdma_cm.h void rdma_read_gids(struct rdma_cm_id *cm_id, union ib_gid *sgid, sgid 57 include/uapi/rdma/ib_user_sa.h __u8 sgid[16]; sgid 2150 kernel/audit.c from_kgid(&init_user_ns, cred->sgid), sgid 129 kernel/audit.h kgid_t gid, egid, sgid, fsgid; sgid 375 kernel/auditsc.c return audit_compare_gid(cred->sgid, name, f, ctx); sgid 412 kernel/auditsc.c return audit_gid_comparator(cred->gid, f->op, cred->sgid); sgid 417 kernel/auditsc.c return audit_gid_comparator(cred->egid, f->op, cred->sgid); sgid 422 kernel/auditsc.c return audit_gid_comparator(cred->sgid, f->op, cred->fsgid); sgid 508 kernel/auditsc.c result = audit_gid_comparator(cred->sgid, f->op, f->gid); sgid 50 kernel/cred.c .sgid = GLOBAL_ROOT_GID, sgid 502 kernel/cred.c !gid_eq(new->sgid, old->sgid) || sgid 822 kernel/cred.c from_kgid_munged(&init_user_ns, cred->sgid), sgid 326 kernel/ptrace.c gid_eq(caller_gid, tcred->sgid) && sgid 383 kernel/sys.c gid_eq(old->sgid, kegid) || sgid 392 kernel/sys.c new->sgid = new->egid; sgid 431 kernel/sys.c new->gid = new->egid = new->sgid = new->fsgid = kgid; sgid 432 kernel/sys.c else if (gid_eq(kgid, old->gid) || gid_eq(kgid, old->sgid)) sgid 713 kernel/sys.c long __sys_setresgid(gid_t rgid, gid_t egid, gid_t sgid) sgid 723 kernel/sys.c ksgid = make_kgid(ns, sgid); sgid 729 kernel/sys.c if ((sgid != (gid_t) -1) && !gid_valid(ksgid)) sgid 740 kernel/sys.c !gid_eq(krgid, old->egid) && !gid_eq(krgid, old->sgid)) sgid 743 kernel/sys.c !gid_eq(kegid, old->egid) && !gid_eq(kegid, old->sgid)) sgid 745 kernel/sys.c if (sgid != (gid_t) -1 && !gid_eq(ksgid, old->gid) && sgid 746 kernel/sys.c !gid_eq(ksgid, old->egid) && !gid_eq(ksgid, old->sgid)) sgid 754 kernel/sys.c if (sgid != (gid_t) -1) sgid 755 kernel/sys.c new->sgid = ksgid; sgid 765 kernel/sys.c SYSCALL_DEFINE3(setresgid, gid_t, rgid, gid_t, egid, gid_t, sgid) sgid 767 kernel/sys.c return __sys_setresgid(rgid, egid, sgid); sgid 774 kernel/sys.c gid_t rgid, egid, sgid; sgid 778 kernel/sys.c sgid = from_kgid_munged(cred->user_ns, cred->sgid); sgid 784 kernel/sys.c retval = put_user(sgid, sgidp); sgid 860 kernel/sys.c gid_eq(kgid, old->sgid) || gid_eq(kgid, old->fsgid) || sgid 1598 kernel/sys.c gid_eq(cred->gid, tcred->sgid) && sgid 81 kernel/uid16.c SYSCALL_DEFINE3(setresgid16, old_gid_t, rgid, old_gid_t, egid, old_gid_t, sgid) sgid 84 kernel/uid16.c low2highgid(sgid)); sgid 91 kernel/uid16.c old_gid_t rgid, egid, sgid; sgid 95 kernel/uid16.c sgid = high2lowgid(from_kgid_munged(cred->user_ns, cred->sgid)); sgid 99 kernel/uid16.c retval = put_user(sgid, sgidp); sgid 10 kernel/uid16.h long __sys_setresgid(gid_t rgid, gid_t egid, gid_t sgid); sgid 59 net/core/scm.c gid_eq(gid, cred->sgid)) || ns_capable(cred->user_ns, CAP_SETGID))) { sgid 724 net/rds/ib_cm.c __be64 lguid = cm_id->route.path_rec->sgid.global.interface_id; sgid 852 security/commoncap.c new->sgid = new->fsgid = new->egid; sgid 1674 security/keys/keyctl.c !gid_eq(pcred->sgid, mycred->egid)) sgid 928 security/keys/process_keys.c new-> sgid = old-> sgid;