Lines Matching refs:agent

91 	struct ib_mad_agent *agent;  member
718 dev_name(&query->port->agent->device->dev), in ib_nl_set_path_rec_attrs()
871 static void send_handler(struct ib_mad_agent *agent,
989 send_handler(query->port->agent, &mad_send_wc); in ib_nl_request_timeout()
1116 send_handler(query->port->agent, &mad_send_wc); in ib_nl_handle_resolve_resp()
1298 query->mad_buf = ib_create_send_mad(query->port->agent, 1, in alloc_mad()
1321 static void init_mad(struct ib_sa_query *query, struct ib_mad_agent *agent) in init_mad() argument
1338 cpu_to_be64(((u64) agent->hi_tid) << 32 | tid++); in init_mad()
1588 struct ib_mad_agent *agent; in ib_sa_path_rec_get() local
1601 agent = port->agent; in ib_sa_path_rec_get()
1635 init_mad(&query->sa_query, agent); in ib_sa_path_rec_get()
1716 struct ib_mad_agent *agent; in ib_sa_mcmember_rec_query() local
1724 agent = port->agent; in ib_sa_mcmember_rec_query()
1741 init_mad(&query->sa_query, agent); in ib_sa_mcmember_rec_query()
1807 struct ib_mad_agent *agent; in ib_sa_guid_info_rec_query() local
1821 agent = port->agent; in ib_sa_guid_info_rec_query()
1838 init_mad(&query->sa_query, agent); in ib_sa_guid_info_rec_query()
1945 struct ib_mad_agent *agent; in ib_sa_classport_info_rec_query() local
1951 agent = port->agent; in ib_sa_classport_info_rec_query()
1958 query->sa_query.flags |= rdma_cap_opa_ah(port->agent->device, in ib_sa_classport_info_rec_query()
1969 init_mad(&query->sa_query, agent); in ib_sa_classport_info_rec_query()
2046 static void send_handler(struct ib_mad_agent *agent, in send_handler() argument
2110 if (ib_query_port(port->agent->device, port->port_num, &port_attr)) { in update_sm_ah()
2123 if (ib_find_pkey(port->agent->device, port->port_num, in update_sm_ah()
2128 ah_attr.type = rdma_ah_find_type(port->agent->device, in update_sm_ah()
2134 grh_required = rdma_is_grh_required(port->agent->device, in update_sm_ah()
2156 new_ah->ah = rdma_create_ah(port->agent->qp->pd, &ah_attr, in update_sm_ah()
2241 sa_dev->port[i].agent = in ib_sa_add_one()
2245 if (IS_ERR(sa_dev->port[i].agent)) { in ib_sa_add_one()
2246 ret = PTR_ERR(sa_dev->port[i].agent); in ib_sa_add_one()
2284 ib_unregister_mad_agent(sa_dev->port[i].agent); in ib_sa_add_one()
2302 ib_unregister_mad_agent(sa_dev->port[i].agent); in ib_sa_remove_one()