Searched refs:kmp (Results 1 – 3 of 3) sorted by relevance
/Linux-v5.4/lib/ |
D | ts_kmp.c | 44 struct ts_kmp *kmp = ts_config_priv(conf); in kmp_find() local 56 while (q > 0 && kmp->pattern[q] in kmp_find() 58 q = kmp->prefix_tbl[q - 1]; in kmp_find() 59 if (kmp->pattern[q] in kmp_find() 62 if (unlikely(q == kmp->pattern_len)) { in kmp_find() 64 return state->offset - kmp->pattern_len; in kmp_find() 95 struct ts_kmp *kmp; in kmp_init() local 98 size_t priv_size = sizeof(*kmp) + len + prefix_tbl_len; in kmp_init() 105 kmp = ts_config_priv(conf); in kmp_init() 106 kmp->pattern_len = len; in kmp_init() [all …]
|
/Linux-v5.4/net/netfilter/ |
D | nf_conntrack_proto_gre.c | 108 struct nf_ct_gre_keymap **kmp, *km; in nf_ct_gre_keymap_add() local 110 kmp = &ct_pptp_info->keymap[dir]; in nf_ct_gre_keymap_add() 111 if (*kmp) { in nf_ct_gre_keymap_add() 114 if (gre_key_cmpfn(km, t) && km == *kmp) in nf_ct_gre_keymap_add() 126 *kmp = km; in nf_ct_gre_keymap_add()
|
/Linux-v5.4/net/xfrm/ |
D | xfrm_user.c | 2363 struct xfrm_kmaddress km, *kmp; in xfrm_do_migrate() local 2373 kmp = attrs[XFRMA_KMADDRESS] ? &km : NULL; in xfrm_do_migrate() 2379 err = copy_from_user_migrate((struct xfrm_migrate *)m, kmp, attrs, &n); in xfrm_do_migrate() 2393 err = xfrm_migrate(&pi->sel, pi->dir, type, m, n, kmp, net, encap); in xfrm_do_migrate()
|