Lines Matching refs:pat_len
11137 int i, pat_len; in nl80211_send_wowlan_patterns() local
11150 pat_len = wowlan->patterns[i].pattern_len; in nl80211_send_wowlan_patterns()
11151 if (nla_put(msg, NL80211_PKTPAT_MASK, DIV_ROUND_UP(pat_len, 8), in nl80211_send_wowlan_patterns()
11153 nla_put(msg, NL80211_PKTPAT_PATTERN, pat_len, in nl80211_send_wowlan_patterns()
11630 int rem, pat_len, mask_len, pkt_offset; in nl80211_set_wowlan() local
11666 pat_len = nla_len(pat_tb[NL80211_PKTPAT_PATTERN]); in nl80211_set_wowlan()
11667 mask_len = DIV_ROUND_UP(pat_len, 8); in nl80211_set_wowlan()
11670 if (pat_len > wowlan->pattern_max_len || in nl80211_set_wowlan()
11671 pat_len < wowlan->pattern_min_len) in nl80211_set_wowlan()
11683 mask_pat = kmalloc(mask_len + pat_len, GFP_KERNEL); in nl80211_set_wowlan()
11693 new_triggers.patterns[i].pattern_len = pat_len; in nl80211_set_wowlan()
11696 pat_len); in nl80211_set_wowlan()
11760 int i, j, pat_len; in nl80211_send_coalesce_rules() local
11793 pat_len = rule->patterns[j].pattern_len; in nl80211_send_coalesce_rules()
11795 DIV_ROUND_UP(pat_len, 8), in nl80211_send_coalesce_rules()
11797 nla_put(msg, NL80211_PKTPAT_PATTERN, pat_len, in nl80211_send_coalesce_rules()
11868 int rem, pat_len, mask_len, pkt_offset, n_patterns = 0; in nl80211_parse_coalesce_rule() local
11917 pat_len = nla_len(pat_tb[NL80211_PKTPAT_PATTERN]); in nl80211_parse_coalesce_rule()
11918 mask_len = DIV_ROUND_UP(pat_len, 8); in nl80211_parse_coalesce_rule()
11921 if (pat_len > coalesce->pattern_max_len || in nl80211_parse_coalesce_rule()
11922 pat_len < coalesce->pattern_min_len) in nl80211_parse_coalesce_rule()
11933 mask_pat = kmalloc(mask_len + pat_len, GFP_KERNEL); in nl80211_parse_coalesce_rule()
11943 new_rule->patterns[i].pattern_len = pat_len; in nl80211_parse_coalesce_rule()
11945 pat_len); in nl80211_parse_coalesce_rule()