Lines Matching refs:tm
31 struct text_match *tm = EM_TEXT_PRIV(m);
34 from = tcf_get_base_ptr(skb, tm->from_layer) - skb->data;
35 from += tm->from_offset;
37 to = tcf_get_base_ptr(skb, tm->to_layer) - skb->data;
38 to += tm->to_offset;
40 return skb_find_text(skb, from, to, tm->config) != UINT_MAX;
46 struct text_match *tm;
80 tm = kmalloc(sizeof(*tm), GFP_KERNEL);
81 if (tm == NULL) {
86 tm->from_offset = conf->from_offset;
87 tm->to_offset = conf->to_offset;
88 tm->from_layer = conf->from_layer;
89 tm->to_layer = conf->to_layer;
90 tm->config = ts_conf;
92 m->datalen = sizeof(*tm);
93 m->data = (unsigned long) tm;
108 struct text_match *tm = EM_TEXT_PRIV(m);
111 strncpy(conf.algo, tm->config->ops->name, sizeof(conf.algo) - 1);
112 conf.from_offset = tm->from_offset;
113 conf.to_offset = tm->to_offset;
114 conf.from_layer = tm->from_layer;
115 conf.to_layer = tm->to_layer;
116 conf.pattern_len = textsearch_get_pattern_len(tm->config);
122 textsearch_get_pattern(tm->config)) < 0)