Home
last modified time | relevance | path

Searched refs:kmp (Results 1 – 3 of 3) sorted by relevance

/linux-2.6.39/lib/
Dts_kmp.c48 struct ts_kmp *kmp = ts_config_priv(conf); in kmp_find() local
60 while (q > 0 && kmp->pattern[q] in kmp_find()
62 q = kmp->prefix_tbl[q - 1]; in kmp_find()
63 if (kmp->pattern[q] in kmp_find()
66 if (unlikely(q == kmp->pattern_len)) { in kmp_find()
68 return state->offset - kmp->pattern_len; in kmp_find()
99 struct ts_kmp *kmp; in kmp_init() local
102 size_t priv_size = sizeof(*kmp) + len + prefix_tbl_len; in kmp_init()
109 kmp = ts_config_priv(conf); in kmp_init()
110 kmp->pattern_len = len; in kmp_init()
[all …]
/linux-2.6.39/net/netfilter/
Dnf_conntrack_proto_gre.c106 struct nf_ct_gre_keymap **kmp, *km; in nf_ct_gre_keymap_add() local
108 kmp = &help->help.ct_pptp_info.keymap[dir]; in nf_ct_gre_keymap_add()
109 if (*kmp) { in nf_ct_gre_keymap_add()
113 if (gre_key_cmpfn(km, t) && km == *kmp) { in nf_ct_gre_keymap_add()
128 *kmp = km; in nf_ct_gre_keymap_add()
/linux-2.6.39/net/xfrm/
Dxfrm_user.c2060 struct xfrm_kmaddress km, *kmp; in xfrm_do_migrate() local
2068 kmp = attrs[XFRMA_KMADDRESS] ? &km : NULL; in xfrm_do_migrate()
2074 err = copy_from_user_migrate((struct xfrm_migrate *)m, kmp, attrs, &n); in xfrm_do_migrate()
2081 xfrm_migrate(&pi->sel, pi->dir, type, m, n, kmp); in xfrm_do_migrate()