Lines Matching refs:Request
1138 if (!is_firmware_flash_cmd(c->Request.CDB)) in dial_down_lockup_detection_during_fw_flash()
1147 if (is_firmware_flash_cmd(c->Request.CDB) && in dial_up_lockup_detection_on_fw_flash_complete()
2648 cp->Request.CDBLen = le16_to_cpu(c->io_flags) & in complete_scsi_command()
2652 memcpy(cp->Request.CDB, c->CDB, cp->Request.CDBLen); in complete_scsi_command()
2733 "CDB %16phN data overrun\n", cp->Request.CDB); in complete_scsi_command()
2750 cp->Request.CDB); in complete_scsi_command()
2755 cp->Request.CDB); in complete_scsi_command()
2760 cp->Request.CDB); in complete_scsi_command()
2768 cp->Request.CDB); in complete_scsi_command()
2773 cp->Request.CDB); in complete_scsi_command()
2778 cp->Request.CDB); in complete_scsi_command()
2921 const u8 *cdb = c->Request.CDB; in hpsa_print_cmd()
3365 c->Request.CDB[2] = bmic_device_index & 0xff; in hpsa_bmic_sense_subsystem_information()
3366 c->Request.CDB[9] = (bmic_device_index >> 8) & 0xff; in hpsa_bmic_sense_subsystem_information()
3424 c->Request.CDB[2] = bmic_device_index & 0xff; in hpsa_bmic_id_physical_device()
3425 c->Request.CDB[9] = (bmic_device_index >> 8) & 0xff; in hpsa_bmic_id_physical_device()
3504 c->Request.CDB[5] = id_phys->box_index; in hpsa_get_enclosure_info()
3506 c->Request.CDB[5] = 0; in hpsa_get_enclosure_info()
3761 c->Request.CDB[1] = extended_response; in hpsa_scsi_do_report_luns()
5471 c->Request.Timeout = 0; in hpsa_ciss_submit()
5472 BUG_ON(cmd->cmd_len > sizeof(c->Request.CDB)); in hpsa_ciss_submit()
5473 c->Request.CDBLen = cmd->cmd_len; in hpsa_ciss_submit()
5474 memcpy(c->Request.CDB, cmd->cmnd, cmd->cmd_len); in hpsa_ciss_submit()
5477 c->Request.type_attr_dir = in hpsa_ciss_submit()
5481 c->Request.type_attr_dir = in hpsa_ciss_submit()
5485 c->Request.type_attr_dir = in hpsa_ciss_submit()
5494 c->Request.type_attr_dir = in hpsa_ciss_submit()
5570 memset(c->Request.CDB, 0, sizeof(c->Request.CDB)); in hpsa_cmd_partial_init()
6416 (iocommand->Request.Type.Direction != XFER_NONE)) { in hpsa_passthru_ioctl()
6423 if (iocommand->Request.Type.Direction & XFER_WRITE) { in hpsa_passthru_ioctl()
6451 memcpy(&c->Request, &iocommand->Request, in hpsa_passthru_ioctl()
6452 sizeof(c->Request)); in hpsa_passthru_ioctl()
6481 if ((iocommand->Request.Type.Direction & XFER_READ) && in hpsa_passthru_ioctl()
6513 (ioc->Request.Type.Direction != XFER_NONE)) in hpsa_big_passthru_ioctl()
6540 if (ioc->Request.Type.Direction & XFER_WRITE) { in hpsa_big_passthru_ioctl()
6559 memcpy(&c->Request, &ioc->Request, sizeof(c->Request)); in hpsa_big_passthru_ioctl()
6592 if ((ioc->Request.Type.Direction & XFER_READ) && ioc->buf_size > 0) { in hpsa_big_passthru_ioctl()
6690 c->Request.CDB[1] = reset_type; /* fill_cmd defaults to target reset */ in hpsa_send_host_reset()
6723 c->Request.CDB[1] = 0x01; in fill_cmd()
6724 c->Request.CDB[2] = (page_code & 0xff); in fill_cmd()
6726 c->Request.CDBLen = 6; in fill_cmd()
6727 c->Request.type_attr_dir = in fill_cmd()
6729 c->Request.Timeout = 0; in fill_cmd()
6730 c->Request.CDB[0] = HPSA_INQUIRY; in fill_cmd()
6731 c->Request.CDB[4] = size & 0xFF; in fill_cmd()
6734 c->Request.CDBLen = 6; in fill_cmd()
6735 c->Request.type_attr_dir = in fill_cmd()
6737 c->Request.Timeout = 0; in fill_cmd()
6738 c->Request.CDB[0] = cmd; in fill_cmd()
6739 c->Request.CDB[1] = 1; in fill_cmd()
6740 c->Request.CDB[2] = 1; in fill_cmd()
6741 c->Request.CDB[3] = (size >> 8) & 0xFF; in fill_cmd()
6742 c->Request.CDB[4] = size & 0xFF; in fill_cmd()
6749 c->Request.CDBLen = 12; in fill_cmd()
6750 c->Request.type_attr_dir = in fill_cmd()
6752 c->Request.Timeout = 0; in fill_cmd()
6753 c->Request.CDB[0] = cmd; in fill_cmd()
6754 c->Request.CDB[6] = (size >> 24) & 0xFF; /* MSB */ in fill_cmd()
6755 c->Request.CDB[7] = (size >> 16) & 0xFF; in fill_cmd()
6756 c->Request.CDB[8] = (size >> 8) & 0xFF; in fill_cmd()
6757 c->Request.CDB[9] = size & 0xFF; in fill_cmd()
6760 c->Request.CDBLen = 16; in fill_cmd()
6761 c->Request.type_attr_dir = in fill_cmd()
6763 c->Request.Timeout = 0; in fill_cmd()
6765 c->Request.CDB[0] = BMIC_READ; in fill_cmd()
6766 c->Request.CDB[6] = BMIC_SENSE_DIAG_OPTIONS; in fill_cmd()
6769 c->Request.CDBLen = 16; in fill_cmd()
6770 c->Request.type_attr_dir = in fill_cmd()
6773 c->Request.Timeout = 0; in fill_cmd()
6774 c->Request.CDB[0] = BMIC_WRITE; in fill_cmd()
6775 c->Request.CDB[6] = BMIC_SET_DIAG_OPTIONS; in fill_cmd()
6778 c->Request.CDBLen = 12; in fill_cmd()
6779 c->Request.type_attr_dir = in fill_cmd()
6782 c->Request.Timeout = 0; in fill_cmd()
6783 c->Request.CDB[0] = BMIC_WRITE; in fill_cmd()
6784 c->Request.CDB[6] = BMIC_CACHE_FLUSH; in fill_cmd()
6785 c->Request.CDB[7] = (size >> 8) & 0xFF; in fill_cmd()
6786 c->Request.CDB[8] = size & 0xFF; in fill_cmd()
6789 c->Request.CDBLen = 6; in fill_cmd()
6790 c->Request.type_attr_dir = in fill_cmd()
6792 c->Request.Timeout = 0; in fill_cmd()
6795 c->Request.CDBLen = 12; in fill_cmd()
6796 c->Request.type_attr_dir = in fill_cmd()
6798 c->Request.Timeout = 0; in fill_cmd()
6799 c->Request.CDB[0] = HPSA_CISS_READ; in fill_cmd()
6800 c->Request.CDB[1] = cmd; in fill_cmd()
6801 c->Request.CDB[6] = (size >> 24) & 0xFF; /* MSB */ in fill_cmd()
6802 c->Request.CDB[7] = (size >> 16) & 0xFF; in fill_cmd()
6803 c->Request.CDB[8] = (size >> 8) & 0xFF; in fill_cmd()
6804 c->Request.CDB[9] = size & 0xFF; in fill_cmd()
6807 c->Request.CDBLen = 10; in fill_cmd()
6808 c->Request.type_attr_dir = in fill_cmd()
6810 c->Request.Timeout = 0; in fill_cmd()
6811 c->Request.CDB[0] = BMIC_READ; in fill_cmd()
6812 c->Request.CDB[6] = BMIC_SENSE_CONTROLLER_PARAMETERS; in fill_cmd()
6813 c->Request.CDB[7] = (size >> 16) & 0xFF; in fill_cmd()
6814 c->Request.CDB[8] = (size >> 8) & 0xFF; in fill_cmd()
6817 c->Request.CDBLen = 10; in fill_cmd()
6818 c->Request.type_attr_dir = in fill_cmd()
6820 c->Request.Timeout = 0; in fill_cmd()
6821 c->Request.CDB[0] = BMIC_READ; in fill_cmd()
6822 c->Request.CDB[6] = BMIC_IDENTIFY_PHYSICAL_DEVICE; in fill_cmd()
6823 c->Request.CDB[7] = (size >> 16) & 0xFF; in fill_cmd()
6824 c->Request.CDB[8] = (size >> 8) & 0XFF; in fill_cmd()
6827 c->Request.CDBLen = 10; in fill_cmd()
6828 c->Request.type_attr_dir = in fill_cmd()
6830 c->Request.Timeout = 0; in fill_cmd()
6831 c->Request.CDB[0] = BMIC_READ; in fill_cmd()
6832 c->Request.CDB[6] = BMIC_SENSE_SUBSYSTEM_INFORMATION; in fill_cmd()
6833 c->Request.CDB[7] = (size >> 16) & 0xFF; in fill_cmd()
6834 c->Request.CDB[8] = (size >> 8) & 0XFF; in fill_cmd()
6837 c->Request.CDBLen = 10; in fill_cmd()
6838 c->Request.type_attr_dir = in fill_cmd()
6840 c->Request.Timeout = 0; in fill_cmd()
6841 c->Request.CDB[0] = BMIC_READ; in fill_cmd()
6842 c->Request.CDB[6] = BMIC_SENSE_STORAGE_BOX_PARAMS; in fill_cmd()
6843 c->Request.CDB[7] = (size >> 16) & 0xFF; in fill_cmd()
6844 c->Request.CDB[8] = (size >> 8) & 0XFF; in fill_cmd()
6847 c->Request.CDBLen = 10; in fill_cmd()
6848 c->Request.type_attr_dir = in fill_cmd()
6850 c->Request.Timeout = 0; in fill_cmd()
6851 c->Request.CDB[0] = BMIC_READ; in fill_cmd()
6852 c->Request.CDB[1] = 0; in fill_cmd()
6853 c->Request.CDB[2] = 0; in fill_cmd()
6854 c->Request.CDB[3] = 0; in fill_cmd()
6855 c->Request.CDB[4] = 0; in fill_cmd()
6856 c->Request.CDB[5] = 0; in fill_cmd()
6857 c->Request.CDB[6] = BMIC_IDENTIFY_CONTROLLER; in fill_cmd()
6858 c->Request.CDB[7] = (size >> 16) & 0xFF; in fill_cmd()
6859 c->Request.CDB[8] = (size >> 8) & 0XFF; in fill_cmd()
6860 c->Request.CDB[9] = 0; in fill_cmd()
6870 c->Request.CDBLen = 16; in fill_cmd()
6871 c->Request.type_attr_dir = in fill_cmd()
6873 c->Request.Timeout = 0; /* Don't time out */ in fill_cmd()
6874 memset(&c->Request.CDB[0], 0, sizeof(c->Request.CDB)); in fill_cmd()
6875 c->Request.CDB[0] = HPSA_RESET; in fill_cmd()
6876 c->Request.CDB[1] = HPSA_TARGET_RESET_TYPE; in fill_cmd()
6878 c->Request.CDB[4] = 0x00; in fill_cmd()
6879 c->Request.CDB[5] = 0x00; in fill_cmd()
6880 c->Request.CDB[6] = 0x00; in fill_cmd()
6881 c->Request.CDB[7] = 0x00; in fill_cmd()
6884 c->Request.CDBLen = 16; in fill_cmd()
6885 c->Request.type_attr_dir = in fill_cmd()
6887 c->Request.Timeout = 0; /* Don't time out */ in fill_cmd()
6888 memset(&c->Request.CDB[0], 0, sizeof(c->Request.CDB)); in fill_cmd()
6889 c->Request.CDB[0] = cmd; in fill_cmd()
6890 c->Request.CDB[1] = HPSA_RESET_TYPE_LUN; in fill_cmd()
6893 c->Request.CDB[4] = 0x00; in fill_cmd()
6894 c->Request.CDB[5] = 0x00; in fill_cmd()
6895 c->Request.CDB[6] = 0x00; in fill_cmd()
6896 c->Request.CDB[7] = 0x00; in fill_cmd()
6908 switch (GET_DIR(c->Request.type_attr_dir)) { in fill_cmd()
7097 struct RequestBlock Request; in hpsa_message() member
7141 cmd->Request.CDBLen = 16; in hpsa_message()
7142 cmd->Request.type_attr_dir = in hpsa_message()
7144 cmd->Request.Timeout = 0; /* Don't time out */ in hpsa_message()
7145 cmd->Request.CDB[0] = opcode; in hpsa_message()
7146 cmd->Request.CDB[1] = type; in hpsa_message()
7147 memset(&cmd->Request.CDB[2], 0, 14); /* rest of the CDB is reserved */ in hpsa_message()