/u-boot/arch/nios2/lib/ |
A D | cache.c | 19 start &= ~(gd->arch.dcache_line_size - 1); in __flush_dcache() 39 if (end > start + gd->arch.dcache_size) in __flush_dcache_all() 40 end = start + gd->arch.dcache_size; in __flush_dcache_all() 75 end = start + gd->arch.icache_size; in __flush_icache() 95 __flush_dcache(start, end); in flush_dcache_range() 97 __flush_dcache_all(start, end); in flush_dcache_range() 103 __flush_dcache(start, start + size); in flush_cache() 105 __flush_dcache_all(start, start + size); in flush_cache() 106 __flush_icache(start, start + size); in flush_cache() 112 __invalidate_dcache(start, end); in invalidate_dcache_range() [all …]
|
/u-boot/arch/arm/cpu/armv7/ |
A D | cache_v7.c | 37 start &= ~(line_len - 1); in v7_dcache_clean_inval_range() 38 for (mva = start; mva < stop; mva = mva + line_len) { in v7_dcache_clean_inval_range() 48 if (!check_cache_range(start, stop)) in v7_dcache_inval_range() 51 for (mva = start; mva < stop; mva = mva + line_len) { in v7_dcache_inval_range() 71 v7_dcache_clean_inval_range(start, stop, line_len); in v7_dcache_maint_range() 74 v7_dcache_inval_range(start, stop, line_len); in v7_dcache_maint_range() 121 check_cache_range(start, stop); in invalidate_dcache_range() 125 v7_outer_cache_inval_range(start, stop); in invalidate_dcache_range() 135 check_cache_range(start, stop); in flush_dcache_range() 139 v7_outer_cache_flush_range(start, stop); in flush_dcache_range() [all …]
|
A D | virt-dt.c | 29 int armv7_apply_memory_carveout(u64 *start, u64 *size) in armv7_apply_memory_carveout() argument 32 if (*start + *size < CONFIG_ARMV7_SECURE_BASE || in armv7_apply_memory_carveout() 33 *start >= (u64)CONFIG_ARMV7_SECURE_BASE + in armv7_apply_memory_carveout() 38 if (*start == CONFIG_ARMV7_SECURE_BASE || in armv7_apply_memory_carveout() 39 *start + *size == (u64)CONFIG_ARMV7_SECURE_BASE + in armv7_apply_memory_carveout() 46 if (*start == CONFIG_ARMV7_SECURE_BASE) in armv7_apply_memory_carveout() 47 *start += CONFIG_ARMV7_SECURE_RESERVE_SIZE; in armv7_apply_memory_carveout()
|
/u-boot/fs/btrfs/ |
A D | extent-cache.c | 30 if (entry->start + entry->size <= range->start) in cache_tree_comp_range() 44 range.start = entry->start; in cache_tree_comp_nodes() 77 range.start = entry->start; in cache_tree_comp_nodes2() 96 pe->start = start; in alloc_cache_extent() 133 range.start = start; in lookup_cache_extent() 151 range.start = start; in lookup_cache_extent2() 168 range.start = start; in search_cache_extent() 189 range.start = start; in search_cache_extent2() 283 } else if (start <= cache->start) { in add_merge_cache_extent() 301 next->start = start; in add_merge_cache_extent() [all …]
|
A D | extent-io.c | 87 state->start = other->start; in merge_state() 99 other->start = state->start; in merge_state() 120 state->start = start; in insert_state() 138 prealloc->start = orig->start; in split_state() 269 if (state->start < start) { in clear_extent_bits() 281 start = state->start; in clear_extent_bits() 381 if (state->start < start) { in set_extent_bits() 395 start = state->start; in set_extent_bits() 406 if (state->start > start) { in set_extent_bits() 534 if (state->start != start) { in set_state_private() [all …]
|
A D | extent-io.h | 54 #define BITMAP_FIRST_BYTE_MASK(start) \ argument 55 ((BYTE_MASK << ((start) & (BITS_PER_BYTE - 1))) & BYTE_MASK) 74 u64 start; member 83 u64 start; member 100 int find_first_extent_bit(struct extent_io_tree *tree, u64 start, 102 int test_range_bit(struct extent_io_tree *tree, u64 start, u64 end, 132 u64 start); 143 unsigned long start, unsigned long len); 145 unsigned long start, unsigned long len); 147 unsigned long start, unsigned long len); [all …]
|
/u-boot/include/linux/ |
A D | ioport.h | 19 resource_size_t start; member 131 return res->end - res->start + 1; in resource_size() 139 #define request_region(start,n,name) __request_region(&ioport_resource, (start), (n), (name), 0) argument 140 #define __request_mem_region(start,n,name, excl) __request_region(&iomem_resource, (start), (n), (n… argument 141 #define request_mem_region(start,n,name) __request_region(&iomem_resource, (start), (n), (name), 0) argument 147 resource_size_t start, 152 #define release_region(start,n) __release_region(&ioport_resource, (start), (n)) argument 153 #define check_mem_region(start,n) __check_region(&iomem_resource, (start), (n)) argument 154 #define release_mem_region(start,n) __release_region(&iomem_resource, (start), (n)) argument 168 #define devm_request_region(dev,start,n,name) \ argument [all …]
|
A D | bitmap.h | 17 #define BITMAP_FIRST_WORD_MASK(start) (~0UL << ((start) & (BITS_PER_LONG - 1))) argument 51 unsigned long *p = map + BIT_WORD(start); in __bitmap_set() 52 const unsigned int size = start + len; in __bitmap_set() 72 unsigned long *p = map + BIT_WORD(start); in __bitmap_clear() 73 const unsigned int size = start + len; in __bitmap_clear() 193 __set_bit(start, map); in bitmap_set() 195 IS_ALIGNED(start, BITMAP_MEM_ALIGNMENT) && in bitmap_set() 200 __bitmap_set(map, start, nbits); in bitmap_set() 207 __clear_bit(start, map); in bitmap_clear() 209 IS_ALIGNED(start, BITMAP_MEM_ALIGNMENT) && in bitmap_clear() [all …]
|
/u-boot/arch/arm/cpu/arm926ejs/ |
A D | cache.c | 28 void invalidate_dcache_range(unsigned long start, unsigned long stop) in invalidate_dcache_range() argument 30 if (!check_cache_range(start, stop)) in invalidate_dcache_range() 33 while (start < stop) { in invalidate_dcache_range() 34 asm volatile("mcr p15, 0, %0, c7, c6, 1\n" : : "r"(start)); in invalidate_dcache_range() 35 start += CONFIG_SYS_CACHELINE_SIZE; in invalidate_dcache_range() 39 void flush_dcache_range(unsigned long start, unsigned long stop) in flush_dcache_range() argument 41 if (!check_cache_range(start, stop)) in flush_dcache_range() 44 while (start < stop) { in flush_dcache_range() 45 asm volatile("mcr p15, 0, %0, c7, c14, 1\n" : : "r"(start)); in flush_dcache_range() 46 start += CONFIG_SYS_CACHELINE_SIZE; in flush_dcache_range()
|
/u-boot/lib/ |
A D | membuff.c | 18 mb->head = mb->start; in membuff_purge() 19 mb->tail = mb->start; in membuff_purge() 29 *data = &mb->start; in membuff_putrawflex() 33 if (!mb->start) in membuff_putrawflex() 144 (int)(mb->tail - mb->start), (int)(*data - mb->start), len); in membuff_getraw() 239 (int)(mb->head - mb->start), (int)(mb->tail - mb->start), in membuff_makecontig() 261 memmove(mb->start + topsize, mb->start, botsize); in membuff_makecontig() 307 s = mb->start; in membuff_readline() 349 mb->start = ptr; in membuff_extend_by() 364 mb->start = buff; in membuff_init() [all …]
|
/u-boot/arch/arm/cpu/arm11/ |
A D | cpu.c | 69 void invalidate_dcache_range(unsigned long start, unsigned long stop) in invalidate_dcache_range() argument 71 if (!check_cache_range(start, stop)) in invalidate_dcache_range() 74 while (start < stop) { in invalidate_dcache_range() 75 asm volatile("mcr p15, 0, %0, c7, c6, 1" : : "r" (start)); in invalidate_dcache_range() 76 start += CONFIG_SYS_CACHELINE_SIZE; in invalidate_dcache_range() 80 void flush_dcache_range(unsigned long start, unsigned long stop) in flush_dcache_range() argument 82 if (!check_cache_range(start, stop)) in flush_dcache_range() 85 while (start < stop) { in flush_dcache_range() 86 asm volatile("mcr p15, 0, %0, c7, c14, 1" : : "r" (start)); in flush_dcache_range() 87 start += CONFIG_SYS_CACHELINE_SIZE; in flush_dcache_range()
|
/u-boot/arch/arm/mach-uniphier/arm32/ |
A D | cache-uniphier.c | 106 writel(start, UNIPHIER_SSCOQAD); in uniphier_cache_maint_common() 137 start = start & ~(UNIPHIER_SSC_LINE_SIZE - 1); in uniphier_cache_maint_range() 139 size = end - start; in uniphier_cache_maint_range() 159 start += chunk_size; in uniphier_cache_maint_range() 168 uniphier_cache_maint_range(start, end, ways, in uniphier_cache_prefetch_range() 175 uniphier_cache_maint_range(start, end, ways, in uniphier_cache_touch_range() 251 if (start & (UNIPHIER_SSC_LINE_SIZE - 1)) { in v7_outer_cache_inval_range() 252 start &= ~(UNIPHIER_SSC_LINE_SIZE - 1); in v7_outer_cache_inval_range() 255 start += UNIPHIER_SSC_LINE_SIZE; in v7_outer_cache_inval_range() 258 if (start >= end) { in v7_outer_cache_inval_range() [all …]
|
/u-boot/arch/arm/mach-imx/imx8/ |
A D | cpu.c | 297 if (start >= phys_sdram_1_start && start <= end1 && in get_effective_memsize() 329 start = roundup(start, MEMSTART_ALIGNMENT); in dram_init() 331 if (start > end) in dram_init() 334 if (start >= phys_sdram_1_start && start <= end1) { in dram_init() 365 start = gd->bd->bi_dram[current_bank - 1].start; in dram_bank_sort() 373 gd->bd->bi_dram[current_bank].start = start; in dram_bank_sort() 397 start = roundup(start, MEMSTART_ALIGNMENT); in dram_init_banksize() 401 if (start >= phys_sdram_1_start && start <= end1) { in dram_init_banksize() 402 gd->bd->bi_dram[i].start = start; in dram_init_banksize() 412 } else if (start >= phys_sdram_2_start && start <= end2) { in dram_init_banksize() [all …]
|
/u-boot/arch/arm/mach-exynos/ |
A D | pinmux.c | 39 for (i = start; i < start + count; i++) { in exynos5_uart_config() 71 for (i = start; i < start + count; i++) { in exynos5420_uart_config() 116 for (i = start; i < (start + 2); i++) { in exynos5_mmc_config() 121 for (i = (start + 3); i <= (start + 6); i++) { in exynos5_mmc_config() 148 start = 0; in exynos5420_mmc_config() 167 for (i = start; i < (start + 3); i++) { in exynos5420_mmc_config() 187 for (i = (start + 3); i <= (start + 6); i++) { in exynos5420_mmc_config() 647 for (i = start; i < (start + 7); i++) { in exynos4_mmc_config() 691 for (i = start; i < (start + count); i++) { in exynos4_uart_config() 762 for (i = start; i < (start + 7); i++) { in exynos4x12_mmc_config() [all …]
|
/u-boot/arch/arm/lib/ |
A D | cache.c | 22 __weak void flush_cache(unsigned long start, unsigned long size) in flush_cache() argument 24 flush_dcache_range(start, start + size); in flush_cache() 49 __weak void flush_dcache_range(unsigned long start, unsigned long stop) in flush_dcache_range() argument 54 int check_cache_range(unsigned long start, unsigned long stop) in check_cache_range() argument 58 if (start & (CONFIG_SYS_CACHELINE_SIZE - 1)) in check_cache_range() 66 start, stop); in check_cache_range() 92 phys_addr_t start, end; in noncached_init() local 98 start = end - size; in noncached_init() 100 debug("mapping memory %pa-%pa non-cached\n", &start, &end); in noncached_init() 102 noncached_start = start; in noncached_init() [all …]
|
A D | cache-pl310.c | 52 void v7_outer_cache_flush_range(u32 start, u32 stop) in v7_outer_cache_flush_range() argument 61 start &= ~(line_size - 1); in v7_outer_cache_flush_range() 63 for (pa = start; pa < stop; pa = pa + line_size) in v7_outer_cache_flush_range() 70 void v7_outer_cache_inval_range(u32 start, u32 stop) in v7_outer_cache_inval_range() argument 79 if (start & (line_size - 1)) { in v7_outer_cache_inval_range() 81 __func__, start); in v7_outer_cache_inval_range() 83 start = (start + line_size - 1) & ~(line_size - 1); in v7_outer_cache_inval_range() 97 for (pa = start; pa < stop; pa = pa + line_size) in v7_outer_cache_inval_range()
|
/u-boot/arch/arm/cpu/pxa/ |
A D | cache.c | 25 void invalidate_dcache_range(unsigned long start, unsigned long stop) in invalidate_dcache_range() argument 27 start &= ~(CONFIG_SYS_CACHELINE_SIZE - 1); in invalidate_dcache_range() 30 while (start <= stop) { in invalidate_dcache_range() 31 asm volatile("mcr p15, 0, %0, c7, c6, 1\n" : : "r"(start)); in invalidate_dcache_range() 32 start += CONFIG_SYS_CACHELINE_SIZE; in invalidate_dcache_range() 36 void flush_dcache_range(unsigned long start, unsigned long stop) in flush_dcache_range() argument 38 return invalidate_dcache_range(start, stop); in flush_dcache_range()
|
/u-boot/arch/nds32/lib/ |
A D | cache.c | 68 while (end > start) { in invalidate_icache_range() 72 : "r"(start) in invalidate_icache_range() 74 start += line_size; in invalidate_icache_range() 161 void flush_dcache_range(unsigned long start, unsigned long end) in flush_dcache_range() argument 167 while (end > start) { in flush_dcache_range() 170 "\n\tcctl %0, L1D_VA_INVAL" : : "r" (start) in flush_dcache_range() 172 start += line_size; in flush_dcache_range() 181 while (end > start) { in invalidate_dcache_range() 183 "\n\tcctl %0, L1D_VA_INVAL" : : "r"(start) in invalidate_dcache_range() 185 start += line_size; in invalidate_dcache_range() [all …]
|
/u-boot/test/ |
A D | time_ut.c | 15 ulong base, start, next, diff; in test_get_timer() local 19 start = get_timer(0); in test_get_timer() 23 } while (start == next); in test_get_timer() 25 if (start + 1 != next) { in test_get_timer() 30 start++; in test_get_timer() 85 ulong start; in test_time_comparison() local 87 start = get_timer(0); in test_time_comparison() 89 while (get_timer(start) < 1000) in test_time_comparison() 105 ulong start, delta; in test_udelay() local 108 start = get_timer(0); in test_udelay() [all …]
|
/u-boot/post/drivers/ |
A D | memory.c | 277 ulong *mem = (ulong *) start; in memory_post_test1() 307 ulong *mem = (ulong *) start; in memory_post_test2() 337 ulong *mem = (ulong *) start; in memory_post_test3() 367 ulong *mem = (ulong *) start; in memory_post_test4() 401 ret = memory_post_addrline((ulong *)start, (ulong *)start, in memory_post_test_lines() 406 (ulong *)start, size); in memory_post_test_lines() 428 ret = memory_post_test2(start, size); in memory_post_test_patterns() 431 ret = memory_post_test3(start, size); in memory_post_test_patterns() 434 ret = memory_post_test4(start, size); in memory_post_test_patterns() 461 ret = memory_post_test_lines(start, size); in memory_post_tests() [all …]
|
/u-boot/drivers/mmc/ |
A D | mmc_write.c | 25 end = start + blkcnt - 1; in mmc_erase_t() 27 end = (start + blkcnt - 1) * mmc->write_bl_len; in mmc_erase_t() 28 start *= mmc->write_bl_len; in mmc_erase_t() 40 cmd.cmdarg = start; in mmc_erase_t() 105 ((start + blkcnt + mmc->erase_grp_size) in mmc_berase() 116 err = mmc_erase_t(mmc, start + blk, blk_r); in mmc_berase() 137 if ((start + blkcnt) > mmc_get_blk_desc(mmc)->lba) { in mmc_write_blocks() 151 cmd.cmdarg = start; in mmc_write_blocks() 153 cmd.cmdarg = start * mmc->write_bl_len; in mmc_write_blocks() 216 if (mmc_write_blocks(mmc, start, cur, src) != cur) in mmc_bwrite() [all …]
|
/u-boot/drivers/block/ |
A D | blkcache.c | 24 lbaint_t start; member 59 (node->start <= start) && in cache_find() 60 (node->start + node->blkcnt >= start + blkcnt)) { in cache_find() 72 lbaint_t start, lbaint_t blkcnt, in blkcache_read() argument 78 const char *src = node->cache + (start - node->start) * blksz; in blkcache_read() 81 start, blkcnt); in blkcache_read() 87 start, blkcnt); in blkcache_read() 93 lbaint_t start, lbaint_t blkcnt, in blkcache_fill() argument 113 node->start, node->blkcnt); in blkcache_fill() 134 start, blkcnt); in blkcache_fill() [all …]
|
/u-boot/arch/powerpc/lib/ |
A D | cache.c | 15 ulong addr, start, end; in flush_cache() local 17 start = start_addr & ~(CONFIG_SYS_CACHELINE_SIZE - 1); in flush_cache() 20 for (addr = start; (addr <= end) && (addr >= start); in flush_cache() 28 for (addr = start; (addr <= end) && (addr >= start); in flush_cache()
|
/u-boot/arch/arm/mach-rmobile/ |
A D | memmap-gen3.c | 60 u64 start, size; in enable_caches() local 74 start = gd->bd->bi_dram[bank].start; in enable_caches() 82 if (start >> 32ULL) in enable_caches() 86 if (start == 0x48000000) { in enable_caches() 95 start = 0x47E00000ULL; in enable_caches() 99 gen3_mem_map[i].virt = start; in enable_caches() 100 gen3_mem_map[i].phys = start; in enable_caches() 118 start = gd->bd->bi_dram[bank].start; in enable_caches() 126 if (!(start >> 32ULL)) in enable_caches() 129 gen3_mem_map[i].virt = start; in enable_caches() [all …]
|
/u-boot/drivers/scsi/ |
A D | scsi.c | 164 start = blknr; in scsi_read() 183 start += blocks; in scsi_read() 191 start += max_blks; in scsi_read() 197 start += blks; in scsi_read() 234 start = blknr; in scsi_write() 250 start += max_blks; in scsi_write() 256 start += blks; in scsi_write() 338 int start, end; in scsi_ident_cpy() local 340 start = 0; in scsi_ident_cpy() 344 start++; in scsi_ident_cpy() [all …]
|