Lines Matching refs:Request

1132 	if (!is_firmware_flash_cmd(c->Request.CDB))  in dial_down_lockup_detection_during_fw_flash()
1141 if (is_firmware_flash_cmd(c->Request.CDB) && in dial_up_lockup_detection_on_fw_flash_complete()
2639 cp->Request.CDBLen = le16_to_cpu(c->io_flags) & in complete_scsi_command()
2643 memcpy(cp->Request.CDB, c->CDB, cp->Request.CDBLen); in complete_scsi_command()
2722 "CDB %16phN data overrun\n", cp->Request.CDB); in complete_scsi_command()
2739 cp->Request.CDB); in complete_scsi_command()
2744 cp->Request.CDB); in complete_scsi_command()
2749 cp->Request.CDB); in complete_scsi_command()
2757 cp->Request.CDB); in complete_scsi_command()
2762 cp->Request.CDB); in complete_scsi_command()
2767 cp->Request.CDB); in complete_scsi_command()
2910 const u8 *cdb = c->Request.CDB; in hpsa_print_cmd()
3354 c->Request.CDB[2] = bmic_device_index & 0xff; in hpsa_bmic_sense_subsystem_information()
3355 c->Request.CDB[9] = (bmic_device_index >> 8) & 0xff; in hpsa_bmic_sense_subsystem_information()
3413 c->Request.CDB[2] = bmic_device_index & 0xff; in hpsa_bmic_id_physical_device()
3414 c->Request.CDB[9] = (bmic_device_index >> 8) & 0xff; in hpsa_bmic_id_physical_device()
3493 c->Request.CDB[5] = id_phys->box_index; in hpsa_get_enclosure_info()
3495 c->Request.CDB[5] = 0; in hpsa_get_enclosure_info()
3747 c->Request.CDB[1] = extended_response; in hpsa_scsi_do_report_luns()
5455 c->Request.Timeout = 0; in hpsa_ciss_submit()
5456 BUG_ON(cmd->cmd_len > sizeof(c->Request.CDB)); in hpsa_ciss_submit()
5457 c->Request.CDBLen = cmd->cmd_len; in hpsa_ciss_submit()
5458 memcpy(c->Request.CDB, cmd->cmnd, cmd->cmd_len); in hpsa_ciss_submit()
5461 c->Request.type_attr_dir = in hpsa_ciss_submit()
5465 c->Request.type_attr_dir = in hpsa_ciss_submit()
5469 c->Request.type_attr_dir = in hpsa_ciss_submit()
5478 c->Request.type_attr_dir = in hpsa_ciss_submit()
5554 memset(c->Request.CDB, 0, sizeof(c->Request.CDB)); in hpsa_cmd_partial_init()
6399 (iocommand->Request.Type.Direction != XFER_NONE)) { in hpsa_passthru_ioctl()
6403 if (iocommand->Request.Type.Direction & XFER_WRITE) { in hpsa_passthru_ioctl()
6430 memcpy(&c->Request, &iocommand->Request, in hpsa_passthru_ioctl()
6431 sizeof(c->Request)); in hpsa_passthru_ioctl()
6460 if ((iocommand->Request.Type.Direction & XFER_READ) && in hpsa_passthru_ioctl()
6491 (ioc->Request.Type.Direction != XFER_NONE)) in hpsa_big_passthru_ioctl()
6514 if (ioc->Request.Type.Direction & XFER_WRITE) { in hpsa_big_passthru_ioctl()
6540 memcpy(&c->Request, &ioc->Request, sizeof(c->Request)); in hpsa_big_passthru_ioctl()
6573 if ((ioc->Request.Type.Direction & XFER_READ) && ioc->buf_size > 0) { in hpsa_big_passthru_ioctl()
6671 c->Request.CDB[1] = reset_type; /* fill_cmd defaults to target reset */ in hpsa_send_host_reset()
6704 c->Request.CDB[1] = 0x01; in fill_cmd()
6705 c->Request.CDB[2] = (page_code & 0xff); in fill_cmd()
6707 c->Request.CDBLen = 6; in fill_cmd()
6708 c->Request.type_attr_dir = in fill_cmd()
6710 c->Request.Timeout = 0; in fill_cmd()
6711 c->Request.CDB[0] = HPSA_INQUIRY; in fill_cmd()
6712 c->Request.CDB[4] = size & 0xFF; in fill_cmd()
6715 c->Request.CDBLen = 6; in fill_cmd()
6716 c->Request.type_attr_dir = in fill_cmd()
6718 c->Request.Timeout = 0; in fill_cmd()
6719 c->Request.CDB[0] = cmd; in fill_cmd()
6720 c->Request.CDB[1] = 1; in fill_cmd()
6721 c->Request.CDB[2] = 1; in fill_cmd()
6722 c->Request.CDB[3] = (size >> 8) & 0xFF; in fill_cmd()
6723 c->Request.CDB[4] = size & 0xFF; in fill_cmd()
6730 c->Request.CDBLen = 12; in fill_cmd()
6731 c->Request.type_attr_dir = in fill_cmd()
6733 c->Request.Timeout = 0; in fill_cmd()
6734 c->Request.CDB[0] = cmd; in fill_cmd()
6735 c->Request.CDB[6] = (size >> 24) & 0xFF; /* MSB */ in fill_cmd()
6736 c->Request.CDB[7] = (size >> 16) & 0xFF; in fill_cmd()
6737 c->Request.CDB[8] = (size >> 8) & 0xFF; in fill_cmd()
6738 c->Request.CDB[9] = size & 0xFF; in fill_cmd()
6741 c->Request.CDBLen = 16; in fill_cmd()
6742 c->Request.type_attr_dir = in fill_cmd()
6744 c->Request.Timeout = 0; in fill_cmd()
6746 c->Request.CDB[0] = BMIC_READ; in fill_cmd()
6747 c->Request.CDB[6] = BMIC_SENSE_DIAG_OPTIONS; in fill_cmd()
6750 c->Request.CDBLen = 16; in fill_cmd()
6751 c->Request.type_attr_dir = in fill_cmd()
6754 c->Request.Timeout = 0; in fill_cmd()
6755 c->Request.CDB[0] = BMIC_WRITE; in fill_cmd()
6756 c->Request.CDB[6] = BMIC_SET_DIAG_OPTIONS; in fill_cmd()
6759 c->Request.CDBLen = 12; in fill_cmd()
6760 c->Request.type_attr_dir = in fill_cmd()
6763 c->Request.Timeout = 0; in fill_cmd()
6764 c->Request.CDB[0] = BMIC_WRITE; in fill_cmd()
6765 c->Request.CDB[6] = BMIC_CACHE_FLUSH; in fill_cmd()
6766 c->Request.CDB[7] = (size >> 8) & 0xFF; in fill_cmd()
6767 c->Request.CDB[8] = size & 0xFF; in fill_cmd()
6770 c->Request.CDBLen = 6; in fill_cmd()
6771 c->Request.type_attr_dir = in fill_cmd()
6773 c->Request.Timeout = 0; in fill_cmd()
6776 c->Request.CDBLen = 12; in fill_cmd()
6777 c->Request.type_attr_dir = in fill_cmd()
6779 c->Request.Timeout = 0; in fill_cmd()
6780 c->Request.CDB[0] = HPSA_CISS_READ; in fill_cmd()
6781 c->Request.CDB[1] = cmd; in fill_cmd()
6782 c->Request.CDB[6] = (size >> 24) & 0xFF; /* MSB */ in fill_cmd()
6783 c->Request.CDB[7] = (size >> 16) & 0xFF; in fill_cmd()
6784 c->Request.CDB[8] = (size >> 8) & 0xFF; in fill_cmd()
6785 c->Request.CDB[9] = size & 0xFF; in fill_cmd()
6788 c->Request.CDBLen = 10; in fill_cmd()
6789 c->Request.type_attr_dir = in fill_cmd()
6791 c->Request.Timeout = 0; in fill_cmd()
6792 c->Request.CDB[0] = BMIC_READ; in fill_cmd()
6793 c->Request.CDB[6] = BMIC_SENSE_CONTROLLER_PARAMETERS; in fill_cmd()
6794 c->Request.CDB[7] = (size >> 16) & 0xFF; in fill_cmd()
6795 c->Request.CDB[8] = (size >> 8) & 0xFF; in fill_cmd()
6798 c->Request.CDBLen = 10; in fill_cmd()
6799 c->Request.type_attr_dir = in fill_cmd()
6801 c->Request.Timeout = 0; in fill_cmd()
6802 c->Request.CDB[0] = BMIC_READ; in fill_cmd()
6803 c->Request.CDB[6] = BMIC_IDENTIFY_PHYSICAL_DEVICE; in fill_cmd()
6804 c->Request.CDB[7] = (size >> 16) & 0xFF; in fill_cmd()
6805 c->Request.CDB[8] = (size >> 8) & 0XFF; in fill_cmd()
6808 c->Request.CDBLen = 10; in fill_cmd()
6809 c->Request.type_attr_dir = in fill_cmd()
6811 c->Request.Timeout = 0; in fill_cmd()
6812 c->Request.CDB[0] = BMIC_READ; in fill_cmd()
6813 c->Request.CDB[6] = BMIC_SENSE_SUBSYSTEM_INFORMATION; in fill_cmd()
6814 c->Request.CDB[7] = (size >> 16) & 0xFF; in fill_cmd()
6815 c->Request.CDB[8] = (size >> 8) & 0XFF; in fill_cmd()
6818 c->Request.CDBLen = 10; in fill_cmd()
6819 c->Request.type_attr_dir = in fill_cmd()
6821 c->Request.Timeout = 0; in fill_cmd()
6822 c->Request.CDB[0] = BMIC_READ; in fill_cmd()
6823 c->Request.CDB[6] = BMIC_SENSE_STORAGE_BOX_PARAMS; in fill_cmd()
6824 c->Request.CDB[7] = (size >> 16) & 0xFF; in fill_cmd()
6825 c->Request.CDB[8] = (size >> 8) & 0XFF; in fill_cmd()
6828 c->Request.CDBLen = 10; in fill_cmd()
6829 c->Request.type_attr_dir = in fill_cmd()
6831 c->Request.Timeout = 0; in fill_cmd()
6832 c->Request.CDB[0] = BMIC_READ; in fill_cmd()
6833 c->Request.CDB[1] = 0; in fill_cmd()
6834 c->Request.CDB[2] = 0; in fill_cmd()
6835 c->Request.CDB[3] = 0; in fill_cmd()
6836 c->Request.CDB[4] = 0; in fill_cmd()
6837 c->Request.CDB[5] = 0; in fill_cmd()
6838 c->Request.CDB[6] = BMIC_IDENTIFY_CONTROLLER; in fill_cmd()
6839 c->Request.CDB[7] = (size >> 16) & 0xFF; in fill_cmd()
6840 c->Request.CDB[8] = (size >> 8) & 0XFF; in fill_cmd()
6841 c->Request.CDB[9] = 0; in fill_cmd()
6851 c->Request.CDBLen = 16; in fill_cmd()
6852 c->Request.type_attr_dir = in fill_cmd()
6854 c->Request.Timeout = 0; /* Don't time out */ in fill_cmd()
6855 memset(&c->Request.CDB[0], 0, sizeof(c->Request.CDB)); in fill_cmd()
6856 c->Request.CDB[0] = HPSA_RESET; in fill_cmd()
6857 c->Request.CDB[1] = HPSA_TARGET_RESET_TYPE; in fill_cmd()
6859 c->Request.CDB[4] = 0x00; in fill_cmd()
6860 c->Request.CDB[5] = 0x00; in fill_cmd()
6861 c->Request.CDB[6] = 0x00; in fill_cmd()
6862 c->Request.CDB[7] = 0x00; in fill_cmd()
6865 c->Request.CDBLen = 16; in fill_cmd()
6866 c->Request.type_attr_dir = in fill_cmd()
6868 c->Request.Timeout = 0; /* Don't time out */ in fill_cmd()
6869 memset(&c->Request.CDB[0], 0, sizeof(c->Request.CDB)); in fill_cmd()
6870 c->Request.CDB[0] = cmd; in fill_cmd()
6871 c->Request.CDB[1] = HPSA_RESET_TYPE_LUN; in fill_cmd()
6874 c->Request.CDB[4] = 0x00; in fill_cmd()
6875 c->Request.CDB[5] = 0x00; in fill_cmd()
6876 c->Request.CDB[6] = 0x00; in fill_cmd()
6877 c->Request.CDB[7] = 0x00; in fill_cmd()
6889 switch (GET_DIR(c->Request.type_attr_dir)) { in fill_cmd()
7078 struct RequestBlock Request; in hpsa_message() member
7122 cmd->Request.CDBLen = 16; in hpsa_message()
7123 cmd->Request.type_attr_dir = in hpsa_message()
7125 cmd->Request.Timeout = 0; /* Don't time out */ in hpsa_message()
7126 cmd->Request.CDB[0] = opcode; in hpsa_message()
7127 cmd->Request.CDB[1] = type; in hpsa_message()
7128 memset(&cmd->Request.CDB[2], 0, 14); /* rest of the CDB is reserved */ in hpsa_message()