Lines Matching refs:DN_SK

157 	struct dn_scp *scp = DN_SK(sk);  in dn_find_list()
174 struct dn_scp *scp = DN_SK(sk); in check_port()
184 struct dn_scp *scp = DN_SK(sk); in port_alloc()
205 struct dn_scp *scp = DN_SK(sk); in dn_hash_sock()
290 struct dn_scp *scp = DN_SK(sk); in dn_rehash_sock()
300 DN_SK(sk)->addrloc = 0; in dn_rehash_sock()
301 skp = listen_hash(&DN_SK(sk)->addr); in dn_rehash_sock()
403 struct dn_scp *scp = DN_SK(sk); in dn_sklist_find_listener()
438 scp = DN_SK(sk); in dn_find_by_skb()
460 struct dn_scp *scp = DN_SK(sk); in dn_destruct()
483 scp = DN_SK(sk); in dn_alloc_sock()
554 struct dn_scp *scp = DN_SK(sk); in dn_keepalive()
575 struct dn_scp *scp = DN_SK(sk); in dn_destroy_timer()
617 struct dn_scp *scp = DN_SK(sk); in dn_destroy_sock()
764 struct dn_scp *scp = DN_SK(sk); in dn_bind()
822 struct dn_scp *scp = DN_SK(sk); in dn_auto_bind()
856 struct dn_scp *scp = DN_SK(sk); in dn_connect()
875 if (DN_SK(sk)->state != DN_O) in dn_connect()
899 DN_SK(sk)->state = DN_CI; in dn_connect()
995 if ((DN_SK(sk)->state != DN_RUN) && (DN_SK(sk)->state != DN_DRC)) { in dn_wait_accept()
1022 if (DN_SK(sk)->state != DN_O) { in dn_accept()
1065 DN_SK(newsk)->state = DN_CR; in dn_accept()
1066 DN_SK(newsk)->addrrem = cb->src_port; in dn_accept()
1067 DN_SK(newsk)->services_rem = cb->services; in dn_accept()
1068 DN_SK(newsk)->info_rem = cb->info; in dn_accept()
1069 DN_SK(newsk)->segsize_rem = cb->segsize; in dn_accept()
1070 DN_SK(newsk)->accept_mode = DN_SK(sk)->accept_mode; in dn_accept()
1072 if (DN_SK(newsk)->segsize_rem < 230) in dn_accept()
1073 DN_SK(newsk)->segsize_rem = 230; in dn_accept()
1075 if ((DN_SK(newsk)->services_rem & NSP_FC_MASK) == NSP_FC_NONE) in dn_accept()
1076 DN_SK(newsk)->max_window = decnet_no_fc_max_cwnd; in dn_accept()
1081 memcpy(&(DN_SK(newsk)->addr), &(DN_SK(sk)->addr), sizeof(struct sockaddr_dn)); in dn_accept()
1087 DN_SK(newsk)->addr.sdn_flags &= ~SDF_WILD; in dn_accept()
1089 skb_pull(skb, dn_username2sockaddr(skb->data, skb->len, &(DN_SK(newsk)->addr), &type)); in dn_accept()
1090 skb_pull(skb, dn_username2sockaddr(skb->data, skb->len, &(DN_SK(newsk)->peer), &type)); in dn_accept()
1091 *(dn_address *)(DN_SK(newsk)->peer.sdn_add.a_addr) = cb->src; in dn_accept()
1092 *(dn_address *)(DN_SK(newsk)->addr.sdn_add.a_addr) = cb->dst; in dn_accept()
1098 dn_access_copy(skb, &(DN_SK(newsk)->accessdata)); in dn_accept()
1101 dn_user_copy(skb, &(DN_SK(newsk)->conndata_in)); in dn_accept()
1104 DN_SK(newsk)->peer.sdn_flags |= SDF_PROXY; in dn_accept()
1107 DN_SK(newsk)->peer.sdn_flags |= SDF_UICPROXY; in dn_accept()
1111 memcpy(&(DN_SK(newsk)->conndata_out), &(DN_SK(sk)->conndata_out), in dn_accept()
1113 memcpy(&(DN_SK(newsk)->discdata_out), &(DN_SK(sk)->discdata_out), in dn_accept()
1128 if (DN_SK(newsk)->accept_mode == ACC_IMMED) { in dn_accept()
1129 DN_SK(newsk)->state = DN_CC; in dn_accept()
1143 struct dn_scp *scp = DN_SK(sk); in dn_getname()
1169 struct dn_scp *scp = DN_SK(sk); in dn_poll()
1181 struct dn_scp *scp = DN_SK(sk); in dn_ioctl()
1268 if ((DN_SK(sk)->state != DN_O) || (sk->state == TCP_LISTEN)) in dn_listen()
1287 struct dn_scp *scp = DN_SK(sk); in dn_shutdown()
1332 struct dn_scp *scp = DN_SK(sk); in __dn_setsockopt()
1510 struct dn_scp *scp = DN_SK(sk); in __dn_getsockopt()
1637 struct dn_scp *scp = DN_SK(sk); in dn_wait_run()
1716 struct dn_scp *scp = DN_SK(sk); in dn_recvmsg()
1884 struct dn_scp *scp = DN_SK(sk); in dn_sendmsg()
2146 scp = DN_SK(sk); in dn_get_info()