Home
last modified time | relevance | path

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

12

/linux/drivers/cache/
H A Dax45mp_cache.c68 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 Dpseudo_lock.c131 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/drivers/gpu/drm/amd/display/dc/dpp/dcn401/
H A Ddcn401_dpp.c293 int line_size = scl_data->viewport.width < scl_data->recout.width ? in dscl401_calc_lb_num_partitions() local
298 if (line_size == 0) in dscl401_calc_lb_num_partitions()
299 line_size = 1; in dscl401_calc_lb_num_partitions()
304 memory_line_size_y = (line_size + 5) / 6; /* +5 to ceil */ in dscl401_calc_lb_num_partitions()
306 memory_line_size_a = (line_size + 5) / 6; /* +5 to ceil */ in dscl401_calc_lb_num_partitions()
368 int line_size = scl_data->viewport.width < scl_data->recout.width ? in dscl401_spl_calc_lb_num_partitions() local
373 if (line_size == 0) in dscl401_spl_calc_lb_num_partitions()
374 line_size = 1; in dscl401_spl_calc_lb_num_partitions()
379 memory_line_size_y = (line_size + 5) / 6; /* +5 to ceil */ in dscl401_spl_calc_lb_num_partitions()
381 memory_line_size_a = (line_size + 5) / 6; /* +5 to ceil */ in dscl401_spl_calc_lb_num_partitions()
/linux/arch/arm/mm/
H A Dcache-uniphier.c81 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 Dcache-l2x0.c953 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/arch/x86/kernel/cpu/
H A Dcacheinfo.c102 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 Dcacheinfo.c237 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 Dsetup_64.c552 info->line_size = lsize; in init_cache_info()
/linux/tools/testing/selftests/drivers/net/hw/
H A Dncdevmem.c1259 ssize_t line_size = 0; in do_client() local
1329 line_size = getline(&line, &len, stdin); in do_client()
1331 if (line_size < 0) in do_client()
1336 (line_size + max_chunk - 1) / max_chunk; in do_client()
1339 line_size, MAX_IOV); in do_client()
1349 line_size - (msg.msg_iovlen - 1) * max_chunk; in do_client()
1352 iov[0].iov_len = line_size; in do_client()
1357 provider->memcpy_to_device(mem, 0, line, line_size); in do_client()
1379 if (ret != line_size) { in do_client()
1380 pr_err("Did not send all bytes %d vs %zd", ret, line_size); in do_client()
/linux/drivers/base/
H A Dcacheinfo.c144 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/tools/testing/nvdimm/test/
H A Dndtest.h27 u32 line_size; member
/linux/drivers/video/fbdev/
H A Dsh_mobile_lcdcfb.h88 unsigned int line_size; member
/linux/arch/powerpc/include/asm/
H A Dcache.h45 u32 line_size; member
H A Delf.h135 (ppc64_caches.level.assoc << 16 | ppc64_caches.level.line_size)
/linux/drivers/gpu/drm/vboxvideo/
H A Dmodesetting.c45 p->line_size = pitch; in hgsmi_process_display_info()
H A Dvbox_mode.c379 size_t line_size = (width + 7) / 8; in copy_cursor_image() local
386 dst[i * line_size + j / 8] |= (0x80 >> (j % 8)); in copy_cursor_image()
/linux/include/linux/
H A Dnode.h79 u16 line_size; member
/linux/drivers/video/fbdev/omap/
H A Domapfb_main.c469 unsigned long line_size; in set_fb_var() local
524 line_size = var->xres_virtual * bpp / 8; in set_fb_var()
525 if (line_size * var->yres_virtual > max_frame_size) { in set_fb_var()
527 line_size = max_frame_size / var->yres_virtual; in set_fb_var()
528 var->xres_virtual = line_size * 8 / bpp; in set_fb_var()
532 line_size = var->xres * bpp / 8; in set_fb_var()
533 var->yres_virtual = max_frame_size / line_size; in set_fb_var()
/linux/arch/arm/kernel/
H A Dsetup.c280 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 Denv.h21 u32 line_size; member
H A Dheader.c1140 if (a->line_size != b->line_size) in cpu_cache_level__read()
1178 if (sysfs__read_int(file, (int *) &cache->line_size)) in cpu_cache_level__read()
1306 _W(line_size)
3274 _R(line_size) in process_clock_data()
/linux/drivers/acpi/nfit/
H A Dnfit.h294 u32 line_size; member
/linux/Documentation/admin-guide/mm/
H A Dnumaperf.rst157 | |-- line_size
164 The "line_size" is the number of bytes accessed from the next cache
/linux/drivers/net/pse-pd/
H A Dpd692x0.c1410 size_t line_size; in pd692x0_fw_get_next_line() local
1413 line_size = min_t(size_t, size, PD692X0_FW_LINE_MAX_SZ); in pd692x0_fw_get_next_line()
1416 for (i = 0; i < line_size - 1; i++) { in pd692x0_fw_get_next_line()
/linux/drivers/acpi/numa/
H A Dhmat.c513 tcache->cache_attrs.line_size = (attrs & ACPI_HMAT_CACHE_LINE_SIZE) >> 16; in hmat_parse_cache()

12