Lines Matching refs:payload_length
824 int data_direction, payload_length; in iscsit_setup_scsi_cmd() local
839 payload_length = ntoh24(hdr->dlength); in iscsit_setup_scsi_cmd()
896 if (payload_length && !conn->sess->sess_ops->ImmediateData) { in iscsit_setup_scsi_cmd()
898 " protocol error.\n", payload_length); in iscsit_setup_scsi_cmd()
903 if ((be32_to_cpu(hdr->data_length )== payload_length) && in iscsit_setup_scsi_cmd()
912 if (payload_length > be32_to_cpu(hdr->data_length)) { in iscsit_setup_scsi_cmd()
914 " EDTL: %u, protocol error.\n", payload_length, in iscsit_setup_scsi_cmd()
920 if (payload_length > conn->conn_ops->MaxXmitDataSegmentLength) { in iscsit_setup_scsi_cmd()
923 payload_length, conn->conn_ops->MaxXmitDataSegmentLength); in iscsit_setup_scsi_cmd()
928 if (payload_length > conn->sess->sess_ops->FirstBurstLength) { in iscsit_setup_scsi_cmd()
931 payload_length, conn->sess->sess_ops->FirstBurstLength); in iscsit_setup_scsi_cmd()
963 cmd->immediate_data = (payload_length) ? 1 : 0; in iscsit_setup_scsi_cmd()
980 cmd->first_burst_len = payload_length; in iscsit_setup_scsi_cmd()
1005 hdr->cmdsn, be32_to_cpu(hdr->data_length), payload_length, in iscsit_setup_scsi_cmd()
1026 if (iscsit_build_pdu_and_seq_lists(cmd, payload_length) < 0) { in iscsit_setup_scsi_cmd()
1254 u32 payload_length, in iscsit_do_crypto_hash_buf() argument
1263 sg_init_one(&sg, buf, payload_length); in iscsit_do_crypto_hash_buf()
1264 crypto_hash_update(hash, &sg, payload_length); in iscsit_do_crypto_hash_buf()
1281 u32 payload_length = ntoh24(hdr->dlength); in iscsit_check_dataout_hdr() local
1284 if (!payload_length) { in iscsit_check_dataout_hdr()
1292 conn->sess->rx_data_octets += payload_length; in iscsit_check_dataout_hdr()
1295 conn->sess->se_sess->se_node_acl->write_bytes += payload_length; in iscsit_check_dataout_hdr()
1300 if (payload_length > conn->conn_ops->MaxXmitDataSegmentLength) { in iscsit_check_dataout_hdr()
1302 " MaxXmitDataSegmentLength: %u\n", payload_length, in iscsit_check_dataout_hdr()
1309 payload_length); in iscsit_check_dataout_hdr()
1316 payload_length, conn->cid); in iscsit_check_dataout_hdr()
1322 return iscsit_dump_data_payload(conn, payload_length, 1); in iscsit_check_dataout_hdr()
1334 if ((be32_to_cpu(hdr->offset) + payload_length) > cmd->se_cmd.data_length) { in iscsit_check_dataout_hdr()
1337 hdr->offset, payload_length, cmd->se_cmd.data_length); in iscsit_check_dataout_hdr()
1379 return iscsit_dump_data_payload(conn, payload_length, 1); in iscsit_check_dataout_hdr()
1400 return iscsit_dump_data_payload(conn, payload_length, 1); in iscsit_check_dataout_hdr()
1424 u32 payload_length = ntoh24(hdr->dlength); in iscsit_get_dataout() local
1427 rx_size += payload_length; in iscsit_get_dataout()
1431 payload_length); in iscsit_get_dataout()
1437 padding = ((-payload_length) & 3); in iscsit_get_dataout()
1463 payload_length, padding, in iscsit_get_dataout()
1470 hdr->itt, hdr->offset, payload_length, in iscsit_get_dataout()
1476 payload_length); in iscsit_get_dataout()
1549 u32 checksum, data_crc, padding = 0, payload_length; in iscsit_handle_nop_out() local
1555 payload_length = ntoh24(hdr->dlength); in iscsit_handle_nop_out()
1564 if (payload_length > conn->conn_ops->MaxXmitDataSegmentLength) { in iscsit_handle_nop_out()
1567 " error.\n", payload_length, in iscsit_handle_nop_out()
1577 payload_length); in iscsit_handle_nop_out()
1602 if (payload_length && hdr->ttt == cpu_to_be32(0xFFFFFFFF)) { in iscsit_handle_nop_out()
1603 rx_size = payload_length; in iscsit_handle_nop_out()
1604 ping_data = kzalloc(payload_length + 1, GFP_KERNEL); in iscsit_handle_nop_out()
1614 iov[niov++].iov_len = payload_length; in iscsit_handle_nop_out()
1616 padding = ((-payload_length) & 3); in iscsit_handle_nop_out()
1638 ping_data, payload_length, in iscsit_handle_nop_out()
1666 checksum, payload_length); in iscsit_handle_nop_out()
1670 ping_data[payload_length] = '\0'; in iscsit_handle_nop_out()
1675 cmd->buf_ptr_size = payload_length; in iscsit_handle_nop_out()
1678 " data.\n", payload_length); in iscsit_handle_nop_out()
1971 u32 checksum = 0, data_crc = 0, payload_length; in iscsit_handle_text_cmd() local
1978 payload_length = ntoh24(hdr->dlength); in iscsit_handle_text_cmd()
1980 if (payload_length > conn->conn_ops->MaxXmitDataSegmentLength) { in iscsit_handle_text_cmd()
1983 payload_length, conn->conn_ops->MaxXmitDataSegmentLength); in iscsit_handle_text_cmd()
1990 hdr->exp_statsn, payload_length); in iscsit_handle_text_cmd()
1992 rx_size = text_length = payload_length; in iscsit_handle_text_cmd()
2005 padding = ((-payload_length) & 3); in iscsit_handle_text_cmd()