Lines Matching refs:Request
1070 if (!is_firmware_flash_cmd(c->Request.CDB)) in dial_down_lockup_detection_during_fw_flash()
1079 if (is_firmware_flash_cmd(c->Request.CDB) && in dial_up_lockup_detection_on_fw_flash_complete()
2311 c->Request.CDB, c->err_info->ScsiStatus); in hpsa_cmd_abort_and_free()
2441 cp->Request.CDBLen = le16_to_cpu(c->io_flags) & in complete_scsi_command()
2445 memcpy(cp->Request.CDB, c->CDB, cp->Request.CDBLen); in complete_scsi_command()
2515 "CDB %16phN data overrun\n", cp->Request.CDB); in complete_scsi_command()
2532 cp->Request.CDB); in complete_scsi_command()
2537 cp->Request.CDB); in complete_scsi_command()
2542 cp->Request.CDB); in complete_scsi_command()
2550 cp->Request.CDB); in complete_scsi_command()
2555 cp->Request.CDB); in complete_scsi_command()
2560 cp->Request.CDB); in complete_scsi_command()
2702 const u8 *cdb = c->Request.CDB; in hpsa_print_cmd()
3119 c->Request.CDB[2] = bmic_device_index & 0xff; in hpsa_bmic_sense_subsystem_information()
3120 c->Request.CDB[9] = (bmic_device_index >> 8) & 0xff; in hpsa_bmic_sense_subsystem_information()
3178 c->Request.CDB[2] = bmic_device_index & 0xff; in hpsa_bmic_id_physical_device()
3179 c->Request.CDB[9] = (bmic_device_index >> 8) & 0xff; in hpsa_bmic_id_physical_device()
3377 c->Request.CDB[1] = extended_response; in hpsa_scsi_do_report_luns()
4960 c->Request.Timeout = 0; in hpsa_ciss_submit()
4961 BUG_ON(cmd->cmd_len > sizeof(c->Request.CDB)); in hpsa_ciss_submit()
4962 c->Request.CDBLen = cmd->cmd_len; in hpsa_ciss_submit()
4963 memcpy(c->Request.CDB, cmd->cmnd, cmd->cmd_len); in hpsa_ciss_submit()
4966 c->Request.type_attr_dir = in hpsa_ciss_submit()
4970 c->Request.type_attr_dir = in hpsa_ciss_submit()
4974 c->Request.type_attr_dir = in hpsa_ciss_submit()
4983 c->Request.type_attr_dir = in hpsa_ciss_submit()
5051 memset(c->Request.CDB, 0, sizeof(c->Request.CDB)); in hpsa_cmd_partial_init()
5555 swizzle_abort_tag(&c->Request.CDB[4]); in hpsa_send_abort()
6068 err |= copy_from_user(&arg64.Request, &arg32->Request, in hpsa_ioctl32_passthru()
6069 sizeof(arg64.Request)); in hpsa_ioctl32_passthru()
6105 err |= copy_from_user(&arg64.Request, &arg32->Request, in hpsa_ioctl32_big_passthru()
6106 sizeof(arg64.Request)); in hpsa_ioctl32_big_passthru()
6212 (iocommand.Request.Type.Direction != XFER_NONE)) { in hpsa_passthru_ioctl()
6219 if (iocommand.Request.Type.Direction & XFER_WRITE) { in hpsa_passthru_ioctl()
6247 memcpy(&c->Request, &iocommand.Request, in hpsa_passthru_ioctl()
6248 sizeof(c->Request)); in hpsa_passthru_ioctl()
6280 if ((iocommand.Request.Type.Direction & XFER_READ) && in hpsa_passthru_ioctl()
6323 (ioc->Request.Type.Direction != XFER_NONE)) { in hpsa_big_passthru_ioctl()
6356 if (ioc->Request.Type.Direction & XFER_WRITE) { in hpsa_big_passthru_ioctl()
6375 memcpy(&c->Request, &ioc->Request, sizeof(c->Request)); in hpsa_big_passthru_ioctl()
6411 if ((ioc->Request.Type.Direction & XFER_READ) && ioc->buf_size > 0) { in hpsa_big_passthru_ioctl()
6496 c->Request.CDB[1] = reset_type; /* fill_cmd defaults to target reset */ in hpsa_send_host_reset()
6530 c->Request.CDB[1] = 0x01; in fill_cmd()
6531 c->Request.CDB[2] = (page_code & 0xff); in fill_cmd()
6533 c->Request.CDBLen = 6; in fill_cmd()
6534 c->Request.type_attr_dir = in fill_cmd()
6536 c->Request.Timeout = 0; in fill_cmd()
6537 c->Request.CDB[0] = HPSA_INQUIRY; in fill_cmd()
6538 c->Request.CDB[4] = size & 0xFF; in fill_cmd()
6545 c->Request.CDBLen = 12; in fill_cmd()
6546 c->Request.type_attr_dir = in fill_cmd()
6548 c->Request.Timeout = 0; in fill_cmd()
6549 c->Request.CDB[0] = cmd; in fill_cmd()
6550 c->Request.CDB[6] = (size >> 24) & 0xFF; /* MSB */ in fill_cmd()
6551 c->Request.CDB[7] = (size >> 16) & 0xFF; in fill_cmd()
6552 c->Request.CDB[8] = (size >> 8) & 0xFF; in fill_cmd()
6553 c->Request.CDB[9] = size & 0xFF; in fill_cmd()
6556 c->Request.CDBLen = 16; in fill_cmd()
6557 c->Request.type_attr_dir = in fill_cmd()
6559 c->Request.Timeout = 0; in fill_cmd()
6561 c->Request.CDB[0] = BMIC_READ; in fill_cmd()
6562 c->Request.CDB[6] = BMIC_SENSE_DIAG_OPTIONS; in fill_cmd()
6565 c->Request.CDBLen = 16; in fill_cmd()
6566 c->Request.type_attr_dir = in fill_cmd()
6569 c->Request.Timeout = 0; in fill_cmd()
6570 c->Request.CDB[0] = BMIC_WRITE; in fill_cmd()
6571 c->Request.CDB[6] = BMIC_SET_DIAG_OPTIONS; in fill_cmd()
6574 c->Request.CDBLen = 12; in fill_cmd()
6575 c->Request.type_attr_dir = in fill_cmd()
6578 c->Request.Timeout = 0; in fill_cmd()
6579 c->Request.CDB[0] = BMIC_WRITE; in fill_cmd()
6580 c->Request.CDB[6] = BMIC_CACHE_FLUSH; in fill_cmd()
6581 c->Request.CDB[7] = (size >> 8) & 0xFF; in fill_cmd()
6582 c->Request.CDB[8] = size & 0xFF; in fill_cmd()
6585 c->Request.CDBLen = 6; in fill_cmd()
6586 c->Request.type_attr_dir = in fill_cmd()
6588 c->Request.Timeout = 0; in fill_cmd()
6591 c->Request.CDBLen = 12; in fill_cmd()
6592 c->Request.type_attr_dir = in fill_cmd()
6594 c->Request.Timeout = 0; in fill_cmd()
6595 c->Request.CDB[0] = HPSA_CISS_READ; in fill_cmd()
6596 c->Request.CDB[1] = cmd; in fill_cmd()
6597 c->Request.CDB[6] = (size >> 24) & 0xFF; /* MSB */ in fill_cmd()
6598 c->Request.CDB[7] = (size >> 16) & 0xFF; in fill_cmd()
6599 c->Request.CDB[8] = (size >> 8) & 0xFF; in fill_cmd()
6600 c->Request.CDB[9] = size & 0xFF; in fill_cmd()
6603 c->Request.CDBLen = 10; in fill_cmd()
6604 c->Request.type_attr_dir = in fill_cmd()
6606 c->Request.Timeout = 0; in fill_cmd()
6607 c->Request.CDB[0] = BMIC_READ; in fill_cmd()
6608 c->Request.CDB[6] = BMIC_SENSE_CONTROLLER_PARAMETERS; in fill_cmd()
6609 c->Request.CDB[7] = (size >> 16) & 0xFF; in fill_cmd()
6610 c->Request.CDB[8] = (size >> 8) & 0xFF; in fill_cmd()
6613 c->Request.CDBLen = 10; in fill_cmd()
6614 c->Request.type_attr_dir = in fill_cmd()
6616 c->Request.Timeout = 0; in fill_cmd()
6617 c->Request.CDB[0] = BMIC_READ; in fill_cmd()
6618 c->Request.CDB[6] = BMIC_IDENTIFY_PHYSICAL_DEVICE; in fill_cmd()
6619 c->Request.CDB[7] = (size >> 16) & 0xFF; in fill_cmd()
6620 c->Request.CDB[8] = (size >> 8) & 0XFF; in fill_cmd()
6623 c->Request.CDBLen = 10; in fill_cmd()
6624 c->Request.type_attr_dir = in fill_cmd()
6626 c->Request.Timeout = 0; in fill_cmd()
6627 c->Request.CDB[0] = BMIC_READ; in fill_cmd()
6628 c->Request.CDB[6] = BMIC_SENSE_SUBSYSTEM_INFORMATION; in fill_cmd()
6629 c->Request.CDB[7] = (size >> 16) & 0xFF; in fill_cmd()
6630 c->Request.CDB[8] = (size >> 8) & 0XFF; in fill_cmd()
6633 c->Request.CDBLen = 10; in fill_cmd()
6634 c->Request.type_attr_dir = in fill_cmd()
6636 c->Request.Timeout = 0; in fill_cmd()
6637 c->Request.CDB[0] = BMIC_READ; in fill_cmd()
6638 c->Request.CDB[1] = 0; in fill_cmd()
6639 c->Request.CDB[2] = 0; in fill_cmd()
6640 c->Request.CDB[3] = 0; in fill_cmd()
6641 c->Request.CDB[4] = 0; in fill_cmd()
6642 c->Request.CDB[5] = 0; in fill_cmd()
6643 c->Request.CDB[6] = BMIC_IDENTIFY_CONTROLLER; in fill_cmd()
6644 c->Request.CDB[7] = (size >> 16) & 0xFF; in fill_cmd()
6645 c->Request.CDB[8] = (size >> 8) & 0XFF; in fill_cmd()
6646 c->Request.CDB[9] = 0; in fill_cmd()
6657 c->Request.CDBLen = 16; in fill_cmd()
6658 c->Request.type_attr_dir = in fill_cmd()
6660 c->Request.Timeout = 0; /* Don't time out */ in fill_cmd()
6661 memset(&c->Request.CDB[0], 0, sizeof(c->Request.CDB)); in fill_cmd()
6662 c->Request.CDB[0] = HPSA_RESET; in fill_cmd()
6663 c->Request.CDB[1] = HPSA_TARGET_RESET_TYPE; in fill_cmd()
6665 c->Request.CDB[4] = 0x00; in fill_cmd()
6666 c->Request.CDB[5] = 0x00; in fill_cmd()
6667 c->Request.CDB[6] = 0x00; in fill_cmd()
6668 c->Request.CDB[7] = 0x00; in fill_cmd()
6671 c->Request.CDBLen = 16; in fill_cmd()
6672 c->Request.type_attr_dir = in fill_cmd()
6674 c->Request.Timeout = 0; /* Don't time out */ in fill_cmd()
6675 memset(&c->Request.CDB[0], 0, sizeof(c->Request.CDB)); in fill_cmd()
6676 c->Request.CDB[0] = cmd; in fill_cmd()
6677 c->Request.CDB[1] = HPSA_RESET_TYPE_LUN; in fill_cmd()
6680 c->Request.CDB[4] = 0x00; in fill_cmd()
6681 c->Request.CDB[5] = 0x00; in fill_cmd()
6682 c->Request.CDB[6] = 0x00; in fill_cmd()
6683 c->Request.CDB[7] = 0x00; in fill_cmd()
6690 c->Request.CDBLen = 16; in fill_cmd()
6691 c->Request.type_attr_dir = in fill_cmd()
6694 c->Request.Timeout = 0; /* Don't time out */ in fill_cmd()
6695 c->Request.CDB[0] = HPSA_TASK_MANAGEMENT; in fill_cmd()
6696 c->Request.CDB[1] = HPSA_TMF_ABORT_TASK; in fill_cmd()
6697 c->Request.CDB[2] = 0x00; /* reserved */ in fill_cmd()
6698 c->Request.CDB[3] = 0x00; /* reserved */ in fill_cmd()
6700 memcpy(&c->Request.CDB[4], &tag, sizeof(tag)); in fill_cmd()
6701 c->Request.CDB[12] = 0x00; /* reserved */ in fill_cmd()
6702 c->Request.CDB[13] = 0x00; /* reserved */ in fill_cmd()
6703 c->Request.CDB[14] = 0x00; /* reserved */ in fill_cmd()
6704 c->Request.CDB[15] = 0x00; /* reserved */ in fill_cmd()
6716 switch (GET_DIR(c->Request.type_attr_dir)) { in fill_cmd()
6905 struct RequestBlock Request; in hpsa_message() member
6949 cmd->Request.CDBLen = 16; in hpsa_message()
6950 cmd->Request.type_attr_dir = in hpsa_message()
6952 cmd->Request.Timeout = 0; /* Don't time out */ in hpsa_message()
6953 cmd->Request.CDB[0] = opcode; in hpsa_message()
6954 cmd->Request.CDB[1] = type; in hpsa_message()
6955 memset(&cmd->Request.CDB[2], 0, 14); /* rest of the CDB is reserved */ in hpsa_message()