Home
last modified time | relevance | path

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

12

/linux/lib/
H A 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/drivers/net/wireless/ath/ath10k/
H A Dwow.c89 int total_len = old->pkt_offset + old->pattern_len; in ath10k_wow_convert_8023_to_80211()
150 new->pattern_len = hdr_80211_end_offset - new->pkt_offset; in ath10k_wow_convert_8023_to_80211()
154 new->pattern_len); in ath10k_wow_convert_8023_to_80211()
157 new->pattern_len); in ath10k_wow_convert_8023_to_80211()
161 memcpy((u8 *)new->pattern + new->pattern_len, in ath10k_wow_convert_8023_to_80211()
164 memcpy((u8 *)new->mask + new->pattern_len, in ath10k_wow_convert_8023_to_80211()
168 new->pattern_len += total_len - ETH_HLEN; in ath10k_wow_convert_8023_to_80211()
334 if (patterns[i].pattern_len > WOW_MAX_PATTERN_SIZE) in ath10k_vif_wow_set_wakeups()
337 for (j = 0; j < patterns[i].pattern_len; j++) in ath10k_vif_wow_set_wakeups()
352 if (WARN_ON(new_pattern.pattern_len > WOW_MAX_PATTERN_SIZE)) in ath10k_vif_wow_set_wakeups()
[all …]
H A Dwmi-ops.h186 int pattern_len,
1428 int pattern_len, int pattern_offset) in ath10k_wmi_wow_add_pattern() argument
1437 pattern, mask, pattern_len, in ath10k_wmi_wow_add_pattern()
H A Dwmi-tlv.c3737 const u8 *bitmask, int pattern_len, in ath10k_wmi_tlv_op_gen_wow_add_pattern() argument
3786 memcpy(bitmap->patternbuf, pattern, pattern_len); in ath10k_wmi_tlv_op_gen_wow_add_pattern()
3787 memcpy(bitmap->bitmaskbuf, bitmask, pattern_len); in ath10k_wmi_tlv_op_gen_wow_add_pattern()
3789 bitmap->pattern_len = __cpu_to_le32(pattern_len); in ath10k_wmi_tlv_op_gen_wow_add_pattern()
3790 bitmap->bitmask_len = __cpu_to_le32(pattern_len); in ath10k_wmi_tlv_op_gen_wow_add_pattern()
H A Dwmi-tlv.h2271 __le32 pattern_len; member
/linux/net/sched/
H A 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()
116 conf.pattern_len = textsearch_get_pattern_len(tm->config); in em_text_dump()
121 if (nla_append(skb, conf.pattern_len, in em_text_dump()
/linux/drivers/net/wireless/ath/ath11k/
H A Dwow.c159 int total_len = old->pkt_offset + old->pattern_len; in ath11k_wow_convert_8023_to_80211()
220 new->pattern_len = hdr_80211_end_offset - new->pkt_offset; in ath11k_wow_convert_8023_to_80211()
224 new->pattern_len); in ath11k_wow_convert_8023_to_80211()
227 new->pattern_len); in ath11k_wow_convert_8023_to_80211()
231 memcpy((u8 *)new->pattern + new->pattern_len, in ath11k_wow_convert_8023_to_80211()
234 memcpy((u8 *)new->mask + new->pattern_len, in ath11k_wow_convert_8023_to_80211()
238 new->pattern_len += total_len - ETH_HLEN; in ath11k_wow_convert_8023_to_80211()
405 if (patterns[i].pattern_len > WOW_MAX_PATTERN_SIZE) in ath11k_vif_wow_set_wakeups()
408 for (j = 0; j < patterns[i].pattern_len; j++) in ath11k_vif_wow_set_wakeups()
419 old_pattern.pattern_len); in ath11k_vif_wow_set_wakeups()
[all …]
H A Dwmi.c9242 int pattern_len, int pattern_offset) in ath11k_wmi_wow_add_pattern() argument
9290 memcpy(bitmap->patternbuf, pattern, pattern_len); in ath11k_wmi_wow_add_pattern()
9291 ath11k_ce_byte_swap(bitmap->patternbuf, roundup(pattern_len, 4)); in ath11k_wmi_wow_add_pattern()
9292 memcpy(bitmap->bitmaskbuf, mask, pattern_len); in ath11k_wmi_wow_add_pattern()
9293 ath11k_ce_byte_swap(bitmap->bitmaskbuf, roundup(pattern_len, 4)); in ath11k_wmi_wow_add_pattern()
9295 bitmap->pattern_len = pattern_len; in ath11k_wmi_wow_add_pattern()
9296 bitmap->bitmask_len = pattern_len; in ath11k_wmi_wow_add_pattern()
/linux/drivers/iio/imu/st_lsm6dsx/
H A Dst_lsm6dsx_buffer.c377 u16 fifo_len, pattern_len = hw->sip * ST_LSM6DSX_SAMPLE_SIZE; in st_lsm6dsx_read_fifo() local
397 fifo_len = (fifo_len / pattern_len) * pattern_len; in st_lsm6dsx_read_fifo()
404 for (read_len = 0; read_len < fifo_len; read_len += pattern_len) { in st_lsm6dsx_read_fifo()
406 hw->buff, pattern_len, in st_lsm6dsx_read_fifo()
596 u16 pattern_len = hw->sip * ST_LSM6DSX_TAGGED_SAMPLE_SIZE; in st_lsm6dsx_read_tagged_fifo() local
626 for (read_len = 0; read_len < fifo_len; read_len += pattern_len) { in st_lsm6dsx_read_tagged_fifo()
629 hw->buff, pattern_len, in st_lsm6dsx_read_tagged_fifo()
638 for (i = 0; i < pattern_len; in st_lsm6dsx_read_tagged_fifo()
/linux/drivers/net/wireless/ath/ath9k/
H A 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()
H A 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()
H A Dhw.h1204 int pattern_len);
1212 int pattern_len) in ath9k_hw_wow_apply_pattern() argument
/linux/drivers/net/wireless/ath/ath12k/
H A Dwow.c172 size_t eth_pat_len = eth_pattern->pattern_len; in ath12k_wow_convert_8023_to_80211()
259 i80211_pattern->pattern_len = pat_len; in ath12k_wow_convert_8023_to_80211()
419 if (WARN_ON(eth_pattern->pattern_len > WOW_MAX_PATTERN_SIZE)) in ath12k_wow_vif_set_wakeups()
427 if (WARN_ON(new_pattern.pattern_len > WOW_MAX_PATTERN_SIZE)) in ath12k_wow_vif_set_wakeups()
431 eth_pattern->pattern_len); in ath12k_wow_vif_set_wakeups()
434 for (j = 0; j < eth_pattern->pattern_len; j++) in ath12k_wow_vif_set_wakeups()
438 new_pattern.pattern_len = eth_pattern->pattern_len; in ath12k_wow_vif_set_wakeups()
446 new_pattern.pattern_len, in ath12k_wow_vif_set_wakeups()
H A Dwow.h23 int pattern_len; member
H A Dwmi.c7584 int pattern_len, int pattern_offset) in ath12k_wmi_wow_add_pattern() argument
7626 memcpy(bitmap->patternbuf, pattern, pattern_len); in ath12k_wmi_wow_add_pattern()
7627 memcpy(bitmap->bitmaskbuf, mask, pattern_len); in ath12k_wmi_wow_add_pattern()
7629 bitmap->pattern_len = cpu_to_le32(pattern_len); in ath12k_wmi_wow_add_pattern()
7630 bitmap->bitmask_len = cpu_to_le32(pattern_len); in ath12k_wmi_wow_add_pattern()
7664 vdev_id, pattern_id, pattern_offset, pattern_len); in ath12k_wmi_wow_add_pattern()
7667 bitmap->patternbuf, pattern_len); in ath12k_wmi_wow_add_pattern()
7669 bitmap->bitmaskbuf, pattern_len); in ath12k_wmi_wow_add_pattern()
/linux/include/uapi/linux/tc_ematch/
H A Dtc_em_text.h14 __u16 pattern_len; member
/linux/drivers/mtd/nand/raw/
H A Dnand_bbt.c1194 u32 pattern_len; in verify_bbt_descr() local
1201 pattern_len = bd->len; in verify_bbt_descr()
1209 pattern_len++; in verify_bbt_descr()
1227 table_size += pattern_len; in verify_bbt_descr()
/linux/drivers/net/wireless/intel/iwlwifi/dvm/
H A Dlib.c1016 int mask_len = DIV_ROUND_UP(wowlan->patterns[i].pattern_len, 8); in iwlagn_send_patterns()
1022 wowlan->patterns[i].pattern_len); in iwlagn_send_patterns()
1025 wowlan->patterns[i].pattern_len; in iwlagn_send_patterns()
/linux/drivers/net/wireless/realtek/rtlwifi/
H A Dcore.c438 if (patterns[i].pattern_len < 0 || in _rtl_add_wowlan_patterns()
439 patterns[i].pattern_len > MAX_WOL_PATTERN_SIZE) { in _rtl_add_wowlan_patterns()
445 mask_len = DIV_ROUND_UP(patterns[i].pattern_len, 8); in _rtl_add_wowlan_patterns()
449 patterns[i].pattern_len); in _rtl_add_wowlan_patterns()
509 for (j = 12; j < patterns[i].pattern_len; j++) { in _rtl_add_wowlan_patterns()
/linux/drivers/net/wireless/ti/wlcore/
H A Dmain.c1424 int i, pattern_len = 0; in wl1271_validate_wowlan_pattern() local
1440 for (i = 0; i < p->pattern_len; i++) { in wl1271_validate_wowlan_pattern()
1444 pattern_len = 1; in wl1271_validate_wowlan_pattern()
1448 fields_size += pattern_len + in wl1271_validate_wowlan_pattern()
1450 pattern_len = 1; in wl1271_validate_wowlan_pattern()
1452 pattern_len++; in wl1271_validate_wowlan_pattern()
1457 fields_size += pattern_len + in wl1271_validate_wowlan_pattern()
1465 fields_size += pattern_len + RX_FILTER_FIELD_OVERHEAD; in wl1271_validate_wowlan_pattern()
1580 while (i < p->pattern_len) { in wl1271_convert_wowlan_pattern_to_rx_filter()
1586 for (j = i; j < p->pattern_len; j++) { in wl1271_convert_wowlan_pattern_to_rx_filter()
/linux/drivers/net/wireless/intel/iwlwifi/mvm/
H A Dd3.c659 int mask_len = DIV_ROUND_UP(wowlan->patterns[i].pattern_len, 8); in iwl_mvm_send_patterns_v1()
665 wowlan->patterns[i].pattern_len); in iwl_mvm_send_patterns_v1()
668 wowlan->patterns[i].pattern_len; in iwl_mvm_send_patterns_v1()
705 int mask_len = DIV_ROUND_UP(wowlan->patterns[i].pattern_len, 8); in iwl_mvm_send_patterns()
714 wowlan->patterns[i].pattern_len); in iwl_mvm_send_patterns()
717 wowlan->patterns[i].pattern_len; in iwl_mvm_send_patterns()
/linux/drivers/net/wireless/realtek/rtw88/
H A Dwow.c178 len = pkt_pattern->pattern_len; in rtw_wow_pattern_generate()
/linux/drivers/net/wireless/mediatek/mt76/
H A Dmt76_connac_mcu.c2466 ptlv->data_len = pattern->pattern_len; in mt76_connac_mcu_set_wow_pattern()
2470 memcpy(ptlv->pattern, pattern->pattern, pattern->pattern_len); in mt76_connac_mcu_set_wow_pattern()
2471 memcpy(ptlv->mask, pattern->mask, DIV_ROUND_UP(pattern->pattern_len, 8)); in mt76_connac_mcu_set_wow_pattern()
/linux/drivers/net/wireless/mediatek/mt76/mt7925/
H A Dmcu.c243 tlv->data_len = pattern->pattern_len; in mt7925_mcu_set_wow_pattern()
248 memcpy(tlv->pattern, pattern->pattern, pattern->pattern_len); in mt7925_mcu_set_wow_pattern()
249 memcpy(tlv->mask, pattern->mask, DIV_ROUND_UP(pattern->pattern_len, 8)); in mt7925_mcu_set_wow_pattern()
/linux/drivers/net/wireless/realtek/rtw89/
H A Dwow.c914 len = pkt_pattern->pattern_len; in rtw89_wow_pattern_generate()

12