Home
last modified time | relevance | path

Searched refs:fn (Results 1 – 25 of 48) sorted by relevance

12

/net/ipv6/
Dip6_fib.c65 static void fib6_prune_clones(struct net *net, struct fib6_node *fn);
66 static struct rt6_info *fib6_find_prefix(struct net *net, struct fib6_node *fn);
67 static struct fib6_node *fib6_repair_tree(struct net *net, struct fib6_node *fn);
145 struct fib6_node *fn; in node_alloc() local
147 fn = kmem_cache_zalloc(fib6_node_kmem, GFP_ATOMIC); in node_alloc()
149 return fn; in node_alloc()
152 static void node_free(struct fib6_node *fn) in node_free() argument
154 kmem_cache_free(fib6_node_kmem, fn); in node_free()
432 struct fib6_node *fn, *in, *ln; in fib6_add_1() local
442 fn = root; in fib6_add_1()
[all …]
Dip6_icmp.c13 int inet6_register_icmp_sender(ip6_icmp_send_t *fn) in inet6_register_icmp_sender() argument
15 return (cmpxchg((ip6_icmp_send_t **)&ip6_icmp_send, NULL, fn) == NULL) ? in inet6_register_icmp_sender()
20 int inet6_unregister_icmp_sender(ip6_icmp_send_t *fn) in inet6_unregister_icmp_sender() argument
24 ret = (cmpxchg((ip6_icmp_send_t **)&ip6_icmp_send, fn, NULL) == fn) ? in inet6_unregister_icmp_sender()
Droute.c651 static struct rt6_info *find_rr_leaf(struct fib6_node *fn, in find_rr_leaf() argument
663 for (rt = fn->leaf; rt && rt != rr_head && rt->rt6i_metric == metric; in find_rr_leaf()
670 static struct rt6_info *rt6_select(struct fib6_node *fn, int oif, int strict) in rt6_select() argument
676 rt0 = fn->rr_ptr; in rt6_select()
678 fn->rr_ptr = rt0 = fn->leaf; in rt6_select()
680 match = find_rr_leaf(fn, rt0, rt0->rt6i_metric, oif, strict, in rt6_select()
688 next = fn->leaf; in rt6_select()
691 fn->rr_ptr = next; in rt6_select()
776 if (fn->fn_flags & RTN_TL_ROOT) \
778 pn = fn->parent; \
[all …]
/net/dccp/
Dfeat.c637 struct list_head *fn = dreq ? &dreq->dreq_featneg : &dp->dccps_featneg; in dccp_feat_insert_opts() local
643 list_for_each_entry_safe_reverse(pos, next, fn, node) { in dccp_feat_insert_opts()
700 static int __feat_register_nn(struct list_head *fn, u8 feat, in __feat_register_nn() argument
713 return dccp_feat_push_change(fn, feat, 1, mandatory, &fval); in __feat_register_nn()
725 static int __feat_register_sp(struct list_head *fn, u8 feat, u8 is_local, in __feat_register_sp() argument
741 return dccp_feat_push_change(fn, feat, is_local, mandatory, &fval); in __feat_register_sp()
803 struct list_head *fn = &dccp_sk(sk)->dccps_featneg; in dccp_feat_signal_nn_change() local
817 entry = dccp_feat_list_lookup(fn, feat, 1); in dccp_feat_signal_nn_change()
826 return dccp_feat_push_change(fn, feat, 1, 0, &fval); in dccp_feat_signal_nn_change()
942 static int dccp_feat_propagate_ccid(struct list_head *fn, u8 id, bool is_local) in dccp_feat_propagate_ccid() argument
[all …]
Ddccp.h477 int dccp_feat_activate_values(struct sock *sk, struct list_head *fn);
/net/ieee802154/
Dwpan-class.c118 int (*fn)(struct wpan_phy *phy, void *data); member
127 return wpid->fn(phy, wpid->data); in wpan_phy_iter()
130 int wpan_phy_for_each(int (*fn)(struct wpan_phy *phy, void *data), in wpan_phy_for_each()
134 .fn = fn, in wpan_phy_for_each()
/net/core/
Dsock_diag.c87 void sock_diag_register_inet_compat(int (*fn)(struct sk_buff *skb, struct nlmsghdr *nlh)) in sock_diag_register_inet_compat()
90 inet_rcv_compat = fn; in sock_diag_register_inet_compat()
95 void sock_diag_unregister_inet_compat(int (*fn)(struct sk_buff *skb, struct nlmsghdr *nlh)) in sock_diag_unregister_inet_compat()
/net/rxrpc/
Dar-internal.h757 static inline void __rxrpc_new_skb(struct sk_buff *skb, const char *fn) in __rxrpc_new_skb() argument
765 static inline void __rxrpc_kill_skb(struct sk_buff *skb, const char *fn) in __rxrpc_kill_skb() argument
773 static inline void __rxrpc_free_skb(struct sk_buff *skb, const char *fn) in __rxrpc_free_skb() argument
/net/sched/
Dcls_tcindex.c451 if (walker->fn(tp, in tcindex_walk()
467 if (walker->fn(tp, (unsigned long) &f->result, in tcindex_walk()
486 walker.fn = tcindex_destroy_element; in tcindex_destroy()
Dcls_cgroup.c176 if (arg->fn(tp, (unsigned long) head, arg) < 0) { in cls_cgroup_walk()
Dsch_mq.c218 if (arg->fn(sch, ntx + 1, arg) < 0) { in mq_walk()
Dcls_basic.c246 if (arg->fn(tp, (unsigned long) f, arg) < 0) { in basic_walk()
Dcls_bpf.c350 if (arg->fn(tp, (unsigned long) prog, arg) < 0) { in cls_bpf_walk()
Dsch_multiq.c379 if (arg->fn(sch, band + 1, arg) < 0) { in multiq_walk()
Dsch_prio.c342 if (arg->fn(sch, prio + 1, arg) < 0) { in prio_walk()
Dsch_red.c340 if (walker->fn(sch, 1, walker) < 0) { in red_walk()
Dcls_u32.c881 if (arg->fn(tp, (unsigned long)ht, arg) < 0) { in u32_walk()
895 if (arg->fn(tp, (unsigned long)n, arg) < 0) { in u32_walk()
Dcls_fw.c349 if (arg->fn(tp, (unsigned long)f, arg) < 0) { in fw_walk()
Dsch_mqprio.c386 if (arg->fn(sch, ntx + 1, arg) < 0) { in mqprio_walk()
Dsch_dsmark.c173 if (walker->fn(sch, i + 1, walker) < 0) { in dsmark_walk()
Dsch_tbf.c531 if (walker->fn(sch, 1, walker) < 0) { in tbf_walk()
/net/sctp/
Dsm_statetable.c61 .fn = sctp_sf_bug,
102 #define TYPE_SCTP_FUNC(func) {.fn = func, .name = #func}
/net/netfilter/
Dnft_hash.c142 iter->err = iter->fn(ctx, set, iter, &elem); in nft_hash_walk()
Dnft_rbtree.c205 iter->err = iter->fn(ctx, set, iter, &elem); in nft_rbtree_walk()
/net/dcb/
Ddcbnl.c1676 const struct reply_func *fn; in dcb_doit() local
1690 fn = &reply_funcs[dcb->cmd]; in dcb_doit()
1691 if (!fn->cb) in dcb_doit()
1704 reply_skb = dcbnl_newmsg(fn->type, dcb->cmd, portid, nlh->nlmsg_seq, in dcb_doit()
1709 ret = fn->cb(netdev, nlh, nlh->nlmsg_seq, tb, reply_skb); in dcb_doit()

12