Home
last modified time | relevance | path

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

12345678910>>...12

/linux/drivers/media/common/saa7146/
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 …]
/linux/drivers/video/fbdev/via/
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 …]
/linux/drivers/gpu/drm/qxl/
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()
/linux/drivers/staging/sm750fb/
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()
/linux/drivers/gpu/drm/tiny/
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 …]
/linux/sound/drivers/opl4/
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 …]
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/fb/
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()
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()
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()
A Dpriv.h38 u32 pitch, u32 flags, struct nvkm_fb_tile *);
58 u32 pitch, u32 flags, struct nvkm_fb_tile *);
64 u32 pitch, u32 flags, struct nvkm_fb_tile *);
70 u32 pitch, u32 flags, struct nvkm_fb_tile *);
82 u32 pitch, u32 flags, struct nvkm_fb_tile *);
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()
/linux/drivers/gpu/drm/nouveau/nvkm/engine/gr/
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()
/linux/sound/pci/ctxfi/
A Dctatc.c194 unsigned int pitch; in atc_get_pitch() local
217 return pitch; in atc_get_pitch()
222 if (pitch > 0x00428f5c && pitch < 0x01b851ec) { in select_rom()
225 } else if (pitch == 0x01d66666 || pitch == 0x01d66667) { in select_rom()
250 unsigned int pitch; in atc_pcm_playback_prepare() local
451 unsigned int pitch; member
461 unsigned int pitch; in setup_src_node_conf() local
470 conf[0].pitch = pitch; in setup_src_node_conf()
489 conf[0].pitch = pitch; in setup_src_node_conf()
511 unsigned int pitch; in atc_pcm_capture_get_resources() local
[all …]
/linux/drivers/gpu/drm/tests/
A Ddrm_format_helper_test.c100 unsigned int pitch; member
122 .pitch = 1 * 4,
185 .pitch = 2 * 4,
255 .pitch = 4 * 4,
400 .pitch = 3 * 4,
1242 unsigned int pitch; member
1279 .pitch = 20,
1286 .pitch = 20,
1293 .pitch = 20,
1313 unsigned int pitch = params->pitch; in drm_test_fb_clip_offset() local
[all …]
/linux/arch/powerpc/kernel/
A Dbtext.c107 void __init btext_setup_display(int width, int height, int depth, int pitch, in btext_setup_display() argument
116 dispDeviceRowBytes = pitch; in btext_setup_display()
162 unsigned int width, height, depth, pitch; in btext_initialize() local
184 pitch = width * ((depth + 7) / 8); in btext_initialize()
189 pitch = *prop; in btext_initialize()
190 if (pitch == 1) in btext_initialize()
191 pitch = 0x1000; in btext_initialize()
209 dispDeviceRowBytes = pitch; in btext_initialize()
263 int depth, int pitch) in btext_update_display() argument
278 dispDeviceRowBytes = pitch; in btext_update_display()
/linux/sound/core/oss/
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()
/linux/drivers/gpu/drm/loongson/
A Dlsdc_gem.c208 u32 pitch; in lsdc_dumb_create() local
218 pitch = args->width * args->bpp / 8; in lsdc_dumb_create()
219 pitch = ALIGN(pitch, descp->pitch_align); in lsdc_dumb_create()
220 size = pitch * args->height; in lsdc_dumb_create()
242 args->pitch = pitch; in lsdc_dumb_create()
/linux/sound/pci/emu10k1/
A Demu10k1_callback.c488 short pitch; in make_fmmod() local
492 pitch = (char)(vp->reg.parm.fmmod>>8); in make_fmmod()
495 pitch += (MOD_SENSE * modulation) / 1200; in make_fmmod()
496 LIMITVALUE(pitch, -128, 127); in make_fmmod()
497 return ((unsigned char)pitch << 8) | cutoff; in make_fmmod()
504 short pitch; in make_fm2frq2() local
508 pitch = (char)(vp->reg.parm.fm2frq2>>8); in make_fm2frq2()
511 pitch += (MOD_SENSE * modulation) / 1200; in make_fm2frq2()
512 LIMITVALUE(pitch, -128, 127); in make_fm2frq2()
513 return ((unsigned char)pitch << 8) | freq; in make_fm2frq2()
/linux/drivers/video/fbdev/core/
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()
/linux/arch/sparc/kernel/
A Dbtext.c42 unsigned int width, height, depth, pitch; in btext_initialize() local
52 pitch = width * ((depth + 7) / 8); in btext_initialize()
56 pitch = prop; in btext_initialize()
58 if (pitch == 1) in btext_initialize()
59 pitch = 0x1000; in btext_initialize()
75 dispDeviceRowBytes = pitch; in btext_initialize()
/linux/sound/isa/sb/
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()
/linux/drivers/gpu/drm/gma500/
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()
/linux/drivers/gpu/drm/mediatek/
A Dmtk_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()
/linux/drivers/media/pci/saa7164/
A Dsaa7164-buffer.c99 buf->actual_size = params->pitch * params->numberoflines; in saa7164_buffer_alloc()
231 saa7164_writel(port->pitch, params->pitch); in saa7164_buffer_cfg_port()
232 saa7164_writel(port->bufsize, params->pitch * params->numberoflines); in saa7164_buffer_cfg_port()
239 dprintk(DBGLVL_BUF, " pitch 0x%x = %d\n", port->pitch, in saa7164_buffer_cfg_port()
240 saa7164_readl(port->pitch)); in saa7164_buffer_cfg_port()
/linux/drivers/video/fbdev/aty/
A Dradeon_accel.c37 OUTREG(DEFAULT_PITCH_OFFSET, (rinfo->pitch << 0x16) | in radeon_fixup_offset()
39 OUTREG(DST_PITCH_OFFSET, (rinfo->pitch << 0x16) | (rinfo->fb_local_base >> 10)); in radeon_fixup_offset()
40 OUTREG(SRC_PITCH_OFFSET, (rinfo->pitch << 0x16) | (rinfo->fb_local_base >> 10)); in radeon_fixup_offset()
287 OUTREG(DEFAULT_PITCH_OFFSET, (rinfo->pitch << 0x16) | in radeonfb_engine_init()
289 OUTREG(DST_PITCH_OFFSET, (rinfo->pitch << 0x16) | (rinfo->fb_local_base >> 10)); in radeonfb_engine_init()
290 OUTREG(SRC_PITCH_OFFSET, (rinfo->pitch << 0x16) | (rinfo->fb_local_base >> 10)); in radeonfb_engine_init()

Completed in 54 milliseconds

12345678910>>...12