| /u-boot/board/synopsys/hsdk/ |
| A D | env-lib.c | 15 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 D | env-lib.h | 42 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/fs/erofs/ |
| A D | data.c | 11 u64 offset = map->m_la; in erofs_map_blocks_flatmode() 22 map->m_pa = blknr_to_addr(vi->u.i_blkaddr) + map->m_la; in erofs_map_blocks_flatmode() 31 if (erofs_blkoff(map->m_pa) + map->m_plen > PAGE_SIZE) { in erofs_map_blocks_flatmode() 48 map->m_llen = map->m_plen; in erofs_map_blocks_flatmode() 68 map->m_plen = 0; in erofs_map_blocks() 118 map->m_llen = map->m_plen; in erofs_map_blocks() 164 map.m_la = ptr; in erofs_read_raw_data() 169 DBG_BUGON(map.m_plen != map.m_llen); in erofs_read_raw_data() 180 eend = min(offset + size, map.m_la + map.m_llen); in erofs_read_raw_data() 244 if (end < map.m_la + map.m_llen) { in z_erofs_read_data() [all …]
|
| A D | zmap.c | 76 struct erofs_map_blocks *const map = m->map; in z_erofs_reload_indexes() local 86 map->index = eblk; in z_erofs_reload_indexes() 357 struct erofs_map_blocks *const map = m->map; in z_erofs_extent_lookback() local 402 struct erofs_map_blocks *const map = m->map; in z_erofs_get_extent_compressedlen() local 468 struct erofs_map_blocks *map = m->map; in z_erofs_get_extent_decompressedlen() local 476 map->m_llen = vi->i_size - map->m_la; in z_erofs_get_extent_decompressedlen() 513 .map = map, in z_erofs_map_blocks_iter() 523 map->m_llen = map->m_la + 1 - vi->i_size; in z_erofs_map_blocks_iter() 576 map->m_llen = end - map->m_la; in z_erofs_map_blocks_iter() 596 map->m_la, map->m_pa, in z_erofs_map_blocks_iter() [all …]
|
| /u-boot/drivers/core/ |
| A D | regmap.c | 73 if (!map) in regmap_alloc() 78 return map; in regmap_alloc() 89 if (!map) in regmap_init_mem_plat() 112 *mapp = map; in regmap_init_mem_plat() 190 if (!map) in regmap_init_mem_index() 206 *mapp = map; in regmap_init_mem_index() 222 if (!map) in regmap_init_mem_range() 238 *mapp = map; in regmap_init_mem_range() 288 if (!map) in regmap_init_mem() 367 free(map); in regmap_uninit() [all …]
|
| /u-boot/test/dm/ |
| A D | regmap.c | 24 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 D | syscon.c | 55 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 D | syscon-reset.c | 28 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, ®)); in dm_test_syscon_reset() 54 ut_assertok(regmap_read(map, TEST_RESET_REG, ®)); in dm_test_syscon_reset()
|
| A D | mux-mmio.c | 20 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 D | regmap.h | 131 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 D | payload.c | 33 struct efi_entry_memmap *map; in board_get_usable_ram_top() local 53 desc = map->desc; in board_get_usable_ram_top() 79 struct efi_entry_memmap *map; in dram_init() local 91 desc = map->desc; in dram_init() 103 struct efi_entry_memmap *map; in dram_init_banksize() local 114 desc = map->desc; in dram_init_banksize() 184 struct efi_entry_memmap *map; in install_e820_map() local 199 for (desc = map->desc; desc < end; in install_e820_map() 264 struct efi_entry_memmap *map; in setup_efi_info() local 282 efi_info->efi_memdesc_size = map->desc_size; in setup_efi_info() [all …]
|
| /u-boot/fs/btrfs/ |
| A D | volumes.c | 136 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 1068 int factor = map->num_stripes / map->sub_stripes; in __btrfs_map_block() 1091 u64 full_stripe_len = nr_data_stripes(map) * map->stripe_len; in __btrfs_map_block() [all …]
|
| /u-boot/drivers/axi/ |
| A D | ihs_axi.c | 55 #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/drivers/misc/ |
| A D | gdsys_rxaui_ctrl.c | 24 #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 D | gdsys_ioep.c | 28 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 D | ihs_fpga.h | 39 #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 D | coreboot_table.c | 104 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/drivers/clk/ti/ |
| A D | clk-k3.c | 38 struct clk_map *map; member 47 struct clk_map *map; in clk_add_map() local 54 map = data->map + data->size++; in clk_add_map() 56 map->dev_id = dev_id; in clk_add_map() 57 map->clk_id = clk_id; in clk_add_map() 58 map->clk = clk; in clk_add_map() 110 data->map = kcalloc(pdata->soc_dev_clk_data_cnt, sizeof(*data->map), in ti_clk_probe() 179 if (map->dev_id == dev_id && map->clk_id == clk_id) in _clk_cmp() 181 if (map->dev_id > dev_id || in _clk_cmp() 182 (map->dev_id == dev_id && map->clk_id > clk_id)) in _clk_cmp() [all …]
|
| /u-boot/drivers/reset/ |
| A D | reset-qcom.c | 138 const struct qcom_reset_map *map; in qcom_reset_assert() local 141 map = &reset_map[rst->id]; in qcom_reset_assert() 143 value = readl(priv->base + map->reg); in qcom_reset_assert() 144 value |= BIT(map->bit); in qcom_reset_assert() 145 writel(value, priv->base + map->reg); in qcom_reset_assert() 154 const struct qcom_reset_map *map; in qcom_reset_deassert() local 157 map = &reset_map[rst->id]; in qcom_reset_deassert() 159 value = readl(priv->base + map->reg); in qcom_reset_deassert() 160 value &= ~BIT(map->bit); in qcom_reset_deassert() 161 writel(value, priv->base + map->reg); in qcom_reset_deassert()
|
| /u-boot/include/linux/ |
| A D | bitmap.h | 51 unsigned long *p = map + BIT_WORD(start); in __bitmap_set() 72 unsigned long *p = map + BIT_WORD(start); in __bitmap_clear() 163 bitmap_find_next_zero_area(unsigned long *map, in bitmap_find_next_zero_area() argument 170 index = find_next_zero_bit(map, size, start); in bitmap_find_next_zero_area() 180 i = find_next_bit(map, end, index); in bitmap_find_next_zero_area() 219 __set_bit(start, map); in bitmap_set() 224 memset((char *)map + start / 8, 0xff, nbits / 8); in bitmap_set() 226 __bitmap_set(map, start, nbits); in bitmap_set() 233 __clear_bit(start, map); in bitmap_clear() 238 memset((char *)map + start / 8, 0, nbits / 8); in bitmap_clear() [all …]
|
| /u-boot/drivers/i2c/ |
| A D | ihs_i2c.c | 19 struct regmap *map; member 31 #define ihs_i2c_set(map, member, val) \ argument 32 regmap_set(map, struct ihs_i2c_regs, member, val) 34 #define ihs_i2c_get(map, member, valp) \ argument 35 regmap_get(map, struct ihs_i2c_regs, member, valp) 64 ihs_i2c_get(priv->map, interrupt_status, &val); in wait_for_int() 73 ihs_i2c_get(priv->map, interrupt_status, &val); in wait_for_int() 89 ihs_i2c_set(priv->map, interrupt_status, data); in ihs_i2c_transfer() 90 ihs_i2c_get(priv->map, interrupt_status, &val); in ihs_i2c_transfer() 107 ihs_i2c_set(priv->map, write_mailbox, data); in ihs_i2c_transfer() [all …]
|
| /u-boot/drivers/clk/meson/ |
| A D | axg.c | 25 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, ®); in meson_clk81_get_rate() 114 regmap_read(priv->map, HHI_MPEG_CLK_CNTL, ®); in meson_clk81_get_rate() 182 regmap_read(priv->map, psdm->reg_off, ®); in meson_mpll_get_rate() 185 regmap_read(priv->map, pn2->reg_off, ®); in meson_mpll_get_rate() 226 regmap_read(priv->map, pn->reg_off, ®); in meson_pll_get_rate() 229 regmap_read(priv->map, pm->reg_off, ®); in meson_pll_get_rate() 232 regmap_read(priv->map, pod->reg_off, ®); in meson_pll_get_rate() 293 if (IS_ERR(priv->map)) in meson_clk_probe() [all …]
|
| A D | axg-ao.c | 15 struct regmap *map; member 33 regmap_update_bits(priv->map, gate->reg, in meson_set_gate() 53 priv->map = syscon_node_to_regmap(dev_ofnode(dev_get_parent(dev))); in meson_clk_probe() 54 if (IS_ERR(priv->map)) in meson_clk_probe() 55 return PTR_ERR(priv->map); in meson_clk_probe()
|
| A D | g12a-ao.c | 15 struct regmap *map; member 33 regmap_update_bits(priv->map, gate->reg, in meson_set_gate() 53 priv->map = syscon_node_to_regmap(dev_ofnode(dev_get_parent(dev))); in meson_clk_probe() 54 if (IS_ERR(priv->map)) in meson_clk_probe() 55 return PTR_ERR(priv->map); in meson_clk_probe()
|
| /u-boot/arch/arm/dts/ |
| A D | k3-j721e-som-p0.dtsi | 26 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 …]
|