Searched refs:mad_agent (Results 1 – 7 of 7) sorted by relevance
/drivers/infiniband/ulp/opa_vnic/ |
D | opa_vnic_vema.c | 106 struct ib_mad_agent *mad_agent; member 605 static void vema_send(struct ib_mad_agent *mad_agent, in vema_send() argument 622 static void vema_recv(struct ib_mad_agent *mad_agent, in vema_recv() argument 634 port = mad_agent->context; in vema_recv() 635 ah = ib_create_ah_from_wc(mad_agent->qp->pd, mad_wc->wc, in vema_recv() 636 mad_wc->recv_buf.grh, mad_agent->port_num); in vema_recv() 640 rsp = ib_create_send_mad(mad_agent, mad_wc->wc->src_qp, in vema_recv() 745 if (!port || !port->mad_agent) in opa_vnic_vema_send_trap() 779 ah = rdma_create_ah(port->mad_agent->qp->pd, &ah_attr); in opa_vnic_vema_send_trap() 797 send_buf = ib_create_send_mad(port->mad_agent, 1, pkey_idx, 0, in opa_vnic_vema_send_trap() [all …]
|
/drivers/infiniband/core/ |
D | mad.c | 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() [all …]
|
D | cm.c | 211 struct ib_mad_agent *mad_agent; member 317 struct ib_mad_agent *mad_agent; in cm_alloc_msg() local 340 mad_agent = cm_id_priv->av.port->mad_agent; in cm_alloc_msg() 341 if (!mad_agent) { in cm_alloc_msg() 346 ah = rdma_create_ah(mad_agent->qp->pd, &av->ah_attr); in cm_alloc_msg() 352 m = ib_create_send_mad(mad_agent, cm_id_priv->id.remote_cm_qpn, in cm_alloc_msg() 379 return ib_create_send_mad(port->mad_agent, 1, mad_recv_wc->wc->pkey_index, in cm_alloc_response_msg_no_ah() 391 ah = ib_create_ah_from_wc(port->mad_agent->qp->pd, mad_recv_wc->wc, in cm_create_response_msg_ah() 955 ib_cancel_mad(cm_id_priv->av.port->mad_agent, cm_id_priv->msg); in cm_destroy_id() 969 ib_cancel_mad(cm_id_priv->av.port->mad_agent, cm_id_priv->msg); in cm_destroy_id() [all …]
|
D | agent.c | 143 static void agent_send_handler(struct ib_mad_agent *mad_agent, in agent_send_handler() argument
|
D | sa_query.c | 982 send_handler(query->mad_buf->mad_agent, &mad_send_wc); in ib_nl_process_good_resolve_rsp() 2241 static void recv_handler(struct ib_mad_agent *mad_agent, in recv_handler() argument
|
/drivers/infiniband/ulp/srpt/ |
D | ib_srpt.c | 417 static void srpt_mad_send_handler(struct ib_mad_agent *mad_agent, in srpt_mad_send_handler() argument 427 static void srpt_mad_recv_handler(struct ib_mad_agent *mad_agent, in srpt_mad_recv_handler() argument 431 struct srpt_port *sport = (struct srpt_port *)mad_agent->context; in srpt_mad_recv_handler() 439 ah = ib_create_ah_from_wc(mad_agent->qp->pd, mad_wc->wc, in srpt_mad_recv_handler() 440 mad_wc->recv_buf.grh, mad_agent->port_num); in srpt_mad_recv_handler() 446 rsp = ib_create_send_mad(mad_agent, mad_wc->wc->src_qp, in srpt_mad_recv_handler() 538 if (!sport->mad_agent) { in srpt_refresh_port() 545 sport->mad_agent = ib_register_mad_agent(sport->sdev->device, in srpt_refresh_port() 552 if (IS_ERR(sport->mad_agent)) { in srpt_refresh_port() 553 ret = PTR_ERR(sport->mad_agent); in srpt_refresh_port() [all …]
|
D | ib_srpt.h | 326 struct ib_mad_agent *mad_agent; member
|