Home
last modified time | relevance | path

Searched refs:pitch (Results 1 – 25 of 295) sorted by relevance

12345678910>>...12

/openbmc/openbmc/meta-openembedded/meta-oe/recipes-graphics/libsdl/libsdl-1.2.15/
H A DCVE-2019-7637.patch49 - Uint16 pitch;
64 - pitch = (pitch+7)/8;
66 + pitch = pitch / 8 + 1;
68 + pitch = pitch / 8;
72 - pitch = (pitch+1)/2;
74 + pitch = pitch / 2 + 1;
76 + pitch = pitch / 2;
82 - pitch = (pitch + 3) & ~3; /* 4-byte aligning */
83 - return(pitch);
86 + if (pitch + 3 < pitch) {
[all …]
/openbmc/linux/drivers/media/common/saa7146/
H A Dsaa7146_hlp.c455 vdma1.pitch /= 2; in calculate_video_dma_grab_packed()
459 vdma1.pitch /= 2; in calculate_video_dma_grab_packed()
597 vdma1.pitch /= 2; in calculate_video_dma_grab_planar()
599 vdma2.pitch /= 2; in calculate_video_dma_grab_planar()
601 vdma3.pitch /= 2; in calculate_video_dma_grab_planar()
604 vdma1.pitch /= 2; in calculate_video_dma_grab_planar()
606 vdma2.pitch /= 2; in calculate_video_dma_grab_planar()
608 vdma3.pitch /= 2; in calculate_video_dma_grab_planar()
612 vdma1.pitch /= 2; in calculate_video_dma_grab_planar()
615 vdma2.pitch /= 2; in calculate_video_dma_grab_planar()
[all …]
/openbmc/linux/drivers/video/fbdev/via/
H A Dvia_modesetting.c140 void via_set_primary_pitch(u32 pitch) in via_set_primary_pitch() argument
142 DEBUG_MSG(KERN_DEBUG "via_set_primary_pitch(0x%08X)\n", pitch); in via_set_primary_pitch()
146 pitch = pitch >> 3; in via_set_primary_pitch()
147 via_write_reg(VIACR, 0x13, pitch & 0xFF); in via_set_primary_pitch()
148 via_write_reg_mask(VIACR, 0x35, (pitch >> (8 - 5)) & 0xE0, 0xE0); in via_set_primary_pitch()
151 void via_set_secondary_pitch(u32 pitch) in via_set_secondary_pitch() argument
153 DEBUG_MSG(KERN_DEBUG "via_set_secondary_pitch(0x%08X)\n", pitch); in via_set_secondary_pitch()
154 pitch = pitch >> 3; in via_set_secondary_pitch()
155 via_write_reg(VIACR, 0x66, pitch & 0xFF); in via_set_secondary_pitch()
156 via_write_reg_mask(VIACR, 0x67, (pitch >> 8) & 0x03, 0x03); in via_set_secondary_pitch()
[all …]
/openbmc/linux/drivers/gpu/drm/qxl/
H A Dqxl_dumb.c41 uint32_t pitch, format; in qxl_mode_dumb_create() local
43 pitch = args->width * ((args->bpp + 1) / 8); in qxl_mode_dumb_create()
44 args->size = pitch * args->height; in qxl_mode_dumb_create()
60 surf.stride = pitch; in qxl_mode_dumb_create()
73 args->pitch = pitch; in qxl_mode_dumb_create()
/openbmc/linux/drivers/staging/sm750fb/
H A Dsm750_cursor.c87 int i, j, count, pitch, offset; in sm750_hw_cursor_setData() local
93 pitch = cursor->w >> 3; in sm750_hw_cursor_setData()
96 count = pitch * cursor->h; in sm750_hw_cursor_setData()
124 if ((i + 1) % pitch == 0) { in sm750_hw_cursor_setData()
137 int i, j, count, pitch, offset; in sm750_hw_cursor_setData2() local
143 pitch = cursor->w >> 3; in sm750_hw_cursor_setData2()
146 count = pitch * cursor->h; in sm750_hw_cursor_setData2()
167 if (!(i & (pitch - 1))) { in sm750_hw_cursor_setData2()
/openbmc/linux/drivers/gpu/drm/tiny/
H A Dcirrus.c78 unsigned int pitch; member
315 cr13 = pitch / 8; in cirrus_pitch_set()
320 cr1b |= (pitch >> 7) & 0x10; in cirrus_pitch_set()
321 cr1b |= (pitch >> 6) & 0x40; in cirrus_pitch_set()
351 unsigned int pitch; in cirrus_primary_plane_helper_atomic_check() local
365 pitch = cirrus_pitch(fb); in cirrus_primary_plane_helper_atomic_check()
368 if (pitch > CIRRUS_MAX_PITCH) in cirrus_primary_plane_helper_atomic_check()
374 new_primary_plane_state->pitch = pitch; in cirrus_primary_plane_helper_atomic_check()
389 unsigned int pitch = primary_plane_state->pitch; in cirrus_primary_plane_helper_atomic_update() local
406 if (old_primary_plane_state->pitch != pitch) in cirrus_primary_plane_helper_atomic_update()
[all …]
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/fb/
H A Dnv10.c30 nv10_fb_tile_init(struct nvkm_fb *fb, int i, u32 addr, u32 size, u32 pitch, in nv10_fb_tile_init() argument
35 tile->pitch = pitch; in nv10_fb_tile_init()
43 tile->pitch = 0; in nv10_fb_tile_fini()
52 nvkm_wr32(device, 0x100248 + (i * 0x10), tile->pitch); in nv10_fb_tile_prog()
H A Dnv20.c30 nv20_fb_tile_init(struct nvkm_fb *fb, int i, u32 addr, u32 size, u32 pitch, in nv20_fb_tile_init() argument
35 tile->pitch = pitch; in nv20_fb_tile_init()
64 tile->pitch = 0; in nv20_fb_tile_fini()
74 nvkm_wr32(device, 0x100248 + (i * 0x10), tile->pitch); in nv20_fb_tile_prog()
H A Dnv44.c30 nv44_fb_tile_init(struct nvkm_fb *fb, int i, u32 addr, u32 size, u32 pitch, in nv44_fb_tile_init() argument
36 tile->pitch = pitch; in nv44_fb_tile_init()
44 nvkm_wr32(device, 0x100608 + (i * 0x10), tile->pitch); in nv44_fb_tile_prog()
H A Dpriv.h35 u32 pitch, u32 flags, struct nvkm_fb_tile *);
55 u32 pitch, u32 flags, struct nvkm_fb_tile *);
61 u32 pitch, u32 flags, struct nvkm_fb_tile *);
67 u32 pitch, u32 flags, struct nvkm_fb_tile *);
79 u32 pitch, u32 flags, struct nvkm_fb_tile *);
H A Dnv46.c30 nv46_fb_tile_init(struct nvkm_fb *fb, int i, u32 addr, u32 size, u32 pitch, in nv46_fb_tile_init() argument
40 tile->pitch = pitch; in nv46_fb_tile_init()
/openbmc/linux/sound/drivers/opl4/
H A Dopl4_synth.c423 int note, pitch, octave; in snd_opl4_update_pitch() local
431 pitch += voice->sound->pitch_offset; in snd_opl4_update_pitch()
433 pitch += chan->gm_rpn_coarse_tuning; in snd_opl4_update_pitch()
434 pitch += chan->gm_rpn_fine_tuning >> 7; in snd_opl4_update_pitch()
436 if (pitch < 0) in snd_opl4_update_pitch()
437 pitch = 0; in snd_opl4_update_pitch()
438 else if (pitch >= 0x6000) in snd_opl4_update_pitch()
439 pitch = 0x5fff; in snd_opl4_update_pitch()
440 octave = pitch / 0x600 - 8; in snd_opl4_update_pitch()
441 pitch = snd_opl4_pitch_map[pitch % 0x600]; in snd_opl4_update_pitch()
[all …]
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/engine/gr/
H A Dnv44.c44 nvkm_wr32(device, NV20_PGRAPH_TSIZE(i), tile->pitch); in nv44_gr_tile()
53 nvkm_wr32(device, NV47_PGRAPH_TSIZE(i), tile->pitch); in nv44_gr_tile()
56 nvkm_wr32(device, NV40_PGRAPH_TSIZE1(i), tile->pitch); in nv44_gr_tile()
61 nvkm_wr32(device, NV20_PGRAPH_TSIZE(i), tile->pitch); in nv44_gr_tile()
64 nvkm_wr32(device, NV40_PGRAPH_TSIZE1(i), tile->pitch); in nv44_gr_tile()
/openbmc/linux/sound/pci/ctxfi/
H A Dctatc.c197 unsigned int pitch; in atc_get_pitch() local
220 return pitch; in atc_get_pitch()
225 if (pitch > 0x00428f5c && pitch < 0x01b851ec) { in select_rom()
228 } else if (pitch == 0x01d66666 || pitch == 0x01d66667) { in select_rom()
253 unsigned int pitch; in atc_pcm_playback_prepare() local
454 unsigned int pitch; member
464 unsigned int pitch; in setup_src_node_conf() local
473 conf[0].pitch = pitch; in setup_src_node_conf()
492 conf[0].pitch = pitch; in setup_src_node_conf()
514 unsigned int pitch; in atc_pcm_capture_get_resources() local
[all …]
/openbmc/linux/arch/powerpc/kernel/
H A Dbtext.c110 void __init btext_setup_display(int width, int height, int depth, int pitch, in btext_setup_display() argument
119 dispDeviceRowBytes = pitch; in btext_setup_display()
165 unsigned int width, height, depth, pitch; in btext_initialize() local
187 pitch = width * ((depth + 7) / 8); in btext_initialize()
192 pitch = *prop; in btext_initialize()
193 if (pitch == 1) in btext_initialize()
194 pitch = 0x1000; in btext_initialize()
212 dispDeviceRowBytes = pitch; in btext_initialize()
266 int depth, int pitch) in btext_update_display() argument
281 dispDeviceRowBytes = pitch; in btext_update_display()
/openbmc/linux/sound/core/oss/
H A Drate.c46 unsigned int pitch; member
114 pos += data->pitch; in resample_expand()
174 pos += data->pitch; in resample_shrink()
194 res = (((frames * data->pitch) + (BITS/2)) >> SHIFT); in rate_src_frames()
196 res = DIV_ROUND_CLOSEST(frames << SHIFT, data->pitch); in rate_src_frames()
227 res = DIV_ROUND_CLOSEST(frames << SHIFT, data->pitch); in rate_dst_frames()
229 res = (((frames * data->pitch) + (BITS/2)) >> SHIFT); in rate_dst_frames()
333 data->pitch = ((src_format->rate << SHIFT) + (dst_format->rate >> 1)) / dst_format->rate; in snd_pcm_plugin_build_rate()
336 data->pitch = ((dst_format->rate << SHIFT) + (src_format->rate >> 1)) / src_format->rate; in snd_pcm_plugin_build_rate()
/openbmc/linux/drivers/gpu/drm/tests/
H A Ddrm_format_helper_test.c77 unsigned int pitch; member
96 .pitch = 1 * 4,
147 .pitch = 2 * 4,
205 .pitch = 4 * 4,
323 .pitch = 3 * 4,
518 .pitches = { params->pitch, 0, 0 }, in drm_test_fb_xrgb8888_to_gray8()
548 .pitches = { params->pitch, 0, 0 }, in drm_test_fb_xrgb8888_to_rgb332()
578 .pitches = { params->pitch, 0, 0 }, in drm_test_fb_xrgb8888_to_rgb565()
614 .pitches = { params->pitch, 0, 0 }, in drm_test_fb_xrgb8888_to_xrgb1555()
645 .pitches = { params->pitch, 0, 0 }, in drm_test_fb_xrgb8888_to_argb1555()
[all …]
/openbmc/linux/drivers/video/fbdev/core/
H A Dfbcon_rotate.h23 static inline int pattern_test_bit(u32 x, u32 y, u32 pitch, const char *pat) in pattern_test_bit() argument
25 u32 tmp = (y * pitch) + x, index = tmp / 8, bit = tmp % 8; in pattern_test_bit()
31 static inline void pattern_set_bit(u32 x, u32 y, u32 pitch, char *pat) in pattern_set_bit() argument
33 u32 tmp = (y * pitch) + x, index = tmp / 8, bit = tmp % 8; in pattern_set_bit()
/openbmc/linux/drivers/gpu/drm/loongson/
H A Dlsdc_gem.c217 u32 pitch; in lsdc_dumb_create() local
227 pitch = args->width * args->bpp / 8; in lsdc_dumb_create()
228 pitch = ALIGN(pitch, descp->pitch_align); in lsdc_dumb_create()
229 size = pitch * args->height; in lsdc_dumb_create()
251 args->pitch = pitch; in lsdc_dumb_create()
/openbmc/linux/sound/pci/emu10k1/
H A Demu10k1_callback.c483 short pitch; in make_fmmod() local
487 pitch = (char)(vp->reg.parm.fmmod>>8); in make_fmmod()
490 pitch += (MOD_SENSE * modulation) / 1200; in make_fmmod()
491 LIMITVALUE(pitch, -128, 127); in make_fmmod()
492 return ((unsigned char)pitch << 8) | cutoff; in make_fmmod()
499 short pitch; in make_fm2frq2() local
503 pitch = (char)(vp->reg.parm.fm2frq2>>8); in make_fm2frq2()
506 pitch += (MOD_SENSE * modulation) / 1200; in make_fm2frq2()
507 LIMITVALUE(pitch, -128, 127); in make_fm2frq2()
508 return ((unsigned char)pitch << 8) | freq; in make_fm2frq2()
/openbmc/linux/arch/sparc/kernel/
H A Dbtext.c45 unsigned int width, height, depth, pitch; in btext_initialize() local
55 pitch = width * ((depth + 7) / 8); in btext_initialize()
59 pitch = prop; in btext_initialize()
61 if (pitch == 1) in btext_initialize()
62 pitch = 0x1000; in btext_initialize()
78 dispDeviceRowBytes = pitch; in btext_initialize()
/openbmc/linux/include/trace/events/
H A Dxdma.h18 __field(__u64, pitch)
25 __entry->pitch = cmd->pitch;
32 __entry->pitch,
/openbmc/linux/drivers/gpu/drm/mediatek/
H A Dmtk_drm_plane.c139 unsigned int pitch, format; in mtk_plane_update_new_state() local
149 pitch = fb->pitches[0]; in mtk_plane_update_new_state()
161 offset = (new_state->src.y1 >> 16) * pitch; in mtk_plane_update_new_state()
173 pitch = width_in_blocks * AFBC_DATA_BLOCK_WIDTH * in mtk_plane_update_new_state()
188 offset = pitch * y_offset_in_blocks + in mtk_plane_update_new_state()
201 mtk_plane_state->pending.pitch = pitch; in mtk_plane_update_new_state()
/openbmc/linux/sound/isa/sb/
H A Demu8000_callback.c373 short pitch; in set_fmmod() local
377 pitch = (char)(vp->reg.parm.fmmod>>8); in set_fmmod()
380 pitch += (MOD_SENSE * modulation) / 1200; in set_fmmod()
381 LIMITVALUE(pitch, -128, 127); in set_fmmod()
382 fmmod = ((unsigned char)pitch<<8) | cutoff; in set_fmmod()
398 short pitch; in set_fm2frq2() local
402 pitch = (char)(vp->reg.parm.fm2frq2>>8); in set_fm2frq2()
405 pitch += (MOD_SENSE * modulation) / 1200; in set_fm2frq2()
406 LIMITVALUE(pitch, -128, 127); in set_fm2frq2()
407 fm2frq2 = ((unsigned char)pitch<<8) | freq; in set_fm2frq2()
/openbmc/linux/drivers/gpu/drm/gma500/
H A Dgem.c202 size_t pitch, size; in psb_gem_dumb_create() local
208 pitch = args->width * DIV_ROUND_UP(args->bpp, 8); in psb_gem_dumb_create()
209 pitch = ALIGN(pitch, 64); in psb_gem_dumb_create()
211 size = pitch * args->height; in psb_gem_dumb_create()
227 args->pitch = pitch; in psb_gem_dumb_create()

12345678910>>...12