Lines Matching +full:sub +full:- +full:units

12 sub getBMCTarget
16 for my $target (keys %{$targetObj->getAllTargets()}) {
17 if ($targetObj->getType($target) eq "BMC") {
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
30 sub getChildUnitsWithTargetType
33 my @units;
35 my @children = $targetObj->getAllTargetChildren($chip);
38 if ($targetObj->getTargetType($child) eq $unitTargetType) {
39 push @units, $child;
43 return @units;
46 #Returns size of child units based on their Type.
48 # param[in] $type = The type of the units to find
49 # param[in] $chip = The chip target to find the units on
50 sub getSizeOfChildUnitsWithType
53 my @units;
54 my @children = $targetObj->getAllTargetChildren($chip);
56 if ($targetObj->getType($child) eq $type) {
57 push @units, $child;
60 my $size = @units;
67 sub getObmcName
74 if($item->{TARGET} eq $targetName)
76 return $item->{OBMC_NAME};
86 sub getDevicePath
94 if (!$targetObj->isBadAttribute($item->{TARGET}, "TYPE")) {
95 $fruType = $targetObj->getAttribute($item->{TARGET}, "TYPE");
97 push(@devices,$item->{OBMC_NAME});
104 #Convert the MRW I2C address into the standard 7-bit format
106 sub adjustI2CAddress
121 sub getEnclosingFru
130 if (!$targets->isBadAttribute($targetName, "RU_TYPE"))
132 my $ruType = $targets->getAttribute($targetName, "RU_TYPE");
139 my $parent = $targets->getTargetParent($targetName);
145 sub adjustI2CPort
149 return $port - 1;
152 # Get the location code for the target passed in, like P1-C5.
155 sub getLocationCode
166 if (!$targets->isBadAttribute($target, "LOCATION_CODE"))
168 my $loc = $targets->getAttribute($target, "LOCATION_CODE");
169 my $type = $targets->getAttribute($target, "LOCATION_CODE_TYPE");
175 $locCode = $loc . '-' . $locCode;
195 $target = $targets->getTargetParent($target);
228 Returns an array of targets that have target-type C<TargetType>
247 Returns C<I2CAddress> converted from MRW format (8-bit) to the standard 7-bit