• Home
  • Raw
  • Download

Lines Matching refs:mad_agent

632 void ib_unregister_mad_agent(struct ib_mad_agent *mad_agent)  in ib_unregister_mad_agent()  argument
638 if (mad_agent->hi_tid) { in ib_unregister_mad_agent()
639 mad_agent_priv = container_of(mad_agent, in ib_unregister_mad_agent()
644 mad_snoop_priv = container_of(mad_agent, in ib_unregister_mad_agent()
1001 struct ib_mad_send_buf * ib_create_send_mad(struct ib_mad_agent *mad_agent, in ib_create_send_mad() argument
1015 mad_agent_priv = container_of(mad_agent, struct ib_mad_agent_private, in ib_create_send_mad()
1018 opa = rdma_cap_opa_mad(mad_agent->device, mad_agent->port_num); in ib_create_send_mad()
1028 if (ib_mad_kernel_rmpp_agent(mad_agent)) { in ib_create_send_mad()
1049 mad_send_wr->sg_list[0].lkey = mad_agent->qp->pd->local_dma_lkey; in ib_create_send_mad()
1058 mad_send_wr->sg_list[1].lkey = mad_agent->qp->pd->local_dma_lkey; in ib_create_send_mad()
1079 mad_send_wr->send_buf.mad_agent = mad_agent; in ib_create_send_mad()
1151 mad_agent_priv = container_of(send_buf->mad_agent, in ib_free_send_mad()
1167 struct ib_mad_agent *mad_agent; in ib_send_mad() local
1178 mad_agent = mad_send_wr->send_buf.mad_agent; in ib_send_mad()
1180 sge[0].addr = ib_dma_map_single(mad_agent->device, in ib_send_mad()
1184 if (unlikely(ib_dma_mapping_error(mad_agent->device, sge[0].addr))) in ib_send_mad()
1189 sge[1].addr = ib_dma_map_single(mad_agent->device, in ib_send_mad()
1193 if (unlikely(ib_dma_mapping_error(mad_agent->device, sge[1].addr))) { in ib_send_mad()
1194 ib_dma_unmap_single(mad_agent->device, in ib_send_mad()
1203 ret = ib_post_send(mad_agent->qp, &mad_send_wr->send_wr.wr, in ib_send_mad()
1217 ib_dma_unmap_single(mad_agent->device, in ib_send_mad()
1220 ib_dma_unmap_single(mad_agent->device, in ib_send_mad()
1252 if (!send_buf->mad_agent->send_handler || in ib_post_send_mad()
1254 !send_buf->mad_agent->recv_handler)) { in ib_post_send_mad()
1362 int ib_process_mad_wc(struct ib_mad_agent *mad_agent, in ib_process_mad_wc() argument
1365 dev_err(&mad_agent->device->dev, in ib_process_mad_wc()
1724 struct ib_mad_agent_private *mad_agent = NULL; in find_mad_agent() local
1739 mad_agent = entry; in find_mad_agent()
1768 mad_agent = method->agent[mad_hdr->method & in find_mad_agent()
1786 mad_agent = method->agent[mad_hdr->method & in find_mad_agent()
1792 if (mad_agent) { in find_mad_agent()
1793 if (mad_agent->agent.recv_handler) in find_mad_agent()
1794 atomic_inc(&mad_agent->refcount); in find_mad_agent()
1798 &mad_agent->agent, port_priv->port_num); in find_mad_agent()
1799 mad_agent = NULL; in find_mad_agent()
1805 return mad_agent; in find_mad_agent()
2215 struct ib_mad_agent_private *mad_agent; in ib_mad_recv_done() local
2315 mad_agent = find_mad_agent(port_priv, (const struct ib_mad_hdr *)recv->mad); in ib_mad_recv_done()
2316 if (mad_agent) { in ib_mad_recv_done()
2317 ib_mad_complete_recv(mad_agent, &recv->header.recv_wc); in ib_mad_recv_done()
2483 ib_dma_unmap_single(mad_send_wr->send_buf.mad_agent->device, in ib_mad_send_done()
2486 ib_dma_unmap_single(mad_send_wr->send_buf.mad_agent->device, in ib_mad_send_done()
2648 int ib_modify_mad(struct ib_mad_agent *mad_agent, in ib_modify_mad() argument
2656 mad_agent_priv = container_of(mad_agent, struct ib_mad_agent_private, in ib_modify_mad()
2682 void ib_cancel_mad(struct ib_mad_agent *mad_agent, in ib_cancel_mad() argument
2685 ib_modify_mad(mad_agent, send_buf, 0); in ib_cancel_mad()