Home
last modified time | relevance | path

Searched refs:fp (Results 1 – 23 of 23) sorted by relevance

/net/core/
Dfilter.c152 static bool convert_bpf_extensions(struct sock_filter *fp, in convert_bpf_extensions() argument
157 switch (fp->k) { in convert_bpf_extensions()
190 if (fp->k == SKF_AD_OFF + SKF_AD_IFINDEX) in convert_bpf_extensions()
227 if (fp->k == SKF_AD_OFF + SKF_AD_VLAN_TAG) { in convert_bpf_extensions()
250 switch (fp->k) { in convert_bpf_extensions()
316 struct sock_filter *fp; in bpf_convert_filter() local
334 fp = prog; in bpf_convert_filter()
340 for (i = 0; i < len; fp++, i++) { in bpf_convert_filter()
347 switch (fp->code) { in bpf_convert_filter()
380 if (BPF_CLASS(fp->code) == BPF_LD && in bpf_convert_filter()
[all …]
Dscm.c91 fpp = &fpl->fp[fpl->count]; in scm_fp_copy()
115 struct scm_fp_list *fpl = scm->fp; in __scm_destroy()
119 scm->fp = NULL; in __scm_destroy()
121 fput(fpl->fp[i]); in __scm_destroy()
155 err=scm_fp_copy(cmsg, &p->fp); in __scm_send()
197 if (p->fp && !p->fp->count) in __scm_send()
199 kfree(p->fp); in __scm_send()
200 p->fp = NULL; in __scm_send()
255 int fdnum = scm->fp->count; in scm_detach_fds()
256 struct file **fp = scm->fp->fp; in scm_detach_fds() local
[all …]
/net/irda/
Diriap.c449 __u8 *fp; in iriap_getvaluebyclass_confirm() local
457 fp = skb->data; in iriap_getvaluebyclass_confirm()
461 len = get_unaligned_be16(fp + n); in iriap_getvaluebyclass_confirm()
467 obj_id = get_unaligned_be16(fp + n); in iriap_getvaluebyclass_confirm()
470 type = fp[n++]; in iriap_getvaluebyclass_confirm()
475 memcpy(&tmp_cpu32, fp+n, 4); n += 4; in iriap_getvaluebyclass_confirm()
483 charset = fp[n++]; in iriap_getvaluebyclass_confirm()
510 value_len = fp[n++]; in iriap_getvaluebyclass_confirm()
515 fp[n + value_len] = 0x00; in iriap_getvaluebyclass_confirm()
516 IRDA_DEBUG(4, "Got string %s\n", fp+n); in iriap_getvaluebyclass_confirm()
[all …]
Dirlmp_frame.c96 __u8 *fp; in irlmp_link_data_indication() local
104 fp = skb->data; in irlmp_link_data_indication()
110 slsap_sel = fp[0] & LSAP_MASK; in irlmp_link_data_indication()
111 dlsap_sel = fp[1]; in irlmp_link_data_indication()
117 if ((fp[0] & CONTROL_BIT) && (fp[2] == CONNECT_CMD)) { in irlmp_link_data_indication()
140 if (fp[0] & CONTROL_BIT) { in irlmp_link_data_indication()
142 __func__, fp[2]); in irlmp_link_data_indication()
152 if (fp[0] & CONTROL_BIT) { in irlmp_link_data_indication()
153 switch (fp[2]) { in irlmp_link_data_indication()
175 __func__, fp[2]); in irlmp_link_data_indication()
[all …]
/net/decnet/
Ddn_table.c71 #define DN_FIB_SCAN(f, fp) \ argument
72 for( ; ((f) = *(fp)) != NULL; (fp) = &(f)->fn_next)
74 #define DN_FIB_SCAN_KEY(f, fp, key) \ argument
75 for( ; ((f) = *(fp)) != NULL && dn_key_eq((f)->fn_key, (key)); (fp) = &(f)->fn_next)
125 struct dn_fib_node *f, **fp, *next; in dn_rebuild_zone() local
131 for(fp = dn_chain_p(f->fn_key, dz); in dn_rebuild_zone()
132 *fp && dn_key_leq((*fp)->fn_key, f->fn_key); in dn_rebuild_zone()
133 fp = &(*fp)->fn_next) in dn_rebuild_zone()
135 f->fn_next = *fp; in dn_rebuild_zone()
136 *fp = f; in dn_rebuild_zone()
[all …]
/net/unix/
Dgarbage.c125 void unix_inflight(struct file *fp) in unix_inflight() argument
127 struct sock *s = unix_get_socket(fp); in unix_inflight()
142 fp->f_cred->user->unix_inflight++; in unix_inflight()
146 void unix_notinflight(struct file *fp) in unix_notinflight() argument
148 struct sock *s = unix_get_socket(fp); in unix_notinflight()
161 fp->f_cred->user->unix_inflight--; in unix_notinflight()
176 if (UNIXCB(skb).fp) { in scan_inflight()
181 int nfd = UNIXCB(skb).fp->count; in scan_inflight()
182 struct file **fp = UNIXCB(skb).fp->fp; in scan_inflight() local
188 struct sock *sk = unix_get_socket(*fp++); in scan_inflight()
Daf_unix.c1468 scm->fp = UNIXCB(skb).fp; in unix_detach_fds()
1469 UNIXCB(skb).fp = NULL; in unix_detach_fds()
1471 for (i = scm->fp->count-1; i >= 0; i--) in unix_detach_fds()
1472 unix_notinflight(scm->fp->fp[i]); in unix_detach_fds()
1480 if (UNIXCB(skb).fp) in unix_destruct_scm()
1515 for (i = scm->fp->count - 1; i >= 0; i--) { in unix_attach_fds()
1516 struct sock *sk = unix_get_socket(scm->fp->fp[i]); in unix_attach_fds()
1532 UNIXCB(skb).fp = scm_fp_dup(scm->fp); in unix_attach_fds()
1533 if (!UNIXCB(skb).fp) in unix_attach_fds()
1536 for (i = scm->fp->count - 1; i >= 0; i--) in unix_attach_fds()
[all …]
/net/sched/
Dcls_route.c314 struct route4_filter __rcu **fp; in route4_delete() local
326 fp = &b->ht[from_hash(h >> 16)]; in route4_delete()
327 for (nf = rtnl_dereference(*fp); nf; in route4_delete()
328 fp = &nf->next, nf = rtnl_dereference(*fp)) { in route4_delete()
331 RCU_INIT_POINTER(*fp, rtnl_dereference(f->next)); in route4_delete()
377 struct route4_filter *fp; in route4_set_parms() local
431 for (fp = rtnl_dereference(b->ht[h2]); in route4_set_parms()
432 fp; in route4_set_parms()
433 fp = rtnl_dereference(fp->next)) in route4_set_parms()
434 if (fp->handle == f->handle) in route4_set_parms()
[all …]
Dcls_tcindex.c66 struct tcindex_filter __rcu **fp; in tcindex_lookup() local
69 fp = &p->h[key % p->hash]; in tcindex_lookup()
70 for (f = rcu_dereference_bh_rtnl(*fp); in tcindex_lookup()
72 fp = &f->next, f = rcu_dereference_bh_rtnl(*fp)) in tcindex_lookup()
385 struct tcindex_filter __rcu **fp; in tcindex_set_parms() local
389 fp = cp->h + (handle % cp->hash); in tcindex_set_parms()
390 for (nfp = rtnl_dereference(*fp); in tcindex_set_parms()
392 fp = &nfp->next, nfp = rtnl_dereference(*fp)) in tcindex_set_parms()
395 rcu_assign_pointer(*fp, f); in tcindex_set_parms()
523 struct tcindex_filter __rcu **fp; in tcindex_dump() local
[all …]
Dcls_fw.c156 struct fw_filter __rcu **fp; in fw_delete() local
162 fp = &head->ht[fw_hash(f->id)]; in fw_delete()
164 for (pfp = rtnl_dereference(*fp); pfp; in fw_delete()
165 fp = &pfp->next, pfp = rtnl_dereference(*fp)) { in fw_delete()
167 RCU_INIT_POINTER(*fp, rtnl_dereference(f->next)); in fw_delete()
251 struct fw_filter __rcu **fp; in fw_change() local
275 fp = &head->ht[fw_hash(fnew->id)]; in fw_change()
276 for (pfp = rtnl_dereference(*fp); pfp; in fw_change()
277 fp = &pfp->next, pfp = rtnl_dereference(*fp)) in fw_change()
282 rcu_assign_pointer(*fp, fnew); in fw_change()
Dcls_rsvp.h332 struct rsvp_filter __rcu **fp; in rsvp_delete() local
338 fp = &s->ht[(h >> 8) & 0xFF]; in rsvp_delete()
339 for (nfp = rtnl_dereference(*fp); nfp; in rsvp_delete()
340 fp = &nfp->next, nfp = rtnl_dereference(*fp)) { in rsvp_delete()
342 RCU_INIT_POINTER(*fp, f->next); in rsvp_delete()
458 struct rsvp_filter __rcu **fp; in rsvp_change() local
567 fp = &s->ht[h2]; in rsvp_change()
575 fp = &s->ht[h2]; in rsvp_change()
576 for (nfp = rtnl_dereference(*fp); nfp; in rsvp_change()
577 fp = &nfp->next, nfp = rtnl_dereference(*fp)) { in rsvp_change()
[all …]
Dcls_bpf.c173 struct bpf_prog *fp; in cls_bpf_modify_existing() local
205 ret = bpf_prog_create(&fp, &tmp); in cls_bpf_modify_existing()
211 prog->filter = fp; in cls_bpf_modify_existing()
/net/ipv4/
Dip_fragment.c288 struct sk_buff *fp; in ip_frag_reinit() local
296 fp = qp->q.fragments; in ip_frag_reinit()
298 struct sk_buff *xp = fp->next; in ip_frag_reinit()
300 sum_truesize += fp->truesize; in ip_frag_reinit()
301 kfree_skb(fp); in ip_frag_reinit()
302 fp = xp; in ip_frag_reinit()
303 } while (fp); in ip_frag_reinit()
507 struct sk_buff *fp, *head = qp->q.fragments; in ip_frag_reasm() local
524 fp = skb_clone(head, GFP_ATOMIC); in ip_frag_reasm()
525 if (!fp) in ip_frag_reasm()
[all …]
Dinet_fragment.c315 struct sk_buff *fp; in inet_frag_destroy() local
323 fp = q->fragments; in inet_frag_destroy()
325 while (fp) { in inet_frag_destroy()
326 struct sk_buff *xp = fp->next; in inet_frag_destroy()
328 sum_truesize += fp->truesize; in inet_frag_destroy()
329 frag_kfree_skb(nf, f, fp); in inet_frag_destroy()
330 fp = xp; in inet_frag_destroy()
/net/ipv6/netfilter/
Dnf_conntrack_reasm.c382 struct sk_buff *fp, *op, *head = fq->q.fragments; in nf_ct_frag6_reasm() local
449 for (fp=head->next; fp; fp = fp->next) { in nf_ct_frag6_reasm()
450 head->data_len += fp->len; in nf_ct_frag6_reasm()
451 head->len += fp->len; in nf_ct_frag6_reasm()
452 if (head->ip_summed != fp->ip_summed) in nf_ct_frag6_reasm()
455 head->csum = csum_add(head->csum, fp->csum); in nf_ct_frag6_reasm()
456 head->truesize += fp->truesize; in nf_ct_frag6_reasm()
478 fp = skb_shinfo(head)->frag_list; in nf_ct_frag6_reasm()
479 if (fp && NFCT_FRAG6_CB(fp)->orig == NULL) in nf_ct_frag6_reasm()
481 fp = fp->next; in nf_ct_frag6_reasm()
[all …]
/net/ieee802154/
Dreassembly.c240 struct sk_buff *fp, *head = fq->q.fragments; in lowpan_frag_reasm() local
248 fp = skb_clone(head, GFP_ATOMIC); in lowpan_frag_reasm()
250 if (!fp) in lowpan_frag_reasm()
253 fp->next = head->next; in lowpan_frag_reasm()
254 if (!fp->next) in lowpan_frag_reasm()
255 fq->q.fragments_tail = fp; in lowpan_frag_reasm()
256 prev->next = fp; in lowpan_frag_reasm()
296 for (fp = head->next; fp;) { in lowpan_frag_reasm()
299 struct sk_buff *next = fp->next; in lowpan_frag_reasm()
301 sum_truesize += fp->truesize; in lowpan_frag_reasm()
[all …]
/net/ipv6/
Dexthdrs_core.c88 __be16 _frag_off, *fp; in ipv6_skip_exthdr() local
89 fp = skb_header_pointer(skb, in ipv6_skip_exthdr()
94 if (fp == NULL) in ipv6_skip_exthdr()
97 *frag_offp = *fp; in ipv6_skip_exthdr()
239 __be16 *fp; in ipv6_find_hdr() local
243 fp = skb_header_pointer(skb, in ipv6_find_hdr()
248 if (fp == NULL) in ipv6_find_hdr()
251 _frag_off = ntohs(*fp) & ~0x7; in ipv6_find_hdr()
Dreassembly.c383 struct sk_buff *fp, *head = fq->q.fragments; in ip6_frag_reasm() local
398 fp = skb_clone(head, GFP_ATOMIC); in ip6_frag_reasm()
400 if (!fp) in ip6_frag_reasm()
403 fp->next = head->next; in ip6_frag_reasm()
404 if (!fp->next) in ip6_frag_reasm()
405 fq->q.fragments_tail = fp; in ip6_frag_reasm()
406 prev->next = fp; in ip6_frag_reasm()
465 for (fp = head->next; fp;) { in ip6_frag_reasm()
468 struct sk_buff *next = fp->next; in ip6_frag_reasm()
470 sum_truesize += fp->truesize; in ip6_frag_reasm()
[all …]
/net/bridge/netfilter/
Debt_vlan.c52 const struct vlan_hdr *fp; in ebt_vlan_mt() local
55 fp = skb_header_pointer(skb, 0, sizeof(_frame), &_frame); in ebt_vlan_mt()
56 if (fp == NULL) in ebt_vlan_mt()
59 TCI = ntohs(fp->h_vlan_TCI); in ebt_vlan_mt()
60 encap = fp->h_vlan_encapsulated_proto; in ebt_vlan_mt()
/net/802/
Dhippi.c62 hip->fp.fixed = htonl(0x04800018); in hippi_header()
63 hip->fp.d2_size = htonl(len + 8); in hippi_header()
/net/
Dcompat.c292 int fdnum = scm->fp->count; in scm_detach_fds_compat()
293 struct file **fp = scm->fp->fp; in scm_detach_fds_compat() local
302 err = security_file_receive(fp[i]); in scm_detach_fds_compat()
316 fd_install(new_fd, get_file(fp[i])); in scm_detach_fds_compat()
/net/openvswitch/
Dflow_netlink.c271 static bool is_all_zero(const u8 *fp, size_t size) in is_all_zero() argument
275 if (!fp) in is_all_zero()
279 if (fp[i]) in is_all_zero()
/net/bluetooth/
D6lowpan.c1218 static ssize_t lowpan_control_write(struct file *fp, in lowpan_control_write() argument