/net/tipc/ |
D | node_subscr.c | 86 struct tipc_node_subscr *ns; in tipc_nodesub_notify() local 88 list_for_each_entry(ns, &node->nsub, nodesub_list) { in tipc_nodesub_notify() 89 if (ns->handle_node_down) { in tipc_nodesub_notify() 90 tipc_k_signal((Handler)ns->handle_node_down, in tipc_nodesub_notify() 91 (unsigned long)ns->usr_handle); in tipc_nodesub_notify() 92 ns->handle_node_down = NULL; in tipc_nodesub_notify()
|
D | name_table.c | 476 struct name_seq *ns; in nametbl_find_seq() local 479 hlist_for_each_entry(ns, seq_head, ns_list) { in nametbl_find_seq() 480 if (ns->type == type) in nametbl_find_seq() 481 return ns; in nametbl_find_seq()
|
/net/nfc/hci/ |
D | llc_shdlc.c | 62 int ns; /* next seq num for send */ member 237 struct sk_buff *skb, int ns, int nr) in llc_shdlc_rcv_i_frame() argument 239 int x_ns = ns; in llc_shdlc_rcv_i_frame() 242 pr_debug("recvd I-frame %d, remote waiting frame %d\n", ns, nr); in llc_shdlc_rcv_i_frame() 266 if (llc_shdlc_x_lt_y_lteq_z(shdlc->dnr, y_nr, shdlc->ns)) { in llc_shdlc_rcv_i_frame() 280 if (llc_shdlc_x_lt_y_lteq_z(shdlc->dnr, y_nr, shdlc->ns)) { in llc_shdlc_rcv_ack() 296 shdlc->ns = shdlc->dnr; in llc_shdlc_requeue_ack_pending() 305 if (llc_shdlc_x_lteq_y_lt_z(shdlc->dnr, y_nr, shdlc->ns)) { in llc_shdlc_rcv_rej() 363 shdlc->ns = 0; in llc_shdlc_connect_complete() 477 int ns; in llc_shdlc_handle_rcv_queue() local [all …]
|
/net/llc/ |
D | llc_c_ev.c | 59 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 …]
|
D | llc_pdu.c | 107 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/ |
D | l2tp_core.c | 94 u32 ns; member 376 u32 ns = L2TP_SKB_CB(skb)->ns; in l2tp_recv_queue_skb() local 380 if (L2TP_SKB_CB(skbp)->ns > ns) { in l2tp_recv_queue_skb() 384 session->name, ns, L2TP_SKB_CB(skbp)->ns, in l2tp_recv_queue_skb() 456 session->name, L2TP_SKB_CB(skb)->ns, in l2tp_recv_dequeue() 472 L2TP_SKB_CB(skb)->ns); in l2tp_recv_dequeue() 474 session->nr = L2TP_SKB_CB(skb)->ns; in l2tp_recv_dequeue() 476 if (L2TP_SKB_CB(skb)->ns != session->nr) { in l2tp_recv_dequeue() 479 session->name, L2TP_SKB_CB(skb)->ns, in l2tp_recv_dequeue() 611 u32 ns, nr; in l2tp_recv_common() local [all …]
|
D | l2tp_debugfs.c | 172 seq_printf(m, " nr %hu, ns %hu\n", session->nr, session->ns); in l2tp_dfs_seq_session_show() 207 session->nr, session->ns, in l2tp_dfs_seq_session_show()
|
D | l2tp_core.h | 103 u32 ns; /* session NR state (send) */ member
|
/net/ax25/ |
D | ax25_std_in.c | 144 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 226 if (ns == ax25->vr) { in ax25_std_state3_machine() 230 ax25->vr = ns; /* ax25->vr - 1 */ in ax25_std_state3_machine() 269 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 381 if (ns == ax25->vr) { in ax25_std_state4_machine() 385 ax25->vr = ns; /* ax25->vr - 1 */ in ax25_std_state4_machine() 424 int queued = 0, frametype, ns, nr, pf; in ax25_std_frame_in() local 426 frametype = ax25_decode(ax25, skb, &ns, &nr, &pf); in ax25_std_frame_in() 436 queued = ax25_std_state3_machine(ax25, skb, frametype, ns, nr, pf, type); in ax25_std_frame_in() 439 queued = ax25_std_state4_machine(ax25, skb, frametype, ns, nr, pf, type); in ax25_std_frame_in()
|
D | ax25_ds_in.c | 148 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 241 if (ns == ax25->vr) { in ax25_ds_state3_machine() 245 ax25->vr = ns; /* ax25->vr - 1 */ in ax25_ds_state3_machine() 284 int queued = 0, frametype, ns, nr, pf; in ax25_ds_frame_in() local 286 frametype = ax25_decode(ax25, skb, &ns, &nr, &pf); in ax25_ds_frame_in() 296 queued = ax25_ds_state3_machine(ax25, skb, frametype, ns, nr, pf, type); in ax25_ds_frame_in()
|
D | ax25_subr.c | 100 int ax25_decode(ax25_cb *ax25, struct sk_buff *skb, int *ns, int *nr, int *pf) in ax25_decode() argument 106 *ns = *nr = *pf = 0; in ax25_decode() 111 *ns = (frame[0] >> 1) & 0x07; in ax25_decode() 126 *ns = (frame[0] >> 1) & 0x7F; in ax25_decode()
|
/net/rose/ |
D | rose_in.c | 104 static int rose_state3_machine(struct sock *sk, struct sk_buff *skb, int frametype, int ns, int nr,… in rose_state3_machine() argument 165 if (ns == rose->vr) { in rose_state3_machine() 266 int queued = 0, frametype, ns, nr, q, d, m; in rose_process_rx_frame() local 271 frametype = rose_decode(skb, &ns, &nr, &q, &d, &m); in rose_process_rx_frame() 281 queued = rose_state3_machine(sk, skb, frametype, ns, nr, q, d, m); in rose_process_rx_frame()
|
D | rose_subr.c | 201 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/ |
D | nr_in.c | 155 unsigned short nr, ns; in nr_state3_machine() local 159 ns = skb->data[17]; in nr_state3_machine() 237 ns = skbn->data[17]; in nr_state3_machine() 238 if (ns == nrom->vr) { in nr_state3_machine() 245 } else if (nr_in_rx_window(sk, ns)) { in nr_state3_machine()
|
D | nr_subr.c | 104 int nr_in_rx_window(struct sock *sk, unsigned short ns) in nr_in_rx_window() argument 111 if (ns == vc) return 1; in nr_in_rx_window()
|
/net/core/ |
D | net_namespace.c | 309 struct net *ns = p; in net_drop_ns() local 310 if (ns && atomic_dec_and_test(&ns->passive)) in net_drop_ns() 311 net_free(ns); in net_drop_ns() 434 net = get_net(ei->ns); in get_net_ns_by_fd() 855 static void netns_put(void *ns) in netns_put() argument 857 put_net(ns); in netns_put() 860 static int netns_install(struct nsproxy *nsproxy, void *ns) in netns_install() argument 862 struct net *net = ns; in netns_install() 873 static unsigned int netns_inum(void *ns) in netns_inum() argument 875 struct net *net = ns; in netns_inum()
|
D | net-sysfs.c | 1162 struct net *ns = current->nsproxy->net_ns; in net_grab_current_ns() local 1164 if (ns) in net_grab_current_ns() 1165 atomic_inc(&ns->passive); in net_grab_current_ns() 1167 return ns; in net_grab_current_ns()
|
/net/x25/ |
D | x25_in.c | 202 static int x25_state3_machine(struct sock *sk, struct sk_buff *skb, int frametype, int ns, int nr, … in x25_state3_machine() argument 255 if ((ns != x25->vr) || !x25_validate_nr(sk, nr)) { in x25_state3_machine() 268 if (ns == x25->vr) { in x25_state3_machine() 382 int queued = 0, frametype, ns, nr, q, d, m; in x25_process_rx_frame() local 387 frametype = x25_decode(sk, skb, &ns, &nr, &q, &d, &m); in x25_process_rx_frame() 397 queued = x25_state3_machine(sk, skb, frametype, ns, nr, q, d, m); in x25_process_rx_frame()
|
D | x25_subr.c | 268 int x25_decode(struct sock *sk, struct sk_buff *skb, int *ns, int *nr, int *q, in x25_decode() argument 278 *ns = *nr = *q = *d = *m = 0; in x25_decode() 327 *ns = (frame[2] >> 1) & 0x7F; in x25_decode() 336 *ns = (frame[2] >> 1) & 0x07; in x25_decode()
|
/net/wireless/ |
D | radiotap.c | 167 if (iterator->_vns->ns[i].oui != oui) in find_ns() 169 if (iterator->_vns->ns[i].subns != subns) in find_ns() 172 iterator->current_namespace = &iterator->_vns->ns[i]; in find_ns()
|
/net/lapb/ |
D | lapb_subr.c | 162 frame->ns = (skb->data[0] >> 1) & 0x7F; in lapb_decode() 196 frame->ns = (skb->data[0] >> 1) & 0x07; in lapb_decode()
|
D | lapb_in.c | 388 lapb->dev, frame->pf, frame->ns, frame->nr); in lapb_state3_machine() 405 if (frame->ns == lapb->vr) { in lapb_state3_machine()
|
/net/nfc/ |
D | llcp_core.c | 1017 u8 dsap, ssap, ptype, ns, nr; in nfc_llcp_recv_hdlc() local 1022 ns = nfc_llcp_ns(skb); in nfc_llcp_recv_hdlc() 1025 pr_debug("%d %d R %d S %d\n", dsap, ssap, nr, ns); in nfc_llcp_recv_hdlc() 1044 if (ns == llcp_sock->recv_n) in nfc_llcp_recv_hdlc()
|
/net/irda/ |
D | irlap.c | 740 int irlap_validate_ns_received(struct irlap_cb *self, int ns) in irlap_validate_ns_received() argument 743 if (ns == self->vr) in irlap_validate_ns_received()
|
/net/atm/ |
D | clip.c | 777 struct neigh_seq_state ns; member 833 state->ns.neigh_sub_iter = clip_seq_sub_iter; in clip_seq_start()
|