Lines Matching refs:ops
126 int tcf_em_register(struct tcf_ematch_ops *ops) in tcf_em_register() argument
131 if (ops->match == NULL) in tcf_em_register()
136 if (ops->kind == e->kind) in tcf_em_register()
139 list_add_tail(&ops->link, &ematch_ops); in tcf_em_register()
158 void tcf_em_unregister(struct tcf_ematch_ops *ops) in tcf_em_unregister() argument
161 list_del(&ops->link); in tcf_em_unregister()
215 em->ops = tcf_em_lookup(em_hdr->kind); in tcf_em_validate()
217 if (em->ops == NULL) { in tcf_em_validate()
223 em->ops = tcf_em_lookup(em_hdr->kind); in tcf_em_validate()
224 if (em->ops) { in tcf_em_validate()
229 module_put(em->ops->owner); in tcf_em_validate()
239 if (em->ops->datalen && data_len < em->ops->datalen) in tcf_em_validate()
242 if (em->ops->change) { in tcf_em_validate()
243 err = em->ops->change(tp, data, data_len, em); in tcf_em_validate()
406 if (em->ops) { in tcf_em_tree_destroy()
407 if (em->ops->destroy) in tcf_em_tree_destroy()
408 em->ops->destroy(tp, em); in tcf_em_tree_destroy()
411 module_put(em->ops->owner); in tcf_em_tree_destroy()
456 .kind = em->ops ? em->ops->kind : TCF_EM_CONTAINER, in tcf_em_tree_dump()
464 if (em->ops && em->ops->dump) { in tcf_em_tree_dump()
465 if (em->ops->dump(skb, em) < 0) in tcf_em_tree_dump()
490 int r = em->ops->match(skb, em, info); in tcf_em_match()