Lines Matching refs:port_num
57 __ib_get_agent_port(const struct ib_device *device, int port_num) in __ib_get_agent_port() argument
63 entry->agent[1]->port_num == port_num) in __ib_get_agent_port()
70 ib_get_agent_port(const struct ib_device *device, int port_num) in ib_get_agent_port() argument
76 entry = __ib_get_agent_port(device, port_num); in ib_get_agent_port()
83 int port_num, int qpn, size_t resp_mad_len, bool opa) in agent_send_response() argument
94 port_priv = ib_get_agent_port(device, port_num); in agent_send_response()
102 ah = ib_create_ah_from_wc(agent->qp->pd, wc, grh, port_num); in agent_send_response()
129 mad_send_wr->send_wr.port_num = port_num; in agent_send_response()
150 int ib_agent_port_open(struct ib_device *device, int port_num) in ib_agent_port_open() argument
164 if (rdma_cap_ib_smi(device, port_num)) { in ib_agent_port_open()
166 port_priv->agent[0] = ib_register_mad_agent(device, port_num, in ib_agent_port_open()
177 port_priv->agent[1] = ib_register_mad_agent(device, port_num, in ib_agent_port_open()
201 int ib_agent_port_close(struct ib_device *device, int port_num) in ib_agent_port_close() argument
207 port_priv = __ib_get_agent_port(device, port_num); in ib_agent_port_close()
210 dev_err(&device->dev, "Port %d not found\n", port_num); in ib_agent_port_close()