Lines Matching defs:Target

466   IN UINT32                                             Target,
480 Target: The Target ID of the ATAPI device to send the SCSI
482 Channel, Target ID 0 indicates Master device;Target
487 specified by Target and Lun.
507 // Target is not allowed beyond MAX_TARGET_ID
509 if ((Target > MAX_TARGET_ID) || (Lun != 0)) {
525 if (Target == This->Mode->AdapterId) {
531 // According to Target ID, reset the Atapi I/O Register mapping
532 // (Target Id in [0,1] area, using AtapiIoPortRegisters[0],
533 // Target Id in [2,3] area, using AtapiIoPortRegisters[1]
535 if ((Target / 2) == 0) {
536 Target = Target % 2;
539 Target = Target % 2;
549 Status = SubmitBlockingIoCommand (AtapiScsiPrivate, Target, Packet);
557 IN OUT UINT32 *Target,
564 Used to retrieve the list of legal Target IDs for SCSI devices
570 Target - On input, a pointer to the Target ID of a SCSI
572 a pointer to the Target ID of the next SCSI device
574 0xFFFFFFFF retrieves the Target ID of the first
582 EFI_SUCCESS - The Target ID and Lun of the next SCSI device
583 on the SCSI channel was returned in Target and Lun.
585 EFI_INVALID_PARAMETER - Target is not 0xFFFFFFFF,and Target and Lun were not
597 // Check whether Target is valid.
599 if (Target == NULL || Lun == NULL) {
603 if ((*Target != 0xFFFFFFFF) &&
604 ((*Target != AtapiScsiPrivate->LatestTargetId) ||
609 if (*Target == MAX_TARGET_ID) {
613 if (*Target == 0xFFFFFFFF) {
614 *Target = 0;
616 *Target = AtapiScsiPrivate->LatestTargetId + 1;
624 AtapiScsiPrivate->LatestTargetId = *Target;
635 IN UINT32 Target,
649 Target - The Target ID of the SCSI device for which
655 Target and Lun. This function is responsible
662 specified by Target and Lun was allocated and
664 EFI_NOT_FOUND - The SCSI devices specified by Target and Lun does
685 if ((Target > (MAX_TARGET_ID - 1)) || (Lun != 0)) {
698 Node->Atapi.PrimarySecondary = (UINT8) (Target / 2);
699 Node->Atapi.SlaveMaster = (UINT8) (Target % 2);
712 OUT UINT32 *Target,
719 Used to translate a device path node to a Target ID and LUN.
726 Target - A pointer to the Target ID of a SCSI device
733 Target ID and LUN, and they were returned
734 in Target and Lun.
735 EFI_INVALID_PARAMETER - DevicePath/Target/Lun is NULL.
739 Target ID and LUN does not exist.
747 if (DevicePath == NULL || Target == NULL || Lun == NULL) {
762 *Target = Node->Atapi.PrimarySecondary * 2 + Node->Atapi.SlaveMaster;
765 if (*Target > (MAX_TARGET_ID - 1) || *Lun != 0) {
864 IN UINT32 Target,
876 Target - The Target ID of the SCSI device to reset.
881 EFI_SUCCESS - The SCSI device specified by Target and
885 EFI_INVALID_PARAMETER - Target or Lun are invalid.
887 to reset the SCSI device specified by Target
890 the SCSI device specified by Target and Lun.
899 if ((Target > MAX_TARGET_ID) || (Lun != 0)) {
905 if (Target == This->Mode->AdapterId) {
910 // According to Target ID, reset the Atapi I/O Register mapping
911 // (Target Id in [0,1] area, using AtapiIoPortRegisters[0],
912 // Target Id in [2,3] area, using AtapiIoPortRegisters[1]
914 if ((Target / 2) == 0) {
925 DeviceSelect = (UINT8) (((BIT7 | BIT5) | (Target << 4)));
952 IN UINT8 *Target,
966 Target: The Target ID of the ATAPI device to send the SCSI
968 Channel, Target ID 0 indicates Master device;Target
973 specified by Target and Lun.
996 TargetId = Target[0];
999 // Target is not allowed beyond MAX_TARGET_ID
1023 // According to Target ID, reset the Atapi I/O Register mapping
1024 // (Target Id in [0,1] area, using AtapiIoPortRegisters[0],
1025 // Target Id in [2,3] area, using AtapiIoPortRegisters[1]
1049 IN OUT UINT8 **Target,
1056 Used to retrieve the list of legal Target IDs for SCSI devices
1062 Target - On input, a pointer to the Target ID of a SCSI
1064 a pointer to the Target ID of the next SCSI device
1066 0xFFFFFFFF retrieves the Target ID of the first
1074 EFI_SUCCESS - The Target ID and Lun of the next SCSI device
1075 on the SCSI channel was returned in Target and Lun.
1077 EFI_INVALID_PARAMETER - Target is not 0xFFFFFFFF,and Target and Lun were not
1092 // Check whether Target is valid.
1094 if (*Target == NULL || Lun == NULL) {
1100 TargetId = (*Target)[0];
1105 if (CompareMem(*Target, ScsiId, TARGET_MAX_BYTES) != 0) {
1107 if ((*Target)[ByteIndex] != 0) {
1113 if ((CompareMem(*Target, ScsiId, TARGET_MAX_BYTES) != 0) &&
1123 if (CompareMem(*Target, ScsiId, TARGET_MAX_BYTES) == 0) {
1124 SetMem (*Target, TARGET_MAX_BYTES,0);
1126 (*Target)[0] = (UINT8) (AtapiScsiPrivate->LatestTargetId + 1);
1134 AtapiScsiPrivate->LatestTargetId = (*Target)[0];
1145 IN UINT8 *Target,
1159 Target - The Target ID of the SCSI device for which
1165 Target and Lun. This function is responsible
1172 specified by Target and Lun was allocated and
1174 EFI_NOT_FOUND - The SCSI devices specified by Target and Lun does
1184 TargetId = Target[0];
1224 OUT UINT8 **Target,
1231 Used to translate a device path node to a Target ID and LUN.
1238 Target - A pointer to the Target ID of a SCSI device
1245 Target ID and LUN, and they were returned
1246 in Target and Lun.
1247 EFI_INVALID_PARAMETER - DevicePath/Target/Lun is NULL.
1251 Target ID and LUN does not exist.
1259 if (DevicePath == NULL || Target == NULL || Lun == NULL) {
1272 ZeroMem (*Target, TARGET_MAX_BYTES);
1276 (*Target)[0] = (UINT8) (Node->Atapi.PrimarySecondary * 2 + Node->Atapi.SlaveMaster);
1279 if ((*Target)[0] > (MAX_TARGET_ID - 1) || *Lun != 0) {
1378 IN UINT8 *Target,
1390 Target - The Target ID of the SCSI device to reset.
1395 EFI_SUCCESS - The SCSI device specified by Target and
1399 EFI_INVALID_PARAMETER - Target or Lun are invalid.
1401 to reset the SCSI device specified by Target
1404 the SCSI device specified by Target and Lun.
1413 TargetId = Target[0];
1426 // According to Target ID, reset the Atapi I/O Register mapping
1427 // (Target Id in [0,1] area, using AtapiIoPortRegisters[0],
1428 // Target Id in [2,3] area, using AtapiIoPortRegisters[1]
1469 IN OUT UINT8 **Target
1474 Used to retrieve the list of legal Target IDs for SCSI devices
1479 Target - On input, a pointer to the Target ID of a SCSI
1481 a pointer to the Target ID of the next SCSI device
1483 0xFFFFFFFF retrieves the Target ID of the first
1491 EFI_SUCCESS - The Target ID and Lun of the next SCSI device
1492 on the SCSI channel was returned in Target and Lun.
1494 EFI_INVALID_PARAMETER - Target is not 0xFFFFFFFF,and Target and Lun were not
1509 // Check whether Target is valid.
1511 if (*Target == NULL ) {
1515 TargetId = (*Target)[0];
1521 if (CompareMem(*Target, ScsiId, TARGET_MAX_BYTES) != 0) {
1523 if ((*Target)[ByteIndex] != 0) {
1529 if ((CompareMem(*Target, ScsiId, TARGET_MAX_BYTES) != 0) &&(TargetId != AtapiScsiPrivate->LatestTargetId)) {
1537 if ((CompareMem(*Target, ScsiId, TARGET_MAX_BYTES) == 0)) {
1538 SetMem (*Target, TARGET_MAX_BYTES, 0);
1540 (*Target)[0] = (UINT8) (AtapiScsiPrivate->LatestTargetId + 1);
1546 AtapiScsiPrivate->LatestTargetId = (*Target)[0];
1793 UINT32 Target,
1805 Target: The Target ID of the ATAPI device to send the SCSI
1807 Channel, Target ID 0 indicates Master device;Target
1810 specified by Target.
1836 Target,
1866 Target,
1879 UINT32 Target,
1893 Target - The target ID
1922 Status = SubmitBlockingIoCommand (AtapiScsiPrivate, Target, &Packet);
2036 UINT8 Target,
2048 Target: The Target ID of the ATAPI device to send the SCSI
2050 Channel, Target ID 0 indicates Master device;Target
2053 specified by Target.
2080 Target,
2091 Target,
2123 Target,
2137 UINT32 Target,
2153 Target: The Target ID of the ATAPI device to send the SCSI
2155 Channel, Target ID 0 indicates Master device;Target
2196 // "Target = 0" indicates device 0; "Target = 1" indicates device 1
2201 (UINT8) ((Target << 4) | DEFAULT_CMD) // DEFAULT_CMD: 0xa0 (1010,0000)