/net/nfc/hci/ |
D | llc_shdlc.c | 49 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/ |
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 | 91 u32 ns; member 364 u32 ns = L2TP_SKB_CB(skb)->ns; in l2tp_recv_queue_skb() local 368 if (L2TP_SKB_CB(skbp)->ns > ns) { in l2tp_recv_queue_skb() 372 session->name, ns, L2TP_SKB_CB(skbp)->ns, in l2tp_recv_queue_skb() 438 session->name, L2TP_SKB_CB(skb)->ns, in l2tp_recv_dequeue() 452 L2TP_SKB_CB(skb)->ns); in l2tp_recv_dequeue() 454 session->nr = L2TP_SKB_CB(skb)->ns; in l2tp_recv_dequeue() 456 if (L2TP_SKB_CB(skb)->ns != session->nr) { in l2tp_recv_dequeue() 459 session->name, L2TP_SKB_CB(skb)->ns, in l2tp_recv_dequeue() 496 if (!l2tp_seq_check_rx_window(session, L2TP_SKB_CB(skb)->ns)) { in l2tp_recv_data_seq() [all …]
|
D | l2tp_debugfs.c | 187 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()
|
D | l2tp_core.h | 87 u32 ns; /* session NR state (send) */ member
|
/net/core/ |
D | net_namespace.c | 389 static struct ucounts *inc_net_namespaces(struct user_namespace *ns) in inc_net_namespaces() argument 391 return inc_ucount(ns, current_euid(), UCOUNT_NET_NAMESPACES); in inc_net_namespaces() 444 struct net *ns = p; in net_drop_ns() local 445 if (ns && refcount_dec_and_test(&ns->passive)) in net_drop_ns() 446 net_free(ns); in net_drop_ns() 649 struct ns_common *ns; in get_net_ns_by_fd() local 656 ns = get_proc_ns(file_inode(file)); in get_net_ns_by_fd() 657 if (ns->ops == &netns_operations) in get_net_ns_by_fd() 658 net = get_net(container_of(ns, struct net, ns)); in get_net_ns_by_fd() 699 net->ns.ops = &netns_operations; in net_ns_net_init() [all …]
|
D | net-sysfs.c | 892 const void *ns = NULL; in rx_queue_namespace() local 895 ns = dev->class->namespace(dev); in rx_queue_namespace() 897 return ns; in rx_queue_namespace() 1435 const void *ns = NULL; in netdev_queue_namespace() local 1438 ns = dev->class->namespace(dev); in netdev_queue_namespace() 1440 return ns; in netdev_queue_namespace() 1582 struct net *ns = current->nsproxy->net_ns; in net_grab_current_ns() local 1584 if (ns) in net_grab_current_ns() 1585 refcount_inc(&ns->passive); in net_grab_current_ns() 1587 return ns; in net_grab_current_ns() [all …]
|
/net/ax25/ |
D | ax25_std_in.c | 141 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()
|
D | ax25_ds_in.c | 145 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()
|
D | ax25_subr.c | 97 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/ |
D | trace.h | 362 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))
|
D | name_table.c | 290 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/netrom/ |
D | nr_in.c | 152 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()
|
D | nr_subr.c | 101 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/rose/ |
D | rose_in.c | 101 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()
|
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/x25/ |
D | x25_in.c | 208 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()
|
D | x25_subr.c | 260 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/ |
D | br_arp_nd_proxy.c | 244 __be16 vlan_proto, u16 vlan_tci, struct nd_msg *ns) in br_nd_send() argument 277 sizeof(struct ipv6hdr)) - sizeof(*ns); in br_nd_send() 278 for (i = 0; i < ns_olen - 1; i += (ns->opt[i + 1] << 3)) { in br_nd_send() 279 if (ns->opt[i] == ND_OPT_SOURCE_LL_ADDR) { in br_nd_send() 280 daddr = ns->opt + i + sizeof(struct nd_opt_hdr); in br_nd_send() 316 na->target = ns->target; in br_nd_send()
|
/net/wireless/ |
D | radiotap.c | 177 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/ |
D | lapb_subr.c | 155 frame->ns = (skb->data[0] >> 1) & 0x7F; in lapb_decode() 189 frame->ns = (skb->data[0] >> 1) & 0x07; in lapb_decode()
|
D | lapb_in.c | 383 lapb->dev, frame->pf, frame->ns, frame->nr); in lapb_state3_machine() 400 if (frame->ns == lapb->vr) { in lapb_state3_machine()
|
/net/nfc/ |
D | llcp_core.c | 1032 u8 dsap, ssap, ptype, ns, nr; in nfc_llcp_recv_hdlc() local 1037 ns = nfc_llcp_ns(skb); in nfc_llcp_recv_hdlc() 1040 pr_debug("%d %d R %d S %d\n", dsap, ssap, nr, ns); in nfc_llcp_recv_hdlc() 1059 if (ns == llcp_sock->recv_n) in nfc_llcp_recv_hdlc()
|
/net/atm/ |
D | clip.c | 783 struct neigh_seq_state ns; member 839 state->ns.neigh_sub_iter = clip_seq_sub_iter; in clip_seq_start()
|