tcp_conn 1430 drivers/scsi/cxgbi/libcxgbi.c struct iscsi_tcp_conn *tcp_conn = task->conn->dd_data; tcp_conn 1431 drivers/scsi/cxgbi/libcxgbi.c struct cxgbi_conn *cconn = tcp_conn->dd_data; tcp_conn 1463 drivers/scsi/cxgbi/libcxgbi.c struct iscsi_tcp_conn *tcp_conn = conn->dd_data; tcp_conn 1464 drivers/scsi/cxgbi/libcxgbi.c struct cxgbi_conn *cconn = tcp_conn->dd_data; tcp_conn 1503 drivers/scsi/cxgbi/libcxgbi.c struct iscsi_tcp_conn *tcp_conn = conn->dd_data; tcp_conn 1504 drivers/scsi/cxgbi/libcxgbi.c struct cxgbi_conn *cconn = tcp_conn->dd_data; tcp_conn 1587 drivers/scsi/cxgbi/libcxgbi.c struct iscsi_tcp_conn *tcp_conn = conn->dd_data; tcp_conn 1594 drivers/scsi/cxgbi/libcxgbi.c if (!iscsi_tcp_recv_segment_is_hdr(tcp_conn)) { tcp_conn 1641 drivers/scsi/cxgbi/libcxgbi.c struct iscsi_tcp_conn *tcp_conn = conn->dd_data; tcp_conn 1643 drivers/scsi/cxgbi/libcxgbi.c int opcode = tcp_conn->in.hdr->opcode & ISCSI_OPCODE_MASK; tcp_conn 1657 drivers/scsi/cxgbi/libcxgbi.c if (iscsi_tcp_recv_segment_is_hdr(tcp_conn)) tcp_conn 1670 drivers/scsi/cxgbi/libcxgbi.c skb, opcode, ntohl(tcp_conn->in.hdr->itt), tcp_conn 1671 drivers/scsi/cxgbi/libcxgbi.c tcp_conn->in.datalen, offloaded ? "is" : "not"); tcp_conn 1888 drivers/scsi/cxgbi/libcxgbi.c struct iscsi_tcp_conn *tcp_conn = task->conn->dd_data; tcp_conn 1889 drivers/scsi/cxgbi/libcxgbi.c struct cxgbi_conn *cconn = tcp_conn->dd_data; tcp_conn 2064 drivers/scsi/cxgbi/libcxgbi.c struct iscsi_tcp_conn *tcp_conn = task->conn->dd_data; tcp_conn 2065 drivers/scsi/cxgbi/libcxgbi.c struct cxgbi_conn *cconn = tcp_conn->dd_data; tcp_conn 2202 drivers/scsi/cxgbi/libcxgbi.c struct iscsi_tcp_conn *tcp_conn = conn->dd_data; tcp_conn 2203 drivers/scsi/cxgbi/libcxgbi.c struct cxgbi_conn *cconn = tcp_conn->dd_data; tcp_conn 2221 drivers/scsi/cxgbi/libcxgbi.c struct iscsi_tcp_conn *tcp_conn = conn->dd_data; tcp_conn 2222 drivers/scsi/cxgbi/libcxgbi.c struct cxgbi_conn *cconn = tcp_conn->dd_data; tcp_conn 2245 drivers/scsi/cxgbi/libcxgbi.c struct iscsi_tcp_conn *tcp_conn = conn->dd_data; tcp_conn 2246 drivers/scsi/cxgbi/libcxgbi.c struct cxgbi_conn *cconn = tcp_conn->dd_data; tcp_conn 2349 drivers/scsi/cxgbi/libcxgbi.c struct iscsi_tcp_conn *tcp_conn; tcp_conn 2357 drivers/scsi/cxgbi/libcxgbi.c tcp_conn = conn->dd_data; tcp_conn 2358 drivers/scsi/cxgbi/libcxgbi.c cconn = tcp_conn->dd_data; tcp_conn 2363 drivers/scsi/cxgbi/libcxgbi.c cid, cid, cls_session, cls_conn, conn, tcp_conn, cconn); tcp_conn 2374 drivers/scsi/cxgbi/libcxgbi.c struct iscsi_tcp_conn *tcp_conn = conn->dd_data; tcp_conn 2375 drivers/scsi/cxgbi/libcxgbi.c struct cxgbi_conn *cconn = tcp_conn->dd_data; tcp_conn 2417 drivers/scsi/cxgbi/libcxgbi.c iscsi_tcp_hdr_recv_prep(tcp_conn); tcp_conn 128 drivers/scsi/iscsi_tcp.c struct iscsi_tcp_conn *tcp_conn; tcp_conn 137 drivers/scsi/iscsi_tcp.c tcp_conn = conn->dd_data; tcp_conn 153 drivers/scsi/iscsi_tcp.c iscsi_tcp_segment_unmap(&tcp_conn->in.segment); tcp_conn 159 drivers/scsi/iscsi_tcp.c struct iscsi_tcp_conn *tcp_conn; tcp_conn 173 drivers/scsi/iscsi_tcp.c tcp_conn = conn->dd_data; tcp_conn 174 drivers/scsi/iscsi_tcp.c tcp_sw_conn = tcp_conn->dd_data; tcp_conn 189 drivers/scsi/iscsi_tcp.c struct iscsi_tcp_conn *tcp_conn; tcp_conn 200 drivers/scsi/iscsi_tcp.c tcp_conn = conn->dd_data; tcp_conn 201 drivers/scsi/iscsi_tcp.c tcp_sw_conn = tcp_conn->dd_data; tcp_conn 213 drivers/scsi/iscsi_tcp.c struct iscsi_tcp_conn *tcp_conn = conn->dd_data; tcp_conn 214 drivers/scsi/iscsi_tcp.c struct iscsi_sw_tcp_conn *tcp_sw_conn = tcp_conn->dd_data; tcp_conn 232 drivers/scsi/iscsi_tcp.c struct iscsi_tcp_conn *tcp_conn = conn->dd_data; tcp_conn 233 drivers/scsi/iscsi_tcp.c struct iscsi_sw_tcp_conn *tcp_sw_conn = tcp_conn->dd_data; tcp_conn 259 drivers/scsi/iscsi_tcp.c static int iscsi_sw_tcp_xmit_segment(struct iscsi_tcp_conn *tcp_conn, tcp_conn 262 drivers/scsi/iscsi_tcp.c struct iscsi_sw_tcp_conn *tcp_sw_conn = tcp_conn->dd_data; tcp_conn 267 drivers/scsi/iscsi_tcp.c while (!iscsi_tcp_segment_done(tcp_conn, segment, 0, r)) { tcp_conn 310 drivers/scsi/iscsi_tcp.c struct iscsi_tcp_conn *tcp_conn = conn->dd_data; tcp_conn 311 drivers/scsi/iscsi_tcp.c struct iscsi_sw_tcp_conn *tcp_sw_conn = tcp_conn->dd_data; tcp_conn 317 drivers/scsi/iscsi_tcp.c rc = iscsi_sw_tcp_xmit_segment(tcp_conn, segment); tcp_conn 335 drivers/scsi/iscsi_tcp.c rc = segment->done(tcp_conn, segment); tcp_conn 361 drivers/scsi/iscsi_tcp.c struct iscsi_tcp_conn *tcp_conn = conn->dd_data; tcp_conn 362 drivers/scsi/iscsi_tcp.c struct iscsi_sw_tcp_conn *tcp_sw_conn = tcp_conn->dd_data; tcp_conn 372 drivers/scsi/iscsi_tcp.c struct iscsi_tcp_conn *tcp_conn = conn->dd_data; tcp_conn 373 drivers/scsi/iscsi_tcp.c struct iscsi_sw_tcp_conn *tcp_sw_conn = tcp_conn->dd_data; tcp_conn 403 drivers/scsi/iscsi_tcp.c static int iscsi_sw_tcp_send_hdr_done(struct iscsi_tcp_conn *tcp_conn, tcp_conn 406 drivers/scsi/iscsi_tcp.c struct iscsi_sw_tcp_conn *tcp_sw_conn = tcp_conn->dd_data; tcp_conn 409 drivers/scsi/iscsi_tcp.c ISCSI_SW_TCP_DBG(tcp_conn->iscsi_conn, tcp_conn 419 drivers/scsi/iscsi_tcp.c struct iscsi_tcp_conn *tcp_conn = conn->dd_data; tcp_conn 420 drivers/scsi/iscsi_tcp.c struct iscsi_sw_tcp_conn *tcp_sw_conn = tcp_conn->dd_data; tcp_conn 460 drivers/scsi/iscsi_tcp.c struct iscsi_tcp_conn *tcp_conn = conn->dd_data; tcp_conn 461 drivers/scsi/iscsi_tcp.c struct iscsi_sw_tcp_conn *tcp_sw_conn = tcp_conn->dd_data; tcp_conn 486 drivers/scsi/iscsi_tcp.c struct iscsi_tcp_conn *tcp_conn = conn->dd_data; tcp_conn 487 drivers/scsi/iscsi_tcp.c struct iscsi_sw_tcp_conn *tcp_sw_conn = tcp_conn->dd_data; tcp_conn 549 drivers/scsi/iscsi_tcp.c struct iscsi_tcp_conn *tcp_conn; tcp_conn 558 drivers/scsi/iscsi_tcp.c tcp_conn = conn->dd_data; tcp_conn 559 drivers/scsi/iscsi_tcp.c tcp_sw_conn = tcp_conn->dd_data; tcp_conn 575 drivers/scsi/iscsi_tcp.c tcp_conn->rx_hash = tcp_sw_conn->rx_hash; tcp_conn 596 drivers/scsi/iscsi_tcp.c struct iscsi_tcp_conn *tcp_conn = conn->dd_data; tcp_conn 597 drivers/scsi/iscsi_tcp.c struct iscsi_sw_tcp_conn *tcp_sw_conn = tcp_conn->dd_data; tcp_conn 616 drivers/scsi/iscsi_tcp.c struct iscsi_tcp_conn *tcp_conn = conn->dd_data; tcp_conn 617 drivers/scsi/iscsi_tcp.c struct iscsi_sw_tcp_conn *tcp_sw_conn = tcp_conn->dd_data; tcp_conn 636 drivers/scsi/iscsi_tcp.c struct iscsi_tcp_conn *tcp_conn = conn->dd_data; tcp_conn 637 drivers/scsi/iscsi_tcp.c struct iscsi_sw_tcp_conn *tcp_sw_conn = tcp_conn->dd_data; tcp_conn 663 drivers/scsi/iscsi_tcp.c struct iscsi_tcp_conn *tcp_conn = conn->dd_data; tcp_conn 664 drivers/scsi/iscsi_tcp.c struct iscsi_sw_tcp_conn *tcp_sw_conn = tcp_conn->dd_data; tcp_conn 698 drivers/scsi/iscsi_tcp.c iscsi_tcp_hdr_recv_prep(tcp_conn); tcp_conn 711 drivers/scsi/iscsi_tcp.c struct iscsi_tcp_conn *tcp_conn = conn->dd_data; tcp_conn 712 drivers/scsi/iscsi_tcp.c struct iscsi_sw_tcp_conn *tcp_sw_conn = tcp_conn->dd_data; tcp_conn 736 drivers/scsi/iscsi_tcp.c struct iscsi_tcp_conn *tcp_conn = conn->dd_data; tcp_conn 737 drivers/scsi/iscsi_tcp.c struct iscsi_sw_tcp_conn *tcp_sw_conn = tcp_conn->dd_data; tcp_conn 775 drivers/scsi/iscsi_tcp.c struct iscsi_tcp_conn *tcp_conn; tcp_conn 791 drivers/scsi/iscsi_tcp.c tcp_conn = conn->dd_data; tcp_conn 793 drivers/scsi/iscsi_tcp.c tcp_sw_conn = tcp_conn->dd_data; tcp_conn 820 drivers/scsi/iscsi_tcp.c struct iscsi_tcp_conn *tcp_conn = conn->dd_data; tcp_conn 821 drivers/scsi/iscsi_tcp.c struct iscsi_sw_tcp_conn *tcp_sw_conn = tcp_conn->dd_data; tcp_conn 63 drivers/scsi/libiscsi_tcp.c static int iscsi_tcp_hdr_recv_done(struct iscsi_tcp_conn *tcp_conn, tcp_conn 190 drivers/scsi/libiscsi_tcp.c int iscsi_tcp_segment_done(struct iscsi_tcp_conn *tcp_conn, tcp_conn 197 drivers/scsi/libiscsi_tcp.c ISCSI_DBG_TCP(tcp_conn->iscsi_conn, "copied %u %u size %u %s\n", tcp_conn 233 drivers/scsi/libiscsi_tcp.c ISCSI_DBG_TCP(tcp_conn->iscsi_conn, "total copied %u total size %u\n", tcp_conn 245 drivers/scsi/libiscsi_tcp.c if (!(tcp_conn->iscsi_conn->session->tt->caps & CAP_PADDING_OFFLOAD)) { tcp_conn 248 drivers/scsi/libiscsi_tcp.c ISCSI_DBG_TCP(tcp_conn->iscsi_conn, tcp_conn 292 drivers/scsi/libiscsi_tcp.c iscsi_tcp_segment_recv(struct iscsi_tcp_conn *tcp_conn, tcp_conn 298 drivers/scsi/libiscsi_tcp.c while (!iscsi_tcp_segment_done(tcp_conn, segment, 1, copy)) { tcp_conn 300 drivers/scsi/libiscsi_tcp.c ISCSI_DBG_TCP(tcp_conn->iscsi_conn, tcp_conn 306 drivers/scsi/libiscsi_tcp.c ISCSI_DBG_TCP(tcp_conn->iscsi_conn, "copying %d\n", copy); tcp_conn 326 drivers/scsi/libiscsi_tcp.c iscsi_tcp_dgst_verify(struct iscsi_tcp_conn *tcp_conn, tcp_conn 334 drivers/scsi/libiscsi_tcp.c ISCSI_DBG_TCP(tcp_conn->iscsi_conn, "digest mismatch\n"); tcp_conn 400 drivers/scsi/libiscsi_tcp.c void iscsi_tcp_hdr_recv_prep(struct iscsi_tcp_conn *tcp_conn) tcp_conn 402 drivers/scsi/libiscsi_tcp.c ISCSI_DBG_TCP(tcp_conn->iscsi_conn, tcp_conn 403 drivers/scsi/libiscsi_tcp.c "(%s)\n", tcp_conn->iscsi_conn->hdrdgst_en ? tcp_conn 405 drivers/scsi/libiscsi_tcp.c iscsi_segment_init_linear(&tcp_conn->in.segment, tcp_conn 406 drivers/scsi/libiscsi_tcp.c tcp_conn->in.hdr_buf, sizeof(struct iscsi_hdr), tcp_conn 415 drivers/scsi/libiscsi_tcp.c iscsi_tcp_data_recv_done(struct iscsi_tcp_conn *tcp_conn, tcp_conn 418 drivers/scsi/libiscsi_tcp.c struct iscsi_conn *conn = tcp_conn->iscsi_conn; tcp_conn 421 drivers/scsi/libiscsi_tcp.c if (!iscsi_tcp_dgst_verify(tcp_conn, segment)) tcp_conn 424 drivers/scsi/libiscsi_tcp.c rc = iscsi_complete_pdu(conn, tcp_conn->in.hdr, tcp_conn 425 drivers/scsi/libiscsi_tcp.c conn->data, tcp_conn->in.datalen); tcp_conn 429 drivers/scsi/libiscsi_tcp.c iscsi_tcp_hdr_recv_prep(tcp_conn); tcp_conn 434 drivers/scsi/libiscsi_tcp.c iscsi_tcp_data_recv_prep(struct iscsi_tcp_conn *tcp_conn) tcp_conn 436 drivers/scsi/libiscsi_tcp.c struct iscsi_conn *conn = tcp_conn->iscsi_conn; tcp_conn 441 drivers/scsi/libiscsi_tcp.c rx_hash = tcp_conn->rx_hash; tcp_conn 443 drivers/scsi/libiscsi_tcp.c iscsi_segment_init_linear(&tcp_conn->in.segment, tcp_conn 444 drivers/scsi/libiscsi_tcp.c conn->data, tcp_conn->in.datalen, tcp_conn 488 drivers/scsi/libiscsi_tcp.c struct iscsi_tcp_conn *tcp_conn = conn->dd_data; tcp_conn 490 drivers/scsi/libiscsi_tcp.c struct iscsi_data_rsp *rhdr = (struct iscsi_data_rsp *)tcp_conn->in.hdr; tcp_conn 501 drivers/scsi/libiscsi_tcp.c if (tcp_conn->in.datalen == 0) tcp_conn 513 drivers/scsi/libiscsi_tcp.c if (tcp_task->data_offset + tcp_conn->in.datalen > total_in_length) { tcp_conn 516 drivers/scsi/libiscsi_tcp.c tcp_conn->in.datalen, total_in_length); tcp_conn 533 drivers/scsi/libiscsi_tcp.c struct iscsi_tcp_conn *tcp_conn = conn->dd_data; tcp_conn 534 drivers/scsi/libiscsi_tcp.c struct iscsi_r2t_rsp *rhdr = (struct iscsi_r2t_rsp *)tcp_conn->in.hdr; tcp_conn 541 drivers/scsi/libiscsi_tcp.c if (tcp_conn->in.datalen) { tcp_conn 544 drivers/scsi/libiscsi_tcp.c tcp_conn->in.datalen); tcp_conn 616 drivers/scsi/libiscsi_tcp.c iscsi_tcp_process_data_in(struct iscsi_tcp_conn *tcp_conn, tcp_conn 619 drivers/scsi/libiscsi_tcp.c struct iscsi_conn *conn = tcp_conn->iscsi_conn; tcp_conn 620 drivers/scsi/libiscsi_tcp.c struct iscsi_hdr *hdr = tcp_conn->in.hdr; tcp_conn 623 drivers/scsi/libiscsi_tcp.c if (!iscsi_tcp_dgst_verify(tcp_conn, segment)) tcp_conn 628 drivers/scsi/libiscsi_tcp.c rc = iscsi_complete_pdu(conn, tcp_conn->in.hdr, NULL, 0); tcp_conn 633 drivers/scsi/libiscsi_tcp.c iscsi_tcp_hdr_recv_prep(tcp_conn); tcp_conn 651 drivers/scsi/libiscsi_tcp.c struct iscsi_tcp_conn *tcp_conn = conn->dd_data; tcp_conn 655 drivers/scsi/libiscsi_tcp.c tcp_conn->in.datalen = ntoh24(hdr->dlength); tcp_conn 656 drivers/scsi/libiscsi_tcp.c if (tcp_conn->in.datalen > conn->max_recv_dlength) { tcp_conn 659 drivers/scsi/libiscsi_tcp.c tcp_conn->in.datalen, conn->max_recv_dlength); tcp_conn 675 drivers/scsi/libiscsi_tcp.c opcode, ahslen, tcp_conn->in.datalen); tcp_conn 690 drivers/scsi/libiscsi_tcp.c if (tcp_conn->in.datalen) { tcp_conn 705 drivers/scsi/libiscsi_tcp.c rx_hash = tcp_conn->rx_hash; tcp_conn 710 drivers/scsi/libiscsi_tcp.c tcp_conn->in.datalen); tcp_conn 712 drivers/scsi/libiscsi_tcp.c rc = iscsi_segment_seek_sg(&tcp_conn->in.segment, tcp_conn 716 drivers/scsi/libiscsi_tcp.c tcp_conn->in.datalen, tcp_conn 726 drivers/scsi/libiscsi_tcp.c if (tcp_conn->in.datalen) { tcp_conn 727 drivers/scsi/libiscsi_tcp.c iscsi_tcp_data_recv_prep(tcp_conn); tcp_conn 757 drivers/scsi/libiscsi_tcp.c if (ISCSI_DEF_MAX_RECV_SEG_LEN < tcp_conn->in.datalen) { tcp_conn 762 drivers/scsi/libiscsi_tcp.c tcp_conn->in.datalen, tcp_conn 771 drivers/scsi/libiscsi_tcp.c if (tcp_conn->in.datalen) { tcp_conn 772 drivers/scsi/libiscsi_tcp.c iscsi_tcp_data_recv_prep(tcp_conn); tcp_conn 789 drivers/scsi/libiscsi_tcp.c if (tcp_conn->in.datalen) tcp_conn 791 drivers/scsi/libiscsi_tcp.c iscsi_tcp_hdr_recv_prep(tcp_conn); tcp_conn 807 drivers/scsi/libiscsi_tcp.c iscsi_tcp_hdr_recv_done(struct iscsi_tcp_conn *tcp_conn, tcp_conn 810 drivers/scsi/libiscsi_tcp.c struct iscsi_conn *conn = tcp_conn->iscsi_conn; tcp_conn 817 drivers/scsi/libiscsi_tcp.c hdr = (struct iscsi_hdr *) tcp_conn->in.hdr_buf; tcp_conn 825 drivers/scsi/libiscsi_tcp.c if (sizeof(*hdr) + ahslen > sizeof(tcp_conn->in.hdr_buf)) tcp_conn 849 drivers/scsi/libiscsi_tcp.c iscsi_tcp_dgst_header(tcp_conn->rx_hash, hdr, tcp_conn 853 drivers/scsi/libiscsi_tcp.c if (!iscsi_tcp_dgst_verify(tcp_conn, segment)) tcp_conn 857 drivers/scsi/libiscsi_tcp.c tcp_conn->in.hdr = hdr; tcp_conn 868 drivers/scsi/libiscsi_tcp.c inline int iscsi_tcp_recv_segment_is_hdr(struct iscsi_tcp_conn *tcp_conn) tcp_conn 870 drivers/scsi/libiscsi_tcp.c return tcp_conn->in.segment.done == iscsi_tcp_hdr_recv_done; tcp_conn 888 drivers/scsi/libiscsi_tcp.c struct iscsi_tcp_conn *tcp_conn = conn->dd_data; tcp_conn 889 drivers/scsi/libiscsi_tcp.c struct iscsi_segment *segment = &tcp_conn->in.segment; tcp_conn 929 drivers/scsi/libiscsi_tcp.c rc = iscsi_tcp_segment_recv(tcp_conn, segment, ptr, avail); tcp_conn 942 drivers/scsi/libiscsi_tcp.c rc = segment->done(tcp_conn, segment); tcp_conn 1096 drivers/scsi/libiscsi_tcp.c struct iscsi_tcp_conn *tcp_conn; tcp_conn 1099 drivers/scsi/libiscsi_tcp.c sizeof(*tcp_conn) + dd_data_size, conn_idx); tcp_conn 1109 drivers/scsi/libiscsi_tcp.c tcp_conn = conn->dd_data; tcp_conn 1110 drivers/scsi/libiscsi_tcp.c tcp_conn->iscsi_conn = conn; tcp_conn 1111 drivers/scsi/libiscsi_tcp.c tcp_conn->dd_data = conn->dd_data + sizeof(*tcp_conn); tcp_conn 86 include/scsi/libiscsi_tcp.h extern void iscsi_tcp_hdr_recv_prep(struct iscsi_tcp_conn *tcp_conn); tcp_conn 94 include/scsi/libiscsi_tcp.h extern int iscsi_tcp_recv_segment_is_hdr(struct iscsi_tcp_conn *tcp_conn); tcp_conn 95 include/scsi/libiscsi_tcp.h extern int iscsi_tcp_segment_done(struct iscsi_tcp_conn *tcp_conn,