Home
last modified time | relevance | path

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

/net/packet/
Daf_packet.c192 static void *packet_previous_frame(struct packet_sock *po,
241 static void __fanout_unlink(struct sock *sk, struct packet_sock *po);
242 static void __fanout_link(struct sock *sk, struct packet_sock *po);
249 static struct net_device *packet_cached_dev_get(struct packet_sock *po) in packet_cached_dev_get() argument
254 dev = rcu_dereference(po->cached_dev); in packet_cached_dev_get()
261 static void packet_cached_dev_assign(struct packet_sock *po, in packet_cached_dev_assign() argument
264 rcu_assign_pointer(po->cached_dev, dev); in packet_cached_dev_assign()
267 static void packet_cached_dev_reset(struct packet_sock *po) in packet_cached_dev_reset() argument
269 RCU_INIT_POINTER(po->cached_dev, NULL); in packet_cached_dev_reset()
272 static bool packet_use_direct_xmit(const struct packet_sock *po) in packet_use_direct_xmit() argument
[all …]
Ddiag.c13 static int pdiag_put_info(const struct packet_sock *po, struct sk_buff *nlskb) in pdiag_put_info() argument
17 pinfo.pdi_index = po->ifindex; in pdiag_put_info()
18 pinfo.pdi_version = po->tp_version; in pdiag_put_info()
19 pinfo.pdi_reserve = po->tp_reserve; in pdiag_put_info()
20 pinfo.pdi_copy_thresh = po->copy_thresh; in pdiag_put_info()
21 pinfo.pdi_tstamp = po->tp_tstamp; in pdiag_put_info()
24 if (po->running) in pdiag_put_info()
26 if (packet_sock_flag(po, PACKET_SOCK_AUXDATA)) in pdiag_put_info()
28 if (packet_sock_flag(po, PACKET_SOCK_ORIGDEV)) in pdiag_put_info()
30 if (po->has_vnet_hdr) in pdiag_put_info()
[all …]
Dinternal.h151 static inline void packet_sock_flag_set(struct packet_sock *po, in packet_sock_flag_set() argument
156 set_bit(flag, &po->flags); in packet_sock_flag_set()
158 clear_bit(flag, &po->flags); in packet_sock_flag_set()
161 static inline bool packet_sock_flag(const struct packet_sock *po, in packet_sock_flag() argument
164 return test_bit(flag, &po->flags); in packet_sock_flag()
/net/ceph/
Dpagevec.c66 int po = off & ~PAGE_MASK; in ceph_copy_user_to_page_vector() local
71 l = min_t(int, PAGE_SIZE-po, left); in ceph_copy_user_to_page_vector()
72 bad = copy_from_user(page_address(pages[i]) + po, data, l); in ceph_copy_user_to_page_vector()
77 po += l - bad; in ceph_copy_user_to_page_vector()
78 if (po == PAGE_SIZE) { in ceph_copy_user_to_page_vector()
79 po = 0; in ceph_copy_user_to_page_vector()
92 size_t po = off & ~PAGE_MASK; in ceph_copy_to_page_vector() local
96 size_t l = min_t(size_t, PAGE_SIZE-po, left); in ceph_copy_to_page_vector()
98 memcpy(page_address(pages[i]) + po, data, l); in ceph_copy_to_page_vector()
101 po += l; in ceph_copy_to_page_vector()
[all …]
/net/l2tp/
Dl2tp_ppp.c238 struct pppox_sock *po; in pppol2tp_recv() local
240 po = pppox_sk(sk); in pppol2tp_recv()
241 ppp_input(&po->chan, skb); in pppol2tp_recv()
534 struct pppox_sock *po = pppox_sk(sk); in pppol2tp_show() local
536 seq_printf(m, " interface %s\n", ppp_dev_name(&po->chan)); in pppol2tp_show()
719 struct pppox_sock *po = pppox_sk(sk); in pppol2tp_connect() local
819 po->chan.hdrlen = PPPOL2TP_L2TP_HDR_SIZE_NOSEQ; in pppol2tp_connect()
821 po->chan.private = sk; in pppol2tp_connect()
822 po->chan.ops = &pppol2tp_chan_ops; in pppol2tp_connect()
823 po->chan.mtu = pppol2tp_tunnel_mtu(tunnel); in pppol2tp_connect()
[all …]
/net/netfilter/
Dxt_set.c38 #define ADT_OPT(n, f, d, fs, cfs, t, p, b, po, bo) \ argument
47 .ext.packets_op = po, \
/net/core/
Ddev.c628 void dev_add_offload(struct packet_offload *po) in dev_add_offload() argument
634 if (po->priority < elem->priority) in dev_add_offload()
637 list_add_rcu(&po->list, elem->list.prev); in dev_add_offload()
655 static void __dev_remove_offload(struct packet_offload *po) in __dev_remove_offload() argument
663 if (po == po1) { in __dev_remove_offload()
664 list_del_rcu(&po->list); in __dev_remove_offload()
669 pr_warn("dev_remove_offload: %p not found\n", po); in __dev_remove_offload()
686 void dev_remove_offload(struct packet_offload *po) in dev_remove_offload() argument
688 __dev_remove_offload(po); in dev_remove_offload()