Home
last modified time | relevance | path

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

12345678910>>...14

/u-boot/board/synopsys/hsdk/
A Denv-lib.c15 map[index].val->val = 0; in env_clear_common()
16 map[index].val->set = false; in env_clear_common()
32 map[index].val->val = val; in env_read_common()
33 map[index].val->set = true; in env_read_common()
75 u32 min = map[index].min; in env_validate_common()
76 u32 max = map[index].max; in env_validate_common()
121 min = map[index].min[i]; in env_validate_core()
122 max = map[index].max[i]; in env_validate_core()
144 env_clear_core(i, map); in envs_cleanup_core()
202 envs_cleanup_core(map); in envs_read_validate_core()
[all …]
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,
/u-boot/drivers/core/
A Dregmap.c52 size_t size = sizeof(*map) + sizeof(map->ranges[0]) * count; in regmap_alloc()
55 if (!map) in regmap_alloc()
60 return map; in regmap_alloc()
71 if (!map) in regmap_init_mem_plat()
79 *mapp = map; in regmap_init_mem_plat()
157 if (!map) in regmap_init_mem_index()
173 *mapp = map; in regmap_init_mem_index()
189 if (!map) in regmap_init_mem_range()
205 *mapp = map; in regmap_init_mem_range()
255 if (!map) in regmap_init_mem()
[all …]
/u-boot/test/dm/
A Dregmap.c24 struct regmap *map; in dm_test_regmap_base() local
30 ut_assertok_ptr(map); in dm_test_regmap_base()
38 ut_assertok_ptr(map); in dm_test_regmap_base()
59 ut_assertok_ptr(map); in dm_test_regmap_base()
77 struct regmap *map; in dm_test_regmap_syscon() local
80 ut_assertok_ptr(map); in dm_test_regmap_syscon()
84 ut_assertok_ptr(map); in dm_test_regmap_syscon()
104 struct regmap *map; in dm_test_regmap_rw() local
110 ut_assertok_ptr(map); in dm_test_regmap_rw()
138 struct regmap *map; in dm_test_regmap_getset() local
[all …]
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()
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()
76 ut_assert(map); in dm_test_syscon_by_phandle()
77 ut_assert(!IS_ERR(map)); in dm_test_syscon_by_phandle()
[all …]
A Dsyscon-reset.c28 struct regmap *map; in dm_test_syscon_reset() local
41 ut_assertok_ptr((map = syscon_get_regmap(syscon))); in dm_test_syscon_reset()
48 ut_assertok(regmap_write(map, TEST_RESET_REG, TEST_RESET_DEASSERT)); in dm_test_syscon_reset()
50 ut_assertok(regmap_read(map, TEST_RESET_REG, &reg)); in dm_test_syscon_reset()
54 ut_assertok(regmap_read(map, TEST_RESET_REG, &reg)); in dm_test_syscon_reset()
A Dmux-mmio.c20 struct regmap *map; in dm_test_mux_mmio_select() local
33 map = syscon_regmap_lookup_by_phandle(dev, "mux-syscon"); in dm_test_mux_mmio_select()
34 ut_assertok_ptr(map); in dm_test_mux_mmio_select()
35 ut_assert(map); in dm_test_mux_mmio_select()
46 ut_assertok(regmap_read(map, 0, &val)); in dm_test_mux_mmio_select()
53 ut_assertok(regmap_read(map, 0, &val)); in dm_test_mux_mmio_select()
60 ut_assertok(regmap_read(map, 0xc, &val)); in dm_test_mux_mmio_select()
67 ut_assertok(regmap_read(map, 0xc, &val)); in dm_test_mux_mmio_select()
/u-boot/include/
A Dregmap.h131 int regmap_write(struct regmap *map, uint offset, uint val);
143 int regmap_read(struct regmap *map, uint offset, uint *valp);
222 #define regmap_range_set(map, range, type, member, val) \ argument
236 #define regmap_set(map, type, member, val) \ argument
237 regmap_range_set(map, 0, type, member, val)
249 #define regmap_range_get(map, range, type, member, valp) \ argument
262 #define regmap_get(map, type, member, valp) \ argument
263 regmap_range_get(map, 0, type, member, valp)
294 __ret = regmap_read((map), (addr), &(val)); \
302 __ret = regmap_read((map), (addr), &(val)); \
[all …]
/u-boot/arch/x86/cpu/efi/
A Dpayload.c32 struct efi_entry_memmap *map; in board_get_usable_ram_top() local
52 desc = map->desc; in board_get_usable_ram_top()
78 struct efi_entry_memmap *map; in dram_init() local
90 desc = map->desc; in dram_init()
102 struct efi_entry_memmap *map; in dram_init_banksize() local
113 desc = map->desc; in dram_init_banksize()
183 struct efi_entry_memmap *map; in install_e820_map() local
198 for (desc = map->desc; desc < end; in install_e820_map()
263 struct efi_entry_memmap *map; in setup_efi_info() local
281 efi_info->efi_memdesc_size = map->desc_size; in setup_efi_info()
[all …]
/u-boot/fs/btrfs/
A Dvolumes.c136 return map->num_stripes - nr_parity_stripes(map); in nr_data_stripes()
520 struct map_lookup *map; in read_one_chunk() local
550 if (!map) in read_one_chunk()
554 map->ce.size = length; in read_one_chunk()
585 map->ce.start, map->ce.size, ret); in read_one_chunk()
852 struct map_lookup *map; in btrfs_num_copies() local
891 struct map_lookup *map; in btrfs_next_bg() local
958 struct map_lookup *map; in __btrfs_map_block() local
1066 int factor = map->num_stripes / map->sub_stripes; in __btrfs_map_block()
1089 u64 full_stripe_len = nr_data_stripes(map) * map->stripe_len; in __btrfs_map_block()
[all …]
/u-boot/drivers/axi/
A Dihs_axi.c55 #define ihs_axi_set(map, member, val) \ argument
56 regmap_set(map, struct ihs_axi_regs, member, val)
64 #define ihs_axi_get(map, member, valp) \ argument
65 regmap_get(map, struct ihs_axi_regs, member, valp)
72 struct regmap *map; member
179 ihs_axi_set(priv->map, interrupt_status, wait_mask); in ihs_axi_transfer()
183 ihs_axi_get(priv->map, interrupt_status, &status); in ihs_axi_transfer()
194 ihs_axi_get(priv->map, interrupt_status, &status); in ihs_axi_transfer()
233 ihs_axi_get(priv->map, read_data_lsb, &data_lsb); in ihs_axi_read()
234 ihs_axi_get(priv->map, read_data_msb, &data_msb); in ihs_axi_read()
[all …]
/u-boot/cmd/
A Defi.c98 end = (struct efi_mem_desc *)((ulong)map + size); in efi_build_mem_table()
99 count = ((ulong)end - (ulong)map->desc) / map->desc_size; in efi_build_mem_table()
100 memcpy(base, map->desc, (ulong)end - (ulong)map->desc); in efi_build_mem_table()
101 qsort(base, count, map->desc_size, h_cmp_entry); in efi_build_mem_table()
119 memcpy(dest, desc, map->desc_size); in efi_build_mem_table()
134 dest = efi_get_next_mem_desc(map, dest); in efi_build_mem_table()
219 struct efi_entry_memmap *map; in do_efi_mem() local
234 gd->arch.table, map, size, map->version, map->desc_size); in do_efi_mem()
235 if (map->version != EFI_MEM_DESC_VERSION) { in do_efi_mem()
241 desc = efi_build_mem_table(map, size, skip_bs); in do_efi_mem()
[all …]
/u-boot/drivers/misc/
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
42 rxaui_ctrl_get(priv->map, ctrl_1, &state); in gdsys_rxaui_set_polarity_inversion()
49 rxaui_ctrl_set(priv->map, ctrl_1, state); in gdsys_rxaui_set_polarity_inversion()
62 regmap_init_mem(dev_ofnode(dev), &priv->map); in gdsys_rxaui_ctrl_probe()
A Dgdsys_ioep.c28 struct regmap *map; member
56 gdsys_ioep_set(priv->map, tx_control, state); in gdsys_ioep_set_receive()
60 gdsys_ioep_set(priv->map, device_address, 1); in gdsys_ioep_set_receive()
74 gdsys_ioep_set(priv->map, transmit_data, *(p++)); in gdsys_ioep_send()
76 gdsys_ioep_set(priv->map, tx_control, CTRL_PROC_RECEIVE_ENABLE | in gdsys_ioep_send()
103 gdsys_ioep_get(priv->map, receive_data, buffer++); in receive_byte_buffer()
105 gdsys_ioep_get(priv->map, rx_tx_status, &rx_tx_status); in receive_byte_buffer()
166 gdsys_ioep_get(priv->map, rx_tx_status, status); in gdsys_ioep_get_and_reset_status()
168 gdsys_ioep_set(priv->map, rx_tx_status, *status); in gdsys_ioep_get_and_reset_status()
185 ret = regmap_init_mem(dev_ofnode(dev), &priv->map); in gdsys_ioep_probe()
A Dihs_fpga.h39 #define ihs_fpga_set(map, member, val) \ argument
40 regmap_set(map, struct ihs_fpga_regs, member, val)
48 #define ihs_fpga_get(map, member, valp) \ argument
49 regmap_get(map, struct ihs_fpga_regs, member, valp)
/u-boot/arch/x86/lib/
A Dcoreboot_table.c104 struct cb_memory_range *map; in write_coreboot_table() local
121 map = mem->map; in write_coreboot_table()
127 map->start.hi = e820[i].addr >> 32; in write_coreboot_table()
128 map->size.lo = e820[i].size & 0xffffffff; in write_coreboot_table()
129 map->size.hi = e820[i].size >> 32; in write_coreboot_table()
130 map->type = e820[i].type; in write_coreboot_table()
131 map++; in write_coreboot_table()
137 map->start.hi = cfg_tables->start >> 32; in write_coreboot_table()
139 map->size.hi = cfg_tables->size >> 32; in write_coreboot_table()
140 map->type = CB_MEM_TABLE; in write_coreboot_table()
[all …]
/u-boot/board/freescale/common/
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()
/u-boot/drivers/reset/
A Dreset-ipq4019.c105 const struct qcom_reset_map *map; in ipq4019_reset_assert() local
108 map = &reset_map[rst->id]; in ipq4019_reset_assert()
110 value = readl(priv->base + map->reg); in ipq4019_reset_assert()
111 value |= BIT(map->bit); in ipq4019_reset_assert()
112 writel(value, priv->base + map->reg); in ipq4019_reset_assert()
121 const struct qcom_reset_map *map; in ipq4019_reset_deassert() local
124 map = &reset_map[rst->id]; in ipq4019_reset_deassert()
126 value = readl(priv->base + map->reg); in ipq4019_reset_deassert()
127 value &= ~BIT(map->bit); in ipq4019_reset_deassert()
128 writel(value, priv->base + map->reg); in ipq4019_reset_deassert()
/u-boot/include/linux/
A Dbitmap.h49 __bitmap_set(unsigned long *map, unsigned int start, int len) in __bitmap_set() argument
51 unsigned long *p = map + BIT_WORD(start); in __bitmap_set()
70 __bitmap_clear(unsigned long *map, unsigned int start, int len) in __bitmap_clear() argument
72 unsigned long *p = map + BIT_WORD(start); in __bitmap_clear()
189 static inline void bitmap_set(unsigned long *map, unsigned int start, in bitmap_set() argument
193 __set_bit(start, map); in bitmap_set()
198 memset((char *)map + start / 8, 0xff, nbits / 8); in bitmap_set()
200 __bitmap_set(map, start, nbits); in bitmap_set()
207 __clear_bit(start, map); in bitmap_clear()
212 memset((char *)map + start / 8, 0, nbits / 8); in bitmap_clear()
[all …]
/u-boot/drivers/clk/meson/
A Daxg.c25 struct regmap *map; member
67 regmap_update_bits(priv->map, gate->reg, in meson_set_gate()
100 regmap_read(priv->map, HHI_MPEG_CLK_CNTL, &reg); in meson_clk81_get_rate()
114 regmap_read(priv->map, HHI_MPEG_CLK_CNTL, &reg); in meson_clk81_get_rate()
182 regmap_read(priv->map, psdm->reg_off, &reg); in meson_mpll_get_rate()
185 regmap_read(priv->map, pn2->reg_off, &reg); in meson_mpll_get_rate()
226 regmap_read(priv->map, pn->reg_off, &reg); in meson_pll_get_rate()
229 regmap_read(priv->map, pm->reg_off, &reg); in meson_pll_get_rate()
232 regmap_read(priv->map, pod->reg_off, &reg); in meson_pll_get_rate()
293 if (IS_ERR(priv->map)) in meson_clk_probe()
[all …]
A Dg12a-ao.c15 struct regmap *map; member
39 regmap_update_bits(priv->map, gate->reg, in meson_set_gate()
59 priv->map = syscon_node_to_regmap(dev_ofnode(dev_get_parent(dev))); in meson_clk_probe()
60 if (IS_ERR(priv->map)) in meson_clk_probe()
61 return PTR_ERR(priv->map); in meson_clk_probe()
A Dg12a.c96 struct regmap *map; member
172 regmap_update_bits(priv->map, gate->reg, in meson_set_gate_by_id()
269 regmap_read(priv->map, parm->reg_off, &reg); in meson_div_get_rate()
667 regmap_read(priv->map, pn2->reg_off, &reg); in meson_mpll_get_rate()
716 regmap_read(priv->map, pn->reg_off, &reg); in meson_pll_get_rate()
719 regmap_read(priv->map, pm->reg_off, &reg); in meson_pll_get_rate()
722 regmap_read(priv->map, pod->reg_off, &reg); in meson_pll_get_rate()
763 regmap_read(priv->map, pn->reg_off, &reg); in meson_pcie_pll_get_rate()
766 regmap_read(priv->map, pm->reg_off, &reg); in meson_pcie_pll_get_rate()
983 if (IS_ERR(priv->map)) in meson_clk_probe()
[all …]
/u-boot/arch/arm/dts/
A Dk3-j721e-som-p0.dtsi26 no-map;
32 no-map;
38 no-map;
44 no-map;
50 no-map;
56 no-map;
62 no-map;
68 no-map;
74 no-map;
80 no-map;
[all …]
/u-boot/lib/efi_loader/
A Defi_runtime.c616 if (addr >= map->physical_start && in efi_convert_pointer()
617 (addr < map->physical_start in efi_convert_pointer()
620 (addr + map->virtual_start - in efi_convert_pointer()
621 map->physical_start); in efi_convert_pointer()
722 if (map && ((newaddr < map->virtual_start) || in efi_runtime_relocate()
723 newaddr > (map->virtual_start + in efi_runtime_relocate()
824 u64 off = map->virtual_start - map_start; in efi_set_virtual_address_map()
850 struct efi_mem_desc *map; in efi_set_virtual_address_map() local
854 ulong new_offset = map->virtual_start - in efi_set_virtual_address_map()
855 map->physical_start + gd->relocaddr; in efi_set_virtual_address_map()
[all …]
/u-boot/drivers/video/
A Dihs_video_out.c49 #define ihs_video_out_set(map, member, val) \ argument
50 regmap_range_set(map, 1, struct ihs_video_out_regs, member, val)
52 #define ihs_video_out_get(map, member, valp) \ argument
72 struct regmap *map; member
112 ihs_video_out_set(priv->map, control, value); in set_control()
122 ihs_video_out_get(priv->map, versions, &versions); in ihs_video_out_get_info()
194 ihs_video_out_set(priv->map, x_pos, in ihs_video_out_set_size()
196 ihs_video_out_set(priv->map, y_pos, in ihs_video_out_set_size()
241 res = regmap_init_mem(dev_ofnode(dev), &priv->map); in ihs_video_out_probe()
249 priv->vidmem = regmap_get_range(priv->map, 2); in ihs_video_out_probe()
[all …]

Completed in 32 milliseconds

12345678910>>...14