| /linux/drivers/cache/ |
| H A D | ax45mp_cache.c | 68 unsigned long line_size = ax45mp_priv.ax45mp_cache_line_size; in ax45mp_cpu_cache_operation() local 85 start += line_size; in ax45mp_cpu_cache_operation() 107 unsigned long line_size; in ax45mp_dma_cache_inv() local 113 line_size = ax45mp_priv.ax45mp_cache_line_size; in ax45mp_dma_cache_inv() 115 start = start & (~(line_size - 1)); in ax45mp_dma_cache_inv() 116 end = ((end + line_size - 1) & (~(line_size - 1))); in ax45mp_dma_cache_inv() 129 unsigned long line_size; in ax45mp_dma_cache_wback() local 135 line_size = ax45mp_priv.ax45mp_cache_line_size; in ax45mp_dma_cache_wback() 136 start = start & (~(line_size - 1)); in ax45mp_dma_cache_wback() 137 end = ((end + line_size - 1) & (~(line_size - 1))); in ax45mp_dma_cache_wback()
|
| /linux/arch/x86/kernel/cpu/resctrl/ |
| H A D | pseudo_lock.c | 131 unsigned int line_size; in resctrl_arch_pseudo_lock_fn() local 135 register unsigned int line_size asm("esi"); in resctrl_arch_pseudo_lock_fn() 171 line_size = plr->line_size; in resctrl_arch_pseudo_lock_fn() 200 for (i = 0; i < size; i += line_size) { in resctrl_arch_pseudo_lock_fn() 316 unsigned int line_size; in measure_residency_fn() local 359 line_size = READ_ONCE(plr->line_size); in measure_residency_fn() 384 for (i = 0; i < size; i += line_size) { in measure_residency_fn()
|
| /linux/arch/arm/mm/ |
| H A D | cache-uniphier.c | 81 u32 line_size; member 189 start = start & ~(data->line_size - 1); in __uniphier_cache_maint_range() 193 if (unlikely(size >= (unsigned long)(-data->line_size))) { in __uniphier_cache_maint_range() 203 size = ALIGN(size, data->line_size); in __uniphier_cache_maint_range() 349 if (of_property_read_u32(np, "cache-line-size", &data->line_size) || in __uniphier_cache_init() 350 !is_power_of_2(data->line_size)) { in __uniphier_cache_init() 366 cache_size == 0 || cache_size % (data->nsets * data->line_size)) { in __uniphier_cache_init() 373 data->way_mask = GENMASK(cache_size / data->nsets / data->line_size - 1, in __uniphier_cache_init() 425 data->range_op_max_size -= data->line_size; in __uniphier_cache_init()
|
| H A D | cache-l2x0.c | 953 u32 line_size = 0; in l2x0_cache_size_of_parse() local 958 of_property_read_u32(np, "cache-line-size", &line_size); in l2x0_cache_size_of_parse() 964 if (!line_size) { in l2x0_cache_size_of_parse() 967 line_size = block_size; in l2x0_cache_size_of_parse() 973 line_size = CACHE_LINE_SIZE; in l2x0_cache_size_of_parse() 977 if (line_size != CACHE_LINE_SIZE) in l2x0_cache_size_of_parse() 980 line_size, in l2x0_cache_size_of_parse() 991 way_size = sets * line_size; in l2x0_cache_size_of_parse() 1001 pr_info("L2C OF: override line size: %d bytes\n", line_size); in l2x0_cache_size_of_parse()
|
| /linux/drivers/gpu/drm/amd/display/dc/dpp/dcn20/ |
| H A D | dcn20_dpp.c | 269 int line_size = scl_data->viewport.width < scl_data->recout.width ? in dscl2_calc_lb_num_partitions() local 274 if (line_size == 0) in dscl2_calc_lb_num_partitions() 275 line_size = 1; in dscl2_calc_lb_num_partitions() 280 memory_line_size_y = (line_size + 5) / 6; /* +5 to ceil */ in dscl2_calc_lb_num_partitions() 282 memory_line_size_a = (line_size + 5) / 6; /* +5 to ceil */ in dscl2_calc_lb_num_partitions() 446 int line_size = scl_data->viewport.width < scl_data->recout.width ? in dscl2_spl_calc_lb_num_partitions() local 451 if (line_size == 0) in dscl2_spl_calc_lb_num_partitions() 452 line_size = 1; in dscl2_spl_calc_lb_num_partitions() 457 memory_line_size_y = (line_size + 5) / 6; /* +5 to ceil */ in dscl2_spl_calc_lb_num_partitions() 459 memory_line_size_a = (line_size + 5) / 6; /* +5 to ceil */ in dscl2_spl_calc_lb_num_partitions()
|
| /linux/arch/x86/kernel/cpu/ |
| H A D | cacheinfo.c | 102 unsigned line_size :8; member 112 unsigned line_size :8; member 122 unsigned line_size :8; member 154 unsigned int dummy, line_size, lines_per_tag, assoc, size_in_kb; in legacy_amd_cpuid4() local 176 line_size = l1->line_size; in legacy_amd_cpuid4() 186 line_size = l2.line_size; in legacy_amd_cpuid4() 195 line_size = l3.line_size; in legacy_amd_cpuid4() 216 ebx->split.coherency_line_size = line_size - 1; in legacy_amd_cpuid4() 219 ecx->split.number_of_sets = (size_in_kb * 1024) / line_size / in legacy_amd_cpuid4()
|
| /linux/arch/powerpc/kernel/ |
| H A D | cacheinfo.c | 237 const __be32 *line_size; in cache_get_line_size() local 246 line_size = of_get_property(cache->ofnode, propname, NULL); in cache_get_line_size() 247 if (line_size) in cache_get_line_size() 251 if (!line_size) in cache_get_line_size() 254 *ret = of_read_number(line_size, 1); in cache_get_line_size() 275 unsigned int line_size; in cache_associativity() local 290 if (cache_get_line_size(cache, &line_size)) in cache_associativity() 295 if (!(nr_sets > 0 && size > 0 && line_size > 0)) in cache_associativity() 298 *ret = (size / nr_sets) / line_size; in cache_associativity() 608 unsigned int line_size; in line_size_show() local [all …]
|
| H A D | setup_64.c | 552 info->line_size = lsize; in init_cache_info()
|
| /linux/tools/testing/selftests/drivers/net/hw/ |
| H A D | ncdevmem.c | 1252 ssize_t line_size = 0; 1322 line_size = getline(&line, &len, stdin); 1324 if (line_size < 0) 1329 (line_size + max_chunk - 1) / max_chunk; 1332 line_size, MAX_IOV); 1342 line_size - (msg.msg_iovlen - 1) * max_chunk; 1345 iov[0].iov_len = line_size; 1350 provider->memcpy_to_device(mem, 0, line, line_size); 1372 if (ret != line_size) { 1373 pr_err("Did not send all bytes %d vs %zd", ret, line_size); 850 ssize_t line_size = 0; do_client() local [all...] |
| /linux/drivers/base/ |
| H A D | cacheinfo.c | 144 u32 line_size; in cache_get_line_size() local 148 ret = of_property_read_u32(np, propname, &line_size); in cache_get_line_size() 150 this_leaf->coherency_line_size = line_size; in cache_get_line_size() 169 unsigned int line_size = this_leaf->coherency_line_size; in cache_associativity() local 177 if (!(nr_sets == 1) && (nr_sets > 0 && size > 0 && line_size > 0)) in cache_associativity() 178 this_leaf->ways_of_associativity = (size / nr_sets) / line_size; in cache_associativity()
|
| /linux/drivers/gpu/drm/amd/display/dc/dpp/dcn10/ |
| H A D | dcn10_dpp_dscl.c | 400 int line_size = scl_data->viewport.width < scl_data->recout.width ? in dpp1_dscl_calc_lb_num_partitions() local 405 if (line_size == 0) in dpp1_dscl_calc_lb_num_partitions() 406 line_size = 1; in dpp1_dscl_calc_lb_num_partitions() 413 memory_line_size_y = (line_size * lb_bpc + 71) / 72; /* +71 to ceil */ in dpp1_dscl_calc_lb_num_partitions() 415 memory_line_size_a = (line_size + 5) / 6; /* +5 to ceil */ in dpp1_dscl_calc_lb_num_partitions()
|
| /linux/tools/testing/nvdimm/test/ |
| H A D | ndtest.h | 27 u32 line_size; member
|
| /linux/drivers/video/fbdev/ |
| H A D | sh_mobile_lcdcfb.h | 88 unsigned int line_size; member
|
| /linux/arch/powerpc/include/asm/ |
| H A D | cache.h | 45 u32 line_size; member
|
| H A D | elf.h | 135 (ppc64_caches.level.assoc << 16 | ppc64_caches.level.line_size)
|
| /linux/drivers/gpu/drm/vboxvideo/ |
| H A D | modesetting.c | 45 p->line_size = pitch; in hgsmi_process_display_info()
|
| /linux/include/linux/ |
| H A D | node.h | 79 u16 line_size; member
|
| /linux/arch/arm/kernel/ |
| H A D | setup.c | 280 unsigned int id_reg, num_sets, line_size; in cpu_has_aliasing_icache() local 292 line_size = 4 << ((id_reg & 0x7) + 2); in cpu_has_aliasing_icache() 294 aliasing_icache = (line_size * num_sets) > PAGE_SIZE; in cpu_has_aliasing_icache()
|
| /linux/tools/perf/util/ |
| H A D | env.h | 21 u32 line_size; member
|
| H A D | header.c | 1103 if (a->line_size != b->line_size) in cpu_cache_level__cmp() 1141 if (sysfs__read_int(file, (int *) &cache->line_size)) in cpu_cache_level__read() 1269 _W(line_size) in write_cache() 2907 _R(line_size) in process_cache()
|
| /linux/arch/sparc/kernel/ |
| H A D | mdesc.c | 822 const u64 *line_size = mdesc_get_property(hp, mp, "line-size", NULL); in fill_in_one_cache() local 832 c->icache_line_size = *line_size; in fill_in_one_cache() 835 c->dcache_line_size = *line_size; in fill_in_one_cache() 841 c->ecache_line_size = *line_size; in fill_in_one_cache()
|
| /linux/fs/resctrl/ |
| H A D | pseudo_lock.c | 196 plr->line_size = 0; in pseudo_lock_region_clear() 246 plr->line_size = ci->coherency_line_size; in pseudo_lock_region_init()
|
| /linux/drivers/video/fbdev/omap2/omapfb/ |
| H A D | omapfb-main.c | 448 unsigned long line_size = var->xres_virtual * bytespp; in check_fb_size() local 455 line_size, var); in check_fb_size() 465 DBG("max frame size %lu, line size %lu\n", max_frame_size, line_size); in check_fb_size() 467 if (line_size * var->yres_virtual > max_frame_size) in check_fb_size() 470 if (line_size * var->yres_virtual > max_frame_size) { in check_fb_size() 472 line_size = var->xres_virtual * bytespp; in check_fb_size() 475 if (line_size * var->yres_virtual > max_frame_size) { in check_fb_size()
|
| /linux/drivers/acpi/nfit/ |
| H A D | nfit.h | 294 u32 line_size; member
|
| /linux/Documentation/admin-guide/mm/ |
| H A D | numaperf.rst | 157 | |-- line_size 164 The "line_size" is the number of bytes accessed from the next cache
|