Home
last modified time | relevance | path

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

/linux-4.1.27/drivers/media/pci/cx18/
Dcx18-vbi.c111 u32 line_size = vbi_active_samples; in compress_raw_buf() local
121 p = buf + i * line_size; in compress_raw_buf()
130 memcpy(q, p + 4, line_size - 4 - hdr_size); in compress_raw_buf()
131 q += line_size - 4 - hdr_size; in compress_raw_buf()
132 p += line_size - hdr_size - 1; in compress_raw_buf()
135 memcpy(q, p + 4, line_size - 4); in compress_raw_buf()
136 q += line_size - 4; in compress_raw_buf()
139 return lines * (line_size - 4); in compress_raw_buf()
148 u32 line_size = cx->is_60hz ? vbi_hblank_samples_60Hz in compress_sliced_buf() local
165 if (size < line_size) in compress_sliced_buf()
[all …]
/linux-4.1.27/arch/powerpc/kernel/
Dcacheinfo.c234 const __be32 *line_size; in cache_get_line_size() local
243 line_size = of_get_property(cache->ofnode, propname, NULL); in cache_get_line_size()
244 if (line_size) in cache_get_line_size()
248 if (!line_size) in cache_get_line_size()
251 *ret = of_read_number(line_size, 1); in cache_get_line_size()
272 unsigned int line_size; in cache_associativity() local
287 if (cache_get_line_size(cache, &line_size)) in cache_associativity()
292 if (!(nr_sets > 0 && size > 0 && line_size > 0)) in cache_associativity()
295 *ret = (size / nr_sets) / line_size; in cache_associativity()
558 unsigned int line_size; in line_size_show() local
[all …]
/linux-4.1.27/arch/metag/include/asm/
Dl2cache.h75 unsigned int line_size; in meta_l2c_linesize() local
78 line_size = (meta_l2c_config() & METAC_CORECFG3_L2C_LINE_SIZE_BITS) in meta_l2c_linesize()
80 switch (line_size) { in meta_l2c_linesize()
/linux-4.1.27/arch/x86/kernel/cpu/
Dintel_cacheinfo.c170 unsigned line_size:8; member
180 unsigned line_size:8; member
190 unsigned line_size:8; member
229 unsigned line_size, lines_per_tag, assoc, size_in_kb; in amd_cpuid4() local
249 line_size = l1->line_size; in amd_cpuid4()
257 line_size = l2.line_size; in amd_cpuid4()
266 line_size = l3.line_size; in amd_cpuid4()
287 ebx->split.coherency_line_size = line_size - 1; in amd_cpuid4()
290 ecx->split.number_of_sets = (size_in_kb * 1024) / line_size / in amd_cpuid4()
/linux-4.1.27/Documentation/spi/
Dspidev_test.c52 static void hex_dump(const void *src, size_t length, size_t line_size, char *prefix) in hex_dump() argument
62 if (!(++i % line_size) || (length == 0 && i % line_size)) { in hex_dump()
64 while (i++ % line_size) in hex_dump()
/linux-4.1.27/drivers/media/pci/ivtv/
Divtv-vbi.c313 u32 line_size = itv->vbi.raw_decoder_line_size; in compress_raw_buf() local
322 p = buf + i * line_size; in compress_raw_buf()
328 memcpy(q, p + 4, line_size - 4); in compress_raw_buf()
329 q += line_size - 4; in compress_raw_buf()
331 return lines * (line_size - 4); in compress_raw_buf()
339 u32 line_size = itv->vbi.sliced_decoder_line_size; in compress_sliced_buf() local
351 if (size < line_size) { in compress_sliced_buf()
354 for (i = 0; i < size / line_size; i++) { in compress_sliced_buf()
355 u8 *p = buf + i * line_size; in compress_sliced_buf()
/linux-4.1.27/arch/arm/mm/
Dcache-l2x0.c940 u32 line_size = 0; in l2x0_cache_size_of_parse() local
945 of_property_read_u32(np, "cache-line-size", &line_size); in l2x0_cache_size_of_parse()
951 if (!line_size) { in l2x0_cache_size_of_parse()
954 line_size = block_size; in l2x0_cache_size_of_parse()
960 line_size = CACHE_LINE_SIZE; in l2x0_cache_size_of_parse()
964 if (line_size != CACHE_LINE_SIZE) in l2x0_cache_size_of_parse()
967 line_size, in l2x0_cache_size_of_parse()
978 way_size = sets * line_size; in l2x0_cache_size_of_parse()
988 pr_info("L2C OF: override line size: %d bytes\n", line_size); in l2x0_cache_size_of_parse()
/linux-4.1.27/drivers/gpu/drm/shmobile/
Dshmob_drm_crtc.h32 unsigned int line_size; member
Dshmob_drm_crtc.c223 lcdc_write(sdev, LDMLSR, scrtc->line_size); in shmob_drm_crtc_start()
394 scrtc->line_size = crtc->primary->fb->pitches[0]; in shmob_drm_crtc_mode_set()
409 &scrtc->line_size); in shmob_drm_crtc_mode_set()
/linux-4.1.27/arch/mips/kernel/
Dpm-cps.c246 unsigned line_size = cpu_info->dcache.linesz; in cps_gen_flush_fsb() local
302 uasm_i_lw(pp, zero, i * line_size * line_stride, t0); in cps_gen_flush_fsb()
310 i * line_size * line_stride, t0); in cps_gen_flush_fsb()
312 i * line_size * line_stride, t0); in cps_gen_flush_fsb()
/linux-4.1.27/drivers/video/fbdev/
Dsh_mobile_lcdcfb.h88 unsigned int line_size; member
Dmxsfb.c414 int line_size, fb_size; in mxsfb_set_par() local
417 line_size = fb_info->var.xres * (fb_info->var.bits_per_pixel >> 3); in mxsfb_set_par()
418 fb_size = fb_info->var.yres_virtual * line_size; in mxsfb_set_par()
423 fb_info->fix.line_length = line_size; in mxsfb_set_par()
Dda8xx-fb.c957 unsigned long line_size = var->xres_virtual * bpp; in fb_check_var() local
1026 if (line_size * var->yres_virtual > par->vram_size) in fb_check_var()
1027 var->yres_virtual = par->vram_size / line_size; in fb_check_var()
Dsh_mobile_lcdcfb.c1029 lcdc_write_chan(ch, LDMLSR, ch->line_size); in __sh_mobile_lcdc_start()
1119 ch->line_size = ch->pitch; in sh_mobile_lcdc_start()
1152 &ch->line_size); in sh_mobile_lcdc_start()
/linux-4.1.27/arch/ia64/kernel/
Dsetup.c857 unsigned long line_size, max = 1; in get_cache_info() local
891 line_size = 1 << cci.pcci_line_size; in get_cache_info()
892 if (line_size > max) in get_cache_info()
893 max = line_size; in get_cache_info()
/linux-4.1.27/drivers/media/pci/cx25821/
Dcx25821-video-upstream.c309 int line_size = (out->_pixel_format == PIXEL_FRMT_411) ? in cx25821_write_frame() local
316 frame_size = (line_size == Y411_LINE_SZ) ? in cx25821_write_frame()
319 frame_size = (line_size == Y411_LINE_SZ) ? in cx25821_write_frame()
/linux-4.1.27/arch/arm/kernel/
Dsetup.c277 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-4.1.27/drivers/video/fbdev/omap/
Domapfb_main.c486 unsigned long line_size; in set_fb_var() local
541 line_size = var->xres_virtual * bpp / 8; in set_fb_var()
542 if (line_size * var->yres_virtual > max_frame_size) { in set_fb_var()
544 line_size = max_frame_size / var->yres_virtual; in set_fb_var()
545 var->xres_virtual = line_size * 8 / bpp; in set_fb_var()
549 line_size = var->xres * bpp / 8; in set_fb_var()
550 var->yres_virtual = max_frame_size / line_size; in set_fb_var()
/linux-4.1.27/drivers/gpu/drm/exynos/
Dexynos_drm_fimd.c627 unsigned int last_x, last_y, buf_offsize, line_size; in fimd_win_commit() local
677 line_size = plane->crtc_width * (plane->bpp >> 3); in fimd_win_commit()
679 VIDW_BUF_SIZE_PAGEWIDTH(line_size) | in fimd_win_commit()
681 VIDW_BUF_SIZE_PAGEWIDTH_E(line_size); in fimd_win_commit()
/linux-4.1.27/arch/sparc/kernel/
Dmdesc.c578 const u64 *line_size = mdesc_get_property(hp, mp, "line-size", NULL); in fill_in_one_cache() local
588 c->icache_line_size = *line_size; in fill_in_one_cache()
591 c->dcache_line_size = *line_size; in fill_in_one_cache()
597 c->ecache_line_size = *line_size; in fill_in_one_cache()
/linux-4.1.27/drivers/video/fbdev/omap2/omapfb/
Domapfb-main.c459 unsigned long line_size = var->xres_virtual * bytespp; in check_fb_size() local
466 line_size, var); in check_fb_size()
476 DBG("max frame size %lu, line size %lu\n", max_frame_size, line_size); in check_fb_size()
478 if (line_size * var->yres_virtual > max_frame_size) in check_fb_size()
481 if (line_size * var->yres_virtual > max_frame_size) { in check_fb_size()
483 line_size = var->xres_virtual * bytespp; in check_fb_size()
486 if (line_size * var->yres_virtual > max_frame_size) { in check_fb_size()
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_debugfs.c329 int line_size = 0; in field_desc_show() local
336 if (line_size + len >= 79) { in field_desc_show()
337 line_size = 8; in field_desc_show()
341 line_size += len + 1; in field_desc_show()
/linux-4.1.27/arch/ia64/include/asm/
Dpal.h159 line_size : 8, /* 23-17 Line size */ member
198 #define pcci_line_size pcci_info_1.pcci1_bits.line_size
/linux-4.1.27/drivers/gpu/drm/i915/
Dintel_pm.c804 int line_count, line_size; in g4x_compute_srwm() local
822 line_size = hdisplay * pixel_size; in g4x_compute_srwm()
826 large = line_count * line_size; in g4x_compute_srwm()