Lines Matching refs:reg

609 	struct cfg80211_mgmt_registration *reg;  in cfg80211_mgmt_registrations_update()  local
622 list_for_each_entry(reg, &tmp->mgmt_registrations, list) { in cfg80211_mgmt_registrations_update()
623 u32 mask = BIT(le16_to_cpu(reg->frame_type) >> 4); in cfg80211_mgmt_registrations_update()
626 if (reg->multicast_rx) in cfg80211_mgmt_registrations_update()
666 struct cfg80211_mgmt_registration *reg, *nreg; in cfg80211_mlme_register_mgmt() local
707 nreg = kzalloc(sizeof(*reg) + match_len, GFP_KERNEL); in cfg80211_mlme_register_mgmt()
713 list_for_each_entry(reg, &wdev->mgmt_registrations, list) { in cfg80211_mlme_register_mgmt()
714 int mlen = min(match_len, reg->match_len); in cfg80211_mlme_register_mgmt()
716 if (frame_type != le16_to_cpu(reg->frame_type)) in cfg80211_mlme_register_mgmt()
719 if (memcmp(reg->match, match_data, mlen) == 0) { in cfg80211_mlme_register_mgmt()
720 if (reg->multicast_rx != multicast_rx) { in cfg80211_mlme_register_mgmt()
722 reg->multicast_rx = multicast_rx; in cfg80211_mlme_register_mgmt()
763 struct cfg80211_mgmt_registration *reg, *tmp; in cfg80211_mlme_unregister_socket() local
767 list_for_each_entry_safe(reg, tmp, &wdev->mgmt_registrations, list) { in cfg80211_mlme_unregister_socket()
768 if (reg->nlportid != nlportid) in cfg80211_mlme_unregister_socket()
771 list_del(&reg->list); in cfg80211_mlme_unregister_socket()
772 kfree(reg); in cfg80211_mlme_unregister_socket()
792 struct cfg80211_mgmt_registration *reg, *tmp; in cfg80211_mlme_purge_registrations() local
795 list_for_each_entry_safe(reg, tmp, &wdev->mgmt_registrations, list) { in cfg80211_mlme_purge_registrations()
796 list_del(&reg->list); in cfg80211_mlme_purge_registrations()
797 kfree(reg); in cfg80211_mlme_purge_registrations()
964 struct cfg80211_mgmt_registration *reg; in cfg80211_rx_mgmt_ext() local
988 list_for_each_entry(reg, &wdev->mgmt_registrations, list) { in cfg80211_rx_mgmt_ext()
989 if (reg->frame_type != ftype) in cfg80211_rx_mgmt_ext()
992 if (reg->match_len > data_len) in cfg80211_rx_mgmt_ext()
995 if (memcmp(reg->match, data, reg->match_len)) in cfg80211_rx_mgmt_ext()
1001 if (nl80211_send_mgmt(rdev, wdev, reg->nlportid, info, in cfg80211_rx_mgmt_ext()