Home
last modified time | relevance | path

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

1234

/illumos-gate/usr/src/uts/common/io/ib/adapters/hermon/
H A Dhermon_mr.c399 mr->mr_lkey = hermon_mr_key_swap(mr->mr_lkey); in hermon_mr_register_shared()
400 mr->mr_rkey = hermon_mr_key_swap(mr->mr_rkey); in hermon_mr_register_shared()
527 mr->mr_rkey = mr->mr_lkey = mpt->hr_indx; in hermon_mr_alloc_fmr()
617 mr->mr_lkey = hermon_mr_key_swap(mr->mr_lkey); in hermon_mr_alloc_fmr()
802 mr, mr->mr_rkey); in hermon_mr_deregister()
1749 mr, hermon_mr_key_swap(mr->mr_rkey)); in hermon_mr_common_reg()
1884 bzero(mr, sizeof (*mr)); in hermon_dma_mr_register()
2063 bzero(mr, sizeof (*mr)); in hermon_mr_alloc_lkey()
2148 mr->mr_lkey = hermon_mr_key_swap(mr->mr_lkey); in hermon_mr_alloc_lkey()
2149 mr->mr_rkey = mr->mr_lkey; in hermon_mr_alloc_lkey()
[all …]
H A Dhermon_srq.c68 hermon_mrhdl_t mr; in hermon_srq_alloc() local
297 (uint64_t)mr->mr_bindinfo.bi_addr; in hermon_srq_alloc()
364 srq->srq_mrhdl = mr; in hermon_srq_alloc()
453 hermon_mrhdl_t mr; in hermon_srq_free() local
470 mr = srq->srq_mrhdl; in hermon_srq_free()
592 hermon_mrhdl_t mr; in hermon_srq_modify() local
762 mr = srq->srq_mrhdl; in hermon_srq_modify()
763 mutex_enter(&mr->mr_lock); in hermon_srq_modify()
795 mutex_exit(&mr->mr_lock); in hermon_srq_modify()
819 mr->mr_logmttpgsz = mtt_pgsize_bits; in hermon_srq_modify()
[all …]
H A Dhermon_cq.c79 hermon_mrhdl_t mr; in hermon_cq_alloc() local
253 _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*mr)) in hermon_cq_alloc()
305 cqc_entry.log2_pgsz = mr->mr_log2_pgsz; in hermon_cq_alloc()
307 cqc_entry.mtt_base_addl = mr->mr_mttaddr >> 3; in hermon_cq_alloc()
343 cq->cq_mrhdl = mr; in hermon_cq_alloc()
419 hermon_mrhdl_t mr; in hermon_cq_free() local
436 mr = cq->cq_mrhdl; in hermon_cq_free()
585 hermon_mrhdl_t mr; in hermon_cq_resize() local
682 _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*mr)) in hermon_cq_resize()
705 cqc_entry.log2_pgsz = mr->mr_log2_pgsz; in hermon_cq_resize()
[all …]
/illumos-gate/usr/src/uts/common/io/ib/clients/rdsv3/
H A Drdma.c99 return (mr); in rdsv3_mr_tree_walk()
114 mr->r_key, atomic_get(&mr->r_refcount)); in rdsv3_destroy_mr()
135 kmem_free(mr, sizeof (*mr)); in __rdsv3_put_mr_final()
188 if (!mr) { in __rdsv3_rdma_map()
246 mr, args->vec.addr, mr->r_key); in __rdsv3_rdma_map()
264 if (mr) in __rdsv3_rdma_map()
355 if (mr) { in rdsv3_free_mr()
363 if (!mr) in rdsv3_free_mr()
391 if (!mr) { in rdsv3_rdma_unuse()
639 if (!mr) in rdsv3_cmsg_rdma_dest()
[all …]
H A Dmessage.c99 struct rdsv3_mr *mr = rm->m_rdma_mr; in rdsv3_message_purge() local
100 if (mr->r_refcount == 0) { in rdsv3_message_purge()
102 "rm %p mr %p", rm, mr); in rdsv3_message_purge()
105 if (mr->r_refcount == 0xdeadbeef) { in rdsv3_message_purge()
107 "rm %p mr %p", rm, mr); in rdsv3_message_purge()
110 if (atomic_dec_and_test(&mr->r_refcount)) { in rdsv3_message_purge()
112 __rdsv3_put_mr_final(mr); in rdsv3_message_purge()
/illumos-gate/usr/src/uts/common/io/ib/adapters/tavor/
H A Dtavor_mr.c274 mr->mr_rkey = mr->mr_lkey; in tavor_mr_register_shared()
511 mr = *mrhdl; in tavor_mr_deregister()
525 if ((mr->mr_is_umem) && (mr->mr_umemcookie == NULL)) { in tavor_mr_deregister()
633 if ((mr->mr_is_umem) && (mr->mr_umemcookie == NULL)) { in tavor_mr_deregister()
679 if ((mr->mr_is_umem) && (mr->mr_umemcookie == NULL)) { in tavor_mr_query()
1277 mr->mr_rkey = mr->mr_lkey; in tavor_mr_common_reg()
1444 *mrhdl = mr; in tavor_mr_common_reg()
1544 bzero(mr, sizeof (*mr)); in tavor_dma_mr_register()
1576 mr->mr_rkey = mr->mr_lkey; in tavor_dma_mr_register()
1644 *mrhdl = mr; in tavor_dma_mr_register()
[all …]
H A Dtavor_srq.c69 tavor_mrhdl_t mr; in tavor_srq_alloc() local
305 addr = mr->mr_bindinfo.bi_addr; in tavor_srq_alloc()
306 lkey = mr->mr_lkey; in tavor_srq_alloc()
395 srq->srq_mrhdl = mr; in tavor_srq_alloc()
485 tavor_mrhdl_t mr; in tavor_srq_free() local
505 mr = srq->srq_mrhdl; in tavor_srq_free()
647 tavor_mrhdl_t mr; in tavor_srq_modify() local
850 mr = srq->srq_mrhdl; in tavor_srq_modify()
851 mutex_enter(&mr->mr_lock); in tavor_srq_modify()
874 mutex_exit(&mr->mr_lock); in tavor_srq_modify()
[all …]
H A Dtavor_cq.c74 tavor_mrhdl_t mr; in tavor_cq_alloc() local
251 _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*mr)) in tavor_cq_alloc()
252 addr = mr->mr_bindinfo.bi_addr; in tavor_cq_alloc()
253 lkey = mr->mr_lkey; in tavor_cq_alloc()
320 cq->cq_mrhdl = mr; in tavor_cq_alloc()
402 tavor_mrhdl_t mr; in tavor_cq_free() local
421 mr = cq->cq_mrhdl; in tavor_cq_free()
555 tavor_mrhdl_t mr, mr_old; in tavor_cq_resize() local
656 _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*mr)) in tavor_cq_resize()
730 cqc_entry.lkey = mr->mr_lkey; in tavor_cq_resize()
[all …]
H A Dtavor_umap.c1038 if (mr == NULL) { in tavor_umap_mr_data_in()
1058 mutex_enter(&mr->mr_lock); in tavor_umap_mr_data_in()
1059 if ((mr->mr_is_umem == 0) || (mr->mr_umemcookie == NULL)) { in tavor_umap_mr_data_in()
1060 mutex_exit(&mr->mr_lock); in tavor_umap_mr_data_in()
1076 mutex_exit(&mr->mr_lock); in tavor_umap_mr_data_in()
1682 tavor_mrhdl_t mr; in tavor_umap_umemlock_cb() local
1727 mutex_enter(&mr->mr_lock); in tavor_umap_umemlock_cb()
1728 mr_callback = mr->mr_umem_cbfunc; in tavor_umap_umemlock_cb()
1729 mr_cbarg1 = mr->mr_umem_cbarg1; in tavor_umap_umemlock_cb()
1730 mr_cbarg2 = mr->mr_umem_cbarg2; in tavor_umap_umemlock_cb()
[all …]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dstrtod.c46 decimal_mode mr; in strtod() local
60 mr.rd = _QgetRD(); in strtod()
62 mr.rd = __xgetRD(); in strtod()
67 __hex_to_double(&dr, mr.rd, &x, &fs); in strtod()
69 decimal_to_double(&x, &mr, &dr, &fs); in strtod()
79 decimal_mode mr; in strtof() local
91 mr.rd = _QgetRD(); in strtof()
93 mr.rd = __xgetRD(); in strtof()
110 decimal_mode mr; in strtold() local
122 mr.rd = _QgetRD(); in strtold()
[all …]
/illumos-gate/usr/src/cmd/bhyve/
H A Dmem.c157 struct mem_range *mr, void *arg);
163 struct mem_range *mr = arg; in mem_read() local
166 rval, mr->arg1, mr->arg2); in mem_read()
174 struct mem_range *mr = arg; in mem_write() local
177 &wval, mr->arg1, mr->arg2); in mem_write()
278 rma->val, mr->arg1, mr->arg2)); in rw_mem_cb()
349 struct mem_range *mr; in unregister_mem() local
356 mr = &entry->mr_param; in unregister_mem()
357 assert(mr->name == memp->name); in unregister_mem()
358 assert(mr->base == memp->base && mr->size == memp->size); in unregister_mem()
[all …]
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/qlc/
H A Dql_mbx.c1444 ql_mbx_data_t mr; in ql_login_lport() local
1554 mr->mb[2]); in ql_login_fport()
1582 ql_mbx_data_t mr; in ql_logout_fabric_port() local
1766 mr->mb[0] = in ql_log_iocb()
2848 if (mr != NULL) { in ql_get_id_list()
3154 if (mr != NULL) { in ql_mbx_wrap_test()
3275 if (mr != NULL) { in ql_get_firmware_option()
3315 if (mr != NULL) { in ql_set_firmware_option()
3465 if (mr != NULL) { in ql_get_firmware_state()
3520 if (mr != NULL) { in ql_get_adapter_id()
[all …]
H A Dql_init.c2194 ql_mbx_data_t mr; in ql_chip_diag() local
2235 (mr.mb[2] == PROD_ID_2 || mr.mb[2] == PROD_ID_2a) && in ql_chip_diag()
2236 (mr.mb[3] == PROD_ID_3 || mr.mb[3] == id)) { in ql_chip_diag()
2248 ha->instance, mr.mb[1], mr.mb[2], mr.mb[3]); in ql_chip_diag()
2529 ha->fw_ext_memory_size = ((SHORT_TO_LONG(mr.mb[4], mr.mb[5]) - in ql_start_firmware()
2541 mr.mb[12]); in ql_start_firmware()
2701 mr.mb[1] = (uint16_t)(mr.mb[1] | BIT_9); in ql_init_rings()
2702 mr.mb[2] = 0; in ql_init_rings()
2828 ql_mbx_data_t mr; in ql_fw_ready() local
3181 mr.mb[1] = 0; in ql_configure_hba()
[all …]
/illumos-gate/usr/src/uts/common/io/ib/clients/iser/
H A Diser_resource.c144 iser_mr_t mr; in iser_msg_cache_constructor() local
155 ISER_MAX_CTRLPDU_LEN, &mr); in iser_msg_cache_constructor()
164 msg->msg_ds.ds_key = mr.is_mrlkey; in iser_msg_cache_constructor()
178 iser_msg_t *msg = (iser_msg_t *)mr; in iser_msg_cache_destructor()
331 iser_mr_t *mr; in iser_dereg_rdma_mem() local
334 mr = (iser_mr_t *)idb->idb_reg_private; in iser_dereg_rdma_mem()
336 iser_dereg_mem(hca, mr); in iser_dereg_rdma_mem()
453 iser_mr_t *mr) in iser_vmem_mr() argument
480 mr->is_mrva = mrva; in iser_vmem_mr()
481 mr->is_mrlen = size; in iser_vmem_mr()
[all …]
H A Diser_cq.c97 iser_mr_t *mr; in iser_ib_poll_send_completions() local
164 mr = ((iser_buf_t *) in iser_ib_poll_send_completions()
178 uint64_t, mr->is_mrva, uint32_t, 0, in iser_ib_poll_send_completions()
179 uint32_t, mr->is_mrrkey, in iser_ib_poll_send_completions()
189 uint64_t, mr->is_mrva, uint32_t, 0, in iser_ib_poll_send_completions()
190 uint32_t, mr->is_mrrkey, in iser_ib_poll_send_completions()
268 mr = ((iser_buf_t *)idb->idb_buf_private)->iser_mr; in iser_ib_poll_send_completions()
282 uint64_t, mr->is_mrva, uint32_t, 0, in iser_ib_poll_send_completions()
283 uint32_t, mr->is_mrrkey, in iser_ib_poll_send_completions()
292 uint64_t, mr->is_mrva, uint32_t, 0, in iser_ib_poll_send_completions()
[all …]
H A Diser_xfer.c233 iser_mr_t *mr; in iser_xfer_ctrlpdu() local
303 mr = (iser_mr_t *)buf->idb_reg_private; in iser_xfer_ctrlpdu()
304 ASSERT(mr != NULL); in iser_xfer_ctrlpdu()
307 hdr->rstag = htonl(mr->is_mrrkey); in iser_xfer_ctrlpdu()
308 BE_OUT64(&hdr->rva, mr->is_mrva); in iser_xfer_ctrlpdu()
315 mr = (iser_mr_t *)buf->idb_reg_private; in iser_xfer_ctrlpdu()
316 ASSERT(mr != NULL); in iser_xfer_ctrlpdu()
319 hdr->wstag = htonl(mr->is_mrrkey); in iser_xfer_ctrlpdu()
320 BE_OUT64(&hdr->wva, mr->is_mrva); in iser_xfer_ctrlpdu()
/illumos-gate/usr/src/lib/libc/port/i18n/
H A Dwstod.c58 decimal_mode mr; in wcstod() local
69 mr.rd = __xgetRD(); in wcstod()
71 mr.rd = _QgetRD(); in wcstod()
76 __hex_to_double(&dr, mr.rd, &x, &fs); in wcstod()
78 decimal_to_double(&x, &mr, &dr, &fs); in wcstod()
88 decimal_mode mr; in wcstof() local
99 mr.rd = __xgetRD(); in wcstof()
101 mr.rd = _QgetRD(); in wcstof()
118 decimal_mode mr; in wcstold() local
129 mr.rd = __xgetRD(); in wcstold()
[all …]
/illumos-gate/usr/src/uts/common/xen/io/
H A Dxnbu.c380 mac_register_t *mr; in xnbu_attach() local
400 mac_free(mr); in xnbu_attach()
408 mr->m_dip = dip; in xnbu_attach()
409 mr->m_driver = xnbp; in xnbu_attach()
415 mr->m_type_ident = MAC_PLUGIN_IDENT_ETHER; in xnbu_attach()
416 mr->m_src_addr = xnbp->xnb_mac_addr; in xnbu_attach()
417 mr->m_callbacks = &xnbu_callbacks; in xnbu_attach()
418 mr->m_min_sdu = 0; in xnbu_attach()
419 mr->m_max_sdu = XNBMAXPKT; in xnbu_attach()
434 err = mac_register(mr, &xnbup->u_mh); in xnbu_attach()
[all …]
/illumos-gate/usr/src/uts/common/sys/ib/clients/iser/
H A Diser_resource.h107 void *vaddr, size_t size, iser_mr_t *mr);
130 int iser_wr_cache_constructor(void *mr, void *arg, int flags);
131 void iser_wr_cache_destructor(void *mr, void *arg);
147 int iser_msg_cache_constructor(void *mr, void *arg, int flags);
148 void iser_msg_cache_destructor(void *mr, void *arg);
169 int iser_buf_cache_constructor(void *mr, void *arg, int flags);
170 void iser_buf_cache_destructor(void *mr, void *arg);
/illumos-gate/usr/src/uts/common/sys/ib/clients/rdsv3/
H A Drdma.h101 extern void __rdsv3_put_mr_final(struct rdsv3_mr *mr);
102 static inline void rdsv3_mr_put(struct rdsv3_mr *mr) in rdsv3_mr_put() argument
104 if (atomic_dec_and_test(&mr->r_refcount)) in rdsv3_mr_put()
105 __rdsv3_put_mr_final(mr); in rdsv3_mr_put()
/illumos-gate/usr/src/uts/common/sys/
H A Dmac_impl.h222 #define MAC_RING_MARK(mr, flag) \ argument
223 (mr)->mr_flag |= flag;
226 (mr)->mr_flag &= ~flag;
233 (mr)->mr_refcnt++; \
236 #define MR_REFRELE(mr) { \ argument
237 mutex_enter(&(mr)->mr_lock); \
238 ASSERT((mr)->mr_refcnt != 0); \
239 (mr)->mr_refcnt--; \
240 if ((mr)->mr_refcnt == 0 && \
242 cv_signal(&(mr)->mr_cv); \
[all …]
/illumos-gate/usr/src/uts/common/io/mac/
H A Dmac_provider.c678 if ((mr != NULL) && (mr->mr_gen_num != mr_gen_num)) { in mac_rx_ring()
753 if (mr != NULL) { in mac_rx_common()
762 mutex_enter(&mr->mr_lock); in mac_rx_common()
763 if ((mr->mr_state != MR_INUSE) || (mr->mr_flag & in mac_rx_common()
775 MR_REFHOLD_LOCKED(mr); in mac_rx_common()
777 mr->mr_pt_fn(mr->mr_pt_arg1, mr->mr_pt_arg2, mp_chain, in mac_rx_common()
779 MR_REFRELE(mr); in mac_rx_common()
796 MR_REFHOLD_LOCKED(mr); in mac_rx_common()
799 mac_srs = mr->mr_srs; in mac_rx_common()
808 MR_REFRELE(mr); in mac_rx_common()
[all …]
/illumos-gate/usr/src/uts/common/io/comstar/port/srpt/
H A Dsrpt_ioc.c134 srpt_mr_t *mr);
1306 srpt_mr_t mr; in srpt_ioc_ds_alloc_dbuf() local
1334 dbuf->db_mr_hdl = mr.mr_hdl; in srpt_ioc_ds_alloc_dbuf()
1336 dbuf->db_sge.ds_va = mr.mr_va; in srpt_ioc_ds_alloc_dbuf()
1337 dbuf->db_sge.ds_key = mr.mr_lkey; in srpt_ioc_ds_alloc_dbuf()
1499 srpt_mr_t *mr) in srpt_vmem_mr() argument
1524 mr->mr_hdl = nearest->mr_hdl; in srpt_vmem_mr()
1525 mr->mr_va = mrva; in srpt_vmem_mr()
1526 mr->mr_len = size; in srpt_vmem_mr()
1527 mr->mr_lkey = nearest->mr_lkey; in srpt_vmem_mr()
[all …]
/illumos-gate/usr/src/lib/libslp/clib/
H A DSLPGetRefreshInterval.c50 int mr = 0; /* max results placeholder */ in SLPGetRefreshInterval() local
79 &max, &collator, &mr); in SLPGetRefreshInterval()
83 &max, &collator, &mr); in SLPGetRefreshInterval()
/illumos-gate/usr/src/uts/common/sys/ib/adapters/hermon/
H A Dhermon_mr.h95 #define HERMON_MR_REUSE_DMAHDL(mr, flags) \ argument
96 (((mr)->mr_bindinfo.bi_bypass != HERMON_BINDMEM_BYPASS) || \
313 int hermon_mr_reregister_buf(hermon_state_t *state, hermon_mrhdl_t mr,
328 ibt_pmr_attr_t *mem_pattr_p, hermon_mrhdl_t mr, ibt_pmr_desc_t *mem_desc_p);
330 ibt_lkey_flags_t flags, uint_t sz, hermon_mrhdl_t *mr);

1234