/u-boot/board/synopsys/hsdk/ |
H A D | env-lib.c | 16 static void env_clear_common(u32 index, const struct env_map_common *map) argument 18 map[index].val->val = 0; 19 map[index].val->set = false; 22 static int env_read_common(u32 index, const struct env_map_common *map) argument 26 if (!env_get_yesno(map[index].env_name)) { 27 if (map[index].type == ENV_HEX) { 28 val = (u32)env_get_hex(map[index].env_name, 0); 29 debug("ENV: %s: = %#x\n", map[index].env_name, val); 31 val = (u32)env_get_ulong(map[index].env_name, 10, 0); 32 debug("ENV: %s: = %d\n", map[inde 42 env_clear_core(u32 index, const struct env_map_percpu *map) argument 50 env_read_core(u32 index, const struct env_map_percpu *map) argument 74 env_validate_common(u32 index, const struct env_map_common *map) argument 104 env_validate_core(u32 index, const struct env_map_percpu *map, bool (*cpu_used)(u32)) argument 143 envs_cleanup_core(const struct env_map_percpu *map) argument 150 envs_cleanup_common(const struct env_map_common *map) argument 157 envs_read_common(const struct env_map_common *map) argument 170 envs_validate_common(const struct env_map_common *map) argument 183 envs_read_validate_common(const struct env_map_common *map) argument 200 envs_read_validate_core(const struct env_map_percpu *map, bool (*cpu_used)(u32)) argument 239 args_envs_read_search(const struct env_map_common *map, int argc, char *const argv[]) argument 252 arg_read_set(const struct env_map_common *map, u32 i, int argc, char *const argv[]) argument 274 args_envs_enumerate(const struct env_map_common *map, int enum_by, int argc, char *const argv[]) argument [all...] |
H A D | env-lib.h | 41 void envs_cleanup_common(const struct env_map_common *map); 42 int envs_read_common(const struct env_map_common *map); 43 int envs_validate_common(const struct env_map_common *map); 44 int envs_read_validate_common(const struct env_map_common *map); 46 void envs_cleanup_core(const struct env_map_percpu *map); 47 int envs_read_validate_core(const struct env_map_percpu *map, 53 int args_envs_enumerate(const struct env_map_common *map,
|
/u-boot/fs/erofs/ |
H A D | data.c | 6 struct erofs_map_blocks *map, 11 u64 offset = map->m_la; 19 map->m_flags = EROFS_MAP_MAPPED; 22 map->m_pa = erofs_pos(vi->u.i_blkaddr) + map->m_la; 23 map->m_plen = erofs_pos(lastblk) - offset; 26 map->m_pa = iloc(vi->nid) + vi->inode_isize + 27 vi->xattr_isize + erofs_blkoff(map->m_la); 28 map->m_plen = inode->i_size - offset; 31 if (erofs_blkoff(map 5 erofs_map_blocks_flatmode(struct erofs_inode *inode, struct erofs_map_blocks *map, int flags) argument 53 erofs_map_blocks(struct erofs_inode *inode, struct erofs_map_blocks *map, int flags) argument 122 erofs_map_dev(struct erofs_map_dev *map) argument 150 erofs_read_one_data(struct erofs_map_blocks *map, char *buffer, u64 offset, size_t len) argument 173 struct erofs_map_blocks map = { local 219 z_erofs_read_one_data(struct erofs_inode *inode, struct erofs_map_blocks *map, char *raw, char *buffer, erofs_off_t skip, erofs_off_t length, bool trimmed) argument 278 struct erofs_map_blocks map = { local [all...] |
H A D | zmap.c | 5 struct erofs_map_blocks *map, 40 * if the highest bit of the 8-byte map header is set, the whole file 70 struct erofs_map_blocks map = { .index = UINT_MAX }; local 73 ret = z_erofs_do_map_blocks(vi, &map, 75 if (!map.m_plen || 76 erofs_blkoff(map.m_pa) + map.m_plen > erofs_blksiz()) { 78 map.m_plen | 0ULL); 86 struct erofs_map_blocks map = { .index = UINT_MAX }; local 89 ret = z_erofs_do_map_blocks(vi, &map, 101 struct erofs_map_blocks *map; member in struct:z_erofs_maprecorder 118 struct erofs_map_blocks *const map = m->map; local 404 struct erofs_map_blocks *const map = m->map; local 449 struct erofs_map_blocks *const map = m->map; local 516 struct erofs_map_blocks *map = m->map; local 555 z_erofs_do_map_blocks(struct erofs_inode *vi, struct erofs_map_blocks *map, int flags) argument 667 z_erofs_map_blocks_iter(struct erofs_inode *vi, struct erofs_map_blocks *map, int flags) argument [all...] |
/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) \ 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, membe [all...] |
H A D | gdsys_rxaui_ctrl.c | 24 #define rxaui_ctrl_set(map, member, val) \ 25 regmap_set(map, struct gdsys_rxaui_ctrl_regs, member, val) 27 #define rxaui_ctrl_get(map, member, valp) \ 28 regmap_get(map, struct gdsys_rxaui_ctrl_regs, member, valp) 31 struct regmap *map; member in struct:gdsys_rxaui_ctrl_priv 42 rxaui_ctrl_get(priv->map, ctrl_1, &state); 49 rxaui_ctrl_set(priv->map, ctrl_1, state); 62 regmap_init_mem(dev_ofnode(dev), &priv->map);
|
H A D | gdsys_ioep.h | 49 * @map: Register map to write the value in 53 #define gdsys_ioep_set(map, member, val) \ 54 regmap_set(map, struct gdsys_ioep_regs, member, val) 58 * @map: Register map to read the value from 62 #define gdsys_ioep_get(map, member, valp) \ 63 regmap_get(map, struct gdsys_ioep_regs, member, valp)
|
H A D | gdsys_ioep.c | 24 * @map: Register map to be used for the device 28 struct regmap *map; member in struct:gdsys_ioep_priv 56 gdsys_ioep_set(priv->map, tx_control, state); 60 gdsys_ioep_set(priv->map, device_address, 1); 74 gdsys_ioep_set(priv->map, transmit_data, *(p++)); 76 gdsys_ioep_set(priv->map, tx_control, CTRL_PROC_RECEIVE_ENABLE | 103 gdsys_ioep_get(priv->map, receive_data, buffer++); 105 gdsys_ioep_get(priv->map, rx_tx_status, &rx_tx_status); 166 gdsys_ioep_get(priv->map, rx_tx_statu [all...] |
/u-boot/test/dm/ |
H A D | syscon.c | 55 struct regmap *map; local 61 map = syscon_regmap_lookup_by_phandle(dev, "first-syscon"); 62 ut_assert(map); 63 ut_assert(!IS_ERR(map)); 64 ut_asserteq(1, map->range_count); 68 map = syscon_regmap_lookup_by_phandle(dev, "second-sys-ctrl"); 69 ut_assert(map); 70 ut_assert(!IS_ERR(map)); 71 ut_asserteq(4, map->range_count); 75 map [all...] |
H A D | regmap.c | 24 struct regmap *map; local 29 map = syscon_get_regmap(dev); 30 ut_assertok_ptr(map); 31 ut_asserteq(1, map->range_count); 32 ut_asserteq(0x10, map->ranges[0].start); 33 ut_asserteq(16, map->ranges[0].size); 34 ut_asserteq(0x10, map_to_sysmem(regmap_get_range(map, 0))); 37 map = syscon_get_regmap(dev); 38 ut_assertok_ptr(map); 39 ut_asserteq(4, map 77 struct regmap *map; local 104 struct regmap *map; local 138 struct regmap *map; local 169 struct regmap *map; local [all...] |
H A D | syscon-reset.c | 28 struct regmap *map; local 41 ut_assertok_ptr((map = syscon_get_regmap(syscon))); 48 ut_assertok(regmap_write(map, TEST_RESET_REG, TEST_RESET_DEASSERT)); 50 ut_assertok(regmap_read(map, TEST_RESET_REG, ®)); 54 ut_assertok(regmap_read(map, TEST_RESET_REG, ®));
|
/u-boot/include/ |
H A D | regmap.h | 20 * attached to, and use the regmap API to access the register map through that 26 * The endianness of regmap accesses is selectable for each map through device 30 * Furthermore, the register map described by a regmap can be split into 33 * map, can be accessed in a concise manner. 36 * accesses the register map as regular IO-mapped memory. 68 * struct regmap_range - a register map range 106 * @range_count: Number of ranges available within the map 125 * @map: Regmap to write to 131 int regmap_write(struct regmap *map, uint offset, uint val); 136 * @map [all...] |
/u-boot/drivers/core/ |
H A D | regmap.c | 69 struct regmap *map; local 70 size_t size = sizeof(*map) + sizeof(map->ranges[0]) * count; 72 map = calloc(1, size); 73 if (!map) 75 map->range_count = count; 76 map->width = REGMAP_SIZE_32; 78 return map; 86 struct regmap *map; local 88 map 171 struct regmap *map; local 218 struct regmap *map; local 245 struct regmap *map; local 327 struct regmap **mapp, *map; local 354 regmap_get_range(struct regmap *map, unsigned int range_num) argument 365 regmap_uninit(struct regmap *map) argument 421 regmap_raw_read_range(struct regmap *map, uint range_num, uint offset, void *valp, size_t val_len) argument 466 regmap_raw_read(struct regmap *map, uint offset, void *valp, size_t val_len) argument 471 regmap_read(struct regmap *map, uint offset, uint *valp) argument 561 regmap_raw_write_range(struct regmap *map, uint range_num, uint offset, const void *val, size_t val_len) argument 605 regmap_raw_write(struct regmap *map, uint offset, const void *val, size_t val_len) argument 611 regmap_write(struct regmap *map, uint offset, uint val) argument 642 regmap_update_bits(struct regmap *map, uint offset, uint mask, uint val) argument [all...] |
/u-boot/arch/x86/cpu/efi/ |
H A D | payload.c | 34 struct efi_entry_memmap *map; local 46 ret = efi_info_get(EFIET_MEMORY_MAP, (void **)&map, &size); 49 debug("%s: Missing memory map\n", __func__); 53 end = (struct efi_mem_desc *)((ulong)map + size); 54 desc = map->desc; 55 for (; desc < end; desc = efi_get_next_mem_desc(desc, map->desc_size)) { 80 struct efi_entry_memmap *map; local 83 ret = efi_info_get(EFIET_MEMORY_MAP, (void **)&map, &size); 85 printf("Cannot find EFI memory map tables, ret=%d\n", ret); 90 end = (struct efi_mem_desc *)((ulong)map 104 struct efi_entry_memmap *map; local 186 struct efi_entry_memmap *map; local 266 struct efi_entry_memmap *map; local [all...] |
/u-boot/drivers/axi/ |
H A D | ihs_axi.c | 19 * struct ihs_axi_regs - Structure for the register map of a IHS AXI device 50 * ihs_axi_set() - Convenience macro to set values in register map 51 * @map: The register map to write to 53 * @val: The value to write to the register map 55 #define ihs_axi_set(map, member, val) \ 56 regmap_set(map, struct ihs_axi_regs, member, val) 59 * ihs_axi_get() - Convenience macro to read values from register map 60 * @map: The register map t 72 struct regmap *map; member in struct:ihs_axi_priv [all...] |
/u-boot/arch/x86/lib/ |
H A D | coreboot_table.c | 104 struct cb_memory_range *map; local 118 /* populate memory map table */ 121 map = mem->map; 126 map->start.lo = e820[i].addr & 0xffffffff; 127 map->start.hi = e820[i].addr >> 32; 128 map->size.lo = e820[i].size & 0xffffffff; 129 map->size.hi = e820[i].size >> 32; 130 map->type = e820[i].type; 131 map [all...] |
/u-boot/fs/btrfs/ |
H A D | volumes.c | 124 static inline int nr_parity_stripes(struct map_lookup *map) argument 126 if (map->type & BTRFS_BLOCK_GROUP_RAID5) 128 else if (map->type & BTRFS_BLOCK_GROUP_RAID6) 134 static inline int nr_data_stripes(struct map_lookup *map) argument 136 return map->num_stripes - nr_parity_stripes(map); 520 struct map_lookup *map; local 549 map = kmalloc(btrfs_map_lookup_size(num_stripes), GFP_NOFS); 550 if (!map) 553 map 852 struct map_lookup *map; local 891 struct map_lookup *map; local 958 struct map_lookup *map; local [all...] |
/u-boot/drivers/clk/meson/ |
H A D | axg-ao.c | 15 struct regmap *map; member in struct:meson_clk 33 regmap_update_bits(priv->map, gate->reg, 53 priv->map = syscon_node_to_regmap(dev_ofnode(dev_get_parent(dev))); 54 if (IS_ERR(priv->map)) 55 return PTR_ERR(priv->map);
|
H A D | g12a-ao.c | 15 struct regmap *map; member in struct:meson_clk 33 regmap_update_bits(priv->map, gate->reg, 53 priv->map = syscon_node_to_regmap(dev_ofnode(dev_get_parent(dev))); 54 if (IS_ERR(priv->map)) 55 return PTR_ERR(priv->map);
|
H A D | axg.c | 25 struct regmap *map; member in struct:meson_clk 67 regmap_update_bits(priv->map, gate->reg, 100 regmap_read(priv->map, HHI_MPEG_CLK_CNTL, ®); 114 regmap_read(priv->map, HHI_MPEG_CLK_CNTL, ®); 182 regmap_read(priv->map, psdm->reg_off, ®); 185 regmap_read(priv->map, pn2->reg_off, ®); 226 regmap_read(priv->map, pn->reg_off, ®); 229 regmap_read(priv->map, pm->reg_off, ®); 232 regmap_read(priv->map, pod->reg_off, ®); 292 priv->map [all...] |
/u-boot/include/xen/ |
H A D | gnttab.h | 15 grant_ref_t gnttab_alloc_and_grant(void **map);
|
/u-boot/drivers/clk/ti/ |
H A D | clk-k3.c | 35 * @map: mapping from dev/clk id tuples to physical clock entries 36 * @size: number of entries in the map 39 struct clk_map *map; member in struct:ti_clk_data 48 struct clk_map *map; local 55 map = data->map + data->size++; 57 map->dev_id = dev_id; 58 map->clk_id = clk_id; 59 map->clk = clk; 123 data->map 190 _clk_cmp(u32 dev_id, u32 clk_id, const struct clk_map *map) argument 200 bsearch(u32 dev_id, u32 clk_id, struct clk_map *map, int num) argument [all...] |
/u-boot/include/linux/ |
H A D | completion.h | 42 #define COMPLETION_INITIALIZER_ONSTACK_MAP(work, map) \ 43 (*({ init_completion_map(&(work), &(map)); &(work); })) 74 # define DECLARE_COMPLETION_ONSTACK_MAP(work, map) \ 75 struct completion work = COMPLETION_INITIALIZER_ONSTACK_MAP(work, map) 78 # define DECLARE_COMPLETION_ONSTACK_MAP(work, map) DECLARE_COMPLETION(work)
|
H A D | bitmap.h | 49 __bitmap_set(unsigned long *map, unsigned int start, int len) argument 51 unsigned long *p = map + BIT_WORD(start); 70 __bitmap_clear(unsigned long *map, unsigned int start, int len) argument 72 unsigned long *p = map + BIT_WORD(start); 163 bitmap_find_next_zero_area(unsigned long *map, argument 170 index = find_next_zero_bit(map, size, start); 180 i = find_next_bit(map, end, index); 215 static inline void bitmap_set(unsigned long *map, unsigned int start, argument 219 __set_bit(start, map); 224 memset((char *)map 229 bitmap_clear(unsigned long *map, unsigned int start, unsigned int nbits) argument [all...] |
/u-boot/drivers/i2c/ |
H A D | ihs_i2c.c | 19 struct regmap *map; member in struct:ihs_i2c_priv 31 #define ihs_i2c_set(map, member, val) \ 32 regmap_set(map, struct ihs_i2c_regs, member, val) 34 #define ihs_i2c_get(map, member, valp) \ 35 regmap_get(map, struct ihs_i2c_regs, member, valp) 64 ihs_i2c_get(priv->map, interrupt_status, &val); 73 ihs_i2c_get(priv->map, interrupt_status, &val); 89 ihs_i2c_set(priv->map, interrupt_status, data); 90 ihs_i2c_get(priv->map, interrupt_status, &val); 98 ihs_i2c_set(priv->map, write_mailbox_ex [all...] |