oss 73 arch/m68k/include/asm/mac_oss.h extern volatile struct mac_oss *oss; oss 336 arch/m68k/mac/misc.c oss->rom_ctrl = OSS_POWEROFF; oss 31 arch/m68k/mac/oss.c volatile struct mac_oss *oss; oss 44 arch/m68k/mac/oss.c oss = (struct mac_oss *) OSS_BASE; oss 45 arch/m68k/mac/oss.c pr_debug("OSS detected at %p", oss); oss 52 arch/m68k/mac/oss.c oss->irq_level[i] = 0; oss 75 arch/m68k/mac/oss.c events = oss->irq_pending & OSS_IP_NUBUS; oss 117 arch/m68k/mac/oss.c oss->irq_level[OSS_VIA1] = OSS_IRQLEV_VIA1; oss 132 arch/m68k/mac/oss.c oss->irq_level[OSS_IOPSCC] = OSS_IRQLEV_IOPSCC; oss 135 arch/m68k/mac/oss.c oss->irq_level[OSS_IOPISM] = OSS_IRQLEV_IOPISM; oss 138 arch/m68k/mac/oss.c oss->irq_level[OSS_SCSI] = OSS_IRQLEV_SCSI; oss 147 arch/m68k/mac/oss.c oss->irq_level[irq] = OSS_IRQLEV_NUBUS; oss 165 arch/m68k/mac/oss.c oss->irq_level[OSS_IOPSCC] = 0; oss 168 arch/m68k/mac/oss.c oss->irq_level[OSS_IOPISM] = 0; oss 171 arch/m68k/mac/oss.c oss->irq_level[OSS_SCSI] = 0; oss 180 arch/m68k/mac/oss.c oss->irq_level[irq] = 0; oss 846 drivers/iio/pressure/bmp280-core.c u8 oss = data->oversampling_press; oss 848 drivers/iio/pressure/bmp280-core.c ret = bmp180_measure(data, BMP180_MEAS_PRESS_X(oss)); oss 856 drivers/iio/pressure/bmp280-core.c *val = (be32_to_cpu(tmp) >> 8) >> (8 - oss); oss 871 drivers/iio/pressure/bmp280-core.c s32 oss = data->oversampling_press; oss 878 drivers/iio/pressure/bmp280-core.c b3 = ((((s32)calib->AC1 * 4 + x3) << oss) + 2) / 4; oss 883 drivers/iio/pressure/bmp280-core.c b7 = ((u32)adc_press - b3) * (50000 >> oss); oss 84 drivers/iio/pressure/bmp280.h #define BMP180_MEAS_PRESS_X(oss) ((oss) << 6 | 0x14 | BMP180_MEAS_SCO) oss 425 include/sound/pcm.h struct snd_pcm_oss_runtime oss; oss 471 include/sound/pcm.h struct snd_pcm_oss_substream oss; oss 492 include/sound/pcm.h struct snd_pcm_oss_stream oss; oss 522 include/sound/pcm.h struct snd_pcm_oss oss; oss 58 include/sound/pcm_oss.h unsigned oss: 1; /* oss mode */ oss 55 include/sound/rawmidi.h oss: 1; /* OSS compatible mode */ oss 4004 kernel/signal.c do_sigaltstack (const stack_t *ss, stack_t *oss, unsigned long sp, oss 4009 kernel/signal.c if (oss) { oss 4010 kernel/signal.c memset(oss, 0, sizeof(stack_t)); oss 4011 kernel/signal.c oss->ss_sp = (void __user *) t->sas_ss_sp; oss 4012 kernel/signal.c oss->ss_size = t->sas_ss_size; oss 4013 kernel/signal.c oss->ss_flags = sas_ss_flags(sp) | oss 544 sound/core/oss/pcm_oss.c plugin = runtime->oss.plugin_first; oss 550 sound/core/oss/pcm_oss.c runtime->oss.plugin_first = runtime->oss.plugin_last = NULL; oss 557 sound/core/oss/pcm_oss.c plugin->next = runtime->oss.plugin_first; oss 559 sound/core/oss/pcm_oss.c if (runtime->oss.plugin_first) { oss 560 sound/core/oss/pcm_oss.c runtime->oss.plugin_first->prev = plugin; oss 561 sound/core/oss/pcm_oss.c runtime->oss.plugin_first = plugin; oss 563 sound/core/oss/pcm_oss.c runtime->oss.plugin_last = oss 564 sound/core/oss/pcm_oss.c runtime->oss.plugin_first = plugin; oss 573 sound/core/oss/pcm_oss.c plugin->prev = runtime->oss.plugin_last; oss 574 sound/core/oss/pcm_oss.c if (runtime->oss.plugin_last) { oss 575 sound/core/oss/pcm_oss.c runtime->oss.plugin_last->next = plugin; oss 576 sound/core/oss/pcm_oss.c runtime->oss.plugin_last = plugin; oss 578 sound/core/oss/pcm_oss.c runtime->oss.plugin_last = oss 579 sound/core/oss/pcm_oss.c runtime->oss.plugin_first = plugin; oss 590 sound/core/oss/pcm_oss.c if (buffer_size == runtime->oss.buffer_bytes) oss 593 sound/core/oss/pcm_oss.c return runtime->oss.buffer_bytes * bytes / buffer_size; oss 596 sound/core/oss/pcm_oss.c u64 bsize = (u64)runtime->oss.buffer_bytes * (u64)bytes; oss 606 sound/core/oss/pcm_oss.c if (buffer_size == runtime->oss.buffer_bytes) oss 608 sound/core/oss/pcm_oss.c return bytes_to_frames(runtime, (buffer_size * bytes) / runtime->oss.buffer_bytes); oss 698 sound/core/oss/pcm_oss.c if (oss_buffer_size > runtime->oss.mmap_bytes) oss 699 sound/core/oss/pcm_oss.c oss_buffer_size = runtime->oss.mmap_bytes; oss 702 sound/core/oss/pcm_oss.c if (substream->oss.setup.period_size > 16) oss 703 sound/core/oss/pcm_oss.c oss_period_size = substream->oss.setup.period_size; oss 704 sound/core/oss/pcm_oss.c else if (runtime->oss.fragshift) { oss 705 sound/core/oss/pcm_oss.c oss_period_size = 1 << runtime->oss.fragshift; oss 716 sound/core/oss/pcm_oss.c if (runtime->oss.subdivision == 0) { oss 723 sound/core/oss/pcm_oss.c sd = runtime->oss.subdivision; oss 745 sound/core/oss/pcm_oss.c if (substream->oss.setup.periods > 1) oss 746 sound/core/oss/pcm_oss.c oss_periods = substream->oss.setup.periods; oss 749 sound/core/oss/pcm_oss.c if (runtime->oss.maxfrags && s > runtime->oss.maxfrags) oss 750 sound/core/oss/pcm_oss.c s = runtime->oss.maxfrags; oss 765 sound/core/oss/pcm_oss.c runtime->oss.period_bytes = oss_period_size; oss 766 sound/core/oss/pcm_oss.c runtime->oss.period_frames = 1; oss 767 sound/core/oss/pcm_oss.c runtime->oss.periods = oss_periods; oss 814 sound/core/oss/pcm_oss.c if (mutex_lock_interruptible(&runtime->oss.params_lock)) oss 816 sound/core/oss/pcm_oss.c if (atomic_read(&runtime->oss.rw_ref)) { oss 817 sound/core/oss/pcm_oss.c mutex_unlock(&runtime->oss.params_lock); oss 825 sound/core/oss/pcm_oss.c mutex_unlock(&runtime->oss.params_lock); oss 843 sound/core/oss/pcm_oss.c if (!runtime->oss.params) oss 856 sound/core/oss/pcm_oss.c direct = substream->oss.setup.direct; oss 875 sound/core/oss/pcm_oss.c choose_rate(substream, sparams, runtime->oss.rate); oss 876 sound/core/oss/pcm_oss.c snd_pcm_hw_param_near(substream, sparams, SNDRV_PCM_HW_PARAM_CHANNELS, runtime->oss.channels, NULL); oss 878 sound/core/oss/pcm_oss.c format = snd_pcm_oss_format_from(runtime->oss.format); oss 912 sound/core/oss/pcm_oss.c (__force int)snd_pcm_oss_format_from(runtime->oss.format), 0); oss 914 sound/core/oss/pcm_oss.c runtime->oss.channels, 0); oss 916 sound/core/oss/pcm_oss.c runtime->oss.rate, 0); oss 932 sound/core/oss/pcm_oss.c n = snd_pcm_plug_slave_size(substream, runtime->oss.period_bytes / oss_frame_size); oss 938 sound/core/oss/pcm_oss.c runtime->oss.periods, NULL); oss 963 sound/core/oss/pcm_oss.c if (runtime->oss.plugin_first) { oss 984 sound/core/oss/pcm_oss.c if (runtime->oss.trigger) { oss 999 sound/core/oss/pcm_oss.c substream->oss.setup.nosilence) { oss 1016 sound/core/oss/pcm_oss.c runtime->oss.periods = params_periods(sparams); oss 1023 sound/core/oss/pcm_oss.c if (runtime->oss.plugin_first) { oss 1031 sound/core/oss/pcm_oss.c oss_buffer_size = oss_period_size * runtime->oss.periods; oss 1037 sound/core/oss/pcm_oss.c runtime->oss.period_bytes = oss_period_size; oss 1038 sound/core/oss/pcm_oss.c runtime->oss.buffer_bytes = oss_buffer_size; oss 1041 sound/core/oss/pcm_oss.c runtime->oss.period_bytes, oss 1042 sound/core/oss/pcm_oss.c runtime->oss.buffer_bytes); oss 1047 sound/core/oss/pcm_oss.c runtime->oss.format = snd_pcm_oss_format_to(params_format(params)); oss 1048 sound/core/oss/pcm_oss.c runtime->oss.channels = params_channels(params); oss 1049 sound/core/oss/pcm_oss.c runtime->oss.rate = params_rate(params); oss 1051 sound/core/oss/pcm_oss.c kvfree(runtime->oss.buffer); oss 1052 sound/core/oss/pcm_oss.c runtime->oss.buffer = kvzalloc(runtime->oss.period_bytes, GFP_KERNEL); oss 1053 sound/core/oss/pcm_oss.c if (!runtime->oss.buffer) { oss 1058 sound/core/oss/pcm_oss.c runtime->oss.params = 0; oss 1059 sound/core/oss/pcm_oss.c runtime->oss.prepare = 1; oss 1060 sound/core/oss/pcm_oss.c runtime->oss.buffer_used = 0; oss 1064 sound/core/oss/pcm_oss.c runtime->oss.period_frames = snd_pcm_alsa_frames(substream, oss_period_size); oss 1082 sound/core/oss/pcm_oss.c if (!(mutex_trylock(&runtime->oss.params_lock))) oss 1084 sound/core/oss/pcm_oss.c } else if (mutex_lock_interruptible(&runtime->oss.params_lock)) oss 1088 sound/core/oss/pcm_oss.c mutex_unlock(&runtime->oss.params_lock); oss 1103 sound/core/oss/pcm_oss.c if (substream->runtime->oss.params) { oss 1131 sound/core/oss/pcm_oss.c runtime->oss.prepare = 0; oss 1132 sound/core/oss/pcm_oss.c runtime->oss.prev_hw_ptr_period = 0; oss 1133 sound/core/oss/pcm_oss.c runtime->oss.period_ptr = 0; oss 1134 sound/core/oss/pcm_oss.c runtime->oss.buffer_used = 0; oss 1145 sound/core/oss/pcm_oss.c if (runtime->oss.params) { oss 1150 sound/core/oss/pcm_oss.c if (runtime->oss.prepare) { oss 1151 sound/core/oss/pcm_oss.c if (mutex_lock_interruptible(&runtime->oss.params_lock)) oss 1154 sound/core/oss/pcm_oss.c mutex_unlock(&runtime->oss.params_lock); oss 1168 sound/core/oss/pcm_oss.c if (runtime->oss.params) { oss 1173 sound/core/oss/pcm_oss.c if (runtime->oss.prepare) { oss 1340 sound/core/oss/pcm_oss.c if (runtime->oss.plugin_first) { oss 1342 sound/core/oss/pcm_oss.c size_t oss_frame_bytes = (runtime->oss.plugin_first->src_width * runtime->oss.plugin_first->src_format.channels) / 8; oss 1344 sound/core/oss/pcm_oss.c if (copy_from_user(runtime->oss.buffer, (const char __force __user *)buf, bytes)) oss 1346 sound/core/oss/pcm_oss.c buf = runtime->oss.buffer; oss 1377 sound/core/oss/pcm_oss.c atomic_inc(&runtime->oss.rw_ref); oss 1379 sound/core/oss/pcm_oss.c if (mutex_lock_interruptible(&runtime->oss.params_lock)) { oss 1386 sound/core/oss/pcm_oss.c if (bytes < runtime->oss.period_bytes || runtime->oss.buffer_used > 0) { oss 1388 sound/core/oss/pcm_oss.c if (tmp + runtime->oss.buffer_used > runtime->oss.period_bytes) oss 1389 sound/core/oss/pcm_oss.c tmp = runtime->oss.period_bytes - runtime->oss.buffer_used; oss 1391 sound/core/oss/pcm_oss.c if (copy_from_user(runtime->oss.buffer + runtime->oss.buffer_used, buf, tmp)) { oss 1396 sound/core/oss/pcm_oss.c runtime->oss.buffer_used += tmp; oss 1400 sound/core/oss/pcm_oss.c if (substream->oss.setup.partialfrag || oss 1401 sound/core/oss/pcm_oss.c runtime->oss.buffer_used == runtime->oss.period_bytes) { oss 1402 sound/core/oss/pcm_oss.c tmp = snd_pcm_oss_write2(substream, runtime->oss.buffer + runtime->oss.period_ptr, oss 1403 sound/core/oss/pcm_oss.c runtime->oss.buffer_used - runtime->oss.period_ptr, 1); oss 1406 sound/core/oss/pcm_oss.c runtime->oss.bytes += tmp; oss 1407 sound/core/oss/pcm_oss.c runtime->oss.period_ptr += tmp; oss 1408 sound/core/oss/pcm_oss.c runtime->oss.period_ptr %= runtime->oss.period_bytes; oss 1409 sound/core/oss/pcm_oss.c if (runtime->oss.period_ptr == 0 || oss 1410 sound/core/oss/pcm_oss.c runtime->oss.period_ptr == runtime->oss.buffer_used) oss 1411 sound/core/oss/pcm_oss.c runtime->oss.buffer_used = 0; oss 1420 sound/core/oss/pcm_oss.c runtime->oss.period_bytes, 0); oss 1423 sound/core/oss/pcm_oss.c runtime->oss.bytes += tmp; oss 1428 sound/core/oss/pcm_oss.c tmp != runtime->oss.period_bytes) oss 1432 sound/core/oss/pcm_oss.c mutex_unlock(&runtime->oss.params_lock); oss 1441 sound/core/oss/pcm_oss.c atomic_dec(&runtime->oss.rw_ref); oss 1451 sound/core/oss/pcm_oss.c if (runtime->oss.plugin_first) { oss 1453 sound/core/oss/pcm_oss.c size_t oss_frame_bytes = (runtime->oss.plugin_last->dst_width * runtime->oss.plugin_last->dst_format.channels) / 8; oss 1455 sound/core/oss/pcm_oss.c buf = runtime->oss.buffer; oss 1487 sound/core/oss/pcm_oss.c atomic_inc(&runtime->oss.rw_ref); oss 1489 sound/core/oss/pcm_oss.c if (mutex_lock_interruptible(&runtime->oss.params_lock)) { oss 1496 sound/core/oss/pcm_oss.c if (bytes < runtime->oss.period_bytes || runtime->oss.buffer_used > 0) { oss 1497 sound/core/oss/pcm_oss.c if (runtime->oss.buffer_used == 0) { oss 1498 sound/core/oss/pcm_oss.c tmp = snd_pcm_oss_read2(substream, runtime->oss.buffer, runtime->oss.period_bytes, 1); oss 1501 sound/core/oss/pcm_oss.c runtime->oss.bytes += tmp; oss 1502 sound/core/oss/pcm_oss.c runtime->oss.period_ptr = tmp; oss 1503 sound/core/oss/pcm_oss.c runtime->oss.buffer_used = tmp; oss 1506 sound/core/oss/pcm_oss.c if ((size_t) tmp > runtime->oss.buffer_used) oss 1507 sound/core/oss/pcm_oss.c tmp = runtime->oss.buffer_used; oss 1508 sound/core/oss/pcm_oss.c if (copy_to_user(buf, runtime->oss.buffer + (runtime->oss.period_ptr - runtime->oss.buffer_used), tmp)) { oss 1515 sound/core/oss/pcm_oss.c runtime->oss.buffer_used -= tmp; oss 1518 sound/core/oss/pcm_oss.c runtime->oss.period_bytes, 0); oss 1521 sound/core/oss/pcm_oss.c runtime->oss.bytes += tmp; oss 1527 sound/core/oss/pcm_oss.c mutex_unlock(&runtime->oss.params_lock); oss 1536 sound/core/oss/pcm_oss.c atomic_dec(&runtime->oss.rw_ref); oss 1552 sound/core/oss/pcm_oss.c mutex_lock(&runtime->oss.params_lock); oss 1553 sound/core/oss/pcm_oss.c runtime->oss.prepare = 1; oss 1554 sound/core/oss/pcm_oss.c runtime->oss.buffer_used = 0; oss 1555 sound/core/oss/pcm_oss.c runtime->oss.prev_hw_ptr_period = 0; oss 1556 sound/core/oss/pcm_oss.c runtime->oss.period_ptr = 0; oss 1557 sound/core/oss/pcm_oss.c mutex_unlock(&runtime->oss.params_lock); oss 1593 sound/core/oss/pcm_oss.c result = snd_pcm_oss_write2(substream, runtime->oss.buffer, size, 1); oss 1595 sound/core/oss/pcm_oss.c runtime->oss.buffer_used = 0; oss 1643 sound/core/oss/pcm_oss.c atomic_inc(&runtime->oss.rw_ref); oss 1644 sound/core/oss/pcm_oss.c if (mutex_lock_interruptible(&runtime->oss.params_lock)) { oss 1645 sound/core/oss/pcm_oss.c atomic_dec(&runtime->oss.rw_ref); oss 1648 sound/core/oss/pcm_oss.c format = snd_pcm_oss_format_from(runtime->oss.format); oss 1650 sound/core/oss/pcm_oss.c if (runtime->oss.buffer_used > 0) { oss 1654 sound/core/oss/pcm_oss.c size = (8 * (runtime->oss.period_bytes - runtime->oss.buffer_used) + 7) / width; oss 1656 sound/core/oss/pcm_oss.c runtime->oss.buffer + runtime->oss.buffer_used, oss 1658 sound/core/oss/pcm_oss.c err = snd_pcm_oss_sync1(substream, runtime->oss.period_bytes); oss 1661 sound/core/oss/pcm_oss.c } else if (runtime->oss.period_ptr > 0) { oss 1665 sound/core/oss/pcm_oss.c size = runtime->oss.period_bytes - runtime->oss.period_ptr; oss 1667 sound/core/oss/pcm_oss.c runtime->oss.buffer, oss 1686 sound/core/oss/pcm_oss.c mutex_unlock(&runtime->oss.params_lock); oss 1687 sound/core/oss/pcm_oss.c atomic_dec(&runtime->oss.rw_ref); oss 1700 sound/core/oss/pcm_oss.c mutex_lock(&runtime->oss.params_lock); oss 1701 sound/core/oss/pcm_oss.c runtime->oss.prepare = 1; oss 1702 sound/core/oss/pcm_oss.c mutex_unlock(&runtime->oss.params_lock); oss 1713 sound/core/oss/pcm_oss.c mutex_lock(&runtime->oss.params_lock); oss 1714 sound/core/oss/pcm_oss.c runtime->oss.buffer_used = 0; oss 1715 sound/core/oss/pcm_oss.c runtime->oss.prepare = 1; oss 1716 sound/core/oss/pcm_oss.c mutex_unlock(&runtime->oss.params_lock); oss 1740 sound/core/oss/pcm_oss.c if (runtime->oss.rate != rate) { oss 1741 sound/core/oss/pcm_oss.c runtime->oss.params = 1; oss 1742 sound/core/oss/pcm_oss.c runtime->oss.rate = rate; oss 1756 sound/core/oss/pcm_oss.c return substream->runtime->oss.rate; oss 1777 sound/core/oss/pcm_oss.c if (runtime->oss.channels != channels) { oss 1778 sound/core/oss/pcm_oss.c runtime->oss.params = 1; oss 1779 sound/core/oss/pcm_oss.c runtime->oss.channels = channels; oss 1793 sound/core/oss/pcm_oss.c return substream->runtime->oss.channels; oss 1803 sound/core/oss/pcm_oss.c return substream->runtime->oss.period_bytes; oss 1821 sound/core/oss/pcm_oss.c direct = substream->oss.setup.direct; oss 1871 sound/core/oss/pcm_oss.c if (runtime->oss.format != format) { oss 1872 sound/core/oss/pcm_oss.c runtime->oss.params = 1; oss 1873 sound/core/oss/pcm_oss.c runtime->oss.format = format; oss 1888 sound/core/oss/pcm_oss.c return substream->runtime->oss.format; oss 1897 sound/core/oss/pcm_oss.c subdivide = runtime->oss.subdivision; oss 1902 sound/core/oss/pcm_oss.c if (runtime->oss.subdivision || runtime->oss.fragshift) oss 1907 sound/core/oss/pcm_oss.c runtime->oss.subdivision = subdivide; oss 1908 sound/core/oss/pcm_oss.c runtime->oss.params = 1; oss 1939 sound/core/oss/pcm_oss.c if (runtime->oss.subdivision || runtime->oss.fragshift) oss 1941 sound/core/oss/pcm_oss.c runtime->oss.fragshift = val & 0xffff; oss 1942 sound/core/oss/pcm_oss.c runtime->oss.maxfrags = (val >> 16) & 0xffff; oss 1943 sound/core/oss/pcm_oss.c if (runtime->oss.fragshift < 4) /* < 16 */ oss 1944 sound/core/oss/pcm_oss.c runtime->oss.fragshift = 4; oss 1945 sound/core/oss/pcm_oss.c if (runtime->oss.maxfrags < 2) oss 1946 sound/core/oss/pcm_oss.c runtime->oss.maxfrags = 2; oss 1947 sound/core/oss/pcm_oss.c runtime->oss.params = 1; oss 2052 sound/core/oss/pcm_oss.c if (mutex_lock_interruptible(&runtime->oss.params_lock)) oss 2055 sound/core/oss/pcm_oss.c if (runtime->oss.trigger) oss 2060 sound/core/oss/pcm_oss.c runtime->oss.trigger = 1; oss 2064 sound/core/oss/pcm_oss.c if (!runtime->oss.trigger) oss 2066 sound/core/oss/pcm_oss.c runtime->oss.trigger = 0; oss 2069 sound/core/oss/pcm_oss.c runtime->oss.prepare = 1; oss 2072 sound/core/oss/pcm_oss.c mutex_unlock(&runtime->oss.params_lock); oss 2082 sound/core/oss/pcm_oss.c if (mutex_lock_interruptible(&runtime->oss.params_lock)) oss 2085 sound/core/oss/pcm_oss.c if (runtime->oss.trigger) oss 2087 sound/core/oss/pcm_oss.c runtime->oss.trigger = 1; oss 2091 sound/core/oss/pcm_oss.c if (!runtime->oss.trigger) oss 2093 sound/core/oss/pcm_oss.c runtime->oss.trigger = 0; oss 2096 sound/core/oss/pcm_oss.c runtime->oss.prepare = 1; oss 2099 sound/core/oss/pcm_oss.c mutex_unlock(&runtime->oss.params_lock); oss 2116 sound/core/oss/pcm_oss.c if (psubstream && psubstream->runtime && psubstream->runtime->oss.trigger) oss 2118 sound/core/oss/pcm_oss.c if (csubstream && csubstream->runtime && csubstream->runtime->oss.trigger) oss 2136 sound/core/oss/pcm_oss.c if (runtime->oss.params || runtime->oss.prepare) oss 2163 sound/core/oss/pcm_oss.c if (runtime->oss.params || runtime->oss.prepare) { oss 2176 sound/core/oss/pcm_oss.c fixup = runtime->oss.buffer_used; oss 2180 sound/core/oss/pcm_oss.c fixup = -runtime->oss.buffer_used; oss 2188 sound/core/oss/pcm_oss.c n = delay - runtime->oss.prev_hw_ptr_period; oss 2192 sound/core/oss/pcm_oss.c runtime->oss.prev_hw_ptr_period = delay; oss 2199 sound/core/oss/pcm_oss.c if (substream->oss.setup.buggyptr) oss 2200 sound/core/oss/pcm_oss.c info.blocks = (runtime->oss.buffer_bytes - delay - fixup) / runtime->oss.period_bytes; oss 2202 sound/core/oss/pcm_oss.c info.blocks = (delay + fixup) / runtime->oss.period_bytes; oss 2203 sound/core/oss/pcm_oss.c info.bytes = (runtime->oss.bytes - delay) & INT_MAX; oss 2206 sound/core/oss/pcm_oss.c info.blocks = delay / runtime->oss.period_bytes; oss 2207 sound/core/oss/pcm_oss.c info.bytes = (runtime->oss.bytes + delay) & INT_MAX; oss 2231 sound/core/oss/pcm_oss.c if (runtime->oss.params && oss 2235 sound/core/oss/pcm_oss.c info.fragsize = runtime->oss.period_bytes; oss 2237 sound/core/oss/pcm_oss.c if (runtime->oss.prepare) { oss 2239 sound/core/oss/pcm_oss.c info.bytes = runtime->oss.period_bytes * runtime->oss.periods; oss 2240 sound/core/oss/pcm_oss.c info.fragments = runtime->oss.periods; oss 2254 sound/core/oss/pcm_oss.c fixup = -runtime->oss.buffer_used; oss 2258 sound/core/oss/pcm_oss.c fixup = runtime->oss.buffer_used; oss 2263 sound/core/oss/pcm_oss.c info.fragments = info.bytes / runtime->oss.period_bytes; oss 2299 sound/core/oss/pcm_oss.c mutex_lock(&pcm->streams[stream].oss.setup_mutex); oss 2301 sound/core/oss/pcm_oss.c for (setup = pcm->streams[stream].oss.setup_list; setup; oss 2310 sound/core/oss/pcm_oss.c mutex_unlock(&pcm->streams[stream].oss.setup_mutex); oss 2317 sound/core/oss/pcm_oss.c kvfree(runtime->oss.buffer); oss 2318 sound/core/oss/pcm_oss.c runtime->oss.buffer = NULL; oss 2322 sound/core/oss/pcm_oss.c substream->oss.oss = 0; oss 2331 sound/core/oss/pcm_oss.c substream->oss.oss = 1; oss 2332 sound/core/oss/pcm_oss.c substream->oss.setup = *setup; oss 2338 sound/core/oss/pcm_oss.c runtime->oss.params = 1; oss 2339 sound/core/oss/pcm_oss.c runtime->oss.trigger = 1; oss 2340 sound/core/oss/pcm_oss.c runtime->oss.rate = 8000; oss 2341 sound/core/oss/pcm_oss.c mutex_init(&runtime->oss.params_lock); oss 2344 sound/core/oss/pcm_oss.c runtime->oss.format = AFMT_U8; oss 2347 sound/core/oss/pcm_oss.c runtime->oss.format = AFMT_S16_LE; oss 2350 sound/core/oss/pcm_oss.c runtime->oss.format = AFMT_MU_LAW; oss 2352 sound/core/oss/pcm_oss.c runtime->oss.channels = 1; oss 2353 sound/core/oss/pcm_oss.c runtime->oss.fragshift = 0; oss 2354 sound/core/oss/pcm_oss.c runtime->oss.maxfrags = 0; oss 2355 sound/core/oss/pcm_oss.c runtime->oss.subdivision = 0; oss 2357 sound/core/oss/pcm_oss.c atomic_set(&runtime->oss.rw_ref, 0); oss 2772 sound/core/oss/pcm_oss.c return runtime->oss.prev_hw_ptr_period != oss 2776 sound/core/oss/pcm_oss.c runtime->oss.period_frames; oss 2783 sound/core/oss/pcm_oss.c return runtime->oss.prev_hw_ptr_period != oss 2787 sound/core/oss/pcm_oss.c runtime->oss.period_frames; oss 2821 sound/core/oss/pcm_oss.c if (ostate != SNDRV_PCM_STATE_RUNNING && runtime->oss.trigger) { oss 2825 sound/core/oss/pcm_oss.c runtime->oss.trigger = 0; oss 2872 sound/core/oss/pcm_oss.c if (runtime->oss.params) { oss 2882 sound/core/oss/pcm_oss.c if (runtime->oss.plugin_first != NULL) oss 2892 sound/core/oss/pcm_oss.c runtime->oss.mmap_bytes = area->vm_end - area->vm_start; oss 2897 sound/core/oss/pcm_oss.c runtime->oss.mmap_bytes); oss 2914 sound/core/oss/pcm_oss.c struct snd_pcm_oss_setup *setup = pstr->oss.setup_list; oss 2915 sound/core/oss/pcm_oss.c mutex_lock(&pstr->oss.setup_mutex); oss 2929 sound/core/oss/pcm_oss.c mutex_unlock(&pstr->oss.setup_mutex); oss 2936 sound/core/oss/pcm_oss.c for (setup = pstr->oss.setup_list, pstr->oss.setup_list = NULL; oss 2942 sound/core/oss/pcm_oss.c pstr->oss.setup_list = NULL; oss 2955 sound/core/oss/pcm_oss.c mutex_lock(&pstr->oss.setup_mutex); oss 2960 sound/core/oss/pcm_oss.c mutex_unlock(&pstr->oss.setup_mutex); oss 2963 sound/core/oss/pcm_oss.c for (setup = pstr->oss.setup_list; setup; setup = setup->next) { oss 3000 sound/core/oss/pcm_oss.c mutex_unlock(&pstr->oss.setup_mutex); oss 3003 sound/core/oss/pcm_oss.c if (pstr->oss.setup_list == NULL) oss 3004 sound/core/oss/pcm_oss.c pstr->oss.setup_list = setup; oss 3006 sound/core/oss/pcm_oss.c for (setup1 = pstr->oss.setup_list; oss 3014 sound/core/oss/pcm_oss.c mutex_unlock(&pstr->oss.setup_mutex); oss 3019 sound/core/oss/pcm_oss.c mutex_unlock(&pstr->oss.setup_mutex); oss 3042 sound/core/oss/pcm_oss.c pstr->oss.proc_entry = entry; oss 3051 sound/core/oss/pcm_oss.c snd_info_free_entry(pstr->oss.proc_entry); oss 3052 sound/core/oss/pcm_oss.c pstr->oss.proc_entry = NULL; oss 3091 sound/core/oss/pcm_oss.c pcm->oss.reg = 0; oss 3105 sound/core/oss/pcm_oss.c pcm->oss.reg++; oss 3106 sound/core/oss/pcm_oss.c pcm->oss.reg_mask |= 1; oss 3110 sound/core/oss/pcm_oss.c pcm->oss.reg++; oss 3111 sound/core/oss/pcm_oss.c pcm->oss.reg_mask |= 2; oss 3114 sound/core/oss/pcm_oss.c if (pcm->oss.reg) oss 3122 sound/core/oss/pcm_oss.c if (pcm->oss.reg) { oss 3123 sound/core/oss/pcm_oss.c if (pcm->oss.reg_mask & 1) { oss 3124 sound/core/oss/pcm_oss.c pcm->oss.reg_mask &= ~1; oss 3128 sound/core/oss/pcm_oss.c if (pcm->oss.reg_mask & 2) { oss 3129 sound/core/oss/pcm_oss.c pcm->oss.reg_mask &= ~2; oss 3138 sound/core/oss/pcm_oss.c pcm->oss.reg = 0; oss 35 sound/core/oss/pcm_plugin.c #define snd_pcm_plug_first(plug) ((plug)->runtime->oss.plugin_first) oss 36 sound/core/oss/pcm_plugin.c #define snd_pcm_plug_last(plug) ((plug)->runtime->oss.plugin_last) oss 400 sound/core/pcm.c if (substream->oss.oss) { oss 401 sound/core/pcm.c snd_iprintf(buffer, "OSS format: %s\n", snd_pcm_oss_format_name(runtime->oss.format)); oss 402 sound/core/pcm.c snd_iprintf(buffer, "OSS channels: %u\n", runtime->oss.channels); oss 403 sound/core/pcm.c snd_iprintf(buffer, "OSS rate: %u\n", runtime->oss.rate); oss 404 sound/core/pcm.c snd_iprintf(buffer, "OSS period bytes: %lu\n", (unsigned long)runtime->oss.period_bytes); oss 405 sound/core/pcm.c snd_iprintf(buffer, "OSS periods: %u\n", runtime->oss.periods); oss 406 sound/core/pcm.c snd_iprintf(buffer, "OSS period frames: %lu\n", (unsigned long)runtime->oss.period_frames); oss 643 sound/core/pcm.c mutex_init(&pstr->oss.setup_mutex); oss 836 sound/core/pcm.c for (setup = pstr->oss.setup_list; setup; setup = setupn) { oss 656 sound/core/pcm_native.c if (!substream->oss.oss) oss 451 sound/core/rawmidi.c rawmidi_file->input->runtime->oss = (maj == SOUND_MAJOR); oss 453 sound/core/rawmidi.c rawmidi_file->output->runtime->oss = (maj == SOUND_MAJOR); oss 1477 sound/core/rawmidi.c runtime->oss ? "OSS compatible" : "native",