Home
last modified time | relevance | path

Searched refs:pattern_len (Results 1 – 22 of 22) sorted by relevance

/Linux-v5.4/lib/
Dts_kmp.c38 unsigned int pattern_len; member
62 if (unlikely(q == kmp->pattern_len)) { in kmp_find()
64 return state->offset - kmp->pattern_len; in kmp_find()
106 kmp->pattern_len = len; in kmp_init()
127 return kmp->pattern_len; in kmp_get_pattern_len()
/Linux-v5.4/drivers/net/wireless/ath/ath10k/
Dwow.c88 int total_len = old->pkt_offset + old->pattern_len; in ath10k_wow_convert_8023_to_80211()
149 new->pattern_len = hdr_80211_end_offset - new->pkt_offset; in ath10k_wow_convert_8023_to_80211()
153 new->pattern_len); in ath10k_wow_convert_8023_to_80211()
156 new->pattern_len); in ath10k_wow_convert_8023_to_80211()
160 memcpy((u8 *)new->pattern + new->pattern_len, in ath10k_wow_convert_8023_to_80211()
163 memcpy((u8 *)new->mask + new->pattern_len, in ath10k_wow_convert_8023_to_80211()
167 new->pattern_len += total_len - ETH_HLEN; in ath10k_wow_convert_8023_to_80211()
333 if (patterns[i].pattern_len > WOW_MAX_PATTERN_SIZE) in ath10k_vif_wow_set_wakeups()
336 for (j = 0; j < patterns[i].pattern_len; j++) in ath10k_vif_wow_set_wakeups()
350 if (WARN_ON(new_pattern.pattern_len > WOW_MAX_PATTERN_SIZE)) in ath10k_vif_wow_set_wakeups()
[all …]
Dwmi-ops.h178 int pattern_len,
1354 int pattern_len, int pattern_offset) in ath10k_wmi_wow_add_pattern() argument
1363 pattern, mask, pattern_len, in ath10k_wmi_wow_add_pattern()
Dwmi-tlv.c3517 const u8 *bitmask, int pattern_len, in ath10k_wmi_tlv_op_gen_wow_add_pattern() argument
3566 memcpy(bitmap->patternbuf, pattern, pattern_len); in ath10k_wmi_tlv_op_gen_wow_add_pattern()
3567 memcpy(bitmap->bitmaskbuf, bitmask, pattern_len); in ath10k_wmi_tlv_op_gen_wow_add_pattern()
3569 bitmap->pattern_len = __cpu_to_le32(pattern_len); in ath10k_wmi_tlv_op_gen_wow_add_pattern()
3570 bitmap->bitmask_len = __cpu_to_le32(pattern_len); in ath10k_wmi_tlv_op_gen_wow_add_pattern()
Dwmi-tlv.h2115 __le32 pattern_len; member
/Linux-v5.4/net/sched/
Dem_text.c51 if (len < sizeof(*conf) || len < (sizeof(*conf) + conf->pattern_len)) in em_text_change()
63 conf->pattern_len, GFP_KERNEL, flags); in em_text_change()
114 conf.pattern_len = textsearch_get_pattern_len(tm->config); in em_text_dump()
119 if (nla_append(skb, conf.pattern_len, in em_text_dump()
/Linux-v5.4/drivers/iio/imu/st_lsm6dsx/
Dst_lsm6dsx_buffer.c341 u16 fifo_len, pattern_len = hw->sip * ST_LSM6DSX_SAMPLE_SIZE; in st_lsm6dsx_read_fifo() local
365 fifo_len = (fifo_len / pattern_len) * pattern_len; in st_lsm6dsx_read_fifo()
370 for (read_len = 0; read_len < fifo_len; read_len += pattern_len) { in st_lsm6dsx_read_fifo()
372 hw->buff, pattern_len, in st_lsm6dsx_read_fifo()
518 u16 pattern_len = hw->sip * ST_LSM6DSX_TAGGED_SAMPLE_SIZE; in st_lsm6dsx_read_tagged_fifo() local
541 for (read_len = 0; read_len < fifo_len; read_len += pattern_len) { in st_lsm6dsx_read_tagged_fifo()
544 hw->buff, pattern_len, in st_lsm6dsx_read_tagged_fifo()
553 for (i = 0; i < pattern_len; in st_lsm6dsx_read_tagged_fifo()
/Linux-v5.4/drivers/net/wireless/ath/ath9k/
Dar9003_wow.c123 int pattern_len) in ath9k_hw_wow_apply_pattern() argument
158 set = (pattern_len & AR_WOW_LENGTH_MAX) << in ath9k_hw_wow_apply_pattern()
163 set = (pattern_len & AR_WOW_LENGTH_MAX) << in ath9k_hw_wow_apply_pattern()
168 set = (pattern_len & AR_WOW_LENGTH_MAX) << in ath9k_hw_wow_apply_pattern()
173 set = (pattern_len & AR_WOW_LENGTH_MAX) << in ath9k_hw_wow_apply_pattern()
Dwow.c149 mask_len = DIV_ROUND_UP(patterns[i].pattern_len, 8); in ath9k_wow_add_pattern()
152 memcpy(wow_pattern, patterns[i].pattern, patterns[i].pattern_len); in ath9k_wow_add_pattern()
159 patterns[i].pattern_len); in ath9k_wow_add_pattern()
Dhw.h1199 int pattern_len);
1207 int pattern_len) in ath9k_hw_wow_apply_pattern() argument
/Linux-v5.4/include/uapi/linux/tc_ematch/
Dtc_em_text.h14 __u16 pattern_len; member
/Linux-v5.4/drivers/mtd/nand/raw/
Dnand_bbt.c1162 u32 pattern_len; in verify_bbt_descr() local
1169 pattern_len = bd->len; in verify_bbt_descr()
1177 pattern_len++; in verify_bbt_descr()
1195 table_size += pattern_len; in verify_bbt_descr()
/Linux-v5.4/drivers/net/wireless/intel/iwlwifi/mvm/
Dd3.c410 int mask_len = DIV_ROUND_UP(wowlan->patterns[i].pattern_len, 8); in iwl_mvm_send_patterns_v1()
416 wowlan->patterns[i].pattern_len); in iwl_mvm_send_patterns_v1()
419 wowlan->patterns[i].pattern_len; in iwl_mvm_send_patterns_v1()
451 int mask_len = DIV_ROUND_UP(wowlan->patterns[i].pattern_len, 8); in iwl_mvm_send_patterns()
460 wowlan->patterns[i].pattern_len); in iwl_mvm_send_patterns()
463 wowlan->patterns[i].pattern_len; in iwl_mvm_send_patterns()
/Linux-v5.4/drivers/net/wireless/intel/iwlwifi/dvm/
Dlib.c1021 int mask_len = DIV_ROUND_UP(wowlan->patterns[i].pattern_len, 8); in iwlagn_send_patterns()
1027 wowlan->patterns[i].pattern_len); in iwlagn_send_patterns()
1030 wowlan->patterns[i].pattern_len; in iwlagn_send_patterns()
/Linux-v5.4/drivers/net/wireless/realtek/rtlwifi/
Dcore.c436 if (patterns[i].pattern_len < 0 || in _rtl_add_wowlan_patterns()
437 patterns[i].pattern_len > MAX_WOL_PATTERN_SIZE) { in _rtl_add_wowlan_patterns()
443 mask_len = DIV_ROUND_UP(patterns[i].pattern_len, 8); in _rtl_add_wowlan_patterns()
447 patterns[i].pattern_len); in _rtl_add_wowlan_patterns()
507 for (j = 12; j < patterns[i].pattern_len; j++) { in _rtl_add_wowlan_patterns()
/Linux-v5.4/drivers/net/wireless/ti/wlcore/
Dmain.c1348 int i, pattern_len = 0; in wl1271_validate_wowlan_pattern() local
1364 for (i = 0; i < p->pattern_len; i++) { in wl1271_validate_wowlan_pattern()
1368 pattern_len = 1; in wl1271_validate_wowlan_pattern()
1372 fields_size += pattern_len + in wl1271_validate_wowlan_pattern()
1374 pattern_len = 1; in wl1271_validate_wowlan_pattern()
1376 pattern_len++; in wl1271_validate_wowlan_pattern()
1381 fields_size += pattern_len + in wl1271_validate_wowlan_pattern()
1389 fields_size += pattern_len + RX_FILTER_FIELD_OVERHEAD; in wl1271_validate_wowlan_pattern()
1505 while (i < p->pattern_len) { in wl1271_convert_wowlan_pattern_to_rx_filter()
1511 for (j = i; j < p->pattern_len; j++) { in wl1271_convert_wowlan_pattern_to_rx_filter()
/Linux-v5.4/drivers/net/wireless/ath/ath6kl/
Dcfg80211.c1923 for (pos = 0; pos < wow->patterns[i].pattern_len; pos++) { in ath6kl_wow_usr()
1935 wow->patterns[i].pattern_len, in ath6kl_wow_usr()
/Linux-v5.4/drivers/net/wireless/quantenna/qtnfmac/
Dcommands.c2676 wowl->patterns[count].pattern_len); in qtnf_cmd_send_wowlan_set()
/Linux-v5.4/include/net/
Dcfg80211.h2647 int pattern_len; member
/Linux-v5.4/drivers/net/wireless/marvell/mwifiex/
Dcfg80211.c3221 for (j = 0; j < DIV_ROUND_UP(pat->pattern_len, 8); j++) { in mwifiex_is_pattern_supported()
/Linux-v5.4/net/wireless/
Dnl80211.c11149 pat_len = wowlan->patterns[i].pattern_len; in nl80211_send_wowlan_patterns()
11692 new_triggers.patterns[i].pattern_len = pat_len; in nl80211_set_wowlan()
11792 pat_len = rule->patterns[j].pattern_len; in nl80211_send_coalesce_rules()
11942 new_rule->patterns[i].pattern_len = pat_len; in nl80211_parse_coalesce_rule()
/Linux-v5.4/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
Dcfg80211.c3694 wowl->patterns[i].pattern_len, in brcmf_configure_wowl()