Lines Matching refs:p_madw

194 static void perfmgr_mad_recv_callback(osm_madw_t * p_madw, void *bind_context,  in perfmgr_mad_recv_callback()  argument
201 CL_ASSERT(p_madw); in perfmgr_mad_recv_callback()
204 osm_madw_copy_context(p_madw, p_req_madw); in perfmgr_mad_recv_callback()
211 p_madw, NULL, NULL) != CL_SUCCESS) { in perfmgr_mad_recv_callback()
214 osm_mad_pool_put(pm->mad_pool, p_madw); in perfmgr_mad_recv_callback()
223 osm_madw_t * p_madw) in perfmgr_mad_send_err_callback() argument
226 osm_madw_context_t *context = &p_madw->context; in perfmgr_mad_send_err_callback()
250 cl_ntoh16(p_madw->mad_addr.dest_lid), in perfmgr_mad_send_err_callback()
251 cl_ntoh64(p_madw->p_mad->trans_id)); in perfmgr_mad_send_err_callback()
253 if (pm->subn->opt.perfmgr_redir && p_madw->status == IB_TIMEOUT) { in perfmgr_mad_send_err_callback()
275 osm_mad_pool_put(pm->mad_pool, p_madw); in perfmgr_mad_send_err_callback()
399 osm_madw_t *p_madw = NULL; in perfmgr_build_mad() local
403 p_madw = osm_mad_pool_get(perfmgr->mad_pool, perfmgr->bind_handle, in perfmgr_build_mad()
405 if (p_madw == NULL) in perfmgr_build_mad()
408 pm_mad = osm_madw_get_perfmgt_mad_ptr(p_madw); in perfmgr_build_mad()
428 p_madw->mad_addr.dest_lid = dest_lid; in perfmgr_build_mad()
429 p_madw->mad_addr.addr_type.gsi.remote_qp = dest_qp; in perfmgr_build_mad()
430 p_madw->mad_addr.addr_type.gsi.remote_qkey = in perfmgr_build_mad()
432 p_madw->mad_addr.addr_type.gsi.pkey_ix = pkey_ix; in perfmgr_build_mad()
433 p_madw->mad_addr.addr_type.gsi.service_level = sl; in perfmgr_build_mad()
434 p_madw->mad_addr.addr_type.gsi.global_route = FALSE; in perfmgr_build_mad()
435 p_madw->resp_expected = TRUE; in perfmgr_build_mad()
438 p_madw->context = *p_context; in perfmgr_build_mad()
445 return (p_madw); in perfmgr_build_mad()
452 osm_madw_t * const p_madw) in perfmgr_send_mad() argument
455 ib_api_status_t status = osm_vendor_send(perfmgr->bind_handle, p_madw, in perfmgr_send_mad()
501 osm_madw_t *p_madw = NULL; in perfmgr_send_pc_mad() local
506 p_madw = perfmgr_build_mad(perfmgr, dest_lid, sl, dest_qp, pkey_ix, in perfmgr_send_pc_mad()
509 if (p_madw == NULL) in perfmgr_send_pc_mad()
518 status = perfmgr_send_mad(perfmgr, p_madw); in perfmgr_send_pc_mad()
608 osm_madw_t *p_madw = NULL; in perfmgr_send_cpi_mad() local
613 p_madw = perfmgr_build_mad(pm, dest_lid, sl, dest_qp, in perfmgr_send_cpi_mad()
617 if (p_madw == NULL) in perfmgr_send_cpi_mad()
620 status = perfmgr_send_mad(pm, p_madw); in perfmgr_send_cpi_mad()
671 osm_madw_t *p_madw = NULL; in perfmgr_send_pce_mad() local
676 p_madw = perfmgr_build_mad(perfmgr, dest_lid, sl, dest_qp, pkey_ix, in perfmgr_send_pce_mad()
679 if (p_madw == NULL) in perfmgr_send_pce_mad()
687 status = perfmgr_send_mad(perfmgr, p_madw); in perfmgr_send_pce_mad()
1773 osm_madw_t *p_madw = data; in pc_recv_process() local
1774 osm_madw_context_t *mad_context = &p_madw->context; in pc_recv_process()
1775 ib_mad_t *p_mad = osm_madw_get_mad_ptr(p_madw); in pc_recv_process()
1823 (osm_madw_get_perfmgt_mad_ptr(p_madw)->data); in pc_recv_process()
1852 &osm_madw_get_perfmgt_mad_ptr(p_madw)->data; in pc_recv_process()
1882 &osm_madw_get_perfmgt_mad_ptr(p_madw)->data; in pc_recv_process()
1919 diff_time(&p_madw->context.perfmgr_context.query_start, in pc_recv_process()
1926 osm_mad_pool_put(pm->mad_pool, p_madw); in pc_recv_process()