Home
last modified time | relevance | path

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

12345678

/rk3399_rockchip-uboot/test/dm/
H A Dregmap.c22 struct regmap *map; in dm_test_regmap_base() local
26 map = syscon_get_regmap(dev); in dm_test_regmap_base()
27 ut_assertok_ptr(map); in dm_test_regmap_base()
28 ut_asserteq(1, map->range_count); in dm_test_regmap_base()
29 ut_asserteq(0x10, map->base); in dm_test_regmap_base()
30 ut_asserteq(0x10, map->range->start); in dm_test_regmap_base()
31 ut_asserteq(4, map->range->size); in dm_test_regmap_base()
32 ut_asserteq_ptr(&map->base_range, map->range); in dm_test_regmap_base()
33 ut_asserteq(0x10, map_to_sysmem(regmap_get_range(map, 0))); in dm_test_regmap_base()
36 map = syscon_get_regmap(dev); in dm_test_regmap_base()
[all …]
H A Dsyscon.c55 struct regmap *map; in dm_test_syscon_by_phandle() local
61 map = syscon_regmap_lookup_by_phandle(dev, "first-syscon"); in dm_test_syscon_by_phandle()
62 ut_assert(map); in dm_test_syscon_by_phandle()
63 ut_assert(!IS_ERR(map)); in dm_test_syscon_by_phandle()
64 ut_asserteq(1, map->range_count); in dm_test_syscon_by_phandle()
68 map = syscon_regmap_lookup_by_phandle(dev, "second-sys-ctrl"); in dm_test_syscon_by_phandle()
69 ut_assert(map); in dm_test_syscon_by_phandle()
70 ut_assert(!IS_ERR(map)); in dm_test_syscon_by_phandle()
71 ut_asserteq(4, map->range_count); in dm_test_syscon_by_phandle()
/rk3399_rockchip-uboot/drivers/core/
H A Dregmap.c23 struct regmap *map; in regmap_alloc_count() local
25 map = malloc(sizeof(struct regmap)); in regmap_alloc_count()
26 if (!map) in regmap_alloc_count()
29 map->range = &map->base_range; in regmap_alloc_count()
31 map->range = malloc(count * sizeof(struct regmap_range)); in regmap_alloc_count()
32 if (!map->range) { in regmap_alloc_count()
33 free(map); in regmap_alloc_count()
37 map->range_count = count; in regmap_alloc_count()
39 return map; in regmap_alloc_count()
47 struct regmap *map; in regmap_init_mem_platdata() local
[all …]
H A Dsyscon-uclass.c103 struct regmap *map; in syscon_get_first_range() local
105 map = syscon_get_regmap_by_driver_data(driver_data); in syscon_get_first_range()
106 if (IS_ERR(map)) in syscon_get_first_range()
107 return map; in syscon_get_first_range()
108 return regmap_get_range(map, 0); in syscon_get_first_range()
/rk3399_rockchip-uboot/include/
H A Dregmap.h40 int regmap_write(struct regmap *map, uint offset, uint val);
41 int regmap_read(struct regmap *map, uint offset, uint *valp);
43 #define regmap_write32(map, ptr, member, val) \ argument
44 regmap_write(map, (uint32_t *)(ptr)->member - (uint32_t *)(ptr), val)
46 #define regmap_read32(map, ptr, member, valp) \ argument
47 regmap_read(map, (uint32_t *)(ptr)->member - (uint32_t *)(ptr), valp)
67 #define regmap_read_poll_timeout(map, addr, val, cond, sleep_us, timeout_ms) \ argument
72 __ret = regmap_read((map), (addr), &(val)); \
78 __ret = regmap_read((map), (addr), &(val)); \
95 int regmap_update_bits(struct regmap *map, uint offset, uint mask, uint val);
[all …]
/rk3399_rockchip-uboot/arch/x86/lib/efi/
H A Defi.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 …]
/rk3399_rockchip-uboot/cmd/
H A Defi.c69 void *efi_build_mem_table(struct efi_entry_memmap *map, int size, bool skip_bs) in efi_build_mem_table() argument
80 end = (struct efi_mem_desc *)((ulong)map + size); in efi_build_mem_table()
81 count = ((ulong)end - (ulong)map->desc) / map->desc_size; in efi_build_mem_table()
82 memcpy(base, map->desc, (ulong)end - (ulong)map->desc); in efi_build_mem_table()
83 qsort(base, count, map->desc_size, h_cmp_entry); in efi_build_mem_table()
88 for (desc = base; desc < end; desc = efi_get_next_mem_desc(map, desc)) { in efi_build_mem_table()
95 memcpy(dest, desc, map->desc_size); in efi_build_mem_table()
110 dest = efi_get_next_mem_desc(map, dest); in efi_build_mem_table()
122 static void efi_print_mem_table(struct efi_entry_memmap *map, in efi_print_mem_table() argument
137 upto++, desc = efi_get_next_mem_desc(map, desc)) { in efi_print_mem_table()
[all …]
/rk3399_rockchip-uboot/arch/x86/lib/
H A Dcoreboot_table.c102 struct cb_memory_range *map; in write_coreboot_table() local
119 map = mem->map; in write_coreboot_table()
124 map->start.lo = e820[i].addr & 0xffffffff; in write_coreboot_table()
125 map->start.hi = e820[i].addr >> 32; in write_coreboot_table()
126 map->size.lo = e820[i].size & 0xffffffff; in write_coreboot_table()
127 map->size.hi = e820[i].size >> 32; in write_coreboot_table()
128 map->type = e820[i].type; in write_coreboot_table()
129 map++; in write_coreboot_table()
134 map->start.lo = cfg_tables->start & 0xffffffff; in write_coreboot_table()
135 map->start.hi = cfg_tables->start >> 32; in write_coreboot_table()
[all …]
/rk3399_rockchip-uboot/scripts/basic/
H A Dfixdep.c220 static void parse_config_file(const char *map, size_t len) in parse_config_file() argument
222 const int *end = (const int *) (map + len); in parse_config_file()
224 const int *m = (const int *) map + 1; in parse_config_file()
235 if (p > map + len - 7) in parse_config_file()
240 for (q = p; q < map + len; q++) { in parse_config_file()
264 for (q = p; q < map + len; q++) in parse_config_file()
298 void *map; in do_config_file() local
315 map = mmap(NULL, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0); in do_config_file()
316 if ((long) map == -1) { in do_config_file()
322 parse_config_file(map, st.st_size); in do_config_file()
[all …]
/rk3399_rockchip-uboot/board/freescale/common/
H A Dcds_pci_ft.c18 u32 *map = NULL, *piccells = NULL; in cds_pci_fixup() local
27 map = fdt_getprop_w(blob, node, "interrupt-map", &len); in cds_pci_fixup()
36 off = fdt_node_offset_by_phandle(blob, fdt32_to_cpu(*(map+cells))); in cds_pci_fixup()
51 if (map) { in cds_pci_fixup()
60 map[3] = ((map[3] + slot - 2) % 4) + 1; in cds_pci_fixup()
61 map+=cells; in cds_pci_fixup()
/rk3399_rockchip-uboot/lib/efi_loader/
H A Defi_runtime.c217 void efi_runtime_relocate(ulong offset, struct efi_mem_desc *map) in efi_runtime_relocate() argument
245 if (map && ((newaddr < map->virtual_start) || in efi_runtime_relocate()
246 newaddr > (map->virtual_start + (map->num_pages << 12)))) { in efi_runtime_relocate()
281 struct efi_mem_desc *map = (void*)virtmap + in efi_set_virtual_address_map() local
284 efi_physical_addr_t map_start = map->physical_start; in efi_set_virtual_address_map()
285 efi_physical_addr_t map_len = map->num_pages << EFI_PAGE_SHIFT; in efi_set_virtual_address_map()
297 u64 off = map->virtual_start - map_start; in efi_set_virtual_address_map()
306 struct efi_mem_desc *map; in efi_set_virtual_address_map() local
308 map = (void*)virtmap + (descriptor_size * i); in efi_set_virtual_address_map()
309 if (map->type == EFI_RUNTIME_SERVICES_CODE) { in efi_set_virtual_address_map()
[all …]
H A Defi_memory.c90 static int efi_mem_carve_out(struct efi_mem_list *map, in efi_mem_carve_out() argument
95 struct efi_mem_desc *map_desc = &map->desc; in efi_mem_carve_out()
118 list_del(&map->link); in efi_mem_carve_out()
119 free(map); in efi_mem_carve_out()
121 map->desc.physical_start = carve_end; in efi_mem_carve_out()
122 map->desc.num_pages = (map_end - carve_end) in efi_mem_carve_out()
138 newmap->desc = map->desc; in efi_mem_carve_out()
142 list_add_tail(&newmap->link, &map->link); in efi_mem_carve_out()
/rk3399_rockchip-uboot/include/u-boot/
H A Dzlib.h364 # pragma map(deflateInit_,"DEIN")
365 # pragma map(deflateInit2_,"DEIN2")
366 # pragma map(deflateEnd,"DEEND")
367 # pragma map(deflateBound,"DEBND")
368 # pragma map(inflateInit_,"ININ")
369 # pragma map(inflateInit2_,"ININ2")
370 # pragma map(inflateEnd,"INEND")
371 # pragma map(inflateSync,"INSY")
372 # pragma map(inflateSetDictionary,"INSEDI")
373 # pragma map(compressBound,"CMBND")
[all …]
/rk3399_rockchip-uboot/tools/
H A Dmingw_support.c27 void *map = NULL; in mmap() local
53 map = MapViewOfFile(handle, mvf_flags, HIDWORD(offset), in mmap()
57 if (!map) in mmap()
60 return map; in mmap()
/rk3399_rockchip-uboot/arch/arm/dts/
H A Darmada-xp-mv78460.dtsi162 interrupt-map-mask = <0 0 0 0>;
163 interrupt-map = <0 0 0 0 &mpic 58>;
179 interrupt-map-mask = <0 0 0 0>;
180 interrupt-map = <0 0 0 0 &mpic 59>;
196 interrupt-map-mask = <0 0 0 0>;
197 interrupt-map = <0 0 0 0 &mpic 60>;
213 interrupt-map-mask = <0 0 0 0>;
214 interrupt-map = <0 0 0 0 &mpic 61>;
230 interrupt-map-mask = <0 0 0 0>;
231 interrupt-map = <0 0 0 0 &mpic 62>;
[all …]
H A Darmada-xp-mv78260.dtsi141 interrupt-map-mask = <0 0 0 0>;
142 interrupt-map = <0 0 0 0 &mpic 58>;
158 interrupt-map-mask = <0 0 0 0>;
159 interrupt-map = <0 0 0 0 &mpic 59>;
175 interrupt-map-mask = <0 0 0 0>;
176 interrupt-map = <0 0 0 0 &mpic 60>;
192 interrupt-map-mask = <0 0 0 0>;
193 interrupt-map = <0 0 0 0 &mpic 61>;
209 interrupt-map-mask = <0 0 0 0>;
210 interrupt-map = <0 0 0 0 &mpic 62>;
[all …]
H A Darmada-xp-mv78230.dtsi126 interrupt-map-mask = <0 0 0 0>;
127 interrupt-map = <0 0 0 0 &mpic 58>;
143 interrupt-map-mask = <0 0 0 0>;
144 interrupt-map = <0 0 0 0 &mpic 59>;
160 interrupt-map-mask = <0 0 0 0>;
161 interrupt-map = <0 0 0 0 &mpic 60>;
177 interrupt-map-mask = <0 0 0 0>;
178 interrupt-map = <0 0 0 0 &mpic 61>;
194 interrupt-map-mask = <0 0 0 0>;
195 interrupt-map = <0 0 0 0 &mpic 62>;
H A Darmada-385.dtsi118 interrupt-map-mask = <0 0 0 0>;
119 interrupt-map = <0 0 0 0 &gic GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
136 interrupt-map-mask = <0 0 0 0>;
137 interrupt-map = <0 0 0 0 &gic GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
154 interrupt-map-mask = <0 0 0 0>;
155 interrupt-map = <0 0 0 0 &gic GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>;
175 interrupt-map-mask = <0 0 0 0>;
176 interrupt-map = <0 0 0 0 &gic GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
/rk3399_rockchip-uboot/drivers/input/
H A Dkey_matrix.c111 uchar *map; in create_keymap() local
115 map = (uchar *)calloc(1, config->key_count); in create_keymap()
116 if (!map) { in create_keymap()
131 map[entry] = key_code; in create_keymap()
138 return map; in create_keymap()
/rk3399_rockchip-uboot/drivers/video/
H A Dipu_disp.c238 static void ipu_dc_map_config(int map, int byte_num, int offset, int mask) in ipu_dc_map_config() argument
240 int ptr = map * 3 + byte_num; in ipu_dc_map_config()
248 reg = __raw_readl(DC_MAP_CONF_PTR(map)); in ipu_dc_map_config()
249 reg &= ~(0x1F << ((16 * (map & 0x1)) + (5 * byte_num))); in ipu_dc_map_config()
250 reg |= ptr << ((16 * (map & 0x1)) + (5 * byte_num)); in ipu_dc_map_config()
251 __raw_writel(reg, DC_MAP_CONF_PTR(map)); in ipu_dc_map_config()
254 static void ipu_dc_map_clear(int map) in ipu_dc_map_clear() argument
256 u32 reg = __raw_readl(DC_MAP_CONF_PTR(map)); in ipu_dc_map_clear()
257 __raw_writel(reg & ~(0xFFFF << (16 * (map & 0x1))), in ipu_dc_map_clear()
258 DC_MAP_CONF_PTR(map)); in ipu_dc_map_clear()
[all …]
/rk3399_rockchip-uboot/drivers/ram/rockchip/sdram_inc/rv1126/
H A Dsdram-rv1126-loader_params.inc124 /* ddr4 map << 0 | ddr3 map << 24 */
128 /* lp3 map << 16 | lp4 map << 24 */
132 /* lp3 dq0-7 map */
135 /* lp2 dq0-7 map */
137 /* ddr4 dq map */
/rk3399_rockchip-uboot/arch/mips/dts/
H A Dimg,boston.dts63 interrupt-map-mask = <0 0 0 7>;
64 interrupt-map = <0 0 0 1 &pci0_intc 0>,
92 interrupt-map-mask = <0 0 0 7>;
93 interrupt-map = <0 0 0 1 &pci1_intc 0>,
120 interrupt-map-mask = <0 0 0 7>;
121 interrupt-map = <0 0 0 1 &pci2_intc 0>,
/rk3399_rockchip-uboot/doc/device-tree-bindings/pci/
H A Darmada8k-pcie.txt11 - interrupt-map-mask and interrupt-map, standard PCI properties to
42 interrupt-map-mask = <0 0 0 0>;
43 interrupt-map = <0 0 0 0 &gic 0 GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
/rk3399_rockchip-uboot/doc/device-tree-bindings/spi/
H A Dspi-stm32-qspi.txt6 - reg : 1. Physical base address and size of SPI registers map.
16 - memory-map : Address and size for memory-mapping the flash
36 memory-map = <0x90000000 0x1000000>;
/rk3399_rockchip-uboot/doc/
H A DREADME.at9113 Memory map
35 Memory map
57 Memory map
81 Memory map
97 Memory map
115 Memory map
136 Memory map

12345678