/openbmc/openbmc/meta-openembedded/meta-oe/recipes-graphics/libsdl/libsdl-1.2.15/ |
H A D | CVE-2019-7637.patch | 11 BytesPerPixel (e.g. 4) and the result is stored into Uint16 pitch 13 the value is clamped as 65532). As a result SDL_Surface with a pitch 49 - Uint16 pitch; 50 + unsigned int pitch = 0; 53 - pitch = surface->w*surface->format->BytesPerPixel; 56 + pitch += (unsigned int)surface->w; 57 + if (pitch < surface->w) { 64 - pitch = (pitch+7)/8; 65 + if (pitch % 8) { 66 + pitch = pitch / 8 + 1; [all …]
|
/openbmc/linux/drivers/media/common/saa7146/ |
H A D | saa7146_hlp.c | 391 saa7146_write(dev, where+0x0c, vdma->pitch); in saa7146_write_out_dma() 425 vdma1.pitch = bytesperline*2; in calculate_video_dma_grab_packed() 427 vdma1.pitch = (width*depth*2)/8; in calculate_video_dma_grab_packed() 434 vdma1.base_even = buf->pt[0].offset+(vdma1.pitch/2)*height; in calculate_video_dma_grab_packed() 435 vdma1.base_odd = vdma1.base_even - (vdma1.pitch/2); in calculate_video_dma_grab_packed() 438 vdma1.base_odd = vdma1.base_even + (vdma1.pitch/2); in calculate_video_dma_grab_packed() 439 vdma1.prot_addr = buf->pt[0].offset+(vdma1.pitch/2)*height; in calculate_video_dma_grab_packed() 447 vdma1.pitch /= 2; in calculate_video_dma_grab_packed() 451 vdma1.pitch /= 2; in calculate_video_dma_grab_packed() 455 vdma1.pitch /= 2; in calculate_video_dma_grab_packed() [all …]
|
/openbmc/linux/drivers/video/fbdev/via/ |
H A D | via_modesetting.c | 140 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 D | qxl_dumb.c | 41 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/gpu/drm/tiny/ |
H A D | cirrus.c | 78 unsigned int pitch; member 310 static void cirrus_pitch_set(struct cirrus_device *cirrus, unsigned int pitch) in cirrus_pitch_set() argument 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() 370 else if (pitch * fb->height > CIRRUS_VRAM_SIZE) in cirrus_primary_plane_helper_atomic_check() 374 new_primary_plane_state->pitch = pitch; in cirrus_primary_plane_helper_atomic_check() [all …]
|
/openbmc/linux/drivers/staging/sm750fb/ |
H A D | sm750_cursor.c | 87 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/sound/drivers/opl4/ |
H A D | opl4_synth.c | 423 int note, pitch, octave; in snd_opl4_update_pitch() local 430 pitch = ((note - 60) << 7) * voice->sound->key_scaling / 100 + (60 << 7); in snd_opl4_update_pitch() 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() 435 pitch += chan->midi_pitchbend * chan->gm_rpn_pitch_bend_range / 0x2000; 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() [all …]
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ |
H A D | nv10.c | 30 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 D | nv20.c | 30 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 D | nv44.c | 30 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 D | priv.h | 35 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 D | nv46.c | 30 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/drivers/gpu/drm/nouveau/nvkm/engine/gr/ |
H A D | nv44.c | 44 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 D | ctatc.c | 197 unsigned int pitch; in atc_get_pitch() local 201 pitch = (input_rate / output_rate) << 24; in atc_get_pitch() 217 pitch |= input_rate; in atc_get_pitch() 220 return pitch; in atc_get_pitch() 223 static int select_rom(unsigned int pitch) in select_rom() argument 225 if (pitch > 0x00428f5c && pitch < 0x01b851ec) { in select_rom() 228 } else if (pitch == 0x01d66666 || pitch == 0x01d66667) { in select_rom() 231 } else if (pitch == 0x02000000) { in select_rom() 234 } else if (pitch <= 0x08000000) { in select_rom() 253 unsigned int pitch; in atc_pcm_playback_prepare() local [all …]
|
/openbmc/linux/arch/powerpc/kernel/ |
H A D | btext.c | 110 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 D | rate.c | 46 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 D | drm_format_helper_test.c | 77 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/gpu/drm/loongson/ |
H A D | lsdc_gem.c | 217 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 D | emu10k1_callback.c | 483 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/drivers/video/fbdev/core/ |
H A D | fbcon_rotate.h | 23 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/arch/sparc/kernel/ |
H A D | btext.c | 45 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/sound/isa/sb/ |
H A D | emu8000_callback.c | 373 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/mediatek/ |
H A D | mtk_drm_plane.c | 139 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/include/trace/events/ |
H A D | xdma.h | 18 __field(__u64, pitch) 25 __entry->pitch = cmd->pitch; 32 __entry->pitch,
|
/openbmc/linux/drivers/gpu/drm/gma500/ |
H A D | gem.c | 202 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()
|