Searched refs:first_port (Results 1 - 5 of 5) sorted by relevance

/linux-4.1.27/net/netfilter/ipset/
H A Dip_set_bitmap_port.c39 u16 first_port; /* host byte order, included in range */ member in struct:bitmap_port
54 return port - m->first_port; port_to_id()
91 htons(map->first_port + id)); bitmap_port_do_list()
97 return nla_put_net16(skb, IPSET_ATTR_PORT, htons(map->first_port)) || bitmap_port_do_head()
119 if (port < map->first_port || port > map->last_port) bitmap_port_kadt()
153 if (port < map->first_port || port > map->last_port) bitmap_port_uadt()
168 if (port < map->first_port) bitmap_port_uadt()
195 return x->first_port == y->first_port && bitmap_port_same_set()
212 u16 first_port, u16 last_port) init_map_port()
224 map->first_port = first_port; init_map_port()
239 u16 first_port, last_port; bitmap_port_create() local
247 first_port = ip_set_get_h16(tb[IPSET_ATTR_PORT]); bitmap_port_create()
249 if (first_port > last_port) { bitmap_port_create()
250 u16 tmp = first_port; bitmap_port_create()
252 first_port = last_port; bitmap_port_create()
260 map->elements = last_port - first_port + 1; bitmap_port_create()
264 if (!init_map_port(set, map, first_port, last_port)) { bitmap_port_create()
211 init_map_port(struct ip_set *set, struct bitmap_port *map, u16 first_port, u16 last_port) init_map_port() argument
/linux-4.1.27/drivers/net/ethernet/micrel/
H A Dksz884x.c1335 * @first_port: Index of first port this port supports.
1348 int first_port; member in struct:ksz_port
3301 for (i = 0, p = port->first_port; i < port->port_cnt; i++, p++) { port_get_link_speed()
3384 for (i = 0, p = port->first_port; i < port->port_cnt; i++, p++) { port_set_link_speed()
3436 for (i = 0, p = port->first_port; i < port->port_cnt; i++, p++) { port_force_link_speed()
3460 for (i = 0, p = port->first_port; i < port->port_cnt; i++, p++) port_set_power_saving()
4655 hw->dst_ports = 1 << priv->port.first_port; send_packet()
5374 port_set_stp_state(hw, port->first_port, STP_STATE_DISABLED); netdev_close()
5378 pi = 1 << port->first_port; netdev_close()
5385 if (port->first_port > 0) netdev_close()
5540 for (i = 0, p = port->first_port; i < port->port_cnt; i++, p++) { netdev_open()
5551 port_set_stp_state(hw, port->first_port, STP_STATE_SIMPLE); netdev_open()
5552 if (port->first_port > 0) netdev_open()
5624 for (i = 0, p = port->first_port; i < port->mib_port_cnt; i++, p++) { netdev_query_statistics()
5668 if (priv->port.first_port > 0) netdev_set_mac_address()
5679 if (priv->port.first_port > 0) netdev_set_mac_address()
5711 int port = priv->port.first_port; dev_set_promiscuous()
5931 for (i = 0, pi = port->first_port; i < port->port_cnt; i++, pi++) mdio_write()
6528 for (i = 0, p = port->first_port; i < port->mib_port_cnt; i++, p++) { netdev_get_ethtool_stats()
6563 get_mib_counters(hw, port->first_port, port->mib_port_cnt, counter); netdev_get_ethtool_stats()
6806 priv->mii_if.phy_id = priv->port.first_port + 1; netdev_init()
7076 port->first_port = i; pcidev_init()
7080 port->linked = &hw->port_info[port->first_port]; pcidev_init()
7097 dev->dev_addr[5] += port->first_port; pcidev_init()
/linux-4.1.27/drivers/tty/serial/8250/
H A D8250_pci.c3960 int num_iomem, num_port, first_port = -1, i; serial_pci_guess_board() local
3990 if (first_port == -1) serial_pci_guess_board()
3991 first_port = i; serial_pci_guess_board()
4003 board->flags = first_port; serial_pci_guess_board()
4004 board->num_ports = pci_resource_len(dev, first_port) / 8; serial_pci_guess_board()
4013 first_port = -1; serial_pci_guess_board()
4018 (first_port == -1 || (first_port + num_port) == i)) { serial_pci_guess_board()
4020 if (first_port == -1) serial_pci_guess_board()
4021 first_port = i; serial_pci_guess_board()
4026 board->flags = first_port | FL_BASE_BARS; serial_pci_guess_board()
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx4/
H A Dfw.c1131 int first_port; mlx4_QUERY_DEV_CAP_wrapper() local
1146 first_port = find_first_bit(actv_ports.ports, dev->caps.num_ports); mlx4_QUERY_DEV_CAP_wrapper()
1147 for (slave_port = 0, real_port = first_port; mlx4_QUERY_DEV_CAP_wrapper()
1148 real_port < first_port + mlx4_QUERY_DEV_CAP_wrapper()
/linux-4.1.27/drivers/infiniband/hw/mlx4/
H A Dmain.c2583 unsigned int first_port; do_slave_init() local
2590 first_port = find_first_bit(actv_ports.ports, dev->caps.num_ports); do_slave_init()
2612 dm[i]->port = first_port + i + 1; do_slave_init()

Completed in 395 milliseconds