Home
last modified time | relevance | path

Searched full:mr (Results 1 – 25 of 485) sorted by relevance

12345678910>>...20

/freebsd/sys/dev/mlx5/mlx5_ib/
H A Dmlx5_ib_mr.c50 static int clean_mr(struct mlx5_ib_mr *mr);
52 static int destroy_mkey(struct mlx5_ib_dev *dev, struct mlx5_ib_mr *mr) in destroy_mkey() argument
54 int err = mlx5_core_destroy_mkey(dev->mdev, &mr->mmkey); in destroy_mkey()
57 /* Wait until all page fault handlers using the mr complete. */ in destroy_mkey()
74 static bool use_umr_mtt_update(struct mlx5_ib_mr *mr, u64 start, u64 length) in use_umr_mtt_update() argument
76 return ((u64)1 << mr->order) * MLX5_ADAPTER_PAGE_SIZE >= in use_umr_mtt_update()
81 static void update_odp_mr(struct mlx5_ib_mr *mr) in update_odp_mr() argument
83 if (mr->umem->odp_data) { in update_odp_mr()
87 * MR, before reg_umr finished, to ensure that the MR in update_odp_mr()
92 mr->umem->odp_data->private = mr; in update_odp_mr()
[all …]
/freebsd/sys/dev/mlx4/mlx4_ib/
H A Dmlx4_ib_mr.c63 struct mlx4_ib_mr *mr; in mlx4_ib_get_dma_mr() local
66 mr = kzalloc(sizeof(*mr), GFP_KERNEL); in mlx4_ib_get_dma_mr()
67 if (!mr) in mlx4_ib_get_dma_mr()
71 ~0ull, convert_access(acc), 0, 0, &mr->mmr); in mlx4_ib_get_dma_mr()
75 err = mlx4_mr_enable(to_mdev(pd->device)->dev, &mr->mmr); in mlx4_ib_get_dma_mr()
79 mr->ibmr.rkey = mr->ibmr.lkey = mr->mmr.key; in mlx4_ib_get_dma_mr()
80 mr->umem = NULL; in mlx4_ib_get_dma_mr()
82 return &mr->ibmr; in mlx4_ib_get_dma_mr()
85 (void) mlx4_mr_free(to_mdev(pd->device)->dev, &mr->mmr); in mlx4_ib_get_dma_mr()
88 kfree(mr); in mlx4_ib_get_dma_mr()
[all …]
/freebsd/sys/contrib/ncsw/Peripherals/QM/
H A Dqman_low.h820 /* --- MR API --- */
822 /* It's safer to code in terms of the 'mr' object than the 'portal' object,
825 /* #define MR_API_START() register struct qm_mr *mr = &portal->mr */
843 register struct qm_mr *mr = &portal->mr; in qm_mr_init() local
848 mr->ring = ptr_ADD(portal->addr.addr_ce, CL_MR); in qm_mr_init()
849 mr->pi = (uint8_t)(qm_in(MR_PI_CINH) & (QM_MR_SIZE - 1)); in qm_mr_init()
850 mr->ci = (uint8_t)(qm_in(MR_CI_CINH) & (QM_MR_SIZE - 1)); in qm_mr_init()
851 mr->cursor = mr->ring + mr->ci; in qm_mr_init()
852 mr->fill = cyc_diff(QM_MR_SIZE, mr->ci, mr->pi); in qm_mr_init()
853 mr->vbit = (uint8_t)((qm_in(MR_PI_CINH) & QM_MR_SIZE) ?QM_MR_VERB_VBIT : 0); in qm_mr_init()
[all …]
/freebsd/sys/dev/mlx4/mlx4_core/
H A Dmlx4_mr.c312 mlx4_warn(dev, "Most likely the MR has MWs bound to it.\n"); in mlx4_mr_hw_get_mpt()
424 int page_shift, struct mlx4_mr *mr) in mlx4_mr_alloc_reserved() argument
426 mr->iova = iova; in mlx4_mr_alloc_reserved()
427 mr->size = size; in mlx4_mr_alloc_reserved()
428 mr->pd = pd; in mlx4_mr_alloc_reserved()
429 mr->access = access; in mlx4_mr_alloc_reserved()
430 mr->enabled = MLX4_MPT_DISABLED; in mlx4_mr_alloc_reserved()
431 mr->key = hw_index_to_key(mridx); in mlx4_mr_alloc_reserved()
433 return mlx4_mtt_init(dev, npages, page_shift, &mr->mtt); in mlx4_mr_alloc_reserved()
481 mlx4_warn(dev, "Failed to release mr index:%d\n", in mlx4_mpt_release()
[all …]
/freebsd/contrib/ofed/libibverbs/man/
H A Dibv_rereg_mr.36 ibv_rereg_mr \- re-register a memory region (MR)
11 .BI "int ibv_rereg_mr(struct ibv_mr " "*mr" ", int " " flags" ,
18 Modifies the attributes of an existing memory region (MR)
19 .I mr\fR.
38 represents the new PD this MR should be registered to.
44 represents the virtual address (user-space pointer) of the new MR, while
58 IBV_REREG_MR_ERR_INPUT - Old MR is valid, an input error was detected by libibverbs.
60 IBV_REREG_MR_ERR_DONT_FORK_NEW - Old MR is valid, failed via don't fork on new address range.
62 IBV_REREG_MR_ERR_DO_FORK_OLD - New MR is valid, failed via do fork on old address range.
64 IBV_REREG_MR_ERR_CMD - MR shouldn't be used, command error.
[all …]
H A Dibv_reg_mr.36 ibv_reg_mr, ibv_dereg_mr \- register or deregister a memory region (MR)
14 .BI "int ibv_dereg_mr(struct ibv_mr " "*mr" );
18 registers a memory region (MR) associated with the protection domain
20 The MR's starting address is
39 .B IBV_ACCESS_ON_DEMAND\fR Create an on-demand paging MR
49 Local read access is always enabled for the MR.
52 deregisters the MR
53 .I mr\fR.
56 returns a pointer to the registered MR, or NULL if the request fails.
71 fails if any memory window is still bound to this MR.
/freebsd/sys/arm/mv/
H A Dic.c199 uint32_t mr; in arm_mask_irq() local
202 mr = mv_ic_get_mask(); in arm_mask_irq()
203 mr &= ~(1 << nb); in arm_mask_irq()
204 mv_ic_set_mask(mr); in arm_mask_irq()
207 mr = mv_ic_get_mask_hi(); in arm_mask_irq()
208 mr &= ~(1 << (nb - 32)); in arm_mask_irq()
209 mv_ic_set_mask_hi(mr); in arm_mask_irq()
212 mr = mv_ic_get_mask_error(); in arm_mask_irq()
213 mr &= ~(1 << (nb - 64)); in arm_mask_irq()
214 mv_ic_set_mask_error(mr); in arm_mask_irq()
[all …]
/freebsd/sys/dev/mthca/
H A Dmthca_mr.c430 u64 iova, u64 total_size, u32 access, struct mthca_mr *mr) in mthca_mr_alloc() argument
444 mr->ibmr.rkey = mr->ibmr.lkey = hw_index_to_key(dev, key); in mthca_mr_alloc()
463 if (!mr->mtt) in mthca_mr_alloc()
475 if (mr->mtt) in mthca_mr_alloc()
478 mr->mtt->first_seg * dev->limits.mtt_seg_size); in mthca_mr_alloc()
481 mthca_dbg(dev, "Dumping MPT entry %08x:\n", mr->ibmr.lkey); in mthca_mr_alloc()
513 u32 access, struct mthca_mr *mr) in mthca_mr_alloc_notrans() argument
515 mr->mtt = NULL; in mthca_mr_alloc_notrans()
516 return mthca_mr_alloc(dev, pd, 12, 0, ~0ULL, access, mr); in mthca_mr_alloc_notrans()
522 u32 access, struct mthca_mr *mr) in mthca_mr_alloc_phys() argument
[all …]
/freebsd/sys/ofed/drivers/infiniband/core/
H A Dib_uverbs_std_types_mr.c93 struct ib_mr *mr; in UVERBS_HANDLER() local
125 mr = pd->device->reg_dm_mr(pd, dm, &attr, attrs); in UVERBS_HANDLER()
126 if (IS_ERR(mr)) in UVERBS_HANDLER()
127 return PTR_ERR(mr); in UVERBS_HANDLER()
129 mr->device = pd->device; in UVERBS_HANDLER()
130 mr->pd = pd; in UVERBS_HANDLER()
131 mr->type = IB_MR_TYPE_DM; in UVERBS_HANDLER()
132 mr->dm = dm; in UVERBS_HANDLER()
133 mr->uobject = uobj; in UVERBS_HANDLER()
137 uobj->object = mr; in UVERBS_HANDLER()
[all …]
/freebsd/usr.sbin/bhyve/aarch64/
H A Dbhyverun_machdep.c268 struct mem_range mr; in init_mmio_uart() local
284 bzero(&mr, sizeof(struct mem_range)); in init_mmio_uart()
285 mr.name = "uart"; in init_mmio_uart()
286 mr.base = UART_MMIO_BASE; in init_mmio_uart()
287 mr.size = UART_MMIO_SIZE; in init_mmio_uart()
288 mr.flags = MEM_F_RW; in init_mmio_uart()
289 mr.handler = mmio_uart_mem_handler; in init_mmio_uart()
290 mr.arg1 = sc; in init_mmio_uart()
291 mr.arg2 = mr.base; in init_mmio_uart()
292 error = register_mem(&mr); in init_mmio_uart()
[all …]
/freebsd/usr.sbin/bhyve/
H A Dmem.c141 typedef int (mem_cb_t)(struct vcpu *vcpu, uint64_t gpa, struct mem_range *mr,
148 struct mem_range *mr = arg; in mem_read() local
150 error = (*mr->handler)(vcpu, MEM_F_READ, gpa, size, rval, mr->arg1, in mem_read()
151 mr->arg2); in mem_read()
159 struct mem_range *mr = arg; in mem_write() local
161 error = (*mr->handler)(vcpu, MEM_F_WRITE, gpa, size, &wval, mr->arg1, in mem_write()
162 mr->arg2); in mem_write()
230 emulate_mem_cb(struct vcpu *vcpu, uint64_t paddr, struct mem_range *mr, in emulate_mem_cb() argument
237 mem_read, mem_write, mr)); in emulate_mem_cb()
258 rw_mem_cb(struct vcpu *vcpu, uint64_t paddr, struct mem_range *mr, void *arg) in rw_mem_cb() argument
[all …]
/freebsd/sys/dev/iser/
H A Diser_memory.c114 reg->sge.lkey = device->mr->lkey; in iser_reg_dma()
115 reg->rkey = device->mr->rkey; in iser_reg_dma()
137 iser_inv_rkey(struct ib_send_wr *inv_wr, struct ib_mr *mr) in iser_inv_rkey() argument
144 inv_wr->ex.invalidate_rkey = mr->rkey; in iser_inv_rkey()
146 rkey = iser_ib_inc_rkey(mr->rkey); in iser_inv_rkey()
147 ib_update_fast_reg_key(mr, rkey); in iser_inv_rkey()
158 struct ib_mr *mr = rsc->mr; in iser_fast_reg_mr() local
165 /* if there a single dma entry, dma mr suffices */ in iser_fast_reg_mr()
170 iser_inv_rkey(&inv_wr, mr); in iser_fast_reg_mr()
174 n = ib_map_mr_sg(mr, mem->sg, mem->size, NULL, SIZE_4K); in iser_fast_reg_mr()
[all …]
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/MPI-Checker/
H A DMPIChecker.cpp30 const MemRegion *const MR = in checkDoubleNonblocking() local
32 if (!MR) in checkDoubleNonblocking()
34 const ElementRegion *const ER = dyn_cast<ElementRegion>(MR); in checkDoubleNonblocking()
37 if (!isa<TypedRegion>(MR) || (ER && !isa<TypedRegion>(ER->getSuperRegion()))) in checkDoubleNonblocking()
41 const Request *const Req = State->get<RequestMap>(MR); in checkDoubleNonblocking()
46 BReporter.reportDoubleNonblocking(PreCallEvent, *Req, MR, ErrorNode, in checkDoubleNonblocking()
52 State = State->set<RequestMap>(MR, Request::State::Nonblocking); in checkDoubleNonblocking()
61 const MemRegion *const MR = topRegionUsedByWait(PreCallEvent); in checkUnmatchedWaits() local
62 if (!MR) in checkUnmatchedWaits()
64 const ElementRegion *const ER = dyn_cast<ElementRegion>(MR); in checkUnmatchedWaits()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DModRef.h56 raw_ostream &operator<<(raw_ostream &OS, ModRefInfo MR);
88 void setModRef(Location Loc, ModRefInfo MR) { in setModRef() argument
90 Data |= static_cast<uint32_t>(MR) << getLocationPos(Loc); in setModRef()
102 MemoryEffectsBase(Location Loc, ModRefInfo MR) { setModRef(Loc, MR); } in MemoryEffectsBase() argument
106 explicit MemoryEffectsBase(ModRefInfo MR) { in MemoryEffectsBase() argument
108 setModRef(Loc, MR); in MemoryEffectsBase()
132 static MemoryEffectsBase argMemOnly(ModRefInfo MR = ModRefInfo::ModRef) {
133 return MemoryEffectsBase(Location::ArgMem, MR);
138 inaccessibleMemOnly(ModRefInfo MR = ModRefInfo::ModRef) {
139 return MemoryEffectsBase(Location::InaccessibleMem, MR);
[all …]
/freebsd/contrib/ofed/librdmacm/
H A Drdma_verbs.h88 rdma_dereg_mr(struct ibv_mr *mr) in rdma_dereg_mr() argument
90 return rdma_seterrno(ibv_dereg_mr(mr)); in rdma_dereg_mr()
172 size_t length, struct ibv_mr *mr) in rdma_post_recv() argument
176 assert((addr >= mr->addr) && in rdma_post_recv()
177 (((uint8_t *) addr + length) <= ((uint8_t *) mr->addr + mr->length))); in rdma_post_recv()
180 sge.lkey = mr->lkey; in rdma_post_recv()
187 size_t length, struct ibv_mr *mr, int flags) in rdma_post_send() argument
193 sge.lkey = mr ? mr->lkey : 0; in rdma_post_send()
200 size_t length, struct ibv_mr *mr, int flags, in rdma_post_read() argument
207 sge.lkey = mr->lkey; in rdma_post_read()
[all …]
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DDynamicType.cpp44 DynamicTypeInfo getDynamicTypeInfo(ProgramStateRef State, const MemRegion *MR) { in getDynamicTypeInfo() argument
45 MR = MR->StripCasts(); in getDynamicTypeInfo()
48 if (const DynamicTypeInfo *DTI = State->get<DynamicTypeMap>(MR)) in getDynamicTypeInfo()
52 if (const auto *TR = dyn_cast<TypedRegion>(MR)) in getDynamicTypeInfo()
55 if (const auto *SR = dyn_cast<SymbolicRegion>(MR)) { in getDynamicTypeInfo()
64 const MemRegion *MR) { in getRawDynamicTypeInfo() argument
65 return State->get<DynamicTypeMap>(MR); in getRawDynamicTypeInfo()
76 const MemRegion *MR, in getDynamicCastInfo() argument
79 const auto *Lookup = State->get<DynamicCastMap>().lookup(MR); in getDynamicCastInfo()
99 ProgramStateRef setDynamicTypeInfo(ProgramStateRef State, const MemRegion *MR, in setDynamicTypeInfo() argument
[all …]
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/
H A DObjectLinkingLayer.cpp88 void materialize(std::unique_ptr<MaterializationResponsibility> MR) override { in materialize() argument
89 ObjLinkingLayer.emit(std::move(MR), std::move(G)); in materialize()
156 std::unique_ptr<MaterializationResponsibility> MR, in ObjectLinkingLayerJITLinkContext() argument
158 : JITLinkContext(&MR->getTargetJITDylib()), Layer(Layer), in ObjectLinkingLayerJITLinkContext()
159 MR(std::move(MR)), ObjBuffer(std::move(ObjBuffer)) { in ObjectLinkingLayerJITLinkContext()
175 P->notifyMaterializing(*MR, G, *this, in notifyMaterializing()
182 Err = joinErrors(std::move(Err), P->notifyFailed(*MR)); in notifyFailed()
184 MR->failMaterialization(); in notifyFailed()
191 MR->getTargetJITDylib().withLinkOrderDo( in lookup()
246 if (AutoClaim && !MR->getSymbols().count(InternedName)) { in notifyResolved()
[all …]
/freebsd/sys/crypto/openssl/powerpc/
H A Dppccpuid.S65 mr 3,1
99 mr 3,0
203 mr 7,6
212 mr 3,4
223 mr 0,4
237 mr 7,6
238 mr 9,8
251 mr 7,6
253 mr 9,8
289 mr 7,6
[all …]
H A Dchacha-ppc.S88 mr 28,11
90 mr 29,12
92 mr 30,14
94 mr 31,15
96 mr 7,20
97 mr 8,21
98 mr 9,22
99 mr 10,23
230 mr 7,16
234 mr 8,17
[all …]
/freebsd/usr.sbin/mtest/
H A Dmtest.c90 struct ip_mreq mr; member
380 mrequnion_t mr; in process_cmd() local
442 mr.mrs.imr_multiaddr = su.sin.sin_addr; in process_cmd()
443 mr.mrs.imr_sourceaddr = su2.sin.sin_addr; in process_cmd()
444 mr.mrs.imr_interface = ina; in process_cmd()
451 optval = (void *)&mr.mrs; in process_cmd()
452 optlen = sizeof(mr.mrs); in process_cmd()
454 mr.mr.imr_multiaddr = su.sin.sin_addr; in process_cmd()
455 mr.mr.imr_interface = ina; in process_cmd()
460 optval = (void *)&mr.mr; in process_cmd()
[all …]
/freebsd/sys/crypto/openssl/powerpc64/
H A Dppccpuid.S78 mr 3,1
228 mr 7,6
237 mr 3,4
250 mr 0,4
264 mr 7,6
265 mr 9,8
278 mr 7,6
280 mr 9,8
318 mr 7,6
327 mr 3,4
[all …]
H A Dchacha-ppc.S91 mr 28,11
93 mr 29,12
95 mr 30,14
97 mr 31,15
99 mr 7,20
100 mr 8,21
101 mr 9,22
102 mr 10,23
233 mr 7,16
237 mr 8,17
[all …]
/freebsd/sys/crypto/openssl/powerpc64le/
H A Dppccpuid.S78 mr 3,1
228 mr 7,6
237 mr 3,4
250 mr 0,4
264 mr 7,6
265 mr 9,8
278 mr 7,6
280 mr 9,8
318 mr 7,6
327 mr 3,4
[all …]
/freebsd/sys/ofed/include/rdma/
H A Drdmavt_mr.h53 * For Memory Regions. This stuff should probably be moved into rdmavt/mr.h once
54 * drivers no longer need access to the MR directly.
106 struct rvt_mregion *mr; member
110 u16 m; /* current index: mr->map[m] */
111 u16 n; /* current index: mr->map[m]->segs[n] */
121 static inline void rvt_put_mr(struct rvt_mregion *mr) in rvt_put_mr() argument
123 if (unlikely(atomic_dec_and_test(&mr->refcount))) in rvt_put_mr()
124 complete(&mr->comp); in rvt_put_mr()
127 static inline void rvt_get_mr(struct rvt_mregion *mr) in rvt_get_mr() argument
129 atomic_inc(&mr->refcount); in rvt_get_mr()
[all …]
/freebsd/share/man/man4/
H A Dmrsas.4107 section to know more about driver priority for MR-Fusion devices.
129 [ Thunderbolt 6Gb/s MR controller ]
153 [ Invader/Fury 12Gb/s MR controller ]
230 selection of MR-Fusion cards.
248 subsystem for selection of MR-Fusion cards.
251 driver will attach to a MR-Fusion card given that it has a higher priority than
259 driver to detect a MR-Fusion card instead of the
268 driver will get priority to detect MR-Fusion controllers by default.
275 driver to detect MR-Fusion cards, but allow for the ability to choose the
277 driver to detect MR-Fusion cards.
[all …]

12345678910>>...20