/linux-3.4.99/include/linux/ |
D | highuid.h | 47 #define high2lowgid(gid) ((gid) & ~0xFFFF ? (old_gid_t)overflowgid : (old_gid_t)(gid)) argument 53 #define low2highgid(gid) ((gid) == (old_gid_t)-1 ? (gid_t)-1 : (gid_t)(gid)) argument 57 #define __convert_gid(size, gid) \ argument 58 (size >= sizeof(gid) ? (gid) : high2lowgid(gid)) 64 #define __convert_gid(size, gid) (gid) argument 70 #define SET_GID(var, gid) do { (var) = __convert_gid(sizeof(var), (gid)); } while (0) argument 92 #define fs_high2lowgid(gid) ((gid) & ~0xFFFF ? (gid16_t)fs_overflowgid : (gid16_t)(gid)) argument
|
D | user_namespace.h | 40 gid_t user_ns_map_gid(struct user_namespace *to, const struct cred *cred, gid_t gid); 64 const struct cred *cred, gid_t gid) in user_ns_map_gid() argument 66 return gid; in user_ns_map_gid()
|
D | ncp_mount.h | 39 __kernel_gid_t gid; member 63 unsigned long gid; member
|
/linux-3.4.99/include/rdma/ |
D | ib_addr.h | 123 union ib_gid *gid) in ib_addr_get_mgid() argument 125 memcpy(gid, dev_addr->broadcast + 4, sizeof *gid); in ib_addr_get_mgid() 133 static inline void iboe_mac_vlan_to_ll(union ib_gid *gid, u8 *mac, u16 vid) in iboe_mac_vlan_to_ll() argument 135 memset(gid->raw, 0, 16); in iboe_mac_vlan_to_ll() 136 *((__be32 *) gid->raw) = cpu_to_be32(0xfe800000); in iboe_mac_vlan_to_ll() 138 gid->raw[12] = vid & 0xff; in iboe_mac_vlan_to_ll() 139 gid->raw[11] = vid >> 8; in iboe_mac_vlan_to_ll() 141 gid->raw[12] = 0xfe; in iboe_mac_vlan_to_ll() 142 gid->raw[11] = 0xff; in iboe_mac_vlan_to_ll() 144 memcpy(gid->raw + 13, mac + 3, 3); in iboe_mac_vlan_to_ll() [all …]
|
D | ib_cache.h | 53 union ib_gid *gid); 68 union ib_gid *gid,
|
/linux-3.4.99/drivers/infiniband/hw/mthca/ |
D | mthca_mcg.c | 42 u8 gid[16]; member 64 u8 *gid, struct mthca_mailbox *mgm_mailbox, in find_mgm() argument 77 memcpy(mgid, gid, 16); in find_mgm() 86 mthca_dbg(dev, "Hash for %pI6 is %04x\n", gid, *hash); in find_mgm() 98 if (!memcmp(mgm->gid, zero_gid, 16)) { in find_mgm() 106 if (!memcmp(mgm->gid, gid, 16)) in find_mgm() 120 int mthca_multicast_attach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) in mthca_multicast_attach() argument 138 err = find_mgm(dev, gid->raw, mailbox, &hash, &prev, &index); in mthca_multicast_attach() 143 if (!memcmp(mgm->gid, zero_gid, 16)) in mthca_multicast_attach() 144 memcpy(mgm->gid, gid->raw, 16); in mthca_multicast_attach() [all …]
|
/linux-3.4.99/usr/ |
D | gen_init_cpio.c | 103 unsigned int mode, uid_t uid, gid_t gid) in cpio_mkslink() argument 115 (long) gid, /* gid */ in cpio_mkslink() 139 int gid; in cpio_mkslink_line() local 142 …scanf(line, "%" str(PATH_MAX) "s %" str(PATH_MAX) "s %o %d %d", name, target, &mode, &uid, &gid)) { in cpio_mkslink_line() 146 rc = cpio_mkslink(name, target, mode, uid, gid); in cpio_mkslink_line() 152 uid_t uid, gid_t gid) in cpio_mkgeneric() argument 164 (long) gid, /* gid */ in cpio_mkgeneric() 210 int gid; in cpio_mkgeneric_line() local 213 if (4 != sscanf(line, "%" str(PATH_MAX) "s %o %d %d", name, &mode, &uid, &gid)) { in cpio_mkgeneric_line() 219 rc = cpio_mkgeneric(name, mode, uid, gid); in cpio_mkgeneric_line() [all …]
|
/linux-3.4.99/drivers/infiniband/hw/ehca/ |
D | ehca_mcast.c | 55 #define EHCA_VALID_MULTICAST_GID(gid) ((gid)[0] == 0xFF) argument 59 int ehca_attach_mcast(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) in ehca_attach_mcast() argument 72 if (!(EHCA_VALID_MULTICAST_GID(gid->raw))) { in ehca_attach_mcast() 80 memcpy(&my_gid.raw, gid->raw, sizeof(union ib_gid)); in ehca_attach_mcast() 96 int ehca_detach_mcast(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) in ehca_detach_mcast() argument 109 if (!(EHCA_VALID_MULTICAST_GID(gid->raw))) { in ehca_detach_mcast() 117 memcpy(&my_gid.raw, gid->raw, sizeof(union ib_gid)); in ehca_detach_mcast()
|
D | ehca_av.c | 130 union ib_gid gid; in ehca_create_ah() local 141 memset(&gid, 0, sizeof(gid)); in ehca_create_ah() 144 ah_attr->grh.sgid_index, &gid); in ehca_create_ah() 152 memcpy(&av->av.grh.word_1, &gid, sizeof(gid)); in ehca_create_ah() 194 union ib_gid gid; in ehca_modify_ah() local 205 memset(&gid, 0, sizeof(gid)); in ehca_modify_ah() 208 ah_attr->grh.sgid_index, &gid); in ehca_modify_ah() 218 memcpy(&new_ehca_av.grh.word_1, &gid, sizeof(gid)); in ehca_modify_ah()
|
/linux-3.4.99/drivers/net/ethernet/mellanox/mlx4/ |
D | mcg.c | 51 u8 gid[16]; member 564 u8 *gid, enum mlx4_protocol prot, in find_entry() argument 581 memcpy(mgid, gid, 16); in find_entry() 589 mlx4_dbg(dev, "Hash for %pI6 is %04x\n", gid, hash); in find_entry() 607 if (!memcmp(mgm->gid, gid, 16) && in find_entry() 619 int mlx4_qp_attach_common(struct mlx4_dev *dev, struct mlx4_qp *qp, u8 gid[16], in mlx4_qp_attach_common() 631 u8 port = gid[5]; in mlx4_qp_attach_common() 640 err = find_entry(dev, port, gid, prot, in mlx4_qp_attach_common() 648 memcpy(mgm->gid, gid, 16); in mlx4_qp_attach_common() 663 memcpy(mgm->gid, gid, 16); in mlx4_qp_attach_common() [all …]
|
/linux-3.4.99/fs/nfsd/ |
D | auth.h | 12 #define nfsd_lgid(rq, gid) ((u32)(gid)) argument 14 #define nfsd_rgid(rq, gid) ((u32)(gid)) argument
|
/linux-3.4.99/drivers/misc/sgi-gru/ |
D | gruprocfs.c | 178 long gid = *(long *)data; in cch_seq_show() local 180 struct gru_state *gru = GID_TO_GRU(gid); in cch_seq_show() 184 if (gid == 0) in cch_seq_show() 194 is_kernel_context(ts) ? 0 : ts->ts_gms->ms_asids[gid].mt_asid, in cch_seq_show() 207 long gid = *(long *)data, ctxfree, cbrfree, dsrfree; in gru_seq_show() local 208 struct gru_state *gru = GID_TO_GRU(gid); in gru_seq_show() 210 if (gid == 0) { in gru_seq_show() 233 static void *seq_start(struct seq_file *file, loff_t *gid) in seq_start() argument 235 if (*gid < gru_max_gids) in seq_start() 236 return gid; in seq_start() [all …]
|
D | grutables.h | 511 #define GID_TO_GRU(gid) \ argument 512 (gru_base[(gid) / GRU_CHIPLETS_PER_BLADE] ? \ 513 (&gru_base[(gid) / GRU_CHIPLETS_PER_BLADE]-> \ 514 bs_grus[(gid) % GRU_CHIPLETS_PER_BLADE]) : \ 518 #define for_each_gru_in_bitmap(gid, map) \ argument 519 for_each_set_bit((gid), (map), GRU_MAX_GRUS) 528 #define foreach_gid(gid) \ argument 529 for ((gid) = 0; (gid) < gru_max_gids; (gid)++)
|
D | grutlbpurge.c | 165 int grupagesize, pagesize, pageshift, gid, asid; in gru_flush_tlb_range() local 178 for_each_gru_in_bitmap(gid, gms->ms_asidmap) { in gru_flush_tlb_range() 180 gru = GID_TO_GRU(gid); in gru_flush_tlb_range() 181 asids = gms->ms_asids + gid; in gru_flush_tlb_range() 188 gid, asid, start, grupagesize, num, asids->mt_ctxbitmap); in gru_flush_tlb_range() 199 gid, asid, asids->mt_ctxbitmap, in gru_flush_tlb_range()
|
/linux-3.4.99/net/sunrpc/ |
D | auth_generic.c | 48 .gid = RPC_MACHINE_CRED_GROUPID, in rpc_lookup_machine_cred() 90 gcred->acred.gid = acred->gid; in generic_create_cred() 99 gcred, acred->uid, acred->gid); in generic_create_cred() 133 gcred->acred.gid != acred->gid) in machine_cred_match() 151 gcred->acred.gid != acred->gid || in generic_match()
|
/linux-3.4.99/scripts/ |
D | gen_initramfs_list.sh | 18 $0 [-o <file>] [-u <uid>] [-g <gid>] {-d | <cpio_source>} ... 24 -g <gid> Group ID to map to group ID 0 (root). 25 <gid> is only meaningful if <cpio_source> is a 26 directory. "squash" forces all files to gid 0. 113 local gid="$4" 117 [ "$root_gid" = "squash" ] && gid=0 || [ "$gid" -eq "$root_gid" ] && gid=0 118 local str="${mode} ${uid} ${gid}"
|
/linux-3.4.99/arch/s390/kernel/ |
D | compat_linux.c | 83 #define high2lowgid(gid) ((gid) > 65535) ? (u16)overflowgid : (u16)(gid) argument 85 #define low2highgid(gid) ((gid) == (u16)-1) ? (gid_t)-1 : (gid_t)(gid) argument 87 #define SET_GID16(var, gid) var = high2lowgid(gid) argument 89 #define NEW_TO_OLD_GID(gid) high2lowgid(gid) argument 91 #define SET_OLDSTAT_GID(stat, gid) (stat).st_gid = high2lowgid(gid) argument 93 #define SET_STAT_GID(stat, gid) (stat).st_gid = high2lowgid(gid) argument 115 asmlinkage long sys32_setgid16(u16 gid) in sys32_setgid16() argument 117 return sys_setgid((gid_t)gid); in sys32_setgid16() 157 if (!(retval = put_user(high2lowgid(current->cred->gid), rgid)) && in sys32_getresgid16() 169 asmlinkage long sys32_setfsgid16(u16 gid) in sys32_setfsgid16() argument [all …]
|
/linux-3.4.99/fs/gfs2/ |
D | quota.h | 19 extern int gfs2_quota_hold(struct gfs2_inode *ip, u32 uid, u32 gid); 22 extern int gfs2_quota_lock(struct gfs2_inode *ip, u32 uid, u32 gid); 25 extern int gfs2_quota_check(struct gfs2_inode *ip, u32 uid, u32 gid); 27 u32 uid, u32 gid);
|
/linux-3.4.99/kernel/ |
D | uid16.c | 51 SYSCALL_DEFINE1(setgid16, old_gid_t, gid) in SYSCALL_DEFINE1() argument 53 long ret = sys_setgid(low2highgid(gid)); in SYSCALL_DEFINE1() 55 asmlinkage_protect(1, ret, gid); in SYSCALL_DEFINE1() 111 if (!(retval = put_user(high2lowgid(cred->gid), rgid)) && in SYSCALL_DEFINE3() 126 SYSCALL_DEFINE1(setfsgid16, old_gid_t, gid) in SYSCALL_DEFINE1() argument 128 long ret = sys_setfsgid(low2highgid(gid)); in SYSCALL_DEFINE1() 130 asmlinkage_protect(1, ret, gid); in SYSCALL_DEFINE1()
|
D | sys.c | 592 if (old->gid == rgid || in SYSCALL_DEFINE2() 595 new->gid = rgid; in SYSCALL_DEFINE2() 600 if (old->gid == egid || in SYSCALL_DEFINE2() 610 (egid != (gid_t) -1 && egid != old->gid)) in SYSCALL_DEFINE2() 626 SYSCALL_DEFINE1(setgid, gid_t, gid) in SYSCALL_DEFINE1() argument 639 new->gid = new->egid = new->sgid = new->fsgid = gid; in SYSCALL_DEFINE1() 640 else if (gid == old->gid || gid == old->sgid) in SYSCALL_DEFINE1() 641 new->egid = new->fsgid = gid; in SYSCALL_DEFINE1() 876 if (rgid != (gid_t) -1 && rgid != old->gid && in SYSCALL_DEFINE3() 879 if (egid != (gid_t) -1 && egid != old->gid && in SYSCALL_DEFINE3() [all …]
|
/linux-3.4.99/arch/x86/tools/ |
D | gen-insn-attr-x86.awk | 21 gid = -1 # group id 149 gid = group[$2] 150 tname = "inat_group_table_" gid 165 if (gid != -1) { 170 gtable[gid,0] = tname 175 gtable[gid,1] = tname "_1" 180 gtable[gid,2] = tname "_2" 185 gtable[gid,3] = tname "_3"
|
/linux-3.4.99/drivers/infiniband/hw/mlx4/ |
D | main.c | 338 union ib_gid *gid) in __mlx4_ib_query_gid() argument 357 memcpy(gid->raw, out_mad->data + 8, 8); in __mlx4_ib_query_gid() 367 memcpy(gid->raw + 8, out_mad->data + (index % 8) * 8, 8); in __mlx4_ib_query_gid() 376 union ib_gid *gid) in iboe_query_gid() argument 380 *gid = dev->iboe.gid_table[port - 1][index]; in iboe_query_gid() 386 union ib_gid *gid) in mlx4_ib_query_gid() argument 389 return __mlx4_ib_query_gid(ibdev, port, index, gid); in mlx4_ib_query_gid() 391 return iboe_query_gid(ibdev, port, index, gid); in mlx4_ib_query_gid() 670 static int add_gid_entry(struct ib_qp *ibqp, union ib_gid *gid) in add_gid_entry() argument 680 ge->gid = *gid; in add_gid_entry() [all …]
|
/linux-3.4.99/security/keys/ |
D | permission.c | 50 if (key->gid != -1 && key->perm & KEY_GRP_ALL) { in key_task_permission() 51 if (key->gid == cred->fsgid) { in key_task_permission() 56 ret = groups_search(cred->group_info, key->gid); in key_task_permission()
|
/linux-3.4.99/net/core/ |
D | scm.c | 52 ((creds->gid == cred->gid || creds->gid == cred->egid || in scm_check_creds() 53 creds->gid == cred->sgid) || capable(CAP_SETGID))) { in scm_check_creds() 187 (p->cred->egid != p->creds.gid)) { in __scm_send() 195 cred->gid = cred->egid = p->creds.gid; in __scm_send()
|
/linux-3.4.99/include/net/9p/ |
D | client.h | 230 int p9_client_symlink(struct p9_fid *fid, char *name, char *symname, gid_t gid, 233 gid_t gid, struct p9_qid *qid); 253 dev_t rdev, gid_t gid, struct p9_qid *); 255 gid_t gid, struct p9_qid *);
|