Home
last modified time | relevance | path

Searched refs:match_len (Results 1 – 16 of 16) sorted by relevance

/linux/net/netfilter/
H A Dnf_nat_helper.c28 unsigned int match_len, in mangle_contents() argument
39 data + match_offset + match_len, in mangle_contents()
41 match_offset + match_len)); in mangle_contents()
47 if (rep_len > match_len) { in mangle_contents()
49 "%u from %u bytes\n", rep_len - match_len, skb->len); in mangle_contents()
50 skb_put(skb, rep_len - match_len); in mangle_contents()
53 "%u from %u bytes\n", match_len - rep_len, skb->len); in mangle_contents()
54 __skb_trim(skb, skb->len + rep_len - match_len); in mangle_contents()
91 unsigned int match_len, in __nf_nat_mangle_tcp_packet() argument
101 if (rep_len > match_len && in __nf_nat_mangle_tcp_packet()
[all …]
H A Dnf_conntrack_sip.c424 *matchlen = hdr->match_len(ct, dptr, limit, &shift); in ct_sip_get_header()
456 *matchlen = hdr->match_len(ct, dptr, limit, &shift); in ct_sip_next_header()
771 *matchlen = hdr->match_len(ct, dptr, limit, &shift); in ct_sip_get_sdp_header()
/linux/include/net/netfilter/
H A Dnf_nat_helper.h14 unsigned int match_len, const char *rep_buffer,
22 unsigned int match_len, in nf_nat_mangle_tcp_packet() argument
27 match_offset, match_len, in nf_nat_mangle_tcp_packet()
34 unsigned int match_len, const char *rep_buffer,
/linux/fs/ntfs3/lib/
H A Dlzx_decompress.c482 u32 match_len; in lzx_decompress_block() local
498 match_len = mainsym % LZX_NUM_LEN_HEADERS; in lzx_decompress_block()
502 if (match_len == LZX_NUM_PRIMARY_LENS) in lzx_decompress_block()
503 match_len += read_lensym(d, is); in lzx_decompress_block()
504 match_len += LZX_MIN_MATCH_LEN; in lzx_decompress_block()
553 if (match_len > (size_t)(block_end - out_next)) in lzx_decompress_block()
559 out_next = lz_copy(out_next, match_len, match_offset, in lzx_decompress_block()
/linux/drivers/nvme/common/
H A Dkeyring.c55 size_t match_len; in nvme_tls_psk_match() local
66 match_len = strlen(match_id); in nvme_tls_psk_match()
68 __func__, match_id, key->description, match_len); in nvme_tls_psk_match()
69 return !memcmp(key->description, match_id, match_len); in nvme_tls_psk_match()
/linux/tools/perf/arch/x86/util/
H A Dheader.c121 size_t match_len = (pmatch[0].rm_eo - pmatch[0].rm_so); in strcmp_cpuid_str()
133 if (match_len == cpuid_len) in strcmp_cpuid_str()
122 size_t match_len = (pmatch[0].rm_eo - pmatch[0].rm_so); strcmp_cpuid_str() local
/linux/net/wireless/
H A Dmlme.c572 int match_len; member
638 int match_len, bool multicast_rx, in cfg80211_mlme_register_mgmt() argument
677 !(match_data && match_len >= 2)) { in cfg80211_mlme_register_mgmt()
683 nreg = kzalloc(sizeof(*reg) + match_len, GFP_KERNEL); in cfg80211_mlme_register_mgmt()
690 int mlen = min(match_len, reg->match_len); in cfg80211_mlme_register_mgmt()
713 memcpy(nreg->match, match_data, match_len); in cfg80211_mlme_register_mgmt()
714 nreg->match_len = match_len; in cfg80211_mlme_register_mgmt()
967 if (reg->match_len > data_len) in cfg80211_rx_mgmt_ext()
970 if (memcmp(reg->match, data, reg->match_len)) in cfg80211_rx_mgmt_ext()
H A Dscan.c276 unsigned int match_len; in cfg80211_gen_new_ie() local
297 match_len = 1; in cfg80211_gen_new_ie()
300 match_len = 0; in cfg80211_gen_new_ie()
305 &ext_id, match_len, 0); in cfg80211_gen_new_ie()
321 &ext_id, match_len, 0)) in cfg80211_gen_new_ie()
337 &ext_id, match_len, 0); in cfg80211_gen_new_ie()
358 match_len = 1; in cfg80211_gen_new_ie()
364 match_len = 0; in cfg80211_gen_new_ie()
369 &ext_id, match_len, 0)) in cfg80211_gen_new_ie()
1360 const u8 *match, unsigned int match_len, in cfg80211_find_elem_match() argument
[all …]
H A Dcore.h387 int match_len, bool multicast_rx,
/linux/include/linux/netfilter/
H A Dnf_conntrack_sip.h68 int (*match_len)(const struct nf_conn *ct, member
81 .match_len = (__match), \
/linux/drivers/media/cec/core/
H A Dcec-adap.c678 data->match_len, data->match_reply); in cec_transmit_done_ts()
939 data->match_len = 5; in cec_transmit_msg_fh()
942 data->match_len = 1; in cec_transmit_msg_fh()
1240 (!abort && memcmp(data->match_reply, msg->msg + 1, data->match_len))) in cec_received_msg_ts()
2343 data->match_len, data->match_reply, in cec_adap_status()
2349 data->match_len, data->match_reply, in cec_adap_status()
2355 data->match_len, data->match_reply, in cec_adap_status()
/linux/security/apparmor/
H A Dapparmorfs.c613 const char *match_str, size_t match_len) in profile_query_cb() argument
625 match_str + 1, match_len - 1); in profile_query_cb()
636 match_str, match_len); in profile_query_cb()
762 size_t label_name_len, match_len; in query_label() local
781 match_len = query_len - label_name_len - 1; in query_label()
792 profile_query_cb(profile, &perms, match_str, match_len); in query_label()
796 profile_query_cb(profile, &perms, match_str, match_len); in query_label()
/linux/include/media/
H A Dcec.h69 u8 match_len; member
/linux/include/net/
H A Dcfg80211.h6859 const u8 *match, unsigned int match_len,
6888 const u8 *match, unsigned int match_len, in cfg80211_find_ie_match() argument
6894 if (WARN_ON((match_len && match_offset < 2) || in cfg80211_find_ie_match()
6895 (!match_len && match_offset))) in cfg80211_find_ie_match()
6899 match, match_len, in cfg80211_find_ie_match()
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_tc.c192 int match_len = mlx5e_tc_attr_to_reg_mappings[type].mlen; in mlx5e_tc_match_to_reg_match() local
193 u32 max_mask = GENMASK(match_len - 1, 0); in mlx5e_tc_match_to_reg_match()
239 int match_len = mlx5e_tc_attr_to_reg_mappings[type].mlen; in mlx5e_tc_match_to_reg_get_match() local
240 u32 max_mask = GENMASK(match_len - 1, 0); in mlx5e_tc_match_to_reg_get_match()
/linux/tools/perf/util/
H A Dheader.c866 size_t match_len = (pmatch[0].rm_eo - pmatch[0].rm_so); in write_cpuid()
869 if (match_len == strlen(cpuid)) in write_cpuid()
846 size_t match_len = (pmatch[0].rm_eo - pmatch[0].rm_so); strcmp_cpuid_str() local