Lines Matching refs:port_num

129 	event.element.port_num	= port;  in dispatch_gid_change_event()
240 u32 port_num = entry->attr.port_num; in free_gid_entry_locked() local
241 struct ib_gid_table *table = rdma_gid_table(device, port_num); in free_gid_entry_locked()
244 port_num, entry->attr.index, entry->attr.gid.raw); in free_gid_entry_locked()
285 u32 port_num = entry->attr.port_num; in free_gid_work() local
286 struct ib_gid_table *table = rdma_gid_table(device, port_num); in free_gid_work()
327 __func__, entry->attr.port_num, entry->attr.index, in store_gid_entry()
358 __func__, attr->port_num, attr->index); in add_roce_gid()
361 if (rdma_cap_roce_gid_table(attr->device, attr->port_num)) { in add_roce_gid()
366 __func__, attr->port_num, attr->index); in add_roce_gid()
437 del_gid(attr->device, attr->port_num, table, attr->index); in add_modify_gid()
451 if (rdma_protocol_roce(attr->device, attr->port_num)) { in add_modify_gid()
576 attr->port_num = port; in __ib_cache_gid_add()
953 int rdma_query_gid(struct ib_device *device, u32 port_num, in rdma_query_gid() argument
960 if (!rdma_is_port_valid(device, port_num)) in rdma_query_gid()
963 table = rdma_gid_table(device, port_num); in rdma_query_gid()
1052 u32 port_num, in ib_get_cached_pkey() argument
1060 if (!rdma_is_port_valid(device, port_num)) in ib_get_cached_pkey()
1065 cache = device->port_data[port_num].cache.pkey; in ib_get_cached_pkey()
1078 void ib_get_cached_subnet_prefix(struct ib_device *device, u32 port_num, in ib_get_cached_subnet_prefix() argument
1084 *sn_pfx = device->port_data[port_num].cache.subnet_prefix; in ib_get_cached_subnet_prefix()
1089 int ib_find_cached_pkey(struct ib_device *device, u32 port_num, in ib_find_cached_pkey() argument
1098 if (!rdma_is_port_valid(device, port_num)) in ib_find_cached_pkey()
1103 cache = device->port_data[port_num].cache.pkey; in ib_find_cached_pkey()
1134 int ib_find_exact_cached_pkey(struct ib_device *device, u32 port_num, in ib_find_exact_cached_pkey() argument
1142 if (!rdma_is_port_valid(device, port_num)) in ib_find_exact_cached_pkey()
1147 cache = device->port_data[port_num].cache.pkey; in ib_find_exact_cached_pkey()
1169 int ib_get_cached_lmc(struct ib_device *device, u32 port_num, u8 *lmc) in ib_get_cached_lmc() argument
1174 if (!rdma_is_port_valid(device, port_num)) in ib_get_cached_lmc()
1178 *lmc = device->port_data[port_num].cache.lmc; in ib_get_cached_lmc()
1185 int ib_get_cached_port_state(struct ib_device *device, u32 port_num, in ib_get_cached_port_state() argument
1191 if (!rdma_is_port_valid(device, port_num)) in ib_get_cached_port_state()
1195 *port_state = device->port_data[port_num].cache.port_state; in ib_get_cached_port_state()
1219 rdma_get_gid_attr(struct ib_device *device, u32 port_num, int index) in rdma_get_gid_attr() argument
1225 if (!rdma_is_port_valid(device, port_num)) in rdma_get_gid_attr()
1228 table = rdma_gid_table(device, port_num); in rdma_get_gid_attr()
1260 u32 port_num, i; in rdma_query_gid_table() local
1264 rdma_for_each_port(device, port_num) { in rdma_query_gid_table()
1265 table = rdma_gid_table(device, port_num); in rdma_query_gid_table()
1280 entries->port_num = gid_attr->port_num; in rdma_query_gid_table()
1358 u32 port_num = entry->attr.port_num; in rdma_read_gid_attr_ndev_rcu() local
1363 table = rdma_gid_table(device, port_num); in rdma_read_gid_attr_ndev_rcu()
1446 gid_attr.port_num = port; in config_non_roce_gid_cache()
1572 ret = ib_cache_update(work->event.device, work->event.element.port_num, in ib_cache_event_task()