Home
last modified time | relevance | path

Searched refs:gid (Results 1 – 25 of 301) sorted by relevance

12345678910>>...13

/linux-2.6.39/include/linux/
Dhighuid.h47 #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
Duser_namespace.h40 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()
/linux-2.6.39/include/rdma/
Dib_addr.h123 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 …]
Dib_cache.h53 union ib_gid *gid);
68 union ib_gid *gid,
/linux-2.6.39/drivers/infiniband/hw/mthca/
Dmthca_mcg.c42 u8 gid[16]; member
64 u8 *gid, struct mthca_mailbox *mgm_mailbox, in find_mgm() argument
78 memcpy(mgid, gid, 16); in find_mgm()
90 mthca_dbg(dev, "Hash for %pI6 is %04x\n", gid, *hash); in find_mgm()
105 if (!memcmp(mgm->gid, zero_gid, 16)) { in find_mgm()
113 if (!memcmp(mgm->gid, gid, 16)) in find_mgm()
127 int mthca_multicast_attach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) in mthca_multicast_attach() argument
146 err = find_mgm(dev, gid->raw, mailbox, &hash, &prev, &index); in mthca_multicast_attach()
151 if (!memcmp(mgm->gid, zero_gid, 16)) in mthca_multicast_attach()
152 memcpy(mgm->gid, gid->raw, 16); in mthca_multicast_attach()
[all …]
/linux-2.6.39/usr/
Dgen_init_cpio.c102 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
165 (long) gid, /* gid */ in cpio_mkgeneric()
211 int gid; in cpio_mkgeneric_line() local
214 if (4 != sscanf(line, "%" str(PATH_MAX) "s %o %d %d", name, &mode, &uid, &gid)) { in cpio_mkgeneric_line()
220 rc = cpio_mkgeneric(name, mode, uid, gid); in cpio_mkgeneric_line()
[all …]
/linux-2.6.39/drivers/infiniband/hw/ehca/
Dehca_mcast.c55 #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()
Dehca_av.c130 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-2.6.39/fs/nfsd/
Dauth.h12 #define nfsd_lgid(rq, gid) ((u32)(gid)) argument
14 #define nfsd_rgid(rq, gid) ((u32)(gid)) argument
/linux-2.6.39/drivers/misc/sgi-gru/
Dgruprocfs.c178 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 …]
Dgrutables.h511 #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)++)
Dgrutlbpurge.c165 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-2.6.39/scripts/
Dgen_initramfs_list.sh18 $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-2.6.39/drivers/net/mlx4/
Dmcg.c553 u8 *gid, enum mlx4_protocol prot, in find_entry() argument
569 memcpy(mgid, gid, 16); in find_entry()
577 mlx4_dbg(dev, "Hash for %pI6 is %04x\n", gid, *hash); in find_entry()
595 if (!memcmp(mgm->gid, gid, 16) && in find_entry()
607 int mlx4_qp_attach_common(struct mlx4_dev *dev, struct mlx4_qp *qp, u8 gid[16], in mlx4_qp_attach_common()
620 u8 port = gid[5]; in mlx4_qp_attach_common()
629 err = find_entry(dev, port, gid, prot, steer, in mlx4_qp_attach_common()
637 memcpy(mgm->gid, gid, 16); in mlx4_qp_attach_common()
651 memcpy(mgm->gid, gid, 16); in mlx4_qp_attach_common()
716 int mlx4_qp_detach_common(struct mlx4_dev *dev, struct mlx4_qp *qp, u8 gid[16], in mlx4_qp_detach_common()
[all …]
Dport.c97 u8 gid[16] = {0}; in mlx4_uc_steer_add() local
111 memcpy(&gid[10], &mac, ETH_ALEN); in mlx4_uc_steer_add()
112 gid[5] = port; in mlx4_uc_steer_add()
113 gid[7] = MLX4_UC_STEER << 1; in mlx4_uc_steer_add()
115 err = mlx4_qp_attach_common(dev, &qp, gid, 0, in mlx4_uc_steer_add()
127 u8 gid[16] = {0}; in mlx4_uc_steer_release() local
132 memcpy(&gid[10], &mac, ETH_ALEN); in mlx4_uc_steer_release()
133 gid[5] = port; in mlx4_uc_steer_release()
134 gid[7] = MLX4_UC_STEER << 1; in mlx4_uc_steer_release()
136 mlx4_qp_detach_common(dev, &qp, gid, MLX4_PROT_ETH, MLX4_UC_STEER); in mlx4_uc_steer_release()
/linux-2.6.39/arch/s390/kernel/
Dcompat_linux.c86 #define high2lowgid(gid) ((gid) > 65535) ? (u16)overflowgid : (u16)(gid) argument
88 #define low2highgid(gid) ((gid) == (u16)-1) ? (gid_t)-1 : (gid_t)(gid) argument
90 #define SET_GID16(var, gid) var = high2lowgid(gid) argument
92 #define NEW_TO_OLD_GID(gid) high2lowgid(gid) argument
94 #define SET_OLDSTAT_GID(stat, gid) (stat).st_gid = high2lowgid(gid) argument
96 #define SET_STAT_GID(stat, gid) (stat).st_gid = high2lowgid(gid) argument
118 asmlinkage long sys32_setgid16(u16 gid) in sys32_setgid16() argument
120 return sys_setgid((gid_t)gid); in sys32_setgid16()
160 if (!(retval = put_user(high2lowgid(current->cred->gid), rgid)) && in sys32_getresgid16()
172 asmlinkage long sys32_setfsgid16(u16 gid) in sys32_setfsgid16() argument
[all …]
/linux-2.6.39/fs/gfs2/
Dquota.h18 extern int gfs2_quota_hold(struct gfs2_inode *ip, u32 uid, u32 gid);
21 extern int gfs2_quota_lock(struct gfs2_inode *ip, u32 uid, u32 gid);
24 extern int gfs2_quota_check(struct gfs2_inode *ip, u32 uid, u32 gid);
26 u32 uid, u32 gid);
/linux-2.6.39/net/sunrpc/
Dauth_generic.c48 .gid = RPC_MACHINE_CRED_GROUPID, in rpc_lookup_machine_cred()
88 gcred->acred.gid = acred->gid; in generic_create_cred()
96 gcred, acred->uid, acred->gid); in generic_create_cred()
134 gcred->acred.gid != acred->gid || in generic_match()
/linux-2.6.39/kernel/
Duid16.c51 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()
Dsys.c524 if (old->gid == rgid || in SYSCALL_DEFINE2()
527 new->gid = rgid; in SYSCALL_DEFINE2()
532 if (old->gid == egid || in SYSCALL_DEFINE2()
542 (egid != (gid_t) -1 && egid != old->gid)) in SYSCALL_DEFINE2()
558 SYSCALL_DEFINE1(setgid, gid_t, gid) in SYSCALL_DEFINE1() argument
571 new->gid = new->egid = new->sgid = new->fsgid = gid; in SYSCALL_DEFINE1()
572 else if (gid == old->gid || gid == old->sgid) in SYSCALL_DEFINE1()
573 new->egid = new->fsgid = gid; in SYSCALL_DEFINE1()
801 if (rgid != (gid_t) -1 && rgid != old->gid && in SYSCALL_DEFINE3()
804 if (egid != (gid_t) -1 && egid != old->gid && in SYSCALL_DEFINE3()
[all …]
/linux-2.6.39/arch/x86/tools/
Dgen-insn-attr-x86.awk21 gid = -1 # group id
144 gid = group[$2]
145 tname = "inat_group_table_" gid
160 if (gid != -1) {
165 gtable[gid,0] = tname
170 gtable[gid,1] = tname "_1"
175 gtable[gid,2] = tname "_2"
180 gtable[gid,3] = tname "_3"
/linux-2.6.39/drivers/infiniband/hw/mlx4/
Dmain.c288 union ib_gid *gid) in __mlx4_ib_query_gid() argument
307 memcpy(gid->raw, out_mad->data + 8, 8); in __mlx4_ib_query_gid()
317 memcpy(gid->raw + 8, out_mad->data + (index % 8) * 8, 8); in __mlx4_ib_query_gid()
326 union ib_gid *gid) in iboe_query_gid() argument
330 *gid = dev->iboe.gid_table[port - 1][index]; in iboe_query_gid()
336 union ib_gid *gid) in mlx4_ib_query_gid() argument
339 return __mlx4_ib_query_gid(ibdev, port, index, gid); in mlx4_ib_query_gid()
341 return iboe_query_gid(ibdev, port, index, gid); in mlx4_ib_query_gid()
569 static int add_gid_entry(struct ib_qp *ibqp, union ib_gid *gid) in add_gid_entry() argument
579 ge->gid = *gid; in add_gid_entry()
[all …]
/linux-2.6.39/drivers/isdn/capi/
Dcapifs.c38 gid_t gid; member
49 gid_t gid = 0; in capifs_remount() local
65 gid = n; in capifs_remount()
81 config.gid = gid; in capifs_remount()
174 inode->i_gid = config.setgid ? config.gid : current_fsgid(); in new_ncci()
/linux-2.6.39/security/keys/
Dpermission.c50 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-2.6.39/include/net/9p/
Dclient.h227 int p9_client_symlink(struct p9_fid *fid, char *name, char *symname, gid_t gid,
230 gid_t gid, struct p9_qid *qid);
249 dev_t rdev, gid_t gid, struct p9_qid *);
251 gid_t gid, struct p9_qid *);

12345678910>>...13