/openbmc/linux/drivers/infiniband/hw/mana/ |
H A D | mr.c | 12 mana_ib_verbs_to_gdma_access_flags(int access_flags) in mana_ib_verbs_to_gdma_access_flags() argument 16 if (access_flags & IB_ACCESS_LOCAL_WRITE) in mana_ib_verbs_to_gdma_access_flags() 19 if (access_flags & IB_ACCESS_REMOTE_WRITE) in mana_ib_verbs_to_gdma_access_flags() 22 if (access_flags & IB_ACCESS_REMOTE_READ) in mana_ib_verbs_to_gdma_access_flags() 48 req.gva.access_flags = mr_params->gva.access_flags; in mana_ib_gd_create_mr() 104 u64 iova, int access_flags, in mana_ib_reg_user_mr() argument 119 start, iova, length, access_flags); in mana_ib_reg_user_mr() 121 access_flags &= ~IB_ACCESS_OPTIONAL; in mana_ib_reg_user_mr() 122 if (access_flags & ~VALID_MR_FLAGS) in mana_ib_reg_user_mr() 152 mr_params.gva.access_flags = in mana_ib_reg_user_mr() [all …]
|
H A D | mana_ib.h | 116 struct ib_mr *mana_ib_get_dma_mr(struct ib_pd *ibpd, int access_flags); 119 u64 iova, int access_flags,
|
/openbmc/linux/fs/vboxsf/ |
H A D | file.c | 18 u32 access_flags; member 24 u64 handle, u32 access_flags) in vboxsf_create_sf_handle() argument 39 sf_handle->access_flags = access_flags; in vboxsf_create_sf_handle() 54 u32 access_flags = 0; in vboxsf_file_open() local 84 access_flags |= SHFL_CF_ACCESS_READ; in vboxsf_file_open() 88 access_flags |= SHFL_CF_ACCESS_WRITE; in vboxsf_file_open() 92 access_flags |= SHFL_CF_ACCESS_READWRITE; in vboxsf_file_open() 100 access_flags |= SHFL_CF_ACCESS_APPEND; in vboxsf_file_open() 102 params.create_flags |= access_flags; in vboxsf_file_open() 260 if (h->access_flags == SHFL_CF_ACCESS_WRITE || in vboxsf_get_write_handle() [all …]
|
/openbmc/linux/drivers/char/agp/ |
H A D | frontend.c | 350 clear_bit(AGP_FF_IS_VALID, &priv->access_flags); in agp_remove_all_clients() 351 clear_bit(AGP_FF_IS_CLIENT, &priv->access_flags); in agp_remove_all_clients() 416 set_bit(AGP_FF_IS_VALID, &priv->access_flags); in agp_controller_make_current() 417 set_bit(AGP_FF_IS_CLIENT, &priv->access_flags); in agp_controller_make_current() 439 clear_bit(AGP_FF_IS_VALID, &priv->access_flags); in agp_controller_release_current() 664 if (test_bit(AGP_FF_IS_CLIENT, &priv->access_flags)) in agp_release() 691 set_bit(AGP_FF_ALLOW_CLIENT, &priv->access_flags); in agp_open() 701 set_bit(AGP_FF_IS_CLIENT, &priv->access_flags); in agp_open() 702 set_bit(AGP_FF_IS_VALID, &priv->access_flags); in agp_open() 775 set_bit(AGP_FF_IS_CONTROLLER, &priv->access_flags); in agpioc_acquire_wrap() [all …]
|
H A D | compat_ioctl.c | 85 set_bit(AGP_FF_IS_CLIENT, &client_priv->access_flags); in compat_agpioc_reserve_wrap() 86 set_bit(AGP_FF_IS_VALID, &client_priv->access_flags); in compat_agpioc_reserve_wrap() 142 set_bit(AGP_FF_IS_CLIENT, &client_priv->access_flags); in compat_agpioc_reserve_wrap() 143 set_bit(AGP_FF_IS_VALID, &client_priv->access_flags); in compat_agpioc_reserve_wrap() 228 if (!(test_bit(AGP_FF_IS_CONTROLLER, &curr_priv->access_flags))) { in compat_agp_ioctl()
|
/openbmc/linux/drivers/infiniband/hw/mlx5/ |
H A D | mr.c | 674 res = key1.access_flags - key2.access_flags; in cache_ent_key_cmp() 747 smallest->rb_key.access_flags == rb_key.access_flags && in mkey_cache_ent_from_rb_key() 756 int access_flags) in _mlx5_mr_cache_alloc() argument 792 int access_flags) in get_unchangeable_access_flags() argument 822 .access_flags = get_unchangeable_access_flags(dev, access_flags) in mlx5_mr_cache_alloc() 1146 mr->access_flags = access_flags; in set_mr_fields() 1182 rb_key.access_flags = get_unchangeable_access_flags(dev, access_flags); in alloc_cacheable_mr() 1234 mr->access_flags = access_flags; in reg_create() 1562 access_flags, in mlx5_ib_reg_user_mr_dmabuf() 1571 access_flags); in mlx5_ib_reg_user_mr_dmabuf() [all …]
|
H A D | umr.c | 381 unsigned int access_flags) in mlx5r_umr_set_access_flags() argument 383 bool ro_read = (access_flags & IB_ACCESS_RELAXED_ORDERING) && in mlx5r_umr_set_access_flags() 387 MLX5_SET(mkc, seg, a, !!(access_flags & IB_ACCESS_REMOTE_ATOMIC)); in mlx5r_umr_set_access_flags() 388 MLX5_SET(mkc, seg, rw, !!(access_flags & IB_ACCESS_REMOTE_WRITE)); in mlx5r_umr_set_access_flags() 389 MLX5_SET(mkc, seg, rr, !!(access_flags & IB_ACCESS_REMOTE_READ)); in mlx5r_umr_set_access_flags() 390 MLX5_SET(mkc, seg, lw, !!(access_flags & IB_ACCESS_LOCAL_WRITE)); in mlx5r_umr_set_access_flags() 393 !!(access_flags & IB_ACCESS_RELAXED_ORDERING)); in mlx5r_umr_set_access_flags() 398 int access_flags) in mlx5r_umr_rereg_pd_access() argument 409 mlx5r_umr_set_access_flags(dev, &wqe.mkey_seg, access_flags); in mlx5r_umr_rereg_pd_access() 419 mr->access_flags = access_flags; in mlx5r_umr_rereg_pd_access() [all …]
|
H A D | restrack.c | 86 if (!(mr->access_flags & IB_ACCESS_ON_DEMAND)) in fill_stat_mr_entry() 128 if (!(mr->access_flags & IB_ACCESS_ON_DEMAND)) in fill_res_mr_entry()
|
H A D | mlx5_ib.h | 649 unsigned int access_flags; member 712 int access_flags; member 1320 u64 virt_addr, int access_flags, 1324 int fd, int access_flags, 1335 int access_flags); 1339 u64 length, u64 virt_addr, int access_flags, 1377 u64 access_flags); 1388 int access_flags, int access_mode, 1671 struct ib_umem *umem, int access_flags) in mlx5_umem_needs_ats() argument 1675 return access_flags & IB_ACCESS_RELAXED_ORDERING; in mlx5_umem_needs_ats()
|
H A D | mem.c | 43 u64 access_flags) in mlx5_ib_populate_pas() argument 49 access_flags); in mlx5_ib_populate_pas()
|
H A D | umr.h | 93 int access_flags);
|
H A D | odp.c | 420 mr = mlx5_mr_cache_alloc(dev, imr->access_flags, in implicit_get_child_mr() 428 mr->access_flags = imr->access_flags; in implicit_get_child_mr() 482 int access_flags) in mlx5_ib_alloc_implicit_mr() argument 492 umem_odp = ib_umem_odp_alloc_implicit(&dev->ib_dev, access_flags); in mlx5_ib_alloc_implicit_mr() 496 imr = mlx5_mr_cache_alloc(dev, access_flags, MLX5_MKC_ACCESS_MODE_KSM, in mlx5_ib_alloc_implicit_mr() 503 imr->access_flags = access_flags; in mlx5_ib_alloc_implicit_mr()
|
/openbmc/linux/drivers/iommu/ |
H A D | iommu-sva.c | 157 unsigned int access_flags = 0; in iommu_sva_handle_iopf() local 176 access_flags |= VM_READ; in iommu_sva_handle_iopf() 179 access_flags |= VM_WRITE; in iommu_sva_handle_iopf() 184 access_flags |= VM_EXEC; in iommu_sva_handle_iopf() 191 if (access_flags & ~vma->vm_flags) in iommu_sva_handle_iopf()
|
/openbmc/linux/drivers/infiniband/core/ |
H A D | uverbs_std_types_mr.c | 110 ret = uverbs_get_flags32(&attr.access_flags, attrs, in UVERBS_HANDLER() 116 if (!(attr.access_flags & IB_ZERO_BASED)) in UVERBS_HANDLER() 119 ret = ib_check_mr_access(ib_dev, attr.access_flags); in UVERBS_HANDLER() 196 u32 fd, access_flags; in UVERBS_HANDLER() local 226 ret = uverbs_get_flags32(&access_flags, attrs, in UVERBS_HANDLER() 236 ret = ib_check_mr_access(ib_dev, access_flags); in UVERBS_HANDLER() 241 access_flags, in UVERBS_HANDLER()
|
/openbmc/linux/drivers/infiniband/hw/vmw_pvrdma/ |
H A D | pvrdma_mr.c | 82 cmd->access_flags = acc; in pvrdma_get_dma_mr() 112 u64 virt_addr, int access_flags, in pvrdma_reg_user_mr() argument 129 umem = ib_umem_get(pd->device, start, length, access_flags); in pvrdma_reg_user_mr() 170 cmd->access_flags = access_flags; in pvrdma_reg_user_mr() 241 cmd->access_flags = 0; in pvrdma_alloc_mr()
|
/openbmc/qemu/block/ |
H A D | file-win32.c | 267 assert(access_flags != NULL); in raw_parse_flags() 271 *access_flags = GENERIC_READ | GENERIC_WRITE; in raw_parse_flags() 273 *access_flags = GENERIC_READ; in raw_parse_flags() 338 int access_flags; in raw_open() local 384 raw_parse_flags(flags, use_aio, &access_flags, &overlapped); in raw_open() 397 s->hfile = CreateFile(filename, access_flags, in raw_open() 644 int access_flags; in raw_reopen_prepare() local 663 rs->hfile = CreateFile(state->bs->filename, access_flags, in raw_reopen_prepare() 846 int access_flags, create_flags; in hdev_open() local 892 raw_parse_flags(flags, use_aio, &access_flags, &overlapped); in hdev_open() [all …]
|
/openbmc/linux/arch/arm64/kvm/vgic/ |
H A D | vgic-mmio.h | 12 unsigned int access_flags; member 72 .access_flags = acc, \ 84 .access_flags = acc, \ 94 .access_flags = acc, \
|
/openbmc/linux/drivers/infiniband/hw/mlx4/ |
H A D | mr.c | 373 u64 length, int access_flags) in mlx4_get_umem_mr() argument 381 if (!ib_access_writable(access_flags)) { in mlx4_get_umem_mr() 395 access_flags |= IB_ACCESS_LOCAL_WRITE; in mlx4_get_umem_mr() 397 access_flags |= IB_ACCESS_LOCAL_WRITE; in mlx4_get_umem_mr() 403 return ib_umem_get(device, start, length, access_flags); in mlx4_get_umem_mr() 407 u64 virt_addr, int access_flags, in mlx4_ib_reg_user_mr() argument 420 mr->umem = mlx4_get_umem_mr(pd->device, start, length, access_flags); in mlx4_ib_reg_user_mr() 429 convert_access(access_flags), n, shift, &mr->mmr); in mlx4_ib_reg_user_mr()
|
/openbmc/linux/drivers/infiniband/hw/efa/ |
H A D | efa.h | 155 u64 virt_addr, int access_flags, 159 int fd, int access_flags,
|
H A D | efa_verbs.c | 1585 access_flags &= ~IB_ACCESS_OPTIONAL; in efa_alloc_mr() 1586 if (access_flags & ~supp_access_flags) { in efa_alloc_mr() 1589 access_flags, supp_access_flags); in efa_alloc_mr() 1601 u64 length, u64 virt_addr, int access_flags) in efa_register_mr() argument 1614 params.permissions = access_flags; in efa_register_mr() 1663 int fd, int access_flags, in efa_reg_user_mr_dmabuf() argument 1671 mr = efa_alloc_mr(ibpd, access_flags, udata); in efa_reg_user_mr_dmabuf() 1678 access_flags); in efa_reg_user_mr_dmabuf() 1702 u64 virt_addr, int access_flags, in efa_reg_mr() argument 1709 mr = efa_alloc_mr(ibpd, access_flags, udata); in efa_reg_mr() [all …]
|
/openbmc/linux/include/linux/ |
H A D | agpgart.h | 116 unsigned long access_flags; /* long req'd for set_bit --RR */ member
|
/openbmc/linux/drivers/infiniband/hw/usnic/ |
H A D | usnic_ib_verbs.h | 62 u64 virt_addr, int access_flags,
|
/openbmc/linux/drivers/infiniband/sw/rdmavt/ |
H A D | mr.c | 313 mr->mr.access_flags = acc; in rvt_get_dma_mr() 365 mr->mr.access_flags = mr_access_flags; in rvt_reg_user_mr() 632 mr->mr.access_flags = access; in rvt_fast_reg_mr() 767 (mr->access_flags & acc) != acc)) in rvt_lkey_ok() 874 (mr->access_flags & acc) == 0)) in rvt_rkey_ok()
|
/openbmc/linux/net/smc/ |
H A D | smc_ib.h | 101 int smc_ib_get_memory_region(struct ib_pd *pd, int access_flags,
|
/openbmc/linux/include/rdma/ |
H A D | rdmavt_mr.h | 38 int access_flags; member
|