Lines Matching refs:Request

1131 	if (!is_firmware_flash_cmd(c->Request.CDB))  in dial_down_lockup_detection_during_fw_flash()
1140 if (is_firmware_flash_cmd(c->Request.CDB) && in dial_up_lockup_detection_on_fw_flash_complete()
2642 cp->Request.CDBLen = le16_to_cpu(c->io_flags) & in complete_scsi_command()
2646 memcpy(cp->Request.CDB, c->CDB, cp->Request.CDBLen); in complete_scsi_command()
2727 "CDB %16phN data overrun\n", cp->Request.CDB); in complete_scsi_command()
2744 cp->Request.CDB); in complete_scsi_command()
2749 cp->Request.CDB); in complete_scsi_command()
2754 cp->Request.CDB); in complete_scsi_command()
2762 cp->Request.CDB); in complete_scsi_command()
2767 cp->Request.CDB); in complete_scsi_command()
2772 cp->Request.CDB); in complete_scsi_command()
2915 const u8 *cdb = c->Request.CDB; in hpsa_print_cmd()
3359 c->Request.CDB[2] = bmic_device_index & 0xff; in hpsa_bmic_sense_subsystem_information()
3360 c->Request.CDB[9] = (bmic_device_index >> 8) & 0xff; in hpsa_bmic_sense_subsystem_information()
3418 c->Request.CDB[2] = bmic_device_index & 0xff; in hpsa_bmic_id_physical_device()
3419 c->Request.CDB[9] = (bmic_device_index >> 8) & 0xff; in hpsa_bmic_id_physical_device()
3498 c->Request.CDB[5] = id_phys->box_index; in hpsa_get_enclosure_info()
3500 c->Request.CDB[5] = 0; in hpsa_get_enclosure_info()
3755 c->Request.CDB[1] = extended_response; in hpsa_scsi_do_report_luns()
5463 c->Request.Timeout = 0; in hpsa_ciss_submit()
5464 BUG_ON(cmd->cmd_len > sizeof(c->Request.CDB)); in hpsa_ciss_submit()
5465 c->Request.CDBLen = cmd->cmd_len; in hpsa_ciss_submit()
5466 memcpy(c->Request.CDB, cmd->cmnd, cmd->cmd_len); in hpsa_ciss_submit()
5469 c->Request.type_attr_dir = in hpsa_ciss_submit()
5473 c->Request.type_attr_dir = in hpsa_ciss_submit()
5477 c->Request.type_attr_dir = in hpsa_ciss_submit()
5486 c->Request.type_attr_dir = in hpsa_ciss_submit()
5562 memset(c->Request.CDB, 0, sizeof(c->Request.CDB)); in hpsa_cmd_partial_init()
6406 (iocommand->Request.Type.Direction != XFER_NONE)) { in hpsa_passthru_ioctl()
6413 if (iocommand->Request.Type.Direction & XFER_WRITE) { in hpsa_passthru_ioctl()
6441 memcpy(&c->Request, &iocommand->Request, in hpsa_passthru_ioctl()
6442 sizeof(c->Request)); in hpsa_passthru_ioctl()
6471 if ((iocommand->Request.Type.Direction & XFER_READ) && in hpsa_passthru_ioctl()
6503 (ioc->Request.Type.Direction != XFER_NONE)) in hpsa_big_passthru_ioctl()
6530 if (ioc->Request.Type.Direction & XFER_WRITE) { in hpsa_big_passthru_ioctl()
6549 memcpy(&c->Request, &ioc->Request, sizeof(c->Request)); in hpsa_big_passthru_ioctl()
6582 if ((ioc->Request.Type.Direction & XFER_READ) && ioc->buf_size > 0) { in hpsa_big_passthru_ioctl()
6680 c->Request.CDB[1] = reset_type; /* fill_cmd defaults to target reset */ in hpsa_send_host_reset()
6713 c->Request.CDB[1] = 0x01; in fill_cmd()
6714 c->Request.CDB[2] = (page_code & 0xff); in fill_cmd()
6716 c->Request.CDBLen = 6; in fill_cmd()
6717 c->Request.type_attr_dir = in fill_cmd()
6719 c->Request.Timeout = 0; in fill_cmd()
6720 c->Request.CDB[0] = HPSA_INQUIRY; in fill_cmd()
6721 c->Request.CDB[4] = size & 0xFF; in fill_cmd()
6724 c->Request.CDBLen = 6; in fill_cmd()
6725 c->Request.type_attr_dir = in fill_cmd()
6727 c->Request.Timeout = 0; in fill_cmd()
6728 c->Request.CDB[0] = cmd; in fill_cmd()
6729 c->Request.CDB[1] = 1; in fill_cmd()
6730 c->Request.CDB[2] = 1; in fill_cmd()
6731 c->Request.CDB[3] = (size >> 8) & 0xFF; in fill_cmd()
6732 c->Request.CDB[4] = size & 0xFF; in fill_cmd()
6739 c->Request.CDBLen = 12; in fill_cmd()
6740 c->Request.type_attr_dir = in fill_cmd()
6742 c->Request.Timeout = 0; in fill_cmd()
6743 c->Request.CDB[0] = cmd; in fill_cmd()
6744 c->Request.CDB[6] = (size >> 24) & 0xFF; /* MSB */ in fill_cmd()
6745 c->Request.CDB[7] = (size >> 16) & 0xFF; in fill_cmd()
6746 c->Request.CDB[8] = (size >> 8) & 0xFF; in fill_cmd()
6747 c->Request.CDB[9] = size & 0xFF; in fill_cmd()
6750 c->Request.CDBLen = 16; in fill_cmd()
6751 c->Request.type_attr_dir = in fill_cmd()
6753 c->Request.Timeout = 0; in fill_cmd()
6755 c->Request.CDB[0] = BMIC_READ; in fill_cmd()
6756 c->Request.CDB[6] = BMIC_SENSE_DIAG_OPTIONS; in fill_cmd()
6759 c->Request.CDBLen = 16; 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_SET_DIAG_OPTIONS; in fill_cmd()
6768 c->Request.CDBLen = 12; in fill_cmd()
6769 c->Request.type_attr_dir = in fill_cmd()
6772 c->Request.Timeout = 0; in fill_cmd()
6773 c->Request.CDB[0] = BMIC_WRITE; in fill_cmd()
6774 c->Request.CDB[6] = BMIC_CACHE_FLUSH; in fill_cmd()
6775 c->Request.CDB[7] = (size >> 8) & 0xFF; in fill_cmd()
6776 c->Request.CDB[8] = size & 0xFF; in fill_cmd()
6779 c->Request.CDBLen = 6; in fill_cmd()
6780 c->Request.type_attr_dir = in fill_cmd()
6782 c->Request.Timeout = 0; in fill_cmd()
6785 c->Request.CDBLen = 12; 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] = HPSA_CISS_READ; in fill_cmd()
6790 c->Request.CDB[1] = cmd; in fill_cmd()
6791 c->Request.CDB[6] = (size >> 24) & 0xFF; /* MSB */ in fill_cmd()
6792 c->Request.CDB[7] = (size >> 16) & 0xFF; in fill_cmd()
6793 c->Request.CDB[8] = (size >> 8) & 0xFF; in fill_cmd()
6794 c->Request.CDB[9] = size & 0xFF; in fill_cmd()
6797 c->Request.CDBLen = 10; in fill_cmd()
6798 c->Request.type_attr_dir = in fill_cmd()
6800 c->Request.Timeout = 0; in fill_cmd()
6801 c->Request.CDB[0] = BMIC_READ; in fill_cmd()
6802 c->Request.CDB[6] = BMIC_SENSE_CONTROLLER_PARAMETERS; in fill_cmd()
6803 c->Request.CDB[7] = (size >> 16) & 0xFF; in fill_cmd()
6804 c->Request.CDB[8] = (size >> 8) & 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_IDENTIFY_PHYSICAL_DEVICE; 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_SENSE_SUBSYSTEM_INFORMATION; 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_STORAGE_BOX_PARAMS; 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[1] = 0; in fill_cmd()
6843 c->Request.CDB[2] = 0; in fill_cmd()
6844 c->Request.CDB[3] = 0; in fill_cmd()
6845 c->Request.CDB[4] = 0; in fill_cmd()
6846 c->Request.CDB[5] = 0; in fill_cmd()
6847 c->Request.CDB[6] = BMIC_IDENTIFY_CONTROLLER; in fill_cmd()
6848 c->Request.CDB[7] = (size >> 16) & 0xFF; in fill_cmd()
6849 c->Request.CDB[8] = (size >> 8) & 0XFF; in fill_cmd()
6850 c->Request.CDB[9] = 0; in fill_cmd()
6860 c->Request.CDBLen = 16; in fill_cmd()
6861 c->Request.type_attr_dir = in fill_cmd()
6863 c->Request.Timeout = 0; /* Don't time out */ in fill_cmd()
6864 memset(&c->Request.CDB[0], 0, sizeof(c->Request.CDB)); in fill_cmd()
6865 c->Request.CDB[0] = HPSA_RESET; in fill_cmd()
6866 c->Request.CDB[1] = HPSA_TARGET_RESET_TYPE; in fill_cmd()
6868 c->Request.CDB[4] = 0x00; in fill_cmd()
6869 c->Request.CDB[5] = 0x00; in fill_cmd()
6870 c->Request.CDB[6] = 0x00; in fill_cmd()
6871 c->Request.CDB[7] = 0x00; in fill_cmd()
6874 c->Request.CDBLen = 16; in fill_cmd()
6875 c->Request.type_attr_dir = in fill_cmd()
6877 c->Request.Timeout = 0; /* Don't time out */ in fill_cmd()
6878 memset(&c->Request.CDB[0], 0, sizeof(c->Request.CDB)); in fill_cmd()
6879 c->Request.CDB[0] = cmd; in fill_cmd()
6880 c->Request.CDB[1] = HPSA_RESET_TYPE_LUN; in fill_cmd()
6883 c->Request.CDB[4] = 0x00; in fill_cmd()
6884 c->Request.CDB[5] = 0x00; in fill_cmd()
6885 c->Request.CDB[6] = 0x00; in fill_cmd()
6886 c->Request.CDB[7] = 0x00; in fill_cmd()
6898 switch (GET_DIR(c->Request.type_attr_dir)) { in fill_cmd()
7087 struct RequestBlock Request; in hpsa_message() member
7131 cmd->Request.CDBLen = 16; in hpsa_message()
7132 cmd->Request.type_attr_dir = in hpsa_message()
7134 cmd->Request.Timeout = 0; /* Don't time out */ in hpsa_message()
7135 cmd->Request.CDB[0] = opcode; in hpsa_message()
7136 cmd->Request.CDB[1] = type; in hpsa_message()
7137 memset(&cmd->Request.CDB[2], 0, 14); /* rest of the CDB is reserved */ in hpsa_message()