Home
last modified time | relevance | path

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

12

/linux-6.6.21/drivers/cache/
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-6.6.21/drivers/media/pci/cx18/
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 …]
/linux-6.6.21/arch/arm/mm/
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()
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()
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/dcn32/
Ddcn32_dpp.c43 int line_size = scl_data->viewport.width < scl_data->recout.width ? in dscl32_calc_lb_num_partitions() local
48 if (line_size == 0) in dscl32_calc_lb_num_partitions()
49 line_size = 1; in dscl32_calc_lb_num_partitions()
54 memory_line_size_y = (line_size + 5) / 6; /* +5 to ceil */ in dscl32_calc_lb_num_partitions()
56 memory_line_size_a = (line_size + 5) / 6; /* +5 to ceil */ in dscl32_calc_lb_num_partitions()
/linux-6.6.21/arch/powerpc/kernel/
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 …]
Dvdso.c355 vdso_data->dcache_line_size = ppc64_caches.l1d.line_size; in vdso_init()
357 vdso_data->icache_line_size = ppc64_caches.l1i.line_size; in vdso_init()
/linux-6.6.21/drivers/media/pci/ivtv/
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()
/linux-6.6.21/arch/x86/kernel/cpu/
Dcacheinfo.c191 unsigned line_size:8; member
201 unsigned line_size:8; member
211 unsigned line_size:8; member
250 unsigned line_size, lines_per_tag, assoc, size_in_kb; in amd_cpuid4() local
271 line_size = l1->line_size; in amd_cpuid4()
279 line_size = l2.line_size; in amd_cpuid4()
288 line_size = l3.line_size; in amd_cpuid4()
309 ebx->split.coherency_line_size = line_size - 1; in amd_cpuid4()
312 ecx->split.number_of_sets = (size_in_kb * 1024) / line_size / in amd_cpuid4()
/linux-6.6.21/arch/x86/kernel/cpu/resctrl/
Dpseudo_lock.c264 plr->line_size = 0; in pseudo_lock_region_clear()
315 plr->line_size = ci->info_list[i].coherency_line_size; in pseudo_lock_region_init()
447 unsigned int line_size; in pseudo_lock_fn() local
451 register unsigned int line_size asm("esi"); in pseudo_lock_fn()
487 line_size = plr->line_size; in pseudo_lock_fn()
515 for (i = 0; i < size; i += line_size) { in pseudo_lock_fn()
962 unsigned int line_size; in measure_residency_fn() local
1005 line_size = READ_ONCE(plr->line_size); in measure_residency_fn()
1030 for (i = 0; i < size; i += line_size) { in measure_residency_fn()
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/dcn20/
Ddcn20_dpp.c267 int line_size = scl_data->viewport.width < scl_data->recout.width ? in dscl2_calc_lb_num_partitions() local
272 if (line_size == 0) in dscl2_calc_lb_num_partitions()
273 line_size = 1; in dscl2_calc_lb_num_partitions()
278 memory_line_size_y = (line_size + 5) / 6; /* +5 to ceil */ in dscl2_calc_lb_num_partitions()
280 memory_line_size_a = (line_size + 5) / 6; /* +5 to ceil */ in dscl2_calc_lb_num_partitions()
/linux-6.6.21/tools/spi/
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()
/linux-6.6.21/drivers/base/
Dcacheinfo.c143 u32 line_size; in cache_get_line_size() local
147 ret = of_property_read_u32(np, propname, &line_size); in cache_get_line_size()
149 this_leaf->coherency_line_size = line_size; in cache_get_line_size()
168 unsigned int line_size = this_leaf->coherency_line_size; in cache_associativity() local
176 if (!(nr_sets == 1) && (nr_sets > 0 && size > 0 && line_size > 0)) in cache_associativity()
177 this_leaf->ways_of_associativity = (size / nr_sets) / line_size; in cache_associativity()
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/dcn10/
Ddcn10_dpp_dscl.c400 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-6.6.21/drivers/gpu/drm/renesas/shmobile/
Dshmob_drm_crtc.h30 unsigned int line_size; member
/linux-6.6.21/arch/mips/kernel/
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()
/linux-6.6.21/drivers/video/fbdev/
Dsh_mobile_lcdcfb.h88 unsigned int line_size; member
/linux-6.6.21/tools/testing/nvdimm/test/
Dndtest.h58 u32 line_size; member
/linux-6.6.21/arch/ia64/kernel/
Dsetup.c871 unsigned long line_size, max = 1; in get_cache_info() local
905 line_size = 1 << cci.pcci_line_size; in get_cache_info()
906 if (line_size > max) in get_cache_info()
907 max = line_size; in get_cache_info()
/linux-6.6.21/arch/powerpc/include/asm/
Dcache.h45 u32 line_size; member
Delf.h137 (ppc64_caches.level.assoc << 16 | ppc64_caches.level.line_size)
/linux-6.6.21/include/linux/
Dnode.h62 u16 line_size; member
/linux-6.6.21/drivers/gpu/drm/vboxvideo/
Dmodesetting.c45 p->line_size = pitch; in hgsmi_process_display_info()
Dvboxvideo.h277 u32 line_size; member
/linux-6.6.21/tools/perf/util/
Denv.h20 u32 line_size; member

12