Lines Matching refs:internal_ports
46 idr_for_each_entry(&priv->internal_ports.port_ids, entry, i) in nfp_flower_lookup_internal_port_id()
67 spin_lock_bh(&priv->internal_ports.lock); in nfp_flower_get_internal_port_id()
68 id = idr_alloc(&priv->internal_ports.port_ids, netdev, in nfp_flower_get_internal_port_id()
70 spin_unlock_bh(&priv->internal_ports.lock); in nfp_flower_get_internal_port_id()
101 netdev = idr_find(&priv->internal_ports.port_ids, port_id); in nfp_flower_get_netdev_from_internal_port_id()
117 spin_lock_bh(&priv->internal_ports.lock); in nfp_flower_free_internal_port_id()
118 idr_remove(&priv->internal_ports.port_ids, id); in nfp_flower_free_internal_port_id()
119 spin_unlock_bh(&priv->internal_ports.lock); in nfp_flower_free_internal_port_id()
136 spin_lock_init(&priv->internal_ports.lock); in nfp_flower_internal_port_init()
137 idr_init(&priv->internal_ports.port_ids); in nfp_flower_internal_port_init()
142 idr_destroy(&priv->internal_ports.port_ids); in nfp_flower_internal_port_cleanup()