Home
last modified time | relevance | path

Searched refs:uid (Results 1 – 25 of 613) sorted by relevance

12345678910>>...25

/linux/include/linux/
A Dhighuid.h47 #define high2lowuid(uid) ((uid) & ~0xFFFF ? (old_uid_t)overflowuid : (old_uid_t)(uid)) argument
53 #define low2highuid(uid) ((uid) == (old_uid_t)-1 ? (uid_t)-1 : (uid_t)(uid)) argument
56 #define __convert_uid(size, uid) \ argument
57 (size >= sizeof(uid) ? (uid) : high2lowuid(uid))
64 #define __convert_uid(size, uid) (uid) argument
70 #define SET_UID(var, uid) do { (var) = __convert_uid(sizeof(var), (uid)); } while (0) argument
92 #define fs_high2lowuid(uid) ((uid) & ~0xFFFF ? (uid16_t)fs_overflowuid : (uid16_t)(uid)) argument
A Duidgid.h34 static inline uid_t __kuid_val(kuid_t uid) in __kuid_val() argument
36 return uid.val; in __kuid_val()
44 static inline uid_t __kuid_val(kuid_t uid) in __kuid_val() argument
111 static inline bool uid_valid(kuid_t uid) in uid_valid() argument
113 return __kuid_val(uid) != (uid_t) -1; in uid_valid()
145 return KUIDT_INIT(uid); in make_kuid()
165 uid_t uid = from_kuid(to, kuid); in from_kuid_munged() local
166 if (uid == (uid_t)-1) in from_kuid_munged()
167 uid = overflowuid; in from_kuid_munged()
168 return uid; in from_kuid_munged()
[all …]
/linux/drivers/infiniband/hw/mlx5/
A Dcmd.c56 MLX5_SET(destroy_tir_in, in, uid, uid); in mlx5_cmd_destroy_tir()
66 MLX5_SET(destroy_tis_in, in, uid, uid); in mlx5_cmd_destroy_tis()
76 MLX5_SET(destroy_rqt_in, in, uid, uid); in mlx5_cmd_destroy_rqt()
89 MLX5_SET(alloc_transport_domain_in, in, uid, uid); in mlx5_cmd_alloc_transport_domain()
117 MLX5_SET(dealloc_pd_in, in, uid, uid); in mlx5_cmd_dealloc_pd()
129 MLX5_SET(attach_to_mcg_in, in, uid, uid); in mlx5_cmd_attach_mcg()
143 MLX5_SET(detach_from_mcg_in, in, uid, uid); in mlx5_cmd_detach_mcg()
156 MLX5_SET(alloc_xrcd_in, in, uid, uid); in mlx5_cmd_xrcd_alloc()
169 MLX5_SET(dealloc_xrcd_in, in, uid, uid); in mlx5_cmd_xrcd_dealloc()
217 MLX5_SET(alloc_uar_in, in, uid, uid); in mlx5_cmd_uar_alloc()
[all …]
A Dcmd.h44 int mlx5_cmd_dealloc_pd(struct mlx5_core_dev *dev, u32 pdn, u16 uid);
45 void mlx5_cmd_destroy_tir(struct mlx5_core_dev *dev, u32 tirn, u16 uid);
46 void mlx5_cmd_destroy_tis(struct mlx5_core_dev *dev, u32 tisn, u16 uid);
47 int mlx5_cmd_destroy_rqt(struct mlx5_core_dev *dev, u32 rqtn, u16 uid);
49 u16 uid);
51 u16 uid);
53 u32 qpn, u16 uid);
55 u32 qpn, u16 uid);
56 int mlx5_cmd_xrcd_alloc(struct mlx5_core_dev *dev, u32 *xrcdn, u16 uid);
60 int mlx5_cmd_uar_alloc(struct mlx5_core_dev *dev, u32 *uarn, u16 uid);
[all …]
A Dqpc.c209 MLX5_SET(destroy_dct_in, in, uid, qp->uid); in _mlx5_core_destroy_dct()
228 qp->uid = MLX5_GET(create_dct_in, in, uid); in mlx5_core_create_dct()
252 qp->uid = MLX5_GET(create_qp_in, in, uid); in mlx5_qpc_create_qp()
266 MLX5_SET(destroy_qp_in, din, uid, qp->uid); in mlx5_qpc_create_qp()
279 MLX5_SET(drain_dct_in, in, uid, qp->uid); in mlx5_core_drain_dct()
299 MLX5_SET(destroy_qp_in, in, uid, qp->uid); in mlx5_core_destroy_qp()
414 opt_param_mask, qpc, uid); in modify_qp_mbox_alloc()
557 MLX5_SET(destroy_rq_in, in, uid, uid); in destroy_rq_tracked()
571 rq->uid = MLX5_GET(create_rq_in, in, uid); in mlx5_core_create_rq_tracked()
599 MLX5_SET(destroy_sq_in, in, uid, uid); in destroy_sq_tracked()
[all …]
A Dsrq_cmd.c158 srq->uid = in->uid; in create_srq_cmd()
170 MLX5_SET(destroy_srq_in, in, uid, srq->uid); in destroy_srq_cmd()
184 MLX5_SET(arm_rq_in, in, uid, srq->uid); in arm_srq_cmd()
264 srq->uid = in->uid; in create_xrc_srq_cmd()
292 MLX5_SET(arm_xrc_srq_in, in, uid, srq->uid); in arm_xrc_srq_cmd()
377 srq->uid = in->uid; in create_rmp_cmd()
392 MLX5_SET(destroy_rmp_in, in, uid, srq->uid); in destroy_rmp_cmd()
424 MLX5_SET(modify_rmp_in, in, uid, srq->uid); in arm_rmp_cmd()
529 srq->uid = in->uid; in create_xrq_cmd()
541 MLX5_SET(destroy_xrq_in, in, uid, srq->uid); in destroy_xrq_cmd()
[all …]
/linux/drivers/platform/surface/aggregator/
A Dbus.c23 sdev->uid.domain, sdev->uid.category, sdev->uid.target, in modalias_show()
24 sdev->uid.instance, sdev->uid.function); in modalias_show()
39 sdev->uid.domain, sdev->uid.category, in ssam_device_uevent()
40 sdev->uid.target, sdev->uid.instance, in ssam_device_uevent()
41 sdev->uid.function); in ssam_device_uevent()
74 struct ssam_device_uid uid) in ssam_device_alloc() argument
87 sdev->uid = uid; in ssam_device_alloc()
90 sdev->uid.domain, sdev->uid.category, sdev->uid.target, in ssam_device_alloc()
91 sdev->uid.instance, sdev->uid.function); in ssam_device_alloc()
182 struct ssam_device_uid uid) in ssam_device_id_compatible() argument
[all …]
/linux/security/safesetid/
A Dlsm.c40 if (!uid_eq(rule->src_id.uid, src.uid)) in _setid_policy_lookup()
42 if (uid_eq(rule->dst_id.uid, dst.uid)) in _setid_policy_lookup()
119 if (setid_policy_lookup((kid_t){.uid = cred->uid}, INVALID_ID, UID) == SIDPOL_DEFAULT) in safesetid_security_capable()
126 __kuid_val(cred->uid)); in safesetid_security_capable()
140 __kuid_val(cred->uid)); in safesetid_security_capable()
159 if (uid_eq(new_id.uid, old->uid) || uid_eq(new_id.uid, old->euid) || in id_permitted_for_cred()
160 uid_eq(new_id.uid, old->suid)) in id_permitted_for_cred()
174 setid_policy_lookup((kid_t){.uid = old->uid}, new_id, new_type) != SIDPOL_CONSTRAINED; in id_permitted_for_cred()
179 __kuid_val(old->uid), __kuid_val(old->euid), in id_permitted_for_cred()
202 if (setid_policy_lookup((kid_t){.uid = old->uid}, INVALID_ID, UID) == SIDPOL_DEFAULT) in safesetid_task_fix_setuid()
[all …]
/linux/drivers/vdpa/mlx5/core/
A Dresources.c17 MLX5_SET(alloc_pd_in, in, uid, uid); in alloc_pd()
33 MLX5_SET(dealloc_pd_in, in, uid, uid); in dealloc_pd()
76 *uid = MLX5_GET(create_uctx_out, out, uid); in create_uctx()
86 if (!uid) in destroy_uctx()
90 MLX5_SET(destroy_uctx_in, in, uid, uid); in destroy_uctx()
101 MLX5_SET(create_tis_in, in, uid, mvdev->res.uid); in mlx5_vdpa_create_tis()
114 MLX5_SET(destroy_tis_in, in, uid, mvdev->res.uid); in mlx5_vdpa_destroy_tis()
136 MLX5_SET(modify_rqt_in, in, uid, mvdev->res.uid); in mlx5_vdpa_modify_rqt()
147 MLX5_SET(destroy_rqt_in, in, uid, mvdev->res.uid); in mlx5_vdpa_destroy_rqt()
170 MLX5_SET(destroy_tir_in, in, uid, mvdev->res.uid); in mlx5_vdpa_destroy_tir()
[all …]
/linux/drivers/s390/block/
A Ddasd_alias.c71 if (pos->uid.ssid == uid->ssid) in _find_lcu()
99 !strncmp(pos->uid.vduit, uid->vduit, sizeof(uid->vduit))) in _find_group()
112 memcpy(server->uid.vendor, uid->vendor, sizeof(uid->vendor)); in _allocate_server()
113 memcpy(server->uid.serial, uid->serial, sizeof(uid->serial)); in _allocate_server()
145 memcpy(lcu->uid.vendor, uid->vendor, sizeof(uid->vendor)); in _allocate_lcu()
146 memcpy(lcu->uid.serial, uid->serial, sizeof(uid->serial)); in _allocate_lcu()
147 lcu->uid.ssid = uid->ssid; in _allocate_lcu()
325 uid = private->uid; in _add_device_to_lcu()
337 memcpy(group->uid.vendor, uid.vendor, sizeof(uid.vendor)); in _add_device_to_lcu()
339 group->uid.ssid = uid.ssid; in _add_device_to_lcu()
[all …]
/linux/kernel/
A Duser.c81 #define __uidhashfn(uid) (((uid >> UIDHASH_BITS) + uid) & UIDHASH_MASK) argument
82 #define uidhashentry(uid) (uidhash_table + __uidhashfn((__kuid_val(uid)))) argument
101 .uid = GLOBAL_ROOT_UID,
123 if (uid_eq(user->uid, uid)) { in uid_hash_find()
167 struct user_struct *find_user(kuid_t uid) in find_user() argument
173 ret = uid_hash_find(uid, uidhashentry(uid)); in find_user()
189 struct user_struct *alloc_uid(kuid_t uid) in alloc_uid() argument
191 struct hlist_head *hashent = uidhashentry(uid); in alloc_uid()
195 up = uid_hash_find(uid, hashent); in alloc_uid()
203 new->uid = uid; in alloc_uid()
[all …]
A Ducount.c13 .uid = GLOBAL_ROOT_UID,
21 #define ucounts_hashfn(ns, uid) \ argument
22 hash_long((unsigned long)__kuid_val(uid) + (unsigned long)(ns), \
24 #define ucounts_hashentry(ns, uid) \ argument
25 (ucounts_hashtable + ucounts_hashfn(ns, uid))
139 if (uid_eq(ucounts->uid, uid) && (ucounts->ns == ns)) in find_ucounts()
170 struct hlist_head *hashent = ucounts_hashentry(ns, uid); in alloc_ucounts()
175 ucounts = find_ucounts(ns, uid, hashent); in alloc_ucounts()
184 new->uid = uid; in alloc_ucounts()
188 ucounts = find_ucounts(ns, uid, hashent); in alloc_ucounts()
[all …]
/linux/fs/9p/
A Dfid.c58 if (uid_eq(fid->uid, uid)) { in v9fs_fid_find_inode()
96 dentry, dentry, from_kuid(&init_user_ns, uid), in v9fs_fid_find()
101 ret = v9fs_fid_find_inode(d_inode(dentry), uid); in v9fs_fid_find()
109 if (any || uid_eq(fid->uid, uid)) { in v9fs_fid_find()
150 kuid_t uid, int any) in v9fs_fid_lookup_with_uid() argument
160 fid = v9fs_fid_find(dentry, uid, any); in v9fs_fid_lookup_with_uid()
170 fid = v9fs_fid_find(ds, uid, any); in v9fs_fid_lookup_with_uid()
272 kuid_t uid; in v9fs_fid_lookup() local
282 uid = current_fsuid(); in v9fs_fid_lookup()
287 uid = v9ses->uid; in v9fs_fid_lookup()
[all …]
/linux/drivers/hid/surface-hid/
A Dsurface_kbd.c40 rqst.target_category = shid->uid.category; in ssam_kbd_get_descriptor()
41 rqst.target_id = shid->uid.target; in ssam_kbd_get_descriptor()
43 rqst.instance_id = shid->uid.instance; in ssam_kbd_get_descriptor()
71 rqst.target_id = shid->uid.target; in ssam_kbd_set_caps_led()
73 rqst.instance_id = shid->uid.instance; in ssam_kbd_set_caps_led()
89 rqst.target_id = shid->uid.target; in ssam_kbd_get_feature_report()
91 rqst.instance_id = shid->uid.instance; in ssam_kbd_get_feature_report()
252 shid->uid.category = SSAM_SSH_TC_KBD; in surface_kbd_probe()
253 shid->uid.target = 2; in surface_kbd_probe()
254 shid->uid.instance = 0; in surface_kbd_probe()
[all …]
A Dsurface_hid.c59 rqst.target_category = shid->uid.category; in ssam_hid_get_descriptor()
60 rqst.target_id = shid->uid.target; in ssam_hid_get_descriptor()
62 rqst.instance_id = shid->uid.instance; in ssam_hid_get_descriptor()
124 rqst.target_category = shid->uid.category; in ssam_hid_set_raw_report()
125 rqst.target_id = shid->uid.target; in ssam_hid_set_raw_report()
126 rqst.instance_id = shid->uid.instance; in ssam_hid_set_raw_report()
142 rqst.target_category = shid->uid.category; in ssam_hid_get_raw_report()
143 rqst.target_id = shid->uid.target; in ssam_hid_get_raw_report()
144 rqst.instance_id = shid->uid.instance; in ssam_hid_get_raw_report()
208 shid->uid = sdev->uid; in surface_hid_probe()
[all …]
/linux/security/keys/
A Dpersistent.c58 uid, INVALID_GID, current_cred(), in key_create_persistent()
73 static long key_get_persistent(struct user_namespace *ns, kuid_t uid, in key_get_persistent() argument
86 index_key.desc_len = sprintf(buf, "_persistent.%u", from_kuid(ns, uid)); in key_get_persistent()
103 persistent_ref = key_create_persistent(ns, uid, &index_key); in key_get_persistent()
133 kuid_t uid; in keyctl_get_persistent() local
138 uid = current_uid(); in keyctl_get_persistent()
140 uid = make_kuid(ns, _uid); in keyctl_get_persistent()
141 if (!uid_valid(uid)) in keyctl_get_persistent()
147 if (!uid_eq(uid, current_uid()) && in keyctl_get_persistent()
148 !uid_eq(uid, current_euid()) && in keyctl_get_persistent()
[all …]
/linux/usr/
A Dgen_init_cpio.c104 unsigned int mode, uid_t uid, gid_t gid) in cpio_mkslink() argument
115 (long) uid, /* uid */ in cpio_mkslink()
139 int uid; in cpio_mkslink_line() local
153 uid_t uid, gid_t gid) in cpio_mkgeneric() argument
164 (long) uid, /* uid */ in cpio_mkgeneric()
210 int uid; in cpio_mkgeneric_line() local
220 rc = cpio_mkgeneric(name, mode, uid, gid); in cpio_mkgeneric_line()
258 (long) uid, /* uid */ in cpio_mknod()
278 int uid; in cpio_mknod_line() local
354 (long) uid, /* uid */ in cpio_mkfile()
[all …]
/linux/block/
A Dioprio.c44 if (!uid_eq(tcred->uid, cred->euid) && in set_task_ioprio()
45 !uid_eq(tcred->uid, cred->uid) && !capable(CAP_SYS_NICE)) { in set_task_ioprio()
105 kuid_t uid; in SYSCALL_DEFINE3() local
141 uid = make_kuid(current_user_ns(), who); in SYSCALL_DEFINE3()
142 if (!uid_valid(uid)) in SYSCALL_DEFINE3()
147 user = find_user(uid); in SYSCALL_DEFINE3()
153 if (!uid_eq(task_uid(p), uid) || in SYSCALL_DEFINE3()
204 kuid_t uid; in SYSCALL_DEFINE2() local
237 uid = make_kuid(current_user_ns(), who); in SYSCALL_DEFINE2()
241 user = find_user(uid); in SYSCALL_DEFINE2()
[all …]
/linux/ipc/
A Dcompat.c44 to->uid = v.uid; in get_compat_ipc64_perm()
56 to->uid = v.uid; in get_compat_ipc_perm()
65 to->uid = from->uid; in to_compat_ipc64_perm()
76 SET_UID(to->uid, from->uid); in to_compat_ipc_perm()
/linux/drivers/staging/greybus/Documentation/firmware/
A Dauthenticate.c18 struct cap_ioc_get_endpoint_uid uid; variable
54 ret = ioctl(fd, CAP_IOC_GET_ENDPOINT_UID, &uid); in main()
61 printf("UID received: 0x%llx\n", *(unsigned long long int *)(uid.uid)); in main()
78 memcpy(authenticate.uid, uid.uid, 8); in main()
/linux/arch/arm/mach-lpc32xx/
A Dcommon.c111 u32 uid[4]; in lpc32xx_check_uid() local
113 lpc32xx_get_uid(uid); in lpc32xx_check_uid()
116 uid[3], uid[2], uid[1], uid[0]); in lpc32xx_check_uid()
119 system_serial_low = uid[0]; in lpc32xx_check_uid()
120 system_serial_high = uid[1]; in lpc32xx_check_uid()
/linux/sound/pci/mixart/
A Dmixart_hwdep.c151 request.uid = (struct mixart_uid){0,0}; /* board num = 0 */ in mixart_enum_connectors()
172 pipe->uid_right_connector = connector->uid[k]; /* odd */ in mixart_enum_connectors()
181 request.uid = connector->uid[k]; in mixart_enum_connectors()
225 request.uid = connector->uid[k]; in mixart_enum_connectors()
261 request.uid = get_console_mgr; in mixart_enum_physio()
275 mgr->uid_console_manager = console_mgr.uid; in mixart_enum_physio()
278 request.uid = (struct mixart_uid){0,0}; in mixart_enum_physio()
279 request.data = &console_mgr.uid; in mixart_enum_physio()
280 request.size = sizeof(console_mgr.uid); in mixart_enum_physio()
295 mgr->chip[k]->uid_in_analog_physio = phys_io.uid[k]; in mixart_enum_physio()
[all …]
/linux/fs/quota/
A Dkqid.c19 return uid_eq(left.uid, right.uid); in qid_eq()
45 return uid_lt(left.uid, right.uid); in qid_lt()
72 return from_kuid(targ, kqid.uid); in from_kqid()
105 return from_kuid_munged(targ, kqid.uid); in from_kqid_munged()
124 return uid_valid(qid.uid); in qid_valid()
/linux/drivers/misc/
A Dad525x_dpot.c89 unsigned int uid; member
136 dpot->uid == DPOT_UID(AD5292_ID) || in dpot_read_spi()
137 dpot->uid == DPOT_UID(AD5293_ID)) { in dpot_read_spi()
145 if (dpot->uid == DPOT_UID(AD5291_ID)) in dpot_read_spi()
150 dpot->uid == DPOT_UID(AD5271_ID)) { in dpot_read_spi()
182 switch (dpot->uid) { in dpot_read_i2c()
219 if (dpot->uid == DPOT_UID(AD5274_ID)) in dpot_read_i2c()
309 dpot->uid == DPOT_UID(AD5292_ID)) { in dpot_write_spi()
313 dpot->uid == DPOT_UID(AD5271_ID)) { in dpot_write_spi()
333 switch (dpot->uid) { in dpot_write_i2c()
[all …]
/linux/include/linux/surface_aggregator/
A Ddevice.h161 struct ssam_device_uid uid; member
231 const struct ssam_device_uid uid);
238 struct ssam_device_uid uid);
352 return __raw_##name(sdev->ctrl, sdev->uid.target, \
353 sdev->uid.instance); \
386 return __raw_##name(sdev->ctrl, sdev->uid.target, \
387 sdev->uid.instance, arg); \
420 return __raw_##name(sdev->ctrl, sdev->uid.target, \
421 sdev->uid.instance, ret); \

Completed in 35 milliseconds

12345678910>>...25