/freebsd-12-stable/contrib/ofed/opensm/include/vendor/ |
H A D | osm_vendor_mlx_svc.h | 103 inline static boolean_t osmv_mad_is_rmpp(IN const ib_mad_t * p_mad) argument 106 CL_ASSERT(NULL != p_mad); 108 rmpp_flags = ((ib_rmpp_mad_t *) p_mad)->rmpp_flags; 110 if ((p_mad->mgmt_class != IB_MCLASS_SUBN_ADM) && 111 (p_mad->mgmt_class != IB_MCLASS_DEV_MGMT)) 116 inline static boolean_t osmv_mad_is_multi_resp(IN const ib_mad_t * p_mad) argument 118 CL_ASSERT(NULL != p_mad); 119 return (IB_MAD_METHOD_GETMULTI == p_mad->method 120 || IB_MAD_METHOD_GETTRACETABLE == p_mad->method); 123 inline static boolean_t osmv_mad_is_sa(IN const ib_mad_t * p_mad) argument 129 osmv_rmpp_is_abort_stop(IN const ib_mad_t * p_mad) argument 139 osmv_rmpp_is_data(IN const ib_mad_t * p_mad) argument 145 osmv_rmpp_is_ack(IN const ib_mad_t * p_mad) argument 151 osmv_rmpp_is_first(IN const ib_mad_t * p_mad) argument 160 osmv_rmpp_is_last(IN const ib_mad_t * p_mad) argument 169 osmv_mad_copy(IN const ib_mad_t * p_mad) argument [all...] |
H A D | osm_vendor_mlx.h | 88 ib_mad_t *p_mad; member in struct:_osm_vend_wrap
|
H A D | osm_vendor_mlx_transport.h | 83 IN void *p_mad, IN const osm_mad_addr_t * p_mad_addr);
|
H A D | osm_vendor_mtl_transaction_mgr.h | 239 IN ib_mad_t * p_mad); 245 * p_mad 255 * Return the mad wrapper, given the p_mad (and in it the transaction id) 261 IN ib_mad_t * const p_mad, 268 * p_mad
|
H A D | osm_pkt_randomizer.h | 202 IN const ib_mad_t * p_mad); 211 * p_mad
|
H A D | osm_vendor_mlx_rmpp_ctx.h | 200 OUT void *p_mad); 265 IN void *p_mad);
|
/freebsd-12-stable/contrib/ofed/opensm/libvendor/ |
H A D | osm_vendor_mlx_sar.c | 113 void *buf_tmp, *p_mad; local 122 p_mad = p_sar->p_arbt_mad; 126 memcpy(p_mad, buf_tmp, p_sar->hdr_sz); 127 p_mad = (char *)p_mad + p_sar->hdr_sz; 138 memcpy((char *)p_mad, (char *)buf_tmp + p_sar->hdr_sz, 140 p_mad = (char *)p_mad + p_sar->data_sz; 144 memcpy((char *)p_mad, (char *)buf_tmp + p_sar->hdr_sz, 146 p_mad [all...] |
H A D | osm_vendor_mlx_ts_anafa.c | 66 IN struct ib_mad *p_mad, 73 OUT struct ib_mad *p_mad); 264 IN void *p_mad, IN const osm_mad_addr_t * p_mad_addr) 273 const ib_mad_t *p_mad_hdr = p_mad; 359 OUT struct ib_mad *p_mad) 363 p_mad->dlid = cl_ntoh16(p_mad_addr->dest_lid); 364 p_mad->sl = p_mad_addr->addr_type.gsi.service_level; 366 p_mad->sqpn = 0; 367 p_mad->dqpn = 0; 369 p_mad 263 osmv_transport_mad_send(IN const osm_bind_handle_t h_bind, IN void *p_mad, IN const osm_mad_addr_t * p_mad_addr) argument 357 __osmv_TOPSPIN_ANAFA_osm_addr_to_mad_addr(IN const osm_mad_addr_t * p_mad_addr, IN uint8_t is_smi, OUT struct ib_mad *p_mad) argument 380 __osmv_TOPSPIN_ANAFA_mad_addr_to_osm_addr(IN osm_vendor_t const *p_vend, IN struct ib_mad *p_mad, IN uint8_t is_smi, OUT osm_mad_addr_t * p_mad_addr) argument [all...] |
H A D | osm_vendor_mlx_dispatcher.c | 62 IN const ib_mad_t * p_mad, OUT osmv_txn_ctx_t ** pp_txn); 66 IN const ib_mad_t * p_mad, 72 IN const ib_mad_t * p_mad, 78 IN const ib_mad_t * p_mad, 84 IN const ib_mad_t * p_mad, 91 IN const ib_mad_t * p_mad); 121 const ib_mad_t *p_mad = (ib_mad_t *) p_mad_buf; local 128 CL_ASSERT(NULL != h_bind && NULL != p_mad && NULL != p_mad_addr); 153 p_mad) == TRUE) { 160 switch (__osmv_dispatch_route(h_bind, p_mad, 191 __osmv_dispatch_route(IN osm_bind_handle_t h_bind, IN const ib_mad_t * p_mad, OUT osmv_txn_ctx_t ** pp_txn) argument 236 __osmv_dispatch_simple_mad(IN osm_bind_handle_t h_bind, IN const ib_mad_t * p_mad, IN osmv_txn_ctx_t * p_txn, IN const osm_mad_addr_t * p_mad_addr) argument 298 __osmv_dispatch_rmpp_mad(IN osm_bind_handle_t h_bind, IN const ib_mad_t * p_mad, IN osmv_txn_ctx_t * p_txn, IN const osm_mad_addr_t * p_mad_addr) argument 387 __osmv_dispatch_rmpp_snd(IN osm_bind_handle_t h_bind, IN const ib_mad_t * p_mad, IN osmv_txn_ctx_t * p_txn, IN const osm_mad_addr_t * p_mad_addr) argument 484 __osmv_dispatch_rmpp_rcv(IN osm_bind_handle_t h_bind, IN const ib_mad_t * p_mad, IN osmv_txn_ctx_t * p_txn, IN const osm_mad_addr_t * p_mad_addr) argument 647 __osmv_dispatch_accept_seg(IN osm_bind_handle_t h_bind, IN osmv_txn_ctx_t * p_txn, IN const ib_mad_t * p_mad) argument [all...] |
H A D | osm_vendor_ts.c | 60 CL_ASSERT(p_madw->p_mad); 64 ib_mad_is_response(p_madw->p_mad); 83 IN struct ib_mad *p_mad, 87 p_mad_addr->dest_lid = cl_hton16(p_mad->slid); 92 p_mad_addr->addr_type.smi.source_lid = cl_hton16(p_mad->slid); 93 p_mad_addr->addr_type.smi.port_num = p_mad->port; 96 p_mad_addr->addr_type.gsi.remote_qp = p_mad->sqpn; 98 p_mad_addr->addr_type.gsi.pkey_ix = p_mad->pkey_index; 125 IN uint8_t is_smi, OUT struct ib_mad *p_mad) 129 p_mad 82 __osm_ts_conv_mad_rcv_desc_to_osm_addr(IN osm_vendor_t * const p_vend, IN struct ib_mad *p_mad, IN uint8_t is_smi, OUT osm_mad_addr_t * p_mad_addr) argument 124 __osm_ts_conv_osm_addr_to_ts_addr(IN osm_mad_addr_t * p_mad_addr, IN uint8_t is_smi, OUT struct ib_mad *p_mad) argument 269 __osm_ts_rcv_callback(IN osm_ts_bind_info_t * p_bind, IN osm_mad_addr_t * p_mad_addr, IN uint32_t mad_size, IN void *p_mad) argument 646 ib_mad_t *p_mad; local 730 ib_mad_t *const p_mad = osm_madw_get_mad_ptr(p_madw); local [all...] |
H A D | osm_vendor_mlx_sender.c | 71 ib_mad_t *p_mad = (ib_mad_t *) mad_buf; local 78 memset(p_mad, 0, MAD_BLOCK_SIZE); 79 memcpy(p_mad, osm_madw_get_mad_ptr(p_madw), p_madw->mad_size); 84 p_mad->trans_id = cl_hton64(key); 98 p_mad) == TRUE) { 104 osmv_transport_mad_send(h_bind, p_mad, p_mad_addr); 107 ret = osmv_transport_mad_send(h_bind, p_mad, p_mad_addr); 313 ib_mad_t *p_mad = (ib_mad_t *) mad_buf; local 337 p_mad); 341 p_mad [all...] |
H A D | osm_vendor_test.c | 119 ib_mad_t *p_mad; local 129 p_mad = (ib_mad_t *) malloc(size); 132 "osm_vendor_get: " "MAD %p.\n", p_mad); 134 if (p_mad) 135 memset(p_mad, 0, size); 138 return (p_mad); 144 IN ib_mad_t * const p_mad) 155 "osm_vendor_put: " "MAD %p.\n", p_mad); 160 free(p_mad); 169 IN ib_mad_t * const p_mad, 142 osm_vendor_put(IN osm_bind_handle_t h_bind, IN osm_vend_wrap_t * const p_vend_wrap, IN ib_mad_t * const p_mad) argument 166 osm_vendor_send(IN osm_bind_handle_t h_bind, IN osm_vend_wrap_t * const p_vend_wrap, IN osm_mad_addr_t * const p_mad_addr, IN ib_mad_t * const p_mad, IN void *transaction_context, IN boolean_t const resp_expected) argument [all...] |
H A D | osm_vendor_ibumad.c | 105 if (p_madw->p_mad->mgmt_class != IB_MCLASS_SUBN_DIR) { 112 p_madw->p_mad->mgmt_class, p_madw->p_mad->method, 113 cl_ntoh16(p_madw->p_mad->attr_id), 114 cl_ntoh64(p_madw->p_mad->trans_id), 125 p_madw->p_mad->method, 126 cl_ntoh16(p_madw->p_mad->attr_id), 127 cl_ntoh64(p_madw->p_mad->trans_id)); 312 p_madw->p_mad = umad_get_mad(umad); 329 ib_mad_t *p_mad, *p_req_ma local 1112 ib_mad_t *const p_mad = osm_madw_get_mad_ptr(p_madw); local [all...] |
H A D | osm_vendor_mlx_sim.c | 84 void __osmv_ibms_receiver_callback(void *p_ctx, ibms_mad_msg_t * p_mad) argument 103 p_mad->addr.dqpn, 104 cl_ntoh16(p_mad->addr.slid), 105 p_mad->header.mgmt_class, 106 p_mad->header.method, 107 cl_ntoh16(p_mad->header.attr_id), 108 cl_ntoh16(p_mad->header.status), 109 cl_ntoh64(p_mad->header.trans_id)); 113 &p_mad->addr, 114 (((ib_mad_t *) & p_mad 243 osmv_transport_mad_send(IN const osm_bind_handle_t h_bind, IN void *p_mad, IN const osm_mad_addr_t * p_mad_addr) argument [all...] |
H A D | osm_vendor_mlx_ts.c | 70 IN struct ib_mad *p_mad, 77 OUT struct ib_mad *p_mad); 277 IN void *p_mad, IN const osm_mad_addr_t * p_mad_addr) 286 const ib_mad_t *p_mad_hdr = p_mad; 409 IN uint8_t is_smi, OUT struct ib_mad *p_mad) 413 p_mad->dlid = cl_ntoh16(p_mad_addr->dest_lid); 414 p_mad->sl = p_mad_addr->addr_type.gsi.service_level; 416 p_mad->sqpn = 0; 417 p_mad->dqpn = 0; 419 p_mad 276 osmv_transport_mad_send(IN const osm_bind_handle_t h_bind, IN void *p_mad, IN const osm_mad_addr_t * p_mad_addr) argument 408 __osmv_TOPSPIN_osm_addr_to_mad_addr(IN const osm_mad_addr_t * p_mad_addr, IN uint8_t is_smi, OUT struct ib_mad *p_mad) argument 430 __osmv_TOPSPIN_mad_addr_to_osm_addr(IN osm_vendor_t const *p_vend, IN struct ib_mad *p_mad, IN uint8_t is_smi, OUT osm_mad_addr_t * p_mad_addr) argument [all...] |
H A D | osm_vendor_mtl_transaction_mgr.c | 66 ib_mad_t *p_mad; local 240 p_mad = osm_madw_get_mad_ptr(madw_p); 337 if (osm_madw_req_p->p_madw->p_mad) 342 osm_madw_req_p->p_madw->p_mad-> 391 const ib_mad_t *mad_p = p_madw->p_mad; 412 PRIx64 ">.\n", p_madw, waking_time, p_madw->p_mad->trans_id); 447 IN ib_mad_t * p_mad) 457 key = (uint64_t) p_mad->trans_id; 460 "Removing TID:<0x%" PRIx64 ">.\n", p_mad->trans_id); 479 "Removed TID:<0x%" PRIx64 ">.\n", p_mad 446 osm_transaction_mgr_erase_madw(IN osm_vendor_t * const p_vend, IN ib_mad_t * p_mad) argument 496 osm_transaction_mgr_get_madw_for_tid(IN osm_vendor_t * const p_vend, IN ib_mad_t * const p_mad, OUT osm_madw_t ** req_madw_p) argument [all...] |
H A D | osm_vendor_mlx.c | 363 ib_mad_t *p_mad; local 380 p_mad = (ib_mad_t *) malloc(act_mad_size); 381 if (p_mad == NULL) { 388 memset(p_mad, 0, act_mad_size); 393 "Allocated MAD %p, size = %u.\n", p_mad, act_mad_size); 395 p_vw->p_mad = p_mad; 399 return (p_mad); 422 ib_mad_t *p_mad; local 428 NULL == (p_mad 688 ib_mad_t *p_mad = osm_madw_get_mad_ptr(p_madw); local [all...] |
H A D | osm_vendor_mlx_anafa.c | 377 ib_mad_t *p_mad; local 394 p_mad = (ib_mad_t *) malloc(act_mad_size); 395 if (p_mad == NULL) { 402 memset(p_mad, 0, act_mad_size); 407 "Allocated MAD %p, size = %u.\n", p_mad, act_mad_size); 409 p_vw->p_mad = p_mad; 413 return (p_mad); 436 ib_mad_t *p_mad; local 441 NULL == (p_mad 679 ib_mad_t *p_mad = osm_madw_get_mad_ptr(p_madw); local [all...] |
H A D | osm_vendor_umadt.c | 384 ib_mad_t *p_mad; local 412 p_mad = (ib_mad_t *) malloc(mad_size); 413 if (!p_mad) { 418 memset(p_mad, 0, mad_size); 423 return (p_mad); 433 IN ib_mad_t * const p_mad) 453 /* CL_ASSERT( (ib_mad_t*)&p_vend_wrap->p_madt_struct->IBMad == p_mad ); */ 461 free(p_mad); 474 p_mad); 496 IN ib_mad_t * const p_mad, 431 osm_vendor_put(IN osm_bind_handle_t h_bind, IN osm_vend_wrap_t * const p_vend_wrap, IN ib_mad_t * const p_mad) argument 493 osm_vendor_send(IN osm_bind_handle_t h_bind, IN osm_vend_wrap_t * const p_vend_wrap, IN osm_mad_addr_t * const p_mad_addr, IN ib_mad_t * const p_mad, IN void *transaction_context, IN boolean_t const resp_expected) argument [all...] |
H A D | osm_vendor_mlx_ibmgt.c | 376 ib_mad_t *p_mad = p_ib_mad; local 386 if (p_mad->mgmt_class != IB_MCLASS_SUBN_DIR) { 388 p_mad->mgmt_class == 398 if ((p_mad->mgmt_class == IB_MCLASS_SUBN_DIR) || 399 (p_mad->mgmt_class == IB_MCLASS_SUBN_LID)) { 412 ret = IB_MGT_send_mad(p_tpot_info->smi_h, p_mad, /* actual payload */ 428 ret = IB_MGT_send_mad_to_qp(p_tpot_info->gsi_h, p_mad, /* actual payload */ 608 ib_mad_t *p_mad = (ib_mad_t *) payload_p; local 613 ((p_mad->mgmt_class == 615 || (p_mad [all...] |
H A D | osm_vendor_al.c | 178 ib_mad_t *p_mad; local 198 p_mad = ib_get_mad_buf(p_elem); 234 cl_ntoh64(p_mad->trans_id)); 990 ib_mad_t *p_mad; local 1013 p_mad = NULL; 1018 p_mad = ib_get_mad_buf(p_vw->p_elem); 1023 "Acquired MAD %p, size = %u.\n", p_mad, mad_size); 1028 return (p_mad); 1068 ib_mad_t *const p_mad = osm_madw_get_mad_ptr(p_madw); local 1103 if (p_mad [all...] |
/freebsd-12-stable/contrib/ofed/opensm/opensm/ |
H A D | osm_mad_pool.c | 80 ib_mad_t *p_mad; local 97 p_mad = osm_vendor_get(h_bind, total_size, &p_madw->vend_wrap); 98 if (p_mad == NULL) { 109 osm_madw_set_mad(p_madw, p_mad); 118 IN const ib_mad_t * p_mad, 125 CL_ASSERT(p_mad); 139 osm_madw_set_mad(p_madw, p_mad); 167 if (p_madw->p_mad) 115 osm_mad_pool_get_wrapper(IN osm_mad_pool_t * p_pool, IN osm_bind_handle_t h_bind, IN uint32_t total_size, IN const ib_mad_t * p_mad, IN const osm_mad_addr_t * p_mad_addr) argument
|
H A D | osm_qos.c | 91 qos_mad_item_t *p_mad; local 121 p_mad = (qos_mad_item_t *) malloc(sizeof(*p_mad)); 122 if (!p_mad) 125 memset(p_mad, 0, sizeof(*p_mad)); 134 free(p_mad); 137 p_mad->p_madw = p_madw; 138 return p_mad; 161 qos_mad_item_t *p_mad; local 260 qos_mad_item_t *p_mad; local [all...] |
/freebsd-12-stable/contrib/ofed/opensm/include/opensm/ |
H A D | osm_madw.h | 459 const ib_mad_t *p_mad; member in struct:osm_madw 499 * p_mad 561 return ((ib_smp_t *) p_madw->p_mad); 589 return ((ib_sa_mad_t *) p_madw->p_mad); 615 return ((ib_perfmgt_mad_t *) p_madw->p_mad); 641 return ((ib_cc_mad_t *) p_madw->p_mad); 1101 return ((ib_mad_t *) p_madw->p_mad); 1156 IN const ib_mad_t * p_mad) 1158 p_madw->p_mad = p_mad; 1155 osm_madw_set_mad(IN osm_madw_t * p_madw, IN const ib_mad_t * p_mad) argument [all...] |
H A D | osm_mad_pool.h | 271 IN const ib_mad_t * p_mad, 286 * p_mad
|