| /openbsd/src/sys/dev/isa/ |
| D | spkr.c | 179 playtone(int pitch, int value, int sustain) in playtone() argument 189 if (pitch == -1) in playtone() 191 else if (pitch >= 0 && in playtone() 192 pitch < (sizeof(pitchtab) / sizeof(pitchtab[0]))) { in playtone() 200 pitch, sound, silence); in playtone() 203 tone(pitchtab[pitch], sound); in playtone() 213 int pitch, lastpitch = OCTAVE_NOTES * DFLT_OCTAVE; in playstring() local 240 pitch = notetab[c - 'A'] + octave * OCTAVE_NOTES; in playstring() 244 ++pitch; in playstring() 248 --pitch; in playstring() [all …]
|
| D | pcppi.c | 182 pcppi_bell(pcppi_tag_t self, int pitch, int period_ms, int slp) in pcppi_bell() argument 187 if (pitch < 0) in pcppi_bell() 188 pitch = 0; in pcppi_bell() 189 else if (pitch > INT_MAX - TIMER_FREQ) in pcppi_bell() 190 pitch = INT_MAX - TIMER_FREQ; in pcppi_bell() 206 if (pitch == 0 || period_ms == 0) { in pcppi_bell() 212 if (!sc->sc_bellactive || sc->sc_bellpitch != pitch) { in pcppi_bell() 217 TIMER_DIV(pitch) % 256); in pcppi_bell() 219 TIMER_DIV(pitch) / 256); in pcppi_bell() 226 sc->sc_bellpitch = pitch; in pcppi_bell() [all …]
|
| /openbsd/src/sbin/wsconsctl/ |
| D | keyboard.c | 57 { "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) in keyboard_get_values() 95 if (field_by_value(keyboard_field_tab, &dfbell.pitch)->flags & FLG_GET) in keyboard_get_values() 163 if (field_by_value(keyboard_field_tab, &bell.pitch)->flags & FLG_SET) in keyboard_put_values() 175 if (field_by_value(keyboard_field_tab, &dfbell.pitch)->flags & FLG_SET) in keyboard_put_values()
|
| /openbsd/src/sys/dev/sun/ |
| D | sunkbd.c | 85 sunkbd_bell(struct sunkbd_softc *sc, u_int period, u_int pitch, u_int volume) in sunkbd_bell() argument 91 if (tadpole_bell(period / 10, pitch, volume) != 0) in sunkbd_bell() 100 if (pitch == 0 || period == 0) { in sunkbd_bell() 236 sunkbd_bell(sc, d_bell->period, d_bell->pitch, d_bell->volume); in sunkbd_ioctl()
|
| /openbsd/src/sys/dev/pci/drm/i915/gem/ |
| D | i915_gem_create.c | 193 args->pitch = ALIGN(args->width * cpp, 64); in i915_gem_dumb_create() 196 if (args->pitch > intel_plane_fb_max_stride(to_i915(dev), format, in i915_gem_dumb_create() 198 args->pitch = ALIGN(args->pitch, 4096); in i915_gem_dumb_create() 200 if (args->pitch < args->width) in i915_gem_dumb_create() 203 args->size = mul_u32_u32(args->pitch, args->height); in i915_gem_dumb_create()
|
| /openbsd/src/sys/dev/pci/drm/radeon/ |
| D | r100_track.h | 17 unsigned pitch; member 41 unsigned pitch; member
|
| D | radeon_object.c | 605 radeon_set_surface_reg(rdev, i, bo->tiling_flags, bo->pitch, in radeon_bo_get_surface_reg() 627 uint32_t tiling_flags, uint32_t pitch) in radeon_bo_set_tiling_flags() argument 681 bo->pitch = pitch; in radeon_bo_set_tiling_flags() 688 uint32_t *pitch) in radeon_bo_get_tiling_flags() argument 694 if (pitch) in radeon_bo_get_tiling_flags() 695 *pitch = bo->pitch; in radeon_bo_get_tiling_flags()
|
| D | r600_cs.c | 353 u32 height, height_align, pitch, pitch_align, depth_align; in r600_cs_track_validate_cb() local 370 pitch = (G_028060_PITCH_TILE_MAX(track->cb_color_size[i]) + 1) * 8; in r600_cs_track_validate_cb() 373 height = slice_tile_max / pitch; in r600_cs_track_validate_cb() 411 if (!IS_ALIGNED(pitch, pitch_align)) { in r600_cs_track_validate_cb() 413 __func__, __LINE__, pitch, pitch_align, array_mode); in r600_cs_track_validate_cb() 428 tmp = r600_fmt_get_nblocksy(format, height) * r600_fmt_get_nblocksx(format, pitch) * in r600_cs_track_validate_cb() 454 pitch, height, r600_fmt_get_nblocksx(format, pitch), in r600_cs_track_validate_cb() 461 tmp = (height * pitch) >> 6; in r600_cs_track_validate_cb() 464 tmp = S_028060_PITCH_TILE_MAX((pitch / 8) - 1) | in r600_cs_track_validate_cb() 520 u32 pitch = 8192; in r600_cs_track_validate_db() local [all …]
|
| D | radeon_object.h | 158 u32 tiling_flags, u32 pitch); 160 u32 *tiling_flags, u32 *pitch);
|
| D | r100.c | 911 uint32_t pitch; in r100_copy_blit() local 920 pitch = stride_bytes / 64; in r100_copy_blit() 953 radeon_ring_write(ring, (pitch << 22) | (src_offset >> 10)); in r100_copy_blit() 954 radeon_ring_write(ring, (pitch << 22) | (dst_offset >> 10)); in r100_copy_blit() 1746 track->cb[0].pitch = idx_value & RADEON_COLORPITCH_MASK; in r100_packet0_check() 1750 track->zb.pitch = idx_value & RADEON_DEPTHPITCH_MASK; in r100_packet0_check() 1833 track->textures[i].pitch = idx_value + 32; in r100_packet0_check() 2108 DRM_ERROR("pitch %d\n", t->pitch); in r100_cs_track_texture_print() 2206 w = (track->textures[u].pitch / track->textures[u].cpp) / (1 << i); in r100_cs_track_texture_check() 2208 w = track->textures[u].pitch / (1 << i); in r100_cs_track_texture_check() [all …]
|
| D | r200.c | 304 track->cb[0].pitch = idx_value & RADEON_COLORPITCH_MASK; in r200_packet0_check() 308 track->zb.pitch = idx_value & RADEON_DEPTHPITCH_MASK; in r200_packet0_check() 409 track->textures[i].pitch = idx_value + 32; in r200_packet0_check()
|
| /openbsd/src/sys/dev/hil/ |
| D | hilkbd.c | 312 d->pitch, d->period, d->volume); in hilkbd_ioctl() 350 hilkbd_cnbell(void *v, u_int pitch, u_int period, u_int volume) in hilkbd_cnbell() argument 355 pitch, period, volume); in hilkbd_cnbell() 359 hilkbd_bell(struct hil_softc *sc, u_int pitch, u_int period, u_int volume) in hilkbd_bell() argument
|
| /openbsd/src/sys/arch/sparc64/dev/ |
| D | beeper.c | 138 beeper_bell(void *vsc, u_int pitch, u_int period, u_int volume, int poll) in beeper_bell() argument 148 if (pitch == 0 || period == 0) { in beeper_bell()
|
| D | beep.c | 216 beep_bell(void *vsc, u_int pitch, u_int period, u_int volume, int poll) in beep_bell() argument 226 if (pitch == 0 || period == 0 || volume == 0) { in beep_bell()
|
| /openbsd/src/sys/dev/pci/drm/i915/display/ |
| D | intel_fb.c | 910 unsigned int pitch, in intel_adjust_linear_offset() argument 914 old_offset += *y * pitch + *x * cpp; in intel_adjust_linear_offset() 916 *y = (old_offset - new_offset) / pitch; in intel_adjust_linear_offset() 917 *x = ((old_offset - new_offset) - *y * pitch) / cpp; in intel_adjust_linear_offset() 926 unsigned int pitch, in intel_adjust_aligned_offset() argument 942 pitch_tiles = pitch / tile_height; in intel_adjust_aligned_offset() 945 pitch_tiles = pitch / (tile_width * cpp); in intel_adjust_aligned_offset() 952 intel_adjust_linear_offset(x, y, cpp, pitch, in intel_adjust_aligned_offset() 992 unsigned int pitch, in intel_compute_aligned_offset() argument 1007 pitch_tiles = pitch / tile_height; in intel_compute_aligned_offset() [all …]
|
| /openbsd/src/sys/dev/pci/drm/ |
| D | drm_panic.c | 353 iosys_map_incr(&map, clip->y1 * sb->pitch[0] + clip->x1 * sb->format->cpp[0]); in drm_panic_blit() 357 drm_panic_blit16(&map, sb->pitch[0], sbuf8, spitch, in drm_panic_blit() 361 drm_panic_blit24(&map, sb->pitch[0], sbuf8, spitch, in drm_panic_blit() 365 drm_panic_blit32(&map, sb->pitch[0], sbuf8, spitch, in drm_panic_blit() 441 iosys_map_incr(&map, clip->y1 * sb->pitch[0] + clip->x1 * sb->format->cpp[0]); in drm_panic_fill() 445 drm_panic_fill16(&map, sb->pitch[0], drm_rect_height(clip), in drm_panic_fill() 449 drm_panic_fill24(&map, sb->pitch[0], drm_rect_height(clip), in drm_panic_fill() 453 drm_panic_fill32(&map, sb->pitch[0], drm_rect_height(clip), in drm_panic_fill()
|
| D | drm_client.c | 308 buffer->pitch = dumb_args.pitch; in drm_client_buffer_create() 478 fb_req.pitches[0] = buffer->pitch; in drm_client_buffer_addfb()
|
| D | drm_gem_dma_helper.c | 178 args->pitch = args->width * ((args->bpp + 7) / 8); in drm_gem_dma_dumb_create() 179 args->size = args->pitch * args->height; in drm_gem_dma_dumb_create()
|
| /openbsd/src/sys/dev/ |
| D | cons.c | 245 cnbell(u_int pitch, u_int period, u_int volume) in cnbell() argument 250 (*cn_tab->cn_bell)(cn_tab->cn_dev, pitch, period, volume); in cnbell()
|
| /openbsd/src/sys/dev/pckbc/ |
| D | pckbd.c | 1208 pckbd_bell(d->pitch, d->period, d->volume, 0); in pckbd_ioctl() 1221 pckbd_bell(u_int pitch, u_int period, u_int volume, int poll) in pckbd_bell() argument 1225 (*pckbd_bell_fn)(pckbd_bell_fn_arg, pitch, period, in pckbd_bell() 1291 pckbd_cnbell(void *v, u_int pitch, u_int period, u_int volume) in pckbd_cnbell() argument 1294 pckbd_bell(pitch, period, volume, 1); in pckbd_cnbell()
|
| /openbsd/src/sys/dev/pci/ |
| D | emuxki.c | 1089 chan->pitch.initial = 0x0000; /* shouldn't it be 0xE000 ? */ in emuxki_chanparms_set_defaults() 1090 chan->pitch.current = 0x0000; /* should it be 0x0400 */ in emuxki_chanparms_set_defaults() 1091 chan->pitch.target = 0x0000; /* the unity pitch shift ? */ in emuxki_chanparms_set_defaults() 1092 chan->pitch.envelope_amount = 0x00; /* none */ in emuxki_chanparms_set_defaults() 1184 chan->pitch.target = (srate << 8) / 375; in emuxki_channel_set_srate() 1185 chan->pitch.target = (chan->pitch.target >> 1) + in emuxki_channel_set_srate() 1186 (chan->pitch.target & 1); in emuxki_channel_set_srate() 1187 chan->pitch.target &= 0xffff; in emuxki_channel_set_srate() 1188 chan->pitch.current = chan->pitch.target; in emuxki_channel_set_srate() 1189 chan->pitch.initial = in emuxki_channel_set_srate() [all …]
|
| /openbsd/src/sys/dev/pci/drm/i915/gem/selftests/ |
| D | i915_gem_mman.c | 369 unsigned int pitch; in igt_partial_tiling() local 397 for (pitch = max_pitch; pitch; pitch >>= 1) { in igt_partial_tiling() 398 tile.stride = tile.width * pitch; in igt_partial_tiling() 405 if (pitch > 2 && GRAPHICS_VER(i915) >= 4) { in igt_partial_tiling() 406 tile.stride = tile.width * (pitch - 1); in igt_partial_tiling() 414 if (pitch < max_pitch && GRAPHICS_VER(i915) >= 4) { in igt_partial_tiling() 415 tile.stride = tile.width * (pitch + 1); in igt_partial_tiling() 425 for_each_prime_number(pitch, max_pitch) { in igt_partial_tiling() 426 tile.stride = tile.width * pitch; in igt_partial_tiling()
|
| /openbsd/src/sys/dev/i2c/ |
| D | ikbd.c | 233 ikbd_cnbell(void *v, u_int pitch, u_int period, u_int volume) in ikbd_cnbell() argument 235 hidkbd_bell(pitch, period, volume, 1); in ikbd_cnbell()
|
| /openbsd/src/sys/dev/pci/drm/include/drm/ |
| D | drm_panic.h | 55 unsigned int pitch[DRM_FORMAT_MAX_PLANES]; member
|
| /openbsd/src/sys/dev/pci/drm/amd/display/dc/inc/hw/ |
| D | cursor_reg_cache.h | 15 uint32_t pitch: 2; member
|