Home
last modified time | relevance | path

Searched refs:seq (Results 1 – 25 of 280) sorted by relevance

12345678910>>...12

/net/xfrm/
Dxfrm_replay.c14 u32 seq, seq_hi, bottom; in xfrm_replay_seqhi() local
20 seq = ntohl(net_seq); in xfrm_replay_seqhi()
22 bottom = replay_esn->seq - replay_esn->replay_window + 1; in xfrm_replay_seqhi()
24 if (likely(replay_esn->seq >= replay_esn->replay_window - 1)) { in xfrm_replay_seqhi()
26 if (unlikely(seq < bottom)) in xfrm_replay_seqhi()
30 if (unlikely(seq >= bottom)) in xfrm_replay_seqhi()
68 ((x->replay.seq - x->preplay.seq < x->replay_maxdiff) && in xfrm_replay_notify()
104 XFRM_SKB_CB(skb)->seq.output.low = ++x->replay.oseq; in __xfrm_replay_overflow()
105 XFRM_SKB_CB(skb)->seq.output.hi = 0; in __xfrm_replay_overflow()
125 u32 seq = ntohl(net_seq); in xfrm_replay_check_legacy() local
[all …]
/net/atm/
Dproc.c44 static void add_stats(struct seq_file *seq, const char *aal, in add_stats() argument
47 seq_printf(seq, "%s ( %d %d %d %d %d )", aal, in add_stats()
53 static void atm_dev_info(struct seq_file *seq, const struct atm_dev *dev) in atm_dev_info() argument
57 seq_printf(seq, "%3d %-8s", dev->number, dev->type); in atm_dev_info()
59 seq_printf(seq, "%02x", dev->esi[i]); in atm_dev_info()
60 seq_puts(seq, " "); in atm_dev_info()
61 add_stats(seq, "0", &dev->stats.aal0); in atm_dev_info()
62 seq_puts(seq, " "); in atm_dev_info()
63 add_stats(seq, "5", &dev->stats.aal5); in atm_dev_info()
64 seq_printf(seq, "\t[%d]", refcount_read(&dev->refcnt)); in atm_dev_info()
[all …]
/net/kcm/
Dkcmproc.c18 static struct kcm_mux *kcm_get_first(struct seq_file *seq) in kcm_get_first() argument
20 struct net *net = seq_file_net(seq); in kcm_get_first()
35 static struct kcm_mux *kcm_get_idx(struct seq_file *seq, loff_t pos) in kcm_get_idx() argument
37 struct net *net = seq_file_net(seq); in kcm_get_idx()
49 static void *kcm_seq_next(struct seq_file *seq, void *v, loff_t *pos) in kcm_seq_next() argument
54 p = kcm_get_first(seq); in kcm_seq_next()
61 static void *kcm_seq_start(struct seq_file *seq, loff_t *pos) in kcm_seq_start() argument
69 return kcm_get_idx(seq, *pos - 1); in kcm_seq_start()
72 static void kcm_seq_stop(struct seq_file *seq, void *v) in kcm_seq_stop() argument
83 static void kcm_format_mux_header(struct seq_file *seq) in kcm_format_mux_header() argument
[all …]
/net/sctp/
Dproc.c59 static int sctp_snmp_seq_show(struct seq_file *seq, void *v) in sctp_snmp_seq_show() argument
62 struct net *net = seq->private; in sctp_snmp_seq_show()
70 seq_printf(seq, "%-32s\t%ld\n", sctp_snmp_list[i].name, in sctp_snmp_seq_show()
77 static void sctp_seq_dump_local_addrs(struct seq_file *seq, struct sctp_ep_common *epb) in sctp_seq_dump_local_addrs() argument
105 seq_printf(seq, "*"); in sctp_seq_dump_local_addrs()
107 af->seq_dump_addr(seq, addr); in sctp_seq_dump_local_addrs()
113 static void sctp_seq_dump_remote_addrs(struct seq_file *seq, struct sctp_association *assoc) in sctp_seq_dump_remote_addrs() argument
126 seq_printf(seq, "*"); in sctp_seq_dump_remote_addrs()
128 af->seq_dump_addr(seq, addr); in sctp_seq_dump_remote_addrs()
132 static void *sctp_eps_seq_start(struct seq_file *seq, loff_t *pos) in sctp_eps_seq_start() argument
[all …]
Dobjcnt.c62 static int sctp_objcnt_seq_show(struct seq_file *seq, void *v) in sctp_objcnt_seq_show() argument
67 seq_setwidth(seq, 127); in sctp_objcnt_seq_show()
68 seq_printf(seq, "%s: %d", sctp_dbg_objcnt[i].label, in sctp_objcnt_seq_show()
70 seq_pad(seq, '\n'); in sctp_objcnt_seq_show()
74 static void *sctp_objcnt_seq_start(struct seq_file *seq, loff_t *pos) in sctp_objcnt_seq_start() argument
79 static void sctp_objcnt_seq_stop(struct seq_file *seq, void *v) in sctp_objcnt_seq_stop() argument
83 static void *sctp_objcnt_seq_next(struct seq_file *seq, void *v, loff_t *pos) in sctp_objcnt_seq_next() argument
/net/ipv4/
Dproc.c51 static int sockstat_seq_show(struct seq_file *seq, void *v) in sockstat_seq_show() argument
53 struct net *net = seq->private; in sockstat_seq_show()
59 socket_seq_show(seq); in sockstat_seq_show()
60 seq_printf(seq, "TCP: inuse %d orphan %d tw %d alloc %d mem %ld\n", in sockstat_seq_show()
64 seq_printf(seq, "UDP: inuse %d mem %ld\n", in sockstat_seq_show()
67 seq_printf(seq, "UDPLITE: inuse %d\n", in sockstat_seq_show()
69 seq_printf(seq, "RAW: inuse %d\n", in sockstat_seq_show()
71 seq_printf(seq, "FRAG: inuse %u memory %lu\n", in sockstat_seq_show()
303 static void icmpmsg_put_line(struct seq_file *seq, unsigned long *vals, in icmpmsg_put_line() argument
309 seq_puts(seq, "\nIcmpMsg:"); in icmpmsg_put_line()
[all …]
Dtcp_ipv4.c166 u32 seq = tcptw->tw_snd_nxt + 65535 + 2; in tcp_twsk_unique() local
168 if (!seq) in tcp_twsk_unique()
169 seq = 1; in tcp_twsk_unique()
170 WRITE_ONCE(tp->write_seq, seq); in tcp_twsk_unique()
385 void tcp_req_err(struct sock *sk, u32 seq, bool abort) in tcp_req_err() argument
393 if (seq != tcp_rsk(req)->snt_isn) { in tcp_req_err()
410 void tcp_ld_RTO_revert(struct sock *sk, u32 seq) in tcp_ld_RTO_revert() argument
421 if (seq != tp->snd_una || !icsk->icsk_retransmits || in tcp_ld_RTO_revert()
475 u32 seq, snd_una; in tcp_v4_err() local
490 seq = ntohl(th->seq); in tcp_v4_err()
[all …]
Desp4_offload.c34 __be32 seq; in esp4_gro_receive() local
40 if (xfrm_parse_spi(skb, IPPROTO_ESP, &spi, &seq) != 0) in esp4_gro_receive()
74 XFRM_SPI_SKB_CB(skb)->seq = seq; in esp4_gro_receive()
103 esph->seq_no = htonl(XFRM_SKB_CB(skb)->seq.output.low); in esp4_gso_encap()
258 __u32 seq; in esp_xmit() local
298 seq = xo->seq.low; in esp_xmit()
306 esph->seq_no = htonl(seq); in esp_xmit()
309 xo->seq.low++; in esp_xmit()
311 xo->seq.low += skb_shinfo(skb)->gso_segs; in esp_xmit()
314 if (xo->seq.low < seq) in esp_xmit()
[all …]
Dtcp_minisocks.c33 static bool tcp_in_window(u32 seq, u32 end_seq, u32 s_win, u32 e_win) in tcp_in_window() argument
35 if (seq == s_win) in tcp_in_window()
37 if (after(end_seq, s_win) && before(seq, e_win)) in tcp_in_window()
39 return seq == e_win && seq == end_seq; in tcp_in_window()
117 !tcp_in_window(TCP_SKB_CB(skb)->seq, TCP_SKB_CB(skb)->end_seq, in tcp_timewait_state_process()
126 if (th->syn && !before(TCP_SKB_CB(skb)->seq, tcptw->tw_rcv_nxt)) in tcp_timewait_state_process()
132 TCP_SKB_CB(skb)->end_seq == TCP_SKB_CB(skb)->seq) { in tcp_timewait_state_process()
174 (TCP_SKB_CB(skb)->seq == tcptw->tw_rcv_nxt && in tcp_timewait_state_process()
175 (TCP_SKB_CB(skb)->seq == TCP_SKB_CB(skb)->end_seq || th->rst))) { in tcp_timewait_state_process()
219 (after(TCP_SKB_CB(skb)->seq, tcptw->tw_rcv_nxt) || in tcp_timewait_state_process()
[all …]
/net/8021q/
Dvlanproc.c36 static int vlan_seq_show(struct seq_file *seq, void *v);
37 static void *vlan_seq_start(struct seq_file *seq, loff_t *pos);
38 static void *vlan_seq_next(struct seq_file *seq, void *v, loff_t *pos);
39 static void vlan_seq_stop(struct seq_file *seq, void *);
40 static int vlandev_seq_show(struct seq_file *seq, void *v);
167 static void *vlan_seq_start(struct seq_file *seq, loff_t *pos) in vlan_seq_start() argument
171 struct net *net = seq_file_net(seq); in vlan_seq_start()
189 static void *vlan_seq_next(struct seq_file *seq, void *v, loff_t *pos) in vlan_seq_next() argument
192 struct net *net = seq_file_net(seq); in vlan_seq_next()
210 static void vlan_seq_stop(struct seq_file *seq, void *v) in vlan_seq_stop() argument
[all …]
/net/rxrpc/
Dproc.c27 static void *rxrpc_call_seq_start(struct seq_file *seq, loff_t *_pos) in rxrpc_call_seq_start() argument
30 struct rxrpc_net *rxnet = rxrpc_net(seq_file_net(seq)); in rxrpc_call_seq_start()
36 static void *rxrpc_call_seq_next(struct seq_file *seq, void *v, loff_t *pos) in rxrpc_call_seq_next() argument
38 struct rxrpc_net *rxnet = rxrpc_net(seq_file_net(seq)); in rxrpc_call_seq_next()
43 static void rxrpc_call_seq_stop(struct seq_file *seq, void *v) in rxrpc_call_seq_stop() argument
49 static int rxrpc_call_seq_show(struct seq_file *seq, void *v) in rxrpc_call_seq_show() argument
55 struct rxrpc_net *rxnet = rxrpc_net(seq_file_net(seq)); in rxrpc_call_seq_show()
61 seq_puts(seq, in rxrpc_call_seq_show()
95 seq_printf(seq, in rxrpc_call_seq_show()
126 static void *rxrpc_connection_seq_start(struct seq_file *seq, loff_t *_pos) in rxrpc_connection_seq_start() argument
[all …]
Dinput.c27 struct rxrpc_call *call, rxrpc_seq_t seq) in rxrpc_proto_abort() argument
29 if (rxrpc_abort_call(why, call, seq, RX_PROTOCOL_ERROR, -EBADMSG)) { in rxrpc_proto_abort()
390 static void rxrpc_input_dup_data(struct rxrpc_call *call, rxrpc_seq_t seq, in rxrpc_input_dup_data() argument
417 rxrpc_seq_t seq0 = sp->hdr.seq, hard_ack; in rxrpc_input_data()
469 rxrpc_seq_t seq = seq0 + j; in rxrpc_input_data() local
470 unsigned int ix = seq & RXRPC_RXTX_BUFF_MASK; in rxrpc_input_data()
476 j, serial, seq, terminal, last); in rxrpc_input_data()
480 seq != call->rx_top) { in rxrpc_input_data()
481 rxrpc_proto_abort("LSN", call, seq); in rxrpc_input_data()
486 after_eq(seq, call->rx_top)) { in rxrpc_input_data()
[all …]
Drecvmsg.c121 rxrpc_seq_t seq, u32 abort_code, int error) in __rxrpc_abort_call() argument
123 trace_rxrpc_abort(call->debug_id, why, call->cid, call->call_id, seq, in __rxrpc_abort_call()
130 rxrpc_seq_t seq, u32 abort_code, int error) in rxrpc_abort_call() argument
135 ret = __rxrpc_abort_call(why, call, seq, abort_code, error); in rxrpc_abort_call()
283 rxrpc_seq_t seq = sp->hdr.seq; in rxrpc_verify_packet() local
297 seq += subpacket; in rxrpc_verify_packet()
301 seq, cksum); in rxrpc_verify_packet()
361 rxrpc_seq_t hard_ack, top, seq; in rxrpc_recvmsg_data() local
376 seq = call->rx_hard_ack; in rxrpc_recvmsg_data()
383 seq = hard_ack + 1; in rxrpc_recvmsg_data()
[all …]
/net/core/
Dnet-procfs.c13 static inline struct net_device *dev_from_same_bucket(struct seq_file *seq, loff_t *pos) in dev_from_same_bucket() argument
15 struct net *net = seq_file_net(seq); in dev_from_same_bucket()
29 static inline struct net_device *dev_from_bucket(struct seq_file *seq, loff_t *pos) in dev_from_bucket() argument
35 dev = dev_from_same_bucket(seq, pos); in dev_from_bucket()
50 static void *dev_seq_start(struct seq_file *seq, loff_t *pos) in dev_seq_start() argument
60 return dev_from_bucket(seq, pos); in dev_seq_start()
63 static void *dev_seq_next(struct seq_file *seq, void *v, loff_t *pos) in dev_seq_next() argument
66 return dev_from_bucket(seq, pos); in dev_seq_next()
69 static void dev_seq_stop(struct seq_file *seq, void *v) in dev_seq_stop() argument
75 static void dev_seq_printf_stats(struct seq_file *seq, struct net_device *dev) in dev_seq_printf_stats() argument
[all …]
Dsecure_seq.c39 static u32 seq_scale(u32 seq) in seq_scale() argument
51 return seq + (ktime_get_real_ns() >> 6); in seq_scale()
164 u64 seq; in secure_dccp_sequence_number() local
166 seq = siphash_3u32((__force u32)saddr, (__force u32)daddr, in secure_dccp_sequence_number()
169 seq += ktime_get_real_ns(); in secure_dccp_sequence_number()
170 seq &= (1ull << 48) - 1; in secure_dccp_sequence_number()
171 return seq; in secure_dccp_sequence_number()
190 u64 seq; in secure_dccpv6_sequence_number() local
192 seq = siphash(&combined, offsetofend(typeof(combined), dport), in secure_dccpv6_sequence_number()
194 seq += ktime_get_real_ns(); in secure_dccpv6_sequence_number()
[all …]
/net/netfilter/
Dnf_conntrack_seqadj.c23 this_way = &seqadj->seq[dir]; in nf_ct_seqadj_init()
31 __be32 seq, s32 off) in nf_ct_seqadj_set() argument
48 this_way = &seqadj->seq[dir]; in nf_ct_seqadj_set()
50 before(this_way->correction_pos, ntohl(seq))) { in nf_ct_seqadj_set()
51 this_way->correction_pos = ntohl(seq); in nf_ct_seqadj_set()
70 nf_ct_seqadj_set(ct, ctinfo, th->seq, off); in nf_ct_tcp_seqadj_set()
79 struct nf_ct_seqadj *seq) in nf_ct_sack_block_adjust() argument
86 if (after(ntohl(sack->start_seq) - seq->offset_before, in nf_ct_sack_block_adjust()
87 seq->correction_pos)) in nf_ct_sack_block_adjust()
89 seq->offset_after); in nf_ct_sack_block_adjust()
[all …]
/net/ipv6/
Dproc.c34 static int sockstat6_seq_show(struct seq_file *seq, void *v) in sockstat6_seq_show() argument
36 struct net *net = seq->private; in sockstat6_seq_show()
38 seq_printf(seq, "TCP6: inuse %d\n", in sockstat6_seq_show()
40 seq_printf(seq, "UDP6: inuse %d\n", in sockstat6_seq_show()
42 seq_printf(seq, "UDPLITE6: inuse %d\n", in sockstat6_seq_show()
44 seq_printf(seq, "RAW6: inuse %d\n", in sockstat6_seq_show()
46 seq_printf(seq, "FRAG6: inuse %u memory %lu\n", in sockstat6_seq_show()
145 static void snmp6_seq_show_icmpv6msg(struct seq_file *seq, atomic_long_t *smib) in snmp6_seq_show_icmpv6msg() argument
161 seq_printf(seq, "%-32s\t%lu\n", name, in snmp6_seq_show_icmpv6msg()
174 seq_printf(seq, "%-32s\t%lu\n", name, val); in snmp6_seq_show_icmpv6msg()
[all …]
/net/sunrpc/
Dstats.c37 static int rpc_proc_show(struct seq_file *seq, void *v) { in rpc_proc_show() argument
38 const struct rpc_stat *statp = seq->private; in rpc_proc_show()
42 seq_printf(seq, in rpc_proc_show()
48 seq_printf(seq, in rpc_proc_show()
58 seq_printf(seq, "proc%u %u", in rpc_proc_show()
61 seq_printf(seq, " %u", vers->counts[j]); in rpc_proc_show()
62 seq_putc(seq, '\n'); in rpc_proc_show()
82 void svc_seq_show(struct seq_file *seq, const struct svc_stat *statp) in svc_seq_show() argument
88 seq_printf(seq, in svc_seq_show()
94 seq_printf(seq, in svc_seq_show()
[all …]
/net/appletalk/
Datalk_proc.c27 static void *atalk_seq_interface_start(struct seq_file *seq, loff_t *pos) in atalk_seq_interface_start() argument
36 static void *atalk_seq_interface_next(struct seq_file *seq, void *v, loff_t *pos) in atalk_seq_interface_next() argument
53 static void atalk_seq_interface_stop(struct seq_file *seq, void *v) in atalk_seq_interface_stop() argument
59 static int atalk_seq_interface_show(struct seq_file *seq, void *v) in atalk_seq_interface_show() argument
64 seq_puts(seq, "Interface Address Networks " in atalk_seq_interface_show()
70 seq_printf(seq, "%-16s %04X:%02X %04X-%04X %d\n", in atalk_seq_interface_show()
88 static void *atalk_seq_route_start(struct seq_file *seq, loff_t *pos) in atalk_seq_route_start() argument
97 static void *atalk_seq_route_next(struct seq_file *seq, void *v, loff_t *pos) in atalk_seq_route_next() argument
114 static void atalk_seq_route_stop(struct seq_file *seq, void *v) in atalk_seq_route_stop() argument
120 static int atalk_seq_route_show(struct seq_file *seq, void *v) in atalk_seq_route_show() argument
[all …]
/net/x25/
Dx25_proc.c25 static void *x25_seq_route_start(struct seq_file *seq, loff_t *pos) in x25_seq_route_start() argument
32 static void *x25_seq_route_next(struct seq_file *seq, void *v, loff_t *pos) in x25_seq_route_next() argument
37 static void x25_seq_route_stop(struct seq_file *seq, void *v) in x25_seq_route_stop() argument
43 static int x25_seq_route_show(struct seq_file *seq, void *v) in x25_seq_route_show() argument
48 seq_puts(seq, "Address Digits Device\n"); in x25_seq_route_show()
53 seq_printf(seq, "%-15s %-6d %-5s\n", in x25_seq_route_show()
60 static void *x25_seq_socket_start(struct seq_file *seq, loff_t *pos) in x25_seq_socket_start() argument
67 static void *x25_seq_socket_next(struct seq_file *seq, void *v, loff_t *pos) in x25_seq_socket_next() argument
72 static void x25_seq_socket_stop(struct seq_file *seq, void *v) in x25_seq_socket_stop() argument
78 static int x25_seq_socket_show(struct seq_file *seq, void *v) in x25_seq_socket_show() argument
[all …]
/net/llc/
Dllc_proc.c29 static void llc_ui_format_mac(struct seq_file *seq, u8 *addr) in llc_ui_format_mac() argument
31 seq_printf(seq, "%pM", addr); in llc_ui_format_mac()
59 static void *llc_seq_start(struct seq_file *seq, loff_t *pos) __acquires(RCU) in llc_seq_start() argument
80 static void *llc_seq_next(struct seq_file *seq, void *v, loff_t *pos) in llc_seq_next() argument
114 static void llc_seq_stop(struct seq_file *seq, void *v) in llc_seq_stop() argument
126 static int llc_seq_socket_show(struct seq_file *seq, void *v) in llc_seq_socket_show() argument
132 seq_puts(seq, "SKt Mc local_mac_sap remote_mac_sap " in llc_seq_socket_show()
140 seq_printf(seq, "%2X %2X ", sk->sk_type, 0); in llc_seq_socket_show()
143 llc_ui_format_mac(seq, llc->dev->dev_addr); in llc_seq_socket_show()
146 llc_ui_format_mac(seq, addr); in llc_seq_socket_show()
[all …]
/net/netfilter/ipvs/
Dip_vs_app.c290 __u32 seq = ntohl(th->seq); in vs_fix_seq() local
298 if(after(seq, vseq->init_seq)) { in vs_fix_seq()
299 th->seq = htonl(seq + vseq->delta); in vs_fix_seq()
303 th->seq = htonl(seq + vseq->previous_delta); in vs_fix_seq()
347 unsigned int flag, __u32 seq, int diff) in vs_seq_update() argument
351 if (!(cp->flags & flag) || after(seq, vseq->init_seq)) { in vs_seq_update()
354 vseq->init_seq = seq; in vs_seq_update()
367 __u32 seq; in app_tcp_pkt_out() local
377 seq = ntohl(th->seq); in app_tcp_pkt_out()
401 IP_VS_CONN_F_OUT_SEQ, seq, diff); in app_tcp_pkt_out()
[all …]
/net/phonet/
Dsocket.c519 static struct sock *pn_sock_get_idx(struct seq_file *seq, loff_t pos) in pn_sock_get_idx() argument
521 struct net *net = seq_file_net(seq); in pn_sock_get_idx()
539 static struct sock *pn_sock_get_next(struct seq_file *seq, struct sock *sk) in pn_sock_get_next() argument
541 struct net *net = seq_file_net(seq); in pn_sock_get_next()
550 static void *pn_sock_seq_start(struct seq_file *seq, loff_t *pos) in pn_sock_seq_start() argument
554 return *pos ? pn_sock_get_idx(seq, *pos - 1) : SEQ_START_TOKEN; in pn_sock_seq_start()
557 static void *pn_sock_seq_next(struct seq_file *seq, void *v, loff_t *pos) in pn_sock_seq_next() argument
562 sk = pn_sock_get_idx(seq, 0); in pn_sock_seq_next()
564 sk = pn_sock_get_next(seq, v); in pn_sock_seq_next()
569 static void pn_sock_seq_stop(struct seq_file *seq, void *v) in pn_sock_seq_stop() argument
[all …]
/net/wireless/
Dwext-proc.c29 static void wireless_seq_printf_stats(struct seq_file *seq, in wireless_seq_printf_stats() argument
49 seq_printf(seq, "%6s: %04x %3d%c %3d%c %3d%c %6d %6d %6d " in wireless_seq_printf_stats()
75 static int wireless_dev_seq_show(struct seq_file *seq, void *v) in wireless_dev_seq_show() argument
80 seq_printf(seq, "Inter-| sta-| Quality | Discarded " in wireless_dev_seq_show()
86 wireless_seq_printf_stats(seq, v); in wireless_dev_seq_show()
90 static void *wireless_dev_seq_start(struct seq_file *seq, loff_t *pos) in wireless_dev_seq_start() argument
92 struct net *net = seq_file_net(seq); in wireless_dev_seq_start()
107 static void *wireless_dev_seq_next(struct seq_file *seq, void *v, loff_t *pos) in wireless_dev_seq_next() argument
109 struct net *net = seq_file_net(seq); in wireless_dev_seq_next()
117 static void wireless_dev_seq_stop(struct seq_file *seq, void *v) in wireless_dev_seq_stop() argument
/net/mptcp/
Dmib.c75 void mptcp_seq_show(struct seq_file *seq) in mptcp_seq_show() argument
77 struct net *net = seq->private; in mptcp_seq_show()
80 seq_puts(seq, "MPTcpExt:"); in mptcp_seq_show()
82 seq_printf(seq, " %s", mptcp_snmp_list[i].name); in mptcp_seq_show()
84 seq_puts(seq, "\nMPTcpExt:"); in mptcp_seq_show()
88 seq_puts(seq, " 0"); in mptcp_seq_show()
90 seq_putc(seq, '\n'); in mptcp_seq_show()
95 seq_printf(seq, " %lu", in mptcp_seq_show()
98 seq_putc(seq, '\n'); in mptcp_seq_show()

12345678910>>...12