Home
last modified time | relevance | path

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

1234

/titanic_41/usr/src/uts/common/io/ib/adapters/hermon/
H A Dhermon_mr.c65 static int hermon_mr_common_rereg(hermon_state_t *state, hermon_mrhdl_t mr,
68 static int hermon_mr_rereg_xlat_helper(hermon_state_t *state, hermon_mrhdl_t mr,
179 hermon_mrhdl_t mr; in hermon_mr_register_shared() local
229 mr = (hermon_mrhdl_t)rsrc->hr_addr; in hermon_mr_register_shared()
230 _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*mr)) in hermon_mr_register_shared()
237 mr->mr_accflag = 0; in hermon_mr_register_shared()
239 mr->mr_accflag |= IBT_MR_WINDOW_BIND; in hermon_mr_register_shared()
241 mr->mr_accflag |= IBT_MR_LOCAL_WRITE; in hermon_mr_register_shared()
243 mr->mr_accflag |= IBT_MR_REMOTE_READ; in hermon_mr_register_shared()
245 mr->mr_accflag |= IBT_MR_REMOTE_WRITE; in hermon_mr_register_shared()
[all …]
H A Dhermon_srq.c68 hermon_mrhdl_t mr; in hermon_srq_alloc() local
283 status = hermon_mr_register(state, pd, &mr_attr, &mr, in hermon_srq_alloc()
289 _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*mr)) in hermon_srq_alloc()
297 (uint64_t)mr->mr_bindinfo.bi_addr; in hermon_srq_alloc()
326 srqc_entry.log2_pgsz = mr->mr_log2_pgsz; in hermon_srq_alloc()
327 srqc_entry.mtt_base_addrh = (uint32_t)((mr->mr_mttaddr >> 32) & 0xFF); in hermon_srq_alloc()
328 srqc_entry.mtt_base_addrl = mr->mr_mttaddr >> 3; in hermon_srq_alloc()
364 srq->srq_mrhdl = mr; in hermon_srq_alloc()
417 if (hermon_mr_deregister(state, &mr, HERMON_MR_DEREG_ALL, in hermon_srq_alloc()
453 hermon_mrhdl_t mr; in hermon_srq_free() local
[all …]
/titanic_41/usr/src/uts/common/io/ib/clients/rdsv3/
H A Drdma.c88 struct rdsv3_mr *mr; in rdsv3_mr_tree_walk() local
91 mr = avl_find(root, &key, &where); in rdsv3_mr_tree_walk()
92 if ((mr == NULL) && (insert != NULL)) { in rdsv3_mr_tree_walk()
98 return (mr); in rdsv3_mr_tree_walk()
105 rdsv3_destroy_mr(struct rdsv3_mr *mr) in rdsv3_destroy_mr() argument
107 struct rdsv3_sock *rs = mr->r_sock; in rdsv3_destroy_mr()
113 mr->r_key, atomic_get(&mr->r_refcount)); in rdsv3_destroy_mr()
115 if (test_and_set_bit(RDSV3_MR_DEAD, &mr->r_state)) in rdsv3_destroy_mr()
119 np = &mr->r_rb_node; in rdsv3_destroy_mr()
121 avl_remove(&rs->rs_rdma_keys, mr); in rdsv3_destroy_mr()
[all …]
H A Dmessage.c98 struct rdsv3_mr *mr = rm->m_rdma_mr; in rdsv3_message_purge() local
99 if (mr->r_refcount == 0) { in rdsv3_message_purge()
101 "rm %p mr %p", rm, mr); in rdsv3_message_purge()
104 if (mr->r_refcount == 0xdeadbeef) { in rdsv3_message_purge()
106 "rm %p mr %p", rm, mr); in rdsv3_message_purge()
109 if (atomic_dec_and_test(&mr->r_refcount)) { in rdsv3_message_purge()
111 __rdsv3_put_mr_final(mr); in rdsv3_message_purge()
/titanic_41/usr/src/uts/common/io/ib/adapters/tavor/
H A Dtavor_mr.c56 static int tavor_mr_common_rereg(tavor_state_t *state, tavor_mrhdl_t mr,
59 static int tavor_mr_rereg_xlat_helper(tavor_state_t *state, tavor_mrhdl_t mr,
185 tavor_mrhdl_t mr; in tavor_mr_register_shared() local
241 mr = (tavor_mrhdl_t)rsrc->tr_addr; in tavor_mr_register_shared()
242 _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*mr)) in tavor_mr_register_shared()
249 mr->mr_accflag = 0; in tavor_mr_register_shared()
251 mr->mr_accflag |= IBT_MR_WINDOW_BIND; in tavor_mr_register_shared()
253 mr->mr_accflag |= IBT_MR_LOCAL_WRITE; in tavor_mr_register_shared()
255 mr->mr_accflag |= IBT_MR_REMOTE_READ; in tavor_mr_register_shared()
257 mr->mr_accflag |= IBT_MR_REMOTE_WRITE; in tavor_mr_register_shared()
[all …]
H A Dtavor_srq.c69 tavor_mrhdl_t mr; in tavor_srq_alloc() local
298 status = tavor_mr_register(state, pd, &mr_attr, &mr, &mr_op); in tavor_srq_alloc()
304 _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*mr)) in tavor_srq_alloc()
305 addr = mr->mr_bindinfo.bi_addr; in tavor_srq_alloc()
306 lkey = mr->mr_lkey; in tavor_srq_alloc()
314 (uint64_t)mr->mr_bindinfo.bi_addr; in tavor_srq_alloc()
395 srq->srq_mrhdl = mr; in tavor_srq_alloc()
449 if (tavor_mr_deregister(state, &mr, TAVOR_MR_DEREG_ALL, in tavor_srq_alloc()
485 tavor_mrhdl_t mr; in tavor_srq_free() local
505 mr = srq->srq_mrhdl; in tavor_srq_free()
[all …]
H A Dtavor_cq.c74 tavor_mrhdl_t mr; in tavor_cq_alloc() local
245 status = tavor_mr_register(state, pd, &mr_attr, &mr, &op); in tavor_cq_alloc()
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()
260 (void) ddi_dma_sync(mr->mr_bindinfo.bi_dmahdl, 0, in tavor_cq_alloc()
320 cq->cq_mrhdl = mr; in tavor_cq_alloc()
366 if (tavor_mr_deregister(state, &mr, TAVOR_MR_DEREG_ALL, in tavor_cq_alloc()
402 tavor_mrhdl_t mr; in tavor_cq_free() local
421 mr = cq->cq_mrhdl; in tavor_cq_free()
[all …]
/titanic_41/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()
98 __hex_to_single(&dr, mr.rd, &x, &fs); in strtof()
100 decimal_to_single(&x, &mr, &dr, &fs); in strtof()
[all …]
/titanic_41/usr/src/lib/lvm/libmeta/common/
H A Dmeta_raid.c94 mr_unit_t *mr; in meta_get_raid_common() local
118 if ((mr = (mr_unit_t *)meta_get_mdunit(sp, raidnp, ep)) == NULL) in meta_get_raid_common()
120 assert(mr->c.un_type == MD_METARAID); in meta_get_raid_common()
126 ncol = mr->un_totalcolumncnt; in meta_get_raid_common()
134 raidp->common.type = mr->c.un_type; in meta_get_raid_common()
135 raidp->common.state = mr->c.un_status; in meta_get_raid_common()
136 raidp->common.capabilities = mr->c.un_capabilities; in meta_get_raid_common()
137 raidp->common.parent = mr->c.un_parent; in meta_get_raid_common()
138 raidp->common.size = mr->c.un_total_blocks; in meta_get_raid_common()
139 raidp->common.user_flags = mr->c.un_user_flags; in meta_get_raid_common()
[all …]
/titanic_41/usr/src/uts/common/io/fibre-channel/fca/qlc/
H A Dql_mbx.c1444 ql_mbx_data_t mr; in ql_login_lport() local
1456 rval = ql_log_iocb(ha, tq, loop_id, flags, &mr); in ql_login_lport()
1502 uint16_t opt, ql_mbx_data_t *mr) in ql_login_fport() argument
1524 rval = ql_log_iocb(ha, tq, loop_id, flags, mr); in ql_login_fport()
1542 if (mr != NULL) { in ql_login_fport()
1543 mr->mb[0] = mcp->mb[0]; in ql_login_fport()
1544 mr->mb[1] = mcp->mb[1]; in ql_login_fport()
1545 mr->mb[2] = mcp->mb[2]; in ql_login_fport()
1546 mr->mb[6] = mcp->mb[6]; in ql_login_fport()
1547 mr->mb[7] = mcp->mb[7]; in ql_login_fport()
[all …]
H A Dql_init.c2194 ql_mbx_data_t mr; in ql_chip_diag() local
2220 mr.mb[1] = RD16_IO_REG(ha, mailbox_out[1]); in ql_chip_diag()
2221 mr.mb[2] = RD16_IO_REG(ha, mailbox_out[2]); in ql_chip_diag()
2222 mr.mb[3] = RD16_IO_REG(ha, mailbox_out[3]); in ql_chip_diag()
2234 if (mr.mb[1] == PROD_ID_1 && in ql_chip_diag()
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()
2257 mr.mb[1] = 0xAAAA; in ql_chip_diag()
2258 mr.mb[2] = 0x5555; in ql_chip_diag()
[all …]
/titanic_41/usr/src/uts/common/io/cxgbe/t4nex/
H A Dt4_ioctl.c480 struct t4_mem_range mr; in read_card_mem() local
485 if (ddi_copyin(data, &mr, sizeof (mr), flags) < 0) { in read_card_mem()
491 if (mr.addr & 3 || mr.len & 3 || mr.len == 0) { in read_card_mem()
506 mr.addr >= base && mr.addr < base + size && in read_card_mem()
507 mr.addr + mr.len <= base + size) in read_card_mem()
515 mr.addr >= base && mr.addr < base + size && in read_card_mem()
516 mr.addr + mr.len <= base + size) in read_card_mem()
524 mr.addr >= base && mr.addr < base + size && in read_card_mem()
525 mr.addr + mr.len <= base + size) in read_card_mem()
531 buf = b = kmem_zalloc(mr.len, KM_NOSLEEP); in read_card_mem()
[all …]
/titanic_41/usr/src/uts/common/io/ib/clients/iser/
H A Diser_resource.c51 static void iser_dereg_mem(iser_hca_t *hca, iser_mr_t *mr);
144 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()
176 iser_msg_cache_destructor(void *mr, void *arg) in iser_msg_cache_destructor() argument
178 iser_msg_t *msg = (iser_msg_t *)mr; in iser_msg_cache_destructor()
243 iser_buf_cache_constructor(void *mr, void *arg, int flags) in iser_buf_cache_constructor() argument
247 iser_buf_t *iser_buf = (iser_buf_t *)mr; in iser_buf_cache_constructor()
292 iser_buf_cache_destructor(void *mr, void *arg) in iser_buf_cache_destructor() argument
294 iser_buf_t *iser_buf = (iser_buf_t *)mr; in iser_buf_cache_destructor()
[all …]
H A Diser_cq.c96 iser_mr_t *mr; in iser_ib_poll_send_completions() local
163 mr = ((iser_buf_t *) in iser_ib_poll_send_completions()
177 uint64_t, mr->is_mrva, uint32_t, 0, in iser_ib_poll_send_completions()
178 uint32_t, mr->is_mrrkey, in iser_ib_poll_send_completions()
188 uint64_t, mr->is_mrva, uint32_t, 0, in iser_ib_poll_send_completions()
189 uint32_t, mr->is_mrrkey, in iser_ib_poll_send_completions()
267 mr = ((iser_buf_t *)idb->idb_buf_private)->iser_mr; in iser_ib_poll_send_completions()
281 uint64_t, mr->is_mrva, uint32_t, 0, in iser_ib_poll_send_completions()
282 uint32_t, mr->is_mrrkey, in iser_ib_poll_send_completions()
291 uint64_t, mr->is_mrva, uint32_t, 0, in iser_ib_poll_send_completions()
[all …]
/titanic_41/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()
106 __hex_to_single(&dr, mr.rd, &x, &fs); in wcstof()
108 decimal_to_single(&x, &mr, &dr, &fs); in wcstof()
[all …]
/titanic_41/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);
/titanic_41/usr/src/uts/common/xen/io/
H A Dxnbu.c380 mac_register_t *mr; in xnbu_attach() local
394 if ((mr = mac_alloc(MAC_VERSION)) == NULL) { in xnbu_attach()
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()
[all …]
/titanic_41/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()
/titanic_41/usr/src/lib/libbc/libc/gen/common/
H A Dstrtod.c39 decimal_mode mr; local
50 mr.rd = fp_direction;
51 decimal_to_double(&x, &mr, &dr, &fs);
/titanic_41/usr/src/uts/common/sys/
H A Dmac_impl.h233 #define MAC_RING_MARK(mr, flag) \ argument
234 (mr)->mr_flag |= flag;
236 #define MAC_RING_UNMARK(mr, flag) \ argument
237 (mr)->mr_flag &= ~flag;
242 #define MR_REFHOLD_LOCKED(mr) { \ argument
243 ASSERT(MUTEX_HELD(&mr->mr_lock)); \
244 (mr)->mr_refcnt++; \
247 #define MR_REFRELE(mr) { \ argument
248 mutex_enter(&(mr)->mr_lock); \
249 ASSERT((mr)->mr_refcnt != 0); \
[all …]
/titanic_41/usr/src/uts/sun4u/starcat/io/
H A Dfcgp2.c935 ddi_map_req_t mr; in gp2_map_phys() local
952 mr.map_op = DDI_MO_MAP_LOCKED; in gp2_map_phys()
953 mr.map_type = DDI_MT_REGSPEC; in gp2_map_phys()
954 mr.map_obj.rp = (struct regspec *)phys_spec; in gp2_map_phys()
955 mr.map_prot = PROT_READ | PROT_WRITE; in gp2_map_phys()
956 mr.map_flags = DDI_MF_KERNEL_MAPPING; in gp2_map_phys()
957 mr.map_handlep = hp; in gp2_map_phys()
958 mr.map_vers = DDI_MAP_VERSION; in gp2_map_phys()
960 result = ddi_map(dip, &mr, 0, 0, addrp); in gp2_map_phys()
975 ddi_map_req_t mr; in gp2_unmap_phys() local
[all …]
H A Daxq.c1676 ddi_map_req_t mr; in axq_map_phys() local
1693 mr.map_op = DDI_MO_MAP_LOCKED; in axq_map_phys()
1694 mr.map_type = DDI_MT_REGSPEC; in axq_map_phys()
1695 mr.map_obj.rp = phys_spec; in axq_map_phys()
1696 mr.map_prot = PROT_READ | PROT_WRITE; in axq_map_phys()
1697 mr.map_flags = DDI_MF_KERNEL_MAPPING; in axq_map_phys()
1698 mr.map_handlep = hp; in axq_map_phys()
1699 mr.map_vers = DDI_MAP_VERSION; in axq_map_phys()
1701 result = ddi_map(dip, &mr, 0, 0, addrp); in axq_map_phys()
1716 ddi_map_req_t mr; in axq_unmap_phys() local
[all …]
/titanic_41/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()
/titanic_41/usr/src/uts/common/io/comstar/port/srpt/
H A Dsrpt_ioc.c131 static void srpt_vmem_chunk_free(srpt_vmem_pool_t *vm_pool, srpt_mr_t *mr);
132 static void srpt_dereg_mem(srpt_ioc_t *ioc, srpt_mr_t *mr);
134 srpt_mr_t *mr);
1306 srpt_mr_t mr; in srpt_ioc_ds_alloc_dbuf() local
1321 if (srpt_vmem_mr(ioc->ioc_dbuf_pool, buf, size, &mr) != 0) { in srpt_ioc_ds_alloc_dbuf()
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()
[all …]
/titanic_41/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