Lines Matching refs:mad_buf

113 	struct ib_mad_send_buf *mad_buf;  member
702 struct sa_path_rec *sa_rec = query->mad_buf->context[1]; in ib_nl_set_path_rec_attrs()
703 struct ib_sa_mad *mad = query->mad_buf->mad; in ib_nl_set_path_rec_attrs()
709 query->mad_buf->context[1] = NULL; in ib_nl_set_path_rec_attrs()
798 mad = query->mad_buf->mad; in ib_nl_make_request()
887 mad = query->mad_buf->mad; in ib_nl_process_good_resolve_rsp()
944 mad_send_wc.send_buf = query->mad_buf; in ib_nl_process_good_resolve_rsp()
946 send_handler(query->mad_buf->mad_agent, &mad_send_wc); in ib_nl_process_good_resolve_rsp()
976 ret = ib_post_send_mad(query->mad_buf, NULL); in ib_nl_request_timeout()
978 mad_send_wc.send_buf = query->mad_buf; in ib_nl_request_timeout()
1098 send_buf = query->mad_buf; in ib_nl_handle_resolve_resp()
1103 ret = ib_post_send_mad(query->mad_buf, NULL); in ib_nl_handle_resolve_resp()
1153 struct ib_mad_send_buf *mad_buf; in ib_sa_cancel_query() local
1160 mad_buf = query->mad_buf; in ib_sa_cancel_query()
1169 ib_cancel_mad(mad_buf); in ib_sa_cancel_query()
1290 query->mad_buf = ib_create_send_mad(query->port->agent, 1, in alloc_mad()
1297 if (IS_ERR(query->mad_buf)) { in alloc_mad()
1302 query->mad_buf->ah = query->sm_ah->ah; in alloc_mad()
1309 ib_free_send_mad(query->mad_buf); in free_mad()
1315 struct ib_sa_mad *mad = query->mad_buf->mad; in init_mad()
1347 query->mad_buf->timeout_ms = timeout_ms / nmbr_sa_query_retries; in send_mad()
1348 query->mad_buf->retries = nmbr_sa_query_retries; in send_mad()
1349 if (!query->mad_buf->timeout_ms) { in send_mad()
1351 query->mad_buf->timeout_ms = 1; in send_mad()
1352 query->mad_buf->retries = timeout_ms; in send_mad()
1354 query->mad_buf->context[0] = query; in send_mad()
1366 ret = ib_post_send_mad(query->mad_buf, NULL); in send_mad()
1576 mad = query->sa_query.mad_buf->mad; in ib_sa_path_rec_get()
1600 query->sa_query.mad_buf->context[1] = (query->conv_pr) ? in ib_sa_path_rec_get()
1681 mad = query->sa_query.mad_buf->mad; in ib_sa_mcmember_rec_query()
1777 mad = query->sa_query.mad_buf->mad; in ib_sa_guid_info_rec_query()
1907 mad = query->sa_query.mad_buf->mad; in ib_sa_classport_info_rec_query()