Lines Matching refs:scp
94 struct dn_scp *scp = DN_SK(sk); in dn_ack() local
100 if (dn_after(ack, scp->ackrcv_dat)) { in dn_ack()
101 scp->ackrcv_dat = ack & 0x0fff; in dn_ack()
103 &scp->data_xmit_queue, in dn_ack()
110 if (dn_after(ack, scp->ackrcv_oth)) { in dn_ack()
111 scp->ackrcv_oth = ack & 0x0fff; in dn_ack()
113 &scp->other_xmit_queue, in dn_ack()
339 struct dn_scp *scp = DN_SK(sk); in dn_nsp_conn_conf() local
350 if ((scp->state == DN_CI) || (scp->state == DN_CD)) { in dn_nsp_conn_conf()
351 scp->persist = 0; in dn_nsp_conn_conf()
352 scp->addrrem = cb->src_port; in dn_nsp_conn_conf()
354 scp->state = DN_RUN; in dn_nsp_conn_conf()
355 scp->services_rem = cb->services; in dn_nsp_conn_conf()
356 scp->info_rem = cb->info; in dn_nsp_conn_conf()
357 scp->segsize_rem = cb->segsize; in dn_nsp_conn_conf()
359 if ((scp->services_rem & NSP_FC_MASK) == NSP_FC_NONE) in dn_nsp_conn_conf()
360 scp->max_window = decnet_no_fc_max_cwnd; in dn_nsp_conn_conf()
365 scp->conndata_in.opt_optl = cpu_to_le16(dlen); in dn_nsp_conn_conf()
367 scp->conndata_in.opt_data, dlen); in dn_nsp_conn_conf()
381 struct dn_scp *scp = DN_SK(sk); in dn_nsp_conn_ack() local
383 if (scp->state == DN_CI) { in dn_nsp_conn_ack()
384 scp->state = DN_CD; in dn_nsp_conn_ack()
385 scp->persist = 0; in dn_nsp_conn_ack()
393 struct dn_scp *scp = DN_SK(sk); in dn_nsp_disc_init() local
403 scp->discdata_in.opt_status = cpu_to_le16(reason); in dn_nsp_disc_init()
404 scp->discdata_in.opt_optl = 0; in dn_nsp_disc_init()
405 memset(scp->discdata_in.opt_data, 0, 16); in dn_nsp_disc_init()
410 scp->discdata_in.opt_optl = cpu_to_le16(dlen); in dn_nsp_disc_init()
411 skb_copy_from_linear_data_offset(skb, 1, scp->discdata_in.opt_data, dlen); in dn_nsp_disc_init()
415 scp->addrrem = cb->src_port; in dn_nsp_disc_init()
418 switch (scp->state) { in dn_nsp_disc_init()
421 scp->state = DN_RJ; in dn_nsp_disc_init()
426 scp->state = DN_DN; in dn_nsp_disc_init()
429 scp->state = DN_DIC; in dn_nsp_disc_init()
445 if (scp->addrrem) { in dn_nsp_disc_init()
448 scp->persist_fxn = dn_destroy_timer; in dn_nsp_disc_init()
449 scp->persist = dn_nsp_persist(sk); in dn_nsp_disc_init()
461 struct dn_scp *scp = DN_SK(sk); in dn_nsp_disc_conf() local
471 switch (scp->state) { in dn_nsp_disc_conf()
473 scp->state = DN_NR; in dn_nsp_disc_conf()
477 scp->state = DN_DRC; in dn_nsp_disc_conf()
479 scp->state = DN_CN; in dn_nsp_disc_conf()
482 scp->state = DN_DIC; in dn_nsp_disc_conf()
488 scp->state = DN_CN; in dn_nsp_disc_conf()
497 scp->persist_fxn = dn_destroy_timer; in dn_nsp_disc_conf()
498 scp->persist = dn_nsp_persist(sk); in dn_nsp_disc_conf()
506 struct dn_scp *scp = DN_SK(sk); in dn_nsp_linkservice() local
512 unsigned char fctype = scp->services_rem & NSP_FC_MASK; in dn_nsp_linkservice()
530 if (seq_next(scp->numoth_rcv, segnum)) { in dn_nsp_linkservice()
531 seq_add(&scp->numoth_rcv, 1); in dn_nsp_linkservice()
538 if ((scp->flowrem_dat > p_fcval) && in dn_nsp_linkservice()
540 scp->flowrem_dat -= p_fcval; in dn_nsp_linkservice()
543 scp->flowrem_dat += fcval; in dn_nsp_linkservice()
548 scp->flowrem_sw = DN_DONTSEND; in dn_nsp_linkservice()
551 scp->flowrem_sw = DN_SEND; in dn_nsp_linkservice()
558 scp->flowrem_oth += fcval; in dn_nsp_linkservice()
606 struct dn_scp *scp = DN_SK(sk); in dn_nsp_otherdata() local
617 if (seq_next(scp->numoth_rcv, segnum)) { in dn_nsp_otherdata()
619 if (dn_queue_skb(sk, skb, SIGURG, &scp->other_receive_queue) == 0) { in dn_nsp_otherdata()
620 seq_add(&scp->numoth_rcv, 1); in dn_nsp_otherdata()
621 scp->other_report = 0; in dn_nsp_otherdata()
637 struct dn_scp *scp = DN_SK(sk); in dn_nsp_data() local
645 if (seq_next(scp->numdat_rcv, segnum)) { in dn_nsp_data()
647 seq_add(&scp->numdat_rcv, 1); in dn_nsp_data()
651 if ((scp->flowloc_sw == DN_SEND) && dn_congested(sk)) { in dn_nsp_data()
652 scp->flowloc_sw = DN_DONTSEND; in dn_nsp_data()
670 struct dn_scp *scp = DN_SK(sk); in dn_returned_conn_init() local
672 if (scp->state == DN_CI) { in dn_returned_conn_init()
673 scp->state = DN_NC; in dn_returned_conn_init()
782 struct dn_scp *scp = DN_SK(sk); in dn_nsp_rx_packet() local
785 scp->nsp_rxtshift = 0; in dn_nsp_rx_packet()
819 struct dn_scp *scp = DN_SK(sk); in dn_nsp_backlog_rcv() local
860 if ((scp->state == DN_CC) && !sock_flag(sk, SOCK_DEAD)) { in dn_nsp_backlog_rcv()
861 scp->state = DN_RUN; in dn_nsp_backlog_rcv()
885 if (scp->state != DN_RUN) in dn_nsp_backlog_rcv()