Lines Matching refs:mad
96 const struct ib_mad_hdr *mad);
98 struct ib_mad_private *mad);
597 struct ib_smp *smp = mad_send_wr->send_buf.mad; in handle_outgoing_dr_smp()
702 (struct ib_mad *)mad_priv->mad, &mad_size, in handle_outgoing_dr_smp()
706 if (ib_response_mad((const struct ib_mad_hdr *)mad_priv->mad) && in handle_outgoing_dr_smp()
726 memcpy(mad_priv->mad, smp, mad_priv->mad_size); in handle_outgoing_dr_smp()
728 (const struct ib_mad_hdr *)mad_priv->mad); in handle_outgoing_dr_smp()
792 struct ib_rmpp_mad *rmpp_mad = send_buf->mad; in alloc_send_rmpp_list()
873 mad_send_wr->send_buf.mad = buf; in ib_create_send_mad()
973 return mad_send_wr->send_buf.mad + in ib_get_payload()
988 kfree(send_buf->mad); in ib_free_send_mad()
1011 mad_send_wr->send_buf.mad, in ib_send_mad()
1090 if (!ib_is_mad_class_rmpp(((struct ib_mad_hdr *) send_buf->mad)->mgmt_class)) { in ib_post_send_mad()
1105 if (((struct ib_mad_hdr *) send_buf->mad)->mgmt_class == in ib_post_send_mad()
1115 mad_send_wr->tid = ((struct ib_mad_hdr *) send_buf->mad)->tid; in ib_post_send_mad()
1665 return ((struct ib_mad_hdr *)(wr->send_buf.mad))->mgmt_class == in rcv_has_same_class()
1666 rwc->recv_buf.mad->mad_hdr.mgmt_class; in rcv_has_same_class()
1682 send_resp = ib_response_mad((struct ib_mad_hdr *)wr->send_buf.mad); in rcv_has_same_gid()
1683 rcv_resp = ib_response_mad(&rwc->recv_buf.mad->mad_hdr); in rcv_has_same_gid()
1738 mad_hdr = &wc->recv_buf.mad->mad_hdr; in ib_find_send_mad()
1757 if (is_rmpp_data_mad(mad_agent_priv, wr->send_buf.mad) && in ib_find_send_mad()
1809 if (ib_response_mad(&mad_recv_wc->recv_buf.mad->mad_hdr)) { in ib_mad_complete_recv()
1815 && ib_is_mad_class_rmpp(mad_recv_wc->recv_buf.mad->mad_hdr.mgmt_class) in ib_mad_complete_recv()
1816 && (ib_get_rmpp_flags(&((struct ib_rmpp_mad *)mad_recv_wc->recv_buf.mad)->rmpp_hdr) in ib_mad_complete_recv()
1864 struct ib_smp *smp = (struct ib_smp *)recv->mad; in handle_ib_smi()
1891 response->header.recv_wc.recv_buf.mad = (struct ib_mad *)response->mad; in handle_ib_smi()
1894 agent_send_response((const struct ib_mad_hdr *)response->mad, in handle_ib_smi()
1911 const struct ib_mad_hdr *recv_hdr = (const struct ib_mad_hdr *)recv->mad; in generate_unmatched_resp()
1912 struct ib_mad_hdr *resp_hdr = (struct ib_mad_hdr *)response->mad; in generate_unmatched_resp()
1918 response->header.recv_wc.recv_buf.mad = (struct ib_mad *)response->mad; in generate_unmatched_resp()
1931 (struct opa_smp *)recv->mad); in generate_unmatched_resp()
1951 struct opa_smp *smp = (struct opa_smp *)recv->mad; in handle_opa_smi()
1981 (struct opa_mad *)response->mad; in handle_opa_smi()
1984 agent_send_response((const struct ib_mad_hdr *)response->mad, in handle_opa_smi()
2007 struct ib_mad_hdr *mad_hdr = (struct ib_mad_hdr *)recv->mad; in handle_smi()
2061 if (opa && ((struct ib_mad_hdr *)(recv->mad))->base_version == OPA_MGMT_BASE_VERSION) { in ib_mad_recv_done()
2069 recv->header.recv_wc.recv_buf.mad = (struct ib_mad *)recv->mad; in ib_mad_recv_done()
2073 if (!validate_mad((const struct ib_mad_hdr *)recv->mad, qp_info, opa)) in ib_mad_recv_done()
2077 (struct ib_mad_hdr *)recv->mad); in ib_mad_recv_done()
2089 if (((struct ib_mad_hdr *)recv->mad)->mgmt_class == in ib_mad_recv_done()
2101 &recv->grh, (const struct ib_mad *)recv->mad, in ib_mad_recv_done()
2102 (struct ib_mad *)response->mad, &mad_size, in ib_mad_recv_done()
2112 agent_send_response((const struct ib_mad_hdr *)response->mad, in ib_mad_recv_done()
2123 mad_agent = find_mad_agent(port_priv, (const struct ib_mad_hdr *)recv->mad); in ib_mad_recv_done()
2134 agent_send_response((const struct ib_mad_hdr *)response->mad, &recv->grh, wc, in ib_mad_recv_done()
2450 mad_send_wr->send_buf.mad) && in find_send_wr()
2540 base_version = ((struct ib_mad_hdr *)(local->mad_priv->mad))->base_version; in local_completions()
2553 local->mad_priv->header.recv_wc.recv_buf.mad = in local_completions()
2554 (struct ib_mad *)local->mad_priv->mad; in local_completions()
2669 struct ib_mad_private *mad) in ib_mad_post_receive_mads() argument
2688 if (mad) { in ib_mad_post_receive_mads()
2689 mad_priv = mad; in ib_mad_post_receive_mads()
2690 mad = NULL; in ib_mad_post_receive_mads()