/openbmc/phosphor-mrw-tools/ |
H A D | Util.pm | 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 35 my @children = $targetObj->getAllTargetChildren($chip); 38 if ($targetObj->getTargetType($child) eq $unitTargetType) { [all …]
|
H A D | Inventory.pm | 6 #Target types to always include in the inventory if present 14 #Chips that are modeled as modules (card-chip together) 19 #TARGET: The MRW target of the item 21 # a simplified version of the target. 42 #It selects them if the target's type is in %TYPES 43 #or the target's RU_TYPE is in %RU_TYPES. 49 for my $target (sort keys %{$targetObj->getAllTargets()}) { 50 my $type = ""; 53 if (!$targetObj->isBadAttribute($target, "TYPE")) { 54 $type = $targetObj->getAttribute($target, "TYPE"); [all …]
|
H A D | patchxml.py | 13 The only restriction is that since the type, xpath, and key attributes are 14 used to specify the patch placement the target XML cannot use those at a 20 Put in the element to add, along with the type='add' attribute 23 <enumerationType type='add' xpath="./"> 30 Put in the new element, with the type='replace' attribute 33 <enumerator type='replace' 34 xpath="enumerationType/[id='TYPE']/enumerator[name='XBUS']"> 40 enumerationType element with ID TYPE. 43 Put in the element to remove, with the type='remove' attribute and 47 <enumerator type='remove' [all …]
|
H A D | inventory.pl | 16 my $outputFile, my $target; 17 my $fruName, my $type; 27 my %includedTargetTypes = ("chip-sp-bmc" => 1, 28 "chip-apss-psoc" => 1); 41 my $targetObj = Targets->new; 42 $targetObj->loadXML($serverwizFile); 44 foreach $target (sort keys %{ $targetObj->getAllTargets() }) 46 $type = $targetObj->getType($target); 47 if (exists $skipFRUTypes{$type}) { 53 if (!$targetObj->isBadAttribute($target, "FRU_NAME")) { [all …]
|
/openbmc/phosphor-ipmi-flash/bmc/firmware-handler/test/ |
H A D | firmware_json_unittest.cpp | 26 "type" : "unsupported", in TEST() 27 "path" : "/run/initramfs/bmc-image" in TEST() 31 "type" : "systemd", in TEST() 32 "unit" : "phosphor-ipmi-flash-bmc-prepare.target" in TEST() 35 "type" : "fileSystemdVerify", in TEST() 36 "unit" : "phosphor-ipmi-flash-bmc-verify.target", in TEST() 40 "type" : "reboot" in TEST() 54 "type" : "file", in TEST() 55 "path" : "/run/initramfs/bmc-image" in TEST() 59 "type" : "superfun", in TEST() [all …]
|
/openbmc/phosphor-ipmi-flash/ |
H A D | meson.options | 1 option('tests', type: 'feature', description: 'Build tests') 4 option('bmc-blob-handler', type: 'feature', description: 'Build the BMC BLOB handler') 5 option('cleanup-delete', type: 'feature', description: 'Enable use of the delete files cleanup mech… 6 option('host-tool', type: 'feature', description: 'Build the host tool') 9 option('host-bios', type: 'boolean', value: false, description: 'Install default BIOS update config… 10 option('reboot-update', type: 'boolean', value: false, description: 'Enable use of reboot update me… 11 option('update-status', type: 'boolean', value: false, description: 'Enable use of update status fi… 13 option('update-type', type : 'combo', choices : ['none', 'static-layout', 'tarball-ubi'], descripti… 15 option('lpc-type', type : 'combo', choices : ['none', 'aspeed-lpc', 'nuvoton-lpc'], description: 'E… 16 …-type', type : 'combo', choices : ['none', 'aspeed-p2a', 'nuvoton-p2a-vga', 'nuvoton-p2a-mbox'], d… [all …]
|
H A D | bmc_json_config.md | 3 The BMC BLOB handler for the flash objects is configured at run-time via a json 9 - config-bios.json 10 - config-static-bmc-reboot.json 11 - config-static-bmc.json 16 ## config-bios.json 26 "type": "file", 27 "path": "/tmp/bios-image" 31 "type": "systemd", 32 "unit": "phosphor-ipmi-flash-bios-prepare.target" 35 "type": "systemd", [all …]
|
/openbmc/qemu/tests/qemu-iotests/ |
H A D | 055 | 4 # Tests for drive-backup and blockdev-backup 30 target_img = os.path.join(iotests.test_dir, 'target.img') 31 blockdev_target_img = os.path.join(iotests.test_dir, 'blockdev-target.img') 36 qemu_img('create', '-f', iotests.imgfmt, test_img, str(image_len)) 37 qemu_io('-f', iotests.imgfmt, '-c', 'write -P0x11 0 64k', test_img) 38 qemu_io('-f', iotests.imgfmt, '-c', 'write -P0x00 64k 128k', test_img) 39 qemu_io('-f', iotests.imgfmt, '-c', 'write -P0x22 162k 32k', test_img) 40 qemu_io('-f', iotests.imgfmt, '-c', 'write -P0xd5 1M 32k', test_img) 41 qemu_io('-f', iotests.imgfmt, '-c', 'write -P0xdc 32M 124k', test_img) 42 qemu_io('-f', iotests.imgfmt, '-c', 'write -P0x33 67043328 64k', test_img) [all …]
|
/openbmc/linux/drivers/acpi/numa/ |
H A D | hmat.c | 1 // SPDX-License-Identifier: GPL-2.0 87 if (initiator->processor_pxm == cpu_pxm) in find_mem_initiator() 94 struct memory_target *target; in find_mem_target() local 96 list_for_each_entry(target, &targets, node) in find_mem_target() 97 if (target->memory_pxm == mem_pxm) in find_mem_target() 98 return target; in find_mem_target() 117 initiator->processor_pxm = cpu_pxm; in alloc_memory_initiator() 118 initiator->has_cpu = node_state(pxm_to_node(cpu_pxm), N_CPU); in alloc_memory_initiator() 119 list_add_tail(&initiator->node, &initiators); in alloc_memory_initiator() 125 struct memory_target *target; in alloc_memory_target() local [all …]
|
/openbmc/linux/arch/riscv/include/asm/ |
H A D | gdb_xml.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 9 static const char gdb_xfer_read_target[31] = "qXfer:features:read:target.xml:"; 13 "qXfer:features:read:riscv-64bit-cpu.xml"; 17 "<!DOCTYPE target SYSTEM \"gdb-target.dtd\">" 18 "<target>" 19 "<xi:include href=\"riscv-64bit-cpu.xml\"/>" 20 "</target>"; 24 "<!DOCTYPE feature SYSTEM \"gdb-target.dtd\">" 26 "<reg name=\""DBG_REG_ZERO"\" bitsize=\"64\" type=\"int\" regnum=\"0\"/>" 27 "<reg name=\""DBG_REG_RA"\" bitsize=\"64\" type=\"code_ptr\"/>" [all …]
|
/openbmc/linux/include/linux/ |
H A D | device-mapper.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 4 * Copyright (C) 2004-2008 Red Hat, Inc. All rights reserved. 14 #include <linux/dm-ioctl.h> 27 * Type of table, mapped_device's mempool and request_queue 43 * In the constructor the target parameter will already have the 44 * table, type, begin and len fields filled in. 46 typedef int (*dm_ctr_fn) (struct dm_target *target, 51 * anything hidden ti->private. 58 * = 0: The target will handle the io by resubmitting it later 60 * = 2: The target wants to push back the io [all …]
|
/openbmc/phosphor-hwmon/ |
H A D | targets.hpp | 8 #include <phosphor-logging/elog-errors.hpp> 9 #include <phosphor-logging/log.hpp> 27 * @brief Target type traits. 29 * @tparam T - The target type. 36 static_assert(sizeof(Targets) == -1, "Unsupported Target type"); in fail() 44 static constexpr InterfaceType type = InterfaceType::FAN_SPEED; member 50 static constexpr InterfaceType type = InterfaceType::FAN_PWM; member 55 * Creates the target type interface 57 * @tparam T - The target type 59 * @param[in] sensor - A sensor type and name [all …]
|
/openbmc/bmcweb/redfish-core/schema/dmtf/json-schema/ |
H A D | EndpointGroup.v1_3_4.json | 4 "$schema": "http://redfish.dmtf.org/schemas/v1/redfish-schema-v1.json", 5 …"copyright": "Copyright 2014-2024 DMTF. For the full DMTF copyright policy, see http://www.dmtf.or… 10 "longDescription": "This type shall contain the available actions for this resource.", 12 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": { 14 "type": [ array 28 "description": "The available OEM-specific actions for this resource.", 29 …"longDescription": "This property shall contain the available OEM-specific actions for this resour… 33 "type": "object" string 40 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": { 42 "type": [ array [all …]
|
H A D | Volume.v1_10_0.json | 4 "$schema": "http://redfish.dmtf.org/schemas/v1/redfish-schema-v1.json", 5 …"copyright": "Copyright 2015-2024 Storage Networking Industry Association (SNIA), USA. All rights … 10 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": { 12 "type": [ array 28 "type": [ array 35 "type": "object" string 40 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": { 42 "type": [ array 91 "type": "object" string 95 …a replication relationship by assigning an existing volume to serve as a target replica for an exi… [all …]
|
/openbmc/u-boot/fs/btrfs/ |
H A D | btrfs.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * BTRFS filesystem implementation for U-Boot 31 char filetime[32], *target = NULL; in readdir_callback() local 34 if (btrfs_lookup_inode(root, &item->location, &inode, NULL)) { in readdir_callback() 36 __func__, item->name_len, name); in readdir_callback() 43 if (item->type == BTRFS_FT_SYMLINK) { in readdir_callback() 44 target = malloc(min(inode.size + 1, in readdir_callback() 47 if (target && btrfs_readlink(root, item->location.objectid, in readdir_callback() 48 target)) { in readdir_callback() 49 free(target); in readdir_callback() [all …]
|
/openbmc/phosphor-health-monitor/ |
H A D | health_metric_config.cpp | 6 #include <phosphor-logging/lg2.hpp> 38 std::unordered_map<std::string, ThresholdIntf::Type>{ 39 {"HardShutdown", ThresholdIntf::Type::HardShutdown}, 40 {"SoftShutdown", ThresholdIntf::Type::SoftShutdown}, 41 {"PerformanceLoss", ThresholdIntf::Type::PerformanceLoss}, 42 {"Critical", ThresholdIntf::Type::Critical}, 43 {"Warning", ThresholdIntf::Type::Warning}}; 46 static const auto validTypes = std::unordered_map<std::string, Type>{ 47 {"CPU", Type::cpu}, 48 {"Memory", Type::memory}, [all …]
|
/openbmc/linux/tools/testing/selftests/tc-testing/tc-tests/qdiscs/ |
H A D | fq_codel.json | 13 "$IP link add dev $DUMMY type dummy || /bin/true" 18 …"matchPattern": "qdisc fq_codel 1: root refcnt [0-9]+ limit 10240p flows 1024 quantum.*target 5ms … 22 "$IP link del dev $DUMMY type dummy" 36 "$IP link add dev $DUMMY type dummy || /bin/true" 41 …"matchPattern": "qdisc fq_codel 1: root refcnt [0-9]+ limit 1000p flows 1024 quantum.*target 5ms i… 45 "$IP link del dev $DUMMY type dummy" 59 "$IP link add dev $DUMMY type dummy || /bin/true" 64 …"matchPattern": "qdisc fq_codel 1: root refcnt [0-9]+ limit 10240p flows 1024 quantum.*target 5ms … 68 "$IP link del dev $DUMMY type dummy" 73 "name": "Create FQ_CODEL with target setting", [all …]
|
H A D | codel.json | 13 "$IP link add dev $DUMMY type dummy || /bin/true" 18 "matchPattern": "qdisc codel 1: root refcnt [0-9]+ limit 1000p target 5ms interval 100ms", 22 "$IP link del dev $DUMMY type dummy" 36 "$IP link add dev $DUMMY type dummy || /bin/true" 41 "matchPattern": "qdisc codel 1: root refcnt [0-9]+ limit 1500p target 5ms interval 100ms", 45 "$IP link del dev $DUMMY type dummy" 50 "name": "Create CODEL with target setting", 59 "$IP link add dev $DUMMY type dummy || /bin/true" 61 "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root codel target 100ms", 64 "matchPattern": "qdisc codel 1: root refcnt [0-9]+ limit 1000p target 100ms interval 100ms", [all …]
|
/openbmc/linux/arch/x86/kernel/ |
H A D | cfi.c | 1 // SPDX-License-Identifier: GPL-2.0 9 #include <asm/insn-eval.h> 13 * Returns the target address and the expected type when regs->ip points 14 * to a compiler-generated CFI trap. 16 static bool decode_cfi_insn(struct pt_regs *regs, unsigned long *target, in decode_cfi_insn() argument 17 u32 *type) in decode_cfi_insn() argument 23 *target = *type = 0; in decode_cfi_insn() 29 * movl -<id>, %r10d ; 6 bytes in decode_cfi_insn() 30 * addl -4(%reg), %r10d ; 4 bytes in decode_cfi_insn() 32 * ud2 ; <- regs->ip in decode_cfi_insn() [all …]
|
/openbmc/linux/arch/riscv/kernel/ |
H A D | cfi.c | 1 // SPDX-License-Identifier: GPL-2.0 11 * Returns the target address and the expected type when regs->epc points 12 * to a compiler-generated CFI trap. 14 static bool decode_cfi_insn(struct pt_regs *regs, unsigned long *target, in decode_cfi_insn() argument 15 u32 *type) in decode_cfi_insn() argument 21 *target = *type = 0; in decode_cfi_insn() 27 * lw t1, -4(<reg>) in decode_cfi_insn() 31 * ebreak ; <- regs->epc in decode_cfi_insn() 35 * We can read the expected type and the target address from the in decode_cfi_insn() 38 if (get_kernel_nofault(insn, (void *)regs->epc - 4)) in decode_cfi_insn() [all …]
|
/openbmc/linux/fs/configfs/ |
H A D | symlink.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * symlink.c - operations for configfs symlinks. 26 do { depth++; } while ((p = p->ci_parent) && !configfs_is_root(p)); in item_depth() 36 p = p->ci_parent; in item_path_length() 45 --length; in fill_item_path() 46 for (p = item; p && !configfs_is_root(p); p = p->ci_parent) { in fill_item_path() 50 length -= cur; in fill_item_path() 52 *(buffer + --length) = '/'; in fill_item_path() 57 struct config_item *target, char *path) in configfs_get_target_path() argument 63 size = item_path_length(target) + depth * 3 - 1; in configfs_get_target_path() [all …]
|
/openbmc/linux/Documentation/power/ |
H A D | pm_qos_interface.rst | 11 * The per-device PM QoS framework provides the API to manage the 12 per-device latency constraints and PM QoS flags. 21 (effective) target value. The aggregated target value is updated with changes 23 aggregated target value is simply the min of the request values held in the list 26 Note: the aggregated target value is implemented as an atomic variable so that 32 Will insert an element into the CPU latency QoS list with the target value. 33 Upon change to this list the new target is recomputed and any registered 34 notifiers are called only if the target value is now different. 39 Will update the list element pointed to by the handle with the new target 40 value and recompute the new aggregated target, calling the notification tree [all …]
|
/openbmc/linux/scripts/dtc/ |
H A D | dtc-parser.y | 1 // SPDX-License-Identifier: GPL-2.0-or-later 72 %type <data> propdata 73 %type <data> propdataprefix 74 %type <flags> header 75 %type <flags> headers 76 %type <re> memreserve 77 %type <re> memreserves 78 %type <array> arrayprefix 79 %type <data> bytestring 80 %type <prop> propdef [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/phy/ |
H A D | phy-stm32-usbphyc.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/phy/phy-stm32-usbphyc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 22 |_ PHY port#2 ----| |________________ 27 - Amelie Delaunay <amelie.delaunay@foss.st.com> 31 const: st,stm32mp1-usbphyc 42 "#address-cells": 45 "#size-cells": 48 vdda1v1-supply: [all …]
|
/openbmc/linux/net/netfilter/ |
H A D | nft_compat.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * (C) 2012-2013 by Pablo Neira Ayuso <pablo@netfilter.org> 34 enum nft_chain_types type = NFT_CHAIN_T_DEFAULT; in nft_compat_chain_validate_dependency() local 35 const struct nft_chain *chain = ctx->chain; in nft_compat_chain_validate_dependency() 44 if (ctx->family != NFPROTO_BRIDGE) in nft_compat_chain_validate_dependency() 45 type = NFT_CHAIN_T_NAT; in nft_compat_chain_validate_dependency() 46 if (basechain->type->type != type) in nft_compat_chain_validate_dependency() 47 return -EINVAL; in nft_compat_chain_validate_dependency() 65 par->state = pkt->state; in nft_compat_set_par() 66 par->thoff = nft_thoff(pkt); in nft_compat_set_par() [all …]
|