Searched refs:mad_agent (Results 1 – 8 of 8) sorted by relevance
/linux-6.1.9/drivers/infiniband/ulp/opa_vnic/ |
D | opa_vnic_vema.c | 106 struct ib_mad_agent *mad_agent; member 604 static void vema_send(struct ib_mad_agent *mad_agent, in vema_send() argument 621 static void vema_recv(struct ib_mad_agent *mad_agent, in vema_recv() argument 633 port = mad_agent->context; in vema_recv() 634 ah = ib_create_ah_from_wc(mad_agent->qp->pd, mad_wc->wc, in vema_recv() 635 mad_wc->recv_buf.grh, mad_agent->port_num); in vema_recv() 639 rsp = ib_create_send_mad(mad_agent, mad_wc->wc->src_qp, in vema_recv() 744 if (!port || !port->mad_agent) in opa_vnic_vema_send_trap() 778 ah = rdma_create_ah(port->mad_agent->qp->pd, &ah_attr, 0); in opa_vnic_vema_send_trap() 796 send_buf = ib_create_send_mad(port->mad_agent, 1, pkey_idx, 0, in opa_vnic_vema_send_trap() [all …]
|
/linux-6.1.9/drivers/infiniband/core/ |
D | mad.c | 522 void ib_unregister_mad_agent(struct ib_mad_agent *mad_agent) in ib_unregister_mad_agent() argument 526 mad_agent_priv = container_of(mad_agent, in ib_unregister_mad_agent() 833 struct ib_mad_send_buf *ib_create_send_mad(struct ib_mad_agent *mad_agent, in ib_create_send_mad() argument 846 mad_agent_priv = container_of(mad_agent, struct ib_mad_agent_private, in ib_create_send_mad() 849 opa = rdma_cap_opa_mad(mad_agent->device, mad_agent->port_num); in ib_create_send_mad() 859 if (ib_mad_kernel_rmpp_agent(mad_agent)) { in ib_create_send_mad() 880 mad_send_wr->sg_list[0].lkey = mad_agent->qp->pd->local_dma_lkey; in ib_create_send_mad() 889 mad_send_wr->sg_list[1].lkey = mad_agent->qp->pd->local_dma_lkey; in ib_create_send_mad() 910 mad_send_wr->send_buf.mad_agent = mad_agent; in ib_create_send_mad() 982 mad_agent_priv = container_of(send_buf->mad_agent, in ib_free_send_mad() [all …]
|
D | cm.c | 160 struct ib_mad_agent *mad_agent; member 277 struct ib_mad_agent *mad_agent; in cm_alloc_msg() local 287 mad_agent = cm_id_priv->av.port->mad_agent; in cm_alloc_msg() 288 if (!mad_agent) { in cm_alloc_msg() 293 ah = rdma_create_ah(mad_agent->qp->pd, &cm_id_priv->av.ah_attr, 0); in cm_alloc_msg() 299 m = ib_create_send_mad(mad_agent, cm_id_priv->id.remote_cm_qpn, in cm_alloc_msg() 363 return ib_create_send_mad(port->mad_agent, 1, mad_recv_wc->wc->pkey_index, in cm_alloc_response_msg_no_ah() 375 ah = ib_create_ah_from_wc(port->mad_agent->qp->pd, mad_recv_wc->wc, in cm_create_response_msg_ah() 1277 if (cm_id_priv->av.port->mad_agent) in cm_form_tid() 1278 hi_tid = ((u64)cm_id_priv->av.port->mad_agent->hi_tid) << 32; in cm_form_tid() [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 | 954 send_handler(query->mad_buf->mad_agent, &mad_send_wc); in ib_nl_process_good_resolve_rsp() 2078 static void recv_handler(struct ib_mad_agent *mad_agent, in recv_handler() argument
|
/linux-6.1.9/include/rdma/ |
D | ib_mad.h | 466 struct ib_mad_agent *mad_agent; member 532 typedef void (*ib_mad_send_handler)(struct ib_mad_agent *mad_agent, 546 typedef void (*ib_mad_recv_handler)(struct ib_mad_agent *mad_agent, 687 void ib_unregister_mad_agent(struct ib_mad_agent *mad_agent); 770 struct ib_mad_send_buf *ib_create_send_mad(struct ib_mad_agent *mad_agent,
|
/linux-6.1.9/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
|