tcp_sw_conn 160 drivers/scsi/iscsi_tcp.c struct iscsi_sw_tcp_conn *tcp_sw_conn; tcp_sw_conn 174 drivers/scsi/iscsi_tcp.c tcp_sw_conn = tcp_conn->dd_data; tcp_sw_conn 175 drivers/scsi/iscsi_tcp.c old_state_change = tcp_sw_conn->old_state_change; tcp_sw_conn 190 drivers/scsi/iscsi_tcp.c struct iscsi_sw_tcp_conn *tcp_sw_conn; tcp_sw_conn 201 drivers/scsi/iscsi_tcp.c tcp_sw_conn = tcp_conn->dd_data; tcp_sw_conn 202 drivers/scsi/iscsi_tcp.c old_write_space = tcp_sw_conn->old_write_space; tcp_sw_conn 214 drivers/scsi/iscsi_tcp.c struct iscsi_sw_tcp_conn *tcp_sw_conn = tcp_conn->dd_data; tcp_sw_conn 215 drivers/scsi/iscsi_tcp.c struct sock *sk = tcp_sw_conn->sock->sk; tcp_sw_conn 220 drivers/scsi/iscsi_tcp.c tcp_sw_conn->old_data_ready = sk->sk_data_ready; tcp_sw_conn 221 drivers/scsi/iscsi_tcp.c tcp_sw_conn->old_state_change = sk->sk_state_change; tcp_sw_conn 222 drivers/scsi/iscsi_tcp.c tcp_sw_conn->old_write_space = sk->sk_write_space; tcp_sw_conn 233 drivers/scsi/iscsi_tcp.c struct iscsi_sw_tcp_conn *tcp_sw_conn = tcp_conn->dd_data; tcp_sw_conn 234 drivers/scsi/iscsi_tcp.c struct sock *sk = tcp_sw_conn->sock->sk; tcp_sw_conn 239 drivers/scsi/iscsi_tcp.c sk->sk_data_ready = tcp_sw_conn->old_data_ready; tcp_sw_conn 240 drivers/scsi/iscsi_tcp.c sk->sk_state_change = tcp_sw_conn->old_state_change; tcp_sw_conn 241 drivers/scsi/iscsi_tcp.c sk->sk_write_space = tcp_sw_conn->old_write_space; tcp_sw_conn 262 drivers/scsi/iscsi_tcp.c struct iscsi_sw_tcp_conn *tcp_sw_conn = tcp_conn->dd_data; tcp_sw_conn 263 drivers/scsi/iscsi_tcp.c struct socket *sk = tcp_sw_conn->sock; tcp_sw_conn 283 drivers/scsi/iscsi_tcp.c r = tcp_sw_conn->sendpage(sk, sg_page(sg), offset, tcp_sw_conn 311 drivers/scsi/iscsi_tcp.c struct iscsi_sw_tcp_conn *tcp_sw_conn = tcp_conn->dd_data; tcp_sw_conn 312 drivers/scsi/iscsi_tcp.c struct iscsi_segment *segment = &tcp_sw_conn->out.segment; tcp_sw_conn 362 drivers/scsi/iscsi_tcp.c struct iscsi_sw_tcp_conn *tcp_sw_conn = tcp_conn->dd_data; tcp_sw_conn 363 drivers/scsi/iscsi_tcp.c struct iscsi_segment *segment = &tcp_sw_conn->out.segment; tcp_sw_conn 373 drivers/scsi/iscsi_tcp.c struct iscsi_sw_tcp_conn *tcp_sw_conn = tcp_conn->dd_data; tcp_sw_conn 376 drivers/scsi/iscsi_tcp.c if (!tcp_sw_conn->sock) { tcp_sw_conn 406 drivers/scsi/iscsi_tcp.c struct iscsi_sw_tcp_conn *tcp_sw_conn = tcp_conn->dd_data; tcp_sw_conn 408 drivers/scsi/iscsi_tcp.c tcp_sw_conn->out.segment = tcp_sw_conn->out.data_segment; tcp_sw_conn 411 drivers/scsi/iscsi_tcp.c tcp_sw_conn->out.segment.size, tcp_sw_conn 412 drivers/scsi/iscsi_tcp.c tcp_sw_conn->out.segment.total_size); tcp_sw_conn 420 drivers/scsi/iscsi_tcp.c struct iscsi_sw_tcp_conn *tcp_sw_conn = tcp_conn->dd_data; tcp_sw_conn 427 drivers/scsi/iscsi_tcp.c memset(&tcp_sw_conn->out.data_segment, 0, tcp_sw_conn 436 drivers/scsi/iscsi_tcp.c iscsi_tcp_dgst_header(tcp_sw_conn->tx_hash, hdr, hdrlen, tcp_sw_conn 444 drivers/scsi/iscsi_tcp.c tcp_sw_conn->out.hdr = hdr; tcp_sw_conn 446 drivers/scsi/iscsi_tcp.c iscsi_segment_init_linear(&tcp_sw_conn->out.segment, hdr, hdrlen, tcp_sw_conn 461 drivers/scsi/iscsi_tcp.c struct iscsi_sw_tcp_conn *tcp_sw_conn = tcp_conn->dd_data; tcp_sw_conn 471 drivers/scsi/iscsi_tcp.c hdr_spec_len = ntoh24(tcp_sw_conn->out.hdr->dlength); tcp_sw_conn 475 drivers/scsi/iscsi_tcp.c tx_hash = tcp_sw_conn->tx_hash; tcp_sw_conn 477 drivers/scsi/iscsi_tcp.c return iscsi_segment_seek_sg(&tcp_sw_conn->out.data_segment, tcp_sw_conn 487 drivers/scsi/iscsi_tcp.c struct iscsi_sw_tcp_conn *tcp_sw_conn = tcp_conn->dd_data; tcp_sw_conn 496 drivers/scsi/iscsi_tcp.c hdr_spec_len = ntoh24(tcp_sw_conn->out.hdr->dlength); tcp_sw_conn 500 drivers/scsi/iscsi_tcp.c tx_hash = tcp_sw_conn->tx_hash; tcp_sw_conn 502 drivers/scsi/iscsi_tcp.c iscsi_segment_init_linear(&tcp_sw_conn->out.data_segment, tcp_sw_conn 550 drivers/scsi/iscsi_tcp.c struct iscsi_sw_tcp_conn *tcp_sw_conn; tcp_sw_conn 553 drivers/scsi/iscsi_tcp.c cls_conn = iscsi_tcp_conn_setup(cls_session, sizeof(*tcp_sw_conn), tcp_sw_conn 559 drivers/scsi/iscsi_tcp.c tcp_sw_conn = tcp_conn->dd_data; tcp_sw_conn 565 drivers/scsi/iscsi_tcp.c tcp_sw_conn->tx_hash = ahash_request_alloc(tfm, GFP_KERNEL); tcp_sw_conn 566 drivers/scsi/iscsi_tcp.c if (!tcp_sw_conn->tx_hash) tcp_sw_conn 568 drivers/scsi/iscsi_tcp.c ahash_request_set_callback(tcp_sw_conn->tx_hash, 0, NULL, NULL); tcp_sw_conn 570 drivers/scsi/iscsi_tcp.c tcp_sw_conn->rx_hash = ahash_request_alloc(tfm, GFP_KERNEL); tcp_sw_conn 571 drivers/scsi/iscsi_tcp.c if (!tcp_sw_conn->rx_hash) tcp_sw_conn 573 drivers/scsi/iscsi_tcp.c ahash_request_set_callback(tcp_sw_conn->rx_hash, 0, NULL, NULL); tcp_sw_conn 575 drivers/scsi/iscsi_tcp.c tcp_conn->rx_hash = tcp_sw_conn->rx_hash; tcp_sw_conn 580 drivers/scsi/iscsi_tcp.c ahash_request_free(tcp_sw_conn->tx_hash); tcp_sw_conn 597 drivers/scsi/iscsi_tcp.c struct iscsi_sw_tcp_conn *tcp_sw_conn = tcp_conn->dd_data; tcp_sw_conn 598 drivers/scsi/iscsi_tcp.c struct socket *sock = tcp_sw_conn->sock; tcp_sw_conn 608 drivers/scsi/iscsi_tcp.c tcp_sw_conn->sock = NULL; tcp_sw_conn 617 drivers/scsi/iscsi_tcp.c struct iscsi_sw_tcp_conn *tcp_sw_conn = tcp_conn->dd_data; tcp_sw_conn 621 drivers/scsi/iscsi_tcp.c ahash_request_free(tcp_sw_conn->rx_hash); tcp_sw_conn 622 drivers/scsi/iscsi_tcp.c if (tcp_sw_conn->tx_hash) { tcp_sw_conn 625 drivers/scsi/iscsi_tcp.c tfm = crypto_ahash_reqtfm(tcp_sw_conn->tx_hash); tcp_sw_conn 626 drivers/scsi/iscsi_tcp.c ahash_request_free(tcp_sw_conn->tx_hash); tcp_sw_conn 637 drivers/scsi/iscsi_tcp.c struct iscsi_sw_tcp_conn *tcp_sw_conn = tcp_conn->dd_data; tcp_sw_conn 638 drivers/scsi/iscsi_tcp.c struct socket *sock = tcp_sw_conn->sock; tcp_sw_conn 664 drivers/scsi/iscsi_tcp.c struct iscsi_sw_tcp_conn *tcp_sw_conn = tcp_conn->dd_data; tcp_sw_conn 683 drivers/scsi/iscsi_tcp.c tcp_sw_conn->sock = sock; tcp_sw_conn 694 drivers/scsi/iscsi_tcp.c tcp_sw_conn->sendpage = tcp_sw_conn->sock->ops->sendpage; tcp_sw_conn 712 drivers/scsi/iscsi_tcp.c struct iscsi_sw_tcp_conn *tcp_sw_conn = tcp_conn->dd_data; tcp_sw_conn 720 drivers/scsi/iscsi_tcp.c tcp_sw_conn->sendpage = conn->datadgst_en ? tcp_sw_conn 721 drivers/scsi/iscsi_tcp.c sock_no_sendpage : tcp_sw_conn->sock->ops->sendpage; tcp_sw_conn 737 drivers/scsi/iscsi_tcp.c struct iscsi_sw_tcp_conn *tcp_sw_conn = tcp_conn->dd_data; tcp_sw_conn 746 drivers/scsi/iscsi_tcp.c if (!tcp_sw_conn || !tcp_sw_conn->sock) { tcp_sw_conn 751 drivers/scsi/iscsi_tcp.c rc = kernel_getsockname(tcp_sw_conn->sock, tcp_sw_conn 754 drivers/scsi/iscsi_tcp.c rc = kernel_getpeername(tcp_sw_conn->sock, tcp_sw_conn 776 drivers/scsi/iscsi_tcp.c struct iscsi_sw_tcp_conn *tcp_sw_conn; tcp_sw_conn 793 drivers/scsi/iscsi_tcp.c tcp_sw_conn = tcp_conn->dd_data; tcp_sw_conn 794 drivers/scsi/iscsi_tcp.c if (!tcp_sw_conn->sock) { tcp_sw_conn 799 drivers/scsi/iscsi_tcp.c rc = kernel_getsockname(tcp_sw_conn->sock, tcp_sw_conn 821 drivers/scsi/iscsi_tcp.c struct iscsi_sw_tcp_conn *tcp_sw_conn = tcp_conn->dd_data; tcp_sw_conn 825 drivers/scsi/iscsi_tcp.c stats->custom[0].value = tcp_sw_conn->sendpage_failures_cnt; tcp_sw_conn 827 drivers/scsi/iscsi_tcp.c stats->custom[1].value = tcp_sw_conn->discontiguous_hdr_cnt;