Lines Matching refs:start_port
61 static inline int start_port(struct ib_device *device) in start_port() function
81 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()
172 if (port_num < start_port(device) || port_num > end_port(device)) in ib_find_cached_pkey()
177 cache = device->cache.pkey_cache[port_num - start_port(device)]; in ib_find_cached_pkey()
212 if (port_num < start_port(device) || port_num > end_port(device)) in ib_find_exact_cached_pkey()
217 cache = device->cache.pkey_cache[port_num - start_port(device)]; in ib_find_exact_cached_pkey()
241 if (port_num < start_port(device) || port_num > end_port(device)) in ib_get_cached_lmc()
245 *lmc = device->cache.lmc_cache[port_num - start_port(device)]; in ib_get_cached_lmc()
306 old_pkey_cache = device->cache.pkey_cache[port - start_port(device)]; in ib_cache_update()
307 old_gid_cache = device->cache.gid_cache [port - start_port(device)]; in ib_cache_update()
309 device->cache.pkey_cache[port - start_port(device)] = pkey_cache; in ib_cache_update()
310 device->cache.gid_cache [port - start_port(device)] = gid_cache; in ib_cache_update()
312 device->cache.lmc_cache[port - start_port(device)] = tprops->lmc; in ib_cache_update()
366 (end_port(device) - start_port(device) + 1), GFP_KERNEL); in ib_cache_setup_one()
369 (end_port(device) - start_port(device) + 1), GFP_KERNEL); in ib_cache_setup_one()
373 start_port(device) + 1), in ib_cache_setup_one()
383 for (p = 0; p <= end_port(device) - start_port(device); ++p) { in ib_cache_setup_one()
386 ib_cache_update(device, p + start_port(device)); in ib_cache_setup_one()
397 for (p = 0; p <= end_port(device) - start_port(device); ++p) { in ib_cache_setup_one()
415 for (p = 0; p <= end_port(device) - start_port(device); ++p) { in ib_cache_cleanup_one()