Lines Matching refs:Request
1135 if (!is_firmware_flash_cmd(c->Request.CDB)) in dial_down_lockup_detection_during_fw_flash()
1144 if (is_firmware_flash_cmd(c->Request.CDB) && in dial_up_lockup_detection_on_fw_flash_complete()
2644 cp->Request.CDBLen = le16_to_cpu(c->io_flags) & in complete_scsi_command()
2648 memcpy(cp->Request.CDB, c->CDB, cp->Request.CDBLen); in complete_scsi_command()
2729 "CDB %16phN data overrun\n", cp->Request.CDB); in complete_scsi_command()
2746 cp->Request.CDB); in complete_scsi_command()
2751 cp->Request.CDB); in complete_scsi_command()
2756 cp->Request.CDB); in complete_scsi_command()
2764 cp->Request.CDB); in complete_scsi_command()
2769 cp->Request.CDB); in complete_scsi_command()
2774 cp->Request.CDB); in complete_scsi_command()
2917 const u8 *cdb = c->Request.CDB; in hpsa_print_cmd()
3361 c->Request.CDB[2] = bmic_device_index & 0xff; in hpsa_bmic_sense_subsystem_information()
3362 c->Request.CDB[9] = (bmic_device_index >> 8) & 0xff; in hpsa_bmic_sense_subsystem_information()
3420 c->Request.CDB[2] = bmic_device_index & 0xff; in hpsa_bmic_id_physical_device()
3421 c->Request.CDB[9] = (bmic_device_index >> 8) & 0xff; in hpsa_bmic_id_physical_device()
3500 c->Request.CDB[5] = id_phys->box_index; in hpsa_get_enclosure_info()
3502 c->Request.CDB[5] = 0; in hpsa_get_enclosure_info()
3757 c->Request.CDB[1] = extended_response; in hpsa_scsi_do_report_luns()
5473 c->Request.Timeout = 0; in hpsa_ciss_submit()
5474 BUG_ON(cmd->cmd_len > sizeof(c->Request.CDB)); in hpsa_ciss_submit()
5475 c->Request.CDBLen = cmd->cmd_len; in hpsa_ciss_submit()
5476 memcpy(c->Request.CDB, cmd->cmnd, cmd->cmd_len); in hpsa_ciss_submit()
5479 c->Request.type_attr_dir = in hpsa_ciss_submit()
5483 c->Request.type_attr_dir = in hpsa_ciss_submit()
5487 c->Request.type_attr_dir = in hpsa_ciss_submit()
5496 c->Request.type_attr_dir = in hpsa_ciss_submit()
5572 memset(c->Request.CDB, 0, sizeof(c->Request.CDB)); in hpsa_cmd_partial_init()
6384 (iocommand->Request.Type.Direction != XFER_NONE)) { in hpsa_passthru_ioctl()
6391 if (iocommand->Request.Type.Direction & XFER_WRITE) { in hpsa_passthru_ioctl()
6419 memcpy(&c->Request, &iocommand->Request, in hpsa_passthru_ioctl()
6420 sizeof(c->Request)); in hpsa_passthru_ioctl()
6449 if ((iocommand->Request.Type.Direction & XFER_READ) && in hpsa_passthru_ioctl()
6481 (ioc->Request.Type.Direction != XFER_NONE)) in hpsa_big_passthru_ioctl()
6508 if (ioc->Request.Type.Direction & XFER_WRITE) { in hpsa_big_passthru_ioctl()
6527 memcpy(&c->Request, &ioc->Request, sizeof(c->Request)); in hpsa_big_passthru_ioctl()
6560 if ((ioc->Request.Type.Direction & XFER_READ) && ioc->buf_size > 0) { in hpsa_big_passthru_ioctl()
6658 c->Request.CDB[1] = reset_type; /* fill_cmd defaults to target reset */ in hpsa_send_host_reset()
6691 c->Request.CDB[1] = 0x01; in fill_cmd()
6692 c->Request.CDB[2] = (page_code & 0xff); in fill_cmd()
6694 c->Request.CDBLen = 6; in fill_cmd()
6695 c->Request.type_attr_dir = in fill_cmd()
6697 c->Request.Timeout = 0; in fill_cmd()
6698 c->Request.CDB[0] = HPSA_INQUIRY; in fill_cmd()
6699 c->Request.CDB[4] = size & 0xFF; in fill_cmd()
6702 c->Request.CDBLen = 6; in fill_cmd()
6703 c->Request.type_attr_dir = in fill_cmd()
6705 c->Request.Timeout = 0; in fill_cmd()
6706 c->Request.CDB[0] = cmd; in fill_cmd()
6707 c->Request.CDB[1] = 1; in fill_cmd()
6708 c->Request.CDB[2] = 1; in fill_cmd()
6709 c->Request.CDB[3] = (size >> 8) & 0xFF; in fill_cmd()
6710 c->Request.CDB[4] = size & 0xFF; in fill_cmd()
6717 c->Request.CDBLen = 12; in fill_cmd()
6718 c->Request.type_attr_dir = in fill_cmd()
6720 c->Request.Timeout = 0; in fill_cmd()
6721 c->Request.CDB[0] = cmd; in fill_cmd()
6722 c->Request.CDB[6] = (size >> 24) & 0xFF; /* MSB */ in fill_cmd()
6723 c->Request.CDB[7] = (size >> 16) & 0xFF; in fill_cmd()
6724 c->Request.CDB[8] = (size >> 8) & 0xFF; in fill_cmd()
6725 c->Request.CDB[9] = size & 0xFF; in fill_cmd()
6728 c->Request.CDBLen = 16; in fill_cmd()
6729 c->Request.type_attr_dir = in fill_cmd()
6731 c->Request.Timeout = 0; in fill_cmd()
6733 c->Request.CDB[0] = BMIC_READ; in fill_cmd()
6734 c->Request.CDB[6] = BMIC_SENSE_DIAG_OPTIONS; in fill_cmd()
6737 c->Request.CDBLen = 16; in fill_cmd()
6738 c->Request.type_attr_dir = in fill_cmd()
6741 c->Request.Timeout = 0; in fill_cmd()
6742 c->Request.CDB[0] = BMIC_WRITE; in fill_cmd()
6743 c->Request.CDB[6] = BMIC_SET_DIAG_OPTIONS; in fill_cmd()
6746 c->Request.CDBLen = 12; in fill_cmd()
6747 c->Request.type_attr_dir = in fill_cmd()
6750 c->Request.Timeout = 0; in fill_cmd()
6751 c->Request.CDB[0] = BMIC_WRITE; in fill_cmd()
6752 c->Request.CDB[6] = BMIC_CACHE_FLUSH; in fill_cmd()
6753 c->Request.CDB[7] = (size >> 8) & 0xFF; in fill_cmd()
6754 c->Request.CDB[8] = size & 0xFF; in fill_cmd()
6757 c->Request.CDBLen = 6; in fill_cmd()
6758 c->Request.type_attr_dir = in fill_cmd()
6760 c->Request.Timeout = 0; in fill_cmd()
6763 c->Request.CDBLen = 12; in fill_cmd()
6764 c->Request.type_attr_dir = in fill_cmd()
6766 c->Request.Timeout = 0; in fill_cmd()
6767 c->Request.CDB[0] = HPSA_CISS_READ; in fill_cmd()
6768 c->Request.CDB[1] = cmd; in fill_cmd()
6769 c->Request.CDB[6] = (size >> 24) & 0xFF; /* MSB */ in fill_cmd()
6770 c->Request.CDB[7] = (size >> 16) & 0xFF; in fill_cmd()
6771 c->Request.CDB[8] = (size >> 8) & 0xFF; in fill_cmd()
6772 c->Request.CDB[9] = size & 0xFF; in fill_cmd()
6775 c->Request.CDBLen = 10; in fill_cmd()
6776 c->Request.type_attr_dir = in fill_cmd()
6778 c->Request.Timeout = 0; in fill_cmd()
6779 c->Request.CDB[0] = BMIC_READ; in fill_cmd()
6780 c->Request.CDB[6] = BMIC_SENSE_CONTROLLER_PARAMETERS; in fill_cmd()
6781 c->Request.CDB[7] = (size >> 16) & 0xFF; in fill_cmd()
6782 c->Request.CDB[8] = (size >> 8) & 0xFF; in fill_cmd()
6785 c->Request.CDBLen = 10; in fill_cmd()
6786 c->Request.type_attr_dir = in fill_cmd()
6788 c->Request.Timeout = 0; in fill_cmd()
6789 c->Request.CDB[0] = BMIC_READ; in fill_cmd()
6790 c->Request.CDB[6] = BMIC_IDENTIFY_PHYSICAL_DEVICE; in fill_cmd()
6791 c->Request.CDB[7] = (size >> 16) & 0xFF; in fill_cmd()
6792 c->Request.CDB[8] = (size >> 8) & 0XFF; in fill_cmd()
6795 c->Request.CDBLen = 10; 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] = BMIC_READ; in fill_cmd()
6800 c->Request.CDB[6] = BMIC_SENSE_SUBSYSTEM_INFORMATION; in fill_cmd()
6801 c->Request.CDB[7] = (size >> 16) & 0xFF; in fill_cmd()
6802 c->Request.CDB[8] = (size >> 8) & 0XFF; in fill_cmd()
6805 c->Request.CDBLen = 10; in fill_cmd()
6806 c->Request.type_attr_dir = in fill_cmd()
6808 c->Request.Timeout = 0; in fill_cmd()
6809 c->Request.CDB[0] = BMIC_READ; in fill_cmd()
6810 c->Request.CDB[6] = BMIC_SENSE_STORAGE_BOX_PARAMS; in fill_cmd()
6811 c->Request.CDB[7] = (size >> 16) & 0xFF; in fill_cmd()
6812 c->Request.CDB[8] = (size >> 8) & 0XFF; in fill_cmd()
6815 c->Request.CDBLen = 10; in fill_cmd()
6816 c->Request.type_attr_dir = in fill_cmd()
6818 c->Request.Timeout = 0; in fill_cmd()
6819 c->Request.CDB[0] = BMIC_READ; in fill_cmd()
6820 c->Request.CDB[1] = 0; in fill_cmd()
6821 c->Request.CDB[2] = 0; in fill_cmd()
6822 c->Request.CDB[3] = 0; in fill_cmd()
6823 c->Request.CDB[4] = 0; in fill_cmd()
6824 c->Request.CDB[5] = 0; in fill_cmd()
6825 c->Request.CDB[6] = BMIC_IDENTIFY_CONTROLLER; in fill_cmd()
6826 c->Request.CDB[7] = (size >> 16) & 0xFF; in fill_cmd()
6827 c->Request.CDB[8] = (size >> 8) & 0XFF; in fill_cmd()
6828 c->Request.CDB[9] = 0; in fill_cmd()
6838 c->Request.CDBLen = 16; in fill_cmd()
6839 c->Request.type_attr_dir = in fill_cmd()
6841 c->Request.Timeout = 0; /* Don't time out */ in fill_cmd()
6842 memset(&c->Request.CDB[0], 0, sizeof(c->Request.CDB)); in fill_cmd()
6843 c->Request.CDB[0] = HPSA_RESET; in fill_cmd()
6844 c->Request.CDB[1] = HPSA_TARGET_RESET_TYPE; in fill_cmd()
6846 c->Request.CDB[4] = 0x00; in fill_cmd()
6847 c->Request.CDB[5] = 0x00; in fill_cmd()
6848 c->Request.CDB[6] = 0x00; in fill_cmd()
6849 c->Request.CDB[7] = 0x00; in fill_cmd()
6852 c->Request.CDBLen = 16; in fill_cmd()
6853 c->Request.type_attr_dir = in fill_cmd()
6855 c->Request.Timeout = 0; /* Don't time out */ in fill_cmd()
6856 memset(&c->Request.CDB[0], 0, sizeof(c->Request.CDB)); in fill_cmd()
6857 c->Request.CDB[0] = cmd; in fill_cmd()
6858 c->Request.CDB[1] = HPSA_RESET_TYPE_LUN; in fill_cmd()
6861 c->Request.CDB[4] = 0x00; in fill_cmd()
6862 c->Request.CDB[5] = 0x00; in fill_cmd()
6863 c->Request.CDB[6] = 0x00; in fill_cmd()
6864 c->Request.CDB[7] = 0x00; in fill_cmd()
6876 switch (GET_DIR(c->Request.type_attr_dir)) { in fill_cmd()
7065 struct RequestBlock Request; in hpsa_message() member
7109 cmd->Request.CDBLen = 16; in hpsa_message()
7110 cmd->Request.type_attr_dir = in hpsa_message()
7112 cmd->Request.Timeout = 0; /* Don't time out */ in hpsa_message()
7113 cmd->Request.CDB[0] = opcode; in hpsa_message()
7114 cmd->Request.CDB[1] = type; in hpsa_message()
7115 memset(&cmd->Request.CDB[2], 0, 14); /* rest of the CDB is reserved */ in hpsa_message()