Searched refs:start_port (Results 1 – 10 of 10) sorted by relevance
61 static inline int start_port(struct ib_device *device) in start_port() function81 if (port_num < start_port(device) || port_num > end_port(device)) in ib_get_cached_gid()86 cache = device->cache.gid_cache[port_num - start_port(device)]; in ib_get_cached_gid()115 for (p = 0; p <= end_port(device) - start_port(device); ++p) { in ib_find_cached_gid()119 *port_num = p + start_port(device); in ib_find_cached_gid()143 if (port_num < start_port(device) || port_num > end_port(device)) in ib_get_cached_pkey()148 cache = device->cache.pkey_cache[port_num - start_port(device)]; in ib_get_cached_pkey()171 if (port_num < start_port(device) || port_num > end_port(device)) in ib_find_cached_pkey()176 cache = device->cache.pkey_cache[port_num - start_port(device)]; in ib_find_cached_pkey()200 if (port_num < start_port(device) || port_num > end_port(device)) in ib_get_cached_lmc()[all …]
156 static int start_port(struct ib_device *device) in start_port() function237 num_ports = end_port(device) - start_port(device) + 1; in read_port_table_lengths()247 ret = ib_query_port(device, port_index + start_port(device), in read_port_table_lengths()582 if (port_num < start_port(device) || port_num > end_port(device)) in ib_query_port()654 if (port_num < start_port(device) || port_num > end_port(device)) in ib_modify_port()677 for (port = start_port(device); port <= end_port(device); ++port) { in ib_find_gid()678 for (i = 0; i < device->gid_tbl_len[port - start_port(device)]; ++i) { in ib_find_gid()709 for (i = 0; i < device->pkey_tbl_len[port_num - start_port(device)]; ++i) { in ib_find_pkey()
70 int start_port; member608 member->group = acquire_group(&dev->port[port_num - dev->start_port], in ib_sa_join_multicast()676 port = &dev->port[port_num - dev->start_port]; in ib_sa_get_mcmember_rec()752 index = event->element.port_num - dev->start_port; in mcast_event_handler()785 dev->start_port = dev->end_port = 0; in mcast_add_one()787 dev->start_port = 1; in mcast_add_one()791 for (i = 0; i <= dev->end_port - dev->start_port; i++) { in mcast_add_one()792 if (rdma_port_get_link_layer(device, dev->start_port + i) != in mcast_add_one()797 port->port_num = dev->start_port + i; in mcast_add_one()830 for (i = 0; i <= dev->end_port - dev->start_port; i++) { in mcast_remove_one()[all …]
73 int start_port; member459 port = &dev->port[port_num - dev->start_port]; in notice_dispatch()568 member->group = acquire_group(&dev->port[port_num - dev->start_port], in ib_sa_register_inform_info()656 dev->start_port]); in inform_event_handler()678 dev->start_port = dev->end_port = 0; in inform_add_one()680 dev->start_port = 1; in inform_add_one()684 for (i = 0; i <= dev->end_port - dev->start_port; i++) { in inform_add_one()687 port->port_num = dev->start_port + i; in inform_add_one()714 for (i = 0; i <= dev->end_port - dev->start_port; i++) { in inform_remove_one()
71 int start_port, end_port; member580 &sa_dev->port[event->element.port_num - sa_dev->start_port]; in ib_sa_event()592 sa_dev->start_port].update_task); in ib_sa_event()649 port = &sa_dev->port[port_num - sa_dev->start_port]; in get_src_path_mask()825 port = &sa_dev->port[port_num - sa_dev->start_port]; in ib_sa_path_rec_query()941 port = &sa_dev->port[port_num - sa_dev->start_port]; in ib_sa_service_rec_query()1038 port = &sa_dev->port[port_num - sa_dev->start_port]; in ib_sa_mcmember_rec_query()1173 port = &sa_dev->port[port_num - sa_dev->start_port]; in ib_sa_informinfo_query()1357 sa_dev->start_port = s; in ib_sa_add_one()1433 for (i = 0; i <= sa_dev->end_port - sa_dev->start_port; ++i) { in ib_sa_remove_one()
133 int start_port; member822 port = &dev->port[event->element.port_num - dev->start_port]; in handle_event()854 port = &dev->port[port_num - dev->start_port]; in ib_create_path_iter()1147 port = &dev->port[port_num - dev->start_port]; in init_port()1198 dev->start_port = s; in sa_db_add_dev()
105 int start_port, end_port; member1136 umad_dev->start_port = s; in ib_umad_add_one()1167 for (i = 0; i <= umad_dev->end_port - umad_dev->start_port; ++i) in ib_umad_remove_one()
81 static inline int start_port(struct ib_device *device) in start_port() function100 if (port_num < start_port(device) || port_num > end_port(device)) in ib_get_cached_gid()105 cache = device->cache.gid_cache[port_num - start_port(device)]; in ib_get_cached_gid()132 for (p = 0; p <= end_port(device) - start_port(device); ++p) { in ib_find_cached_gid()136 *port_num = p + start_port(device); in ib_find_cached_gid()158 if (port_num < start_port(device) || port_num > end_port(device)) in ib_get_cached_pkey()163 cache = device->cache.pkey_cache[port_num - start_port(device)]; in ib_get_cached_pkey()184 if (port_num < start_port(device) || port_num > end_port(device)) in ib_find_cached_pkey()189 cache = device->cache.pkey_cache[port_num - start_port(device)]; in ib_find_cached_pkey()211 if (port_num < start_port(device) || port_num > end_port(device)) in ib_get_cached_lmc()[all …]
161 static int start_port(struct ib_device *device) in start_port() function249 num_ports = end_port(device) - start_port(device) + 1; in read_port_table_lengths()259 ret = ib_query_port(device, port_index + start_port(device), in read_port_table_lengths()575 if (port_num < start_port(device) || port_num > end_port(device)) in ib_query_port()643 if (port_num < start_port(device) || port_num > end_port(device)) in ib_modify_port()665 for (port = start_port(device); port <= end_port(device); ++port) { in ib_find_gid()666 for (i = 0; i < device->gid_tbl_len[port - start_port(device)]; ++i) { in ib_find_gid()696 for (i = 0; i < device->pkey_tbl_len[port_num - start_port(device)]; ++i) { in ib_find_pkey()
354 int start_port = 1; in main() local476 start_port = 0; in main()486 for (i = start_port; i <= num_ports; i++) in main()505 for (i = start_port; i <= num_ports; i++) in main()