Home
last modified time | relevance | path

Searched refs:ns (Results 1 – 25 of 31) sorted by relevance

12

/net/nfc/hci/
Dllc_shdlc.c49 int ns; /* next seq num for send */ member
224 struct sk_buff *skb, int ns, int nr) in llc_shdlc_rcv_i_frame() argument
226 int x_ns = ns; in llc_shdlc_rcv_i_frame()
229 pr_debug("recvd I-frame %d, remote waiting frame %d\n", ns, nr); in llc_shdlc_rcv_i_frame()
253 if (llc_shdlc_x_lt_y_lteq_z(shdlc->dnr, y_nr, shdlc->ns)) { in llc_shdlc_rcv_i_frame()
267 if (llc_shdlc_x_lt_y_lteq_z(shdlc->dnr, y_nr, shdlc->ns)) { in llc_shdlc_rcv_ack()
283 shdlc->ns = shdlc->dnr; in llc_shdlc_requeue_ack_pending()
292 if (llc_shdlc_x_lteq_y_lt_z(shdlc->dnr, y_nr, shdlc->ns)) { in llc_shdlc_rcv_rej()
350 shdlc->ns = 0; in llc_shdlc_connect_complete()
464 int ns; in llc_shdlc_handle_rcv_queue() local
[all …]
/net/llc/
Dllc_c_ev.c59 static u16 llc_util_ns_inside_rx_window(u8 ns, u8 vr, u8 rw) in llc_util_ns_inside_rx_window() argument
61 return !llc_circular_between(vr, ns, in llc_util_ns_inside_rx_window()
201 const u8 ns = LLC_I_GET_NS(pdu); in llc_conn_ev_rx_i_cmd_pbit_set_0_unexpd_ns() local
204 LLC_I_PF_IS_0(pdu) && ns != vr && in llc_conn_ev_rx_i_cmd_pbit_set_0_unexpd_ns()
205 !llc_util_ns_inside_rx_window(ns, vr, llc_sk(sk)->rw) ? 0 : 1; in llc_conn_ev_rx_i_cmd_pbit_set_0_unexpd_ns()
213 const u8 ns = LLC_I_GET_NS(pdu); in llc_conn_ev_rx_i_cmd_pbit_set_1_unexpd_ns() local
216 LLC_I_PF_IS_1(pdu) && ns != vr && in llc_conn_ev_rx_i_cmd_pbit_set_1_unexpd_ns()
217 !llc_util_ns_inside_rx_window(ns, vr, llc_sk(sk)->rw) ? 0 : 1; in llc_conn_ev_rx_i_cmd_pbit_set_1_unexpd_ns()
225 const u8 ns = LLC_I_GET_NS(pdu); in llc_conn_ev_rx_i_cmd_pbit_set_x_inval_ns() local
227 ns != vr && in llc_conn_ev_rx_i_cmd_pbit_set_x_inval_ns()
[all …]
Dllc_pdu.c107 void llc_pdu_init_as_i_cmd(struct sk_buff *skb, u8 p_bit, u8 ns, u8 nr) in llc_pdu_init_as_i_cmd() argument
114 pdu->ctrl_1 |= (ns << 1) & 0xFE; /* set N(S) in bits 2..8 */ in llc_pdu_init_as_i_cmd()
/net/l2tp/
Dl2tp_core.c91 u32 ns; member
369 u32 ns = L2TP_SKB_CB(skb)->ns; in l2tp_recv_queue_skb() local
373 if (L2TP_SKB_CB(skbp)->ns > ns) { in l2tp_recv_queue_skb()
377 session->name, ns, L2TP_SKB_CB(skbp)->ns, in l2tp_recv_queue_skb()
443 session->name, L2TP_SKB_CB(skb)->ns, in l2tp_recv_dequeue()
457 L2TP_SKB_CB(skb)->ns); in l2tp_recv_dequeue()
459 session->nr = L2TP_SKB_CB(skb)->ns; in l2tp_recv_dequeue()
461 if (L2TP_SKB_CB(skb)->ns != session->nr) { in l2tp_recv_dequeue()
464 session->name, L2TP_SKB_CB(skb)->ns, in l2tp_recv_dequeue()
501 if (!l2tp_seq_check_rx_window(session, L2TP_SKB_CB(skb)->ns)) { in l2tp_recv_data_seq()
[all …]
Dl2tp_debugfs.c187 seq_printf(m, " nr %hu, ns %hu\n", session->nr, session->ns); in l2tp_dfs_seq_session_show()
219 session->nr, session->ns, in l2tp_dfs_seq_session_show()
Dl2tp_core.h87 u32 ns; /* session NR state (send) */ member
/net/core/
Dnet_namespace.c399 static struct ucounts *inc_net_namespaces(struct user_namespace *ns) in inc_net_namespaces() argument
401 return inc_ucount(ns, current_euid(), UCOUNT_NET_NAMESPACES); in inc_net_namespaces()
454 struct net *ns = p; in net_drop_ns() local
455 if (ns && refcount_dec_and_test(&ns->passive)) in net_drop_ns()
456 net_free(ns); in net_drop_ns()
666 struct ns_common *get_net_ns(struct ns_common *ns) in get_net_ns() argument
668 return &get_net(container_of(ns, struct net, ns))->ns; in get_net_ns()
675 struct ns_common *ns; in get_net_ns_by_fd() local
682 ns = get_proc_ns(file_inode(file)); in get_net_ns_by_fd()
683 if (ns->ops == &netns_operations) in get_net_ns_by_fd()
[all …]
Dnet-sysfs.c941 const void *ns = NULL; in rx_queue_namespace() local
944 ns = dev->class->namespace(dev); in rx_queue_namespace()
946 return ns; in rx_queue_namespace()
1531 const void *ns = NULL; in netdev_queue_namespace() local
1534 ns = dev->class->namespace(dev); in netdev_queue_namespace()
1536 return ns; in netdev_queue_namespace()
1681 struct net *ns = current->nsproxy->net_ns; in net_grab_current_ns() local
1683 if (ns) in net_grab_current_ns()
1684 refcount_inc(&ns->passive); in net_grab_current_ns()
1686 return ns; in net_grab_current_ns()
[all …]
/net/ax25/
Dax25_std_in.c141 static int ax25_std_state3_machine(ax25_cb *ax25, struct sk_buff *skb, int frametype, int ns, int n… in ax25_std_state3_machine() argument
223 if (ns == ax25->vr) { in ax25_std_state3_machine()
227 ax25->vr = ns; /* ax25->vr - 1 */ in ax25_std_state3_machine()
266 static int ax25_std_state4_machine(ax25_cb *ax25, struct sk_buff *skb, int frametype, int ns, int n… in ax25_std_state4_machine() argument
378 if (ns == ax25->vr) { in ax25_std_state4_machine()
382 ax25->vr = ns; /* ax25->vr - 1 */ in ax25_std_state4_machine()
421 int queued = 0, frametype, ns, nr, pf; in ax25_std_frame_in() local
423 frametype = ax25_decode(ax25, skb, &ns, &nr, &pf); in ax25_std_frame_in()
433 queued = ax25_std_state3_machine(ax25, skb, frametype, ns, nr, pf, type); in ax25_std_frame_in()
436 queued = ax25_std_state4_machine(ax25, skb, frametype, ns, nr, pf, type); in ax25_std_frame_in()
Dax25_ds_in.c145 static int ax25_ds_state3_machine(ax25_cb *ax25, struct sk_buff *skb, int frametype, int ns, int nr… in ax25_ds_state3_machine() argument
238 if (ns == ax25->vr) { in ax25_ds_state3_machine()
242 ax25->vr = ns; /* ax25->vr - 1 */ in ax25_ds_state3_machine()
281 int queued = 0, frametype, ns, nr, pf; in ax25_ds_frame_in() local
283 frametype = ax25_decode(ax25, skb, &ns, &nr, &pf); in ax25_ds_frame_in()
293 queued = ax25_ds_state3_machine(ax25, skb, frametype, ns, nr, pf, type); in ax25_ds_frame_in()
Dax25_subr.c97 int ax25_decode(ax25_cb *ax25, struct sk_buff *skb, int *ns, int *nr, int *pf) in ax25_decode() argument
103 *ns = *nr = *pf = 0; in ax25_decode()
108 *ns = (frame[0] >> 1) & 0x07; in ax25_decode()
123 *ns = (frame[0] >> 1) & 0x7F; in ax25_decode()
/net/tipc/
Dtrace.h362 TP_PROTO(const char *name, u32 os, u32 ns, int evt),
364 TP_ARGS(name, os, ns, evt),
369 __field(u32, ns)
376 __entry->ns = ns;
382 state_sym(__entry->ns))
387 TP_PROTO(const char *name, u32 os, u32 ns, int evt), \
388 TP_ARGS(name, os, ns, evt))
Dname_table.c290 struct tipc_name_seq ns; in tipc_service_subscribe() local
295 ns.type = tipc_sub_read(sb, seq.type); in tipc_service_subscribe()
296 ns.lower = tipc_sub_read(sb, seq.lower); in tipc_service_subscribe()
297 ns.upper = tipc_sub_read(sb, seq.upper); in tipc_service_subscribe()
307 if (sr->lower > ns.upper) in tipc_service_subscribe()
309 if (!tipc_sub_check_overlap(&ns, sr->lower, sr->upper)) in tipc_service_subscribe()
/net/rose/
Drose_in.c101 static int rose_state3_machine(struct sock *sk, struct sk_buff *skb, int frametype, int ns, int nr,… in rose_state3_machine() argument
162 if (ns == rose->vr) { in rose_state3_machine()
265 int queued = 0, frametype, ns, nr, q, d, m; in rose_process_rx_frame() local
270 frametype = rose_decode(skb, &ns, &nr, &q, &d, &m); in rose_process_rx_frame()
280 queued = rose_state3_machine(sk, skb, frametype, ns, nr, q, d, m); in rose_process_rx_frame()
Drose_subr.c201 int rose_decode(struct sk_buff *skb, int *ns, int *nr, int *q, int *d, int *m) in rose_decode() argument
207 *ns = *nr = *q = *d = *m = 0; in rose_decode()
232 *ns = (frame[2] >> 1) & 0x07; in rose_decode()
/net/netrom/
Dnr_in.c152 unsigned short nr, ns; in nr_state3_machine() local
156 ns = skb->data[17]; in nr_state3_machine()
234 ns = skbn->data[17]; in nr_state3_machine()
235 if (ns == nrom->vr) { in nr_state3_machine()
242 } else if (nr_in_rx_window(sk, ns)) { in nr_state3_machine()
Dnr_subr.c101 int nr_in_rx_window(struct sock *sk, unsigned short ns) in nr_in_rx_window() argument
108 if (ns == vc) return 1; in nr_in_rx_window()
/net/x25/
Dx25_in.c208 static int x25_state3_machine(struct sock *sk, struct sk_buff *skb, int frametype, int ns, int nr, … in x25_state3_machine() argument
261 if ((ns != x25->vr) || !x25_validate_nr(sk, nr)) { in x25_state3_machine()
274 if (ns == x25->vr) { in x25_state3_machine()
389 int queued = 0, frametype, ns, nr, q, d, m; in x25_process_rx_frame() local
394 frametype = x25_decode(sk, skb, &ns, &nr, &q, &d, &m); in x25_process_rx_frame()
404 queued = x25_state3_machine(sk, skb, frametype, ns, nr, q, d, m); in x25_process_rx_frame()
Dx25_subr.c260 int x25_decode(struct sock *sk, struct sk_buff *skb, int *ns, int *nr, int *q, in x25_decode() argument
270 *ns = *nr = *q = *d = *m = 0; in x25_decode()
319 *ns = (frame[2] >> 1) & 0x7F; in x25_decode()
328 *ns = (frame[2] >> 1) & 0x07; in x25_decode()
/net/bridge/
Dbr_arp_nd_proxy.c246 __be16 vlan_proto, u16 vlan_tci, struct nd_msg *ns) in br_nd_send() argument
279 sizeof(struct ipv6hdr)) - sizeof(*ns); in br_nd_send()
280 for (i = 0; i < ns_olen - 1; i += (ns->opt[i + 1] << 3)) { in br_nd_send()
281 if (!ns->opt[i + 1]) { in br_nd_send()
285 if (ns->opt[i] == ND_OPT_SOURCE_LL_ADDR) { in br_nd_send()
286 daddr = ns->opt + i + sizeof(struct nd_opt_hdr); in br_nd_send()
322 na->target = ns->target; in br_nd_send()
/net/wireless/
Dradiotap.c177 if (iterator->_vns->ns[i].oui != oui) in find_ns()
179 if (iterator->_vns->ns[i].subns != subns) in find_ns()
182 iterator->current_namespace = &iterator->_vns->ns[i]; in find_ns()
/net/lapb/
Dlapb_subr.c155 frame->ns = (skb->data[0] >> 1) & 0x7F; in lapb_decode()
189 frame->ns = (skb->data[0] >> 1) & 0x07; in lapb_decode()
Dlapb_in.c383 lapb->dev, frame->pf, frame->ns, frame->nr); in lapb_state3_machine()
400 if (frame->ns == lapb->vr) { in lapb_state3_machine()
/net/nfc/
Dllcp_core.c1078 u8 dsap, ssap, ptype, ns, nr; in nfc_llcp_recv_hdlc() local
1083 ns = nfc_llcp_ns(skb); in nfc_llcp_recv_hdlc()
1086 pr_debug("%d %d R %d S %d\n", dsap, ssap, nr, ns); in nfc_llcp_recv_hdlc()
1105 if (ns == llcp_sock->recv_n) in nfc_llcp_recv_hdlc()
/net/atm/
Dclip.c783 struct neigh_seq_state ns; member
839 state->ns.neigh_sub_iter = clip_seq_sub_iter; in clip_seq_start()

12