Searched refs:pitch (Results 1 - 25 of 66) sorted by relevance

123

/openbsd-current/sys/dev/isa/
H A Dspkr.c179 playtone(int pitch, int value, int sustain) argument
189 if (pitch == -1)
191 else if (pitch >= 0 &&
192 pitch < (sizeof(pitchtab) / sizeof(pitchtab[0]))) {
199 printf("playtone: pitch %d for %dms, rest for %dms\n",
200 pitch, sound, silence);
203 tone(pitchtab[pitch], sound);
213 int pitch, lastpitch = OCTAVE_NOTES * DFLT_OCTAVE; local
239 /* compute pitch */
240 pitch
[all...]
H A Dpcppi.c182 pcppi_bell(pcppi_tag_t self, int pitch, int period_ms, int slp) argument
187 if (pitch < 0)
188 pitch = 0;
189 else if (pitch > INT_MAX - TIMER_FREQ)
190 pitch = INT_MAX - TIMER_FREQ;
206 if (pitch == 0 || period_ms == 0) {
212 if (!sc->sc_bellactive || sc->sc_bellpitch != pitch) {
217 TIMER_DIV(pitch) % 256);
219 TIMER_DIV(pitch) / 256);
226 sc->sc_bellpitch = pitch;
267 pcppi_kbd_bell(void *arg, u_int pitch, u_int period, u_int volume, int poll) argument
[all...]
/openbsd-current/sys/dev/pci/drm/radeon/
H A Dr100_track.h17 unsigned pitch; member in struct:r100_cs_track_cb
41 unsigned pitch; member in struct:r100_cs_track_texture
H A Dradeon_object.h158 u32 tiling_flags, u32 pitch);
160 u32 *tiling_flags, u32 *pitch);
H A Dr600_cs.c247 /* returns alignment in pixels for pitch/height/depth and bytes for base */
263 /* technically tile_width/_height for pitch/height */
353 u32 height, height_align, pitch, pitch_align, depth_align; local
369 /* pitch in pixels */
370 pitch = (G_028060_PITCH_TILE_MAX(track->cb_color_size[i]) + 1) * 8;
373 height = slice_tile_max / pitch;
411 if (!IS_ALIGNED(pitch, pitch_align)) {
412 dev_warn(p->dev, "%s:%d cb pitch (%d, 0x%x, %d) invalid\n",
413 __func__, __LINE__, pitch, pitch_align, array_mode);
428 tmp = r600_fmt_get_nblocksy(format, height) * r600_fmt_get_nblocksx(format, pitch) *
520 u32 pitch = 8192; local
1479 u32 height_align, pitch, pitch_align, depth_align; local
[all...]
H A Dradeon_object.c609 radeon_set_surface_reg(rdev, i, bo->tiling_flags, bo->pitch,
631 uint32_t tiling_flags, uint32_t pitch)
685 bo->pitch = pitch;
692 uint32_t *pitch)
698 if (pitch)
699 *pitch = bo->pitch;
630 radeon_bo_set_tiling_flags(struct radeon_bo *bo, uint32_t tiling_flags, uint32_t pitch) argument
690 radeon_bo_get_tiling_flags(struct radeon_bo *bo, uint32_t *tiling_flags, uint32_t *pitch) argument
H A Dr200.c96 /* radeon pitch is /64 */
304 track->cb[0].pitch = idx_value & RADEON_COLORPITCH_MASK;
308 track->zb.pitch = idx_value & RADEON_DEPTHPITCH_MASK;
409 track->textures[i].pitch = idx_value + 32;
/openbsd-current/sbin/wsconsctl/
H A Dkeyboard.c57 { "bell.pitch", &bell.pitch, FMT_UINT, FLG_MODIFY },
60 { "bell.pitch.default", &dfbell.pitch, FMT_UINT, FLG_MODIFY },
85 if (field_by_value(keyboard_field_tab, &bell.pitch)->flags & FLG_GET)
95 if (field_by_value(keyboard_field_tab, &dfbell.pitch)->flags & FLG_GET)
163 if (field_by_value(keyboard_field_tab, &bell.pitch)->flags & FLG_SET)
175 if (field_by_value(keyboard_field_tab, &dfbell.pitch)->flags & FLG_SET)
/openbsd-current/sys/arch/sparc64/dev/
H A Dbeeper.c138 beeper_bell(void *vsc, u_int pitch, u_int period, u_int volume, int poll) argument
148 if (pitch == 0 || period == 0) {
H A Dbeep.c216 beep_bell(void *vsc, u_int pitch, u_int period, u_int volume, int poll) argument
226 if (pitch == 0 || period == 0 || volume == 0) {
/openbsd-current/sys/dev/sun/
H A Dsunkbd.c85 sunkbd_bell(struct sunkbd_softc *sc, u_int period, u_int pitch, u_int volume) argument
91 if (tadpole_bell(period / 10, pitch, volume) != 0)
100 if (pitch == 0 || period == 0) {
236 sunkbd_bell(sc, d_bell->period, d_bell->pitch, d_bell->volume);
/openbsd-current/sys/dev/pci/drm/amd/display/dc/inc/hw/
H A Dcursor_reg_cache.h15 uint32_t pitch: 2; member in struct:reg_cursor_control_cfg::__anon432
/openbsd-current/sys/dev/pci/drm/i915/gem/
H A Di915_gem_create.c192 /* have to work out size/pitch and return them */
193 args->pitch = ALIGN(args->width * cpp, 64);
196 if (args->pitch > intel_plane_fb_max_stride(to_i915(dev), format,
198 args->pitch = ALIGN(args->pitch, 4096);
200 if (args->pitch < args->width)
203 args->size = mul_u32_u32(args->pitch, args->height);
/openbsd-current/sys/dev/
H A Dcons.c245 cnbell(u_int pitch, u_int period, u_int volume) argument
250 (*cn_tab->cn_bell)(cn_tab->cn_dev, pitch, period, volume); local
/openbsd-current/sys/dev/hil/
H A Dhilkbd.c312 d->pitch, d->period, d->volume);
350 hilkbd_cnbell(void *v, u_int pitch, u_int period, u_int volume) argument
355 pitch, period, volume);
359 hilkbd_bell(struct hil_softc *sc, u_int pitch, u_int period, u_int volume) argument
363 /* XXX there could be at least a pitch -> HIL pitch conversion here */
/openbsd-current/sys/dev/pci/drm/include/drm/
H A Ddrm_client.h138 * @pitch: Buffer pitch
140 u32 pitch; member in struct:drm_client_buffer
H A Ddrm_format_helper.h18 unsigned int drm_fb_clip_offset(unsigned int pitch, const struct drm_format_info *format,
/openbsd-current/sys/dev/pci/drm/
H A Ddrm_dumb_buffers.c87 * handle, pitch and size are output parameters. Zero them out to
93 args->pitch = 0;
H A Ddrm_client.c305 buffer->pitch = dumb_args.pitch;
408 fb_req.pitch = buffer->pitch;
H A Ddrm_gem_dma_helper.c178 args->pitch = args->width * ((args->bpp + 7) / 8);
179 args->size = args->pitch * args->height;
/openbsd-current/sys/dev/pci/drm/i915/display/
H A Dintel_fb.c938 unsigned int pitch,
942 old_offset += *y * pitch + *x * cpp;
944 *y = (old_offset - new_offset) / pitch;
945 *x = ((old_offset - new_offset) - *y * pitch) / cpp;
954 unsigned int pitch,
970 pitch_tiles = pitch / tile_height;
973 pitch_tiles = pitch / (tile_width * cpp);
980 intel_adjust_linear_offset(x, y, cpp, pitch,
1008 * pitch is the tile_height aligned framebuffer height.
1013 * used. This is why the user has to pass in the pitch sinc
936 intel_adjust_linear_offset(int *x, int *y, unsigned int cpp, unsigned int pitch, u32 old_offset, u32 new_offset) argument
950 intel_adjust_aligned_offset(int *x, int *y, const struct drm_framebuffer *fb, int color_plane, unsigned int rotation, unsigned int pitch, u32 old_offset, u32 new_offset) argument
1016 intel_compute_aligned_offset(struct drm_i915_private *i915, int *x, int *y, const struct drm_framebuffer *fb, int color_plane, unsigned int pitch, unsigned int rotation, u32 alignment) argument
1079 int pitch = state->view.color_plane[color_plane].mapping_stride; local
[all...]
/openbsd-current/sys/dev/i2c/
H A Dikbd.c221 ikbd_cnbell(void *v, u_int pitch, u_int period, u_int volume) argument
223 hidkbd_bell(pitch, period, volume, 1);
/openbsd-current/sys/dev/pckbc/
H A Dpckbd.c1208 pckbd_bell(d->pitch, d->period, d->volume, 0);
1221 pckbd_bell(u_int pitch, u_int period, u_int volume, int poll) argument
1225 (*pckbd_bell_fn)(pckbd_bell_fn_arg, pitch, period,
1291 pckbd_cnbell(void *v, u_int pitch, u_int period, u_int volume) argument
1294 pckbd_bell(pitch, period, volume, 1);
/openbsd-current/sys/dev/pci/
H A Demuxkivar.h97 u_int16_t current;/* 0x4000 == unity pitch shift */
98 u_int16_t target; /* 0x4000 == unity pitch shift */
160 struct emuxki_chanparms_pitch pitch; member in struct:emuxki_channel
H A Demuxki.c1089 chan->pitch.initial = 0x0000; /* shouldn't it be 0xE000 ? */
1090 chan->pitch.current = 0x0000; /* should it be 0x0400 */
1091 chan->pitch.target = 0x0000; /* the unity pitch shift ? */
1092 chan->pitch.envelope_amount = 0x00; /* none */
1184 chan->pitch.target = (srate << 8) / 375;
1185 chan->pitch.target = (chan->pitch.target >> 1) +
1186 (chan->pitch.target & 1);
1187 chan->pitch
[all...]

Completed in 385 milliseconds

123