/kernel/linux/linux-5.10/drivers/infiniband/ulp/opa_vnic/ |
D | opa_vnic_vema.c | 105 struct ib_mad_agent *mad_agent; member 603 static void vema_send(struct ib_mad_agent *mad_agent, in vema_send() argument 620 static void vema_recv(struct ib_mad_agent *mad_agent, in vema_recv() argument 632 port = mad_agent->context; in vema_recv() 633 ah = ib_create_ah_from_wc(mad_agent->qp->pd, mad_wc->wc, in vema_recv() 634 mad_wc->recv_buf.grh, mad_agent->port_num); in vema_recv() 638 rsp = ib_create_send_mad(mad_agent, mad_wc->wc->src_qp, in vema_recv() 743 if (!port || !port->mad_agent) in opa_vnic_vema_send_trap() 777 ah = rdma_create_ah(port->mad_agent->qp->pd, &ah_attr, 0); in opa_vnic_vema_send_trap() 795 send_buf = ib_create_send_mad(port->mad_agent, 1, pkey_idx, 0, in opa_vnic_vema_send_trap() [all …]
|
/kernel/linux/linux-5.10/drivers/infiniband/core/ |
D | mad.c | 528 void ib_unregister_mad_agent(struct ib_mad_agent *mad_agent) in ib_unregister_mad_agent() argument 532 mad_agent_priv = container_of(mad_agent, in ib_unregister_mad_agent() 840 struct ib_mad_send_buf * ib_create_send_mad(struct ib_mad_agent *mad_agent, in ib_create_send_mad() argument 854 mad_agent_priv = container_of(mad_agent, struct ib_mad_agent_private, in ib_create_send_mad() 857 opa = rdma_cap_opa_mad(mad_agent->device, mad_agent->port_num); in ib_create_send_mad() 867 if (ib_mad_kernel_rmpp_agent(mad_agent)) { in ib_create_send_mad() 888 mad_send_wr->sg_list[0].lkey = mad_agent->qp->pd->local_dma_lkey; in ib_create_send_mad() 897 mad_send_wr->sg_list[1].lkey = mad_agent->qp->pd->local_dma_lkey; in ib_create_send_mad() 918 mad_send_wr->send_buf.mad_agent = mad_agent; in ib_create_send_mad() 990 mad_agent_priv = container_of(send_buf->mad_agent, in ib_free_send_mad() [all …]
|
D | cm.c | 204 struct ib_mad_agent *mad_agent; member 310 struct ib_mad_agent *mad_agent; in cm_alloc_msg() local 333 mad_agent = cm_id_priv->av.port->mad_agent; in cm_alloc_msg() 334 if (!mad_agent) { in cm_alloc_msg() 339 ah = rdma_create_ah(mad_agent->qp->pd, &av->ah_attr, 0); in cm_alloc_msg() 345 m = ib_create_send_mad(mad_agent, cm_id_priv->id.remote_cm_qpn, in cm_alloc_msg() 372 return ib_create_send_mad(port->mad_agent, 1, mad_recv_wc->wc->pkey_index, in cm_alloc_response_msg_no_ah() 384 ah = ib_create_ah_from_wc(port->mad_agent->qp->pd, mad_recv_wc->wc, in cm_create_response_msg_ah() 1085 ib_cancel_mad(cm_id_priv->av.port->mad_agent, cm_id_priv->msg); in cm_destroy_id() 1096 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 | 969 send_handler(query->mad_buf->mad_agent, &mad_send_wc); in ib_nl_process_good_resolve_rsp() 2187 static void recv_handler(struct ib_mad_agent *mad_agent, in recv_handler() argument
|
/kernel/linux/linux-5.10/include/rdma/ |
D | ib_mad.h | 465 struct ib_mad_agent *mad_agent; member 531 typedef void (*ib_mad_send_handler)(struct ib_mad_agent *mad_agent, 545 typedef void (*ib_mad_recv_handler)(struct ib_mad_agent *mad_agent, 686 void ib_unregister_mad_agent(struct ib_mad_agent *mad_agent); 728 void ib_cancel_mad(struct ib_mad_agent *mad_agent, 740 int ib_modify_mad(struct ib_mad_agent *mad_agent, 770 struct ib_mad_send_buf *ib_create_send_mad(struct ib_mad_agent *mad_agent,
|
/kernel/linux/linux-5.10/drivers/infiniband/ulp/srpt/ |
D | ib_srpt.c | 456 static void srpt_mad_send_handler(struct ib_mad_agent *mad_agent, in srpt_mad_send_handler() argument 469 static void srpt_mad_recv_handler(struct ib_mad_agent *mad_agent, in srpt_mad_recv_handler() argument 473 struct srpt_port *sport = (struct srpt_port *)mad_agent->context; in srpt_mad_recv_handler() 481 ah = ib_create_ah_from_wc(mad_agent->qp->pd, mad_wc->wc, in srpt_mad_recv_handler() 482 mad_wc->recv_buf.grh, mad_agent->port_num); in srpt_mad_recv_handler() 488 rsp = ib_create_send_mad(mad_agent, mad_wc->wc->src_qp, in srpt_mad_recv_handler() 589 if (!sport->mad_agent) { in srpt_refresh_port() 596 sport->mad_agent = ib_register_mad_agent(sport->sdev->device, in srpt_refresh_port() 603 if (IS_ERR(sport->mad_agent)) { in srpt_refresh_port() 606 PTR_ERR(sport->mad_agent)); in srpt_refresh_port() [all …]
|
D | ib_srpt.h | 417 struct ib_mad_agent *mad_agent; member
|