Home
last modified time | relevance | path

Searched refs:map (Results 1 – 25 of 1444) sorted by relevance

12345678910>>...58

/openbmc/u-boot/board/synopsys/hsdk/
H A Denv-lib.c11 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 …]
H A Denv-lib.h42 void envs_cleanup_common(const struct env_map_common *map);
43 int envs_read_common(const struct env_map_common *map);
44 int envs_validate_common(const struct env_map_common *map);
45 int envs_read_validate_common(const struct env_map_common *map);
47 void envs_cleanup_core(const struct env_map_percpu *map);
48 int envs_read_validate_core(const struct env_map_percpu *map,
54 int args_envs_enumerate(const struct env_map_common *map,
/openbmc/u-boot/test/dm/
H A Dregmap.c19 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 Dsyscon.c52 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/qemu/util/
H A Dqht.c228 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
257 static inline void qht_do_if_first_in_stripe(struct qht_map *map, in qht_do_if_first_in_stripe() argument
262 unsigned long bucket_idx = b - map->buckets; in qht_do_if_first_in_stripe()
266 func(&map->tsan_bucket_locks[lock_idx].lock); in qht_do_if_first_in_stripe()
273 static inline void qht_bucket_lock_do(struct qht_map *map, in qht_bucket_lock_do() argument
278 unsigned long bucket_idx = b - map->buckets; in qht_bucket_lock_do()
280 func(&map->tsan_bucket_locks[lock_idx].lock); in qht_bucket_lock_do()
[all …]
H A Diova-tree.c84 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()
124 int iova_tree_insert(IOVATree *tree, const DMAMap *map) in iova_tree_insert() argument
128 if (map->iova + map->size < map->iova || map->perm == IOMMU_NONE) { in iova_tree_insert()
[all …]
/openbmc/u-boot/drivers/core/
H A Dregmap.c28 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/hw/virtio/
H A Dvhost-iova-tree.c78 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()
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()
115 map->translated_addr = taddr; in vhost_iova_tree_map_alloc()
116 return iova_tree_insert(tree->iova_taddr_map, map); in vhost_iova_tree_map_alloc()
125 void vhost_iova_tree_remove(VhostIOVATree *iova_tree, DMAMap map) in vhost_iova_tree_remove() argument
127 iova_tree_remove(iova_tree->iova_taddr_map, map); in vhost_iova_tree_remove()
128 iova_tree_remove(iova_tree->iova_map, map); in vhost_iova_tree_remove()
[all …]
H A Dcbor-helpers.c13 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/u-boot/include/
H A Dregmap.h106 int regmap_write(struct regmap *map, uint offset, uint val);
122 int regmap_read(struct regmap *map, uint offset, uint *valp);
138 int regmap_raw_write(struct regmap *map, uint offset, const void *val,
156 int regmap_raw_read(struct regmap *map, uint offset, void *valp,
171 int regmap_raw_write_range(struct regmap *map, uint range_num, uint offset,
187 int regmap_raw_read_range(struct regmap *map, uint range_num, uint offset,
199 #define regmap_range_set(map, range, type, member, val) \ argument
202 regmap_raw_write_range(map, range, offsetof(type, member), \
213 #define regmap_set(map, type, member, val) \ argument
214 regmap_range_set(map, 0, type, member, val)
[all …]
/openbmc/u-boot/arch/x86/cpu/efi/
H A Dpayload.c28 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()
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()
84 end = (struct efi_mem_desc *)((ulong)map + size); in dram_init()
86 desc = map->desc; in dram_init()
87 for (; desc < end; desc = efi_get_next_mem_desc(map, desc)) { in dram_init()
[all …]
/openbmc/qemu/include/hw/virtio/
H A Dcbor-helpers.h16 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/u-boot/cmd/
H A Defi.c71 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/qemu/
H A Dgitdm.config26 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/phosphor-mboxd/vpnor/test/
H A Dwrite_rw.cpp30 void *map; in main() local
50 map = mmap(NULL, sizeof(src), PROT_READ, MAP_SHARED, fd, 0); in main()
51 assert(map != MAP_FAILED); in main()
52 rc = memcmp(src, map, sizeof(src)); in main()
59 rc = memcmp(src, map, sizeof(src)); in main()
65 rc = memcmp(src, map, sizeof(src)); in main()
71 rc = memcmp(src, map, sizeof(src)); in main()
77 rc = memcmp(src, map, sizeof(src)); in main()
86 map = mmap(NULL, sizeof(src), PROT_READ, MAP_SHARED, fd, 0); in main()
87 assert(map != MAP_FAILED); in main()
[all …]
/openbmc/hiomapd/vpnor/test/
H A Dwrite_rw.cpp34 void* map; in main() local
54 map = mmap(NULL, sizeof(src), PROT_READ, MAP_SHARED, fd, 0); in main()
55 assert(map != MAP_FAILED); in main()
56 rc = memcmp(src, map, sizeof(src)); in main()
63 rc = memcmp(src, map, sizeof(src)); in main()
69 rc = memcmp(src, map, sizeof(src)); in main()
75 rc = memcmp(src, map, sizeof(src)); in main()
81 rc = memcmp(src, map, sizeof(src)); in main()
90 map = mmap(NULL, sizeof(src), PROT_READ, MAP_SHARED, fd, 0); in main()
91 assert(map != MAP_FAILED); in main()
[all …]
/openbmc/qemu/tests/qemu-iotests/
H A D14655 $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 …]
/openbmc/u-boot/drivers/axi/
H A Dihs_axi.c52 #define ihs_axi_set(map, member, val) \ argument
53 regmap_set(map, struct ihs_axi_regs, member, val)
61 #define ihs_axi_get(map, member, valp) \ argument
62 regmap_get(map, struct ihs_axi_regs, member, valp)
69 struct regmap *map; member
172 ihs_axi_set(priv->map, address_lsb, address & 0xffff); in ihs_axi_transfer()
174 ihs_axi_set(priv->map, address_msb, (address >> 16) & 0xffff); in ihs_axi_transfer()
176 ihs_axi_set(priv->map, interrupt_status, wait_mask); in ihs_axi_transfer()
177 ihs_axi_set(priv->map, interrupt_enable_control, cmd); in ihs_axi_transfer()
180 ihs_axi_get(priv->map, interrupt_status, &status); in ihs_axi_transfer()
[all …]
/openbmc/phosphor-networkd/test/
H A Dtest_config_parser.cpp97 parser.map, in ValidateSectionMap()
118 EXPECT_EQ(SectionMap(), parser.map); in TEST_F()
127 EXPECT_EQ(SectionMap(), parser.map); in TEST_F()
136 EXPECT_EQ(SectionMap(), parser.map); in TEST_F()
148 const auto& map = parser.map; in TEST_F() local
150 EXPECT_EQ("eth0", *map.getLastValueString("Match", "Name")); in TEST_F()
151 EXPECT_EQ("yes", *map.getLastValueString("Network", "DHCP")); in TEST_F()
152 EXPECT_EQ(nullptr, map.getLastValueString("Match", "BadKey")); in TEST_F()
153 EXPECT_EQ(nullptr, map.getLastValueString("BadSec", "Name")); in TEST_F()
154 EXPECT_EQ(nullptr, map.getLastValueString("BadSec", "Name")); in TEST_F()
[all …]
/openbmc/phosphor-power/
H A Djson_parser_utils.hpp49 extern const std::map<std::string, std::string> NO_VARIABLES;
88 const std::map<std::string, std::string>& variables = NO_VARIABLES);
103 const std::map<std::string, std::string>& variables = NO_VARIABLES);
118 const std::map<std::string, std::string>& variables = NO_VARIABLES);
133 const std::map<std::string, std::string>& variables = NO_VARIABLES);
152 const std::map<std::string, std::string>& variables = NO_VARIABLES);
168 const std::map<std::string, std::string>& variables = NO_VARIABLES);
183 const std::map<std::string, std::string>& variables = NO_VARIABLES);
198 const std::map<std::string, std::string>& variables = NO_VARIABLES);
214 const std::map<std::string, std::string>& variables = NO_VARIABLES);
[all …]
/openbmc/openbmc/poky/meta/recipes-devtools/gcc/gcc/
H A D0026-fix-incorrect-preprocessor-line-numbers.patch27 /* 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/u-boot/arch/x86/lib/
H A Dcoreboot_table.c101 struct cb_memory_range *map; in write_coreboot_table() local
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()
134 map->start.hi = cfg_tables->start >> 32; in write_coreboot_table()
[all …]
/openbmc/u-boot/drivers/misc/
H A Dgdsys_rxaui_ctrl.c24 #define rxaui_ctrl_set(map, member, val) \ argument
25 regmap_set(map, struct gdsys_rxaui_ctrl_regs, member, val)
27 #define rxaui_ctrl_get(map, member, valp) \ argument
28 regmap_get(map, struct gdsys_rxaui_ctrl_regs, member, valp)
31 struct regmap *map; member
39 rxaui_ctrl_get(priv->map, ctrl_1, &state); in gdsys_rxaui_set_polarity_inversion()
46 rxaui_ctrl_set(priv->map, ctrl_1, state); in gdsys_rxaui_set_polarity_inversion()
59 regmap_init_mem(dev, &priv->map); in gdsys_rxaui_ctrl_probe()
/openbmc/pldm/pldmtool/oem/ibm/
H A Doem_ibm_state_set.hpp48 extern const std::map<uint8_t, std::string> OemIBMEntityType{
56 extern const std::map<uint16_t, std::string> OemIBMstateSet{
64 extern const std::map<uint8_t, std::string> SetOemIBMFWUpdateStateValues{
74 extern const std::map<uint8_t, std::string> SetOemIBMVerStateValues{
83 extern const std::map<uint8_t, std::string> SetOemIBMSysPowerStatesValues{
88 extern const std::map<uint8_t, std::string> SetOemIBMBootStateValues{
94 extern const std::map<uint16_t, const std::map<uint8_t, std::string>>
/openbmc/qemu/include/qemu/
H A Diova-tree.h41 typedef gboolean (*iova_tree_iterator)(DMAMap *map);
63 int gpa_tree_insert(IOVATree *tree, const DMAMap *map);
85 int iova_tree_insert(IOVATree *tree, const DMAMap *map);
98 void iova_tree_remove(IOVATree *tree, DMAMap map);
116 const DMAMap *iova_tree_find(const IOVATree *tree, const DMAMap *map);
134 const DMAMap *iova_tree_find_iova(const IOVATree *tree, const DMAMap *map);
150 int iova_tree_alloc_map(IOVATree *tree, DMAMap *map, hwaddr iova_begin,

12345678910>>...58