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()
5469 c->Request.Timeout = 0; in hpsa_ciss_submit()
5470 BUG_ON(cmd->cmd_len > sizeof(c->Request.CDB)); in hpsa_ciss_submit()
5471 c->Request.CDBLen = cmd->cmd_len; in hpsa_ciss_submit()
5472 memcpy(c->Request.CDB, cmd->cmnd, cmd->cmd_len); in hpsa_ciss_submit()
5475 c->Request.type_attr_dir = in hpsa_ciss_submit()
5479 c->Request.type_attr_dir = in hpsa_ciss_submit()
5483 c->Request.type_attr_dir = in hpsa_ciss_submit()
5492 c->Request.type_attr_dir = in hpsa_ciss_submit()
5568 memset(c->Request.CDB, 0, sizeof(c->Request.CDB)); in hpsa_cmd_partial_init()
6412 (iocommand->Request.Type.Direction != XFER_NONE)) { in hpsa_passthru_ioctl()
6419 if (iocommand->Request.Type.Direction & XFER_WRITE) { in hpsa_passthru_ioctl()
6447 memcpy(&c->Request, &iocommand->Request, in hpsa_passthru_ioctl()
6448 sizeof(c->Request)); in hpsa_passthru_ioctl()
6477 if ((iocommand->Request.Type.Direction & XFER_READ) && in hpsa_passthru_ioctl()
6509 (ioc->Request.Type.Direction != XFER_NONE)) in hpsa_big_passthru_ioctl()
6536 if (ioc->Request.Type.Direction & XFER_WRITE) { in hpsa_big_passthru_ioctl()
6555 memcpy(&c->Request, &ioc->Request, sizeof(c->Request)); in hpsa_big_passthru_ioctl()
6588 if ((ioc->Request.Type.Direction & XFER_READ) && ioc->buf_size > 0) { in hpsa_big_passthru_ioctl()
6686 c->Request.CDB[1] = reset_type; /* fill_cmd defaults to target reset */ in hpsa_send_host_reset()
6719 c->Request.CDB[1] = 0x01; in fill_cmd()
6720 c->Request.CDB[2] = (page_code & 0xff); in fill_cmd()
6722 c->Request.CDBLen = 6; in fill_cmd()
6723 c->Request.type_attr_dir = in fill_cmd()
6725 c->Request.Timeout = 0; in fill_cmd()
6726 c->Request.CDB[0] = HPSA_INQUIRY; in fill_cmd()
6727 c->Request.CDB[4] = size & 0xFF; in fill_cmd()
6730 c->Request.CDBLen = 6; 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[1] = 1; in fill_cmd()
6736 c->Request.CDB[2] = 1; in fill_cmd()
6737 c->Request.CDB[3] = (size >> 8) & 0xFF; in fill_cmd()
6738 c->Request.CDB[4] = size & 0xFF; in fill_cmd()
6745 c->Request.CDBLen = 12; in fill_cmd()
6746 c->Request.type_attr_dir = in fill_cmd()
6748 c->Request.Timeout = 0; in fill_cmd()
6749 c->Request.CDB[0] = cmd; in fill_cmd()
6750 c->Request.CDB[6] = (size >> 24) & 0xFF; /* MSB */ in fill_cmd()
6751 c->Request.CDB[7] = (size >> 16) & 0xFF; in fill_cmd()
6752 c->Request.CDB[8] = (size >> 8) & 0xFF; in fill_cmd()
6753 c->Request.CDB[9] = size & 0xFF; in fill_cmd()
6756 c->Request.CDBLen = 16; in fill_cmd()
6757 c->Request.type_attr_dir = in fill_cmd()
6759 c->Request.Timeout = 0; in fill_cmd()
6761 c->Request.CDB[0] = BMIC_READ; in fill_cmd()
6762 c->Request.CDB[6] = BMIC_SENSE_DIAG_OPTIONS; in fill_cmd()
6765 c->Request.CDBLen = 16; in fill_cmd()
6766 c->Request.type_attr_dir = in fill_cmd()
6769 c->Request.Timeout = 0; in fill_cmd()
6770 c->Request.CDB[0] = BMIC_WRITE; in fill_cmd()
6771 c->Request.CDB[6] = BMIC_SET_DIAG_OPTIONS; in fill_cmd()
6774 c->Request.CDBLen = 12; in fill_cmd()
6775 c->Request.type_attr_dir = in fill_cmd()
6778 c->Request.Timeout = 0; in fill_cmd()
6779 c->Request.CDB[0] = BMIC_WRITE; in fill_cmd()
6780 c->Request.CDB[6] = BMIC_CACHE_FLUSH; in fill_cmd()
6781 c->Request.CDB[7] = (size >> 8) & 0xFF; in fill_cmd()
6782 c->Request.CDB[8] = size & 0xFF; in fill_cmd()
6785 c->Request.CDBLen = 6; in fill_cmd()
6786 c->Request.type_attr_dir = in fill_cmd()
6788 c->Request.Timeout = 0; in fill_cmd()
6791 c->Request.CDBLen = 12; in fill_cmd()
6792 c->Request.type_attr_dir = in fill_cmd()
6794 c->Request.Timeout = 0; in fill_cmd()
6795 c->Request.CDB[0] = HPSA_CISS_READ; in fill_cmd()
6796 c->Request.CDB[1] = cmd; in fill_cmd()
6797 c->Request.CDB[6] = (size >> 24) & 0xFF; /* MSB */ in fill_cmd()
6798 c->Request.CDB[7] = (size >> 16) & 0xFF; in fill_cmd()
6799 c->Request.CDB[8] = (size >> 8) & 0xFF; in fill_cmd()
6800 c->Request.CDB[9] = size & 0xFF; in fill_cmd()
6803 c->Request.CDBLen = 10; in fill_cmd()
6804 c->Request.type_attr_dir = in fill_cmd()
6806 c->Request.Timeout = 0; in fill_cmd()
6807 c->Request.CDB[0] = BMIC_READ; in fill_cmd()
6808 c->Request.CDB[6] = BMIC_SENSE_CONTROLLER_PARAMETERS; in fill_cmd()
6809 c->Request.CDB[7] = (size >> 16) & 0xFF; in fill_cmd()
6810 c->Request.CDB[8] = (size >> 8) & 0xFF; in fill_cmd()
6813 c->Request.CDBLen = 10; in fill_cmd()
6814 c->Request.type_attr_dir = in fill_cmd()
6816 c->Request.Timeout = 0; in fill_cmd()
6817 c->Request.CDB[0] = BMIC_READ; in fill_cmd()
6818 c->Request.CDB[6] = BMIC_IDENTIFY_PHYSICAL_DEVICE; in fill_cmd()
6819 c->Request.CDB[7] = (size >> 16) & 0xFF; in fill_cmd()
6820 c->Request.CDB[8] = (size >> 8) & 0XFF; in fill_cmd()
6823 c->Request.CDBLen = 10; in fill_cmd()
6824 c->Request.type_attr_dir = in fill_cmd()
6826 c->Request.Timeout = 0; in fill_cmd()
6827 c->Request.CDB[0] = BMIC_READ; in fill_cmd()
6828 c->Request.CDB[6] = BMIC_SENSE_SUBSYSTEM_INFORMATION; in fill_cmd()
6829 c->Request.CDB[7] = (size >> 16) & 0xFF; in fill_cmd()
6830 c->Request.CDB[8] = (size >> 8) & 0XFF; in fill_cmd()
6833 c->Request.CDBLen = 10; in fill_cmd()
6834 c->Request.type_attr_dir = in fill_cmd()
6836 c->Request.Timeout = 0; in fill_cmd()
6837 c->Request.CDB[0] = BMIC_READ; in fill_cmd()
6838 c->Request.CDB[6] = BMIC_SENSE_STORAGE_BOX_PARAMS; 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()
6843 c->Request.CDBLen = 10; in fill_cmd()
6844 c->Request.type_attr_dir = in fill_cmd()
6846 c->Request.Timeout = 0; in fill_cmd()
6847 c->Request.CDB[0] = BMIC_READ; in fill_cmd()
6848 c->Request.CDB[1] = 0; in fill_cmd()
6849 c->Request.CDB[2] = 0; in fill_cmd()
6850 c->Request.CDB[3] = 0; in fill_cmd()
6851 c->Request.CDB[4] = 0; in fill_cmd()
6852 c->Request.CDB[5] = 0; in fill_cmd()
6853 c->Request.CDB[6] = BMIC_IDENTIFY_CONTROLLER; in fill_cmd()
6854 c->Request.CDB[7] = (size >> 16) & 0xFF; in fill_cmd()
6855 c->Request.CDB[8] = (size >> 8) & 0XFF; in fill_cmd()
6856 c->Request.CDB[9] = 0; in fill_cmd()
6866 c->Request.CDBLen = 16; in fill_cmd()
6867 c->Request.type_attr_dir = in fill_cmd()
6869 c->Request.Timeout = 0; /* Don't time out */ in fill_cmd()
6870 memset(&c->Request.CDB[0], 0, sizeof(c->Request.CDB)); in fill_cmd()
6871 c->Request.CDB[0] = HPSA_RESET; in fill_cmd()
6872 c->Request.CDB[1] = HPSA_TARGET_RESET_TYPE; 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()
6880 c->Request.CDBLen = 16; in fill_cmd()
6881 c->Request.type_attr_dir = in fill_cmd()
6883 c->Request.Timeout = 0; /* Don't time out */ in fill_cmd()
6884 memset(&c->Request.CDB[0], 0, sizeof(c->Request.CDB)); in fill_cmd()
6885 c->Request.CDB[0] = cmd; in fill_cmd()
6886 c->Request.CDB[1] = HPSA_RESET_TYPE_LUN; in fill_cmd()
6889 c->Request.CDB[4] = 0x00; in fill_cmd()
6890 c->Request.CDB[5] = 0x00; in fill_cmd()
6891 c->Request.CDB[6] = 0x00; in fill_cmd()
6892 c->Request.CDB[7] = 0x00; in fill_cmd()
6904 switch (GET_DIR(c->Request.type_attr_dir)) { in fill_cmd()
7093 struct RequestBlock Request; in hpsa_message() member
7137 cmd->Request.CDBLen = 16; in hpsa_message()
7138 cmd->Request.type_attr_dir = in hpsa_message()
7140 cmd->Request.Timeout = 0; /* Don't time out */ in hpsa_message()
7141 cmd->Request.CDB[0] = opcode; in hpsa_message()
7142 cmd->Request.CDB[1] = type; in hpsa_message()
7143 memset(&cmd->Request.CDB[2], 0, 14); /* rest of the CDB is reserved */ in hpsa_message()