Home
last modified time | relevance | path

Searched refs:po (Results 1 – 5 of 5) sorted by relevance

/net/packet/
Daf_packet.c191 static int tpacket_snd(struct packet_sock *po, struct msghdr *msg);
195 static void *packet_previous_frame(struct packet_sock *po,
247 static void __fanout_unlink(struct sock *sk, struct packet_sock *po);
248 static void __fanout_link(struct sock *sk, struct packet_sock *po);
286 static struct net_device *packet_cached_dev_get(struct packet_sock *po) in packet_cached_dev_get() argument
291 dev = rcu_dereference(po->cached_dev); in packet_cached_dev_get()
299 static void packet_cached_dev_assign(struct packet_sock *po, in packet_cached_dev_assign() argument
302 rcu_assign_pointer(po->cached_dev, dev); in packet_cached_dev_assign()
305 static void packet_cached_dev_reset(struct packet_sock *po) in packet_cached_dev_reset() argument
307 RCU_INIT_POINTER(po->cached_dev, NULL); in packet_cached_dev_reset()
[all …]
Ddiag.c12 static int pdiag_put_info(const struct packet_sock *po, struct sk_buff *nlskb) in pdiag_put_info() argument
16 pinfo.pdi_index = po->ifindex; in pdiag_put_info()
17 pinfo.pdi_version = po->tp_version; in pdiag_put_info()
18 pinfo.pdi_reserve = po->tp_reserve; in pdiag_put_info()
19 pinfo.pdi_copy_thresh = po->copy_thresh; in pdiag_put_info()
20 pinfo.pdi_tstamp = po->tp_tstamp; in pdiag_put_info()
23 if (po->running) in pdiag_put_info()
25 if (po->auxdata) in pdiag_put_info()
27 if (po->origdev) in pdiag_put_info()
29 if (po->has_vnet_hdr) in pdiag_put_info()
[all …]
/net/ceph/
Dpagevec.c98 int po = off & ~PAGE_MASK; in ceph_copy_user_to_page_vector() local
103 l = min_t(int, PAGE_SIZE-po, left); in ceph_copy_user_to_page_vector()
104 bad = copy_from_user(page_address(pages[i]) + po, data, l); in ceph_copy_user_to_page_vector()
109 po += l - bad; in ceph_copy_user_to_page_vector()
110 if (po == PAGE_SIZE) { in ceph_copy_user_to_page_vector()
111 po = 0; in ceph_copy_user_to_page_vector()
124 size_t po = off & ~PAGE_MASK; in ceph_copy_to_page_vector() local
128 size_t l = min_t(size_t, PAGE_SIZE-po, left); in ceph_copy_to_page_vector()
130 memcpy(page_address(pages[i]) + po, data, l); in ceph_copy_to_page_vector()
133 po += l; in ceph_copy_to_page_vector()
[all …]
/net/l2tp/
Dl2tp_ppp.c232 struct pppox_sock *po; in pppol2tp_recv() local
238 po = pppox_sk(sk); in pppol2tp_recv()
239 ppp_input(&po->chan, skb); in pppol2tp_recv()
563 struct pppox_sock *po = pppox_sk(ps->sock); in pppol2tp_show() local
564 if (po) in pppol2tp_show()
565 seq_printf(m, " interface %s\n", ppp_dev_name(&po->chan)); in pppol2tp_show()
577 struct pppox_sock *po = pppox_sk(sk); in pppol2tp_connect() local
771 po->chan.hdrlen = PPPOL2TP_L2TP_HDR_SIZE_NOSEQ; in pppol2tp_connect()
773 po->chan.private = sk; in pppol2tp_connect()
774 po->chan.ops = &pppol2tp_chan_ops; in pppol2tp_connect()
[all …]
/net/core/
Ddev.c475 void dev_add_offload(struct packet_offload *po) in dev_add_offload() argument
481 if (po->priority < elem->priority) in dev_add_offload()
484 list_add_rcu(&po->list, elem->list.prev); in dev_add_offload()
502 static void __dev_remove_offload(struct packet_offload *po) in __dev_remove_offload() argument
510 if (po == po1) { in __dev_remove_offload()
511 list_del_rcu(&po->list); in __dev_remove_offload()
516 pr_warn("dev_remove_offload: %p not found\n", po); in __dev_remove_offload()
533 void dev_remove_offload(struct packet_offload *po) in dev_remove_offload() argument
535 __dev_remove_offload(po); in dev_remove_offload()