Home
last modified time | relevance | path

Searched refs:line_size (Results 1 – 25 of 66) sorted by relevance

123

/OK3568_Linux_fs/kernel/arch/nds32/mm/
H A Dproc.c103 unsigned long end, line_size; in cpu_icache_inval_all() local
105 line_size = L1_cache_info[ICACHE].line_size; in cpu_icache_inval_all()
107 line_size * L1_cache_info[ICACHE].ways * L1_cache_info[ICACHE].sets; in cpu_icache_inval_all()
110 end -= line_size; in cpu_icache_inval_all()
112 end -= line_size; in cpu_icache_inval_all()
114 end -= line_size; in cpu_icache_inval_all()
116 end -= line_size; in cpu_icache_inval_all()
177 unsigned long line_size, end; in cpu_icache_inval_page() local
179 line_size = L1_cache_info[ICACHE].line_size; in cpu_icache_inval_page()
183 end -= line_size; in cpu_icache_inval_page()
[all …]
H A Dcacheflush.c18 unsigned long line_size, flags; in flush_icache_range() local
19 line_size = L1_cache_info[DCACHE].line_size; in flush_icache_range()
20 start = start & ~(line_size - 1); in flush_icache_range()
21 end = (end + line_size - 1) & ~(line_size - 1); in flush_icache_range()
268 unsigned long line_size, start, end, vto, flags; in copy_to_user_page() local
275 line_size = L1_cache_info[DCACHE].line_size; in copy_to_user_page()
276 start = (unsigned long)dst & ~(line_size - 1); in copy_to_user_page()
278 ((unsigned long)dst + len + line_size - 1) & ~(line_size - in copy_to_user_page()
/OK3568_Linux_fs/u-boot/arch/nds32/lib/
H A Dcache.c45 unsigned long end, line_size; in invalidate_icache_all() local
46 line_size = CACHE_LINE_SIZE(ICACHE); in invalidate_icache_all()
47 end = line_size * CACHE_WAY(ICACHE) * CACHE_SET(ICACHE); in invalidate_icache_all()
49 end -= line_size; in invalidate_icache_all()
52 end -= line_size; in invalidate_icache_all()
55 end -= line_size; in invalidate_icache_all()
57 end -= line_size; in invalidate_icache_all()
64 unsigned long line_size; in invalidate_icache_range() local
66 line_size = CACHE_LINE_SIZE(ICACHE); in invalidate_icache_range()
73 start += line_size; in invalidate_icache_range()
[all …]
/OK3568_Linux_fs/u-boot/arch/arm/lib/
H A Dcache-pl310.c56 u32 pa, line_size = 32; in v7_outer_cache_flush_range() local
62 start &= ~(line_size - 1); in v7_outer_cache_flush_range()
64 for (pa = start; pa < stop; pa = pa + line_size) in v7_outer_cache_flush_range()
74 u32 pa, line_size = 32; in v7_outer_cache_inval_range() local
80 if (start & (line_size - 1)) { in v7_outer_cache_inval_range()
84 start = (start + line_size - 1) & ~(line_size - 1); in v7_outer_cache_inval_range()
91 if (stop & (line_size - 1)) { in v7_outer_cache_inval_range()
95 stop &= ~(line_size - 1); in v7_outer_cache_inval_range()
98 for (pa = start; pa < stop; pa = pa + line_size) in v7_outer_cache_inval_range()
/OK3568_Linux_fs/kernel/arch/riscv/kernel/
H A Dcacheinfo.c69 unsigned int sets, unsigned int line_size) in ci_leaf_init() argument
75 this_leaf->coherency_line_size = line_size; in ci_leaf_init()
88 if (sets > 0 && size > 0 && line_size > 0) in ci_leaf_init()
89 this_leaf->ways_of_associativity = (size / sets) / line_size; in ci_leaf_init()
95 unsigned int size, sets, line_size; in fill_cacheinfo() local
98 !of_property_read_u32(node, "cache-block-size", &line_size) && in fill_cacheinfo()
100 ci_leaf_init((*this_leaf)++, CACHE_TYPE_UNIFIED, level, size, sets, line_size); in fill_cacheinfo()
105 !of_property_read_u32(node, "i-cache-block-size", &line_size)) { in fill_cacheinfo()
106 ci_leaf_init((*this_leaf)++, CACHE_TYPE_INST, level, size, sets, line_size); in fill_cacheinfo()
111 !of_property_read_u32(node, "d-cache-block-size", &line_size)) { in fill_cacheinfo()
[all …]
/OK3568_Linux_fs/kernel/drivers/media/pci/cx18/
H A Dcx18-vbi.c97 u32 line_size = VBI_ACTIVE_SAMPLES; in compress_raw_buf() local
107 p = buf + i * line_size; in compress_raw_buf()
116 memcpy(q, p + 4, line_size - 4 - hdr_size); in compress_raw_buf()
117 q += line_size - 4 - hdr_size; in compress_raw_buf()
118 p += line_size - hdr_size - 1; in compress_raw_buf()
121 memcpy(q, p + 4, line_size - 4); in compress_raw_buf()
122 q += line_size - 4; in compress_raw_buf()
125 return lines * (line_size - 4); in compress_raw_buf()
134 u32 line_size = cx->is_60hz ? VBI_HBLANK_SAMPLES_60HZ in compress_sliced_buf() local
151 if (size < line_size) in compress_sliced_buf()
[all …]
/OK3568_Linux_fs/kernel/arch/arm/mm/
H A Dcache-uniphier.c79 u32 line_size; member
187 start = start & ~(data->line_size - 1); in __uniphier_cache_maint_range()
191 if (unlikely(size >= (unsigned long)(-data->line_size))) { in __uniphier_cache_maint_range()
201 size = ALIGN(size, data->line_size); in __uniphier_cache_maint_range()
347 if (of_property_read_u32(np, "cache-line-size", &data->line_size) || in __uniphier_cache_init()
348 !is_power_of_2(data->line_size)) { in __uniphier_cache_init()
364 cache_size == 0 || cache_size % (data->nsets * data->line_size)) { in __uniphier_cache_init()
371 data->way_mask = GENMASK(cache_size / data->nsets / data->line_size - 1, in __uniphier_cache_init()
423 data->range_op_max_size -= data->line_size; in __uniphier_cache_init()
H A Dcache-l2x0.c952 u32 line_size = 0; in l2x0_cache_size_of_parse() local
957 of_property_read_u32(np, "cache-line-size", &line_size); in l2x0_cache_size_of_parse()
963 if (!line_size) { in l2x0_cache_size_of_parse()
966 line_size = block_size; in l2x0_cache_size_of_parse()
972 line_size = CACHE_LINE_SIZE; in l2x0_cache_size_of_parse()
976 if (line_size != CACHE_LINE_SIZE) in l2x0_cache_size_of_parse()
979 line_size, in l2x0_cache_size_of_parse()
990 way_size = sets * line_size; in l2x0_cache_size_of_parse()
1000 pr_info("L2C OF: override line size: %d bytes\n", line_size); in l2x0_cache_size_of_parse()
/OK3568_Linux_fs/yocto/meta-openembedded/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc/
H A Dx86_vfscanf.patch23 + long line_size = MAX_LINE;
34 + line = xmalloc(sizeof(line) * line_size);
36 + line_size += MAX_LINE;
37 + line = xrealloc(line,line_size);
/OK3568_Linux_fs/u-boot/arch/powerpc/cpu/mpc85xx/
H A Dfdt.c161 u32 line_size, num_ways, size, num_sets; in ft_fixup_l3cache() local
167 line_size = CPC_CFG0_LINE_SZ(cfg0); in ft_fixup_l3cache()
168 num_sets = size / (line_size * num_ways); in ft_fixup_l3cache()
171 fdt_setprop_cell(blob, off, "cache-block-size", line_size); in ft_fixup_l3cache()
254 const u32 line_size = 32; in ft_fixup_l2cache() local
257 const u32 num_sets = size / (line_size * num_ways); in ft_fixup_l2cache()
280 fdt_setprop_cell(blob, off, "cache-block-size", line_size); in ft_fixup_l2cache()
300 u32 size, line_size, num_ways, num_sets; in ft_fixup_l2cache() local
309 line_size = (((l2cfg0 >> 23) & 0x3) + 1) * 32; in ft_fixup_l2cache()
310 num_sets = size / (line_size * num_ways); in ft_fixup_l2cache()
[all …]
/OK3568_Linux_fs/kernel/arch/powerpc/kernel/
H A Dcacheinfo.c235 const __be32 *line_size; in cache_get_line_size() local
244 line_size = of_get_property(cache->ofnode, propname, NULL); in cache_get_line_size()
245 if (line_size) in cache_get_line_size()
249 if (!line_size) in cache_get_line_size()
252 *ret = of_read_number(line_size, 1); in cache_get_line_size()
273 unsigned int line_size; in cache_associativity() local
288 if (cache_get_line_size(cache, &line_size)) in cache_associativity()
293 if (!(nr_sets > 0 && size > 0 && line_size > 0)) in cache_associativity()
296 *ret = (size / nr_sets) / line_size; in cache_associativity()
572 unsigned int line_size; in line_size_show() local
[all …]
/OK3568_Linux_fs/kernel/arch/nds32/kernel/
H A Dsetup.c105 L1_cache_info[ICACHE].line_size = CACHE_LINE_SIZE(ICACHE); in dump_cpu_info()
108 L1_cache_info[ICACHE].ways * L1_cache_info[ICACHE].line_size * in dump_cpu_info()
112 L1_cache_info[ICACHE].line_size); in dump_cpu_info()
114 L1_cache_info[DCACHE].line_size = CACHE_LINE_SIZE(DCACHE); in dump_cpu_info()
117 L1_cache_info[DCACHE].ways * L1_cache_info[DCACHE].line_size * in dump_cpu_info()
121 L1_cache_info[DCACHE].line_size); in dump_cpu_info()
/OK3568_Linux_fs/kernel/drivers/media/pci/ivtv/
H A Divtv-vbi.c301 u32 line_size = itv->vbi.raw_decoder_line_size; in compress_raw_buf() local
310 p = buf + i * line_size; in compress_raw_buf()
316 memcpy(q, p + 4, line_size - 4); in compress_raw_buf()
317 q += line_size - 4; in compress_raw_buf()
319 return lines * (line_size - 4); in compress_raw_buf()
327 u32 line_size = itv->vbi.sliced_decoder_line_size; in compress_sliced_buf() local
339 if (size < line_size) { in compress_sliced_buf()
342 for (i = 0; i < size / line_size; i++) { in compress_sliced_buf()
343 u8 *p = buf + i * line_size; in compress_sliced_buf()
/OK3568_Linux_fs/kernel/arch/x86/kernel/cpu/
H A Dcacheinfo.c176 unsigned line_size:8; member
186 unsigned line_size:8; member
196 unsigned line_size:8; member
235 unsigned line_size, lines_per_tag, assoc, size_in_kb; in amd_cpuid4() local
256 line_size = l1->line_size; in amd_cpuid4()
264 line_size = l2.line_size; in amd_cpuid4()
273 line_size = l3.line_size; in amd_cpuid4()
294 ebx->split.coherency_line_size = line_size - 1; in amd_cpuid4()
297 ecx->split.number_of_sets = (size_in_kb * 1024) / line_size / in amd_cpuid4()
/OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-benchmark/libhugetlbfs/files/
H A D0003-alloc.c-Avoid-sysconf-_SC_LEVEL2_CACHE_LINESIZE-on-l.patch25 + unsigned int line_size = 0;
27 + fscanf(fp, "%d", &line_size);
30 + return line_size;
/OK3568_Linux_fs/kernel/arch/x86/kernel/cpu/resctrl/
H A Dpseudo_lock.c246 plr->line_size = 0; in pseudo_lock_region_clear()
297 plr->line_size = ci->info_list[i].coherency_line_size; in pseudo_lock_region_init()
429 unsigned int line_size; in pseudo_lock_fn() local
433 register unsigned int line_size asm("esi"); in pseudo_lock_fn()
469 line_size = plr->line_size; in pseudo_lock_fn()
497 for (i = 0; i < size; i += line_size) { in pseudo_lock_fn()
944 unsigned int line_size; in measure_residency_fn() local
987 line_size = READ_ONCE(plr->line_size); in measure_residency_fn()
1012 for (i = 0; i < size; i += line_size) { in measure_residency_fn()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/dcn20/
H A Ddcn20_dpp.c277 int line_size = scl_data->viewport.width < scl_data->recout.width ? in dscl2_calc_lb_num_partitions() local
282 if (line_size == 0) in dscl2_calc_lb_num_partitions()
283 line_size = 1; in dscl2_calc_lb_num_partitions()
288 memory_line_size_y = (line_size + 5) / 6; /* +5 to ceil */ in dscl2_calc_lb_num_partitions()
290 memory_line_size_a = (line_size + 5) / 6; /* +5 to ceil */ in dscl2_calc_lb_num_partitions()
/OK3568_Linux_fs/kernel/drivers/base/
H A Dcacheinfo.c96 u32 line_size; in cache_get_line_size() local
100 ret = of_property_read_u32(np, propname, &line_size); in cache_get_line_size()
102 this_leaf->coherency_line_size = line_size; in cache_get_line_size()
121 unsigned int line_size = this_leaf->coherency_line_size; in cache_associativity() local
129 if (!(nr_sets == 1) && (nr_sets > 0 && size > 0 && line_size > 0)) in cache_associativity()
130 this_leaf->ways_of_associativity = (size / nr_sets) / line_size; in cache_associativity()
/OK3568_Linux_fs/kernel/tools/spi/
H A Dspidev_test.c62 static void hex_dump(const void *src, size_t length, size_t line_size, in hex_dump() argument
73 if (!(++i % line_size) || (length == 0 && i % line_size)) { in hex_dump()
75 while (i++ % line_size) in hex_dump()
/OK3568_Linux_fs/buildroot/dl/stressapptest/git/src/
H A Dsat.cc1415 int line_size = cc_cacheline_size_; in InitializeThreads() local
1416 if (line_size <= 0) { in InitializeThreads()
1417 line_size = CacheLineSize(); in InitializeThreads()
1418 if (line_size < kCacheLineSize) in InitializeThreads()
1419 line_size = kCacheLineSize; in InitializeThreads()
1420 logprintf(12, "Log: Using %d as cache line size\n", line_size); in InitializeThreads()
1425 int needed_lines = (sizeof(*num) * num_cpus + line_size - 1) / line_size; in InitializeThreads()
1431 line_size, line_size * needed_lines * cc_cacheline_count_); in InitializeThreads()
1434 line_size, line_size * needed_lines * cc_cacheline_count_)); in InitializeThreads()
1443 num += (line_size * needed_lines) / sizeof(*num); in InitializeThreads()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/dcn10/
H A Ddcn10_dpp_dscl.c418 int line_size = scl_data->viewport.width < scl_data->recout.width ? in dpp1_dscl_calc_lb_num_partitions() local
423 if (line_size == 0) in dpp1_dscl_calc_lb_num_partitions()
424 line_size = 1; in dpp1_dscl_calc_lb_num_partitions()
431 memory_line_size_y = (line_size * lb_bpc + 71) / 72; /* +71 to ceil */ in dpp1_dscl_calc_lb_num_partitions()
433 memory_line_size_a = (line_size + 5) / 6; /* +5 to ceil */ in dpp1_dscl_calc_lb_num_partitions()
/OK3568_Linux_fs/kernel/arch/mips/kernel/
H A Dpm-cps.c244 unsigned line_size = cpu_info->dcache.linesz; in cps_gen_flush_fsb() local
296 uasm_i_lw(pp, zero, i * line_size * line_stride, t0); in cps_gen_flush_fsb()
304 i * line_size * line_stride, t0); in cps_gen_flush_fsb()
306 i * line_size * line_stride, t0); in cps_gen_flush_fsb()
/OK3568_Linux_fs/kernel/arch/nds32/include/asm/
H A Dcache_info.h6 unsigned char line_size; member
/OK3568_Linux_fs/u-boot/drivers/net/
H A Dsh_eth.c40 u32 line_size = CONFIG_SH_ETHER_ALIGNE_SIZE; \
45 start &= ~(line_size - 1); \
46 end = ((end + line_size - 1) & ~(line_size - 1)); \
/OK3568_Linux_fs/kernel/drivers/gpu/drm/shmobile/
H A Dshmob_drm_crtc.h30 unsigned int line_size; member

123