Lines Matching defs:start_port
61 static inline int start_port(struct ib_device *device)
81 if (port_num < start_port(device) || port_num > end_port(device))
87 cache = device->cache.gid_cache[port_num - start_port(device)];
118 for (p = 0; p <= end_port(device) - start_port(device); ++p) {
124 *port_num = p + start_port(device);
147 if (port_num < start_port(device) || port_num > end_port(device))
153 cache = device->cache.pkey_cache[port_num - start_port(device)];
178 if (port_num < start_port(device) || port_num > end_port(device))
188 cache = device->cache.pkey_cache[port_num - start_port(device)];
222 if (port_num < start_port(device) || port_num > end_port(device))
232 cache = device->cache.pkey_cache[port_num - start_port(device)];
255 if (port_num < start_port(device) || port_num > end_port(device))
260 *lmc = device->cache.lmc_cache[port_num - start_port(device)];
327 old_pkey_cache = device->cache.pkey_cache[port - start_port(device)];
328 old_gid_cache = device->cache.gid_cache [port - start_port(device)];
330 device->cache.pkey_cache[port - start_port(device)] = pkey_cache;
331 device->cache.gid_cache [port - start_port(device)] = gid_cache;
333 device->cache.lmc_cache[port - start_port(device)] = tprops->lmc;
387 (end_port(device) - start_port(device) + 1), GFP_KERNEL);
390 (end_port(device) - start_port(device) + 1), GFP_KERNEL);
394 start_port(device) + 1),
404 for (p = 0; p <= end_port(device) - start_port(device); ++p) {
407 ib_cache_update(device, p + start_port(device));
418 for (p = 0; p <= end_port(device) - start_port(device); ++p) {
443 for (p = 0; p <= end_port(device) - start_port(device); ++p) {