Lines Matching refs:device

57 __ib_get_agent_port(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(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 struct ib_wc *wc, struct ib_device *device, in agent_send_response() argument
91 if (device->node_type == RDMA_NODE_IB_SWITCH) 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()
113 dev_err(&device->dev, "ib_create_send_mad error\n"); in agent_send_response()
120 if (device->node_type == RDMA_NODE_IB_SWITCH) { in agent_send_response()
128 dev_err(&device->dev, "ib_post_send_mad error\n"); in agent_send_response()
145 int ib_agent_port_open(struct ib_device *device, int port_num) in ib_agent_port_open() argument
154 dev_err(&device->dev, "No memory for ib_agent_port_private\n"); in ib_agent_port_open()
159 if (rdma_port_get_link_layer(device, port_num) == IB_LINK_LAYER_INFINIBAND) { in ib_agent_port_open()
161 port_priv->agent[0] = ib_register_mad_agent(device, port_num, in ib_agent_port_open()
172 port_priv->agent[1] = ib_register_mad_agent(device, port_num, in ib_agent_port_open()
196 int ib_agent_port_close(struct ib_device *device, int port_num) in ib_agent_port_close() argument
202 port_priv = __ib_get_agent_port(device, port_num); in ib_agent_port_close()
205 dev_err(&device->dev, "Port %d not found\n", port_num); in ib_agent_port_close()