Lines Matching refs:vid

757 			     u32 vid, u8 vsi, bool set)  in fm10k_queue_vlan_request()  argument
770 request->vlan.vid = vid; in fm10k_queue_vlan_request()
796 const unsigned char *addr, u16 vid, bool set) in fm10k_queue_mac_request() argument
815 request->mac.vid = vid; in fm10k_queue_mac_request()
871 u16 vid = interface->vid; in fm10k_uc_vlan_unsync() local
872 bool set = !!(vid / VLAN_N_VID); in fm10k_uc_vlan_unsync()
876 vid &= VLAN_N_VID - 1; in fm10k_uc_vlan_unsync()
878 err = fm10k_queue_mac_request(interface, glort, uc_addr, vid, set); in fm10k_uc_vlan_unsync()
891 u16 vid = interface->vid; in fm10k_mc_vlan_unsync() local
892 bool set = !!(vid / VLAN_N_VID); in fm10k_mc_vlan_unsync()
896 vid &= VLAN_N_VID - 1; in fm10k_mc_vlan_unsync()
898 err = fm10k_queue_mac_request(interface, glort, mc_addr, vid, set); in fm10k_mc_vlan_unsync()
906 static int fm10k_update_vid(struct net_device *netdev, u16 vid, bool set) in fm10k_update_vid() argument
916 if (!vid) in fm10k_update_vid()
919 if (vid >= VLAN_N_VID) in fm10k_update_vid()
931 set_bit(vid, interface->active_vlans); in fm10k_update_vid()
933 clear_bit(vid, interface->active_vlans); in fm10k_update_vid()
938 u16 rx_vid = rx_ring->vid & (VLAN_N_VID - 1); in fm10k_update_vid()
941 rx_ring->vid |= FM10K_VLAN_CLEAR; in fm10k_update_vid()
943 rx_ring->vid &= ~FM10K_VLAN_CLEAR; in fm10k_update_vid()
955 if (!set && vid == hw->mac.default_vid) in fm10k_update_vid()
968 err = fm10k_queue_vlan_request(interface, vid, 0, set); in fm10k_update_vid()
975 hw->mac.addr, vid, set); in fm10k_update_vid()
991 vid, set); in fm10k_update_vid()
996 interface->vid = vid + (set ? VLAN_N_VID : 0); in fm10k_update_vid()
1009 __always_unused __be16 proto, u16 vid) in fm10k_vlan_rx_add_vid() argument
1012 return fm10k_update_vid(netdev, vid, true); in fm10k_vlan_rx_add_vid()
1016 __always_unused __be16 proto, u16 vid) in fm10k_vlan_rx_kill_vid() argument
1019 return fm10k_update_vid(netdev, vid, false); in fm10k_vlan_rx_kill_vid()
1022 static u16 fm10k_find_next_vlan(struct fm10k_intfc *interface, u16 vid) in fm10k_find_next_vlan() argument
1026 u16 vid_limit = vid < default_vid ? default_vid : VLAN_N_VID; in fm10k_find_next_vlan()
1028 vid = find_next_bit(interface->active_vlans, vid_limit, ++vid); in fm10k_find_next_vlan()
1030 return vid; in fm10k_find_next_vlan()
1035 u32 vid, prev_vid; in fm10k_clear_unused_vlans() local
1038 for (vid = 0, prev_vid = 0; in fm10k_clear_unused_vlans()
1040 prev_vid = vid + 1, vid = fm10k_find_next_vlan(interface, vid)) { in fm10k_clear_unused_vlans()
1041 if (prev_vid == vid) in fm10k_clear_unused_vlans()
1045 prev_vid += (vid - prev_vid - 1) << FM10K_VLAN_LENGTH_SHIFT; in fm10k_clear_unused_vlans()
1054 u16 vid, glort = interface->glort; in __fm10k_uc_sync() local
1060 for (vid = fm10k_find_next_vlan(interface, 0); in __fm10k_uc_sync()
1061 vid < VLAN_N_VID; in __fm10k_uc_sync()
1062 vid = fm10k_find_next_vlan(interface, vid)) { in __fm10k_uc_sync()
1064 addr, vid, sync); in __fm10k_uc_sync()
1119 u16 vid, glort = interface->glort; in __fm10k_mc_sync() local
1125 for (vid = fm10k_find_next_vlan(interface, 0); in __fm10k_mc_sync()
1126 vid < VLAN_N_VID; in __fm10k_mc_sync()
1127 vid = fm10k_find_next_vlan(interface, vid)) { in __fm10k_mc_sync()
1129 addr, vid, sync); in __fm10k_mc_sync()
1200 u16 vid, glort; in fm10k_restore_rx_state() local
1227 for (vid = fm10k_find_next_vlan(interface, 0); in fm10k_restore_rx_state()
1228 vid < VLAN_N_VID; in fm10k_restore_rx_state()
1229 vid = fm10k_find_next_vlan(interface, vid)) { in fm10k_restore_rx_state()
1230 fm10k_queue_vlan_request(interface, vid, 0, true); in fm10k_restore_rx_state()
1233 hw->mac.addr, vid, true); in fm10k_restore_rx_state()
1247 vid, true); in fm10k_restore_rx_state()
1466 u16 vid, glort; in fm10k_dfwd_add_station() local
1546 for (vid = fm10k_find_next_vlan(interface, 0); in fm10k_dfwd_add_station()
1547 vid < VLAN_N_VID; in fm10k_dfwd_add_station()
1548 vid = fm10k_find_next_vlan(interface, vid)) in fm10k_dfwd_add_station()
1550 vid, true); in fm10k_dfwd_add_station()
1564 u16 vid, glort; in fm10k_dfwd_del_station() local
1592 for (vid = fm10k_find_next_vlan(interface, 0); in fm10k_dfwd_del_station()
1593 vid < VLAN_N_VID; in fm10k_dfwd_del_station()
1594 vid = fm10k_find_next_vlan(interface, vid)) in fm10k_dfwd_del_station()
1596 vid, false); in fm10k_dfwd_del_station()