perm             1273 arch/powerpc/kvm/book3s_hv_nested.c 	unsigned long n_gpa, gpa, gfn, perm = 0UL;
perm             1388 arch/powerpc/kvm/book3s_hv_nested.c 	perm |= gpte.may_read ? 0UL : _PAGE_READ;
perm             1389 arch/powerpc/kvm/book3s_hv_nested.c 	perm |= gpte.may_write ? 0UL : _PAGE_WRITE;
perm             1390 arch/powerpc/kvm/book3s_hv_nested.c 	perm |= gpte.may_execute ? 0UL : _PAGE_EXEC;
perm             1392 arch/powerpc/kvm/book3s_hv_nested.c 	perm |= (gpte.rc & _PAGE_ACCESSED) ? 0UL : _PAGE_ACCESSED;
perm             1393 arch/powerpc/kvm/book3s_hv_nested.c 	perm |= ((gpte.rc & _PAGE_DIRTY) && writing) ? 0UL : _PAGE_DIRTY;
perm             1394 arch/powerpc/kvm/book3s_hv_nested.c 	pte = __pte(pte_val(pte) & ~perm);
perm             1277 arch/powerpc/kvm/book3s_hv_rm_mmu.c 		unsigned int perm = hpte_get_skey_perm(gr, vcpu->arch.amr);
perm             1279 arch/powerpc/kvm/book3s_hv_rm_mmu.c 			perm >>= 1;
perm             1280 arch/powerpc/kvm/book3s_hv_rm_mmu.c 		if (perm & 1)
perm             1089 arch/powerpc/lib/sstep.c 	unsigned char perm, idx;
perm             1092 arch/powerpc/lib/sstep.c 	perm = 0;
perm             1097 arch/powerpc/lib/sstep.c 				perm |= 1 << i;
perm             1099 arch/powerpc/lib/sstep.c 	op->val = perm;
perm              149 arch/powerpc/platforms/powernv/opal-sysparam.c 	u8 *perm;
perm              202 arch/powerpc/platforms/powernv/opal-sysparam.c 	perm = kcalloc(count, sizeof(*perm), GFP_KERNEL);
perm              203 arch/powerpc/platforms/powernv/opal-sysparam.c 	if (!perm) {
perm              220 arch/powerpc/platforms/powernv/opal-sysparam.c 	if (of_property_read_u8_array(sysparam, "param-perm", perm, count)) {
perm              248 arch/powerpc/platforms/powernv/opal-sysparam.c 		switch (perm[i] & 3) {
perm              272 arch/powerpc/platforms/powernv/opal-sysparam.c 	kfree(perm);
perm              281 arch/powerpc/platforms/powernv/opal-sysparam.c 	kfree(perm);
perm             3173 arch/sparc/include/asm/hypervisor.h 			      unsigned long *perm);
perm               55 arch/sparc/mm/iommu.c #define MKIOPTE(pfn, perm) (((((pfn)<<8) & IOPTE_PAGE) | (perm)) & ~IOPTE_WAZ)
perm              649 arch/x86/kernel/cpu/mce/inject.c 	umode_t perm;
perm              651 arch/x86/kernel/cpu/mce/inject.c 	{ .name = "status",	.fops = &status_fops, .perm = S_IRUSR | S_IWUSR },
perm              652 arch/x86/kernel/cpu/mce/inject.c 	{ .name = "misc",	.fops = &misc_fops,   .perm = S_IRUSR | S_IWUSR },
perm              653 arch/x86/kernel/cpu/mce/inject.c 	{ .name = "addr",	.fops = &addr_fops,   .perm = S_IRUSR | S_IWUSR },
perm              654 arch/x86/kernel/cpu/mce/inject.c 	{ .name = "synd",	.fops = &synd_fops,   .perm = S_IRUSR | S_IWUSR },
perm              655 arch/x86/kernel/cpu/mce/inject.c 	{ .name = "bank",	.fops = &bank_fops,   .perm = S_IRUSR | S_IWUSR },
perm              656 arch/x86/kernel/cpu/mce/inject.c 	{ .name = "flags",	.fops = &flags_fops,  .perm = S_IRUSR | S_IWUSR },
perm              657 arch/x86/kernel/cpu/mce/inject.c 	{ .name = "cpu",	.fops = &extcpu_fops, .perm = S_IRUSR | S_IWUSR },
perm              658 arch/x86/kernel/cpu/mce/inject.c 	{ .name = "README",	.fops = &readme_fops, .perm = S_IRUSR | S_IRGRP | S_IROTH },
perm              668 arch/x86/kernel/cpu/mce/inject.c 		debugfs_create_file(dfs_fls[i].name, dfs_fls[i].perm, dfs_inj,
perm             2977 arch/x86/kvm/emulate.c 	u16 tr, io_bitmap_ptr, perm, bit_idx = port & 0x7;
perm             3003 arch/x86/kvm/emulate.c 	r = ops->read_std(ctxt, base + io_bitmap_ptr + port/8, &perm, 2, NULL, true);
perm             3006 arch/x86/kvm/emulate.c 	if ((perm >> bit_idx) & mask)
perm              691 drivers/ata/libata-transport.c #define SETUP_TEMPLATE(attrb, field, perm, test)			\
perm              693 drivers/ata/libata-transport.c 	i->private_##attrb[count].attr.mode = perm;			\
perm               44 drivers/firmware/qcom_scm.c 	__le32 perm;
perm              485 drivers/firmware/qcom_scm.c 		destvm->perm = cpu_to_le32(newvm->perm);
perm               30 drivers/gpu/drm/i915/i915_params.c #define i915_param_named(name, T, perm, desc) \
perm               31 drivers/gpu/drm/i915/i915_params.c 	module_param_named(name, i915_modparams.name, T, perm); \
perm               33 drivers/gpu/drm/i915/i915_params.c #define i915_param_named_unsafe(name, T, perm, desc) \
perm               34 drivers/gpu/drm/i915/i915_params.c 	module_param_named_unsafe(name, i915_modparams.name, T, perm); \
perm              674 drivers/infiniband/hw/cxgb3/cxio_hal.c 			 enum tpt_mem_type type, enum tpt_mem_perm perm,
perm              709 drivers/infiniband/hw/cxgb3/cxio_hal.c 		tpt.flags_pagesize_qpid = cpu_to_be32(V_TPT_PERM(perm) |
perm              710 drivers/infiniband/hw/cxgb3/cxio_hal.c 			((perm & TPT_MW_BIND) ? F_TPT_MW_BIND_ENABLE : 0) |
perm              766 drivers/infiniband/hw/cxgb3/cxio_hal.c 			   enum tpt_mem_perm perm, u32 zbva, u64 to, u32 len,
perm              770 drivers/infiniband/hw/cxgb3/cxio_hal.c 	return __cxio_tpt_op(rdev_p, 0, stag, 1, pdid, TPT_NON_SHARED_MR, perm,
perm              775 drivers/infiniband/hw/cxgb3/cxio_hal.c 			   enum tpt_mem_perm perm, u32 zbva, u64 to, u32 len,
perm              778 drivers/infiniband/hw/cxgb3/cxio_hal.c 	return __cxio_tpt_op(rdev_p, 0, stag, 1, pdid, TPT_NON_SHARED_MR, perm,
perm              172 drivers/infiniband/hw/cxgb3/cxio_hal.h 			   enum tpt_mem_perm perm, u32 zbva, u64 to, u32 len,
perm              175 drivers/infiniband/hw/cxgb3/cxio_hal.h 			   enum tpt_mem_perm perm, u32 zbva, u64 to, u32 len,
perm              272 drivers/infiniband/hw/cxgb4/mem.c 			   enum fw_ri_stag_type type, enum fw_ri_mem_perms perm,
perm              319 drivers/infiniband/hw/cxgb4/mem.c 		tpt->locread_to_qpid = cpu_to_be32(FW_RI_TPTE_PERM_V(perm) |
perm              471 drivers/memory/tegra/mc.c 		char perm[7];
perm              510 drivers/memory/tegra/mc.c 			perm[0] = ' ';
perm              511 drivers/memory/tegra/mc.c 			perm[1] = '[';
perm              514 drivers/memory/tegra/mc.c 				perm[2] = 'R';
perm              516 drivers/memory/tegra/mc.c 				perm[2] = '-';
perm              519 drivers/memory/tegra/mc.c 				perm[3] = 'W';
perm              521 drivers/memory/tegra/mc.c 				perm[3] = '-';
perm              524 drivers/memory/tegra/mc.c 				perm[4] = '-';
perm              526 drivers/memory/tegra/mc.c 				perm[4] = 'S';
perm              528 drivers/memory/tegra/mc.c 			perm[5] = ']';
perm              529 drivers/memory/tegra/mc.c 			perm[6] = '\0';
perm              533 drivers/memory/tegra/mc.c 			perm[0] = '\0';
perm              542 drivers/memory/tegra/mc.c 				    desc, perm);
perm              120 drivers/mfd/ab8500-debugfs.c 	u8 perm;
perm             1108 drivers/net/fddi/skfp/fplustm.c 		if (!tb->perm) {
perm             1168 drivers/net/fddi/skfp/fplustm.c 	tb->perm = (can & 0x80) ? 1 : 0 ;
perm              221 drivers/net/fddi/skfp/h/fplustm.h 			u_char			perm ;	/* flag: permanent */
perm               38 drivers/net/wireless/ath/ath10k/qmi.c 	dst_perms[0].perm = QCOM_SCM_PERM_RW;
perm               40 drivers/net/wireless/ath/ath10k/qmi.c 	dst_perms[1].perm = QCOM_SCM_PERM_RW;
perm               46 drivers/net/wireless/ath/ath10k/qmi.c 		dst_perms[2].perm = QCOM_SCM_PERM_RW;
perm               72 drivers/net/wireless/ath/ath10k/qmi.c 	dst_perms.perm = QCOM_SCM_PERM_RW;
perm             1132 drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c 	u8 perm[ETH_ALEN];
perm             1188 drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c 	memcpy(perm, &wl->pub->cur_etheraddr, ETH_ALEN);
perm             1189 drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c 	if (WARN_ON(!is_valid_ether_addr(perm)))
perm             1191 drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c 	SET_IEEE80211_PERM_ADDR(hw, perm);
perm             1770 drivers/net/wireless/cisco/airo.c static int writeWepKeyRid(struct airo_info *ai, WepKeyRid *wkr, int perm, int lock)
perm             1776 drivers/net/wireless/cisco/airo.c 	if (perm) {
perm             5205 drivers/net/wireless/cisco/airo.c 		       u16 keylen, int perm, int lock)
perm             5221 drivers/net/wireless/cisco/airo.c 	if (perm) disable_MAC(ai, lock);
perm             5222 drivers/net/wireless/cisco/airo.c 	rc = writeWepKeyRid(ai, &wkr, perm, lock);
perm             5223 drivers/net/wireless/cisco/airo.c 	if (perm) enable_MAC(ai, lock);
perm             5227 drivers/net/wireless/cisco/airo.c static int set_wep_tx_idx(struct airo_info *ai, u16 index, int perm, int lock)
perm             5237 drivers/net/wireless/cisco/airo.c 	if (perm) {
perm             5242 drivers/net/wireless/cisco/airo.c 	rc = writeWepKeyRid(ai, &wkr, perm, lock);
perm             5244 drivers/net/wireless/cisco/airo.c 	if (perm)
perm             6313 drivers/net/wireless/cisco/airo.c 	int perm = (dwrq->flags & IW_ENCODE_TEMP ? 0 : 1);
perm             6358 drivers/net/wireless/cisco/airo.c 			rc = set_wep_key(local, index, key.key, key.len, perm, 1);
perm             6376 drivers/net/wireless/cisco/airo.c 			rc = set_wep_tx_idx(local, index, perm, 1);
perm             6470 drivers/net/wireless/cisco/airo.c 	int perm = ( encoding->flags & IW_ENCODE_TEMP ? 0 : 1 );
perm             6499 drivers/net/wireless/cisco/airo.c 		rc = set_wep_tx_idx(local, idx, perm, 1);
perm             6531 drivers/net/wireless/cisco/airo.c 			rc = set_wep_tx_idx(local, idx, perm, 1);
perm             6539 drivers/net/wireless/cisco/airo.c 			rc = set_wep_key(local, idx, key.key, key.len, perm, 1);
perm              656 drivers/net/wireless/marvell/libertas/debugfs.c 	umode_t perm;
perm              715 drivers/net/wireless/marvell/libertas/debugfs.c 							     files->perm,
perm              726 drivers/net/wireless/marvell/libertas/debugfs.c 							     files->perm,
perm              737 drivers/net/wireless/marvell/libertas/debugfs.c 							     files->perm,
perm              137 drivers/oprofile/oprofilefs.c 	const struct file_operations *fops, int perm, void *priv)
perm              151 drivers/oprofile/oprofilefs.c 	inode = oprofilefs_get_inode(root->d_sb, S_IFREG | perm);
perm              211 drivers/oprofile/oprofilefs.c 	char const *name, const struct file_operations *fops, int perm)
perm              213 drivers/oprofile/oprofilefs.c 	return __oprofilefs_create_file(root, name, fops, perm, NULL);
perm              374 drivers/remoteproc/qcom_q6v5_mss.c 	next.perm = remote_owner ? QCOM_SCM_PERM_RW : QCOM_SCM_PERM_RWX;
perm              303 drivers/s390/block/dasd_eckd.c 		data->mask.perm = 0x1;
perm              307 drivers/s390/block/dasd_eckd.c 		data->mask.perm = 0x1;
perm              312 drivers/s390/block/dasd_eckd.c 		data->mask.perm = 0x1;
perm              320 drivers/s390/block/dasd_eckd.c 		data->mask.perm = 0x02;
perm              332 drivers/s390/block/dasd_eckd.c 		data->mask.perm = 0x3;
perm              338 drivers/s390/block/dasd_eckd.c 		data->mask.perm = 0x03;
perm              343 drivers/s390/block/dasd_eckd.c 		data->mask.perm = 0x02;
perm             4242 drivers/s390/block/dasd_eckd.c 		dedata->mask.perm = 0x1;
perm             4252 drivers/s390/block/dasd_eckd.c 		dedata->mask.perm = 0x02;
perm             4271 drivers/s390/block/dasd_eckd.c 		dedata->mask.perm = 0x1;
perm              155 drivers/s390/block/dasd_eckd.h 		unsigned char perm:2;	/* Permissions on this extent */
perm               97 drivers/s390/block/dasd_fba.c 		(data->mask).perm = 0x0;
perm               99 drivers/s390/block/dasd_fba.c 		(data->mask).perm = 0x1;
perm              101 drivers/s390/block/dasd_fba.c 		data->mask.perm = 0x2;
perm               19 drivers/s390/block/dasd_fba.h 		unsigned char perm:2;	/* Permissions on this extent */
perm              360 drivers/s390/char/keyboard.c 	      int cmd, int perm)
perm              391 drivers/s390/char/keyboard.c 		if (!perm)
perm              436 drivers/s390/char/keyboard.c 	       int cmd, int perm)
perm              465 drivers/s390/char/keyboard.c 		if (!perm)
perm              482 drivers/s390/char/keyboard.c 	int perm;
perm              492 drivers/s390/char/keyboard.c 	perm = current->signal->tty == tty || capable(CAP_SYS_TTY_CONFIG);
perm              499 drivers/s390/char/keyboard.c 		return do_kdsk_ioctl(kbd, argp, cmd, perm);
perm              502 drivers/s390/char/keyboard.c 		return do_kdgkb_ioctl(kbd, argp, cmd, perm);
perm              538 drivers/s390/char/keyboard.c 		if (!perm)
perm              558 drivers/s390/char/keyboard.c 		if (!perm)
perm              531 drivers/scsi/cxlflash/sislite.h #define SISL_RHT_FP(fmt, perm) (((fmt) << 4) | (perm))
perm              527 drivers/scsi/cxlflash/superpipe.c static void rht_format1(struct sisl_rht_entry *rhte, u64 lun_id, u32 perm,
perm              551 drivers/scsi/cxlflash/superpipe.c 	dummy.fp = SISL_RHT_FP(1U, perm);
perm             3957 drivers/scsi/scsi_transport_iscsi.c #define iscsi_session_attr_show(param, perm)				\
perm             3966 drivers/scsi/scsi_transport_iscsi.c 	if (perm && !capable(CAP_SYS_ADMIN))				\
perm             3971 drivers/scsi/scsi_transport_iscsi.c #define iscsi_session_attr(field, param, perm)				\
perm             3972 drivers/scsi/scsi_transport_iscsi.c 	iscsi_session_attr_show(param, perm)				\
perm             1684 drivers/scsi/scsi_transport_sas.c #define SETUP_TEMPLATE(attrb, field, perm, test)			\
perm             1686 drivers/scsi/scsi_transport_sas.c 	i->private_##attrb[count].attr.mode = perm;			\
perm             1691 drivers/scsi/scsi_transport_sas.c #define SETUP_TEMPLATE_RW(attrb, field, perm, test, ro_test, ro_perm)	\
perm             1693 drivers/scsi/scsi_transport_sas.c 	i->private_##attrb[count].attr.mode = perm;			\
perm              240 drivers/soc/qcom/rmtfs_mem.c 		perms[0].perm = QCOM_SCM_PERM_RW;
perm              242 drivers/soc/qcom/rmtfs_mem.c 		perms[1].perm = QCOM_SCM_PERM_RW;
perm              268 drivers/soc/qcom/rmtfs_mem.c 	struct qcom_scm_vmperm perm;
perm              271 drivers/soc/qcom/rmtfs_mem.c 		perm.vmid = QCOM_SCM_VMID_HLOS;
perm              272 drivers/soc/qcom/rmtfs_mem.c 		perm.perm = QCOM_SCM_PERM_RW;
perm              275 drivers/soc/qcom/rmtfs_mem.c 				    &rmtfs_mem->perms, &perm, 1);
perm               74 drivers/staging/android/uapi/vsoc_shm.h 	struct fd_scoped_permission perm;
perm              156 drivers/staging/android/vsoc.c 				struct fd_scoped_permission *perm);
perm              263 drivers/staging/android/vsoc.c 			   &arg->perm, sizeof(np->permission)) ||
perm              363 drivers/staging/android/vsoc.c 				struct fd_scoped_permission *perm)
perm              368 drivers/staging/android/vsoc.c 	if (!perm)
perm              371 drivers/staging/android/vsoc.c 		(owner_region_p->region_begin_offset + perm->owner_offset);
perm              373 drivers/staging/android/vsoc.c 	if (prev != perm->owned_value)
perm              376 drivers/staging/android/vsoc.c 			perm->begin_offset, perm->end_offset,
perm              377 drivers/staging/android/vsoc.c 			owner_region_p->device_name, perm->owner_offset,
perm              378 drivers/staging/android/vsoc.c 			perm->owned_value, prev);
perm             1096 drivers/staging/android/vsoc.c 	struct fd_scoped_permission *perm;
perm             1100 drivers/staging/android/vsoc.c 	perm = &((struct vsoc_private_data *)filp->private_data)->
perm             1102 drivers/staging/android/vsoc.c 	if (perm) {
perm             1103 drivers/staging/android/vsoc.c 		off += perm->begin_offset;
perm             1104 drivers/staging/android/vsoc.c 		length = perm->end_offset - perm->begin_offset;
perm             2858 drivers/staging/exfat/exfat_super.c 	mode_t i_mode, mask, perm;
perm             2867 drivers/staging/exfat/exfat_super.c 	perm = *mode_ptr & ~(S_IFMT | mask);
perm             2870 drivers/staging/exfat/exfat_super.c 	if ((perm & 0555) != (i_mode & 0555))
perm             2878 drivers/staging/exfat/exfat_super.c 		if ((perm & 0222) && ((perm & 0222) != (0222 & ~mask)))
perm             2885 drivers/staging/exfat/exfat_super.c 		if ((perm & 0222) != (0222 & ~mask))
perm             2889 drivers/staging/exfat/exfat_super.c 	*mode_ptr &= S_IFMT | perm;
perm             1651 drivers/tty/vt/keyboard.c int vt_do_diacrit(unsigned int cmd, void __user *udp, int perm)
perm             1727 drivers/tty/vt/keyboard.c 		if (!perm)
perm             1764 drivers/tty/vt/keyboard.c 		if (!perm)
perm             1862 drivers/tty/vt/keyboard.c 								int perm)
perm             1876 drivers/tty/vt/keyboard.c 		if (!perm)
perm             1888 drivers/tty/vt/keyboard.c int vt_do_kdsk_ioctl(int cmd, struct kbentry __user *user_kbe, int perm,
perm             1900 drivers/tty/vt/keyboard.c 		perm = 0;
perm             1916 drivers/tty/vt/keyboard.c 		if (!perm)
perm             1994 drivers/tty/vt/keyboard.c int vt_do_kdgkb_ioctl(int cmd, struct kbsentry __user *user_kdgkb, int perm)
perm             2008 drivers/tty/vt/keyboard.c 		perm = 0;
perm             2043 drivers/tty/vt/keyboard.c 		if (!perm) {
perm             2126 drivers/tty/vt/keyboard.c int vt_do_kdskled(int console, int cmd, unsigned long arg, int perm)
perm             2142 drivers/tty/vt/keyboard.c 		if (!perm)
perm             2160 drivers/tty/vt/keyboard.c 		if (!perm)
perm              247 drivers/tty/vt/vt_ioctl.c do_fontx_ioctl(int cmd, struct consolefontdesc __user *user_cfd, int perm, struct console_font_op *op)
perm              257 drivers/tty/vt/vt_ioctl.c 		if (!perm)
perm              287 drivers/tty/vt/vt_ioctl.c do_unimap_ioctl(int cmd, struct unimapdesc __user *user_ud, int perm, struct vc_data *vc)
perm              295 drivers/tty/vt/vt_ioctl.c 		if (!perm)
perm              299 drivers/tty/vt/vt_ioctl.c 		if (!perm && fg_console != vc->vc_num)
perm              359 drivers/tty/vt/vt_ioctl.c 	int i, perm;
perm              366 drivers/tty/vt/vt_ioctl.c 	perm = 0;
perm              368 drivers/tty/vt/vt_ioctl.c 		perm = 1;
perm              375 drivers/tty/vt/vt_ioctl.c 		if (!perm)
perm              389 drivers/tty/vt/vt_ioctl.c 		if (!perm)
perm              473 drivers/tty/vt/vt_ioctl.c 		if (!perm)
perm              518 drivers/tty/vt/vt_ioctl.c 		if (!perm)
perm              546 drivers/tty/vt/vt_ioctl.c 			perm = 0;
perm              547 drivers/tty/vt/vt_ioctl.c 		ret = vt_do_kbkeycode_ioctl(cmd, up, perm);
perm              552 drivers/tty/vt/vt_ioctl.c 		ret = vt_do_kdsk_ioctl(cmd, up, perm, console);
perm              557 drivers/tty/vt/vt_ioctl.c 		ret = vt_do_kdgkb_ioctl(cmd, up, perm);
perm              566 drivers/tty/vt/vt_ioctl.c 		ret = vt_do_diacrit(cmd, up, perm);
perm              575 drivers/tty/vt/vt_ioctl.c 		ret = vt_do_kdskled(console, cmd, arg, perm);
perm              587 drivers/tty/vt/vt_ioctl.c 		if (!perm || !capable(CAP_KILL))
perm              605 drivers/tty/vt/vt_ioctl.c 		if (!perm)
perm              685 drivers/tty/vt/vt_ioctl.c 		if (!perm)
perm              704 drivers/tty/vt/vt_ioctl.c 		if (!perm)
perm              745 drivers/tty/vt/vt_ioctl.c 		if (!perm)
perm              764 drivers/tty/vt/vt_ioctl.c 		if (!perm)
perm              837 drivers/tty/vt/vt_ioctl.c 		if (!perm)
perm              861 drivers/tty/vt/vt_ioctl.c 		if (!perm)
perm              909 drivers/tty/vt/vt_ioctl.c 		if (!perm)
perm              933 drivers/tty/vt/vt_ioctl.c                 if (!perm)
perm              945 drivers/tty/vt/vt_ioctl.c 		ret = do_fontx_ioctl(cmd, up, perm, &op);
perm              950 drivers/tty/vt/vt_ioctl.c 		if (!perm)
perm              978 drivers/tty/vt/vt_ioctl.c 		if (!perm && op.op != KD_FONT_OP_GET)
perm              989 drivers/tty/vt/vt_ioctl.c 		if (!perm)
perm             1000 drivers/tty/vt/vt_ioctl.c 		if (!perm)
perm             1011 drivers/tty/vt/vt_ioctl.c 		if (!perm)
perm             1018 drivers/tty/vt/vt_ioctl.c 		ret = do_unimap_ioctl(cmd, up, perm, vc);
perm             1094 drivers/tty/vt/vt_ioctl.c 			 int perm, struct console_font_op *op)
perm             1104 drivers/tty/vt/vt_ioctl.c 		if (!perm)
perm             1142 drivers/tty/vt/vt_ioctl.c 			 int perm, struct console_font_op *op, struct vc_data *vc)
perm             1148 drivers/tty/vt/vt_ioctl.c 	if (!perm && op->op != KD_FONT_OP_GET)
perm             1167 drivers/tty/vt/vt_ioctl.c 			 int perm, struct vc_data *vc)
perm             1177 drivers/tty/vt/vt_ioctl.c 		if (!perm)
perm             1181 drivers/tty/vt/vt_ioctl.c 		if (!perm && fg_console != vc->vc_num)
perm             1194 drivers/tty/vt/vt_ioctl.c 	int perm;
perm             1200 drivers/tty/vt/vt_ioctl.c 	perm = 0;
perm             1202 drivers/tty/vt/vt_ioctl.c 		perm = 1;
perm             1210 drivers/tty/vt/vt_ioctl.c 		return compat_fontx_ioctl(cmd, up, perm, &op);
perm             1213 drivers/tty/vt/vt_ioctl.c 		return compat_kdfontop_ioctl(up, perm, &op, vc);
perm             1217 drivers/tty/vt/vt_ioctl.c 		return compat_unimap_ioctl(cmd, up, perm, vc);
perm              112 drivers/vfio/pci/vfio_pci_config.c 			  struct perm_bits *perm, int offset, __le32 *val);
perm              114 drivers/vfio/pci/vfio_pci_config.c 			   struct perm_bits *perm, int offset, __le32 val);
perm              175 drivers/vfio/pci/vfio_pci_config.c 				    int count, struct perm_bits *perm,
perm              182 drivers/vfio/pci/vfio_pci_config.c 	memcpy(&virt, perm->virt + offset, count);
perm              201 drivers/vfio/pci/vfio_pci_config.c 				     int count, struct perm_bits *perm,
perm              206 drivers/vfio/pci/vfio_pci_config.c 	memcpy(&write, perm->write + offset, count);
perm              211 drivers/vfio/pci/vfio_pci_config.c 	memcpy(&virt, perm->virt + offset, count);
perm              248 drivers/vfio/pci/vfio_pci_config.c 				   int count, struct perm_bits *perm,
perm              273 drivers/vfio/pci/vfio_pci_config.c 				 int count, struct perm_bits *perm,
perm              286 drivers/vfio/pci/vfio_pci_config.c 				int count, struct perm_bits *perm,
perm              300 drivers/vfio/pci/vfio_pci_config.c 				  int count, struct perm_bits *perm,
perm              308 drivers/vfio/pci/vfio_pci_config.c 				 int count, struct perm_bits *perm,
perm              338 drivers/vfio/pci/vfio_pci_config.c static void free_perm_bits(struct perm_bits *perm)
perm              340 drivers/vfio/pci/vfio_pci_config.c 	kfree(perm->virt);
perm              341 drivers/vfio/pci/vfio_pci_config.c 	kfree(perm->write);
perm              342 drivers/vfio/pci/vfio_pci_config.c 	perm->virt = NULL;
perm              343 drivers/vfio/pci/vfio_pci_config.c 	perm->write = NULL;
perm              346 drivers/vfio/pci/vfio_pci_config.c static int alloc_perm_bits(struct perm_bits *perm, int size)
perm              362 drivers/vfio/pci/vfio_pci_config.c 	perm->virt = kzalloc(size, GFP_KERNEL);
perm              363 drivers/vfio/pci/vfio_pci_config.c 	perm->write = kzalloc(size, GFP_KERNEL);
perm              364 drivers/vfio/pci/vfio_pci_config.c 	if (!perm->virt || !perm->write) {
perm              365 drivers/vfio/pci/vfio_pci_config.c 		free_perm_bits(perm);
perm              369 drivers/vfio/pci/vfio_pci_config.c 	perm->readfn = vfio_default_config_read;
perm              370 drivers/vfio/pci/vfio_pci_config.c 	perm->writefn = vfio_default_config_write;
perm              499 drivers/vfio/pci/vfio_pci_config.c 				  int count, struct perm_bits *perm,
perm              505 drivers/vfio/pci/vfio_pci_config.c 	count = vfio_default_config_read(vdev, pos, count, perm, offset, val);
perm              537 drivers/vfio/pci/vfio_pci_config.c 				   int count, struct perm_bits *perm,
perm              579 drivers/vfio/pci/vfio_pci_config.c 	count = vfio_default_config_write(vdev, pos, count, perm, offset, val);
perm              617 drivers/vfio/pci/vfio_pci_config.c static int __init init_pci_cap_basic_perm(struct perm_bits *perm)
perm              619 drivers/vfio/pci/vfio_pci_config.c 	if (alloc_perm_bits(perm, PCI_STD_HEADER_SIZEOF))
perm              622 drivers/vfio/pci/vfio_pci_config.c 	perm->readfn = vfio_basic_config_read;
perm              623 drivers/vfio/pci/vfio_pci_config.c 	perm->writefn = vfio_basic_config_write;
perm              626 drivers/vfio/pci/vfio_pci_config.c 	p_setw(perm, PCI_VENDOR_ID, (u16)ALL_VIRT, NO_WRITE);
perm              627 drivers/vfio/pci/vfio_pci_config.c 	p_setw(perm, PCI_DEVICE_ID, (u16)ALL_VIRT, NO_WRITE);
perm              633 drivers/vfio/pci/vfio_pci_config.c 	p_setw(perm, PCI_COMMAND, PCI_COMMAND_INTX_DISABLE, (u16)ALL_WRITE);
perm              636 drivers/vfio/pci/vfio_pci_config.c 	p_setw(perm, PCI_STATUS, PCI_STATUS_CAP_LIST, NO_WRITE);
perm              639 drivers/vfio/pci/vfio_pci_config.c 	p_setb(perm, PCI_CACHE_LINE_SIZE, NO_VIRT, (u8)ALL_WRITE);
perm              640 drivers/vfio/pci/vfio_pci_config.c 	p_setb(perm, PCI_LATENCY_TIMER, NO_VIRT, (u8)ALL_WRITE);
perm              641 drivers/vfio/pci/vfio_pci_config.c 	p_setb(perm, PCI_BIST, NO_VIRT, (u8)ALL_WRITE);
perm              644 drivers/vfio/pci/vfio_pci_config.c 	p_setd(perm, PCI_BASE_ADDRESS_0, ALL_VIRT, ALL_WRITE);
perm              645 drivers/vfio/pci/vfio_pci_config.c 	p_setd(perm, PCI_BASE_ADDRESS_1, ALL_VIRT, ALL_WRITE);
perm              646 drivers/vfio/pci/vfio_pci_config.c 	p_setd(perm, PCI_BASE_ADDRESS_2, ALL_VIRT, ALL_WRITE);
perm              647 drivers/vfio/pci/vfio_pci_config.c 	p_setd(perm, PCI_BASE_ADDRESS_3, ALL_VIRT, ALL_WRITE);
perm              648 drivers/vfio/pci/vfio_pci_config.c 	p_setd(perm, PCI_BASE_ADDRESS_4, ALL_VIRT, ALL_WRITE);
perm              649 drivers/vfio/pci/vfio_pci_config.c 	p_setd(perm, PCI_BASE_ADDRESS_5, ALL_VIRT, ALL_WRITE);
perm              650 drivers/vfio/pci/vfio_pci_config.c 	p_setd(perm, PCI_ROM_ADDRESS, ALL_VIRT, ALL_WRITE);
perm              653 drivers/vfio/pci/vfio_pci_config.c 	p_setb(perm, PCI_CAPABILITY_LIST, (u8)ALL_VIRT, NO_WRITE);
perm              656 drivers/vfio/pci/vfio_pci_config.c 	p_setb(perm, PCI_INTERRUPT_LINE, (u8)ALL_VIRT, (u8)ALL_WRITE);
perm              659 drivers/vfio/pci/vfio_pci_config.c 	p_setb(perm, PCI_INTERRUPT_PIN, (u8)ALL_VIRT, (u8)NO_WRITE);
perm              665 drivers/vfio/pci/vfio_pci_config.c 				int count, struct perm_bits *perm,
perm              668 drivers/vfio/pci/vfio_pci_config.c 	count = vfio_default_config_write(vdev, pos, count, perm, offset, val);
perm              697 drivers/vfio/pci/vfio_pci_config.c static int __init init_pci_cap_pm_perm(struct perm_bits *perm)
perm              699 drivers/vfio/pci/vfio_pci_config.c 	if (alloc_perm_bits(perm, pci_cap_length[PCI_CAP_ID_PM]))
perm              702 drivers/vfio/pci/vfio_pci_config.c 	perm->writefn = vfio_pm_config_write;
perm              708 drivers/vfio/pci/vfio_pci_config.c 	p_setb(perm, PCI_CAP_LIST_NEXT, (u8)ALL_VIRT, NO_WRITE);
perm              715 drivers/vfio/pci/vfio_pci_config.c 	p_setd(perm, PCI_PM_CTRL, NO_VIRT, ~PCI_PM_CTRL_STATE_MASK);
perm              720 drivers/vfio/pci/vfio_pci_config.c 				 int count, struct perm_bits *perm,
perm              734 drivers/vfio/pci/vfio_pci_config.c 	count = vfio_default_config_write(vdev, pos, count, perm, offset, val);
perm              764 drivers/vfio/pci/vfio_pci_config.c static int __init init_pci_cap_vpd_perm(struct perm_bits *perm)
perm              766 drivers/vfio/pci/vfio_pci_config.c 	if (alloc_perm_bits(perm, pci_cap_length[PCI_CAP_ID_VPD]))
perm              769 drivers/vfio/pci/vfio_pci_config.c 	perm->writefn = vfio_vpd_config_write;
perm              775 drivers/vfio/pci/vfio_pci_config.c 	p_setb(perm, PCI_CAP_LIST_NEXT, (u8)ALL_VIRT, NO_WRITE);
perm              781 drivers/vfio/pci/vfio_pci_config.c 	p_setw(perm, PCI_VPD_ADDR, (u16)ALL_VIRT, (u16)ALL_WRITE);
perm              782 drivers/vfio/pci/vfio_pci_config.c 	p_setd(perm, PCI_VPD_DATA, ALL_VIRT, ALL_WRITE);
perm              788 drivers/vfio/pci/vfio_pci_config.c static int __init init_pci_cap_pcix_perm(struct perm_bits *perm)
perm              791 drivers/vfio/pci/vfio_pci_config.c 	if (alloc_perm_bits(perm, PCI_CAP_PCIX_SIZEOF_V2))
perm              794 drivers/vfio/pci/vfio_pci_config.c 	p_setb(perm, PCI_CAP_LIST_NEXT, (u8)ALL_VIRT, NO_WRITE);
perm              796 drivers/vfio/pci/vfio_pci_config.c 	p_setw(perm, PCI_X_CMD, NO_VIRT, (u16)ALL_WRITE);
perm              797 drivers/vfio/pci/vfio_pci_config.c 	p_setd(perm, PCI_X_ECC_CSR, NO_VIRT, ALL_WRITE);
perm              802 drivers/vfio/pci/vfio_pci_config.c 				 int count, struct perm_bits *perm,
perm              809 drivers/vfio/pci/vfio_pci_config.c 	count = vfio_default_config_write(vdev, pos, count, perm, offset, val);
perm              858 drivers/vfio/pci/vfio_pci_config.c static int __init init_pci_cap_exp_perm(struct perm_bits *perm)
perm              861 drivers/vfio/pci/vfio_pci_config.c 	if (alloc_perm_bits(perm, PCI_CAP_EXP_ENDPOINT_SIZEOF_V2))
perm              864 drivers/vfio/pci/vfio_pci_config.c 	perm->writefn = vfio_exp_config_write;
perm              866 drivers/vfio/pci/vfio_pci_config.c 	p_setb(perm, PCI_CAP_LIST_NEXT, (u8)ALL_VIRT, NO_WRITE);
perm              875 drivers/vfio/pci/vfio_pci_config.c 	p_setw(perm, PCI_EXP_DEVCTL,
perm              878 drivers/vfio/pci/vfio_pci_config.c 	p_setw(perm, PCI_EXP_DEVCTL2, NO_VIRT, ~PCI_EXP_DEVCTL2_ARI);
perm              883 drivers/vfio/pci/vfio_pci_config.c 				int count, struct perm_bits *perm,
perm              888 drivers/vfio/pci/vfio_pci_config.c 	count = vfio_default_config_write(vdev, pos, count, perm, offset, val);
perm              916 drivers/vfio/pci/vfio_pci_config.c static int __init init_pci_cap_af_perm(struct perm_bits *perm)
perm              918 drivers/vfio/pci/vfio_pci_config.c 	if (alloc_perm_bits(perm, pci_cap_length[PCI_CAP_ID_AF]))
perm              921 drivers/vfio/pci/vfio_pci_config.c 	perm->writefn = vfio_af_config_write;
perm              923 drivers/vfio/pci/vfio_pci_config.c 	p_setb(perm, PCI_CAP_LIST_NEXT, (u8)ALL_VIRT, NO_WRITE);
perm              924 drivers/vfio/pci/vfio_pci_config.c 	p_setb(perm, PCI_AF_CTRL, PCI_AF_CTRL_FLR, PCI_AF_CTRL_FLR);
perm              929 drivers/vfio/pci/vfio_pci_config.c static int __init init_pci_ext_cap_err_perm(struct perm_bits *perm)
perm              933 drivers/vfio/pci/vfio_pci_config.c 	if (alloc_perm_bits(perm, pci_ext_cap_length[PCI_EXT_CAP_ID_ERR]))
perm              941 drivers/vfio/pci/vfio_pci_config.c 	p_setd(perm, 0, ALL_VIRT, NO_WRITE);
perm              961 drivers/vfio/pci/vfio_pci_config.c 	p_setd(perm, PCI_ERR_UNCOR_STATUS, NO_VIRT, mask);
perm              962 drivers/vfio/pci/vfio_pci_config.c 	p_setd(perm, PCI_ERR_UNCOR_MASK, NO_VIRT, mask);
perm              963 drivers/vfio/pci/vfio_pci_config.c 	p_setd(perm, PCI_ERR_UNCOR_SEVER, NO_VIRT, mask);
perm              973 drivers/vfio/pci/vfio_pci_config.c 	p_setd(perm, PCI_ERR_COR_STATUS, NO_VIRT, mask);
perm              974 drivers/vfio/pci/vfio_pci_config.c 	p_setd(perm, PCI_ERR_COR_MASK, NO_VIRT, mask);
perm              978 drivers/vfio/pci/vfio_pci_config.c 	p_setd(perm, PCI_ERR_CAP, NO_VIRT, mask);
perm              983 drivers/vfio/pci/vfio_pci_config.c static int __init init_pci_ext_cap_pwr_perm(struct perm_bits *perm)
perm              985 drivers/vfio/pci/vfio_pci_config.c 	if (alloc_perm_bits(perm, pci_ext_cap_length[PCI_EXT_CAP_ID_PWR]))
perm              988 drivers/vfio/pci/vfio_pci_config.c 	p_setd(perm, 0, ALL_VIRT, NO_WRITE);
perm              991 drivers/vfio/pci/vfio_pci_config.c 	p_setb(perm, PCI_PWR_DATA, NO_VIRT, (u8)ALL_WRITE);
perm             1056 drivers/vfio/pci/vfio_pci_config.c 				int count, struct perm_bits *perm,
perm             1072 drivers/vfio/pci/vfio_pci_config.c 	return vfio_default_config_read(vdev, pos, count, perm, offset, val);
perm             1076 drivers/vfio/pci/vfio_pci_config.c 				 int count, struct perm_bits *perm,
perm             1079 drivers/vfio/pci/vfio_pci_config.c 	count = vfio_default_config_write(vdev, pos, count, perm, offset, val);
perm             1121 drivers/vfio/pci/vfio_pci_config.c static int init_pci_cap_msi_perm(struct perm_bits *perm, int len, u16 flags)
perm             1123 drivers/vfio/pci/vfio_pci_config.c 	if (alloc_perm_bits(perm, len))
perm             1126 drivers/vfio/pci/vfio_pci_config.c 	perm->readfn = vfio_msi_config_read;
perm             1127 drivers/vfio/pci/vfio_pci_config.c 	perm->writefn = vfio_msi_config_write;
perm             1129 drivers/vfio/pci/vfio_pci_config.c 	p_setb(perm, PCI_CAP_LIST_NEXT, (u8)ALL_VIRT, NO_WRITE);
perm             1135 drivers/vfio/pci/vfio_pci_config.c 	p_setb(perm, PCI_MSI_FLAGS, (u8)ALL_VIRT, (u8)ALL_WRITE);
perm             1136 drivers/vfio/pci/vfio_pci_config.c 	p_setd(perm, PCI_MSI_ADDRESS_LO, ALL_VIRT, ALL_WRITE);
perm             1138 drivers/vfio/pci/vfio_pci_config.c 		p_setd(perm, PCI_MSI_ADDRESS_HI, ALL_VIRT, ALL_WRITE);
perm             1139 drivers/vfio/pci/vfio_pci_config.c 		p_setw(perm, PCI_MSI_DATA_64, (u16)ALL_VIRT, (u16)ALL_WRITE);
perm             1141 drivers/vfio/pci/vfio_pci_config.c 			p_setd(perm, PCI_MSI_MASK_64, NO_VIRT, ALL_WRITE);
perm             1142 drivers/vfio/pci/vfio_pci_config.c 			p_setd(perm, PCI_MSI_PENDING_64, NO_VIRT, ALL_WRITE);
perm             1145 drivers/vfio/pci/vfio_pci_config.c 		p_setw(perm, PCI_MSI_DATA_32, (u16)ALL_VIRT, (u16)ALL_WRITE);
perm             1147 drivers/vfio/pci/vfio_pci_config.c 			p_setd(perm, PCI_MSI_MASK_32, NO_VIRT, ALL_WRITE);
perm             1148 drivers/vfio/pci/vfio_pci_config.c 			p_setd(perm, PCI_MSI_PENDING_32, NO_VIRT, ALL_WRITE);
perm             1753 drivers/vfio/pci/vfio_pci_config.c 	struct perm_bits *perm;
perm             1780 drivers/vfio/pci/vfio_pci_config.c 		perm = &unassigned_perms;
perm             1783 drivers/vfio/pci/vfio_pci_config.c 		perm = &virt_perms;
perm             1789 drivers/vfio/pci/vfio_pci_config.c 			perm = &ecap_perms[cap_id];
perm             1794 drivers/vfio/pci/vfio_pci_config.c 			perm = &cap_perms[cap_id];
perm             1797 drivers/vfio/pci/vfio_pci_config.c 				perm = vdev->msi_perm;
perm             1810 drivers/vfio/pci/vfio_pci_config.c 		if (!perm->writefn)
perm             1816 drivers/vfio/pci/vfio_pci_config.c 		ret = perm->writefn(vdev, *ppos, count, perm, offset, val);
perm             1818 drivers/vfio/pci/vfio_pci_config.c 		if (perm->readfn) {
perm             1819 drivers/vfio/pci/vfio_pci_config.c 			ret = perm->readfn(vdev, *ppos, count,
perm             1820 drivers/vfio/pci/vfio_pci_config.c 					   perm, offset, &val);
perm             1019 drivers/vhost/vhost.c 				u64 userspace_addr, int perm)
perm             1039 drivers/vhost/vhost.c 	node->perm = perm;
perm             1109 drivers/vhost/vhost.c 		if (!umem_access_ok(msg->uaddr, msg->size, msg->perm)) {
perm             1116 drivers/vhost/vhost.c 					 msg->uaddr, msg->perm)) {
perm             1289 drivers/vhost/vhost.c 	msg->perm = access;
perm             1314 drivers/vhost/vhost.c 	if (likely(node->perm & access))
perm             1335 drivers/vhost/vhost.c 		} else if (!(node->perm & access)) {
perm             2066 drivers/vhost/vhost.c 		} else if (!(node->perm & access)) {
perm               65 drivers/vhost/vhost.h 	__u32 perm;
perm               53 fs/9p/vfs_dir.c 	unsigned long perm = mistat->mode;
perm               56 fs/9p/vfs_dir.c 	if (perm & P9_DMDIR)
perm               58 fs/9p/vfs_dir.c 	if (perm & P9_DMSYMLINK)
perm              643 fs/9p/vfs_inode.c 		struct dentry *dentry, char *extension, u32 perm, u8 mode)
perm              671 fs/9p/vfs_inode.c 	err = p9_client_fcreate(ofid, name, perm, mode, extension);
perm              677 fs/9p/vfs_inode.c 	if (!(perm & P9_DMLINK)) {
perm              728 fs/9p/vfs_inode.c 	u32 perm = unixmode2p9mode(v9ses, mode);
perm              732 fs/9p/vfs_inode.c 	fid = v9fs_create(v9ses, dir, dentry, NULL, perm, P9_ORDWR);
perm              753 fs/9p/vfs_inode.c 	u32 perm;
perm              760 fs/9p/vfs_inode.c 	perm = unixmode2p9mode(v9ses, mode | S_IFDIR);
perm              761 fs/9p/vfs_inode.c 	fid = v9fs_create(v9ses, dir, dentry, NULL, perm, P9_OREAD);
perm              844 fs/9p/vfs_inode.c 	u32 perm;
perm              866 fs/9p/vfs_inode.c 	perm = unixmode2p9mode(v9ses, mode);
perm              867 fs/9p/vfs_inode.c 	fid = v9fs_create(v9ses, dir, dentry, NULL, perm,
perm             1286 fs/9p/vfs_inode.c 	u32 perm, const char *extension)
perm             1297 fs/9p/vfs_inode.c 	fid = v9fs_create(v9ses, dir, dentry, (char *) extension, perm,
perm             1376 fs/9p/vfs_inode.c 	u32 perm;
perm             1390 fs/9p/vfs_inode.c 	perm = unixmode2p9mode(v9ses, mode);
perm             1391 fs/9p/vfs_inode.c 	retval = v9fs_vfs_mkspecial(dir, dentry, perm, name);
perm             1537 fs/block_dev.c 	int perm = 0;
perm             1541 fs/block_dev.c 		perm |= MAY_READ;
perm             1543 fs/block_dev.c 		perm |= MAY_WRITE;
perm             1548 fs/block_dev.c 		ret = devcgroup_inode_permission(bdev->bd_inode, perm);
perm             1821 fs/ceph/addr.c 	struct ceph_pool_perm *perm;
perm             1829 fs/ceph/addr.c 		perm = rb_entry(*p, struct ceph_pool_perm, node);
perm             1830 fs/ceph/addr.c 		if (pool < perm->pool)
perm             1832 fs/ceph/addr.c 		else if (pool > perm->pool)
perm             1836 fs/ceph/addr.c 						perm->pool_ns,
perm             1837 fs/ceph/addr.c 						perm->pool_ns_len);
perm             1843 fs/ceph/addr.c 				have = perm->perm;
perm             1863 fs/ceph/addr.c 		perm = rb_entry(parent, struct ceph_pool_perm, node);
perm             1864 fs/ceph/addr.c 		if (pool < perm->pool)
perm             1866 fs/ceph/addr.c 		else if (pool > perm->pool)
perm             1870 fs/ceph/addr.c 						perm->pool_ns,
perm             1871 fs/ceph/addr.c 						perm->pool_ns_len);
perm             1877 fs/ceph/addr.c 				have = perm->perm;
perm             1958 fs/ceph/addr.c 	perm = kmalloc(sizeof(*perm) + pool_ns_len + 1, GFP_NOFS);
perm             1959 fs/ceph/addr.c 	if (!perm) {
perm             1964 fs/ceph/addr.c 	perm->pool = pool;
perm             1965 fs/ceph/addr.c 	perm->perm = have;
perm             1966 fs/ceph/addr.c 	perm->pool_ns_len = pool_ns_len;
perm             1968 fs/ceph/addr.c 		memcpy(perm->pool_ns, pool_ns->str, pool_ns_len);
perm             1969 fs/ceph/addr.c 	perm->pool_ns[pool_ns_len] = 0;
perm             1971 fs/ceph/addr.c 	rb_link_node(&perm->node, parent, p);
perm             1972 fs/ceph/addr.c 	rb_insert_color(&perm->node, &mdsc->pool_perm_tree);
perm             2055 fs/ceph/addr.c 	struct ceph_pool_perm *perm;
perm             2060 fs/ceph/addr.c 		perm = rb_entry(n, struct ceph_pool_perm, node);
perm             2062 fs/ceph/addr.c 		kfree(perm);
perm              316 fs/ceph/mds_client.h 	int perm;
perm              426 fs/fat/file.c  	umode_t mask, perm;
perm              438 fs/fat/file.c  	perm = *mode_ptr & ~(S_IFMT | mask);
perm              446 fs/fat/file.c  	if ((perm & (S_IRUGO | S_IXUGO)) != (inode->i_mode & (S_IRUGO|S_IXUGO)))
perm              449 fs/fat/file.c  		if ((perm & S_IWUGO) && ((perm & S_IWUGO) != (S_IWUGO & ~mask)))
perm              452 fs/fat/file.c  		if ((perm & S_IWUGO) != (S_IWUGO & ~mask))
perm              456 fs/fat/file.c  	*mode_ptr &= S_IFMT | perm;
perm              323 fs/nfs/nfs4idmap.c 	rkey->perm |= KEY_USR_VIEW;
perm               66 fs/nfsd/nfs4acl.c mask_from_posix(unsigned short perm, unsigned int flags)
perm               72 fs/nfsd/nfs4acl.c 	if (perm & ACL_READ)
perm               74 fs/nfsd/nfs4acl.c 	if (perm & ACL_WRITE)
perm               76 fs/nfsd/nfs4acl.c 	if ((perm & ACL_WRITE) && (flags & NFS4_ACL_DIR))
perm               78 fs/nfsd/nfs4acl.c 	if (perm & ACL_EXECUTE)
perm               84 fs/nfsd/nfs4acl.c deny_mask_from_posix(unsigned short perm, u32 flags)
perm               88 fs/nfsd/nfs4acl.c 	if (perm & ACL_READ)
perm               90 fs/nfsd/nfs4acl.c 	if (perm & ACL_WRITE)
perm               92 fs/nfsd/nfs4acl.c 	if ((perm & ACL_WRITE) && (flags & NFS4_ACL_DIR))
perm               94 fs/nfsd/nfs4acl.c 	if (perm & ACL_EXECUTE)
perm              109 fs/nfsd/nfs4acl.c low_mode_from_nfs4(u32 perm, unsigned short *mode, unsigned int flags)
perm              116 fs/nfsd/nfs4acl.c 	if ((perm & NFS4_READ_MODE) == NFS4_READ_MODE)
perm              118 fs/nfsd/nfs4acl.c 	if ((perm & write_mode) == write_mode)
perm              120 fs/nfsd/nfs4acl.c 	if ((perm & NFS4_EXECUTE_MODE) == NFS4_EXECUTE_MODE)
perm              338 include/linux/crush/crush.h 	__u32 *perm;  /* Permutation of the bucket's items */
perm              189 include/linux/key.h 	key_perm_t		perm;		/* access permissions */
perm              261 include/linux/key.h 			     key_perm_t perm,
perm              367 include/linux/key.h 				      key_perm_t perm,
perm              387 include/linux/key.h 				 key_perm_t perm,
perm              420 include/linux/key.h 				 key_perm_t perm);
perm             1662 include/linux/lsm_hooks.h 	int (*msg_queue_alloc_security)(struct kern_ipc_perm *perm);
perm             1663 include/linux/lsm_hooks.h 	void (*msg_queue_free_security)(struct kern_ipc_perm *perm);
perm             1664 include/linux/lsm_hooks.h 	int (*msg_queue_associate)(struct kern_ipc_perm *perm, int msqflg);
perm             1665 include/linux/lsm_hooks.h 	int (*msg_queue_msgctl)(struct kern_ipc_perm *perm, int cmd);
perm             1666 include/linux/lsm_hooks.h 	int (*msg_queue_msgsnd)(struct kern_ipc_perm *perm, struct msg_msg *msg,
perm             1668 include/linux/lsm_hooks.h 	int (*msg_queue_msgrcv)(struct kern_ipc_perm *perm, struct msg_msg *msg,
perm             1672 include/linux/lsm_hooks.h 	int (*shm_alloc_security)(struct kern_ipc_perm *perm);
perm             1673 include/linux/lsm_hooks.h 	void (*shm_free_security)(struct kern_ipc_perm *perm);
perm             1674 include/linux/lsm_hooks.h 	int (*shm_associate)(struct kern_ipc_perm *perm, int shmflg);
perm             1675 include/linux/lsm_hooks.h 	int (*shm_shmctl)(struct kern_ipc_perm *perm, int cmd);
perm             1676 include/linux/lsm_hooks.h 	int (*shm_shmat)(struct kern_ipc_perm *perm, char __user *shmaddr,
perm             1679 include/linux/lsm_hooks.h 	int (*sem_alloc_security)(struct kern_ipc_perm *perm);
perm             1680 include/linux/lsm_hooks.h 	void (*sem_free_security)(struct kern_ipc_perm *perm);
perm             1681 include/linux/lsm_hooks.h 	int (*sem_associate)(struct kern_ipc_perm *perm, int semflg);
perm             1682 include/linux/lsm_hooks.h 	int (*sem_semctl)(struct kern_ipc_perm *perm, int cmd);
perm             1683 include/linux/lsm_hooks.h 	int (*sem_semop)(struct kern_ipc_perm *perm, struct sembuf *sops,
perm             1798 include/linux/lsm_hooks.h 				unsigned perm);
perm               73 include/linux/moduleparam.h 	const u16 perm;
perm              126 include/linux/moduleparam.h #define module_param(name, type, perm)				\
perm              127 include/linux/moduleparam.h 	module_param_named(name, name, type, perm)
perm              132 include/linux/moduleparam.h #define module_param_unsafe(name, type, perm)			\
perm              133 include/linux/moduleparam.h 	module_param_named_unsafe(name, name, type, perm)
perm              146 include/linux/moduleparam.h #define module_param_named(name, value, type, perm)			   \
perm              148 include/linux/moduleparam.h 	module_param_cb(name, &param_ops_##type, &value, perm);		   \
perm              154 include/linux/moduleparam.h #define module_param_named_unsafe(name, value, type, perm)		\
perm              156 include/linux/moduleparam.h 	module_param_cb_unsafe(name, &param_ops_##type, &value, perm);	\
perm              167 include/linux/moduleparam.h #define module_param_cb(name, ops, arg, perm)				      \
perm              168 include/linux/moduleparam.h 	__module_param_call(MODULE_PARAM_PREFIX, name, ops, arg, perm, -1, 0)
perm              170 include/linux/moduleparam.h #define module_param_cb_unsafe(name, ops, arg, perm)			      \
perm              171 include/linux/moduleparam.h 	__module_param_call(MODULE_PARAM_PREFIX, name, ops, arg, perm, -1,    \
perm              183 include/linux/moduleparam.h #define __level_param_cb(name, ops, arg, perm, level)			\
perm              184 include/linux/moduleparam.h 	__module_param_call(MODULE_PARAM_PREFIX, name, ops, arg, perm, level, 0)
perm              186 include/linux/moduleparam.h #define core_param_cb(name, ops, arg, perm)		\
perm              187 include/linux/moduleparam.h 	__level_param_cb(name, ops, arg, perm, 1)
perm              189 include/linux/moduleparam.h #define postcore_param_cb(name, ops, arg, perm)		\
perm              190 include/linux/moduleparam.h 	__level_param_cb(name, ops, arg, perm, 2)
perm              192 include/linux/moduleparam.h #define arch_param_cb(name, ops, arg, perm)		\
perm              193 include/linux/moduleparam.h 	__level_param_cb(name, ops, arg, perm, 3)
perm              195 include/linux/moduleparam.h #define subsys_param_cb(name, ops, arg, perm)		\
perm              196 include/linux/moduleparam.h 	__level_param_cb(name, ops, arg, perm, 4)
perm              198 include/linux/moduleparam.h #define fs_param_cb(name, ops, arg, perm)		\
perm              199 include/linux/moduleparam.h 	__level_param_cb(name, ops, arg, perm, 5)
perm              201 include/linux/moduleparam.h #define device_param_cb(name, ops, arg, perm)		\
perm              202 include/linux/moduleparam.h 	__level_param_cb(name, ops, arg, perm, 6)
perm              204 include/linux/moduleparam.h #define late_param_cb(name, ops, arg, perm)		\
perm              205 include/linux/moduleparam.h 	__level_param_cb(name, ops, arg, perm, 7)
perm              219 include/linux/moduleparam.h #define __module_param_call(prefix, name, ops, arg, perm, level, flags)	\
perm              226 include/linux/moduleparam.h 	    VERIFY_OCTAL_PERMISSIONS(perm), level, flags, { arg } }
perm              229 include/linux/moduleparam.h #define module_param_call(name, _set, _get, arg, perm)			\
perm              233 include/linux/moduleparam.h 			    name, &__param_ops_##name, arg, perm, -1, 0)
perm              260 include/linux/moduleparam.h #define core_param(name, var, type, perm)				\
perm              262 include/linux/moduleparam.h 	__module_param_call("", name, &param_ops_##type, &var, perm, -1, 0)
perm              267 include/linux/moduleparam.h #define core_param_unsafe(name, var, type, perm)		\
perm              269 include/linux/moduleparam.h 	__module_param_call("", name, &param_ops_##type, &var, perm,	\
perm              284 include/linux/moduleparam.h #define module_param_string(name, string, len, perm)			\
perm              289 include/linux/moduleparam.h 			    .str = &__param_string_##name, perm, -1, 0);\
perm              421 include/linux/moduleparam.h #define module_param_array(name, type, nump, perm)		\
perm              422 include/linux/moduleparam.h 	module_param_array_named(name, name, type, nump, perm)
perm              435 include/linux/moduleparam.h #define module_param_array_named(name, array, type, nump, perm)		\
perm              444 include/linux/moduleparam.h 			    perm, -1, 0);				\
perm              469 include/linux/moduleparam.h #define module_param_hw_named(name, value, type, hwtype, perm)		\
perm              473 include/linux/moduleparam.h 			    perm, -1,					\
perm              477 include/linux/moduleparam.h #define module_param_hw(name, type, hwtype, perm)		\
perm              478 include/linux/moduleparam.h 	module_param_hw_named(name, name, type, hwtype, perm)
perm              494 include/linux/moduleparam.h #define module_param_hw_array(name, type, hwtype, nump, perm)		\
perm              503 include/linux/moduleparam.h 			    perm, -1,					\
perm              131 include/linux/oprofile.h 	char const * name, const struct file_operations * fops, int perm);
perm               24 include/linux/qcom_scm.h 	int perm;
perm             1746 include/linux/security.h 			    const struct cred *cred, unsigned perm);
perm             1764 include/linux/security.h 					  unsigned perm)
perm              168 include/linux/vt_kern.h 								int perm);
perm              170 include/linux/vt_kern.h 					int perm, int console);
perm              172 include/linux/vt_kern.h                                         int perm);
perm              173 include/linux/vt_kern.h extern int vt_do_kdskled(int console, int cmd, unsigned long arg, int perm);
perm              191 include/net/9p/client.h int p9_client_fcreate(struct p9_fid *fid, const char *name, u32 perm, int mode,
perm               76 include/uapi/linux/iommu.h 	__u32	perm;
perm               98 include/uapi/linux/iommu.h 	__u32	perm;
perm               58 include/uapi/linux/vhost_types.h 	__u8 perm;
perm              380 ipc/msg.c      			struct ipc64_perm *perm, int msg_qbytes)
perm              390 ipc/msg.c      				      perm, msg_qbytes);
perm              419 ipc/msg.c      		err = ipc_update_perm(perm, ipcp);
perm               98 ipc/namespace.c 	struct kern_ipc_perm *perm;
perm              107 ipc/namespace.c 		perm = idr_find(&ids->ipcs_idr, next_id);
perm              108 ipc/namespace.c 		if (perm == NULL)
perm              111 ipc/namespace.c 		ipc_lock_object(perm);
perm              112 ipc/namespace.c 		free(ns, perm);
perm              690 ipc/util.c     					struct ipc64_perm *perm, int extra_perm)
perm              704 ipc/util.c     		audit_ipc_set_perm(extra_perm, perm->uid,
perm              705 ipc/util.c     				   perm->gid, perm->mode);
perm              181 ipc/util.h     					     struct ipc64_perm *perm, int extra_perm);
perm              206 ipc/util.h     static inline void ipc_lock_object(struct kern_ipc_perm *perm)
perm              208 ipc/util.h     	spin_lock(&perm->lock);
perm              211 ipc/util.h     static inline void ipc_unlock_object(struct kern_ipc_perm *perm)
perm              213 ipc/util.h     	spin_unlock(&perm->lock);
perm              216 ipc/util.h     static inline void ipc_assert_locked_object(struct kern_ipc_perm *perm)
perm              218 ipc/util.h     	assert_spin_locked(&perm->lock);
perm              221 ipc/util.h     static inline void ipc_unlock(struct kern_ipc_perm *perm)
perm              223 ipc/util.h     	ipc_unlock_object(perm);
perm              235 ipc/util.h     static inline bool ipc_valid_object(struct kern_ipc_perm *perm)
perm              237 ipc/util.h     	return !perm->deleted;
perm              615 kernel/params.c 	BUG_ON(!kp->perm);
perm              654 kernel/params.c 	if ((kp->perm & (S_IWUSR | S_IWGRP | S_IWOTH)) != 0)
perm              659 kernel/params.c 	mk->mp->attrs[mk->mp->num].mattr.attr.mode = kp->perm;
perm              695 kernel/params.c 		if (kparam[i].perm == 0)
perm              820 kernel/params.c 		if (kp->perm == 0)
perm             1330 net/9p/client.c int p9_client_fcreate(struct p9_fid *fid, const char *name, u32 perm, int mode,
perm             1340 net/9p/client.c 						fid->fid, name, perm, mode);
perm             1347 net/9p/client.c 	req = p9_client_rpc(clnt, P9_TCREATE, "dsdb?s", fid->fid, name, perm,
perm               90 net/ceph/crush/mapper.c 			work->perm[0] = s;
perm               96 net/ceph/crush/mapper.c 			work->perm[i] = i;
perm              101 net/ceph/crush/mapper.c 			work->perm[i] = i;
perm              102 net/ceph/crush/mapper.c 		work->perm[work->perm[0]] = 0;
perm              108 net/ceph/crush/mapper.c 		dprintk(" perm_choose have %d: %d\n", i, work->perm[i]);
perm              116 net/ceph/crush/mapper.c 				unsigned int t = work->perm[p + i];
perm              117 net/ceph/crush/mapper.c 				work->perm[p + i] = work->perm[p];
perm              118 net/ceph/crush/mapper.c 				work->perm[p] = t;
perm              125 net/ceph/crush/mapper.c 		dprintk(" perm_choose  %d: %d\n", i, work->perm[i]);
perm              127 net/ceph/crush/mapper.c 	s = work->perm[pr];
perm              876 net/ceph/crush/mapper.c 		w->work[b]->perm = v;
perm              138 net/dns_resolver/dns_query.c 	rkey->perm |= KEY_USR_VIEW;
perm               45 net/netfilter/ipvs/ip_vs_mh.c 	unsigned int	perm;	/* next_offset */
perm              149 net/netfilter/ipvs/ip_vs_mh.c 		ds->perm = ds->offset;
perm              198 net/netfilter/ipvs/ip_vs_mh.c 			c = ds->perm;
perm              201 net/netfilter/ipvs/ip_vs_mh.c 				ds->perm += ds->skip;
perm              202 net/netfilter/ipvs/ip_vs_mh.c 				if (ds->perm >= IP_VS_MH_TAB_SIZE)
perm              203 net/netfilter/ipvs/ip_vs_mh.c 					ds->perm -= IP_VS_MH_TAB_SIZE;
perm              204 net/netfilter/ipvs/ip_vs_mh.c 				c = ds->perm;
perm              331 security/apparmor/domain.c 			u32 perm;
perm              336 security/apparmor/domain.c 			perm = dfa_user_allow(profile->xmatch, state);
perm              337 security/apparmor/domain.c 			if (!(perm & MAY_EXEC)) {
perm              412 security/apparmor/domain.c 			u32 perm;
perm              416 security/apparmor/domain.c 			perm = dfa_user_allow(profile->xmatch, state);
perm              418 security/apparmor/domain.c 			if (perm & MAY_EXEC) {
perm              205 security/apparmor/lib.c 	unsigned int i, perm = 1;
perm              208 security/apparmor/lib.c 	for (i = 0; i < num_chrs; perm <<= 1, i++) {
perm              209 security/apparmor/lib.c 		if (mask & perm) {
perm              225 security/apparmor/lib.c 	unsigned int i, perm = 1;
perm              228 security/apparmor/lib.c 	for (i = 0; i < 32; perm <<= 1, i++) {
perm              229 security/apparmor/lib.c 		if (mask & perm) {
perm               98 security/integrity/digsig.c 					   key_perm_t perm,
perm              105 security/integrity/digsig.c 				    KGIDT_INIT(0), cred, perm,
perm              123 security/integrity/digsig.c 	key_perm_t perm;
perm              125 security/integrity/digsig.c 	perm = (KEY_POS_ALL & ~KEY_POS_SETATTR) | KEY_USR_VIEW
perm              141 security/integrity/digsig.c 	perm |= KEY_USR_WRITE;
perm              144 security/integrity/digsig.c 	return __integrity_init_keyring(id, perm, restriction);
perm              148 security/integrity/digsig.c 			     off_t size, key_perm_t perm)
perm              157 security/integrity/digsig.c 				   NULL, data, size, perm,
perm              177 security/integrity/digsig.c 	key_perm_t perm;
perm              186 security/integrity/digsig.c 	perm = (KEY_POS_ALL & ~KEY_POS_SETATTR) | KEY_USR_VIEW | KEY_USR_READ;
perm              189 security/integrity/digsig.c 	rc = integrity_add_key(id, (const void *)data, size, perm);
perm              196 security/integrity/digsig.c 			       const void *data, size_t len, key_perm_t perm)
perm              202 security/integrity/digsig.c 	return integrity_add_key(id, data, len, perm);
perm              162 security/integrity/integrity.h 			       const void *data, size_t len, key_perm_t perm);
perm              186 security/integrity/integrity.h 					     key_perm_t perm)
perm               29 security/integrity/platform_certs/platform_keyring.c 	key_perm_t perm;
perm               32 security/integrity/platform_certs/platform_keyring.c 	perm = (KEY_POS_ALL & ~KEY_POS_SETATTR) | KEY_USR_VIEW;
perm               35 security/integrity/platform_certs/platform_keyring.c 				 perm);
perm              223 security/keys/gc.c 				key->perm = 0;
perm              184 security/keys/internal.h 			       key_perm_t perm);
perm              189 security/keys/internal.h static inline int key_permission(const key_ref_t key_ref, unsigned perm)
perm              191 security/keys/internal.h 	return key_task_permission(key_ref, current_cred(), perm);
perm              226 security/keys/key.c 		      key_perm_t perm, unsigned long flags,
perm              295 security/keys/key.c 	key->perm = perm;
perm              813 security/keys/key.c 			       key_perm_t perm,
perm              911 security/keys/key.c 	if (perm == KEY_PERM_UNDEF) {
perm              912 security/keys/key.c 		perm = KEY_POS_VIEW | KEY_POS_SEARCH | KEY_POS_LINK | KEY_POS_SETATTR;
perm              913 security/keys/key.c 		perm |= KEY_USR_VIEW;
perm              916 security/keys/key.c 			perm |= KEY_POS_READ;
perm              920 security/keys/key.c 			perm |= KEY_POS_WRITE;
perm              925 security/keys/key.c 			cred->fsuid, cred->fsgid, cred, perm, flags, NULL);
perm              682 security/keys/keyctl.c 			    key->perm);
perm             1063 security/keys/keyctl.c long keyctl_setperm_key(key_serial_t id, key_perm_t perm)
perm             1070 security/keys/keyctl.c 	if (perm & ~(KEY_POS_ALL | KEY_USR_ALL | KEY_GRP_ALL | KEY_OTH_ALL))
perm             1088 security/keys/keyctl.c 		key->perm = perm;
perm              518 security/keys/keyring.c 			  const struct cred *cred, key_perm_t perm,
perm              527 security/keys/keyring.c 			    uid, gid, cred, perm, flags, restrict_link);
perm               27 security/keys/permission.c 			unsigned perm)
perm               37 security/keys/permission.c 		kperm = key->perm >> 16;
perm               43 security/keys/permission.c 	if (gid_valid(key->gid) && key->perm & KEY_GRP_ALL) {
perm               45 security/keys/permission.c 			kperm = key->perm >> 8;
perm               51 security/keys/permission.c 			kperm = key->perm >> 8;
perm               57 security/keys/permission.c 	kperm = key->perm;
perm               65 security/keys/permission.c 		kperm |= key->perm >> 24;
perm               67 security/keys/permission.c 	kperm = kperm & perm & KEY_NEED_ALL;
perm               69 security/keys/permission.c 	if (kperm != perm)
perm               73 security/keys/permission.c 	return security_key_permission(key_ref, cred, perm);
perm              180 security/keys/proc.c 	if (key->perm & KEY_POS_VIEW) {
perm              237 security/keys/proc.c 		   key->perm,
perm              612 security/keys/process_keys.c 			  key_perm_t perm)
perm              787 security/keys/process_keys.c 			if (perm)
perm              792 security/keys/process_keys.c 	} else if (perm) {
perm              804 security/keys/process_keys.c 	ret = key_task_permission(key_ref, ctx.cred, perm);
perm              374 security/keys/request_key.c 	key_perm_t perm;
perm              384 security/keys/request_key.c 	perm = KEY_POS_VIEW | KEY_POS_SEARCH | KEY_POS_LINK | KEY_POS_SETATTR;
perm              385 security/keys/request_key.c 	perm |= KEY_USR_VIEW;
perm              387 security/keys/request_key.c 		perm |= KEY_POS_READ;
perm              390 security/keys/request_key.c 		perm |= KEY_POS_WRITE;
perm              394 security/keys/request_key.c 			perm, flags, NULL);
perm             2335 security/security.c 			    const struct cred *cred, unsigned perm)
perm             2337 security/security.c 	return call_int_hook(key_permission, 0, key_ref, cred, perm);
perm              198 security/selinux/avc.c 					u8 perm, u8 which)
perm              204 security/selinux/avc.c 		rc = security_xperm_test(xpd->allowed->p, perm);
perm              207 security/selinux/avc.c 		rc = security_xperm_test(xpd->auditallow->p, perm);
perm              210 security/selinux/avc.c 		rc = security_xperm_test(xpd->dontaudit->p, perm);
perm              215 security/selinux/avc.c 				u8 driver, u8 perm)
perm              221 security/selinux/avc.c 		security_xperm_set(xpd->allowed->p, perm);
perm              272 security/selinux/avc.c static inline void avc_quick_copy_xperms_decision(u8 perm,
perm              280 security/selinux/avc.c 	u8 i = perm >> 5;
perm              386 security/selinux/avc.c 					u8 perm,
perm              396 security/selinux/avc.c 			if (avc_xperms_has_perm(xpd, perm, XPERMS_DONTAUDIT))
perm              404 security/selinux/avc.c 			if (!avc_xperms_has_perm(xpd, perm, XPERMS_AUDITALLOW))
perm              417 security/selinux/avc.c 				   u8 perm, int result,
perm              423 security/selinux/avc.c 			requested, avd, xpd, perm, result, &denied);
perm              666 security/selinux/avc.c 	int i, perm;
perm              679 security/selinux/avc.c 	perm = 1;
perm              681 security/selinux/avc.c 		if ((perm & av) && perms[i]) {
perm              683 security/selinux/avc.c 			av &= ~perm;
perm              686 security/selinux/avc.c 		perm <<= 1;
perm             1599 security/selinux/hooks.c 	u32 perm = 0;
perm             1604 security/selinux/hooks.c 		perm = PROCESS__SIGCHLD;
perm             1608 security/selinux/hooks.c 		perm = PROCESS__SIGKILL;
perm             1612 security/selinux/hooks.c 		perm = PROCESS__SIGSTOP;
perm             1616 security/selinux/hooks.c 		perm = PROCESS__SIGNAL;
perm             1620 security/selinux/hooks.c 	return perm;
perm             3296 security/selinux/hooks.c 	u32 perm;
perm             3309 security/selinux/hooks.c 		perm = FILE__WATCH_MOUNT;
perm             3312 security/selinux/hooks.c 		perm = FILE__WATCH_SB;
perm             3319 security/selinux/hooks.c 		perm = FILE__WATCH;
perm             3327 security/selinux/hooks.c 		perm |= FILE__WATCH_WITH_PERM;
perm             3331 security/selinux/hooks.c 		perm |= FILE__WATCH_READS;
perm             3333 security/selinux/hooks.c 	return path_has_perm(current_cred(), path, perm);
perm             3829 security/selinux/hooks.c 	u32 perm;
perm             3838 security/selinux/hooks.c 		perm = signal_to_av(SIGIO); /* as per send_sigio_to_task */
perm             3840 security/selinux/hooks.c 		perm = signal_to_av(signum);
perm             3844 security/selinux/hooks.c 			    SECCLASS_PROCESS, perm, NULL);
perm             4147 security/selinux/hooks.c 	u32 perm;
perm             4150 security/selinux/hooks.c 		perm = PROCESS__SIGNULL; /* null signal; existence test */
perm             4152 security/selinux/hooks.c 		perm = signal_to_av(sig);
perm             4158 security/selinux/hooks.c 			    secid, task_sid(p), SECCLASS_PROCESS, perm, NULL);
perm             4733 security/selinux/hooks.c 		u32 sid, perm;
perm             4769 security/selinux/hooks.c 			perm = TCP_SOCKET__NAME_CONNECT;
perm             4772 security/selinux/hooks.c 			perm = DCCP_SOCKET__NAME_CONNECT;
perm             4775 security/selinux/hooks.c 			perm = SCTP_SOCKET__NAME_CONNECT;
perm             4784 security/selinux/hooks.c 				   sksec->sid, sid, sksec->sclass, perm, &ad);
perm             5531 security/selinux/hooks.c 	u32 perm;
perm             5545 security/selinux/hooks.c 		rc = selinux_nlmsg_lookup(sclass, nlh->nlmsg_type, &perm);
perm             5547 security/selinux/hooks.c 			rc = sock_has_perm(sk, perm);
perm             6579 security/selinux/hooks.c 				  unsigned perm)
perm             6588 security/selinux/hooks.c 	if (perm == 0)
perm             6597 security/selinux/hooks.c 			    sid, ksec->sid, SECCLASS_KEY, perm, NULL);
perm              166 security/selinux/include/avc.h 			   u8 driver, u8 perm, struct common_audit_data *ad);
perm              392 security/selinux/include/security.h extern int selinux_nlmsg_lookup(u16 sclass, u16 nlmsg_type, u32 *perm);
perm              435 security/selinux/netlabel.c 	u32 perm;
perm              454 security/selinux/netlabel.c 		perm = UDP_SOCKET__RECVFROM;
perm              457 security/selinux/netlabel.c 		perm = TCP_SOCKET__RECVFROM;
perm              460 security/selinux/netlabel.c 		perm = RAWIP_SOCKET__RECVFROM;
perm              464 security/selinux/netlabel.c 			  sksec->sid, nlbl_sid, sksec->sclass, perm, ad);
perm               25 security/selinux/nlmsgtab.c 	u32	perm;
perm              144 security/selinux/nlmsgtab.c static int nlmsg_perm(u16 nlmsg_type, u32 *perm, const struct nlmsg_perm *tab, size_t tabsize)
perm              150 security/selinux/nlmsgtab.c 			*perm = tab[i].perm;
perm              158 security/selinux/nlmsgtab.c int selinux_nlmsg_lookup(u16 sclass, u16 nlmsg_type, u32 *perm)
perm              170 security/selinux/nlmsgtab.c 		err = nlmsg_perm(nlmsg_type, perm, nlmsg_route_perms,
perm              175 security/selinux/nlmsgtab.c 		err = nlmsg_perm(nlmsg_type, perm, nlmsg_tcpdiag_perms,
perm              185 security/selinux/nlmsgtab.c 		err = nlmsg_perm(nlmsg_type, perm, nlmsg_xfrm_perms,
perm              194 security/selinux/nlmsgtab.c 			*perm = NETLINK_AUDIT_SOCKET__NLMSG_RELAY;
perm              196 security/selinux/nlmsgtab.c 			err = nlmsg_perm(nlmsg_type, perm, nlmsg_audit_perms,
perm             1664 security/selinux/selinuxfs.c static inline unsigned long sel_perm_to_ino(u16 class, u32 perm)
perm             1666 security/selinux/selinuxfs.c 	return (class * (SEL_VEC_MAX + 1) + perm) | SEL_CLASS_INO_OFFSET;
perm             4236 security/smack/smack_lsm.c 				const struct cred *cred, unsigned perm)
perm             4247 security/smack/smack_lsm.c 	if (perm & ~KEY_NEED_ALL)
perm             4273 security/smack/smack_lsm.c 	if (perm & (KEY_NEED_READ | KEY_NEED_SEARCH | KEY_NEED_VIEW))
perm             4275 security/smack/smack_lsm.c 	if (perm & (KEY_NEED_WRITE | KEY_NEED_LINK | KEY_NEED_SETATTR))
perm              262 security/smack/smackfs.c 	int perm = 0;
perm              271 security/smack/smackfs.c 			perm |= MAY_READ;
perm              275 security/smack/smackfs.c 			perm |= MAY_WRITE;
perm              279 security/smack/smackfs.c 			perm |= MAY_EXEC;
perm              283 security/smack/smackfs.c 			perm |= MAY_APPEND;
perm              287 security/smack/smackfs.c 			perm |= MAY_TRANSMUTE;
perm              291 security/smack/smackfs.c 			perm |= MAY_LOCK;
perm              295 security/smack/smackfs.c 			perm |= MAY_BRINGUP;
perm              298 security/smack/smackfs.c 			return perm;
perm             1408 security/tomoyo/common.c 		const u16 perm = ptr->perm;
perm             1411 security/tomoyo/common.c 			if (!(perm & (1 << bit)))
perm             1439 security/tomoyo/common.c 		const u8 perm = ptr->perm;
perm             1442 security/tomoyo/common.c 			if (!(perm & (1 << bit)))
perm             1460 security/tomoyo/common.c 		const u8 perm = ptr->perm;
perm             1463 security/tomoyo/common.c 			if (!(perm & (1 << bit)))
perm             1481 security/tomoyo/common.c 		const u8 perm = ptr->perm;
perm             1484 security/tomoyo/common.c 			if (!(perm & (1 << bit)))
perm             1504 security/tomoyo/common.c 		const u8 perm = ptr->perm;
perm             1507 security/tomoyo/common.c 			if (!(perm & (1 << bit)))
perm             1537 security/tomoyo/common.c 		const u8 perm = ptr->perm;
perm             1540 security/tomoyo/common.c 			if (!(perm & (1 << bit)))
perm              711 security/tomoyo/common.h 	u16 perm; /* Bitmask of values in "enum tomoyo_path_acl_index". */
perm              722 security/tomoyo/common.h 	u8 perm;
perm              730 security/tomoyo/common.h 	u8 perm; /* Bitmask of values in "enum tomoyo_mkdev_acl_index". */
perm              742 security/tomoyo/common.h 	u8 perm; /* Bitmask of values in "enum tomoyo_path2_acl_index". */
perm              766 security/tomoyo/common.h 	u8 perm; /* Bitmask of values in "enum tomoyo_network_acl_index" */
perm              775 security/tomoyo/common.h 	u8 perm; /* Bitmask of values in "enum tomoyo_network_acl_index" */
perm              118 security/tomoyo/domain.c 		      ->perm == 1 << TOMOYO_TYPE_EXECUTE))
perm              258 security/tomoyo/file.c 	if (acl->perm & (1 << r->param.path.operation)) {
perm              281 security/tomoyo/file.c 	return (acl->perm & (1 << r->param.path_number.operation)) &&
perm              302 security/tomoyo/file.c 	return (acl->perm & (1 << r->param.path2.operation)) &&
perm              322 security/tomoyo/file.c 	return (acl->perm & (1 << r->param.mkdev.operation)) &&
perm              364 security/tomoyo/file.c 		->perm;
perm              365 security/tomoyo/file.c 	u16 perm = *a_perm;
perm              366 security/tomoyo/file.c 	const u16 b_perm = container_of(b, struct tomoyo_path_acl, head)->perm;
perm              369 security/tomoyo/file.c 		perm &= ~b_perm;
perm              371 security/tomoyo/file.c 		perm |= b_perm;
perm              372 security/tomoyo/file.c 	*a_perm = perm;
perm              373 security/tomoyo/file.c 	return !perm;
perm              386 security/tomoyo/file.c static int tomoyo_update_path_acl(const u16 perm,
perm              391 security/tomoyo/file.c 		.perm = perm
perm              439 security/tomoyo/file.c 					 head)->perm;
perm              440 security/tomoyo/file.c 	u8 perm = *a_perm;
perm              442 security/tomoyo/file.c 		->perm;
perm              445 security/tomoyo/file.c 		perm &= ~b_perm;
perm              447 security/tomoyo/file.c 		perm |= b_perm;
perm              448 security/tomoyo/file.c 	*a_perm = perm;
perm              449 security/tomoyo/file.c 	return !perm;
perm              462 security/tomoyo/file.c static int tomoyo_update_mkdev_acl(const u8 perm,
perm              467 security/tomoyo/file.c 		.perm = perm
perm              519 security/tomoyo/file.c 		->perm;
perm              520 security/tomoyo/file.c 	u8 perm = *a_perm;
perm              521 security/tomoyo/file.c 	const u8 b_perm = container_of(b, struct tomoyo_path2_acl, head)->perm;
perm              524 security/tomoyo/file.c 		perm &= ~b_perm;
perm              526 security/tomoyo/file.c 		perm |= b_perm;
perm              527 security/tomoyo/file.c 	*a_perm = perm;
perm              528 security/tomoyo/file.c 	return !perm;
perm              541 security/tomoyo/file.c static int tomoyo_update_path2_acl(const u8 perm,
perm              546 security/tomoyo/file.c 		.perm = perm
perm              657 security/tomoyo/file.c 					  head)->perm;
perm              658 security/tomoyo/file.c 	u8 perm = *a_perm;
perm              660 security/tomoyo/file.c 		->perm;
perm              663 security/tomoyo/file.c 		perm &= ~b_perm;
perm              665 security/tomoyo/file.c 		perm |= b_perm;
perm              666 security/tomoyo/file.c 	*a_perm = perm;
perm              667 security/tomoyo/file.c 	return !perm;
perm              678 security/tomoyo/file.c static int tomoyo_update_path_number_acl(const u8 perm,
perm              683 security/tomoyo/file.c 		.perm = perm
perm             1014 security/tomoyo/file.c 	u16 perm = 0;
perm             1020 security/tomoyo/file.c 			perm |= 1 << type;
perm             1021 security/tomoyo/file.c 	if (perm)
perm             1022 security/tomoyo/file.c 		return tomoyo_update_path_acl(perm, param);
perm             1026 security/tomoyo/file.c 			perm |= 1 << type;
perm             1027 security/tomoyo/file.c 	if (perm)
perm             1028 security/tomoyo/file.c 		return tomoyo_update_path2_acl(perm, param);
perm             1032 security/tomoyo/file.c 			perm |= 1 << type;
perm             1033 security/tomoyo/file.c 	if (perm)
perm             1034 security/tomoyo/file.c 		return tomoyo_update_path_number_acl(perm, param);
perm             1038 security/tomoyo/file.c 			perm |= 1 << type;
perm             1039 security/tomoyo/file.c 	if (perm)
perm             1040 security/tomoyo/file.c 		return tomoyo_update_mkdev_acl(perm, param);
perm              235 security/tomoyo/network.c 		&container_of(a, struct tomoyo_inet_acl, head)->perm;
perm              236 security/tomoyo/network.c 	u8 perm = *a_perm;
perm              237 security/tomoyo/network.c 	const u8 b_perm = container_of(b, struct tomoyo_inet_acl, head)->perm;
perm              240 security/tomoyo/network.c 		perm &= ~b_perm;
perm              242 security/tomoyo/network.c 		perm |= b_perm;
perm              243 security/tomoyo/network.c 	*a_perm = perm;
perm              244 security/tomoyo/network.c 	return !perm;
perm              261 security/tomoyo/network.c 		&container_of(a, struct tomoyo_unix_acl, head)->perm;
perm              262 security/tomoyo/network.c 	u8 perm = *a_perm;
perm              263 security/tomoyo/network.c 	const u8 b_perm = container_of(b, struct tomoyo_unix_acl, head)->perm;
perm              266 security/tomoyo/network.c 		perm &= ~b_perm;
perm              268 security/tomoyo/network.c 		perm |= b_perm;
perm              269 security/tomoyo/network.c 	*a_perm = perm;
perm              270 security/tomoyo/network.c 	return !perm;
perm              295 security/tomoyo/network.c 			e.perm |= 1 << type;
perm              296 security/tomoyo/network.c 	if (e.protocol == TOMOYO_SOCK_MAX || !e.perm)
perm              340 security/tomoyo/network.c 			e.perm |= 1 << type;
perm              341 security/tomoyo/network.c 	if (e.protocol == TOMOYO_SOCK_MAX || !e.perm)
perm              426 security/tomoyo/network.c 	if (!(acl->perm & (1 << r->param.inet_network.operation)) ||
perm              455 security/tomoyo/network.c 	return (acl->perm & (1 << r->param.unix_network.operation)) &&
perm              224 security/tomoyo/tomoyo.c 	const unsigned int perm = mode & S_IALLUGO;
perm              236 security/tomoyo/tomoyo.c 	return tomoyo_mkdev_perm(type, &path, perm, dev);
perm              246 security/tomoyo/tomoyo.c 	return tomoyo_path_number_perm(type, &path, perm);
perm             1034 security/tomoyo/util.c 		u16 perm;
perm             1041 security/tomoyo/util.c 			perm = container_of(ptr, struct tomoyo_path_acl, head)
perm             1042 security/tomoyo/util.c 				->perm;
perm             1045 security/tomoyo/util.c 			perm = container_of(ptr, struct tomoyo_path2_acl, head)
perm             1046 security/tomoyo/util.c 				->perm;
perm             1049 security/tomoyo/util.c 			perm = container_of(ptr, struct tomoyo_path_number_acl,
perm             1050 security/tomoyo/util.c 					    head)->perm;
perm             1053 security/tomoyo/util.c 			perm = container_of(ptr, struct tomoyo_mkdev_acl,
perm             1054 security/tomoyo/util.c 					    head)->perm;
perm             1057 security/tomoyo/util.c 			perm = container_of(ptr, struct tomoyo_inet_acl,
perm             1058 security/tomoyo/util.c 					    head)->perm;
perm             1061 security/tomoyo/util.c 			perm = container_of(ptr, struct tomoyo_unix_acl,
perm             1062 security/tomoyo/util.c 					    head)->perm;
perm             1065 security/tomoyo/util.c 			perm = 0;
perm             1068 security/tomoyo/util.c 			perm = 1;
perm             1071 security/tomoyo/util.c 			if (perm & (1 << i))
perm             1413 sound/core/control.c 		int perm;
perm             1424 sound/core/control.c 		if (op_flag == pairs[i].op && (vd->access & pairs[i].perm))
perm              317 sound/core/seq/oss/seq_oss_midi.c 	int perm;
perm              330 sound/core/seq/oss/seq_oss_midi.c 	perm = 0;
perm              332 sound/core/seq/oss/seq_oss_midi.c 		perm |= PERM_WRITE;
perm              334 sound/core/seq/oss/seq_oss_midi.c 		perm |= PERM_READ;
perm              335 sound/core/seq/oss/seq_oss_midi.c 	perm &= mdev->flags;
perm              336 sound/core/seq/oss/seq_oss_midi.c 	if (perm == 0) {
perm              342 sound/core/seq/oss/seq_oss_midi.c 	if ((mdev->opened & perm) == perm) {
perm              347 sound/core/seq/oss/seq_oss_midi.c 	perm &= ~mdev->opened;
perm              351 sound/core/seq/oss/seq_oss_midi.c 	if (perm & PERM_WRITE) {
perm              358 sound/core/seq/oss/seq_oss_midi.c 	if (perm & PERM_READ) {
perm             2418 sound/core/seq/seq_clientmgr.c #define FLAG_PERM_RD(perm) ((perm) & SNDRV_SEQ_PORT_CAP_READ ? ((perm) & SNDRV_SEQ_PORT_CAP_SUBS_READ ? 'R' : 'r') : '-')
perm             2419 sound/core/seq/seq_clientmgr.c #define FLAG_PERM_WR(perm) ((perm) & SNDRV_SEQ_PORT_CAP_WRITE ? ((perm) & SNDRV_SEQ_PORT_CAP_SUBS_WRITE ? 'W' : 'w') : '-')
perm             2420 sound/core/seq/seq_clientmgr.c #define FLAG_PERM_EX(perm) ((perm) & SNDRV_SEQ_PORT_CAP_NO_EXPORT ? '-' : 'e')
perm             2422 sound/core/seq/seq_clientmgr.c #define FLAG_PERM_DUPLEX(perm) ((perm) & SNDRV_SEQ_PORT_CAP_DUPLEX ? 'X' : '-')
perm                5 tools/include/linux/module.h #define module_param(name, type, perm)
perm              207 tools/testing/selftests/capabilities/test_execve.c 				    bool eff, bool perm, bool inh, bool ambient)
perm              210 tools/testing/selftests/capabilities/test_execve.c 	      (perm ? "1" : "0"), (inh ? "1" : "0"), (ambient ? "1" : "0"),
perm              215 tools/testing/selftests/capabilities/test_execve.c static void exec_validate_cap(bool eff, bool perm, bool inh, bool ambient)
perm              217 tools/testing/selftests/capabilities/test_execve.c 	exec_other_validate_cap("./validate_cap", eff, perm, inh, ambient);
perm               71 tools/testing/selftests/kvm/include/kvm_util.h struct kvm_vm *vm_create(enum vm_guest_mode mode, uint64_t phy_pages, int perm);
perm               72 tools/testing/selftests/kvm/include/kvm_util.h struct kvm_vm *_vm_create(enum vm_guest_mode mode, uint64_t phy_pages, int perm);
perm               74 tools/testing/selftests/kvm/include/kvm_util.h void kvm_vm_restart(struct kvm_vm *vmp, int perm);
perm               88 tools/testing/selftests/kvm/lib/kvm_util.c static void vm_open(struct kvm_vm *vm, int perm)
perm               90 tools/testing/selftests/kvm/lib/kvm_util.c 	vm->kvm_fd = open(KVM_DEV_PATH, perm);
perm              135 tools/testing/selftests/kvm/lib/kvm_util.c struct kvm_vm *_vm_create(enum vm_guest_mode mode, uint64_t phy_pages, int perm)
perm              215 tools/testing/selftests/kvm/lib/kvm_util.c 	vm_open(vm, perm);
perm              237 tools/testing/selftests/kvm/lib/kvm_util.c struct kvm_vm *vm_create(enum vm_guest_mode mode, uint64_t phy_pages, int perm)
perm              239 tools/testing/selftests/kvm/lib/kvm_util.c 	return _vm_create(mode, phy_pages, perm);
perm              255 tools/testing/selftests/kvm/lib/kvm_util.c void kvm_vm_restart(struct kvm_vm *vmp, int perm)
perm              259 tools/testing/selftests/kvm/lib/kvm_util.c 	vm_open(vmp, perm);