Home
last modified time | relevance | path

Searched refs:mr (Results 1 – 25 of 213) sorted by relevance

123456789

/freebsd-12-stable/sys/dev/mlx4/mlx4_ib/
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-12-stable/sys/dev/mlx5/mlx5_ib/
Dmlx5_ib_mr.c49 static int clean_mr(struct mlx5_ib_mr *mr);
51 static int destroy_mkey(struct mlx5_ib_dev *dev, struct mlx5_ib_mr *mr) in destroy_mkey() argument
53 int err = mlx5_core_destroy_mkey(dev->mdev, &mr->mmkey); in destroy_mkey()
73 static bool use_umr_mtt_update(struct mlx5_ib_mr *mr, u64 start, u64 length) in use_umr_mtt_update() argument
75 return ((u64)1 << mr->order) * MLX5_ADAPTER_PAGE_SIZE >= in use_umr_mtt_update()
80 static void update_odp_mr(struct mlx5_ib_mr *mr) in update_odp_mr() argument
82 if (mr->umem->odp_data) { in update_odp_mr()
91 mr->umem->odp_data->private = mr; in update_odp_mr()
109 struct mlx5_ib_mr *mr = in reg_mr_callback() local
111 struct mlx5_ib_dev *dev = mr->dev; in reg_mr_callback()
[all …]
/freebsd-12-stable/sys/contrib/ncsw/Peripherals/QM/
Dqman_low.h843 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()
854 mr->ithresh = (uint8_t)qm_in(MR_ITR); in qm_mr_init()
857 mr->pmode = pmode; in qm_mr_init()
858 mr->cmode = cmode; in qm_mr_init()
[all …]
/freebsd-12-stable/sys/arm/mv/
Dic.c204 uint32_t mr; in arm_mask_irq() local
207 mr = mv_ic_get_mask(); in arm_mask_irq()
208 mr &= ~(1 << nb); in arm_mask_irq()
209 mv_ic_set_mask(mr); in arm_mask_irq()
212 mr = mv_ic_get_mask_hi(); in arm_mask_irq()
213 mr &= ~(1 << (nb - 32)); in arm_mask_irq()
214 mv_ic_set_mask_hi(mr); in arm_mask_irq()
217 mr = mv_ic_get_mask_error(); in arm_mask_irq()
218 mr &= ~(1 << (nb - 64)); in arm_mask_irq()
219 mv_ic_set_mask_error(mr); in arm_mask_irq()
[all …]
/freebsd-12-stable/usr.sbin/fmtree/test/
Dtest00.sh16 mkdir -p ${TMP} ${TMP}/mr ${TMP}/mt
20 mkdir ${TMP}/mr/\*
21 mtree -c -p ${TMP}/mr | mtree -U -r -p ${TMP}/mt > /dev/null 2>&1
27 rmdir ${TMP}/mr/\*
30 mkdir ${TMP}/mr/\[f\]oo
31 mtree -c -p ${TMP}/mr | mtree -U -r -p ${TMP}/mt > /dev/null 2>&1
37 rmdir ${TMP}/mr/\[f\]oo
40 mkdir ${TMP}/mr/\?oo
41 mtree -c -p ${TMP}/mr | mtree -U -r -p ${TMP}/mt > /dev/null 2>&1
47 rmdir ${TMP}/mr/\?oo
[all …]
Dtest05.sh9 mkdir -p ${TMP}/mr ${TMP}/mr/optional-dir ${TMP}/mr/some-dir
10 touch ${TMP}/mr/optional-file ${TMP}/mr/some-file
12 mtree -c -p ${TMP}/mr > ${TMP}/_
13 rm -rf ${TMP}/mr/optional-file ${TMP}/mr/optional-dir
14 mtree -p ${TMP}/mr -K optional < ${TMP}/_ > /dev/null
/freebsd-12-stable/sys/dev/mlx4/mlx4_core/
Dmlx4_mr.c424 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()
533 int npages, int page_shift, struct mlx4_mr *mr) in mlx4_mr_alloc() argument
543 access, npages, page_shift, mr); in mlx4_mr_alloc()
[all …]
/freebsd-12-stable/usr.sbin/bhyve/
Dmem.c143 struct mem_range *mr, void *arg);
149 struct mem_range *mr = arg; in mem_read() local
151 error = (*mr->handler)(ctx, vcpu, MEM_F_READ, gpa, size, in mem_read()
152 rval, mr->arg1, mr->arg2); in mem_read()
160 struct mem_range *mr = arg; in mem_write() local
162 error = (*mr->handler)(ctx, vcpu, MEM_F_WRITE, gpa, size, in mem_write()
163 &wval, mr->arg1, mr->arg2); in mem_write()
232 emulate_mem_cb(struct vmctx *ctx, int vcpu, uint64_t paddr, struct mem_range *mr, in emulate_mem_cb() argument
239 mem_read, mem_write, mr)); in emulate_mem_cb()
261 rw_mem_cb(struct vmctx *ctx, int vcpu, uint64_t paddr, struct mem_range *mr, in rw_mem_cb() argument
[all …]
/freebsd-12-stable/usr.sbin/mtest/
Dmtest.c93 struct ip_mreq mr; member
383 mrequnion_t mr; in process_cmd() local
445 mr.mrs.imr_multiaddr = su.sin.sin_addr; in process_cmd()
446 mr.mrs.imr_sourceaddr = su2.sin.sin_addr; in process_cmd()
447 mr.mrs.imr_interface = ina; in process_cmd()
454 optval = (void *)&mr.mrs; in process_cmd()
455 optlen = sizeof(mr.mrs); in process_cmd()
457 mr.mr.imr_multiaddr = su.sin.sin_addr; in process_cmd()
458 mr.mr.imr_interface = ina; in process_cmd()
463 optval = (void *)&mr.mr; in process_cmd()
[all …]
/freebsd-12-stable/sys/dev/iser/
Diser_memory.c115 reg->sge.lkey = device->mr->lkey; in iser_reg_dma()
116 reg->rkey = device->mr->rkey; in iser_reg_dma()
138 iser_inv_rkey(struct ib_send_wr *inv_wr, struct ib_mr *mr) in iser_inv_rkey() argument
145 inv_wr->ex.invalidate_rkey = mr->rkey; in iser_inv_rkey()
147 rkey = iser_ib_inc_rkey(mr->rkey); in iser_inv_rkey()
148 ib_update_fast_reg_key(mr, rkey); in iser_inv_rkey()
159 struct ib_mr *mr = rsc->mr; in iser_fast_reg_mr() local
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()
184 fastreg_wr.mr = mr; in iser_fast_reg_mr()
[all …]
/freebsd-12-stable/sys/dev/mthca/
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-12-stable/sys/arm/amlogic/aml8726/
Duart_dev_aml8726.c111 uint32_t mr; in aml8726_uart_param() local
180 mr = uart_getreg(bas, AML_UART_MISC_REG); in aml8726_uart_param()
181 mr &= ~(AML_UART_MISC_OLD_RX_BAUD | in aml8726_uart_param()
183 mr |= ((divisor << AML_UART_MISC_BAUD_EXT_SHIFT) & in aml8726_uart_param()
185 uart_setreg(bas, AML_UART_MISC_REG, mr); in aml8726_uart_param()
210 uint32_t mr; in aml8726_uart_init() local
225 mr = uart_getreg(bas, AML_UART_MISC_REG); in aml8726_uart_init()
226 mr &= ~AML_UART_MISC_RECV_IRQ_CNT_MASK; in aml8726_uart_init()
227 uart_setreg(bas, AML_UART_MISC_REG, mr); in aml8726_uart_init()
374 uint32_t mr; in aml8726_uart_bus_attach() local
[all …]
/freebsd-12-stable/contrib/ofed/librdmacm/
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-12-stable/sys/mips/ingenic/
Djz4780_machdep.c116 struct mem_region mr[FDT_MEM_REGIONS]; in mips_init() local
141 if (fdt_get_mem_regions(mr, &mr_cnt, &val) == 0) { in mips_init()
145 KASSERT((phys_avail[0] >= mr[0].mr_start) && \ in mips_init()
146 (phys_avail[0] < (mr[0].mr_start + mr[0].mr_size)), in mips_init()
150 phys_avail[1] = (mr[0].mr_start + MIN(mr[0].mr_size, ctob(realmem))); in mips_init()
155 phys_avail[j] = mr[i].mr_start; in mips_init()
156 phys_avail[j+1] = (mr[i].mr_start + mr[i].mr_size); in mips_init()
/freebsd-12-stable/sys/powerpc/powerpc/
Dswtch32.S73 mr %r2, %r4
96 mr %r14,%r3 /* Copy the old thread ptr... */
97 mr %r2,%r4 /* and the new thread ptr in curthread */
98 mr %r16,%r5 /* and the new lock */
99 mr %r17,%r6 /* and the PCB */
108 mr %r3,%r14 /* restore old thread ptr */
119 mr %r3,%r14 /* restore old thread ptr */
150 mr %r3,%r2 /* Get new thread ptr */
157 mr %r3,%r2 /* Pass curthread to enable_fpu */
164 mr %r3,%r2 /* Pass curthread to enable_vec */
[all …]
Dswtch64.S79 mr %r13, %r4
121 mr %r14,%r3 /* Copy the old thread ptr... */
122 mr %r13,%r4 /* and the new thread ptr in curthread*/
123 mr %r16,%r5 /* and the new lock */
124 mr %r17,%r6 /* and the PCB */
143 mr %r3,%r14 /* restore old thread ptr */
151 mr %r3,%r14 /* restore old thread ptr */
183 mr %r3,%r13 /* Get new thread ptr */
191 mr %r3,%r13 /* Pass curthread to enable_fpu */
199 mr %r3,%r13 /* Pass curthread to enable_vec */
[all …]
/freebsd-12-stable/sys/mips/beri/
Dberi_machdep.c95 struct mem_region mr[FDT_MEM_REGIONS]; in mips_init() local
115 if (fdt_get_mem_regions(mr, &mr_cnt, &val) == 0) { in mips_init()
119 KASSERT((phys_avail[0] >= mr[0].mr_start) && \ in mips_init()
120 (phys_avail[0] < (mr[0].mr_start + mr[0].mr_size)), in mips_init()
124 phys_avail[1] = (mr[0].mr_start + MIN(mr[0].mr_size, ctob(realmem))); in mips_init()
129 phys_avail[j] = mr[i].mr_start; in mips_init()
130 phys_avail[j+1] = (mr[i].mr_start + mr[i].mr_size); in mips_init()
/freebsd-12-stable/sys/powerpc/powernv/
Dopalcall.S55 mr %r0,%r3
77 mr %r3,%r4
78 mr %r4,%r5
79 mr %r5,%r6
80 mr %r6,%r7
81 mr %r7,%r8
82 mr %r8,%r9
83 mr %r9,%r10
/freebsd-12-stable/sys/ofed/include/rdma/
Drdmavt_mr.h108 struct rvt_mregion *mr; member
123 static inline void rvt_put_mr(struct rvt_mregion *mr) in rvt_put_mr() argument
125 if (unlikely(atomic_dec_and_test(&mr->refcount))) in rvt_put_mr()
126 complete(&mr->comp); in rvt_put_mr()
129 static inline void rvt_get_mr(struct rvt_mregion *mr) in rvt_get_mr() argument
131 atomic_inc(&mr->refcount); in rvt_get_mr()
137 rvt_put_mr(ss->sge.mr); in rvt_put_ss()
/freebsd-12-stable/sys/mips/mediatek/
Dmtk_machdep.c97 struct mem_region mr[FDT_MEM_REGIONS]; in mips_init() local
117 if (fdt_get_mem_regions(mr, &mr_cnt, &val) == 0) { in mips_init()
123 KASSERT((phys_avail[0] >= mr[0].mr_start) && \ in mips_init()
124 (phys_avail[0] < (mr[0].mr_start + mr[0].mr_size)), in mips_init()
128 phys_avail[1] = (mr[0].mr_start + in mips_init()
129 MIN(mr[0].mr_size, ctob(realmem))); in mips_init()
134 phys_avail[j] = mr[i].mr_start; in mips_init()
135 phys_avail[j+1] = (mr[i].mr_start + mr[i].mr_size); in mips_init()
/freebsd-12-stable/lib/libc/powerpc/gen/
Dsetjmp.S56 mr %r6,%r3
60 mr %r5,%r6 /* &oset */
66 mr %r10,%r1 /* r10 <- stackptr */
67 mr %r9,%r2 /* r9 <- global ptr */
118 mr %r6,%r4 /* save val param */
121 mr %r1,%r10 /* r10 -> stackptr */
122 mr %r4,%r3
Dsigsetjmp.S57 mr %r6,%r3
64 mr %r5,%r6 /* &oset */
71 mr %r10,%r1
72 mr %r9,%r2
123 mr %r6,%r4
126 mr %r1,%r10
129 mr %r4,%r3
/freebsd-12-stable/lib/libc/powerpcspe/gen/
Dsetjmp.S56 mr %r6,%r3
60 mr %r5,%r6 /* &oset */
66 mr %r10,%r1 /* r10 <- stackptr */
67 mr %r9,%r2 /* r9 <- global ptr */
122 mr %r6,%r4 /* save val param */
125 mr %r1,%r10 /* r10 -> stackptr */
126 mr %r4,%r3
Dsigsetjmp.S57 mr %r6,%r3
64 mr %r5,%r6 /* &oset */
71 mr %r10,%r1
72 mr %r9,%r2
131 mr %r6,%r4
134 mr %r1,%r10
137 mr %r4,%r3
/freebsd-12-stable/lib/libc/powerpc64/gen/
Dsigsetjmp.S57 mr %r6,%r3
64 mr %r5,%r6 /* &oset */
71 mr %r10,%r1
72 mr %r9,%r2
163 mr %r6,%r4
166 mr %r2,%r9
167 mr %r1,%r10
170 mr %r4,%r3

123456789