Home
last modified time | relevance | path

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

/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/core/
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 …]
Dfilter.c644 struct sk_filter *fp = container_of(rcu, struct sk_filter, rcu); in sk_filter_release_rcu() local
646 bpf_jit_free(fp); in sk_filter_release_rcu()
647 kfree(fp); in sk_filter_release_rcu()
651 static int __sk_prepare_filter(struct sk_filter *fp) in __sk_prepare_filter() argument
655 fp->bpf_func = sk_run_filter; in __sk_prepare_filter()
657 err = sk_chk_filter(fp->insns, fp->len); in __sk_prepare_filter()
661 bpf_jit_compile(fp); in __sk_prepare_filter()
678 struct sk_filter *fp; in sk_unattached_filter_create() local
686 fp = kmalloc(fsize + sizeof(*fp), GFP_KERNEL); in sk_unattached_filter_create()
687 if (!fp) in sk_unattached_filter_create()
[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/sched/
Dcls_route.c293 struct route4_filter **fp, *f = (struct route4_filter *)arg; in route4_delete() local
304 for (fp = &b->ht[from_hash(h >> 16)]; *fp; fp = &(*fp)->next) { in route4_delete()
305 if (*fp == f) { in route4_delete()
307 *fp = f->next; in route4_delete()
345 struct route4_filter *fp; in route4_set_parms() local
400 for (fp = b->ht[h2]; fp; fp = fp->next) in route4_set_parms()
401 if (fp->handle == f->handle) in route4_set_parms()
438 struct route4_filter *f, *f1, **fp; in route4_change() local
491 for (fp = &f->bkt->ht[h]; (f1 = *fp) != NULL; fp = &f1->next) in route4_change()
497 *fp = f; in route4_change()
[all …]
Dcls_rsvp.h301 struct rsvp_filter **fp, *f = (struct rsvp_filter *)arg; in rsvp_delete() local
307 for (fp = &s->ht[(h >> 8) & 0xFF]; *fp; fp = &(*fp)->next) { in rsvp_delete()
308 if (*fp == f) { in rsvp_delete()
310 *fp = f->next; in rsvp_delete()
426 struct rsvp_filter *f, **fp; in rsvp_change() local
519 fp = &s->ht[h2]; in rsvp_change()
527 for (fp = &s->ht[h2]; *fp; fp = &(*fp)->next) in rsvp_change()
528 if (((*fp)->spi.mask & f->spi.mask) != f->spi.mask) in rsvp_change()
530 f->next = *fp; in rsvp_change()
532 *fp = f; in rsvp_change()
Dcls_fw.c170 struct fw_filter **fp; in fw_delete() local
175 for (fp = &head->ht[fw_hash(f->id)]; *fp; fp = &(*fp)->next) { in fw_delete()
176 if (*fp == f) { in fw_delete()
178 *fp = f->next; in fw_delete()
Dcls_tcindex.c312 struct tcindex_filter **fp; in tcindex_set_parms() local
317 for (fp = p->h+(handle % p->hash); *fp; fp = &(*fp)->next) in tcindex_set_parms()
319 *fp = f; in tcindex_set_parms()
/net/ipv4/
Dip_fragment.c302 struct sk_buff *fp; in ip_frag_reinit() local
310 fp = qp->q.fragments; in ip_frag_reinit()
312 struct sk_buff *xp = fp->next; in ip_frag_reinit()
314 sum_truesize += fp->truesize; in ip_frag_reinit()
315 kfree_skb(fp); in ip_frag_reinit()
316 fp = xp; in ip_frag_reinit()
317 } while (fp); in ip_frag_reinit()
522 struct sk_buff *fp, *head = qp->q.fragments; in ip_frag_reasm() local
539 fp = skb_clone(head, GFP_ATOMIC); in ip_frag_reasm()
540 if (!fp) in ip_frag_reasm()
[all …]
Dinet_fragment.c174 struct sk_buff *fp; in inet_frag_destroy() local
182 fp = q->fragments; in inet_frag_destroy()
184 while (fp) { in inet_frag_destroy()
185 struct sk_buff *xp = fp->next; in inet_frag_destroy()
187 sum_truesize += fp->truesize; in inet_frag_destroy()
188 frag_kfree_skb(nf, f, fp); in inet_frag_destroy()
189 fp = xp; in inet_frag_destroy()
Dinetpeer.c104 atomic_t *fp = inetpeer_seq_ptr(family); in flush_check() local
106 if (unlikely(base->flush_seq != atomic_read(fp))) { in flush_check()
108 base->flush_seq = atomic_read(fp); in flush_check()
114 atomic_t *fp = inetpeer_seq_ptr(family); in inetpeer_invalidate_family() local
116 atomic_inc(fp); in inetpeer_invalidate_family()
/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 void unix_notinflight(struct file *fp) in unix_notinflight() argument
144 struct sock *s = unix_get_socket(fp); in unix_notinflight()
167 if (UNIXCB(skb).fp) { in scan_inflight()
172 int nfd = UNIXCB(skb).fp->count; in scan_inflight()
173 struct file **fp = UNIXCB(skb).fp->fp; in scan_inflight() local
179 struct sock *sk = unix_get_socket(*fp++); in scan_inflight()
Daf_unix.c1449 scm->fp = UNIXCB(skb).fp; in unix_detach_fds()
1450 UNIXCB(skb).fp = NULL; in unix_detach_fds()
1452 for (i = scm->fp->count-1; i >= 0; i--) in unix_detach_fds()
1453 unix_notinflight(scm->fp->fp[i]); in unix_detach_fds()
1461 if (UNIXCB(skb).fp) in unix_destruct_scm()
1478 for (i = scm->fp->count - 1; i >= 0; i--) { in unix_attach_fds()
1479 struct sock *sk = unix_get_socket(scm->fp->fp[i]); in unix_attach_fds()
1495 UNIXCB(skb).fp = scm_fp_dup(scm->fp); in unix_attach_fds()
1496 if (!UNIXCB(skb).fp) in unix_attach_fds()
1500 for (i = scm->fp->count - 1; i >= 0; i--) in unix_attach_fds()
[all …]
/net/ipv6/netfilter/
Dnf_conntrack_reasm.c364 struct sk_buff *fp, *op, *head = fq->q.fragments; in nf_ct_frag6_reasm() local
431 for (fp=head->next; fp; fp = fp->next) { in nf_ct_frag6_reasm()
432 head->data_len += fp->len; in nf_ct_frag6_reasm()
433 head->len += fp->len; in nf_ct_frag6_reasm()
434 if (head->ip_summed != fp->ip_summed) in nf_ct_frag6_reasm()
437 head->csum = csum_add(head->csum, fp->csum); in nf_ct_frag6_reasm()
438 head->truesize += fp->truesize; in nf_ct_frag6_reasm()
460 fp = skb_shinfo(head)->frag_list; in nf_ct_frag6_reasm()
461 if (fp && NFCT_FRAG6_CB(fp)->orig == NULL) in nf_ct_frag6_reasm()
463 fp = fp->next; in nf_ct_frag6_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.c381 struct sk_buff *fp, *head = fq->q.fragments; in ip6_frag_reasm() local
396 fp = skb_clone(head, GFP_ATOMIC); in ip6_frag_reasm()
398 if (!fp) in ip6_frag_reasm()
401 fp->next = head->next; in ip6_frag_reasm()
402 if (!fp->next) in ip6_frag_reasm()
403 fq->q.fragments_tail = fp; in ip6_frag_reasm()
404 prev->next = fp; in ip6_frag_reasm()
463 for (fp = head->next; fp;) { in ip6_frag_reasm()
466 struct sk_buff *next = fp->next; in ip6_frag_reasm()
468 sum_truesize += fp->truesize; in ip6_frag_reasm()
[all …]
/net/bridge/netfilter/
Debt_vlan.c53 const struct vlan_hdr *fp; in ebt_vlan_mt() local
56 fp = skb_header_pointer(skb, 0, sizeof(_frame), &_frame); in ebt_vlan_mt()
57 if (fp == NULL) in ebt_vlan_mt()
60 TCI = ntohs(fp->h_vlan_TCI); in ebt_vlan_mt()
61 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.c280 int fdnum = scm->fp->count; in scm_detach_fds_compat()
281 struct file **fp = scm->fp->fp; in scm_detach_fds_compat() local
290 err = security_file_receive(fp[i]); in scm_detach_fds_compat()
304 fd_install(new_fd, get_file(fp[i])); in scm_detach_fds_compat()