| /kernel/linux/linux-5.10/drivers/media/common/saa7146/ |
| D | saa7146_hlp.c | 455 vdma2->pitch = 0x00; in calculate_clipping_registers_rect() 512 saa7146_write(dev, PITCH2, vdma2.pitch); in saa7146_set_clipping_rect() 579 vdma1.pitch = 2*b_bpl; in saa7146_set_position() 581 vdma1.base_even = base + (w_y * (vdma1.pitch/2)) + (w_x * (b_depth / 8)); in saa7146_set_position() 582 vdma1.base_odd = vdma1.base_even + (vdma1.pitch / 2); in saa7146_set_position() 583 vdma1.prot_addr = vdma1.base_even + (w_height * (vdma1.pitch / 2)); in saa7146_set_position() 586 vdma1.base_even = base + ((w_y+w_height) * (vdma1.pitch/2)) + (w_x * (b_depth / 8)); in saa7146_set_position() 587 vdma1.base_odd = vdma1.base_even - (vdma1.pitch / 2); in saa7146_set_position() 588 vdma1.prot_addr = vdma1.base_odd - (w_height * (vdma1.pitch / 2)); in saa7146_set_position() 595 vdma1.pitch /= 2; in saa7146_set_position() [all …]
|
| /kernel/linux/linux-6.6/drivers/media/common/saa7146/ |
| D | saa7146_hlp.c | 391 saa7146_write(dev, where+0x0c, vdma->pitch); in saa7146_write_out_dma() 402 printk("vdma%d.pitch: 0x%08x\n", which,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() [all …]
|
| /kernel/linux/linux-5.10/drivers/staging/sm750fb/ |
| D | sm750_cursor.c | 88 int i, j, count, pitch, offset; in sm750_hw_cursor_setData() local 94 pitch = cursor->w >> 3; in sm750_hw_cursor_setData() 97 count = pitch * cursor->h; in sm750_hw_cursor_setData() 124 /* assume pitch is 1,2,4,8,...*/ in sm750_hw_cursor_setData() 125 if ((i + 1) % pitch == 0) { in sm750_hw_cursor_setData() 138 int i, j, count, pitch, offset; in sm750_hw_cursor_setData2() local 144 pitch = cursor->w >> 3; in sm750_hw_cursor_setData2() 147 count = pitch * cursor->h; in sm750_hw_cursor_setData2() 167 /* assume pitch is 1,2,4,8,...*/ in sm750_hw_cursor_setData2() 168 if (!(i & (pitch - 1))) { in sm750_hw_cursor_setData2()
|
| D | sm750_accel.c | 89 u32 base, u32 pitch, u32 Bpp, in sm750_hw_fillrect() argument 106 ((pitch / Bpp << DE_PITCH_DESTINATION_SHIFT) & in sm750_hw_fillrect() 108 (pitch / Bpp & DE_PITCH_SOURCE_MASK)); /* dpr10 */ in sm750_hw_fillrect() 111 ((pitch / Bpp << DE_WINDOW_WIDTH_DST_SHIFT) & in sm750_hw_fillrect() 113 (pitch / Bpp & DE_WINDOW_WIDTH_SRC_MASK)); /* dpr44 */ in sm750_hw_fillrect() 136 * @sPitch: Pitch value of source surface in BYTE 140 * @dPitch: Pitch value of destination surface in BYTE 247 * Program pitch (distance between the 1st points of two adjacent lines). in sm750_hw_copyarea() 248 * Note that input pitch is BYTE value, but the 2D Pitch register uses in sm750_hw_copyarea() 302 * @srcDelta: Pitch value (in bytes) of the source buffer, +ive means top down [all …]
|
| /kernel/linux/linux-6.6/drivers/staging/sm750fb/ |
| 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() 123 /* assume pitch is 1,2,4,8,...*/ 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() 166 /* assume pitch is 1,2,4,8,...*/ in sm750_hw_cursor_setData2() 167 if (!(i & (pitch - 1))) { in sm750_hw_cursor_setData2()
|
| D | sm750_accel.c | 88 u32 base, u32 pitch, u32 Bpp, in sm750_hw_fillrect() argument 105 ((pitch / Bpp << DE_PITCH_DESTINATION_SHIFT) & in sm750_hw_fillrect() 107 (pitch / Bpp & DE_PITCH_SOURCE_MASK)); /* dpr10 */ in sm750_hw_fillrect() 110 ((pitch / Bpp << DE_WINDOW_WIDTH_DST_SHIFT) & in sm750_hw_fillrect() 112 (pitch / Bpp & DE_WINDOW_WIDTH_SRC_MASK)); /* dpr44 */ in sm750_hw_fillrect() 136 * @sPitch: Pitch value of source surface in BYTE 140 * @dPitch: Pitch value of destination surface in BYTE 247 * Program pitch (distance between the 1st points of two adjacent lines). in sm750_hw_copyarea() 248 * Note that input pitch is BYTE value, but the 2D Pitch register uses in sm750_hw_copyarea() 303 * @srcDelta: Pitch value (in bytes) of the source buffer, +ive means top down [all …]
|
| /kernel/linux/linux-6.6/drivers/video/fbdev/via/ |
| 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 …]
|
| /kernel/linux/linux-5.10/drivers/video/fbdev/via/ |
| 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 …]
|
| /kernel/linux/linux-6.6/drivers/gpu/drm/tiny/ |
| 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 314 /* Program the pitch */ in cirrus_pitch_set() 315 cr13 = pitch / 8; in cirrus_pitch_set() 318 /* Enable extended blanking and pitch bits, and enable full memory */ in cirrus_pitch_set() 320 cr1b |= (pitch >> 7) & 0x10; in cirrus_pitch_set() 350 unsigned int pitch; in cirrus_primary_plane_helper_atomic_check() local 364 pitch = cirrus_pitch(fb); in cirrus_primary_plane_helper_atomic_check() 367 if (pitch > CIRRUS_MAX_PITCH) in cirrus_primary_plane_helper_atomic_check() 369 else if (pitch * fb->height > CIRRUS_VRAM_SIZE) in cirrus_primary_plane_helper_atomic_check() [all …]
|
| /kernel/linux/linux-6.6/drivers/gpu/drm/qxl/ |
| 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()
|
| /kernel/linux/linux-5.10/sound/isa/sb/ |
| D | emu8000_callback.c | 240 /* set pitch offset */ in start_voice() 262 /* lfo1 pitch & cutoff shift */ in start_voice() 266 /* lfo2 pitch & freq */ in start_voice() 309 /* set reverb and pitch target */ in trigger_voice() 333 * Set the pitch of a possibly playing note. 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() [all …]
|
| /kernel/linux/linux-6.6/sound/isa/sb/ |
| D | emu8000_callback.c | 240 /* set pitch offset */ in start_voice() 262 /* lfo1 pitch & cutoff shift */ in start_voice() 266 /* lfo2 pitch & freq */ in start_voice() 309 /* set reverb and pitch target */ in trigger_voice() 333 * Set the pitch of a possibly playing note. 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() [all …]
|
| /kernel/linux/linux-5.10/sound/pci/ctxfi/ |
| D | ctatc.c | 197 unsigned int pitch; in atc_get_pitch() local 200 /* get pitch and convert to fixed-point 8.24 format. */ in atc_get_pitch() 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() 226 /* 0.26 <= pitch <= 1.72 */ in select_rom() 228 } else if (pitch == 0x01d66666 || pitch == 0x01d66667) { in select_rom() 229 /* pitch == 1.8375 */ in select_rom() [all …]
|
| /kernel/linux/linux-6.6/sound/pci/ctxfi/ |
| D | ctatc.c | 197 unsigned int pitch; in atc_get_pitch() local 200 /* get pitch and convert to fixed-point 8.24 format. */ in atc_get_pitch() 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() 226 /* 0.26 <= pitch <= 1.72 */ in select_rom() 228 } else if (pitch == 0x01d66666 || pitch == 0x01d66667) { in select_rom() 229 /* pitch == 1.8375 */ in select_rom() [all …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/qxl/ |
| 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()
|
| /kernel/linux/linux-6.6/sound/pci/emu10k1/ |
| D | emu10k1_callback.c | 387 /* set pitch offset */ in start_voice() 409 /* lfo1 pitch & cutoff shift */ in start_voice() 413 /* lfo2 pitch & freq */ in start_voice() 465 /* set pitch target and pan (volume) */ in trigger_voice() 468 /* current pitch and fractional address */ in trigger_voice() 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() [all …]
|
| /kernel/linux/linux-6.6/include/media/ |
| D | vsp1.h | 48 * @pitch: line pitch in bytes for the first plane 58 unsigned int pitch; member 92 * @pitch: line pitch in bytes for the first plane 97 unsigned int pitch; member
|
| /kernel/linux/linux-5.10/include/media/ |
| D | vsp1.h | 48 * @pitch: line pitch in bytes for the first plane 57 unsigned int pitch; member 90 * @pitch: line pitch in bytes for the first plane 95 unsigned int pitch; member
|
| /kernel/linux/linux-5.10/sound/pci/emu10k1/ |
| D | emu10k1_callback.c | 355 /* set pitch offset */ in start_voice() 378 /* lfo1 pitch & cutoff shift */ in start_voice() 382 /* lfo2 pitch & freq */ in start_voice() 480 /* set pitch target and pan (volume) */ in trigger_voice() 484 /* pitch target */ in trigger_voice() 498 short pitch; in set_fmmod() local 502 pitch = (char)(vp->reg.parm.fmmod>>8); in set_fmmod() 505 pitch += (MOD_SENSE * modulation) / 1200; in set_fmmod() 506 LIMITVALUE(pitch, -128, 127); in set_fmmod() 507 fmmod = ((unsigned char)pitch<<8) | cutoff; in set_fmmod() [all …]
|
| /kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ |
| 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()
|
| 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 *);
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ |
| 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()
|
| D | priv.h | 27 u32 pitch, u32 flags, struct nvkm_fb_tile *); 47 u32 pitch, u32 flags, struct nvkm_fb_tile *); 53 u32 pitch, u32 flags, struct nvkm_fb_tile *); 59 u32 pitch, u32 flags, struct nvkm_fb_tile *); 71 u32 pitch, u32 flags, struct nvkm_fb_tile *);
|
| /kernel/linux/linux-5.10/sound/core/oss/ |
| 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 = (((frames << SHIFT) + (data->pitch / 2)) / data->pitch); in rate_src_frames() 227 res = (((frames << SHIFT) + (data->pitch / 2)) / 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()
|
| /kernel/linux/linux-6.6/sound/core/oss/ |
| 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()
|