/kernel/linux/linux-6.6/drivers/media/common/saa7146/ |
H A 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 / in calculate_video_dma_grab_packed() [all...] |
/kernel/linux/linux-5.10/drivers/media/common/saa7146/ |
H A 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 / in saa7146_set_position() [all...] |
/kernel/linux/linux-6.6/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()
|
/kernel/linux/linux-5.10/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 >> in via_set_secondary_pitch() [all...] |
/kernel/linux/linux-6.6/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 >> in via_set_secondary_pitch() [all...] |
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-6.6/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 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() 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_PITC in cirrus_primary_plane_helper_atomic_check() 389 unsigned int pitch = primary_plane_state->pitch; cirrus_primary_plane_helper_atomic_update() local 614 uint64_t pitch = drm_format_info_min_pitch(format, 0, mode->hdisplay); cirrus_mode_config_mode_valid() local [all...] |
/kernel/linux/linux-5.10/drivers/staging/sm750fb/ |
H A 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 in sm750_hw_cursor_setData2() [all...] |
/kernel/linux/linux-6.6/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() 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 in sm750_hw_cursor_setData2() [all...] |
/kernel/linux/linux-5.10/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 | 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 | 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 *);
|
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 | 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()
|
/kernel/linux/linux-6.6/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 | 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 | 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 | 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()
|
/kernel/linux/linux-5.10/sound/pci/ctxfi/ |
H A 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 in select_rom() 253 unsigned int pitch; atc_pcm_playback_prepare() local 454 unsigned int pitch; global() member 464 unsigned int pitch; setup_src_node_conf() local 514 unsigned int pitch; atc_pcm_capture_get_resources() local 655 unsigned int pitch; atc_pcm_capture_prepare() local 794 unsigned int pitch, rsr = atc->pll_rate; spdif_passthru_playback_get_resources() local [all...] |
/kernel/linux/linux-6.6/sound/pci/ctxfi/ |
H A 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 in select_rom() 253 unsigned int pitch; atc_pcm_playback_prepare() local 454 unsigned int pitch; global() member 464 unsigned int pitch; setup_src_node_conf() local 514 unsigned int pitch; atc_pcm_capture_get_resources() local 655 unsigned int pitch; atc_pcm_capture_prepare() local 794 unsigned int pitch, rsr = atc->pll_rate; spdif_passthru_playback_get_resources() local [all...] |
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-6.6/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()
|
/kernel/linux/linux-5.10/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 = (((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 in snd_pcm_plugin_build_rate() [all...] |
/kernel/linux/linux-5.10/sound/isa/sb/ |
H A 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<< in set_fmmod() 398 short pitch; set_fm2frq2() local [all...] |