Lines Matching defs:port
221 int *port)
240 if (port)
241 *port = i;
254 int *port)
272 if (port)
273 *port = i;
287 int *port)
306 if (port)
307 *port = i;
399 * - source port management
400 * To find a free source port in the port allocation map we use a very simple
401 * rotor scheme to look for the next free port.
403 * If a source port has been specified make sure that it doesn't collide with
404 * our normal source port allocation map. If it's outside the range of our
407 * If the source port is outside our allocation range, the caller is
408 * responsible for keeping track of their port usage.
445 __be16 *port;
448 pr_err("cdev 0x%p, p#%u %s, NO port map.\n",
454 port = &csk->saddr.sin_port;
456 port = &csk->saddr6.sin6_port;
458 if (*port) {
459 pr_err("source port NON-ZERO %u.\n",
460 ntohs(*port));
478 *port = htons(pmap->sport_base + idx);
504 __be16 *port;
507 port = &csk->saddr.sin_port;
509 port = &csk->saddr6.sin6_port;
511 if (*port) {
512 int idx = ntohs(*port) - pmap->sport_base;
514 *port = 0;
516 pr_err("cdev 0x%p, p#%u %s, port %u OOR.\n",
519 ntohs(*port));
615 int port = 0xFFFF;
621 pr_info("no route to ipv4 0x%x, port %u.\n",
636 pr_info("multi-cast route %pI4, port %u, dev %s.\n",
660 cdev = cxgbi_device_find_by_netdev(ndev, &port);
662 cdev = cxgbi_device_find_by_mac(ndev, &port);
672 port, ndev->name, cdev);
680 csk->port_id = port;
731 int port = 0xFFFF;
737 pr_info("no route to ipv6 %pI6 port %u\n",
749 pr_info("%pI6, port %u, dst no neighbour.\n",
764 pr_info("multi-cast route %pI6 port %u, dev %s.\n",
771 cdev = cxgbi_device_find_by_netdev(ndev, &port);
773 cdev = cxgbi_device_find_by_mac(ndev, &port);
782 daddr6->sin6_addr.s6_addr, ntohs(daddr6->sin6_port), port,
791 csk->port_id = port;