/openbmc/u-boot/test/dm/ |
H A D | regmap.c | 19 struct regmap *map; in dm_test_regmap_base() local 24 map = syscon_get_regmap(dev); in dm_test_regmap_base() 25 ut_assertok_ptr(map); in dm_test_regmap_base() 26 ut_asserteq(1, map->range_count); in dm_test_regmap_base() 27 ut_asserteq(0x10, map->ranges[0].start); in dm_test_regmap_base() 28 ut_asserteq(16, map->ranges[0].size); in dm_test_regmap_base() 29 ut_asserteq(0x10, map_to_sysmem(regmap_get_range(map, 0))); in dm_test_regmap_base() 32 map = syscon_get_regmap(dev); in dm_test_regmap_base() 33 ut_assertok_ptr(map); in dm_test_regmap_base() 34 ut_asserteq(4, map->range_count); in dm_test_regmap_base() [all …]
|
H A D | syscon.c | 52 struct regmap *map; in dm_test_syscon_by_phandle() local 58 map = syscon_regmap_lookup_by_phandle(dev, "first-syscon"); in dm_test_syscon_by_phandle() 59 ut_assert(map); in dm_test_syscon_by_phandle() 60 ut_assert(!IS_ERR(map)); in dm_test_syscon_by_phandle() 61 ut_asserteq(1, map->range_count); in dm_test_syscon_by_phandle() 65 map = syscon_regmap_lookup_by_phandle(dev, "second-sys-ctrl"); in dm_test_syscon_by_phandle() 66 ut_assert(map); in dm_test_syscon_by_phandle() 67 ut_assert(!IS_ERR(map)); in dm_test_syscon_by_phandle() 68 ut_asserteq(4, map->range_count); in dm_test_syscon_by_phandle()
|
/openbmc/u-boot/board/synopsys/hsdk/ |
H A D | env-lib.c | 11 static void env_clear_common(u32 index, const struct env_map_common *map) in env_clear_common() argument 13 map[index].val->val = 0; in env_clear_common() 14 map[index].val->set = false; in env_clear_common() 17 static int env_read_common(u32 index, const struct env_map_common *map) in env_read_common() argument 21 if (!env_get_yesno(map[index].env_name)) { in env_read_common() 22 if (map[index].type == ENV_HEX) { in env_read_common() 23 val = (u32)env_get_hex(map[index].env_name, 0); in env_read_common() 24 debug("ENV: %s: = %#x\n", map[index].env_name, val); in env_read_common() 26 val = (u32)env_get_ulong(map[index].env_name, 10, 0); in env_read_common() 27 debug("ENV: %s: = %d\n", map[index].env_name, val); in env_read_common() [all …]
|
/openbmc/qemu/hw/virtio/ |
H A D | vhost-iova-tree.c | 73 * @map: The map with the memory address 78 const DMAMap *map) in vhost_iova_tree_find_iova() argument 80 return iova_tree_find_iova(tree->iova_taddr_map, map); in vhost_iova_tree_find_iova() 87 * @map: The IOVA mapping 91 * - IOVA_OK if the map fits in the container 92 * - IOVA_ERR_INVALID if the map does not make sense (like size overflow) 95 * It returns an assigned IOVA in map->iova if the return value is IOVA_OK. 97 int vhost_iova_tree_map_alloc(VhostIOVATree *tree, DMAMap *map, hwaddr taddr) in vhost_iova_tree_map_alloc() argument 104 if (taddr + map->size < taddr || map->perm == IOMMU_NONE) { in vhost_iova_tree_map_alloc() 109 ret = iova_tree_alloc_map(tree->iova_map, map, iova_first, tree->iova_last); in vhost_iova_tree_map_alloc() [all …]
|
H A D | cbor-helpers.c | 13 bool qemu_cbor_map_add(cbor_item_t *map, cbor_item_t *key, cbor_item_t *value) in qemu_cbor_map_add() argument 21 success = cbor_map_add(map, pair); in qemu_cbor_map_add() 42 bool qemu_cbor_add_bool_to_map(cbor_item_t *map, const char *key, bool value) in qemu_cbor_add_bool_to_map() argument 55 if (!qemu_cbor_map_add(map, key_cbor, value_cbor)) { in qemu_cbor_add_bool_to_map() 71 bool qemu_cbor_add_uint8_to_map(cbor_item_t *map, const char *key, in qemu_cbor_add_uint8_to_map() argument 85 if (!qemu_cbor_map_add(map, key_cbor, value_cbor)) { in qemu_cbor_add_uint8_to_map() 101 bool qemu_cbor_add_map_to_map(cbor_item_t *map, const char *key, in qemu_cbor_add_map_to_map() argument 116 if (!qemu_cbor_map_add(map, key_cbor, value_cbor)) { in qemu_cbor_add_map_to_map() 133 bool qemu_cbor_add_bytestring_to_map(cbor_item_t *map, const char *key, in qemu_cbor_add_bytestring_to_map() argument 147 if (!qemu_cbor_map_add(map, key_cbor, value_cbor)) { in qemu_cbor_add_bytestring_to_map() [all …]
|
/openbmc/qemu/util/ |
H A D | qht.c | 47 * race with us) and then copying all entries into a new hash map. Then, the 48 * ht->map pointer is set, and the old map is freed once no RCU readers can see 51 * Writers check for concurrent resizes by comparing ht->map before and after 174 * @buckets: array of head buckets. It is constant once the map is created. 175 * @n_buckets: number of head buckets. It is constant once the map is created. 181 * Buckets are tracked in what we call a "map", i.e. this structure. 228 static void qht_map_debug__all_locked(struct qht_map *map) in qht_map_debug__all_locked() argument 232 for (i = 0; i < map->n_buckets; i++) { in qht_map_debug__all_locked() 233 qht_bucket_debug__locked(&map->buckets[i]); in qht_map_debug__all_locked() 243 static inline void qht_map_debug__all_locked(struct qht_map *map) in qht_map_debug__all_locked() argument [all …]
|
H A D | iova-tree.c | 27 /* Map at the left of the hole, can be NULL if "this" is first one */ 30 /* Map at the right of the hole, can be NULL if "prev" is the last one */ 84 const DMAMap *iova_tree_find(const IOVATree *tree, const DMAMap *map) in iova_tree_find() argument 86 return g_tree_lookup(tree->tree, map); in iova_tree_find() 92 const DMAMap *map = key; in iova_tree_find_address_iterator() local 99 if (map->translated_addr + map->size < needle->translated_addr || in iova_tree_find_address_iterator() 100 needle->translated_addr + needle->size < map->translated_addr) { in iova_tree_find_address_iterator() 104 args->result = map; in iova_tree_find_address_iterator() 108 const DMAMap *iova_tree_find_iova(const IOVATree *tree, const DMAMap *map) in iova_tree_find_iova() argument 111 .needle = map, in iova_tree_find_iova() [all …]
|
/openbmc/u-boot/drivers/core/ |
H A D | regmap.c | 28 struct regmap *map; in regmap_alloc() local 30 map = malloc(sizeof(*map) + sizeof(map->ranges[0]) * count); in regmap_alloc() 31 if (!map) in regmap_alloc() 33 map->range_count = count; in regmap_alloc() 35 return map; in regmap_alloc() 43 struct regmap *map; in regmap_init_mem_platdata() local 45 map = regmap_alloc(count); in regmap_init_mem_platdata() 46 if (!map) in regmap_init_mem_platdata() 49 for (range = map->ranges; count > 0; reg += 2, range++, count--) { in regmap_init_mem_platdata() 54 *mapp = map; in regmap_init_mem_platdata() [all …]
|
/openbmc/qemu/ |
H A D | gitdm.config | 26 EmailMap contrib/gitdm/domain-map 29 # Use GroupMap to map a file full of addresses to the 34 GroupMap contrib/gitdm/group-map-alibaba Alibaba 35 GroupMap contrib/gitdm/group-map-amd AMD 36 GroupMap contrib/gitdm/group-map-cadence Cadence Design Systems 37 GroupMap contrib/gitdm/group-map-codeweavers CodeWeavers 38 GroupMap contrib/gitdm/group-map-facebook Facebook 39 GroupMap contrib/gitdm/group-map-ibm IBM 40 GroupMap contrib/gitdm/group-map-janustech Janus Technologies 41 GroupMap contrib/gitdm/group-map-netflix Netflix [all …]
|
/openbmc/openbmc/poky/meta/recipes-devtools/gcc/gcc/ |
H A D | 0026-fix-incorrect-preprocessor-line-numbers.patch | 27 /* Allocate the new line_map. However, if the current map only has a 30 || last_line != ORDINARY_MAP_STARTING_LINE_NUMBER (map) 31 || SOURCE_COLUMN (map, highest) >= (1U << (column_bits - range_bits)) 32 || ( /* We can't reuse the map if the line offset is sufficiently 34 (to_line - ORDINARY_MAP_STARTING_LINE_NUMBER (map)) 37 || range_bits < map->m_range_bits) 38 map = linemap_check_ordinary 41 ORDINARY_MAP_IN_SYSTEM_HEADER_P (map), 42 ORDINARY_MAP_FILE_NAME (map), 44 and so creates a new ordinary map on the line right after the [all …]
|
/openbmc/openbmc/meta-arm/meta-arm-systemready/recipes-test/arm-systemready-linux-distros/files/unattended-boot-conf/openSUSE/ |
H A D | autoinst.xml | 4 <bootloader t="map"> 5 <global t="map"> 18 <firewall t="map"> 24 <zone t="map"> 35 <zone t="map"> 48 <zone t="map"> 61 <zone t="map"> 72 <zone t="map"> 85 <zone t="map"> 101 <zone t="map"> [all …]
|
/openbmc/u-boot/include/ |
H A D | regmap.h | 18 * attached to, and use the regmap API to access the register map through that 24 * The endianness of regmap accesses is selectable for each map through device 28 * Furthermore, the register map described by a regmap can be split into 31 * map, can be accessed in a concise manner. 34 * accesses the register map as regular IO-mapped memory. 66 * struct regmap_range - a register map range 79 * @range_count: Number of ranges available within the map 96 * @map: Regmap to write to 106 int regmap_write(struct regmap *map, uint offset, uint val); 111 * @map: Regmap to read from [all …]
|
/openbmc/pldm/pldmtool/oem/ibm/ |
H A D | oem_ibm_state_set.hpp | 6 #include <map> 46 /** @brief Map for PLDM OEM IBM Entity Types 48 extern const std::map<uint8_t, std::string> OemIBMEntityType{ 52 /** @brief Map for PLDM OEM IBM State Sets 54 extern const std::map<uint16_t, std::string> OemIBMstateSet{ 60 /** @brief Map for PLDM OEM IBM firmware update possible state values 62 extern const std::map<uint8_t, std::string> SetOemIBMFWUpdateStateValues{ 70 /** @brief Map for PLDM OEM IBM verification state possible state values 72 extern const std::map<uint8_t, std::string> SetOemIBMVerStateValues{ 79 /** @brief Map for PLDM OEM IBM systerm power state possible state values [all …]
|
/openbmc/u-boot/arch/x86/cpu/efi/ |
H A D | payload.c | 28 struct efi_entry_memmap *map; in board_get_usable_ram_top() local 40 ret = efi_info_get(EFIET_MEMORY_MAP, (void **)&map, &size); in board_get_usable_ram_top() 43 debug("%s: Missing memory map\n", __func__); in board_get_usable_ram_top() 47 end = (struct efi_mem_desc *)((ulong)map + size); in board_get_usable_ram_top() 48 desc = map->desc; in board_get_usable_ram_top() 49 for (; desc < end; desc = efi_get_next_mem_desc(map, desc)) { in board_get_usable_ram_top() 74 struct efi_entry_memmap *map; in dram_init() local 77 ret = efi_info_get(EFIET_MEMORY_MAP, (void **)&map, &size); in dram_init() 79 printf("Cannot find EFI memory map tables, ret=%d\n", ret); in dram_init() 84 end = (struct efi_mem_desc *)((ulong)map + size); in dram_init() [all …]
|
/openbmc/u-boot/drivers/misc/ |
H A D | ihs_fpga.h | 8 * struct ihs_fpga_regs - IHS FPGA register map structure 34 * ihs_fpga_set() - Convenience macro to set values in FPGA register map 35 * @map: Register map to set a value in 39 #define ihs_fpga_set(map, member, val) \ argument 40 regmap_set(map, struct ihs_fpga_regs, member, val) 43 * ihs_fpga_get() - Convenience macro to get values from FPGA register map 44 * @map: Register map to read value from 48 #define ihs_fpga_get(map, member, valp) \ argument 49 regmap_get(map, struct ihs_fpga_regs, member, valp)
|
/openbmc/qemu/include/hw/virtio/ |
H A D | cbor-helpers.h | 16 bool qemu_cbor_map_add(cbor_item_t *map, cbor_item_t *key, cbor_item_t *value); 20 bool qemu_cbor_add_bool_to_map(cbor_item_t *map, const char *key, bool value); 22 bool qemu_cbor_add_uint8_to_map(cbor_item_t *map, const char *key, 25 bool qemu_cbor_add_map_to_map(cbor_item_t *map, const char *key, 29 bool qemu_cbor_add_bytestring_to_map(cbor_item_t *map, const char *key, 32 bool qemu_cbor_add_null_to_map(cbor_item_t *map, const char *key); 34 bool qemu_cbor_add_string_to_map(cbor_item_t *map, const char *key, 37 bool qemu_cbor_add_uint8_array_to_map(cbor_item_t *map, const char *key, 40 bool qemu_cbor_add_uint8_key_bytestring_to_map(cbor_item_t *map, uint8_t key, 43 bool qemu_cbor_add_uint64_to_map(cbor_item_t *map, const char *key,
|
/openbmc/phosphor-logging/extensions/openpower-pels/ |
H A D | pel_values.hpp | 6 #include <map> 108 * @brief Map for section IDs 110 extern const std::map<std::string, std::string> sectionTitles; 113 * @brief Map for creator IDs 115 extern const std::map<std::string, std::string> creatorIDs; 118 * @brief Map for transmission states 120 extern const std::map<TransmissionState, std::string> transmissionStates; 123 * @brief Map for Procedure Descriptions 125 extern const std::map<std::string, std::string> procedureDesc; 128 * @brief Map for Callout Failing Component Types [all …]
|
/openbmc/qemu/system/ |
H A D | memory_mapping.c | 55 static inline bool mapping_contiguous(MemoryMapping *map, in mapping_contiguous() argument 59 return phys_addr == map->phys_addr + map->length && in mapping_contiguous() 60 virt_addr == map->virt_addr + map->length; in mapping_contiguous() 64 * [map->phys_addr, map->phys_addr + map->length) and 67 static inline bool mapping_have_same_region(MemoryMapping *map, in mapping_have_same_region() argument 71 return !(phys_addr + length < map->phys_addr || in mapping_have_same_region() 72 phys_addr >= map->phys_addr + map->length); in mapping_have_same_region() 76 * [map->phys_addr, map->phys_addr + map->length) and 80 static inline bool mapping_conflict(MemoryMapping *map, in mapping_conflict() argument 84 return virt_addr - map->virt_addr != phys_addr - map->phys_addr; in mapping_conflict() [all …]
|
/openbmc/qemu/include/qemu/ |
H A D | iova-tree.h | 41 typedef gboolean (*iova_tree_iterator)(DMAMap *map); 56 * @map: The GPA->IOVA mapping to insert 63 int gpa_tree_insert(IOVATree *tree, const DMAMap *map); 78 * @map: the mapping to insert 85 int iova_tree_insert(IOVATree *tree, const DMAMap *map); 91 * @map: the map range to remove 93 * Remove mappings from the tree that are covered by the map range 96 * removed from the tree. Here map->translated_addr is meaningless. 98 void iova_tree_remove(IOVATree *tree, DMAMap map); 104 * @map: the mapping to search [all …]
|
/openbmc/u-boot/drivers/axi/ |
H A D | ihs_axi.c | 16 * struct ihs_axi_regs - Structure for the register map of a IHS AXI device 47 * ihs_axi_set() - Convenience macro to set values in register map 48 * @map: The register map to write to 50 * @val: The value to write to the register map 52 #define ihs_axi_set(map, member, val) \ argument 53 regmap_set(map, struct ihs_axi_regs, member, val) 56 * ihs_axi_get() - Convenience macro to read values from register map 57 * @map: The register map to read from 61 #define ihs_axi_get(map, member, valp) \ argument 62 regmap_get(map, struct ihs_axi_regs, member, valp) [all …]
|
/openbmc/u-boot/cmd/ |
H A D | efi.c | 71 void *efi_build_mem_table(struct efi_entry_memmap *map, int size, bool skip_bs) in efi_build_mem_table() argument 82 end = (struct efi_mem_desc *)((ulong)map + size); in efi_build_mem_table() 83 count = ((ulong)end - (ulong)map->desc) / map->desc_size; in efi_build_mem_table() 84 memcpy(base, map->desc, (ulong)end - (ulong)map->desc); in efi_build_mem_table() 85 qsort(base, count, map->desc_size, h_cmp_entry); in efi_build_mem_table() 89 end = (struct efi_mem_desc *)((ulong)base + count * map->desc_size); in efi_build_mem_table() 90 for (desc = base; desc < end; desc = efi_get_next_mem_desc(map, desc)) { in efi_build_mem_table() 97 memcpy(dest, desc, map->desc_size); in efi_build_mem_table() 112 dest = efi_get_next_mem_desc(map, dest); in efi_build_mem_table() 124 static void efi_print_mem_table(struct efi_entry_memmap *map, in efi_print_mem_table() argument [all …]
|
/openbmc/phosphor-power/phosphor-regulators/test/ |
H A D | id_map_tests.cpp | 47 // Verify device is not initially in map in TEST() 50 // Add device to map in TEST() 53 // Verify device is now in map in TEST() 65 // Verify different device is not in map in TEST() 68 // Test where device ID already exists in map in TEST() 95 // Verify rail is not initially in map in TEST() 98 // Add rail to map in TEST() 101 // Verify rail is now in map in TEST() 113 // Verify different rail is not in map in TEST() 116 // Test where rail ID already exists in map in TEST() [all …]
|
/openbmc/openbmc/poky/meta/recipes-devtools/clang/clang/ |
H A D | 0027-ToolChains-Gnu.cpp-ARMLibDirs-search-also-in-lib32.patch | 33 …map=TOPDIR/BUILD/work-shared/llvm-project-source-16.0.6-r0/git=/usr/src/debug/lib32-compiler-rt/16… 34 …map=TOPDIR/BUILD/work-shared/llvm-project-source-16.0.6-r0/git=/usr/src/debug/lib32-compiler-rt/16… 36 …map=TOPDIR/BUILD/work-shared/llvm-project-source-16.0.6-r0/git=/usr/src/debug/lib32-compiler-rt/16…
|
/openbmc/u-boot/arch/x86/lib/ |
H A D | coreboot_table.c | 101 struct cb_memory_range *map; in write_coreboot_table() local 115 /* populate memory map table */ in write_coreboot_table() 118 map = mem->map; in write_coreboot_table() 123 map->start.lo = e820[i].addr & 0xffffffff; in write_coreboot_table() 124 map->start.hi = e820[i].addr >> 32; in write_coreboot_table() 125 map->size.lo = e820[i].size & 0xffffffff; in write_coreboot_table() 126 map->size.hi = e820[i].size >> 32; in write_coreboot_table() 127 map->type = e820[i].type; in write_coreboot_table() 128 map++; in write_coreboot_table() 133 map->start.lo = cfg_tables->start & 0xffffffff; in write_coreboot_table() [all …]
|
/openbmc/qemu/tests/qemu-iotests/ |
H A D | 146 | 55 $QEMU_IMG map --output=json --image-opts \ 63 $QEMU_IMG map --output=json --image-opts \ 71 $QEMU_IMG map --output=json --image-opts \ 82 $QEMU_IMG map --output=json --image-opts \ 90 $QEMU_IMG map --output=json --image-opts \ 98 $QEMU_IMG map --output=json --image-opts \ 109 $QEMU_IMG map --output=json --image-opts \ 117 $QEMU_IMG map --output=json --image-opts \ 125 $QEMU_IMG map --output=json --image-opts \ 143 $QEMU_IMG map --output=json --image-opts \ [all …]
|