/drivers/vfio/pci/ |
D | vfio_pci_config.c | 113 struct perm_bits *perm, int offset, __le32 *val); 115 struct perm_bits *perm, int offset, __le32 val); 176 int count, struct perm_bits *perm, in vfio_default_config_read() argument 183 memcpy(&virt, perm->virt + offset, count); in vfio_default_config_read() 202 int count, struct perm_bits *perm, in vfio_default_config_write() argument 207 memcpy(&write, perm->write + offset, count); in vfio_default_config_write() 212 memcpy(&virt, perm->virt + offset, count); in vfio_default_config_write() 249 int count, struct perm_bits *perm, in vfio_direct_config_read() argument 274 int count, struct perm_bits *perm, in vfio_raw_config_write() argument 287 int count, struct perm_bits *perm, in vfio_raw_config_read() argument [all …]
|
/drivers/tty/vt/ |
D | vt_ioctl.c | 284 unsigned long arg, bool perm) in vt_k_ioctl() argument 293 if (!perm) in vt_k_ioctl() 307 if (!perm) in vt_k_ioctl() 377 if (!perm) in vt_k_ioctl() 397 if (!perm) in vt_k_ioctl() 420 perm = 0; in vt_k_ioctl() 421 return vt_do_kbkeycode_ioctl(cmd, up, perm); in vt_k_ioctl() 425 return vt_do_kdsk_ioctl(cmd, up, perm, console); in vt_k_ioctl() 429 return vt_do_kdgkb_ioctl(cmd, up, perm); in vt_k_ioctl() 437 return vt_do_diacrit(cmd, up, perm); in vt_k_ioctl() [all …]
|
D | keyboard.c | 1691 int vt_do_diacrit(unsigned int cmd, void __user *udp, int perm) in vt_do_diacrit() argument 1767 if (!perm) in vt_do_diacrit() 1804 if (!perm) in vt_do_diacrit() 1902 int perm) in vt_do_kbkeycode_ioctl() argument 1916 if (!perm) in vt_do_kbkeycode_ioctl() 2022 int vt_do_kdsk_ioctl(int cmd, struct kbentry __user *user_kbe, int perm, in vt_do_kdsk_ioctl() argument 2037 if (!perm || !capable(CAP_SYS_TTY_CONFIG)) in vt_do_kdsk_ioctl() 2060 int vt_do_kdgkb_ioctl(int cmd, struct kbsentry __user *user_kdgkb, int perm) in vt_do_kdgkb_ioctl() argument 2091 if (!perm || !capable(CAP_SYS_TTY_CONFIG)) in vt_do_kdgkb_ioctl() 2112 int vt_do_kdskled(unsigned int console, int cmd, unsigned long arg, int perm) in vt_do_kdskled() argument [all …]
|
/drivers/virt/gunyah/ |
D | gunyah_qcom.c | 38 new_perms[n].perm |= QCOM_SCM_PERM_EXEC; in qcom_scm_gunyah_rm_pre_mem_share() 40 new_perms[n].perm |= QCOM_SCM_PERM_WRITE; in qcom_scm_gunyah_rm_pre_mem_share() 42 new_perms[n].perm |= QCOM_SCM_PERM_READ; in qcom_scm_gunyah_rm_pre_mem_share() 71 new_perms[0].perm = QCOM_SCM_PERM_EXEC | QCOM_SCM_PERM_WRITE | in qcom_scm_gunyah_rm_pre_mem_share() 95 new_perms.perm = QCOM_SCM_PERM_EXEC | QCOM_SCM_PERM_WRITE | in qcom_scm_gunyah_rm_post_mem_reclaim() 128 new_perms[0].perm = QCOM_SCM_PERM_EXEC | QCOM_SCM_PERM_WRITE | in qcom_scm_gunyah_rm_pre_demand_page() 134 new_perms[1].perm = QCOM_SCM_PERM_EXEC | QCOM_SCM_PERM_WRITE | in qcom_scm_gunyah_rm_pre_demand_page() 154 new_perms.perm = QCOM_SCM_PERM_EXEC | QCOM_SCM_PERM_WRITE | in qcom_scm_gunyah_rm_release_demand_page()
|
/drivers/vhost/ |
D | iotlb.c | 52 u64 addr, unsigned int perm, in vhost_iotlb_add_range_ctx() argument 66 perm, opaque); in vhost_iotlb_add_range_ctx() 90 map->perm = perm; in vhost_iotlb_add_range_ctx() 105 u64 addr, unsigned int perm) in vhost_iotlb_add_range() argument 108 addr, perm, NULL); in vhost_iotlb_add_range()
|
D | vdpa.c | 821 if (map->perm & VHOST_ACCESS_WO) in vhost_vdpa_pa_unmap() 858 static int perm_to_iommu_flags(u32 perm) in perm_to_iommu_flags() argument 862 switch (perm) { in perm_to_iommu_flags() 881 u64 iova, u64 size, u64 pa, u32 perm, void *opaque) in vhost_vdpa_map() argument 890 pa, perm, opaque); in vhost_vdpa_map() 895 r = ops->dma_map(vdpa, asid, iova, size, pa, perm, opaque); in vhost_vdpa_map() 901 perm_to_iommu_flags(perm), GFP_KERNEL); in vhost_vdpa_map() 933 u64 iova, u64 size, u64 uaddr, u32 perm) in vhost_vdpa_va_map() argument 963 perm, map_file); in vhost_vdpa_va_map() 984 u64 iova, u64 size, u64 uaddr, u32 perm) in vhost_vdpa_pa_map() argument [all …]
|
/drivers/s390/char/ |
D | keyboard.c | 360 int cmd, int perm) in do_kdsk_ioctl() argument 391 if (!perm) in do_kdsk_ioctl() 436 int cmd, int perm) in do_kdgkb_ioctl() argument 465 if (!perm) in do_kdgkb_ioctl() 482 int perm; in kbd_ioctl() local 492 perm = current->signal->tty == tty || capable(CAP_SYS_TTY_CONFIG); in kbd_ioctl() 499 return do_kdsk_ioctl(kbd, argp, cmd, perm); in kbd_ioctl() 502 return do_kdgkb_ioctl(kbd, argp, cmd, perm); in kbd_ioctl() 538 if (!perm) in kbd_ioctl() 558 if (!perm) in kbd_ioctl()
|
/drivers/soc/qcom/ |
D | rmtfs_mem.c | 256 perms[0].perm = QCOM_SCM_PERM_RW; in qcom_rmtfs_mem_probe() 260 perms[i + 1].perm = QCOM_SCM_PERM_RW; in qcom_rmtfs_mem_probe() 287 struct qcom_scm_vmperm perm; in qcom_rmtfs_mem_remove() local 290 perm.vmid = QCOM_SCM_VMID_HLOS; in qcom_rmtfs_mem_remove() 291 perm.perm = QCOM_SCM_PERM_RW; in qcom_rmtfs_mem_remove() 294 &rmtfs_mem->perms, &perm, 1); in qcom_rmtfs_mem_remove()
|
/drivers/iommu/ |
D | iommu-sva.c | 175 if (prm->perm & IOMMU_FAULT_PERM_READ) in iommu_sva_handle_iopf() 178 if (prm->perm & IOMMU_FAULT_PERM_WRITE) { in iommu_sva_handle_iopf() 183 if (prm->perm & IOMMU_FAULT_PERM_EXEC) { in iommu_sva_handle_iopf() 188 if (!(prm->perm & IOMMU_FAULT_PERM_PRIV)) in iommu_sva_handle_iopf()
|
/drivers/gpu/drm/i915/ |
D | i915_params.c | 44 #define i915_param_named(name, T, perm, desc) \ argument 45 module_param_named(name, i915_modparams.name, T, perm); \ 47 #define i915_param_named_unsafe(name, T, perm, desc) \ argument 48 module_param_named_unsafe(name, i915_modparams.name, T, perm); \
|
/drivers/memory/tegra/ |
D | mc.c | 599 char perm[7]; in tegra30_mc_handle_irq() local 685 perm[0] = ' '; in tegra30_mc_handle_irq() 686 perm[1] = '['; in tegra30_mc_handle_irq() 689 perm[2] = 'R'; in tegra30_mc_handle_irq() 691 perm[2] = '-'; in tegra30_mc_handle_irq() 694 perm[3] = 'W'; in tegra30_mc_handle_irq() 696 perm[3] = '-'; in tegra30_mc_handle_irq() 699 perm[4] = '-'; in tegra30_mc_handle_irq() 701 perm[4] = 'S'; in tegra30_mc_handle_irq() 703 perm[5] = ']'; in tegra30_mc_handle_irq() [all …]
|
/drivers/vdpa/mlx5/core/ |
D | mr.c | 66 MLX5_SET(mkc, mkc, lw, !!(mr->perm & VHOST_MAP_WO)); in create_direct_mr() 67 MLX5_SET(mkc, mkc, lr, !!(mr->perm & VHOST_MAP_RO)); in create_direct_mr() 304 static int add_direct_chain(struct mlx5_vdpa_dev *mvdev, u64 start, u64 size, u8 perm, in add_direct_chain() argument 326 dmr->perm = perm; in add_direct_chain() 375 if (pe == map->start && pperm == map->perm) { in create_user_mr() 393 pperm = map->perm; in create_user_mr() 467 map->addr, map->perm); in dup_iotlb()
|
D | mlx5_vdpa.h | 17 u32 perm; member
|
/drivers/remoteproc/ |
D | qcom_q6v5_pas.c | 594 struct qcom_scm_vmperm perm; in adsp_assign_memory_region() local 610 perm.vmid = QCOM_SCM_VMID_MSS_MSA; in adsp_assign_memory_region() 611 perm.perm = QCOM_SCM_PERM_RW; in adsp_assign_memory_region() 620 &perm, 1); in adsp_assign_memory_region() 631 struct qcom_scm_vmperm perm; in adsp_unassign_memory_region() local 637 perm.vmid = QCOM_SCM_VMID_HLOS; in adsp_unassign_memory_region() 638 perm.perm = QCOM_SCM_PERM_RW; in adsp_unassign_memory_region() 643 &perm, 1); in adsp_unassign_memory_region()
|
/drivers/net/ethernet/mellanox/mlx5/core/ |
D | alloc.c | 236 void mlx5_fill_page_frag_array_perm(struct mlx5_frag_buf *buf, __be64 *pas, u8 perm) in mlx5_fill_page_frag_array_perm() argument 240 WARN_ON(perm & 0xfc); in mlx5_fill_page_frag_array_perm() 242 pas[i] = cpu_to_be64(buf->frags[i].map | perm); in mlx5_fill_page_frag_array_perm()
|
/drivers/firmware/arm_scmi/ |
D | clock.c | 307 u32 perm; in scmi_clock_get_permissions() local 311 sizeof(clk_id), sizeof(perm), &t); in scmi_clock_get_permissions() 319 perm = get_unaligned_le32(t->rx.buf); in scmi_clock_get_permissions() 321 clk->state_ctrl_forbidden = !(perm & CLOCK_STATE_CONTROL_ALLOWED); in scmi_clock_get_permissions() 322 clk->rate_ctrl_forbidden = !(perm & CLOCK_RATE_CONTROL_ALLOWED); in scmi_clock_get_permissions() 323 clk->parent_ctrl_forbidden = !(perm & CLOCK_PARENT_CONTROL_ALLOWED); in scmi_clock_get_permissions()
|
/drivers/scsi/cxlflash/ |
D | sislite.h | 531 #define SISL_RHT_FP(fmt, perm) (((fmt) << 4) | (perm)) argument
|
/drivers/s390/block/ |
D | dasd_fba.h | 19 unsigned char perm:2; /* Permissions on this extent */ member
|
D | dasd_fba.c | 89 (data->mask).perm = 0x0; in define_extent() 91 (data->mask).perm = 0x1; in define_extent() 93 data->mask.perm = 0x2; in define_extent()
|
/drivers/vdpa/vdpa_user/ |
D | iova_domain.c | 22 u64 addr, unsigned int perm, in vduse_iotlb_add_range() argument 36 addr, perm, map_file); in vduse_iotlb_add_range() 74 map->addr, map->perm, in vduse_domain_set_map()
|
/drivers/net/wireless/marvell/libertas/ |
D | debugfs.c | 656 umode_t perm; member 715 files->perm, in lbs_debugfs_init_one() 726 files->perm, in lbs_debugfs_init_one() 737 files->perm, in lbs_debugfs_init_one()
|
/drivers/misc/ |
D | fastrpc.c | 318 struct qcom_scm_vmperm perm; in fastrpc_free_map() local 323 perm.vmid = QCOM_SCM_VMID_HLOS; in fastrpc_free_map() 324 perm.perm = QCOM_SCM_PERM_RWX; in fastrpc_free_map() 326 &src_perms, &perm, 1); in fastrpc_free_map() 813 dst_perms[0].perm = QCOM_SCM_PERM_RW; in fastrpc_map_create() 815 dst_perms[1].perm = QCOM_SCM_PERM_RWX; in fastrpc_map_create() 1338 dst_perms.perm = QCOM_SCM_PERM_RWX; in fastrpc_init_create_static_process() 2305 data->vmperms[i].perm = QCOM_SCM_PERM_RWX; in fastrpc_rpmsg_probe()
|
/drivers/net/wireless/ath/ath10k/ |
D | qmi.c | 43 dst_perms[0].perm = QCOM_SCM_PERM_RW; in ath10k_qmi_map_msa_permission() 45 dst_perms[1].perm = QCOM_SCM_PERM_RW; in ath10k_qmi_map_msa_permission() 51 dst_perms[2].perm = QCOM_SCM_PERM_RW; in ath10k_qmi_map_msa_permission() 77 dst_perms.perm = QCOM_SCM_PERM_RW; in ath10k_qmi_unmap_msa_permission()
|
/drivers/iommu/arm/arm-smmu-v3/ |
D | arm-smmu-v3.c | 1261 u32 perm = 0; in arm_smmu_handle_evt() local 1290 perm |= IOMMU_FAULT_PERM_READ; in arm_smmu_handle_evt() 1292 perm |= IOMMU_FAULT_PERM_WRITE; in arm_smmu_handle_evt() 1295 perm |= IOMMU_FAULT_PERM_EXEC; in arm_smmu_handle_evt() 1298 perm |= IOMMU_FAULT_PERM_PRIV; in arm_smmu_handle_evt() 1305 .perm = perm, in arm_smmu_handle_evt() 1318 .perm = perm, in arm_smmu_handle_evt()
|
/drivers/net/fddi/skfp/h/ |
D | fplustm.h | 221 u_char perm ; /* flag: permanent */ member
|