Home
last modified time | relevance | path

Searched refs:perm (Results 1 – 25 of 39) sorted by relevance

12

/drivers/vfio/pci/
Dvfio_pci_config.c112 struct perm_bits *perm, int offset, __le32 *val);
114 struct perm_bits *perm, int offset, __le32 val);
175 int count, struct perm_bits *perm, in vfio_default_config_read() argument
182 memcpy(&virt, perm->virt + offset, count); in vfio_default_config_read()
201 int count, struct perm_bits *perm, in vfio_default_config_write() argument
206 memcpy(&write, perm->write + offset, count); in vfio_default_config_write()
211 memcpy(&virt, perm->virt + offset, count); in vfio_default_config_write()
248 int count, struct perm_bits *perm, in vfio_direct_config_read() argument
273 int count, struct perm_bits *perm, in vfio_raw_config_write() argument
286 int count, struct perm_bits *perm, in vfio_raw_config_read() argument
[all …]
/drivers/tty/vt/
Dvt_ioctl.c284 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 …]
Dkeyboard.c1679 int vt_do_diacrit(unsigned int cmd, void __user *udp, int perm) in vt_do_diacrit() argument
1755 if (!perm) in vt_do_diacrit()
1792 if (!perm) in vt_do_diacrit()
1890 int perm) in vt_do_kbkeycode_ioctl() argument
1904 if (!perm) in vt_do_kbkeycode_ioctl()
2010 int vt_do_kdsk_ioctl(int cmd, struct kbentry __user *user_kbe, int perm, in vt_do_kdsk_ioctl() argument
2025 if (!perm || !capable(CAP_SYS_TTY_CONFIG)) in vt_do_kdsk_ioctl()
2048 int vt_do_kdgkb_ioctl(int cmd, struct kbsentry __user *user_kdgkb, int perm) in vt_do_kdgkb_ioctl() argument
2079 if (!perm || !capable(CAP_SYS_TTY_CONFIG)) in vt_do_kdgkb_ioctl()
2100 int vt_do_kdskled(unsigned int console, int cmd, unsigned long arg, int perm) in vt_do_kdskled() argument
[all …]
/drivers/vhost/
Diotlb.c52 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()
Dvdpa.c536 if (map->perm & VHOST_ACCESS_WO) in vhost_vdpa_pa_unmap()
579 static int perm_to_iommu_flags(u32 perm) in perm_to_iommu_flags() argument
583 switch (perm) { in perm_to_iommu_flags()
602 u64 size, u64 pa, u32 perm, void *opaque) in vhost_vdpa_map() argument
610 pa, perm, opaque); in vhost_vdpa_map()
615 r = ops->dma_map(vdpa, iova, size, pa, perm, opaque); in vhost_vdpa_map()
621 perm_to_iommu_flags(perm)); in vhost_vdpa_map()
653 u64 iova, u64 size, u64 uaddr, u32 perm) in vhost_vdpa_va_map() argument
683 perm, map_file); in vhost_vdpa_va_map()
703 u64 iova, u64 size, u64 uaddr, u32 perm) in vhost_vdpa_pa_map() argument
[all …]
/drivers/memory/tegra/
Dmc.c527 char perm[7]; in tegra30_mc_handle_irq() local
566 perm[0] = ' '; in tegra30_mc_handle_irq()
567 perm[1] = '['; in tegra30_mc_handle_irq()
570 perm[2] = 'R'; in tegra30_mc_handle_irq()
572 perm[2] = '-'; in tegra30_mc_handle_irq()
575 perm[3] = 'W'; in tegra30_mc_handle_irq()
577 perm[3] = '-'; in tegra30_mc_handle_irq()
580 perm[4] = '-'; in tegra30_mc_handle_irq()
582 perm[4] = 'S'; in tegra30_mc_handle_irq()
584 perm[5] = ']'; in tegra30_mc_handle_irq()
[all …]
/drivers/vdpa/vdpa_sim/
Dvdpa_sim.c125 int perm = -EFAULT; in dir_to_perm() local
129 perm = VHOST_MAP_WO; in dir_to_perm()
132 perm = VHOST_MAP_RO; in dir_to_perm()
135 perm = VHOST_MAP_RW; in dir_to_perm()
141 return perm; in dir_to_perm()
145 size_t size, unsigned int perm) in vdpasim_map_range() argument
161 (u64)dma_addr + size - 1, (u64)paddr, perm); in vdpasim_map_range()
190 int perm = dir_to_perm(dir); in vdpasim_map_page() local
192 if (perm < 0) in vdpasim_map_page()
195 return vdpasim_map_range(vdpasim, paddr, size, perm); in vdpasim_map_page()
[all …]
/drivers/s390/char/
Dkeyboard.c360 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/
Drmtfs_mem.c240 perms[0].perm = QCOM_SCM_PERM_RW; in qcom_rmtfs_mem_probe()
242 perms[1].perm = QCOM_SCM_PERM_RW; in qcom_rmtfs_mem_probe()
268 struct qcom_scm_vmperm perm; in qcom_rmtfs_mem_remove() local
271 perm.vmid = QCOM_SCM_VMID_HLOS; in qcom_rmtfs_mem_remove()
272 perm.perm = QCOM_SCM_PERM_RW; in qcom_rmtfs_mem_remove()
275 &rmtfs_mem->perms, &perm, 1); in qcom_rmtfs_mem_remove()
/drivers/gpu/drm/i915/
Di915_params.c30 #define i915_param_named(name, T, perm, desc) \ argument
31 module_param_named(name, i915_modparams.name, T, perm); \
33 #define i915_param_named_unsafe(name, T, perm, desc) \ argument
34 module_param_named_unsafe(name, i915_modparams.name, T, perm); \
/drivers/vdpa/mlx5/core/
Dmr.c66 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
327 dmr->perm = perm; in add_direct_chain()
377 if (pe == map->start && pperm == map->perm) { in create_user_mr()
395 pperm = map->perm; in create_user_mr()
469 map->addr, map->perm); in dup_iotlb()
Dmlx5_vdpa.h17 u32 perm; member
/drivers/iommu/
Dio-pgfault.c97 if (prm->perm & IOMMU_FAULT_PERM_READ) in iopf_handle_single()
100 if (prm->perm & IOMMU_FAULT_PERM_WRITE) { in iopf_handle_single()
105 if (prm->perm & IOMMU_FAULT_PERM_EXEC) { in iopf_handle_single()
110 if (!(prm->perm & IOMMU_FAULT_PERM_PRIV)) in iopf_handle_single()
/drivers/net/ethernet/mellanox/mlx5/core/
Dalloc.c302 void mlx5_fill_page_frag_array_perm(struct mlx5_frag_buf *buf, __be64 *pas, u8 perm) in mlx5_fill_page_frag_array_perm() argument
306 WARN_ON(perm & 0xfc); in mlx5_fill_page_frag_array_perm()
308 pas[i] = cpu_to_be64(buf->frags[i].map | perm); in mlx5_fill_page_frag_array_perm()
/drivers/scsi/cxlflash/
Dsislite.h531 #define SISL_RHT_FP(fmt, perm) (((fmt) << 4) | (perm)) argument
/drivers/s390/block/
Ddasd_fba.h19 unsigned char perm:2; /* Permissions on this extent */ member
Ddasd_fba.c89 (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/
Diova_domain.c22 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()
Dvduse_dev.c813 static unsigned int perm_to_file_flags(u8 perm) in perm_to_file_flags() argument
817 switch (perm) { in perm_to_file_flags()
951 entry.perm = map->perm; in vduse_dev_ioctl()
963 ret = receive_fd(f, perm_to_file_flags(entry.perm)); in vduse_dev_ioctl()
/drivers/net/wireless/marvell/libertas/
Ddebugfs.c656 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/net/wireless/ath/ath10k/
Dqmi.c38 dst_perms[0].perm = QCOM_SCM_PERM_RW; in ath10k_qmi_map_msa_permission()
40 dst_perms[1].perm = QCOM_SCM_PERM_RW; in ath10k_qmi_map_msa_permission()
46 dst_perms[2].perm = QCOM_SCM_PERM_RW; in ath10k_qmi_map_msa_permission()
72 dst_perms.perm = QCOM_SCM_PERM_RW; in ath10k_qmi_unmap_msa_permission()
/drivers/net/fddi/skfp/h/
Dfplustm.h221 u_char perm ; /* flag: permanent */ member
/drivers/firmware/
Dqcom_scm.c41 __le32 perm; member
880 destvm->perm = cpu_to_le32(newvm->perm); in qcom_scm_assign_mem()
/drivers/iommu/arm/arm-smmu-v3/
Darm-smmu-v3.c1460 u32 perm = 0; in arm_smmu_handle_evt() local
1489 perm |= IOMMU_FAULT_PERM_READ; in arm_smmu_handle_evt()
1491 perm |= IOMMU_FAULT_PERM_WRITE; in arm_smmu_handle_evt()
1494 perm |= IOMMU_FAULT_PERM_EXEC; in arm_smmu_handle_evt()
1497 perm |= IOMMU_FAULT_PERM_PRIV; in arm_smmu_handle_evt()
1504 .perm = perm, in arm_smmu_handle_evt()
1517 .perm = perm, in arm_smmu_handle_evt()
/drivers/net/wireless/broadcom/brcm80211/brcmsmac/
Dmac80211_if.c1129 u8 perm[ETH_ALEN]; in brcms_attach() local
1185 memcpy(perm, &wl->pub->cur_etheraddr, ETH_ALEN); in brcms_attach()
1186 if (WARN_ON(!is_valid_ether_addr(perm))) in brcms_attach()
1188 SET_IEEE80211_PERM_ADDR(hw, perm); in brcms_attach()

12