Lines Matching refs:ops
47 void dst_init(struct dst_entry *dst, struct dst_ops *ops, in dst_init() argument
54 dst->ops = ops; in dst_init()
75 dst_entries_add(ops, 1); in dst_init()
79 void *dst_alloc(struct dst_ops *ops, struct net_device *dev, in dst_alloc() argument
84 if (ops->gc && dst_entries_get_fast(ops) > ops->gc_thresh) { in dst_alloc()
85 if (ops->gc(ops)) { in dst_alloc()
93 dst = kmem_cache_alloc(ops->kmem_cachep, GFP_ATOMIC); in dst_alloc()
97 dst_init(dst, ops, dev, initial_ref, initial_obsolete, flags); in dst_alloc()
117 dst_entries_add(dst->ops, -1); in dst_destroy()
119 if (dst->ops->destroy) in dst_destroy()
120 dst->ops->destroy(dst); in dst_destroy()
129 kmem_cache_free(dst->ops->kmem_cachep, dst); in dst_destroy()
159 if (dst->ops->ifdown) in dst_dev_put()
160 dst->ops->ifdown(dst, dev, true); in dst_dev_put()