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

/linux-4.4.14/net/netfilter/ipset/
H A Dip_set_bitmap_port.c38 u16 first_port; /* host byte order, included in range */ member in struct:bitmap_port
55 return port - m->first_port; port_to_id()
92 htons(map->first_port + id)); bitmap_port_do_list()
98 return nla_put_net16(skb, IPSET_ATTR_PORT, htons(map->first_port)) || bitmap_port_do_head()
120 if (port < map->first_port || port > map->last_port) bitmap_port_kadt()
148 if (port < map->first_port || port > map->last_port) bitmap_port_uadt()
163 if (port < map->first_port) bitmap_port_uadt()
191 return x->first_port == y->first_port && bitmap_port_same_set()
208 u16 first_port, u16 last_port) init_map_port()
213 map->first_port = first_port; init_map_port()
228 u16 first_port, last_port; bitmap_port_create() local
237 first_port = ip_set_get_h16(tb[IPSET_ATTR_PORT]); bitmap_port_create()
239 if (first_port > last_port) { bitmap_port_create()
240 u16 tmp = first_port; bitmap_port_create()
242 first_port = last_port; bitmap_port_create()
246 elements = last_port - first_port + 1; bitmap_port_create()
255 if (!init_map_port(set, map, first_port, last_port)) { bitmap_port_create()
207 init_map_port(struct ip_set *set, struct bitmap_port *map, u16 first_port, u16 last_port) init_map_port() argument
/linux-4.4.14/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.4.14/drivers/tty/serial/8250/
H A D8250_pci.c3863 int num_iomem, num_port, first_port = -1, i; serial_pci_guess_board() local
3893 if (first_port == -1) serial_pci_guess_board()
3894 first_port = i; serial_pci_guess_board()
3906 board->flags = first_port; serial_pci_guess_board()
3907 board->num_ports = pci_resource_len(dev, first_port) / 8; serial_pci_guess_board()
3916 first_port = -1; serial_pci_guess_board()
3921 (first_port == -1 || (first_port + num_port) == i)) { serial_pci_guess_board()
3923 if (first_port == -1) serial_pci_guess_board()
3924 first_port = i; serial_pci_guess_board()
3929 board->flags = first_port | FL_BASE_BARS; serial_pci_guess_board()
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx4/
H A Dfw.c1155 int first_port; mlx4_QUERY_DEV_CAP_wrapper() local
1170 first_port = find_first_bit(actv_ports.ports, dev->caps.num_ports); mlx4_QUERY_DEV_CAP_wrapper()
1171 for (slave_port = 0, real_port = first_port; mlx4_QUERY_DEV_CAP_wrapper()
1172 real_port < first_port + mlx4_QUERY_DEV_CAP_wrapper()
/linux-4.4.14/drivers/infiniband/hw/mlx4/
H A Dmain.c2609 unsigned int first_port; do_slave_init() local
2616 first_port = find_first_bit(actv_ports.ports, dev->caps.num_ports); do_slave_init()
2633 dm[i]->port = first_port + i + 1; do_slave_init()

Completed in 245 milliseconds