Home
last modified time | relevance | path

Searched refs:perm (Results 1 – 25 of 36) 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.c1657 int vt_do_diacrit(unsigned int cmd, void __user *udp, int perm) in vt_do_diacrit() argument
1733 if (!perm) in vt_do_diacrit()
1770 if (!perm) in vt_do_diacrit()
1868 int perm) in vt_do_kbkeycode_ioctl() argument
1882 if (!perm) in vt_do_kbkeycode_ioctl()
1894 int vt_do_kdsk_ioctl(int cmd, struct kbentry __user *user_kbe, int perm, in vt_do_kdsk_ioctl() argument
1906 perm = 0; in vt_do_kdsk_ioctl()
1922 if (!perm) in vt_do_kdsk_ioctl()
2000 int vt_do_kdgkb_ioctl(int cmd, struct kbsentry __user *user_kdgkb, int perm) in vt_do_kdgkb_ioctl() argument
2012 perm = 0; in vt_do_kdgkb_ioctl()
[all …]
/drivers/memory/tegra/
Dmc.c441 char perm[7]; in tegra_mc_irq() local
480 perm[0] = ' '; in tegra_mc_irq()
481 perm[1] = '['; in tegra_mc_irq()
484 perm[2] = 'R'; in tegra_mc_irq()
486 perm[2] = '-'; in tegra_mc_irq()
489 perm[3] = 'W'; in tegra_mc_irq()
491 perm[3] = '-'; in tegra_mc_irq()
494 perm[4] = '-'; in tegra_mc_irq()
496 perm[4] = 'S'; in tegra_mc_irq()
498 perm[5] = ']'; in tegra_mc_irq()
[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/vdpa_sim/
Dvdpa_sim.c247 int perm = -EFAULT; in dir_to_perm() local
251 perm = VHOST_MAP_WO; in dir_to_perm()
254 perm = VHOST_MAP_RO; in dir_to_perm()
257 perm = VHOST_MAP_RW; in dir_to_perm()
263 return perm; in dir_to_perm()
274 int ret, perm = dir_to_perm(dir); in vdpasim_map_page() local
276 if (perm < 0) in vdpasim_map_page()
638 map->last, map->addr, map->perm); in vdpasim_set_map()
652 u64 pa, u32 perm) in vdpasim_dma_map() argument
659 perm); in vdpasim_dma_map()
/drivers/vhost/
Diotlb.c51 u64 addr, unsigned int perm) in vhost_iotlb_add_range() argument
73 map->perm = perm; in vhost_iotlb_add_range()
Dvdpa.c526 if (map->perm & VHOST_ACCESS_WO) in vhost_vdpa_iotlb_unmap()
544 static int perm_to_iommu_flags(u32 perm) in perm_to_iommu_flags() argument
548 switch (perm) { in perm_to_iommu_flags()
567 u64 iova, u64 size, u64 pa, u32 perm) in vhost_vdpa_map() argument
575 pa, perm); in vhost_vdpa_map()
580 r = ops->dma_map(vdpa, iova, size, pa, perm); in vhost_vdpa_map()
586 perm_to_iommu_flags(perm)); in vhost_vdpa_map()
643 if (msg->perm & VHOST_ACCESS_WO) in vhost_vdpa_process_iotlb_update()
691 msg->perm); in vhost_vdpa_process_iotlb_update()
720 map_pfn << PAGE_SHIFT, msg->perm); in vhost_vdpa_process_iotlb_update()
Dvhost.c1107 if (!umem_access_ok(msg->uaddr, msg->size, msg->perm)) { in vhost_process_iotlb_msg()
1114 msg->uaddr, msg->perm)) { in vhost_process_iotlb_msg()
1292 msg->perm = access; in vhost_iotlb_miss()
1322 if (likely(map->perm & access)) in vhost_vq_meta_update()
1341 } else if (!(map->perm & access)) { in iotlb_access_ok()
2071 } else if (!(map->perm & access)) { in translate_desc()
Dvringh.c1075 int iov_size, u32 perm) in iotlb_translate() argument
1094 } else if (!(map->perm & perm)) { in iotlb_translate()
/drivers/oprofile/
Doprofilefs.c137 const struct file_operations *fops, int perm, void *priv) in __oprofilefs_create_file() argument
151 inode = oprofilefs_get_inode(root->d_sb, S_IFREG | perm); in __oprofilefs_create_file()
211 char const *name, const struct file_operations *fops, int perm) in oprofilefs_create_file_perm() argument
213 return __oprofilefs_create_file(root, name, fops, perm, NULL); in oprofilefs_create_file_perm()
/drivers/vdpa/mlx5/core/
Dmr.c65 MLX5_SET(mkc, mkc, lw, !!(mr->perm & VHOST_MAP_WO)); in create_direct_mr()
66 MLX5_SET(mkc, mkc, lr, !!(mr->perm & VHOST_MAP_RO)); in create_direct_mr()
303 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()
379 if (pe == map->start && pperm == map->perm) { in _mlx5_vdpa_create_mr()
397 pperm = map->perm; in _mlx5_vdpa_create_mr()
Dmlx5_vdpa.h17 u32 perm; member
/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.c98 (data->mask).perm = 0x0; in define_extent()
100 (data->mask).perm = 0x1; in define_extent()
102 data->mask.perm = 0x2; in define_extent()
/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/net/wireless/broadcom/brcm80211/brcmsmac/
Dmac80211_if.c1130 u8 perm[ETH_ALEN]; in brcms_attach() local
1186 memcpy(perm, &wl->pub->cur_etheraddr, ETH_ALEN); in brcms_attach()
1187 if (WARN_ON(!is_valid_ether_addr(perm))) in brcms_attach()
1189 SET_IEEE80211_PERM_ADDR(hw, perm); in brcms_attach()
/drivers/ata/
Dlibata-transport.c709 #define SETUP_TEMPLATE(attrb, field, perm, test) \ argument
711 i->private_##attrb[count].attr.mode = perm; \

12