Lines Matching full:tm
31 struct text_match *tm = EM_TEXT_PRIV(m); in em_text_match() local
35 ptr = tcf_get_base_ptr(skb, tm->from_layer); in em_text_match()
39 from += tm->from_offset; in em_text_match()
41 ptr = tcf_get_base_ptr(skb, tm->to_layer); in em_text_match()
45 to += tm->to_offset; in em_text_match()
47 return skb_find_text(skb, from, to, tm->config) != UINT_MAX; in em_text_match()
53 struct text_match *tm; in em_text_change() local
87 tm = kmalloc_obj(*tm); in em_text_change()
88 if (tm == NULL) { in em_text_change()
93 tm->from_offset = conf->from_offset; in em_text_change()
94 tm->to_offset = conf->to_offset; in em_text_change()
95 tm->from_layer = conf->from_layer; in em_text_change()
96 tm->to_layer = conf->to_layer; in em_text_change()
97 tm->config = ts_conf; in em_text_change()
99 m->datalen = sizeof(*tm); in em_text_change()
100 m->data = (unsigned long) tm; in em_text_change()
115 struct text_match *tm = EM_TEXT_PRIV(m); in em_text_dump() local
118 strscpy(conf.algo, tm->config->ops->name); in em_text_dump()
119 conf.from_offset = tm->from_offset; in em_text_dump()
120 conf.to_offset = tm->to_offset; in em_text_dump()
121 conf.from_layer = tm->from_layer; in em_text_dump()
122 conf.to_layer = tm->to_layer; in em_text_dump()
123 conf.pattern_len = textsearch_get_pattern_len(tm->config); in em_text_dump()
129 textsearch_get_pattern(tm->config)) < 0) in em_text_dump()