Lines Matching refs:payload_length

1005 	int data_direction, payload_length;  in iscsit_setup_scsi_cmd()  local
1015 payload_length = ntoh24(hdr->dlength); in iscsit_setup_scsi_cmd()
1070 if (payload_length && !conn->sess->sess_ops->ImmediateData) { in iscsit_setup_scsi_cmd()
1072 " protocol error.\n", payload_length); in iscsit_setup_scsi_cmd()
1077 if ((be32_to_cpu(hdr->data_length) == payload_length) && in iscsit_setup_scsi_cmd()
1086 if (payload_length > be32_to_cpu(hdr->data_length)) { in iscsit_setup_scsi_cmd()
1088 " EDTL: %u, protocol error.\n", payload_length, in iscsit_setup_scsi_cmd()
1094 if (payload_length > conn->conn_ops->MaxXmitDataSegmentLength) { in iscsit_setup_scsi_cmd()
1097 payload_length, conn->conn_ops->MaxXmitDataSegmentLength); in iscsit_setup_scsi_cmd()
1102 if (payload_length > conn->sess->sess_ops->FirstBurstLength) { in iscsit_setup_scsi_cmd()
1105 payload_length, conn->sess->sess_ops->FirstBurstLength); in iscsit_setup_scsi_cmd()
1158 cmd->immediate_data = (payload_length) ? 1 : 0; in iscsit_setup_scsi_cmd()
1171 cmd->first_burst_len = payload_length; in iscsit_setup_scsi_cmd()
1199 hdr->cmdsn, be32_to_cpu(hdr->data_length), payload_length, in iscsit_setup_scsi_cmd()
1228 if (iscsit_build_pdu_and_seq_lists(cmd, payload_length) < 0) { in iscsit_setup_scsi_cmd()
1471 const void *buf, u32 payload_length, u32 padding, in iscsit_do_crypto_hash_buf() argument
1477 sg_set_buf(sg, buf, payload_length); in iscsit_do_crypto_hash_buf()
1481 ahash_request_set_crypt(hash, sg, data_crc, payload_length + padding); in iscsit_do_crypto_hash_buf()
1488 struct iscsit_cmd *cmd, u32 payload_length, in __iscsit_check_dataout_hdr() argument
1496 atomic_long_add(payload_length, &conn->sess->rx_data_octets); in __iscsit_check_dataout_hdr()
1501 payload_length, conn->cid); in __iscsit_check_dataout_hdr()
1507 return iscsit_dump_data_payload(conn, payload_length, 1); in __iscsit_check_dataout_hdr()
1513 return iscsit_dump_data_payload(conn, payload_length, 1); in __iscsit_check_dataout_hdr()
1518 if ((be32_to_cpu(hdr->offset) + payload_length) > cmd->se_cmd.data_length) { in __iscsit_check_dataout_hdr()
1520 be32_to_cpu(hdr->offset), payload_length, in __iscsit_check_dataout_hdr()
1555 return iscsit_dump_data_payload(conn, payload_length, 1); in __iscsit_check_dataout_hdr()
1573 return iscsit_dump_data_payload(conn, payload_length, 1); in __iscsit_check_dataout_hdr()
1596 u32 payload_length = ntoh24(hdr->dlength); in iscsit_check_dataout_hdr() local
1600 if (!payload_length) { in iscsit_check_dataout_hdr()
1605 if (payload_length > conn->conn_ops->MaxXmitDataSegmentLength) { in iscsit_check_dataout_hdr()
1607 " MaxXmitDataSegmentLength: %u\n", payload_length, in iscsit_check_dataout_hdr()
1612 cmd = iscsit_find_cmd_from_itt_or_dump(conn, hdr->itt, payload_length); in iscsit_check_dataout_hdr()
1616 rc = __iscsit_check_dataout_hdr(conn, buf, cmd, payload_length, &success); in iscsit_check_dataout_hdr()
1631 u32 payload_length; in iscsit_get_dataout() local
1634 payload_length = min_t(u32, cmd->se_cmd.data_length, in iscsit_get_dataout()
1636 rx_size += payload_length; in iscsit_get_dataout()
1640 be32_to_cpu(hdr->offset), payload_length); in iscsit_get_dataout()
1646 padding = ((-payload_length) & 3); in iscsit_get_dataout()
1673 payload_length, padding, in iscsit_get_dataout()
1680 hdr->itt, hdr->offset, payload_length, in iscsit_get_dataout()
1686 payload_length); in iscsit_get_dataout()
1757 u32 payload_length = ntoh24(hdr->dlength); in iscsit_setup_nop_out() local
1780 if (payload_length > conn->conn_ops->MaxXmitDataSegmentLength) { in iscsit_setup_nop_out()
1783 " error.\n", payload_length, in iscsit_setup_nop_out()
1797 payload_length); in iscsit_setup_nop_out()
1889 u32 payload_length = ntoh24(hdr->dlength); in iscsit_handle_nop_out() local
1898 if (payload_length && hdr->ttt == cpu_to_be32(0xFFFFFFFF)) { in iscsit_handle_nop_out()
1900 int niov = 0, rx_got, rx_size = payload_length; in iscsit_handle_nop_out()
1902 ping_data = kzalloc(payload_length + 1, GFP_KERNEL); in iscsit_handle_nop_out()
1910 iov[niov++].iov_len = payload_length; in iscsit_handle_nop_out()
1912 padding = ((-payload_length) & 3); in iscsit_handle_nop_out()
1935 payload_length, padding, in iscsit_handle_nop_out()
1962 checksum, payload_length); in iscsit_handle_nop_out()
1966 ping_data[payload_length] = '\0'; in iscsit_handle_nop_out()
1971 cmd->buf_ptr_size = payload_length; in iscsit_handle_nop_out()
1974 " data.\n", payload_length); in iscsit_handle_nop_out()
2195 u32 payload_length = ntoh24(hdr->dlength); in iscsit_setup_text_cmd() local
2197 if (payload_length > conn->conn_ops->MaxXmitDataSegmentLength) { in iscsit_setup_text_cmd()
2200 payload_length, conn->conn_ops->MaxXmitDataSegmentLength); in iscsit_setup_text_cmd()
2214 hdr->exp_statsn, payload_length); in iscsit_setup_text_cmd()
2296 u32 payload_length = ntoh24(hdr->dlength); in iscsit_handle_text_cmd() local
2303 rx_size = payload_length; in iscsit_handle_text_cmd()
2304 if (payload_length) { in iscsit_handle_text_cmd()
2310 rx_size = ALIGN(payload_length, 4); in iscsit_handle_text_cmd()
2321 padding = rx_size - payload_length; in iscsit_handle_text_cmd()
2364 checksum, payload_length); in iscsit_handle_text_cmd()
2367 text_in[payload_length - 1] = '\0'; in iscsit_handle_text_cmd()
2369 " data.\n", payload_length); in iscsit_handle_text_cmd()