Lines Matching refs:port_num
48 u8 port_num; member
102 ret = ib_query_port(p->ibdev, p->port_num, &attr); in state_show()
117 ret = ib_query_port(p->ibdev, p->port_num, &attr); in lid_show()
131 ret = ib_query_port(p->ibdev, p->port_num, &attr); in lid_mask_count_show()
144 ret = ib_query_port(p->ibdev, p->port_num, &attr); in sm_lid_show()
157 ret = ib_query_port(p->ibdev, p->port_num, &attr); in sm_sl_show()
170 ret = ib_query_port(p->ibdev, p->port_num, &attr); in cap_mask_show()
185 ret = ib_query_port(p->ibdev, p->port_num, &attr); in rate_show()
232 ret = ib_query_port(p->ibdev, p->port_num, &attr); in phys_state_show()
251 switch (rdma_port_get_link_layer(p->ibdev, p->port_num)) { in link_layer_show()
292 ret = ib_query_gid(p->ibdev, p->port_num, tab_attr->index, &gid); in show_port_gid()
307 ret = ib_query_pkey(p->ibdev, p->port_num, tab_attr->index, &pkey); in show_port_pkey()
347 in_mad->data[41] = p->port_num; /* PortSelect field */ in show_pma_counter()
350 p->port_num, NULL, NULL, in_mad, out_mad) & in show_pma_counter()
520 static int add_port(struct ib_device *device, int port_num, in add_port() argument
529 ret = ib_query_port(device, port_num, &attr); in add_port()
538 p->port_num = port_num; in add_port()
542 "%d", port_num); in add_port()
576 ret = port_callback(device, port_num, &p->kobj); in add_port()