• Home
  • Raw
  • Download

Lines Matching refs:port_num

63 	u8                     port_num;  member
95 u8 port_num; member
148 ret = ib_query_port(p->ibdev, p->port_num, &attr); in state_show()
163 ret = ib_query_port(p->ibdev, p->port_num, &attr); in lid_show()
177 ret = ib_query_port(p->ibdev, p->port_num, &attr); in lid_mask_count_show()
190 ret = ib_query_port(p->ibdev, p->port_num, &attr); in sm_lid_show()
203 ret = ib_query_port(p->ibdev, p->port_num, &attr); in sm_sl_show()
216 ret = ib_query_port(p->ibdev, p->port_num, &attr); in cap_mask_show()
231 ret = ib_query_port(p->ibdev, p->port_num, &attr); in rate_show()
278 ret = ib_query_port(p->ibdev, p->port_num, &attr); in phys_state_show()
297 switch (rdma_port_get_link_layer(p->ibdev, p->port_num)) { in link_layer_show()
355 ret = ib_query_gid(p->ibdev, p->port_num, tab_attr->index, &gid, in _show_port_gid_attr()
376 ret = ib_query_gid(p->ibdev, p->port_num, tab_attr->index, &gid, NULL); in show_port_gid()
404 ret = ib_query_pkey(p->ibdev, p->port_num, tab_attr->index, &pkey); in show_port_pkey()
429 static int get_perf_mad(struct ib_device *dev, int port_num, __be16 attr, in get_perf_mad() argument
455 in_mad->data[41] = port_num; /* PortSelect field */ in get_perf_mad()
458 port_num, NULL, NULL, in get_perf_mad()
485 ret = get_perf_mad(p->ibdev, p->port_num, tab_attr->attr_id, &data, in show_pma_counter()
736 int port_num) in get_counter_table() argument
740 if (get_perf_mad(dev, port_num, IB_PMA_CLASS_PORT_INFO, in get_counter_table()
756 u8 port_num, int index) in update_hw_stats() argument
762 ret = dev->get_hw_stats(dev, stats, port_num, index); in update_hw_stats()
786 if (!hsa->port_num) { in show_hw_stats()
795 ret = update_hw_stats(dev, stats, hsa->port_num, hsa->index); in show_hw_stats()
809 if (!hsa->port_num) { in show_stats_lifespan()
836 if (!hsa->port_num) { in set_stats_lifespan()
858 static struct attribute *alloc_hsa(int index, u8 port_num, const char *name) in alloc_hsa() argument
871 hsa->port_num = port_num; in alloc_hsa()
876 static struct attribute *alloc_hsa_lifespan(char *name, u8 port_num) in alloc_hsa_lifespan() argument
889 hsa->port_num = port_num; in alloc_hsa_lifespan()
895 u8 port_num) in setup_hw_stats() argument
901 stats = device->alloc_hw_stats(device, port_num); in setup_hw_stats()
919 ret = device->get_hw_stats(device, stats, port_num, in setup_hw_stats()
930 hsag->attrs[i] = alloc_hsa(i, port_num, stats->names[i]); in setup_hw_stats()
937 hsag->attrs[i] = alloc_hsa_lifespan("lifespan", port_num); in setup_hw_stats()
969 static int add_port(struct ib_device *device, int port_num, in add_port() argument
978 ret = ib_query_port(device, port_num, &attr); in add_port()
987 p->port_num = port_num; in add_port()
991 "%d", port_num); in add_port()
1011 p->pma_table = get_counter_table(device, port_num); in add_port()
1066 ret = port_callback(device, port_num, &p->kobj); in add_port()
1076 if (device->alloc_hw_stats && port_num) in add_port()
1077 setup_hw_stats(device, p, port_num); in add_port()