Lines Matching refs:device
57 __ib_get_agent_port(const struct ib_device *device, int port_num) in __ib_get_agent_port() argument
62 if (entry->agent[1]->device == device && 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()
82 const struct ib_wc *wc, const struct ib_device *device, in agent_send_response() argument
91 if (rdma_cap_ib_switch(device)) in agent_send_response()
92 port_priv = ib_get_agent_port(device, 0); in agent_send_response()
94 port_priv = ib_get_agent_port(device, port_num); in agent_send_response()
97 dev_err(&device->dev, "Unable to find port agent\n"); in agent_send_response()
104 dev_err(&device->dev, "ib_create_ah_from_wc error %ld\n", in agent_send_response()
118 dev_err(&device->dev, "ib_create_send_mad error\n"); in agent_send_response()
125 if (rdma_cap_ib_switch(device)) { in agent_send_response()
133 dev_err(&device->dev, "ib_post_send_mad error\n"); in agent_send_response()
150 int ib_agent_port_open(struct ib_device *device, int port_num) in ib_agent_port_open() argument
159 dev_err(&device->dev, "No memory for ib_agent_port_private\n"); in ib_agent_port_open()
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()