Lines Matching full:target
10 #Returns the BMC target for a system.
16 for my $target (keys %{$targetObj->getAllTargets()}) {
17 if ($targetObj->getType($target) eq "BMC") {
18 return $target;
22 die "Could not find BMC target in the MRW XML\n";
26 #Returns an array of child units based on their Target Type.
28 # param[in] $unitTargetType = The target type of the units to find
29 # param[in] $chip = The chip target to find the units on
49 # param[in] $chip = The chip target to find the units on
64 # Returns OBMC name corresponding to a Target name
66 # param[in] $targetName = A Target name
74 if($item->{TARGET} eq $targetName)
85 # param[in] $type = The target type.
94 if (!$targetObj->isBadAttribute($item->{TARGET}, "TYPE")) {
95 $fruType = $targetObj->getAttribute($item->{TARGET}, "TYPE");
118 #Return nearest FRU enclosing the input target
120 # $targetName = the target name
152 # Get the location code for the target passed in, like P1-C5.
154 # $target = target to get the location code of
159 my $target = $passedInTarget;
166 if (!$targets->isBadAttribute($target, "LOCATION_CODE"))
168 my $loc = $targets->getAttribute($target, "LOCATION_CODE");
169 my $type = $targets->getAttribute($target, "LOCATION_CODE_TYPE");
189 die "Missing location code on $target\n" if $type eq "ABSOLUTE";
195 $target = $targets->getTargetParent($target);
196 if (not defined $target)
223 Returns the target string for the BMC chip. If it can't find one,
228 Returns an array of targets that have target-type C<TargetType>
229 and are children (any level) of target C<ChipTarget>.
234 and are children (any level) of target C<ChipTarget>.
238 Returns an OBMC name corresponding to a Target name. Returns
239 undef if the Target name is not found.
250 =item getEnclosingFru(C<TargetsObj>, C<Target>)
252 Finds the nearest FRU enclosing the input Target.
258 =item getLocationCode(C<TargetsObj, C<Target>)
260 Gets the location code for the input Target.