Lines Matching refs:sense_data_length
1688 size_t sense_data_length; in pqi_keep_device_offline() local
1721 sense_data_length = get_unaligned_le16(&error_info.sense_data_length); in pqi_keep_device_offline()
1722 if (sense_data_length == 0) in pqi_keep_device_offline()
1723 sense_data_length = in pqi_keep_device_offline()
1725 if (sense_data_length) { in pqi_keep_device_offline()
1726 if (sense_data_length > sizeof(error_info.data)) in pqi_keep_device_offline()
1727 sense_data_length = sizeof(error_info.data); in pqi_keep_device_offline()
1734 sense_data_length, &sshdr) && in pqi_keep_device_offline()
3127 size_t sense_data_length; in pqi_process_raid_io_error() local
3179 sense_data_length = get_unaligned_le16(&error_info->sense_data_length); in pqi_process_raid_io_error()
3180 if (sense_data_length == 0) in pqi_process_raid_io_error()
3181 sense_data_length = in pqi_process_raid_io_error()
3183 if (sense_data_length) { in pqi_process_raid_io_error()
3184 if (sense_data_length > sizeof(error_info->data)) in pqi_process_raid_io_error()
3185 sense_data_length = sizeof(error_info->data); in pqi_process_raid_io_error()
3189 sense_data_length, &sshdr) && in pqi_process_raid_io_error()
3212 if (sense_data_length > SCSI_SENSE_BUFFERSIZE) in pqi_process_raid_io_error()
3213 sense_data_length = SCSI_SENSE_BUFFERSIZE; in pqi_process_raid_io_error()
3215 sense_data_length); in pqi_process_raid_io_error()
3228 size_t sense_data_length; in pqi_process_aio_io_error() local
3237 sense_data_length = 0; in pqi_process_aio_io_error()
3300 sense_data_length = in pqi_process_aio_io_error()
3302 if (sense_data_length) { in pqi_process_aio_io_error()
3303 if (sense_data_length > sizeof(error_info->data)) in pqi_process_aio_io_error()
3304 sense_data_length = sizeof(error_info->data); in pqi_process_aio_io_error()
3305 if (sense_data_length > SCSI_SENSE_BUFFERSIZE) in pqi_process_aio_io_error()
3306 sense_data_length = SCSI_SENSE_BUFFERSIZE; in pqi_process_aio_io_error()
3308 sense_data_length); in pqi_process_aio_io_error()
3312 if (device_offline && sense_data_length == 0) in pqi_process_aio_io_error()
6541 size_t sense_data_length; member
6548 size_t sense_data_length; in pqi_error_info_to_ciss() local
6593 sense_data_length = in pqi_error_info_to_ciss()
6594 get_unaligned_le16(&pqi_error_info->sense_data_length); in pqi_error_info_to_ciss()
6595 if (sense_data_length == 0) in pqi_error_info_to_ciss()
6596 sense_data_length = in pqi_error_info_to_ciss()
6598 if (sense_data_length) in pqi_error_info_to_ciss()
6599 if (sense_data_length > sizeof(pqi_error_info->data)) in pqi_error_info_to_ciss()
6600 sense_data_length = sizeof(pqi_error_info->data); in pqi_error_info_to_ciss()
6604 ciss_error_info->sense_data_length = sense_data_length; in pqi_error_info_to_ciss()
6612 size_t sense_data_length; in pqi_passthru_ioctl() local
6719 sense_data_length = ciss_error_info.sense_data_length; in pqi_passthru_ioctl()
6720 if (sense_data_length) { in pqi_passthru_ioctl()
6721 if (sense_data_length > in pqi_passthru_ioctl()
6723 sense_data_length = in pqi_passthru_ioctl()
6726 pqi_error_info.data, sense_data_length); in pqi_passthru_ioctl()
6727 iocommand.error_info.SenseLen = sense_data_length; in pqi_passthru_ioctl()
10059 sense_data_length) != 0x8); in pqi_verify_structures()