runtime 55 arch/arm/include/asm/efi.h #define efi_call_runtime(f, ...) sys_table_arg->runtime->f(__VA_ARGS__) runtime 98 arch/arm64/include/asm/efi.h #define efi_call_runtime(f, ...) sys_table_arg->runtime->f(__VA_ARGS__) runtime 60 arch/ia64/kernel/efi.c static efi_runtime_services_t *runtime; runtime 76 arch/ia64/kernel/efi.c ret = efi_call_##prefix((efi_get_time_t *) __va(runtime->get_time), \ runtime 90 arch/ia64/kernel/efi.c ret = efi_call_##prefix((efi_set_time_t *) __va(runtime->set_time), \ runtime 106 arch/ia64/kernel/efi.c (efi_get_wakeup_time_t *) __va(runtime->get_wakeup_time), \ runtime 124 arch/ia64/kernel/efi.c (efi_set_wakeup_time_t *) __va(runtime->set_wakeup_time), \ runtime 143 arch/ia64/kernel/efi.c (efi_get_variable_t *) __va(runtime->get_variable), \ runtime 160 arch/ia64/kernel/efi.c (efi_get_next_variable_t *) __va(runtime->get_next_variable), \ runtime 177 arch/ia64/kernel/efi.c (efi_set_variable_t *) __va(runtime->set_variable), \ runtime 193 arch/ia64/kernel/efi.c __va(runtime->get_next_high_mono_count), \ runtime 212 arch/ia64/kernel/efi.c (efi_reset_system_t *) __va(runtime->reset_system), \ runtime 546 arch/ia64/kernel/efi.c runtime = __va(efi.systab->runtime); runtime 657 arch/ia64/kernel/efi.c status = efi_call_phys(__va(runtime->set_virtual_address_map), runtime 37 arch/x86/boot/compressed/eboot.c c->runtime_services = table->runtime; \ runtime 147 arch/x86/include/asm/efi.h u64 runtime; runtime 55 arch/x86/include/asm/hypervisor.h struct x86_hyper_runtime runtime; runtime 105 arch/x86/kernel/cpu/hypervisor.c copy_array(&h->runtime, &x86_platform.hyper, sizeof(h->runtime)); runtime 145 arch/x86/kernel/kexec-bzimage64.c esd->runtime = efi.runtime; runtime 80 arch/x86/platform/efi/efi.c &efi.runtime, runtime 359 arch/x86/platform/efi/efi.c efi_systab.runtime = data ? runtime 360 arch/x86/platform/efi/efi.c (void *)(unsigned long)data->runtime : runtime 361 arch/x86/platform/efi/efi.c (void *)(unsigned long)systab64->runtime; runtime 362 arch/x86/platform/efi/efi.c tmp |= data ? data->runtime : systab64->runtime; runtime 398 arch/x86/platform/efi/efi.c efi_systab.runtime = (void *)(unsigned long)systab32->runtime; runtime 425 arch/x86/platform/efi/efi.c efi_runtime_services_32_t *runtime; runtime 427 arch/x86/platform/efi/efi.c runtime = early_memremap((unsigned long)efi.systab->runtime, runtime 429 arch/x86/platform/efi/efi.c if (!runtime) { runtime 441 arch/x86/platform/efi/efi.c (unsigned long)runtime->set_virtual_address_map; runtime 442 arch/x86/platform/efi/efi.c early_memunmap(runtime, sizeof(efi_runtime_services_32_t)); runtime 449 arch/x86/platform/efi/efi.c efi_runtime_services_64_t *runtime; runtime 451 arch/x86/platform/efi/efi.c runtime = early_memremap((unsigned long)efi.systab->runtime, runtime 453 arch/x86/platform/efi/efi.c if (!runtime) { runtime 465 arch/x86/platform/efi/efi.c (unsigned long)runtime->set_virtual_address_map; runtime 466 arch/x86/platform/efi/efi.c early_memunmap(runtime, sizeof(efi_runtime_services_64_t)); runtime 528 arch/x86/platform/efi/efi.c efi.runtime = (unsigned long)efi.systab->runtime; runtime 645 arch/x86/platform/efi/efi_64.c rt = (u32 *)(table + offsetof(efi_system_table_32_t, runtime)); \ runtime 37 arch/x86/xen/efi.c .runtime = (efi_runtime_services_t *)EFI_INVALID_TABLE_ADDR, runtime 283 arch/x86/xen/enlighten_hvm.c x86_hyper_xen_hvm.runtime.pin_vcpu = x86_op_int_noop; runtime 296 arch/x86/xen/enlighten_hvm.c .runtime.pin_vcpu = xen_pin_vcpu, runtime 1461 arch/x86/xen/enlighten_pv.c .runtime.pin_vcpu = xen_pin_vcpu, runtime 874 drivers/ata/libata-acpi.c static int ata_acpi_choose_suspend_state(struct ata_device *dev, bool runtime) runtime 877 drivers/ata/libata-acpi.c if (!runtime) runtime 894 drivers/ata/libata-acpi.c bool runtime = PMSG_IS_AUTO(state); runtime 905 drivers/ata/libata-acpi.c acpi_state = ata_acpi_choose_suspend_state(dev, runtime); runtime 908 drivers/ata/libata-acpi.c if (runtime && zpodd_dev_enabled(dev) && runtime 913 drivers/ata/libata-acpi.c if (runtime && zpodd_dev_enabled(dev)) runtime 466 drivers/dma/dmatest.c static unsigned long long dmatest_persec(s64 runtime, unsigned int val) runtime 470 drivers/dma/dmatest.c if (runtime <= 0) runtime 474 drivers/dma/dmatest.c while (runtime > UINT_MAX) { runtime 475 drivers/dma/dmatest.c runtime >>= 1; runtime 481 drivers/dma/dmatest.c do_div(per_sec, runtime); runtime 486 drivers/dma/dmatest.c static unsigned long long dmatest_KBs(s64 runtime, unsigned long long len) runtime 488 drivers/dma/dmatest.c return FIXPT_TO_INT(dmatest_persec(runtime, len >> 10)); runtime 575 drivers/dma/dmatest.c s64 runtime = 0; runtime 884 drivers/dma/dmatest.c runtime = ktime_to_us(ktime); runtime 897 drivers/dma/dmatest.c iops = dmatest_persec(runtime, total_tests); runtime 901 drivers/dma/dmatest.c dmatest_KBs(runtime, total_len), ret); runtime 47 drivers/firmware/efi/efi.c .runtime = EFI_INVALID_TABLE_ADDR, runtime 154 drivers/firmware/efi/efi.c EFI_ATTR_SHOW(runtime); runtime 164 drivers/firmware/efi/efi.c static struct kobj_attribute efi_attr_runtime = __ATTR_RO(runtime); runtime 186 drivers/firmware/efi/efi.c if (efi.runtime == EFI_INVALID_TABLE_ADDR) runtime 325 drivers/firmware/efi/libstub/fdt.c svam = sys_table->runtime->set_virtual_address_map; runtime 43 drivers/firmware/efi/runtime-wrappers.c efi_call_virt_pointer(efi.systab->runtime, f, args) runtime 45 drivers/firmware/efi/runtime-wrappers.c __efi_call_virt_pointer(efi.systab->runtime, f, args) runtime 2578 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c bool runtime = false; runtime 2738 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c runtime = true; runtime 2741 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c &amdgpu_switcheroo_ops, runtime); runtime 2742 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c if (runtime) runtime 2926 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c if (runtime) runtime 210 drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c struct snd_pcm_runtime *runtime) runtime 215 drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c snd_pcm_create_iec958_consumer(runtime, cs, sizeof(cs)); runtime 320 drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 325 drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c runtime->hw = dw_hdmi_hw; runtime 327 drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c ret = snd_pcm_hw_constraint_eld(runtime, dw->data.eld); runtime 331 drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c ret = snd_pcm_limit_hw_rates(runtime); runtime 335 drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c ret = snd_pcm_hw_constraint_integer(runtime, runtime 341 drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c ret = snd_pcm_hw_constraint_minmax(runtime, runtime 400 drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 409 drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c if (runtime->channels == 2) runtime 424 drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c dw_hdmi_set_sample_rate(dw->data.hdmi, runtime->rate); runtime 427 drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c runtime->hw.fifo_size = threshold * 32; runtime 430 drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c conf1 = default_hdmi_channel_config[runtime->channels - 2].conf1; runtime 431 drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c ca = default_hdmi_channel_config[runtime->channels - 2].ca; runtime 437 drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c dw_hdmi_set_channel_count(dw->data.hdmi, runtime->channels); runtime 440 drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c switch (runtime->format) { runtime 445 drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c dw_hdmi_create_cs(dw, runtime); runtime 450 drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c dw->channels = runtime->channels; runtime 451 drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c dw->buf_src = runtime->dma_area; runtime 474 drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c substream->runtime->delay = substream->runtime->period_size; runtime 495 drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 502 drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c return bytes_to_frames(runtime, dw->buf_offset); runtime 594 drivers/gpu/drm/i915/i915_gpu_error.c const struct intel_runtime_info *runtime, runtime 601 drivers/gpu/drm/i915/i915_gpu_error.c intel_device_info_dump_topology(&runtime->sseu, &p); runtime 862 drivers/gpu/drm/i915/intel_device_info.c struct intel_runtime_info *runtime = RUNTIME_INFO(dev_priv); runtime 867 drivers/gpu/drm/i915/intel_device_info.c runtime->num_scalers[pipe] = 2; runtime 869 drivers/gpu/drm/i915/intel_device_info.c runtime->num_scalers[PIPE_A] = 2; runtime 870 drivers/gpu/drm/i915/intel_device_info.c runtime->num_scalers[PIPE_B] = 2; runtime 871 drivers/gpu/drm/i915/intel_device_info.c runtime->num_scalers[PIPE_C] = 1; runtime 878 drivers/gpu/drm/i915/intel_device_info.c runtime->num_sprites[pipe] = 6; runtime 881 drivers/gpu/drm/i915/intel_device_info.c runtime->num_sprites[pipe] = 3; runtime 892 drivers/gpu/drm/i915/intel_device_info.c runtime->num_sprites[PIPE_A] = 2; runtime 893 drivers/gpu/drm/i915/intel_device_info.c runtime->num_sprites[PIPE_B] = 2; runtime 894 drivers/gpu/drm/i915/intel_device_info.c runtime->num_sprites[PIPE_C] = 1; runtime 897 drivers/gpu/drm/i915/intel_device_info.c runtime->num_sprites[pipe] = 2; runtime 900 drivers/gpu/drm/i915/intel_device_info.c runtime->num_sprites[pipe] = 1; runtime 977 drivers/gpu/drm/i915/intel_device_info.c runtime->cs_timestamp_frequency_khz = read_timestamp_frequency(dev_priv); runtime 75 drivers/gpu/drm/nouveau/dispnv04/disp.c nv04_display_init(struct drm_device *dev, bool resume, bool runtime) runtime 141 drivers/gpu/drm/nouveau/dispnv04/disp.c if (runtime) runtime 2274 drivers/gpu/drm/nouveau/dispnv50/disp.c nv50_display_init(struct drm_device *dev, bool resume, bool runtime) runtime 403 drivers/gpu/drm/nouveau/nouveau_display.c nouveau_display_init(struct drm_device *dev, bool resume, bool runtime) runtime 410 drivers/gpu/drm/nouveau/nouveau_display.c ret = disp->init(dev, resume, runtime); runtime 431 drivers/gpu/drm/nouveau/nouveau_display.c nouveau_display_fini(struct drm_device *dev, bool suspend, bool runtime) runtime 453 drivers/gpu/drm/nouveau/nouveau_display.c if (!runtime) runtime 607 drivers/gpu/drm/nouveau/nouveau_display.c nouveau_display_suspend(struct drm_device *dev, bool runtime) runtime 612 drivers/gpu/drm/nouveau/nouveau_display.c if (!runtime) { runtime 622 drivers/gpu/drm/nouveau/nouveau_display.c nouveau_display_fini(dev, true, runtime); runtime 627 drivers/gpu/drm/nouveau/nouveau_display.c nouveau_display_resume(struct drm_device *dev, bool runtime) runtime 631 drivers/gpu/drm/nouveau/nouveau_display.c nouveau_display_init(dev, true, runtime); runtime 35 drivers/gpu/drm/nouveau/nouveau_display.h int (*init)(struct drm_device *, bool resume, bool runtime); runtime 60 drivers/gpu/drm/nouveau/nouveau_display.h int nouveau_display_init(struct drm_device *dev, bool resume, bool runtime); runtime 61 drivers/gpu/drm/nouveau/nouveau_display.h void nouveau_display_fini(struct drm_device *dev, bool suspend, bool runtime); runtime 62 drivers/gpu/drm/nouveau/nouveau_display.h int nouveau_display_suspend(struct drm_device *dev, bool runtime); runtime 63 drivers/gpu/drm/nouveau/nouveau_display.h void nouveau_display_resume(struct drm_device *dev, bool runtime); runtime 807 drivers/gpu/drm/nouveau/nouveau_drm.c nouveau_do_suspend(struct drm_device *dev, bool runtime) runtime 820 drivers/gpu/drm/nouveau/nouveau_drm.c ret = nouveau_display_suspend(dev, runtime); runtime 863 drivers/gpu/drm/nouveau/nouveau_drm.c nouveau_display_resume(dev, runtime); runtime 869 drivers/gpu/drm/nouveau/nouveau_drm.c nouveau_do_resume(struct drm_device *dev, bool runtime) runtime 889 drivers/gpu/drm/nouveau/nouveau_drm.c nouveau_display_resume(dev, runtime); runtime 89 drivers/gpu/drm/nouveau/nouveau_vga.c bool runtime = nouveau_pmops_runtime(); runtime 101 drivers/gpu/drm/nouveau/nouveau_vga.c vga_switcheroo_register_client(dev->pdev, &nouveau_switcheroo_ops, runtime); runtime 103 drivers/gpu/drm/nouveau/nouveau_vga.c if (runtime && nouveau_is_v1_dsm() && !nouveau_is_optimus()) runtime 111 drivers/gpu/drm/nouveau/nouveau_vga.c bool runtime = nouveau_pmops_runtime(); runtime 123 drivers/gpu/drm/nouveau/nouveau_vga.c if (runtime && nouveau_is_v1_dsm() && !nouveau_is_optimus()) runtime 1294 drivers/gpu/drm/radeon/radeon_device.c bool runtime = false; runtime 1439 drivers/gpu/drm/radeon/radeon_device.c runtime = true; runtime 1442 drivers/gpu/drm/radeon/radeon_device.c &radeon_switcheroo_ops, runtime); runtime 1443 drivers/gpu/drm/radeon/radeon_device.c if (runtime) runtime 1515 drivers/gpu/drm/radeon/radeon_device.c if (runtime) runtime 789 drivers/gpu/drm/vc4/vc4_hdmi.c ret = snd_pcm_hw_constraint_eld(substream->runtime, runtime 2452 drivers/media/i2c/tda1997x.c struct snd_pcm_runtime *rtd = substream->runtime; runtime 103 drivers/media/pci/cobalt/cobalt-alsa-pcm.c struct snd_pcm_runtime *runtime; runtime 120 drivers/media/pci/cobalt/cobalt-alsa-pcm.c runtime = substream->runtime; runtime 121 drivers/media/pci/cobalt/cobalt-alsa-pcm.c if (runtime == NULL) { runtime 125 drivers/media/pci/cobalt/cobalt-alsa-pcm.c is_s32 = runtime->format == SNDRV_PCM_FORMAT_S32_LE; runtime 127 drivers/media/pci/cobalt/cobalt-alsa-pcm.c stride = runtime->frame_bits >> 3; runtime 138 drivers/media/pci/cobalt/cobalt-alsa-pcm.c if (runtime->dma_area == NULL) { runtime 144 drivers/media/pci/cobalt/cobalt-alsa-pcm.c if (oldptr + length >= runtime->buffer_size) { runtime 145 drivers/media/pci/cobalt/cobalt-alsa-pcm.c unsigned int cnt = runtime->buffer_size - oldptr; runtime 149 drivers/media/pci/cobalt/cobalt-alsa-pcm.c sample_cpy(runtime->dma_area + (oldptr + i) * stride, runtime 153 drivers/media/pci/cobalt/cobalt-alsa-pcm.c sample_cpy(runtime->dma_area + (i - cnt) * stride, runtime 159 drivers/media/pci/cobalt/cobalt-alsa-pcm.c sample_cpy(runtime->dma_area + (oldptr + i) * stride, runtime 167 drivers/media/pci/cobalt/cobalt-alsa-pcm.c runtime->buffer_size) runtime 169 drivers/media/pci/cobalt/cobalt-alsa-pcm.c runtime->buffer_size; runtime 173 drivers/media/pci/cobalt/cobalt-alsa-pcm.c runtime->period_size) { runtime 175 drivers/media/pci/cobalt/cobalt-alsa-pcm.c runtime->period_size; runtime 209 drivers/media/pci/cobalt/cobalt-alsa-pcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 213 drivers/media/pci/cobalt/cobalt-alsa-pcm.c runtime->hw = snd_cobalt_hdmi_capture; runtime 214 drivers/media/pci/cobalt/cobalt-alsa-pcm.c snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS); runtime 216 drivers/media/pci/cobalt/cobalt-alsa-pcm.c runtime->private_data = s; runtime 251 drivers/media/pci/cobalt/cobalt-alsa-pcm.c struct snd_pcm_runtime *runtime = subs->runtime; runtime 254 drivers/media/pci/cobalt/cobalt-alsa-pcm.c if (runtime->dma_area) { runtime 255 drivers/media/pci/cobalt/cobalt-alsa-pcm.c if (runtime->dma_bytes > size) runtime 258 drivers/media/pci/cobalt/cobalt-alsa-pcm.c vfree(runtime->dma_area); runtime 260 drivers/media/pci/cobalt/cobalt-alsa-pcm.c runtime->dma_area = vmalloc(size); runtime 261 drivers/media/pci/cobalt/cobalt-alsa-pcm.c if (!runtime->dma_area) runtime 264 drivers/media/pci/cobalt/cobalt-alsa-pcm.c runtime->dma_bytes = size; runtime 280 drivers/media/pci/cobalt/cobalt-alsa-pcm.c if (substream->runtime->dma_area) { runtime 282 drivers/media/pci/cobalt/cobalt-alsa-pcm.c vfree(substream->runtime->dma_area); runtime 283 drivers/media/pci/cobalt/cobalt-alsa-pcm.c substream->runtime->dma_area = NULL; runtime 351 drivers/media/pci/cobalt/cobalt-alsa-pcm.c struct snd_pcm_runtime *runtime; runtime 367 drivers/media/pci/cobalt/cobalt-alsa-pcm.c runtime = substream->runtime; runtime 368 drivers/media/pci/cobalt/cobalt-alsa-pcm.c if (runtime == NULL) { runtime 373 drivers/media/pci/cobalt/cobalt-alsa-pcm.c is_s32 = runtime->format == SNDRV_PCM_FORMAT_S32_LE; runtime 374 drivers/media/pci/cobalt/cobalt-alsa-pcm.c stride = runtime->frame_bits >> 3; runtime 385 drivers/media/pci/cobalt/cobalt-alsa-pcm.c if (runtime->dma_area == NULL) { runtime 393 drivers/media/pci/cobalt/cobalt-alsa-pcm.c runtime->dma_area + pos + i * stride, runtime 419 drivers/media/pci/cobalt/cobalt-alsa-pcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 422 drivers/media/pci/cobalt/cobalt-alsa-pcm.c runtime->hw = snd_cobalt_playback; runtime 423 drivers/media/pci/cobalt/cobalt-alsa-pcm.c snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS); runtime 425 drivers/media/pci/cobalt/cobalt-alsa-pcm.c runtime->private_data = s; runtime 489 drivers/media/pci/cobalt/cobalt-alsa-pcm.c return bytes_to_frames(substream->runtime, ptr) % runtime 490 drivers/media/pci/cobalt/cobalt-alsa-pcm.c substream->runtime->buffer_size; runtime 496 drivers/media/pci/cobalt/cobalt-alsa-pcm.c void *pageptr = subs->runtime->dma_area + offset; runtime 63 drivers/media/pci/cx18/cx18-alsa-pcm.c struct snd_pcm_runtime *runtime; runtime 78 drivers/media/pci/cx18/cx18-alsa-pcm.c runtime = substream->runtime; runtime 79 drivers/media/pci/cx18/cx18-alsa-pcm.c if (runtime == NULL) { runtime 84 drivers/media/pci/cx18/cx18-alsa-pcm.c stride = runtime->frame_bits >> 3; runtime 96 drivers/media/pci/cx18/cx18-alsa-pcm.c if (runtime->dma_area == NULL) { runtime 102 drivers/media/pci/cx18/cx18-alsa-pcm.c if (oldptr + length >= runtime->buffer_size) { runtime 104 drivers/media/pci/cx18/cx18-alsa-pcm.c runtime->buffer_size - oldptr; runtime 105 drivers/media/pci/cx18/cx18-alsa-pcm.c memcpy(runtime->dma_area + oldptr * stride, pcm_data, runtime 107 drivers/media/pci/cx18/cx18-alsa-pcm.c memcpy(runtime->dma_area, pcm_data + cnt * stride, runtime 110 drivers/media/pci/cx18/cx18-alsa-pcm.c memcpy(runtime->dma_area + oldptr * stride, pcm_data, runtime 117 drivers/media/pci/cx18/cx18-alsa-pcm.c runtime->buffer_size) runtime 119 drivers/media/pci/cx18/cx18-alsa-pcm.c runtime->buffer_size; runtime 123 drivers/media/pci/cx18/cx18-alsa-pcm.c runtime->period_size) { runtime 125 drivers/media/pci/cx18/cx18-alsa-pcm.c runtime->period_size; runtime 138 drivers/media/pci/cx18/cx18-alsa-pcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 168 drivers/media/pci/cx18/cx18-alsa-pcm.c runtime->hw = snd_cx18_hw_capture; runtime 169 drivers/media/pci/cx18/cx18-alsa-pcm.c snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS); runtime 171 drivers/media/pci/cx18/cx18-alsa-pcm.c runtime->private_data = cx; runtime 220 drivers/media/pci/cx18/cx18-alsa-pcm.c struct snd_pcm_runtime *runtime = subs->runtime; runtime 223 drivers/media/pci/cx18/cx18-alsa-pcm.c if (runtime->dma_area) { runtime 224 drivers/media/pci/cx18/cx18-alsa-pcm.c if (runtime->dma_bytes > size) runtime 227 drivers/media/pci/cx18/cx18-alsa-pcm.c vfree(runtime->dma_area); runtime 229 drivers/media/pci/cx18/cx18-alsa-pcm.c runtime->dma_area = vmalloc(size); runtime 230 drivers/media/pci/cx18/cx18-alsa-pcm.c if (!runtime->dma_area) runtime 233 drivers/media/pci/cx18/cx18-alsa-pcm.c runtime->dma_bytes = size; runtime 254 drivers/media/pci/cx18/cx18-alsa-pcm.c if (substream->runtime->dma_area) { runtime 256 drivers/media/pci/cx18/cx18-alsa-pcm.c dma_area = substream->runtime->dma_area; runtime 257 drivers/media/pci/cx18/cx18-alsa-pcm.c substream->runtime->dma_area = NULL; runtime 297 drivers/media/pci/cx18/cx18-alsa-pcm.c void *pageptr = subs->runtime->dma_area + offset; runtime 313 drivers/media/pci/cx23885/cx23885-alsa.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 321 drivers/media/pci/cx23885/cx23885-alsa.c err = snd_pcm_hw_constraint_pow2(runtime, 0, runtime 328 drivers/media/pci/cx23885/cx23885-alsa.c runtime->hw = snd_cx23885_digital_hw; runtime 335 drivers/media/pci/cx23885/cx23885-alsa.c runtime->hw.period_bytes_min = bpl; runtime 336 drivers/media/pci/cx23885/cx23885-alsa.c runtime->hw.period_bytes_max = bpl; runtime 364 drivers/media/pci/cx23885/cx23885-alsa.c if (substream->runtime->dma_area) { runtime 366 drivers/media/pci/cx23885/cx23885-alsa.c substream->runtime->dma_area = NULL; runtime 402 drivers/media/pci/cx23885/cx23885-alsa.c substream->runtime->dma_area = chip->buf->vaddr; runtime 403 drivers/media/pci/cx23885/cx23885-alsa.c substream->runtime->dma_bytes = chip->dma_size; runtime 404 drivers/media/pci/cx23885/cx23885-alsa.c substream->runtime->dma_addr = 0; runtime 422 drivers/media/pci/cx23885/cx23885-alsa.c if (substream->runtime->dma_area) { runtime 424 drivers/media/pci/cx23885/cx23885-alsa.c substream->runtime->dma_area = NULL; runtime 474 drivers/media/pci/cx23885/cx23885-alsa.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 479 drivers/media/pci/cx23885/cx23885-alsa.c return runtime->period_size * (count & (runtime->periods-1)); runtime 488 drivers/media/pci/cx23885/cx23885-alsa.c void *pageptr = substream->runtime->dma_area + offset; runtime 448 drivers/media/pci/cx25821/cx25821-alsa.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 457 drivers/media/pci/cx25821/cx25821-alsa.c err = snd_pcm_hw_constraint_pow2(runtime, 0, runtime 464 drivers/media/pci/cx25821/cx25821-alsa.c runtime->hw = snd_cx25821_digital_hw; runtime 475 drivers/media/pci/cx25821/cx25821-alsa.c runtime->hw.period_bytes_min = bpl; runtime 476 drivers/media/pci/cx25821/cx25821-alsa.c runtime->hw.period_bytes_max = bpl; runtime 503 drivers/media/pci/cx25821/cx25821-alsa.c if (substream->runtime->dma_area) { runtime 505 drivers/media/pci/cx25821/cx25821-alsa.c substream->runtime->dma_area = NULL; runtime 546 drivers/media/pci/cx25821/cx25821-alsa.c substream->runtime->dma_area = chip->buf->vaddr; runtime 547 drivers/media/pci/cx25821/cx25821-alsa.c substream->runtime->dma_bytes = chip->dma_size; runtime 548 drivers/media/pci/cx25821/cx25821-alsa.c substream->runtime->dma_addr = 0; runtime 565 drivers/media/pci/cx25821/cx25821-alsa.c if (substream->runtime->dma_area) { runtime 567 drivers/media/pci/cx25821/cx25821-alsa.c substream->runtime->dma_area = NULL; runtime 617 drivers/media/pci/cx25821/cx25821-alsa.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 622 drivers/media/pci/cx25821/cx25821-alsa.c return runtime->period_size * (count & (runtime->periods - 1)); runtime 631 drivers/media/pci/cx25821/cx25821-alsa.c void *pageptr = substream->runtime->dma_area + offset; runtime 406 drivers/media/pci/cx88/cx88-alsa.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 414 drivers/media/pci/cx88/cx88-alsa.c err = snd_pcm_hw_constraint_pow2(runtime, 0, runtime 421 drivers/media/pci/cx88/cx88-alsa.c runtime->hw = snd_cx88_digital_hw; runtime 427 drivers/media/pci/cx88/cx88-alsa.c runtime->hw.period_bytes_min = bpl; runtime 428 drivers/media/pci/cx88/cx88-alsa.c runtime->hw.period_bytes_max = bpl; runtime 456 drivers/media/pci/cx88/cx88-alsa.c if (substream->runtime->dma_area) { runtime 458 drivers/media/pci/cx88/cx88-alsa.c substream->runtime->dma_area = NULL; runtime 493 drivers/media/pci/cx88/cx88-alsa.c substream->runtime->dma_area = chip->buf->vaddr; runtime 494 drivers/media/pci/cx88/cx88-alsa.c substream->runtime->dma_bytes = chip->dma_size; runtime 495 drivers/media/pci/cx88/cx88-alsa.c substream->runtime->dma_addr = 0; runtime 510 drivers/media/pci/cx88/cx88-alsa.c if (substream->runtime->dma_area) { runtime 512 drivers/media/pci/cx88/cx88-alsa.c substream->runtime->dma_area = NULL; runtime 560 drivers/media/pci/cx88/cx88-alsa.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 568 drivers/media/pci/cx88/cx88-alsa.c return runtime->period_size * (count & (runtime->periods - 1)); runtime 577 drivers/media/pci/cx88/cx88-alsa.c void *pageptr = substream->runtime->dma_area + offset; runtime 61 drivers/media/pci/ivtv/ivtv-alsa-pcm.c struct snd_pcm_runtime *runtime; runtime 76 drivers/media/pci/ivtv/ivtv-alsa-pcm.c runtime = substream->runtime; runtime 77 drivers/media/pci/ivtv/ivtv-alsa-pcm.c if (runtime == NULL) { runtime 82 drivers/media/pci/ivtv/ivtv-alsa-pcm.c stride = runtime->frame_bits >> 3; runtime 94 drivers/media/pci/ivtv/ivtv-alsa-pcm.c if (runtime->dma_area == NULL) { runtime 100 drivers/media/pci/ivtv/ivtv-alsa-pcm.c if (oldptr + length >= runtime->buffer_size) { runtime 102 drivers/media/pci/ivtv/ivtv-alsa-pcm.c runtime->buffer_size - oldptr; runtime 103 drivers/media/pci/ivtv/ivtv-alsa-pcm.c memcpy(runtime->dma_area + oldptr * stride, pcm_data, runtime 105 drivers/media/pci/ivtv/ivtv-alsa-pcm.c memcpy(runtime->dma_area, pcm_data + cnt * stride, runtime 108 drivers/media/pci/ivtv/ivtv-alsa-pcm.c memcpy(runtime->dma_area + oldptr * stride, pcm_data, runtime 115 drivers/media/pci/ivtv/ivtv-alsa-pcm.c runtime->buffer_size) runtime 117 drivers/media/pci/ivtv/ivtv-alsa-pcm.c runtime->buffer_size; runtime 121 drivers/media/pci/ivtv/ivtv-alsa-pcm.c runtime->period_size) { runtime 123 drivers/media/pci/ivtv/ivtv-alsa-pcm.c runtime->period_size; runtime 136 drivers/media/pci/ivtv/ivtv-alsa-pcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 173 drivers/media/pci/ivtv/ivtv-alsa-pcm.c runtime->hw = snd_ivtv_hw_capture; runtime 174 drivers/media/pci/ivtv/ivtv-alsa-pcm.c snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS); runtime 176 drivers/media/pci/ivtv/ivtv-alsa-pcm.c runtime->private_data = itv; runtime 225 drivers/media/pci/ivtv/ivtv-alsa-pcm.c struct snd_pcm_runtime *runtime = subs->runtime; runtime 228 drivers/media/pci/ivtv/ivtv-alsa-pcm.c if (runtime->dma_area) { runtime 229 drivers/media/pci/ivtv/ivtv-alsa-pcm.c if (runtime->dma_bytes > size) runtime 232 drivers/media/pci/ivtv/ivtv-alsa-pcm.c vfree(runtime->dma_area); runtime 234 drivers/media/pci/ivtv/ivtv-alsa-pcm.c runtime->dma_area = vmalloc(size); runtime 235 drivers/media/pci/ivtv/ivtv-alsa-pcm.c if (!runtime->dma_area) runtime 238 drivers/media/pci/ivtv/ivtv-alsa-pcm.c runtime->dma_bytes = size; runtime 259 drivers/media/pci/ivtv/ivtv-alsa-pcm.c if (substream->runtime->dma_area) { runtime 261 drivers/media/pci/ivtv/ivtv-alsa-pcm.c dma_area = substream->runtime->dma_area; runtime 262 drivers/media/pci/ivtv/ivtv-alsa-pcm.c substream->runtime->dma_area = NULL; runtime 302 drivers/media/pci/ivtv/ivtv-alsa-pcm.c void *pageptr = subs->runtime->dma_area + offset; runtime 235 drivers/media/pci/saa7134/saa7134-alsa.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 236 drivers/media/pci/saa7134/saa7134-alsa.c snd_card_saa7134_pcm_t *pcm = runtime->private_data; runtime 498 drivers/media/pci/saa7134/saa7134-alsa.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 503 drivers/media/pci/saa7134/saa7134-alsa.c snd_card_saa7134_pcm_t *pcm = runtime->private_data; runtime 509 drivers/media/pci/saa7134/saa7134-alsa.c if (snd_pcm_format_width(runtime->format) == 8) runtime 514 drivers/media/pci/saa7134/saa7134-alsa.c if (snd_pcm_format_signed(runtime->format)) runtime 519 drivers/media/pci/saa7134/saa7134-alsa.c if (snd_pcm_format_big_endian(runtime->format)) runtime 526 drivers/media/pci/saa7134/saa7134-alsa.c if (1 == runtime->channels) runtime 528 drivers/media/pci/saa7134/saa7134-alsa.c if (2 == runtime->channels) runtime 542 drivers/media/pci/saa7134/saa7134-alsa.c if (1 == runtime->channels) runtime 544 drivers/media/pci/saa7134/saa7134-alsa.c if (2 == runtime->channels) runtime 554 drivers/media/pci/saa7134/saa7134-alsa.c runtime->format, runtime->channels, fmt, runtime 568 drivers/media/pci/saa7134/saa7134-alsa.c dev->dmasound.rate = runtime->rate; runtime 592 drivers/media/pci/saa7134/saa7134-alsa.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 593 drivers/media/pci/saa7134/saa7134-alsa.c snd_card_saa7134_pcm_t *pcm = runtime->private_data; runtime 603 drivers/media/pci/saa7134/saa7134-alsa.c return bytes_to_frames(runtime, dev->dmasound.read_offset); runtime 643 drivers/media/pci/saa7134/saa7134-alsa.c static void snd_card_saa7134_runtime_free(struct snd_pcm_runtime *runtime) runtime 645 drivers/media/pci/saa7134/saa7134-alsa.c snd_card_saa7134_pcm_t *pcm = runtime->private_data; runtime 685 drivers/media/pci/saa7134/saa7134-alsa.c if (substream->runtime->dma_area) { runtime 689 drivers/media/pci/saa7134/saa7134-alsa.c substream->runtime->dma_area = NULL; runtime 727 drivers/media/pci/saa7134/saa7134-alsa.c substream->runtime->dma_area = dev->dmasound.vaddr; runtime 728 drivers/media/pci/saa7134/saa7134-alsa.c substream->runtime->dma_bytes = dev->dmasound.bufsize; runtime 729 drivers/media/pci/saa7134/saa7134-alsa.c substream->runtime->dma_addr = 0; runtime 752 drivers/media/pci/saa7134/saa7134-alsa.c if (substream->runtime->dma_area) { runtime 756 drivers/media/pci/saa7134/saa7134-alsa.c substream->runtime->dma_area = NULL; runtime 795 drivers/media/pci/saa7134/saa7134-alsa.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 827 drivers/media/pci/saa7134/saa7134-alsa.c runtime->private_data = pcm; runtime 828 drivers/media/pci/saa7134/saa7134-alsa.c runtime->private_free = snd_card_saa7134_runtime_free; runtime 829 drivers/media/pci/saa7134/saa7134-alsa.c runtime->hw = snd_card_saa7134_capture; runtime 837 drivers/media/pci/saa7134/saa7134-alsa.c err = snd_pcm_hw_constraint_integer(runtime, runtime 842 drivers/media/pci/saa7134/saa7134-alsa.c err = snd_pcm_hw_constraint_step(runtime, 0, runtime 857 drivers/media/pci/saa7134/saa7134-alsa.c void *pageptr = substream->runtime->dma_area + offset; runtime 146 drivers/media/pci/solo6x10/solo6x10-g723.c ss->runtime->hw = snd_solo_pcm_hw; runtime 119 drivers/media/pci/tw686x/tw686x-audio.c struct snd_pcm_runtime *rt = ss->runtime; runtime 145 drivers/media/pci/tw686x/tw686x-audio.c struct snd_pcm_runtime *rt = ss->runtime; runtime 266 drivers/media/pci/tw686x/tw686x-audio.c return bytes_to_frames(ss->runtime, ac->ptr); runtime 758 drivers/media/platform/exynos4-is/mipi-csis.c static int s5pcsis_pm_resume(struct device *dev, bool runtime); runtime 887 drivers/media/platform/exynos4-is/mipi-csis.c static int s5pcsis_pm_suspend(struct device *dev, bool runtime) runtime 908 drivers/media/platform/exynos4-is/mipi-csis.c if (!runtime) runtime 916 drivers/media/platform/exynos4-is/mipi-csis.c static int s5pcsis_pm_resume(struct device *dev, bool runtime) runtime 926 drivers/media/platform/exynos4-is/mipi-csis.c if (!runtime && !(state->flags & ST_SUSPENDED)) runtime 91 drivers/media/usb/cx231xx/cx231xx-audio.c struct snd_pcm_runtime *runtime; runtime 115 drivers/media/usb/cx231xx/cx231xx-audio.c runtime = substream->runtime; runtime 116 drivers/media/usb/cx231xx/cx231xx-audio.c stride = runtime->frame_bits >> 3; runtime 129 drivers/media/usb/cx231xx/cx231xx-audio.c if (oldptr + length >= runtime->buffer_size) { runtime 132 drivers/media/usb/cx231xx/cx231xx-audio.c cnt = runtime->buffer_size - oldptr; runtime 133 drivers/media/usb/cx231xx/cx231xx-audio.c memcpy(runtime->dma_area + oldptr * stride, cp, runtime 135 drivers/media/usb/cx231xx/cx231xx-audio.c memcpy(runtime->dma_area, cp + cnt * stride, runtime 138 drivers/media/usb/cx231xx/cx231xx-audio.c memcpy(runtime->dma_area + oldptr * stride, cp, runtime 146 drivers/media/usb/cx231xx/cx231xx-audio.c runtime->buffer_size) runtime 148 drivers/media/usb/cx231xx/cx231xx-audio.c runtime->buffer_size; runtime 152 drivers/media/usb/cx231xx/cx231xx-audio.c runtime->period_size) { runtime 154 drivers/media/usb/cx231xx/cx231xx-audio.c runtime->period_size; runtime 182 drivers/media/usb/cx231xx/cx231xx-audio.c struct snd_pcm_runtime *runtime; runtime 206 drivers/media/usb/cx231xx/cx231xx-audio.c runtime = substream->runtime; runtime 207 drivers/media/usb/cx231xx/cx231xx-audio.c stride = runtime->frame_bits >> 3; runtime 216 drivers/media/usb/cx231xx/cx231xx-audio.c if (oldptr + length >= runtime->buffer_size) { runtime 219 drivers/media/usb/cx231xx/cx231xx-audio.c cnt = runtime->buffer_size - oldptr; runtime 220 drivers/media/usb/cx231xx/cx231xx-audio.c memcpy(runtime->dma_area + oldptr * stride, cp, runtime 222 drivers/media/usb/cx231xx/cx231xx-audio.c memcpy(runtime->dma_area, cp + cnt * stride, runtime 225 drivers/media/usb/cx231xx/cx231xx-audio.c memcpy(runtime->dma_area + oldptr * stride, cp, runtime 233 drivers/media/usb/cx231xx/cx231xx-audio.c runtime->buffer_size) runtime 235 drivers/media/usb/cx231xx/cx231xx-audio.c runtime->buffer_size; runtime 239 drivers/media/usb/cx231xx/cx231xx-audio.c runtime->period_size) { runtime 241 drivers/media/usb/cx231xx/cx231xx-audio.c runtime->period_size; runtime 379 drivers/media/usb/cx231xx/cx231xx-audio.c struct snd_pcm_runtime *runtime = subs->runtime; runtime 383 drivers/media/usb/cx231xx/cx231xx-audio.c if (runtime->dma_area) { runtime 384 drivers/media/usb/cx231xx/cx231xx-audio.c if (runtime->dma_bytes > size) runtime 387 drivers/media/usb/cx231xx/cx231xx-audio.c vfree(runtime->dma_area); runtime 389 drivers/media/usb/cx231xx/cx231xx-audio.c runtime->dma_area = vmalloc(size); runtime 390 drivers/media/usb/cx231xx/cx231xx-audio.c if (!runtime->dma_area) runtime 393 drivers/media/usb/cx231xx/cx231xx-audio.c runtime->dma_bytes = size; runtime 422 drivers/media/usb/cx231xx/cx231xx-audio.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 449 drivers/media/usb/cx231xx/cx231xx-audio.c runtime->hw = snd_cx231xx_hw_capture; runtime 458 drivers/media/usb/cx231xx/cx231xx-audio.c snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS); runtime 460 drivers/media/usb/cx231xx/cx231xx-audio.c runtime->private_data = dev; runtime 488 drivers/media/usb/cx231xx/cx231xx-audio.c if (substream->runtime->dma_area) { runtime 490 drivers/media/usb/cx231xx/cx231xx-audio.c vfree(substream->runtime->dma_area); runtime 491 drivers/media/usb/cx231xx/cx231xx-audio.c substream->runtime->dma_area = NULL; runtime 621 drivers/media/usb/cx231xx/cx231xx-audio.c void *pageptr = subs->runtime->dma_area + offset; runtime 88 drivers/media/usb/em28xx/em28xx-audio.c struct snd_pcm_runtime *runtime; runtime 115 drivers/media/usb/em28xx/em28xx-audio.c runtime = substream->runtime; runtime 116 drivers/media/usb/em28xx/em28xx-audio.c stride = runtime->frame_bits >> 3; runtime 129 drivers/media/usb/em28xx/em28xx-audio.c if (oldptr + length >= runtime->buffer_size) { runtime 131 drivers/media/usb/em28xx/em28xx-audio.c runtime->buffer_size - oldptr; runtime 132 drivers/media/usb/em28xx/em28xx-audio.c memcpy(runtime->dma_area + oldptr * stride, cp, runtime 134 drivers/media/usb/em28xx/em28xx-audio.c memcpy(runtime->dma_area, cp + cnt * stride, runtime 137 drivers/media/usb/em28xx/em28xx-audio.c memcpy(runtime->dma_area + oldptr * stride, cp, runtime 145 drivers/media/usb/em28xx/em28xx-audio.c runtime->buffer_size) runtime 147 drivers/media/usb/em28xx/em28xx-audio.c runtime->buffer_size; runtime 151 drivers/media/usb/em28xx/em28xx-audio.c runtime->period_size) { runtime 153 drivers/media/usb/em28xx/em28xx-audio.c runtime->period_size; runtime 200 drivers/media/usb/em28xx/em28xx-audio.c struct snd_pcm_runtime *runtime = subs->runtime; runtime 203 drivers/media/usb/em28xx/em28xx-audio.c if (runtime->dma_area) { runtime 204 drivers/media/usb/em28xx/em28xx-audio.c if (runtime->dma_bytes > size) runtime 207 drivers/media/usb/em28xx/em28xx-audio.c vfree(runtime->dma_area); runtime 209 drivers/media/usb/em28xx/em28xx-audio.c runtime->dma_area = vmalloc(size); runtime 210 drivers/media/usb/em28xx/em28xx-audio.c if (!runtime->dma_area) runtime 213 drivers/media/usb/em28xx/em28xx-audio.c runtime->dma_bytes = size; runtime 253 drivers/media/usb/em28xx/em28xx-audio.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 274 drivers/media/usb/em28xx/em28xx-audio.c runtime->hw = snd_em28xx_hw_capture; runtime 314 drivers/media/usb/em28xx/em28xx-audio.c snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS); runtime 315 drivers/media/usb/em28xx/em28xx-audio.c snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_PERIOD_BYTES, runtime 345 drivers/media/usb/em28xx/em28xx-audio.c if (substream->runtime->dma_area) { runtime 347 drivers/media/usb/em28xx/em28xx-audio.c vfree(substream->runtime->dma_area); runtime 348 drivers/media/usb/em28xx/em28xx-audio.c substream->runtime->dma_area = NULL; runtime 478 drivers/media/usb/em28xx/em28xx-audio.c void *pageptr = subs->runtime->dma_area + offset; runtime 68 drivers/media/usb/go7007/snd-go7007.c struct snd_pcm_runtime *runtime = gosnd->substream->runtime; runtime 69 drivers/media/usb/go7007/snd-go7007.c int frames = bytes_to_frames(runtime, length); runtime 74 drivers/media/usb/go7007/snd-go7007.c if (gosnd->hw_ptr >= runtime->buffer_size) runtime 75 drivers/media/usb/go7007/snd-go7007.c gosnd->hw_ptr -= runtime->buffer_size; runtime 78 drivers/media/usb/go7007/snd-go7007.c if (gosnd->w_idx + length > runtime->dma_bytes) { runtime 79 drivers/media/usb/go7007/snd-go7007.c int cpy = runtime->dma_bytes - gosnd->w_idx; runtime 81 drivers/media/usb/go7007/snd-go7007.c memcpy(runtime->dma_area + gosnd->w_idx, buf, cpy); runtime 86 drivers/media/usb/go7007/snd-go7007.c memcpy(runtime->dma_area + gosnd->w_idx, buf, length); runtime 89 drivers/media/usb/go7007/snd-go7007.c if (gosnd->avail < runtime->period_size) { runtime 93 drivers/media/usb/go7007/snd-go7007.c gosnd->avail -= runtime->period_size; runtime 106 drivers/media/usb/go7007/snd-go7007.c if (substream->runtime->dma_bytes > 0) runtime 107 drivers/media/usb/go7007/snd-go7007.c vfree(substream->runtime->dma_area); runtime 108 drivers/media/usb/go7007/snd-go7007.c substream->runtime->dma_bytes = 0; runtime 109 drivers/media/usb/go7007/snd-go7007.c substream->runtime->dma_area = vmalloc(bytes); runtime 110 drivers/media/usb/go7007/snd-go7007.c if (substream->runtime->dma_area == NULL) runtime 112 drivers/media/usb/go7007/snd-go7007.c substream->runtime->dma_bytes = bytes; runtime 122 drivers/media/usb/go7007/snd-go7007.c if (substream->runtime->dma_bytes > 0) runtime 123 drivers/media/usb/go7007/snd-go7007.c vfree(substream->runtime->dma_area); runtime 124 drivers/media/usb/go7007/snd-go7007.c substream->runtime->dma_bytes = 0; runtime 138 drivers/media/usb/go7007/snd-go7007.c substream->runtime->hw = go7007_snd_capture_hw; runtime 191 drivers/media/usb/go7007/snd-go7007.c return vmalloc_to_page(substream->runtime->dma_area + offset); runtime 103 drivers/media/usb/tm6000/tm6000-alsa.c vfree(substream->runtime->dma_area); runtime 104 drivers/media/usb/tm6000/tm6000-alsa.c substream->runtime->dma_area = NULL; runtime 105 drivers/media/usb/tm6000/tm6000-alsa.c substream->runtime->dma_bytes = 0; runtime 114 drivers/media/usb/tm6000/tm6000-alsa.c if (substream->runtime->dma_area) { runtime 115 drivers/media/usb/tm6000/tm6000-alsa.c if (substream->runtime->dma_bytes > size) runtime 121 drivers/media/usb/tm6000/tm6000-alsa.c substream->runtime->dma_area = vmalloc(size); runtime 122 drivers/media/usb/tm6000/tm6000-alsa.c if (!substream->runtime->dma_area) runtime 125 drivers/media/usb/tm6000/tm6000-alsa.c substream->runtime->dma_bytes = size; runtime 166 drivers/media/usb/tm6000/tm6000-alsa.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 169 drivers/media/usb/tm6000/tm6000-alsa.c err = snd_pcm_hw_constraint_pow2(runtime, 0, runtime 176 drivers/media/usb/tm6000/tm6000-alsa.c runtime->hw = snd_tm6000_digital_hw; runtime 177 drivers/media/usb/tm6000/tm6000-alsa.c snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS); runtime 205 drivers/media/usb/tm6000/tm6000-alsa.c struct snd_pcm_runtime *runtime; runtime 218 drivers/media/usb/tm6000/tm6000-alsa.c runtime = substream->runtime; runtime 219 drivers/media/usb/tm6000/tm6000-alsa.c if (!runtime || !runtime->dma_area) { runtime 225 drivers/media/usb/tm6000/tm6000-alsa.c stride = runtime->frame_bits >> 3; runtime 239 drivers/media/usb/tm6000/tm6000-alsa.c runtime->dma_area, buf_pos, runtime 240 drivers/media/usb/tm6000/tm6000-alsa.c (unsigned int)runtime->buffer_size, stride); runtime 242 drivers/media/usb/tm6000/tm6000-alsa.c if (buf_pos + length >= runtime->buffer_size) { runtime 243 drivers/media/usb/tm6000/tm6000-alsa.c unsigned int cnt = runtime->buffer_size - buf_pos; runtime 244 drivers/media/usb/tm6000/tm6000-alsa.c memcpy(runtime->dma_area + buf_pos * stride, buf, cnt * stride); runtime 245 drivers/media/usb/tm6000/tm6000-alsa.c memcpy(runtime->dma_area, buf + cnt * stride, runtime 248 drivers/media/usb/tm6000/tm6000-alsa.c memcpy(runtime->dma_area + buf_pos * stride, buf, runtime 254 drivers/media/usb/tm6000/tm6000-alsa.c if (chip->buf_pos >= runtime->buffer_size) runtime 255 drivers/media/usb/tm6000/tm6000-alsa.c chip->buf_pos -= runtime->buffer_size; runtime 258 drivers/media/usb/tm6000/tm6000-alsa.c if (chip->period_pos >= runtime->period_size) { runtime 259 drivers/media/usb/tm6000/tm6000-alsa.c chip->period_pos -= runtime->period_size; runtime 375 drivers/media/usb/tm6000/tm6000-alsa.c void *pageptr = subs->runtime->dma_area + offset; runtime 68 drivers/media/usb/usbtv/usbtv-audio.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 71 drivers/media/usb/usbtv/usbtv-audio.c runtime->hw = snd_usbtv_digital_hw; runtime 126 drivers/media/usb/usbtv/usbtv-audio.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 149 drivers/media/usb/usbtv/usbtv-audio.c frame_bytes = runtime->frame_bits >> 3; runtime 159 drivers/media/usb/usbtv/usbtv-audio.c if (buffer_pos + chunk_length >= runtime->buffer_size) { runtime 160 drivers/media/usb/usbtv/usbtv-audio.c size_t cnt = (runtime->buffer_size - buffer_pos) * runtime 162 drivers/media/usb/usbtv/usbtv-audio.c memcpy(runtime->dma_area + buffer_pos * frame_bytes, runtime 164 drivers/media/usb/usbtv/usbtv-audio.c memcpy(runtime->dma_area, urb_current + cnt, runtime 167 drivers/media/usb/usbtv/usbtv-audio.c memcpy(runtime->dma_area + buffer_pos * frame_bytes, runtime 174 drivers/media/usb/usbtv/usbtv-audio.c if (buffer_pos >= runtime->buffer_size) runtime 175 drivers/media/usb/usbtv/usbtv-audio.c buffer_pos -= runtime->buffer_size; runtime 177 drivers/media/usb/usbtv/usbtv-audio.c if (period_pos >= runtime->period_size) { runtime 178 drivers/media/usb/usbtv/usbtv-audio.c period_pos -= runtime->period_size; runtime 6341 drivers/net/ethernet/intel/e1000e/netdev.c static int __e1000_shutdown(struct pci_dev *pdev, bool runtime) runtime 6348 drivers/net/ethernet/intel/e1000e/netdev.c u32 wufc = runtime ? E1000_WUFC_LNKC : adapter->wol; runtime 6381 drivers/net/ethernet/intel/e1000e/netdev.c if (!runtime) runtime 6411 drivers/net/ethernet/intel/e1000e/netdev.c retval = e1000_enable_ulp_lpt_lp(hw, !runtime); runtime 8725 drivers/net/ethernet/intel/igb/igb_main.c bool runtime) runtime 8731 drivers/net/ethernet/intel/igb/igb_main.c u32 wufc = runtime ? E1000_WUFC_LNKC : adapter->wol; runtime 2906 drivers/net/ethernet/qlogic/qed/qed_hsi.h struct init_op_array_params runtime; runtime 342 drivers/net/ethernet/qlogic/qed/qed_init_ops.c le16_to_cpu(arg->runtime.offset), runtime 343 drivers/net/ethernet/qlogic/qed/qed_init_ops.c le16_to_cpu(arg->runtime.size), runtime 845 drivers/staging/media/imx/imx7-mipi-csis.c static int mipi_csis_pm_resume(struct device *dev, bool runtime); runtime 1038 drivers/staging/media/imx/imx7-mipi-csis.c static int mipi_csis_pm_suspend(struct device *dev, bool runtime) runtime 1052 drivers/staging/media/imx/imx7-mipi-csis.c if (!runtime) runtime 1062 drivers/staging/media/imx/imx7-mipi-csis.c static int mipi_csis_pm_resume(struct device *dev, bool runtime) runtime 1069 drivers/staging/media/imx/imx7-mipi-csis.c if (!runtime && !(state->flags & ST_SUSPENDED)) runtime 192 drivers/staging/most/sound/sound.c struct snd_pcm_runtime *const runtime = channel->substream->runtime; runtime 194 drivers/staging/most/sound/sound.c unsigned int const buffer_size = runtime->buffer_size; runtime 204 drivers/staging/most/sound/sound.c channel->copy_fn(runtime->dma_area + channel->buffer_pos * frame_bytes, runtime 210 drivers/staging/most/sound/sound.c channel->copy_fn(runtime->dma_area, runtime 219 drivers/staging/most/sound/sound.c if (channel->period_pos >= runtime->period_size) { runtime 220 drivers/staging/most/sound/sound.c channel->period_pos -= runtime->period_size; runtime 279 drivers/staging/most/sound/sound.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 300 drivers/staging/most/sound/sound.c runtime->hw = channel->pcm_hardware; runtime 377 drivers/staging/most/sound/sound.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 379 drivers/staging/most/sound/sound.c int width = snd_pcm_format_physical_width(runtime->format); runtime 384 drivers/staging/most/sound/sound.c if (snd_pcm_format_big_endian(runtime->format) || width == 8) runtime 393 drivers/staging/most/sound/sound.c if (snd_pcm_format_big_endian(runtime->format) || width == 8) runtime 47 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c static void snd_bcm2835_playback_free(struct snd_pcm_runtime *runtime) runtime 49 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c kfree(runtime->private_data); runtime 89 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 128 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c runtime->private_data = alsa_stream; runtime 129 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c runtime->private_free = snd_bcm2835_playback_free; runtime 131 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c runtime->hw = snd_bcm2835_playback_spdif_hw; runtime 135 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c runtime->hw = snd_bcm2835_playback_hw; runtime 138 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c snd_pcm_hw_constraint_step(runtime, runtime 144 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c snd_pcm_hw_constraint_minmax(runtime, runtime 171 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c struct snd_pcm_runtime *runtime; runtime 176 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c runtime = substream->runtime; runtime 177 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c alsa_stream = runtime->private_data; runtime 210 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 211 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c struct bcm2835_alsa_stream *alsa_stream = runtime->private_data; runtime 222 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c channels = runtime->channels; runtime 225 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c runtime->rate, runtime 226 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c snd_pcm_format_width(runtime->format)); runtime 249 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 250 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c struct bcm2835_alsa_stream *alsa_stream = runtime->private_data; runtime 251 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c void *src = (void *) (substream->runtime->dma_area + rec->sw_data); runtime 258 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 259 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c struct bcm2835_alsa_stream *alsa_stream = runtime->private_data; runtime 269 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 270 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c struct bcm2835_alsa_stream *alsa_stream = runtime->private_data; runtime 289 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 290 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c struct bcm2835_alsa_stream *alsa_stream = runtime->private_data; runtime 304 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c div_u64((interval * runtime->rate), 1000000000); runtime 307 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c runtime->delay = frames_output_in_interval_sized; runtime 87 drivers/usb/gadget/function/u_audio.c struct snd_pcm_runtime *runtime; runtime 111 drivers/usb/gadget/function/u_audio.c runtime = substream->runtime; runtime 112 drivers/usb/gadget/function/u_audio.c if (!runtime || !snd_pcm_running(substream)) { runtime 148 drivers/usb/gadget/function/u_audio.c pending = runtime->dma_bytes - hw_ptr; runtime 152 drivers/usb/gadget/function/u_audio.c memcpy(req->buf, runtime->dma_area + hw_ptr, pending); runtime 153 drivers/usb/gadget/function/u_audio.c memcpy(req->buf + pending, runtime->dma_area, runtime 156 drivers/usb/gadget/function/u_audio.c memcpy(req->buf, runtime->dma_area + hw_ptr, runtime 161 drivers/usb/gadget/function/u_audio.c memcpy(runtime->dma_area + hw_ptr, req->buf, pending); runtime 162 drivers/usb/gadget/function/u_audio.c memcpy(runtime->dma_area, req->buf + pending, runtime 165 drivers/usb/gadget/function/u_audio.c memcpy(runtime->dma_area + hw_ptr, req->buf, runtime 172 drivers/usb/gadget/function/u_audio.c prm->hw_ptr = (hw_ptr + req->actual) % runtime->dma_bytes; runtime 239 drivers/usb/gadget/function/u_audio.c return bytes_to_frames(substream->runtime, prm->hw_ptr); runtime 257 drivers/usb/gadget/function/u_audio.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 274 drivers/usb/gadget/function/u_audio.c runtime->hw = uac_pcm_hardware; runtime 278 drivers/usb/gadget/function/u_audio.c runtime->hw.rate_min = p_srate; runtime 281 drivers/usb/gadget/function/u_audio.c runtime->hw.formats = SNDRV_PCM_FMTBIT_S24_3LE; runtime 284 drivers/usb/gadget/function/u_audio.c runtime->hw.formats = SNDRV_PCM_FMTBIT_S32_LE; runtime 287 drivers/usb/gadget/function/u_audio.c runtime->hw.formats = SNDRV_PCM_FMTBIT_S16_LE; runtime 290 drivers/usb/gadget/function/u_audio.c runtime->hw.channels_min = num_channels(p_chmask); runtime 291 drivers/usb/gadget/function/u_audio.c runtime->hw.period_bytes_min = 2 * uac->p_prm.max_psize runtime 292 drivers/usb/gadget/function/u_audio.c / runtime->hw.periods_min; runtime 295 drivers/usb/gadget/function/u_audio.c runtime->hw.rate_min = c_srate; runtime 298 drivers/usb/gadget/function/u_audio.c runtime->hw.formats = SNDRV_PCM_FMTBIT_S24_3LE; runtime 301 drivers/usb/gadget/function/u_audio.c runtime->hw.formats = SNDRV_PCM_FMTBIT_S32_LE; runtime 304 drivers/usb/gadget/function/u_audio.c runtime->hw.formats = SNDRV_PCM_FMTBIT_S16_LE; runtime 307 drivers/usb/gadget/function/u_audio.c runtime->hw.channels_min = num_channels(c_chmask); runtime 308 drivers/usb/gadget/function/u_audio.c runtime->hw.period_bytes_min = 2 * uac->c_prm.max_psize runtime 309 drivers/usb/gadget/function/u_audio.c / runtime->hw.periods_min; runtime 312 drivers/usb/gadget/function/u_audio.c runtime->hw.rate_max = runtime->hw.rate_min; runtime 313 drivers/usb/gadget/function/u_audio.c runtime->hw.channels_max = runtime->hw.channels_min; runtime 315 drivers/usb/gadget/function/u_audio.c snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS); runtime 156 drivers/usb/gadget/function/u_uac1_legacy.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 161 drivers/usb/gadget/function/u_uac1_legacy.c if (runtime->status->state == SNDRV_PCM_STATE_XRUN || runtime 162 drivers/usb/gadget/function/u_uac1_legacy.c runtime->status->state == SNDRV_PCM_STATE_SUSPENDED) { runtime 172 drivers/usb/gadget/function/u_uac1_legacy.c frames = bytes_to_frames(runtime, count); runtime 2058 fs/btrfs/extent-tree.c u64 runtime = ktime_to_ns(ktime_sub(ktime_get(), start)); runtime 2066 fs/btrfs/extent-tree.c avg = fs_info->avg_delayed_ref_runtime * 3 + runtime; runtime 739 include/linux/efi.h u64 runtime; runtime 756 include/linux/efi.h u32 runtime; runtime 772 include/linux/efi.h efi_runtime_services_t *runtime; runtime 994 include/linux/efi.h unsigned long runtime; /* runtime table */ runtime 139 include/linux/posix-timers.h u64 runtime) runtime 141 include/linux/posix-timers.h pct->bases[CPUCLOCK_SCHED].nextevt = runtime; runtime 518 include/linux/sched.h s64 runtime; /* Remaining runtime for this instance */ runtime 406 include/sound/ac97_codec.h int snd_ac97_pcm_double_rate_rules(struct snd_pcm_runtime *runtime); runtime 67 include/sound/compress_driver.h struct snd_compr_runtime *runtime; runtime 168 include/sound/compress_driver.h wake_up(&stream->runtime->sleep); runtime 176 include/sound/compress_driver.h stream->runtime->state = SNDRV_PCM_STATE_SETUP; runtime 178 include/sound/compress_driver.h wake_up(&stream->runtime->sleep); runtime 193 include/sound/compress_driver.h struct snd_compr_runtime *runtime = substream->runtime; runtime 195 include/sound/compress_driver.h runtime->dma_buffer_p = bufp; runtime 38 include/sound/pcm-indirect.h struct snd_pcm_runtime *runtime = substream->runtime; runtime 39 include/sound/pcm-indirect.h snd_pcm_uframes_t appl_ptr = runtime->control->appl_ptr; runtime 44 include/sound/pcm-indirect.h if (diff < -(snd_pcm_sframes_t) (runtime->boundary / 2)) runtime 45 include/sound/pcm-indirect.h diff += runtime->boundary; runtime 48 include/sound/pcm-indirect.h rec->sw_ready += (int)frames_to_bytes(runtime, diff); runtime 95 include/sound/pcm-indirect.h return bytes_to_frames(substream->runtime, rec->sw_io); runtime 107 include/sound/pcm-indirect.h struct snd_pcm_runtime *runtime = substream->runtime; runtime 108 include/sound/pcm-indirect.h snd_pcm_uframes_t appl_ptr = runtime->control->appl_ptr; runtime 112 include/sound/pcm-indirect.h if (diff < -(snd_pcm_sframes_t) (runtime->boundary / 2)) runtime 113 include/sound/pcm-indirect.h diff += runtime->boundary; runtime 116 include/sound/pcm-indirect.h rec->sw_ready -= frames_to_bytes(runtime, diff); runtime 167 include/sound/pcm-indirect.h return bytes_to_frames(substream->runtime, rec->sw_io); runtime 401 include/sound/pcm.h void (*private_free)(struct snd_pcm_runtime *runtime); runtime 452 include/sound/pcm.h struct snd_pcm_runtime *runtime; runtime 651 include/sound/pcm.h return (substream->runtime->status->state == SNDRV_PCM_STATE_RUNNING || runtime 652 include/sound/pcm.h (substream->runtime->status->state == SNDRV_PCM_STATE_DRAINING && runtime 661 include/sound/pcm.h static inline ssize_t bytes_to_samples(struct snd_pcm_runtime *runtime, ssize_t size) runtime 663 include/sound/pcm.h return size * 8 / runtime->sample_bits; runtime 671 include/sound/pcm.h static inline snd_pcm_sframes_t bytes_to_frames(struct snd_pcm_runtime *runtime, ssize_t size) runtime 673 include/sound/pcm.h return size * 8 / runtime->frame_bits; runtime 681 include/sound/pcm.h static inline ssize_t samples_to_bytes(struct snd_pcm_runtime *runtime, ssize_t size) runtime 683 include/sound/pcm.h return size * runtime->sample_bits / 8; runtime 691 include/sound/pcm.h static inline ssize_t frames_to_bytes(struct snd_pcm_runtime *runtime, snd_pcm_sframes_t size) runtime 693 include/sound/pcm.h return size * runtime->frame_bits / 8; runtime 701 include/sound/pcm.h static inline int frame_aligned(struct snd_pcm_runtime *runtime, ssize_t bytes) runtime 703 include/sound/pcm.h return bytes % runtime->byte_align == 0; runtime 712 include/sound/pcm.h struct snd_pcm_runtime *runtime = substream->runtime; runtime 713 include/sound/pcm.h return frames_to_bytes(runtime, runtime->buffer_size); runtime 722 include/sound/pcm.h struct snd_pcm_runtime *runtime = substream->runtime; runtime 723 include/sound/pcm.h return frames_to_bytes(runtime, runtime->period_size); runtime 732 include/sound/pcm.h static inline snd_pcm_uframes_t snd_pcm_playback_avail(struct snd_pcm_runtime *runtime) runtime 734 include/sound/pcm.h snd_pcm_sframes_t avail = runtime->status->hw_ptr + runtime->buffer_size - runtime->control->appl_ptr; runtime 736 include/sound/pcm.h avail += runtime->boundary; runtime 737 include/sound/pcm.h else if ((snd_pcm_uframes_t) avail >= runtime->boundary) runtime 738 include/sound/pcm.h avail -= runtime->boundary; runtime 748 include/sound/pcm.h static inline snd_pcm_uframes_t snd_pcm_capture_avail(struct snd_pcm_runtime *runtime) runtime 750 include/sound/pcm.h snd_pcm_sframes_t avail = runtime->status->hw_ptr - runtime->control->appl_ptr; runtime 752 include/sound/pcm.h avail += runtime->boundary; runtime 760 include/sound/pcm.h static inline snd_pcm_sframes_t snd_pcm_playback_hw_avail(struct snd_pcm_runtime *runtime) runtime 762 include/sound/pcm.h return runtime->buffer_size - snd_pcm_playback_avail(runtime); runtime 769 include/sound/pcm.h static inline snd_pcm_sframes_t snd_pcm_capture_hw_avail(struct snd_pcm_runtime *runtime) runtime 771 include/sound/pcm.h return runtime->buffer_size - snd_pcm_capture_avail(runtime); runtime 784 include/sound/pcm.h struct snd_pcm_runtime *runtime = substream->runtime; runtime 785 include/sound/pcm.h return snd_pcm_playback_avail(runtime) >= runtime->control->avail_min; runtime 798 include/sound/pcm.h struct snd_pcm_runtime *runtime = substream->runtime; runtime 799 include/sound/pcm.h return snd_pcm_capture_avail(runtime) >= runtime->control->avail_min; runtime 813 include/sound/pcm.h struct snd_pcm_runtime *runtime = substream->runtime; runtime 815 include/sound/pcm.h if (runtime->stop_threshold >= runtime->boundary) runtime 817 include/sound/pcm.h return snd_pcm_playback_avail(runtime) < runtime->buffer_size; runtime 830 include/sound/pcm.h struct snd_pcm_runtime *runtime = substream->runtime; runtime 831 include/sound/pcm.h return snd_pcm_playback_avail(runtime) >= runtime->buffer_size; runtime 844 include/sound/pcm.h struct snd_pcm_runtime *runtime = substream->runtime; runtime 845 include/sound/pcm.h return snd_pcm_capture_avail(runtime) == 0; runtime 865 include/sound/pcm.h substream->runtime->trigger_master = master; runtime 972 include/sound/pcm.h int snd_pcm_hw_constraint_mask64(struct snd_pcm_runtime *runtime, snd_pcm_hw_param_t var, runtime 974 include/sound/pcm.h int snd_pcm_hw_constraint_minmax(struct snd_pcm_runtime *runtime, snd_pcm_hw_param_t var, runtime 976 include/sound/pcm.h int snd_pcm_hw_constraint_integer(struct snd_pcm_runtime *runtime, snd_pcm_hw_param_t var); runtime 977 include/sound/pcm.h int snd_pcm_hw_constraint_list(struct snd_pcm_runtime *runtime, runtime 981 include/sound/pcm.h int snd_pcm_hw_constraint_ranges(struct snd_pcm_runtime *runtime, runtime 985 include/sound/pcm.h int snd_pcm_hw_constraint_ratnums(struct snd_pcm_runtime *runtime, runtime 989 include/sound/pcm.h int snd_pcm_hw_constraint_ratdens(struct snd_pcm_runtime *runtime, runtime 993 include/sound/pcm.h int snd_pcm_hw_constraint_msbits(struct snd_pcm_runtime *runtime, runtime 997 include/sound/pcm.h int snd_pcm_hw_constraint_step(struct snd_pcm_runtime *runtime, runtime 1001 include/sound/pcm.h int snd_pcm_hw_constraint_pow2(struct snd_pcm_runtime *runtime, runtime 1004 include/sound/pcm.h int snd_pcm_hw_rule_noresample(struct snd_pcm_runtime *runtime, runtime 1006 include/sound/pcm.h int snd_pcm_hw_rule_add(struct snd_pcm_runtime *runtime, runtime 1022 include/sound/pcm.h struct snd_pcm_runtime *runtime, snd_pcm_hw_param_t var, runtime 1025 include/sound/pcm.h return snd_pcm_hw_constraint_minmax(runtime, var, val, val); runtime 1120 include/sound/pcm.h int snd_pcm_limit_hw_rates(struct snd_pcm_runtime *runtime); runtime 1139 include/sound/pcm.h struct snd_pcm_runtime *runtime = substream->runtime; runtime 1141 include/sound/pcm.h runtime->dma_buffer_p = bufp; runtime 1142 include/sound/pcm.h runtime->dma_area = bufp->area; runtime 1143 include/sound/pcm.h runtime->dma_addr = bufp->addr; runtime 1144 include/sound/pcm.h runtime->dma_bytes = bufp->bytes; runtime 1146 include/sound/pcm.h runtime->dma_buffer_p = NULL; runtime 1147 include/sound/pcm.h runtime->dma_area = NULL; runtime 1148 include/sound/pcm.h runtime->dma_addr = 0; runtime 1149 include/sound/pcm.h runtime->dma_bytes = 0; runtime 1158 include/sound/pcm.h static inline void snd_pcm_gettime(struct snd_pcm_runtime *runtime, runtime 1161 include/sound/pcm.h switch (runtime->tstamp_type) { runtime 1231 include/sound/pcm.h #define snd_pcm_get_dma_buf(substream) ((substream)->runtime->dma_buffer_p) runtime 1339 include/sound/pcm.h #define PCM_RUNTIME_CHECK(sub) snd_BUG_ON(!(sub) || !(sub)->runtime) runtime 5 include/sound/pcm_drm_eld.h int snd_pcm_hw_constraint_eld(struct snd_pcm_runtime *runtime, void *eld); runtime 7 include/sound/pcm_iec958.h int snd_pcm_create_iec958_consumer(struct snd_pcm_runtime *runtime, u8 *cs, runtime 89 include/sound/rawmidi.h struct snd_rawmidi_runtime *runtime; runtime 96 include/sound/soc-dpcm.h struct snd_pcm_runtime *runtime; runtime 95 include/sound/vx_core.h void (*dma_write)(struct vx_core *chip, struct snd_pcm_runtime *runtime, runtime 97 include/sound/vx_core.h void (*dma_read)(struct vx_core *chip, struct snd_pcm_runtime *runtime, runtime 275 include/sound/vx_core.h static inline void vx_pseudo_dma_write(struct vx_core *chip, struct snd_pcm_runtime *runtime, runtime 278 include/sound/vx_core.h chip->ops->dma_write(chip, runtime, pipe, count); runtime 281 include/sound/vx_core.h static inline void vx_pseudo_dma_read(struct vx_core *chip, struct snd_pcm_runtime *runtime, runtime 284 include/sound/vx_core.h chip->ops->dma_read(chip, runtime, pipe, count); runtime 100 include/sound/wss.h int (*rate_constraint) (struct snd_pcm_runtime *runtime); runtime 411 include/trace/events/sched.h TP_PROTO(struct task_struct *tsk, u64 runtime, u64 vruntime), runtime 413 include/trace/events/sched.h TP_ARGS(tsk, __perf_count(runtime), vruntime), runtime 418 include/trace/events/sched.h __field( u64, runtime ) runtime 425 include/trace/events/sched.h __entry->runtime = runtime; runtime 431 include/trace/events/sched.h (unsigned long long)__entry->runtime, runtime 436 include/trace/events/sched.h TP_PROTO(struct task_struct *tsk, u64 runtime, u64 vruntime), runtime 437 include/trace/events/sched.h TP_ARGS(tsk, runtime, vruntime)); runtime 2916 kernel/sched/core.c unsigned long to_ratio(u64 period, u64 runtime) runtime 2918 kernel/sched/core.c if (runtime == RUNTIME_INF) runtime 2929 kernel/sched/core.c return div64_u64(runtime << BW_SHIFT, period); runtime 7377 kernel/sched/core.c static int __cfs_schedulable(struct task_group *tg, u64 period, u64 runtime); runtime 258 kernel/sched/deadline.c div64_long((dl_se->runtime * dl_se->dl_period), runtime 337 kernel/sched/deadline.c void init_dl_bandwidth(struct dl_bandwidth *dl_b, u64 period, u64 runtime) runtime 341 kernel/sched/deadline.c dl_b->dl_runtime = runtime; runtime 677 kernel/sched/deadline.c dl_se->runtime = dl_se->dl_runtime; runtime 712 kernel/sched/deadline.c dl_se->runtime = pi_se->dl_runtime; runtime 715 kernel/sched/deadline.c if (dl_se->dl_yielded && dl_se->runtime > 0) runtime 716 kernel/sched/deadline.c dl_se->runtime = 0; runtime 724 kernel/sched/deadline.c while (dl_se->runtime <= 0) { runtime 726 kernel/sched/deadline.c dl_se->runtime += pi_se->dl_runtime; runtime 741 kernel/sched/deadline.c dl_se->runtime = pi_se->dl_runtime; runtime 797 kernel/sched/deadline.c left = (pi_se->dl_deadline >> DL_SCALE) * (dl_se->runtime >> DL_SCALE); runtime 835 kernel/sched/deadline.c dl_se->runtime = (dl_se->dl_density * laxity) >> BW_SHIFT; runtime 901 kernel/sched/deadline.c dl_se->runtime = pi_se->dl_runtime; runtime 1121 kernel/sched/deadline.c if (dl_se->runtime > 0) runtime 1122 kernel/sched/deadline.c dl_se->runtime = 0; runtime 1129 kernel/sched/deadline.c return (dl_se->runtime <= 0); runtime 1237 kernel/sched/deadline.c dl_se->runtime -= scaled_delta_exec; runtime 1738 kernel/sched/deadline.c hrtick_start(rq, p->dl.runtime); runtime 1822 kernel/sched/deadline.c if (hrtick_enabled(rq) && queued && p->dl.runtime > 0 && runtime 2468 kernel/sched/deadline.c u64 runtime = global_rt_runtime(); runtime 2470 kernel/sched/deadline.c u64 new_bw = to_ratio(period, runtime); runtime 2557 kernel/sched/deadline.c u64 runtime = attr->sched_runtime; runtime 2558 kernel/sched/deadline.c u64 new_bw = dl_policy(policy) ? to_ratio(period, runtime) : 0; runtime 958 kernel/sched/debug.c P(dl.runtime); runtime 2012 kernel/sched/fair.c u64 runtime, delta, now; runtime 2015 kernel/sched/fair.c runtime = p->se.sum_exec_runtime; runtime 2018 kernel/sched/fair.c delta = runtime - p->last_sum_exec_runtime; runtime 2029 kernel/sched/fair.c p->last_sum_exec_runtime = runtime; runtime 2129 kernel/sched/fair.c u64 runtime, period; runtime 2146 kernel/sched/fair.c runtime = numa_get_avg_runtime(p, &period); runtime 2182 kernel/sched/fair.c f_weight = div64_u64(runtime << 16, period + 1); runtime 2489 kernel/sched/fair.c u64 runtime = p->se.sum_exec_runtime; runtime 2620 kernel/sched/fair.c if (unlikely(p->se.sum_exec_runtime != runtime)) { runtime 2621 kernel/sched/fair.c u64 diff = p->se.sum_exec_runtime - runtime; runtime 4373 kernel/sched/fair.c cfs_b->runtime = cfs_b->quota; runtime 4397 kernel/sched/fair.c if (cfs_b->runtime > 0) { runtime 4398 kernel/sched/fair.c amount = min(cfs_b->runtime, min_amount); runtime 4399 kernel/sched/fair.c cfs_b->runtime -= amount; runtime 4623 kernel/sched/fair.c u64 runtime; runtime 4639 kernel/sched/fair.c runtime = -cfs_rq->runtime_remaining + 1; runtime 4640 kernel/sched/fair.c if (runtime > remaining) runtime 4641 kernel/sched/fair.c runtime = remaining; runtime 4642 kernel/sched/fair.c remaining -= runtime; runtime 4644 kernel/sched/fair.c cfs_rq->runtime_remaining += runtime; runtime 4669 kernel/sched/fair.c u64 runtime; runtime 4704 kernel/sched/fair.c while (throttled && cfs_b->runtime > 0 && !cfs_b->distribute_running) { runtime 4705 kernel/sched/fair.c runtime = cfs_b->runtime; runtime 4709 kernel/sched/fair.c runtime = distribute_cfs_runtime(cfs_b, runtime); runtime 4715 kernel/sched/fair.c lsub_positive(&cfs_b->runtime, runtime); runtime 4792 kernel/sched/fair.c cfs_b->runtime += slack_runtime; runtime 4795 kernel/sched/fair.c if (cfs_b->runtime > sched_cfs_bandwidth_slice() && runtime 4822 kernel/sched/fair.c u64 runtime = 0, slice = sched_cfs_bandwidth_slice(); runtime 4838 kernel/sched/fair.c if (cfs_b->quota != RUNTIME_INF && cfs_b->runtime > slice) runtime 4839 kernel/sched/fair.c runtime = cfs_b->runtime; runtime 4841 kernel/sched/fair.c if (runtime) runtime 4846 kernel/sched/fair.c if (!runtime) runtime 4849 kernel/sched/fair.c runtime = distribute_cfs_runtime(cfs_b, runtime); runtime 4852 kernel/sched/fair.c lsub_positive(&cfs_b->runtime, runtime); runtime 4987 kernel/sched/fair.c cfs_b->runtime = 0; runtime 41 kernel/sched/rt.c void init_rt_bandwidth(struct rt_bandwidth *rt_b, u64 period, u64 runtime) runtime 44 kernel/sched/rt.c rt_b->rt_runtime = runtime; runtime 853 kernel/sched/rt.c u64 runtime; runtime 858 kernel/sched/rt.c runtime = rt_rq->rt_runtime; runtime 859 kernel/sched/rt.c rt_rq->rt_time -= min(rt_rq->rt_time, overrun*runtime); runtime 860 kernel/sched/rt.c if (rt_rq->rt_throttled && rt_rq->rt_time < runtime) { runtime 910 kernel/sched/rt.c u64 runtime = sched_rt_runtime(rt_rq); runtime 915 kernel/sched/rt.c if (runtime >= sched_rt_period(rt_rq)) runtime 919 kernel/sched/rt.c runtime = sched_rt_runtime(rt_rq); runtime 920 kernel/sched/rt.c if (runtime == RUNTIME_INF) runtime 923 kernel/sched/rt.c if (rt_rq->rt_time > runtime) { runtime 2432 kernel/sched/rt.c u64 period, runtime; runtime 2435 kernel/sched/rt.c runtime = tg->rt_bandwidth.rt_runtime; runtime 2439 kernel/sched/rt.c runtime = d->rt_runtime; runtime 2445 kernel/sched/rt.c if (runtime > period && runtime != RUNTIME_INF) runtime 2451 kernel/sched/rt.c if (rt_bandwidth_enabled() && !runtime && tg_has_rt_tasks(tg)) runtime 2454 kernel/sched/rt.c total = to_ratio(period, runtime); runtime 2467 kernel/sched/rt.c runtime = child->rt_bandwidth.rt_runtime; runtime 2471 kernel/sched/rt.c runtime = d->rt_runtime; runtime 2474 kernel/sched/rt.c sum += to_ratio(period, runtime); runtime 2483 kernel/sched/rt.c static int __rt_schedulable(struct task_group *tg, u64 period, u64 runtime) runtime 2490 kernel/sched/rt.c .rt_runtime = runtime, runtime 342 kernel/sched/sched.h u64 runtime; runtime 1881 kernel/sched/sched.h extern void init_rt_bandwidth(struct rt_bandwidth *rt_b, u64 period, u64 runtime); runtime 1884 kernel/sched/sched.h extern void init_dl_bandwidth(struct dl_bandwidth *dl_b, u64 period, u64 runtime); runtime 1892 kernel/sched/sched.h unsigned long to_ratio(u64 period, u64 runtime); runtime 703 sound/aoa/codecs/onyx.c if (substream->runtime->format == SNDRV_PCM_FMTBIT_COMPRESSED_16BE) { runtime 715 sound/aoa/codecs/onyx.c switch (substream->runtime->rate) { runtime 90 sound/aoa/soundbus/i2sbus/pcm.c hw = &pi->substream->runtime->hw; runtime 195 sound/aoa/soundbus/i2sbus/pcm.c err = snd_pcm_hw_constraint_integer(pi->substream->runtime, runtime 330 sound/aoa/soundbus/i2sbus/pcm.c struct snd_pcm_runtime *runtime; runtime 355 sound/aoa/soundbus/i2sbus/pcm.c if (!pi->substream || !pi->substream->runtime) { runtime 360 sound/aoa/soundbus/i2sbus/pcm.c runtime = pi->substream->runtime; runtime 363 sound/aoa/soundbus/i2sbus/pcm.c ((i2sdev->format != runtime->format) runtime 364 sound/aoa/soundbus/i2sbus/pcm.c || (i2sdev->rate != runtime->rate))) { runtime 369 sound/aoa/soundbus/i2sbus/pcm.c i2sdev->format = runtime->format; runtime 370 sound/aoa/soundbus/i2sbus/pcm.c i2sdev->rate = runtime->rate; runtime 373 sound/aoa/soundbus/i2sbus/pcm.c nperiods = pi->substream->runtime->periods; runtime 392 sound/aoa/soundbus/i2sbus/pcm.c offset = runtime->dma_addr; runtime 412 sound/aoa/soundbus/i2sbus/pcm.c switch (runtime->format) { runtime 448 sound/aoa/soundbus/i2sbus/pcm.c runtime->rate, runtime 629 sound/aoa/soundbus/i2sbus/pcm.c if (fc >= pi->substream->runtime->buffer_size) runtime 630 sound/aoa/soundbus/i2sbus/pcm.c fc %= pi->substream->runtime->buffer_size; runtime 641 sound/aoa/soundbus/i2sbus/pcm.c struct snd_pcm_runtime *runtime; runtime 649 sound/aoa/soundbus/i2sbus/pcm.c runtime = pi->substream->runtime; runtime 660 sound/aoa/soundbus/i2sbus/pcm.c if (++i >= runtime->periods) { runtime 662 sound/aoa/soundbus/i2sbus/pcm.c pi->frame_count += runtime->buffer_size; runtime 671 sound/aoa/soundbus/i2sbus/pcm.c nframes = i * runtime->period_size; runtime 401 sound/arm/aaci.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 413 sound/arm/aaci.c runtime->private_data = aacirun; runtime 414 sound/arm/aaci.c runtime->hw = aaci_hw_info; runtime 415 sound/arm/aaci.c runtime->hw.rates = aacirun->pcm->rates; runtime 416 sound/arm/aaci.c snd_pcm_limit_hw_rates(runtime); runtime 419 sound/arm/aaci.c runtime->hw.channels_max = 6; runtime 422 sound/arm/aaci.c ret = snd_pcm_hw_rule_add(substream->runtime, 0, runtime 430 sound/arm/aaci.c snd_ac97_pcm_double_rate_rules(runtime); runtime 438 sound/arm/aaci.c runtime->hw.fifo_size = aaci->fifo_depth * 2; runtime 459 sound/arm/aaci.c struct aaci_runtime *aacirun = substream->runtime->private_data; runtime 475 sound/arm/aaci.c struct aaci_runtime *aacirun = substream->runtime->private_data; runtime 504 sound/arm/aaci.c struct aaci_runtime *aacirun = substream->runtime->private_data; runtime 545 sound/arm/aaci.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 546 sound/arm/aaci.c struct aaci_runtime *aacirun = runtime->private_data; runtime 549 sound/arm/aaci.c aacirun->start = runtime->dma_area; runtime 559 sound/arm/aaci.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 560 sound/arm/aaci.c struct aaci_runtime *aacirun = runtime->private_data; runtime 563 sound/arm/aaci.c return bytes_to_frames(runtime, bytes); runtime 597 sound/arm/aaci.c struct aaci_runtime *aacirun = substream->runtime->private_data; runtime 682 sound/arm/aaci.c struct aaci_runtime *aacirun = substream->runtime->private_data; runtime 722 sound/arm/aaci.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 729 sound/arm/aaci.c aaci_ac97_write(aaci->ac97, AC97_PCM_LR_ADC_RATE, runtime->rate); runtime 730 sound/arm/aaci.c aaci_ac97_write(aaci->ac97, AC97_PCM_MIC_ADC_RATE, runtime->rate); runtime 66 sound/arm/pxa2xx-ac97.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 74 sound/arm/pxa2xx-ac97.c runtime->hw.channels_min = 2; runtime 75 sound/arm/pxa2xx-ac97.c runtime->hw.channels_max = 2; runtime 79 sound/arm/pxa2xx-ac97.c runtime->hw.rates = pxa2xx_ac97_ac97->rates[i]; runtime 80 sound/arm/pxa2xx-ac97.c snd_pcm_limit_hw_rates(runtime); runtime 105 sound/arm/pxa2xx-ac97.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 114 sound/arm/pxa2xx-ac97.c return snd_ac97_set_rate(pxa2xx_ac97_ac97, reg, runtime->rate); runtime 92 sound/arm/pxa2xx-pcm-lib.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 96 sound/arm/pxa2xx-pcm-lib.c runtime->hw = pxa2xx_pcm_hardware; runtime 107 sound/arm/pxa2xx-pcm-lib.c ret = snd_pcm_hw_constraint_step(runtime, 0, runtime 112 sound/arm/pxa2xx-pcm-lib.c ret = snd_pcm_hw_constraint_step(runtime, 0, runtime 117 sound/arm/pxa2xx-pcm-lib.c ret = snd_pcm_hw_constraint_integer(runtime, runtime 137 sound/arm/pxa2xx-pcm-lib.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 138 sound/arm/pxa2xx-pcm-lib.c return dma_mmap_wc(substream->pcm->card->dev, vma, runtime->dma_area, runtime 139 sound/arm/pxa2xx-pcm-lib.c runtime->dma_addr, runtime->dma_bytes); runtime 89 sound/atmel/ac97c.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 93 sound/atmel/ac97c.c runtime->hw = atmel_ac97c_hw; runtime 95 sound/atmel/ac97c.c runtime->hw.rate_min = chip->cur_rate; runtime 96 sound/atmel/ac97c.c runtime->hw.rate_max = chip->cur_rate; runtime 99 sound/atmel/ac97c.c runtime->hw.formats = pcm_format_to_bits(chip->cur_format); runtime 108 sound/atmel/ac97c.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 112 sound/atmel/ac97c.c runtime->hw = atmel_ac97c_hw; runtime 114 sound/atmel/ac97c.c runtime->hw.rate_min = chip->cur_rate; runtime 115 sound/atmel/ac97c.c runtime->hw.rate_max = chip->cur_rate; runtime 118 sound/atmel/ac97c.c runtime->hw.formats = pcm_format_to_bits(chip->cur_format); runtime 201 sound/atmel/ac97c.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 202 sound/atmel/ac97c.c int block_size = frames_to_bytes(runtime, runtime->period_size); runtime 210 sound/atmel/ac97c.c switch (runtime->channels) { runtime 231 sound/atmel/ac97c.c switch (runtime->format) { runtime 255 sound/atmel/ac97c.c if (runtime->rate != 48000) { runtime 266 sound/atmel/ac97c.c runtime->rate); runtime 269 sound/atmel/ac97c.c runtime->rate); runtime 272 sound/atmel/ac97c.c writel(runtime->dma_addr, chip->regs + ATMEL_PDC_TPR); runtime 274 sound/atmel/ac97c.c writel(runtime->dma_addr + block_size, chip->regs + ATMEL_PDC_TNPR); runtime 283 sound/atmel/ac97c.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 284 sound/atmel/ac97c.c int block_size = frames_to_bytes(runtime, runtime->period_size); runtime 292 sound/atmel/ac97c.c switch (runtime->channels) { runtime 313 sound/atmel/ac97c.c switch (runtime->format) { runtime 337 sound/atmel/ac97c.c if (runtime->rate != 48000) { runtime 348 sound/atmel/ac97c.c runtime->rate); runtime 351 sound/atmel/ac97c.c runtime->rate); runtime 354 sound/atmel/ac97c.c writel(runtime->dma_addr, chip->regs + ATMEL_PDC_RPR); runtime 356 sound/atmel/ac97c.c writel(runtime->dma_addr + block_size, chip->regs + ATMEL_PDC_RNPR); runtime 429 sound/atmel/ac97c.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 434 sound/atmel/ac97c.c bytes -= runtime->dma_addr; runtime 436 sound/atmel/ac97c.c frames = bytes_to_frames(runtime, bytes); runtime 437 sound/atmel/ac97c.c if (frames >= runtime->buffer_size) runtime 438 sound/atmel/ac97c.c frames -= runtime->buffer_size; runtime 446 sound/atmel/ac97c.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 451 sound/atmel/ac97c.c bytes -= runtime->dma_addr; runtime 453 sound/atmel/ac97c.c frames = bytes_to_frames(runtime, bytes); runtime 454 sound/atmel/ac97c.c if (frames >= runtime->buffer_size) runtime 455 sound/atmel/ac97c.c frames -= runtime->buffer_size; runtime 491 sound/atmel/ac97c.c struct snd_pcm_runtime *runtime; runtime 501 sound/atmel/ac97c.c runtime = chip->playback_substream->runtime; runtime 502 sound/atmel/ac97c.c block_size = frames_to_bytes(runtime, runtime->period_size); runtime 505 sound/atmel/ac97c.c if (chip->playback_period == runtime->periods) runtime 508 sound/atmel/ac97c.c if (next_period == runtime->periods) runtime 513 sound/atmel/ac97c.c writel(runtime->dma_addr + offset, chip->regs + ATMEL_PDC_TNPR); runtime 519 sound/atmel/ac97c.c runtime = chip->capture_substream->runtime; runtime 520 sound/atmel/ac97c.c block_size = frames_to_bytes(runtime, runtime->period_size); runtime 523 sound/atmel/ac97c.c if (chip->capture_period == runtime->periods) runtime 526 sound/atmel/ac97c.c if (next_period == runtime->periods) runtime 531 sound/atmel/ac97c.c writel(runtime->dma_addr + offset, chip->regs + ATMEL_PDC_RNPR); runtime 81 sound/core/compress_offload.c struct snd_compr_runtime *runtime; runtime 122 sound/core/compress_offload.c runtime = kzalloc(sizeof(*runtime), GFP_KERNEL); runtime 123 sound/core/compress_offload.c if (!runtime) { runtime 128 sound/core/compress_offload.c runtime->state = SNDRV_PCM_STATE_OPEN; runtime 129 sound/core/compress_offload.c init_waitqueue_head(&runtime->sleep); runtime 130 sound/core/compress_offload.c data->stream.runtime = runtime; runtime 136 sound/core/compress_offload.c kfree(runtime); runtime 146 sound/core/compress_offload.c struct snd_compr_runtime *runtime = data->stream.runtime; runtime 150 sound/core/compress_offload.c switch (runtime->state) { runtime 161 sound/core/compress_offload.c if (!data->stream.runtime->dma_buffer_p) runtime 162 sound/core/compress_offload.c kfree(data->stream.runtime->buffer); runtime 163 sound/core/compress_offload.c kfree(data->stream.runtime); runtime 177 sound/core/compress_offload.c stream->runtime->total_bytes_transferred = tstamp->copied_total; runtime 179 sound/core/compress_offload.c stream->runtime->total_bytes_available = tstamp->copied_total; runtime 190 sound/core/compress_offload.c if (stream->runtime->total_bytes_available == 0 && runtime 191 sound/core/compress_offload.c stream->runtime->state == SNDRV_PCM_STATE_SETUP && runtime 194 sound/core/compress_offload.c return stream->runtime->buffer_size; runtime 197 sound/core/compress_offload.c stream->runtime->total_bytes_available, runtime 198 sound/core/compress_offload.c stream->runtime->total_bytes_transferred); runtime 199 sound/core/compress_offload.c if (stream->runtime->total_bytes_available == runtime 200 sound/core/compress_offload.c stream->runtime->total_bytes_transferred) { runtime 203 sound/core/compress_offload.c return stream->runtime->buffer_size; runtime 210 sound/core/compress_offload.c avail->avail = stream->runtime->total_bytes_available - runtime 211 sound/core/compress_offload.c stream->runtime->total_bytes_transferred; runtime 213 sound/core/compress_offload.c avail->avail = stream->runtime->buffer_size - avail->avail; runtime 235 sound/core/compress_offload.c switch (stream->runtime->state) { runtime 255 sound/core/compress_offload.c struct snd_compr_runtime *runtime = stream->runtime; runtime 257 sound/core/compress_offload.c u64 app_pointer = div64_u64(runtime->total_bytes_available, runtime 258 sound/core/compress_offload.c runtime->buffer_size); runtime 259 sound/core/compress_offload.c app_pointer = runtime->total_bytes_available - runtime 260 sound/core/compress_offload.c (app_pointer * runtime->buffer_size); runtime 262 sound/core/compress_offload.c dstn = runtime->buffer + app_pointer; runtime 265 sound/core/compress_offload.c if (count < runtime->buffer_size - app_pointer) { runtime 269 sound/core/compress_offload.c copy = runtime->buffer_size - app_pointer; runtime 272 sound/core/compress_offload.c if (copy_from_user(runtime->buffer, buf + copy, count - copy)) runtime 295 sound/core/compress_offload.c switch (stream->runtime->state) { runtime 318 sound/core/compress_offload.c stream->runtime->total_bytes_available += retval; runtime 322 sound/core/compress_offload.c if (stream->runtime->state == SNDRV_PCM_STATE_SETUP) { runtime 323 sound/core/compress_offload.c stream->runtime->state = SNDRV_PCM_STATE_PREPARED; runtime 350 sound/core/compress_offload.c switch (stream->runtime->state) { runtime 375 sound/core/compress_offload.c stream->runtime->total_bytes_transferred += retval; runtime 409 sound/core/compress_offload.c switch (stream->runtime->state) { runtime 418 sound/core/compress_offload.c poll_wait(f, &stream->runtime->sleep, wait); runtime 423 sound/core/compress_offload.c switch (stream->runtime->state) { runtime 429 sound/core/compress_offload.c stream->runtime->state = SNDRV_PCM_STATE_SETUP; runtime 434 sound/core/compress_offload.c if (avail >= stream->runtime->fragment_size) runtime 505 sound/core/compress_offload.c if (stream->runtime->dma_buffer_p) { runtime 507 sound/core/compress_offload.c if (buffer_size > stream->runtime->dma_buffer_p->bytes) runtime 511 sound/core/compress_offload.c buffer = stream->runtime->dma_buffer_p->area; runtime 520 sound/core/compress_offload.c stream->runtime->fragment_size = params->buffer.fragment_size; runtime 521 sound/core/compress_offload.c stream->runtime->fragments = params->buffer.fragments; runtime 522 sound/core/compress_offload.c stream->runtime->buffer = buffer; runtime 523 sound/core/compress_offload.c stream->runtime->buffer_size = buffer_size; runtime 551 sound/core/compress_offload.c if (stream->runtime->state == SNDRV_PCM_STATE_OPEN) { runtime 577 sound/core/compress_offload.c stream->runtime->state = SNDRV_PCM_STATE_SETUP; runtime 669 sound/core/compress_offload.c if (stream->runtime->state != SNDRV_PCM_STATE_RUNNING) runtime 673 sound/core/compress_offload.c stream->runtime->state = SNDRV_PCM_STATE_PAUSED; runtime 681 sound/core/compress_offload.c if (stream->runtime->state != SNDRV_PCM_STATE_PAUSED) runtime 685 sound/core/compress_offload.c stream->runtime->state = SNDRV_PCM_STATE_RUNNING; runtime 693 sound/core/compress_offload.c switch (stream->runtime->state) { runtime 706 sound/core/compress_offload.c stream->runtime->state = SNDRV_PCM_STATE_RUNNING; runtime 714 sound/core/compress_offload.c switch (stream->runtime->state) { runtime 726 sound/core/compress_offload.c stream->runtime->total_bytes_available = 0; runtime 727 sound/core/compress_offload.c stream->runtime->total_bytes_transferred = 0; runtime 741 sound/core/compress_offload.c wake_up(&stream->runtime->sleep); runtime 758 sound/core/compress_offload.c if (stream->runtime->state == state) runtime 761 sound/core/compress_offload.c stream->runtime->state = state; runtime 783 sound/core/compress_offload.c stream->runtime->state = SNDRV_PCM_STATE_DRAINING; runtime 792 sound/core/compress_offload.c ret = wait_event_interruptible(stream->runtime->sleep, runtime 793 sound/core/compress_offload.c (stream->runtime->state != SNDRV_PCM_STATE_DRAINING)); runtime 800 sound/core/compress_offload.c wake_up(&stream->runtime->sleep); runtime 810 sound/core/compress_offload.c switch (stream->runtime->state) { runtime 825 sound/core/compress_offload.c wake_up(&stream->runtime->sleep); runtime 837 sound/core/compress_offload.c if (stream->runtime->state != SNDRV_PCM_STATE_RUNNING) runtime 862 sound/core/compress_offload.c switch (stream->runtime->state) { runtime 885 sound/core/compress_offload.c wake_up(&stream->runtime->sleep); runtime 541 sound/core/oss/pcm_oss.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 544 sound/core/oss/pcm_oss.c plugin = runtime->oss.plugin_first; runtime 550 sound/core/oss/pcm_oss.c runtime->oss.plugin_first = runtime->oss.plugin_last = NULL; runtime 556 sound/core/oss/pcm_oss.c struct snd_pcm_runtime *runtime = plugin->plug->runtime; runtime 557 sound/core/oss/pcm_oss.c plugin->next = runtime->oss.plugin_first; runtime 559 sound/core/oss/pcm_oss.c if (runtime->oss.plugin_first) { runtime 560 sound/core/oss/pcm_oss.c runtime->oss.plugin_first->prev = plugin; runtime 561 sound/core/oss/pcm_oss.c runtime->oss.plugin_first = plugin; runtime 563 sound/core/oss/pcm_oss.c runtime->oss.plugin_last = runtime 564 sound/core/oss/pcm_oss.c runtime->oss.plugin_first = plugin; runtime 571 sound/core/oss/pcm_oss.c struct snd_pcm_runtime *runtime = plugin->plug->runtime; runtime 573 sound/core/oss/pcm_oss.c plugin->prev = runtime->oss.plugin_last; runtime 574 sound/core/oss/pcm_oss.c if (runtime->oss.plugin_last) { runtime 575 sound/core/oss/pcm_oss.c runtime->oss.plugin_last->next = plugin; runtime 576 sound/core/oss/pcm_oss.c runtime->oss.plugin_last = plugin; runtime 578 sound/core/oss/pcm_oss.c runtime->oss.plugin_last = runtime 579 sound/core/oss/pcm_oss.c runtime->oss.plugin_first = plugin; runtime 587 sound/core/oss/pcm_oss.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 589 sound/core/oss/pcm_oss.c long bytes = frames_to_bytes(runtime, frames); runtime 590 sound/core/oss/pcm_oss.c if (buffer_size == runtime->oss.buffer_bytes) runtime 593 sound/core/oss/pcm_oss.c return runtime->oss.buffer_bytes * bytes / buffer_size; runtime 596 sound/core/oss/pcm_oss.c u64 bsize = (u64)runtime->oss.buffer_bytes * (u64)bytes; runtime 604 sound/core/oss/pcm_oss.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 606 sound/core/oss/pcm_oss.c if (buffer_size == runtime->oss.buffer_bytes) runtime 607 sound/core/oss/pcm_oss.c return bytes_to_frames(runtime, bytes); runtime 608 sound/core/oss/pcm_oss.c return bytes_to_frames(runtime, (buffer_size * bytes) / runtime->oss.buffer_bytes); runtime 612 sound/core/oss/pcm_oss.c snd_pcm_uframes_t get_hw_ptr_period(struct snd_pcm_runtime *runtime) runtime 614 sound/core/oss/pcm_oss.c return runtime->hw_ptr_interrupt; runtime 688 sound/core/oss/pcm_oss.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 698 sound/core/oss/pcm_oss.c if (oss_buffer_size > runtime->oss.mmap_bytes) runtime 699 sound/core/oss/pcm_oss.c oss_buffer_size = runtime->oss.mmap_bytes; runtime 704 sound/core/oss/pcm_oss.c else if (runtime->oss.fragshift) { runtime 705 sound/core/oss/pcm_oss.c oss_period_size = 1 << runtime->oss.fragshift; runtime 716 sound/core/oss/pcm_oss.c if (runtime->oss.subdivision == 0) { runtime 723 sound/core/oss/pcm_oss.c sd = runtime->oss.subdivision; runtime 749 sound/core/oss/pcm_oss.c if (runtime->oss.maxfrags && s > runtime->oss.maxfrags) runtime 750 sound/core/oss/pcm_oss.c s = runtime->oss.maxfrags; runtime 765 sound/core/oss/pcm_oss.c runtime->oss.period_bytes = oss_period_size; runtime 766 sound/core/oss/pcm_oss.c runtime->oss.period_frames = 1; runtime 767 sound/core/oss/pcm_oss.c runtime->oss.periods = oss_periods; runtime 812 sound/core/oss/pcm_oss.c static int lock_params(struct snd_pcm_runtime *runtime) runtime 814 sound/core/oss/pcm_oss.c if (mutex_lock_interruptible(&runtime->oss.params_lock)) runtime 816 sound/core/oss/pcm_oss.c if (atomic_read(&runtime->oss.rw_ref)) { runtime 817 sound/core/oss/pcm_oss.c mutex_unlock(&runtime->oss.params_lock); runtime 823 sound/core/oss/pcm_oss.c static void unlock_params(struct snd_pcm_runtime *runtime) runtime 825 sound/core/oss/pcm_oss.c mutex_unlock(&runtime->oss.params_lock); runtime 831 sound/core/oss/pcm_oss.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 843 sound/core/oss/pcm_oss.c if (!runtime->oss.params) runtime 875 sound/core/oss/pcm_oss.c choose_rate(substream, sparams, runtime->oss.rate); runtime 876 sound/core/oss/pcm_oss.c snd_pcm_hw_param_near(substream, sparams, SNDRV_PCM_HW_PARAM_CHANNELS, runtime->oss.channels, NULL); runtime 878 sound/core/oss/pcm_oss.c format = snd_pcm_oss_format_from(runtime->oss.format); runtime 912 sound/core/oss/pcm_oss.c (__force int)snd_pcm_oss_format_from(runtime->oss.format), 0); runtime 914 sound/core/oss/pcm_oss.c runtime->oss.channels, 0); runtime 916 sound/core/oss/pcm_oss.c runtime->oss.rate, 0); runtime 932 sound/core/oss/pcm_oss.c n = snd_pcm_plug_slave_size(substream, runtime->oss.period_bytes / oss_frame_size); runtime 938 sound/core/oss/pcm_oss.c runtime->oss.periods, NULL); runtime 963 sound/core/oss/pcm_oss.c if (runtime->oss.plugin_first) { runtime 984 sound/core/oss/pcm_oss.c if (runtime->oss.trigger) { runtime 987 sound/core/oss/pcm_oss.c sw_params->start_threshold = runtime->boundary; runtime 991 sound/core/oss/pcm_oss.c sw_params->stop_threshold = runtime->boundary; runtime 993 sound/core/oss/pcm_oss.c sw_params->stop_threshold = runtime->buffer_size; runtime 997 sound/core/oss/pcm_oss.c 1 : runtime->period_size; runtime 1004 sound/core/oss/pcm_oss.c frames = runtime->period_size + 16; runtime 1005 sound/core/oss/pcm_oss.c if (frames > runtime->buffer_size) runtime 1006 sound/core/oss/pcm_oss.c frames = runtime->buffer_size; runtime 1016 sound/core/oss/pcm_oss.c runtime->oss.periods = params_periods(sparams); runtime 1023 sound/core/oss/pcm_oss.c if (runtime->oss.plugin_first) { runtime 1031 sound/core/oss/pcm_oss.c oss_buffer_size = oss_period_size * runtime->oss.periods; runtime 1037 sound/core/oss/pcm_oss.c runtime->oss.period_bytes = oss_period_size; runtime 1038 sound/core/oss/pcm_oss.c runtime->oss.buffer_bytes = oss_buffer_size; runtime 1041 sound/core/oss/pcm_oss.c runtime->oss.period_bytes, runtime 1042 sound/core/oss/pcm_oss.c runtime->oss.buffer_bytes); runtime 1047 sound/core/oss/pcm_oss.c runtime->oss.format = snd_pcm_oss_format_to(params_format(params)); runtime 1048 sound/core/oss/pcm_oss.c runtime->oss.channels = params_channels(params); runtime 1049 sound/core/oss/pcm_oss.c runtime->oss.rate = params_rate(params); runtime 1051 sound/core/oss/pcm_oss.c kvfree(runtime->oss.buffer); runtime 1052 sound/core/oss/pcm_oss.c runtime->oss.buffer = kvzalloc(runtime->oss.period_bytes, GFP_KERNEL); runtime 1053 sound/core/oss/pcm_oss.c if (!runtime->oss.buffer) { runtime 1058 sound/core/oss/pcm_oss.c runtime->oss.params = 0; runtime 1059 sound/core/oss/pcm_oss.c runtime->oss.prepare = 1; runtime 1060 sound/core/oss/pcm_oss.c runtime->oss.buffer_used = 0; runtime 1061 sound/core/oss/pcm_oss.c if (runtime->dma_area) runtime 1062 sound/core/oss/pcm_oss.c snd_pcm_format_set_silence(runtime->format, runtime->dma_area, bytes_to_samples(runtime, runtime->dma_bytes)); runtime 1064 sound/core/oss/pcm_oss.c runtime->oss.period_frames = snd_pcm_alsa_frames(substream, oss_period_size); runtime 1078 sound/core/oss/pcm_oss.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1082 sound/core/oss/pcm_oss.c if (!(mutex_trylock(&runtime->oss.params_lock))) runtime 1084 sound/core/oss/pcm_oss.c } else if (mutex_lock_interruptible(&runtime->oss.params_lock)) runtime 1088 sound/core/oss/pcm_oss.c mutex_unlock(&runtime->oss.params_lock); runtime 1103 sound/core/oss/pcm_oss.c if (substream->runtime->oss.params) { runtime 1123 sound/core/oss/pcm_oss.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1131 sound/core/oss/pcm_oss.c runtime->oss.prepare = 0; runtime 1132 sound/core/oss/pcm_oss.c runtime->oss.prev_hw_ptr_period = 0; runtime 1133 sound/core/oss/pcm_oss.c runtime->oss.period_ptr = 0; runtime 1134 sound/core/oss/pcm_oss.c runtime->oss.buffer_used = 0; runtime 1141 sound/core/oss/pcm_oss.c struct snd_pcm_runtime *runtime; runtime 1144 sound/core/oss/pcm_oss.c runtime = substream->runtime; runtime 1145 sound/core/oss/pcm_oss.c if (runtime->oss.params) { runtime 1150 sound/core/oss/pcm_oss.c if (runtime->oss.prepare) { runtime 1151 sound/core/oss/pcm_oss.c if (mutex_lock_interruptible(&runtime->oss.params_lock)) runtime 1154 sound/core/oss/pcm_oss.c mutex_unlock(&runtime->oss.params_lock); runtime 1164 sound/core/oss/pcm_oss.c struct snd_pcm_runtime *runtime; runtime 1167 sound/core/oss/pcm_oss.c runtime = substream->runtime; runtime 1168 sound/core/oss/pcm_oss.c if (runtime->oss.params) { runtime 1173 sound/core/oss/pcm_oss.c if (runtime->oss.prepare) { runtime 1183 sound/core/oss/pcm_oss.c struct snd_pcm_runtime *runtime; runtime 1191 sound/core/oss/pcm_oss.c runtime = substream->runtime; runtime 1192 sound/core/oss/pcm_oss.c if (*delay <= (snd_pcm_sframes_t)runtime->buffer_size) runtime 1196 sound/core/oss/pcm_oss.c frames = (*delay - runtime->buffer_size) + runtime->period_size - 1; runtime 1197 sound/core/oss/pcm_oss.c frames /= runtime->period_size; runtime 1198 sound/core/oss/pcm_oss.c frames *= runtime->period_size; runtime 1208 sound/core/oss/pcm_oss.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1211 sound/core/oss/pcm_oss.c if (runtime->status->state == SNDRV_PCM_STATE_XRUN || runtime 1212 sound/core/oss/pcm_oss.c runtime->status->state == SNDRV_PCM_STATE_SUSPENDED) { runtime 1216 sound/core/oss/pcm_oss.c runtime->status->state == SNDRV_PCM_STATE_XRUN ? runtime 1229 sound/core/oss/pcm_oss.c if (runtime->status->state == SNDRV_PCM_STATE_PREPARED) runtime 1237 sound/core/oss/pcm_oss.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1241 sound/core/oss/pcm_oss.c if (runtime->status->state == SNDRV_PCM_STATE_XRUN || runtime 1242 sound/core/oss/pcm_oss.c runtime->status->state == SNDRV_PCM_STATE_SUSPENDED) { runtime 1246 sound/core/oss/pcm_oss.c runtime->status->state == SNDRV_PCM_STATE_XRUN ? runtime 1252 sound/core/oss/pcm_oss.c } else if (runtime->status->state == SNDRV_PCM_STATE_SETUP) { runtime 1263 sound/core/oss/pcm_oss.c if (runtime->status->state == SNDRV_PCM_STATE_DRAINING) { runtime 1279 sound/core/oss/pcm_oss.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1282 sound/core/oss/pcm_oss.c if (runtime->status->state == SNDRV_PCM_STATE_XRUN || runtime 1283 sound/core/oss/pcm_oss.c runtime->status->state == SNDRV_PCM_STATE_SUSPENDED) { runtime 1287 sound/core/oss/pcm_oss.c runtime->status->state == SNDRV_PCM_STATE_XRUN ? runtime 1300 sound/core/oss/pcm_oss.c if (runtime->status->state == SNDRV_PCM_STATE_PREPARED) runtime 1308 sound/core/oss/pcm_oss.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1311 sound/core/oss/pcm_oss.c if (runtime->status->state == SNDRV_PCM_STATE_XRUN || runtime 1312 sound/core/oss/pcm_oss.c runtime->status->state == SNDRV_PCM_STATE_SUSPENDED) { runtime 1316 sound/core/oss/pcm_oss.c runtime->status->state == SNDRV_PCM_STATE_XRUN ? runtime 1322 sound/core/oss/pcm_oss.c } else if (runtime->status->state == SNDRV_PCM_STATE_SETUP) { runtime 1337 sound/core/oss/pcm_oss.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1340 sound/core/oss/pcm_oss.c if (runtime->oss.plugin_first) { runtime 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; runtime 1344 sound/core/oss/pcm_oss.c if (copy_from_user(runtime->oss.buffer, (const char __force __user *)buf, bytes)) runtime 1346 sound/core/oss/pcm_oss.c buf = runtime->oss.buffer; runtime 1359 sound/core/oss/pcm_oss.c frames = bytes_to_frames(runtime, bytes); runtime 1363 sound/core/oss/pcm_oss.c bytes = frames_to_bytes(runtime, frames1); runtime 1372 sound/core/oss/pcm_oss.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1377 sound/core/oss/pcm_oss.c atomic_inc(&runtime->oss.rw_ref); runtime 1379 sound/core/oss/pcm_oss.c if (mutex_lock_interruptible(&runtime->oss.params_lock)) { runtime 1386 sound/core/oss/pcm_oss.c if (bytes < runtime->oss.period_bytes || runtime->oss.buffer_used > 0) { runtime 1388 sound/core/oss/pcm_oss.c if (tmp + runtime->oss.buffer_used > runtime->oss.period_bytes) runtime 1389 sound/core/oss/pcm_oss.c tmp = runtime->oss.period_bytes - runtime->oss.buffer_used; runtime 1391 sound/core/oss/pcm_oss.c if (copy_from_user(runtime->oss.buffer + runtime->oss.buffer_used, buf, tmp)) { runtime 1396 sound/core/oss/pcm_oss.c runtime->oss.buffer_used += tmp; runtime 1401 sound/core/oss/pcm_oss.c runtime->oss.buffer_used == runtime->oss.period_bytes) { runtime 1402 sound/core/oss/pcm_oss.c tmp = snd_pcm_oss_write2(substream, runtime->oss.buffer + runtime->oss.period_ptr, runtime 1403 sound/core/oss/pcm_oss.c runtime->oss.buffer_used - runtime->oss.period_ptr, 1); runtime 1406 sound/core/oss/pcm_oss.c runtime->oss.bytes += tmp; runtime 1407 sound/core/oss/pcm_oss.c runtime->oss.period_ptr += tmp; runtime 1408 sound/core/oss/pcm_oss.c runtime->oss.period_ptr %= runtime->oss.period_bytes; runtime 1409 sound/core/oss/pcm_oss.c if (runtime->oss.period_ptr == 0 || runtime 1410 sound/core/oss/pcm_oss.c runtime->oss.period_ptr == runtime->oss.buffer_used) runtime 1411 sound/core/oss/pcm_oss.c runtime->oss.buffer_used = 0; runtime 1420 sound/core/oss/pcm_oss.c runtime->oss.period_bytes, 0); runtime 1423 sound/core/oss/pcm_oss.c runtime->oss.bytes += tmp; runtime 1428 sound/core/oss/pcm_oss.c tmp != runtime->oss.period_bytes) runtime 1432 sound/core/oss/pcm_oss.c mutex_unlock(&runtime->oss.params_lock); runtime 1441 sound/core/oss/pcm_oss.c atomic_dec(&runtime->oss.rw_ref); runtime 1447 sound/core/oss/pcm_oss.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1451 sound/core/oss/pcm_oss.c if (runtime->oss.plugin_first) { runtime 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; runtime 1455 sound/core/oss/pcm_oss.c buf = runtime->oss.buffer; runtime 1469 sound/core/oss/pcm_oss.c frames = bytes_to_frames(runtime, bytes); runtime 1473 sound/core/oss/pcm_oss.c bytes = frames_to_bytes(runtime, frames1); runtime 1482 sound/core/oss/pcm_oss.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1487 sound/core/oss/pcm_oss.c atomic_inc(&runtime->oss.rw_ref); runtime 1489 sound/core/oss/pcm_oss.c if (mutex_lock_interruptible(&runtime->oss.params_lock)) { runtime 1496 sound/core/oss/pcm_oss.c if (bytes < runtime->oss.period_bytes || runtime->oss.buffer_used > 0) { runtime 1497 sound/core/oss/pcm_oss.c if (runtime->oss.buffer_used == 0) { runtime 1498 sound/core/oss/pcm_oss.c tmp = snd_pcm_oss_read2(substream, runtime->oss.buffer, runtime->oss.period_bytes, 1); runtime 1501 sound/core/oss/pcm_oss.c runtime->oss.bytes += tmp; runtime 1502 sound/core/oss/pcm_oss.c runtime->oss.period_ptr = tmp; runtime 1503 sound/core/oss/pcm_oss.c runtime->oss.buffer_used = tmp; runtime 1506 sound/core/oss/pcm_oss.c if ((size_t) tmp > runtime->oss.buffer_used) runtime 1507 sound/core/oss/pcm_oss.c tmp = runtime->oss.buffer_used; runtime 1508 sound/core/oss/pcm_oss.c if (copy_to_user(buf, runtime->oss.buffer + (runtime->oss.period_ptr - runtime->oss.buffer_used), tmp)) { runtime 1515 sound/core/oss/pcm_oss.c runtime->oss.buffer_used -= tmp; runtime 1518 sound/core/oss/pcm_oss.c runtime->oss.period_bytes, 0); runtime 1521 sound/core/oss/pcm_oss.c runtime->oss.bytes += tmp; runtime 1527 sound/core/oss/pcm_oss.c mutex_unlock(&runtime->oss.params_lock); runtime 1536 sound/core/oss/pcm_oss.c atomic_dec(&runtime->oss.rw_ref); runtime 1543 sound/core/oss/pcm_oss.c struct snd_pcm_runtime *runtime; runtime 1550 sound/core/oss/pcm_oss.c runtime = substream->runtime; runtime 1552 sound/core/oss/pcm_oss.c mutex_lock(&runtime->oss.params_lock); runtime 1553 sound/core/oss/pcm_oss.c runtime->oss.prepare = 1; runtime 1554 sound/core/oss/pcm_oss.c runtime->oss.buffer_used = 0; runtime 1555 sound/core/oss/pcm_oss.c runtime->oss.prev_hw_ptr_period = 0; runtime 1556 sound/core/oss/pcm_oss.c runtime->oss.period_ptr = 0; runtime 1557 sound/core/oss/pcm_oss.c mutex_unlock(&runtime->oss.params_lock); runtime 1580 sound/core/oss/pcm_oss.c struct snd_pcm_runtime *runtime; runtime 1586 sound/core/oss/pcm_oss.c runtime = substream->runtime; runtime 1588 sound/core/oss/pcm_oss.c add_wait_queue(&runtime->sleep, &wait); runtime 1593 sound/core/oss/pcm_oss.c result = snd_pcm_oss_write2(substream, runtime->oss.buffer, size, 1); runtime 1595 sound/core/oss/pcm_oss.c runtime->oss.buffer_used = 0; runtime 1604 sound/core/oss/pcm_oss.c state = runtime->status->state; runtime 1622 sound/core/oss/pcm_oss.c remove_wait_queue(&runtime->sleep, &wait); runtime 1631 sound/core/oss/pcm_oss.c struct snd_pcm_runtime *runtime; runtime 1638 sound/core/oss/pcm_oss.c runtime = substream->runtime; runtime 1643 sound/core/oss/pcm_oss.c atomic_inc(&runtime->oss.rw_ref); runtime 1644 sound/core/oss/pcm_oss.c if (mutex_lock_interruptible(&runtime->oss.params_lock)) { runtime 1645 sound/core/oss/pcm_oss.c atomic_dec(&runtime->oss.rw_ref); runtime 1648 sound/core/oss/pcm_oss.c format = snd_pcm_oss_format_from(runtime->oss.format); runtime 1650 sound/core/oss/pcm_oss.c if (runtime->oss.buffer_used > 0) { runtime 1654 sound/core/oss/pcm_oss.c size = (8 * (runtime->oss.period_bytes - runtime->oss.buffer_used) + 7) / width; runtime 1656 sound/core/oss/pcm_oss.c runtime->oss.buffer + runtime->oss.buffer_used, runtime 1658 sound/core/oss/pcm_oss.c err = snd_pcm_oss_sync1(substream, runtime->oss.period_bytes); runtime 1661 sound/core/oss/pcm_oss.c } else if (runtime->oss.period_ptr > 0) { runtime 1665 sound/core/oss/pcm_oss.c size = runtime->oss.period_bytes - runtime->oss.period_ptr; runtime 1667 sound/core/oss/pcm_oss.c runtime->oss.buffer, runtime 1677 sound/core/oss/pcm_oss.c size = runtime->control->appl_ptr % runtime->period_size; runtime 1679 sound/core/oss/pcm_oss.c size = runtime->period_size - size; runtime 1680 sound/core/oss/pcm_oss.c if (runtime->access == SNDRV_PCM_ACCESS_RW_INTERLEAVED) runtime 1682 sound/core/oss/pcm_oss.c else if (runtime->access == SNDRV_PCM_ACCESS_RW_NONINTERLEAVED) runtime 1686 sound/core/oss/pcm_oss.c mutex_unlock(&runtime->oss.params_lock); runtime 1687 sound/core/oss/pcm_oss.c atomic_dec(&runtime->oss.rw_ref); runtime 1700 sound/core/oss/pcm_oss.c mutex_lock(&runtime->oss.params_lock); runtime 1701 sound/core/oss/pcm_oss.c runtime->oss.prepare = 1; runtime 1702 sound/core/oss/pcm_oss.c mutex_unlock(&runtime->oss.params_lock); runtime 1709 sound/core/oss/pcm_oss.c runtime = substream->runtime; runtime 1713 sound/core/oss/pcm_oss.c mutex_lock(&runtime->oss.params_lock); runtime 1714 sound/core/oss/pcm_oss.c runtime->oss.buffer_used = 0; runtime 1715 sound/core/oss/pcm_oss.c runtime->oss.prepare = 1; runtime 1716 sound/core/oss/pcm_oss.c mutex_unlock(&runtime->oss.params_lock); runtime 1727 sound/core/oss/pcm_oss.c struct snd_pcm_runtime *runtime; runtime 1732 sound/core/oss/pcm_oss.c runtime = substream->runtime; runtime 1737 sound/core/oss/pcm_oss.c err = lock_params(runtime); runtime 1740 sound/core/oss/pcm_oss.c if (runtime->oss.rate != rate) { runtime 1741 sound/core/oss/pcm_oss.c runtime->oss.params = 1; runtime 1742 sound/core/oss/pcm_oss.c runtime->oss.rate = rate; runtime 1744 sound/core/oss/pcm_oss.c unlock_params(runtime); runtime 1756 sound/core/oss/pcm_oss.c return substream->runtime->oss.rate; runtime 1768 sound/core/oss/pcm_oss.c struct snd_pcm_runtime *runtime; runtime 1773 sound/core/oss/pcm_oss.c runtime = substream->runtime; runtime 1774 sound/core/oss/pcm_oss.c err = lock_params(runtime); runtime 1777 sound/core/oss/pcm_oss.c if (runtime->oss.channels != channels) { runtime 1778 sound/core/oss/pcm_oss.c runtime->oss.params = 1; runtime 1779 sound/core/oss/pcm_oss.c runtime->oss.channels = channels; runtime 1781 sound/core/oss/pcm_oss.c unlock_params(runtime); runtime 1793 sound/core/oss/pcm_oss.c return substream->runtime->oss.channels; runtime 1803 sound/core/oss/pcm_oss.c return substream->runtime->oss.period_bytes; runtime 1864 sound/core/oss/pcm_oss.c struct snd_pcm_runtime *runtime; runtime 1867 sound/core/oss/pcm_oss.c runtime = substream->runtime; runtime 1868 sound/core/oss/pcm_oss.c err = lock_params(runtime); runtime 1871 sound/core/oss/pcm_oss.c if (runtime->oss.format != format) { runtime 1872 sound/core/oss/pcm_oss.c runtime->oss.params = 1; runtime 1873 sound/core/oss/pcm_oss.c runtime->oss.format = format; runtime 1875 sound/core/oss/pcm_oss.c unlock_params(runtime); runtime 1888 sound/core/oss/pcm_oss.c return substream->runtime->oss.format; runtime 1893 sound/core/oss/pcm_oss.c struct snd_pcm_runtime *runtime; runtime 1895 sound/core/oss/pcm_oss.c runtime = substream->runtime; runtime 1897 sound/core/oss/pcm_oss.c subdivide = runtime->oss.subdivision; runtime 1902 sound/core/oss/pcm_oss.c if (runtime->oss.subdivision || runtime->oss.fragshift) runtime 1907 sound/core/oss/pcm_oss.c runtime->oss.subdivision = subdivide; runtime 1908 sound/core/oss/pcm_oss.c runtime->oss.params = 1; runtime 1918 sound/core/oss/pcm_oss.c struct snd_pcm_runtime *runtime; runtime 1922 sound/core/oss/pcm_oss.c runtime = substream->runtime; runtime 1923 sound/core/oss/pcm_oss.c err = lock_params(runtime); runtime 1927 sound/core/oss/pcm_oss.c unlock_params(runtime); runtime 1936 sound/core/oss/pcm_oss.c struct snd_pcm_runtime *runtime; runtime 1938 sound/core/oss/pcm_oss.c runtime = substream->runtime; runtime 1939 sound/core/oss/pcm_oss.c if (runtime->oss.subdivision || runtime->oss.fragshift) runtime 1941 sound/core/oss/pcm_oss.c runtime->oss.fragshift = val & 0xffff; runtime 1942 sound/core/oss/pcm_oss.c runtime->oss.maxfrags = (val >> 16) & 0xffff; runtime 1943 sound/core/oss/pcm_oss.c if (runtime->oss.fragshift < 4) /* < 16 */ runtime 1944 sound/core/oss/pcm_oss.c runtime->oss.fragshift = 4; runtime 1945 sound/core/oss/pcm_oss.c if (runtime->oss.maxfrags < 2) runtime 1946 sound/core/oss/pcm_oss.c runtime->oss.maxfrags = 2; runtime 1947 sound/core/oss/pcm_oss.c runtime->oss.params = 1; runtime 1957 sound/core/oss/pcm_oss.c struct snd_pcm_runtime *runtime; runtime 1961 sound/core/oss/pcm_oss.c runtime = substream->runtime; runtime 1962 sound/core/oss/pcm_oss.c err = lock_params(runtime); runtime 1966 sound/core/oss/pcm_oss.c unlock_params(runtime); runtime 1997 sound/core/oss/pcm_oss.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1998 sound/core/oss/pcm_oss.c if (runtime->info & (SNDRV_PCM_INFO_BLOCK_TRANSFER|SNDRV_PCM_INFO_BATCH)) runtime 2021 sound/core/oss/pcm_oss.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 2023 sound/core/oss/pcm_oss.c appl_ptr = hw_ptr + runtime->buffer_size; runtime 2024 sound/core/oss/pcm_oss.c appl_ptr %= runtime->boundary; runtime 2025 sound/core/oss/pcm_oss.c runtime->control->appl_ptr = appl_ptr; runtime 2030 sound/core/oss/pcm_oss.c struct snd_pcm_runtime *runtime; runtime 2050 sound/core/oss/pcm_oss.c runtime = psubstream->runtime; runtime 2052 sound/core/oss/pcm_oss.c if (mutex_lock_interruptible(&runtime->oss.params_lock)) runtime 2055 sound/core/oss/pcm_oss.c if (runtime->oss.trigger) runtime 2059 sound/core/oss/pcm_oss.c get_hw_ptr_period(runtime)); runtime 2060 sound/core/oss/pcm_oss.c runtime->oss.trigger = 1; runtime 2061 sound/core/oss/pcm_oss.c runtime->start_threshold = 1; runtime 2064 sound/core/oss/pcm_oss.c if (!runtime->oss.trigger) runtime 2066 sound/core/oss/pcm_oss.c runtime->oss.trigger = 0; runtime 2067 sound/core/oss/pcm_oss.c runtime->start_threshold = runtime->boundary; runtime 2069 sound/core/oss/pcm_oss.c runtime->oss.prepare = 1; runtime 2072 sound/core/oss/pcm_oss.c mutex_unlock(&runtime->oss.params_lock); runtime 2080 sound/core/oss/pcm_oss.c runtime = csubstream->runtime; runtime 2082 sound/core/oss/pcm_oss.c if (mutex_lock_interruptible(&runtime->oss.params_lock)) runtime 2085 sound/core/oss/pcm_oss.c if (runtime->oss.trigger) runtime 2087 sound/core/oss/pcm_oss.c runtime->oss.trigger = 1; runtime 2088 sound/core/oss/pcm_oss.c runtime->start_threshold = 1; runtime 2091 sound/core/oss/pcm_oss.c if (!runtime->oss.trigger) runtime 2093 sound/core/oss/pcm_oss.c runtime->oss.trigger = 0; runtime 2094 sound/core/oss/pcm_oss.c runtime->start_threshold = runtime->boundary; runtime 2096 sound/core/oss/pcm_oss.c runtime->oss.prepare = 1; runtime 2099 sound/core/oss/pcm_oss.c mutex_unlock(&runtime->oss.params_lock); runtime 2116 sound/core/oss/pcm_oss.c if (psubstream && psubstream->runtime && psubstream->runtime->oss.trigger) runtime 2118 sound/core/oss/pcm_oss.c if (csubstream && csubstream->runtime && csubstream->runtime->oss.trigger) runtime 2126 sound/core/oss/pcm_oss.c struct snd_pcm_runtime *runtime; runtime 2135 sound/core/oss/pcm_oss.c runtime = substream->runtime; runtime 2136 sound/core/oss/pcm_oss.c if (runtime->oss.params || runtime->oss.prepare) runtime 2149 sound/core/oss/pcm_oss.c struct snd_pcm_runtime *runtime; runtime 2162 sound/core/oss/pcm_oss.c runtime = substream->runtime; runtime 2163 sound/core/oss/pcm_oss.c if (runtime->oss.params || runtime->oss.prepare) { runtime 2176 sound/core/oss/pcm_oss.c fixup = runtime->oss.buffer_used; runtime 2180 sound/core/oss/pcm_oss.c fixup = -runtime->oss.buffer_used; runtime 2184 sound/core/oss/pcm_oss.c info.ptr = snd_pcm_oss_bytes(substream, runtime->status->hw_ptr % runtime->buffer_size); runtime 2187 sound/core/oss/pcm_oss.c delay = get_hw_ptr_period(runtime); runtime 2188 sound/core/oss/pcm_oss.c n = delay - runtime->oss.prev_hw_ptr_period; runtime 2190 sound/core/oss/pcm_oss.c n += runtime->boundary; runtime 2191 sound/core/oss/pcm_oss.c info.blocks = n / runtime->period_size; runtime 2192 sound/core/oss/pcm_oss.c runtime->oss.prev_hw_ptr_period = delay; runtime 2195 sound/core/oss/pcm_oss.c info.bytes = snd_pcm_oss_bytes(substream, runtime->status->hw_ptr) & INT_MAX; runtime 2200 sound/core/oss/pcm_oss.c info.blocks = (runtime->oss.buffer_bytes - delay - fixup) / runtime->oss.period_bytes; runtime 2202 sound/core/oss/pcm_oss.c info.blocks = (delay + fixup) / runtime->oss.period_bytes; runtime 2203 sound/core/oss/pcm_oss.c info.bytes = (runtime->oss.bytes - delay) & INT_MAX; runtime 2206 sound/core/oss/pcm_oss.c info.blocks = delay / runtime->oss.period_bytes; runtime 2207 sound/core/oss/pcm_oss.c info.bytes = (runtime->oss.bytes + delay) & INT_MAX; runtime 2218 sound/core/oss/pcm_oss.c struct snd_pcm_runtime *runtime; runtime 2229 sound/core/oss/pcm_oss.c runtime = substream->runtime; runtime 2231 sound/core/oss/pcm_oss.c if (runtime->oss.params && runtime 2235 sound/core/oss/pcm_oss.c info.fragsize = runtime->oss.period_bytes; runtime 2236 sound/core/oss/pcm_oss.c info.fragstotal = runtime->periods; runtime 2237 sound/core/oss/pcm_oss.c if (runtime->oss.prepare) { runtime 2239 sound/core/oss/pcm_oss.c info.bytes = runtime->oss.period_bytes * runtime->oss.periods; runtime 2240 sound/core/oss/pcm_oss.c info.fragments = runtime->oss.periods; runtime 2249 sound/core/oss/pcm_oss.c avail = runtime->buffer_size; runtime 2253 sound/core/oss/pcm_oss.c avail = runtime->buffer_size - avail; runtime 2254 sound/core/oss/pcm_oss.c fixup = -runtime->oss.buffer_used; runtime 2258 sound/core/oss/pcm_oss.c fixup = runtime->oss.buffer_used; runtime 2263 sound/core/oss/pcm_oss.c info.fragments = info.bytes / runtime->oss.period_bytes; runtime 2315 sound/core/oss/pcm_oss.c struct snd_pcm_runtime *runtime; runtime 2316 sound/core/oss/pcm_oss.c runtime = substream->runtime; runtime 2317 sound/core/oss/pcm_oss.c kvfree(runtime->oss.buffer); runtime 2318 sound/core/oss/pcm_oss.c runtime->oss.buffer = NULL; runtime 2329 sound/core/oss/pcm_oss.c struct snd_pcm_runtime *runtime; runtime 2337 sound/core/oss/pcm_oss.c runtime = substream->runtime; runtime 2338 sound/core/oss/pcm_oss.c runtime->oss.params = 1; runtime 2339 sound/core/oss/pcm_oss.c runtime->oss.trigger = 1; runtime 2340 sound/core/oss/pcm_oss.c runtime->oss.rate = 8000; runtime 2341 sound/core/oss/pcm_oss.c mutex_init(&runtime->oss.params_lock); runtime 2344 sound/core/oss/pcm_oss.c runtime->oss.format = AFMT_U8; runtime 2347 sound/core/oss/pcm_oss.c runtime->oss.format = AFMT_S16_LE; runtime 2350 sound/core/oss/pcm_oss.c runtime->oss.format = AFMT_MU_LAW; runtime 2352 sound/core/oss/pcm_oss.c runtime->oss.channels = 1; runtime 2353 sound/core/oss/pcm_oss.c runtime->oss.fragshift = 0; runtime 2354 sound/core/oss/pcm_oss.c runtime->oss.maxfrags = 0; runtime 2355 sound/core/oss/pcm_oss.c runtime->oss.subdivision = 0; runtime 2357 sound/core/oss/pcm_oss.c atomic_set(&runtime->oss.rw_ref, 0); runtime 2770 sound/core/oss/pcm_oss.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 2772 sound/core/oss/pcm_oss.c return runtime->oss.prev_hw_ptr_period != runtime 2773 sound/core/oss/pcm_oss.c get_hw_ptr_period(runtime); runtime 2775 sound/core/oss/pcm_oss.c return snd_pcm_playback_avail(runtime) >= runtime 2776 sound/core/oss/pcm_oss.c runtime->oss.period_frames; runtime 2781 sound/core/oss/pcm_oss.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 2783 sound/core/oss/pcm_oss.c return runtime->oss.prev_hw_ptr_period != runtime 2784 sound/core/oss/pcm_oss.c get_hw_ptr_period(runtime); runtime 2786 sound/core/oss/pcm_oss.c return snd_pcm_capture_avail(runtime) >= runtime 2787 sound/core/oss/pcm_oss.c runtime->oss.period_frames; runtime 2803 sound/core/oss/pcm_oss.c struct snd_pcm_runtime *runtime = psubstream->runtime; runtime 2804 sound/core/oss/pcm_oss.c poll_wait(file, &runtime->sleep, wait); runtime 2806 sound/core/oss/pcm_oss.c if (runtime->status->state != SNDRV_PCM_STATE_DRAINING && runtime 2807 sound/core/oss/pcm_oss.c (runtime->status->state != SNDRV_PCM_STATE_RUNNING || runtime 2813 sound/core/oss/pcm_oss.c struct snd_pcm_runtime *runtime = csubstream->runtime; runtime 2815 sound/core/oss/pcm_oss.c poll_wait(file, &runtime->sleep, wait); runtime 2817 sound/core/oss/pcm_oss.c if ((ostate = runtime->status->state) != SNDRV_PCM_STATE_RUNNING || runtime 2821 sound/core/oss/pcm_oss.c if (ostate != SNDRV_PCM_STATE_RUNNING && runtime->oss.trigger) { runtime 2825 sound/core/oss/pcm_oss.c runtime->oss.trigger = 0; runtime 2837 sound/core/oss/pcm_oss.c struct snd_pcm_runtime *runtime; runtime 2864 sound/core/oss/pcm_oss.c runtime = substream->runtime; runtime 2865 sound/core/oss/pcm_oss.c if (!(runtime->info & SNDRV_PCM_INFO_MMAP_VALID)) runtime 2867 sound/core/oss/pcm_oss.c if (runtime->info & SNDRV_PCM_INFO_INTERLEAVED) runtime 2868 sound/core/oss/pcm_oss.c runtime->access = SNDRV_PCM_ACCESS_MMAP_INTERLEAVED; runtime 2872 sound/core/oss/pcm_oss.c if (runtime->oss.params) { runtime 2882 sound/core/oss/pcm_oss.c if (runtime->oss.plugin_first != NULL) runtime 2892 sound/core/oss/pcm_oss.c runtime->oss.mmap_bytes = area->vm_end - area->vm_start; runtime 2893 sound/core/oss/pcm_oss.c runtime->silence_threshold = 0; runtime 2894 sound/core/oss/pcm_oss.c runtime->silence_size = 0; runtime 2897 sound/core/oss/pcm_oss.c runtime->oss.mmap_bytes); runtime 2900 sound/core/oss/pcm_oss.c runtime->stop_threshold = runtime->boundary; runtime 35 sound/core/oss/pcm_plugin.c #define snd_pcm_plug_first(plug) ((plug)->runtime->oss.plugin_first) runtime 36 sound/core/oss/pcm_plugin.c #define snd_pcm_plug_last(plug) ((plug)->runtime->oss.plugin_last) runtime 380 sound/core/pcm.c struct snd_pcm_runtime *runtime; runtime 383 sound/core/pcm.c runtime = substream->runtime; runtime 384 sound/core/pcm.c if (!runtime) { runtime 388 sound/core/pcm.c if (runtime->status->state == SNDRV_PCM_STATE_OPEN) { runtime 392 sound/core/pcm.c snd_iprintf(buffer, "access: %s\n", snd_pcm_access_name(runtime->access)); runtime 393 sound/core/pcm.c snd_iprintf(buffer, "format: %s\n", snd_pcm_format_name(runtime->format)); runtime 394 sound/core/pcm.c snd_iprintf(buffer, "subformat: %s\n", snd_pcm_subformat_name(runtime->subformat)); runtime 395 sound/core/pcm.c snd_iprintf(buffer, "channels: %u\n", runtime->channels); runtime 396 sound/core/pcm.c snd_iprintf(buffer, "rate: %u (%u/%u)\n", runtime->rate, runtime->rate_num, runtime->rate_den); runtime 397 sound/core/pcm.c snd_iprintf(buffer, "period_size: %lu\n", runtime->period_size); runtime 398 sound/core/pcm.c snd_iprintf(buffer, "buffer_size: %lu\n", runtime->buffer_size); runtime 401 sound/core/pcm.c snd_iprintf(buffer, "OSS format: %s\n", snd_pcm_oss_format_name(runtime->oss.format)); runtime 402 sound/core/pcm.c snd_iprintf(buffer, "OSS channels: %u\n", runtime->oss.channels); runtime 403 sound/core/pcm.c snd_iprintf(buffer, "OSS rate: %u\n", runtime->oss.rate); runtime 404 sound/core/pcm.c snd_iprintf(buffer, "OSS period bytes: %lu\n", (unsigned long)runtime->oss.period_bytes); runtime 405 sound/core/pcm.c snd_iprintf(buffer, "OSS periods: %u\n", runtime->oss.periods); runtime 406 sound/core/pcm.c snd_iprintf(buffer, "OSS period frames: %lu\n", (unsigned long)runtime->oss.period_frames); runtime 417 sound/core/pcm.c struct snd_pcm_runtime *runtime; runtime 420 sound/core/pcm.c runtime = substream->runtime; runtime 421 sound/core/pcm.c if (!runtime) { runtime 425 sound/core/pcm.c if (runtime->status->state == SNDRV_PCM_STATE_OPEN) { runtime 429 sound/core/pcm.c snd_iprintf(buffer, "tstamp_mode: %s\n", snd_pcm_tstamp_mode_name(runtime->tstamp_mode)); runtime 430 sound/core/pcm.c snd_iprintf(buffer, "period_step: %u\n", runtime->period_step); runtime 431 sound/core/pcm.c snd_iprintf(buffer, "avail_min: %lu\n", runtime->control->avail_min); runtime 432 sound/core/pcm.c snd_iprintf(buffer, "start_threshold: %lu\n", runtime->start_threshold); runtime 433 sound/core/pcm.c snd_iprintf(buffer, "stop_threshold: %lu\n", runtime->stop_threshold); runtime 434 sound/core/pcm.c snd_iprintf(buffer, "silence_threshold: %lu\n", runtime->silence_threshold); runtime 435 sound/core/pcm.c snd_iprintf(buffer, "silence_size: %lu\n", runtime->silence_size); runtime 436 sound/core/pcm.c snd_iprintf(buffer, "boundary: %lu\n", runtime->boundary); runtime 445 sound/core/pcm.c struct snd_pcm_runtime *runtime; runtime 450 sound/core/pcm.c runtime = substream->runtime; runtime 451 sound/core/pcm.c if (!runtime) { runtime 471 sound/core/pcm.c snd_iprintf(buffer, "hw_ptr : %ld\n", runtime->status->hw_ptr); runtime 472 sound/core/pcm.c snd_iprintf(buffer, "appl_ptr : %ld\n", runtime->control->appl_ptr); runtime 885 sound/core/pcm.c struct snd_pcm_runtime *runtime; runtime 942 sound/core/pcm.c runtime = kzalloc(sizeof(*runtime), GFP_KERNEL); runtime 943 sound/core/pcm.c if (runtime == NULL) runtime 947 sound/core/pcm.c runtime->status = alloc_pages_exact(size, GFP_KERNEL); runtime 948 sound/core/pcm.c if (runtime->status == NULL) { runtime 949 sound/core/pcm.c kfree(runtime); runtime 952 sound/core/pcm.c memset(runtime->status, 0, size); runtime 955 sound/core/pcm.c runtime->control = alloc_pages_exact(size, GFP_KERNEL); runtime 956 sound/core/pcm.c if (runtime->control == NULL) { runtime 957 sound/core/pcm.c free_pages_exact(runtime->status, runtime 959 sound/core/pcm.c kfree(runtime); runtime 962 sound/core/pcm.c memset(runtime->control, 0, size); runtime 964 sound/core/pcm.c init_waitqueue_head(&runtime->sleep); runtime 965 sound/core/pcm.c init_waitqueue_head(&runtime->tsleep); runtime 967 sound/core/pcm.c runtime->status->state = SNDRV_PCM_STATE_OPEN; runtime 969 sound/core/pcm.c substream->runtime = runtime; runtime 981 sound/core/pcm.c struct snd_pcm_runtime *runtime; runtime 985 sound/core/pcm.c runtime = substream->runtime; runtime 986 sound/core/pcm.c if (runtime->private_free != NULL) runtime 987 sound/core/pcm.c runtime->private_free(runtime); runtime 988 sound/core/pcm.c free_pages_exact(runtime->status, runtime 990 sound/core/pcm.c free_pages_exact(runtime->control, runtime 992 sound/core/pcm.c kfree(runtime->hw_constraints.rules); runtime 996 sound/core/pcm.c substream->runtime = NULL; runtime 999 sound/core/pcm.c kfree(runtime); runtime 1099 sound/core/pcm.c if (substream->runtime) { runtime 1104 sound/core/pcm.c substream->runtime->status->state = SNDRV_PCM_STATE_DISCONNECTED; runtime 1105 sound/core/pcm.c wake_up(&substream->runtime->sleep); runtime 1106 sound/core/pcm.c wake_up(&substream->runtime->tsleep); runtime 87 sound/core/pcm_compat.c static snd_pcm_uframes_t recalculate_boundary(struct snd_pcm_runtime *runtime) runtime 91 sound/core/pcm_compat.c if (! runtime->buffer_size) runtime 93 sound/core/pcm_compat.c boundary = runtime->buffer_size; runtime 94 sound/core/pcm_compat.c while (boundary * 2 <= 0x7fffffffUL - runtime->buffer_size) runtime 123 sound/core/pcm_compat.c boundary = recalculate_boundary(substream->runtime); runtime 125 sound/core/pcm_compat.c params.silence_size = substream->runtime->boundary; runtime 302 sound/core/pcm_compat.c struct snd_pcm_runtime *runtime; runtime 305 sound/core/pcm_compat.c if (! (runtime = substream->runtime)) runtime 331 sound/core/pcm_compat.c unsigned int new_boundary = recalculate_boundary(runtime); runtime 333 sound/core/pcm_compat.c runtime->boundary = new_boundary; runtime 356 sound/core/pcm_compat.c if (! substream->runtime) runtime 360 sound/core/pcm_compat.c if (substream->runtime->status->state == SNDRV_PCM_STATE_OPEN) runtime 402 sound/core/pcm_compat.c if (! substream->runtime) runtime 406 sound/core/pcm_compat.c if (substream->runtime->status->state == SNDRV_PCM_STATE_OPEN) runtime 409 sound/core/pcm_compat.c if ((ch = substream->runtime->channels) > 128) runtime 469 sound/core/pcm_compat.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 478 sound/core/pcm_compat.c if (snd_BUG_ON(!runtime)) runtime 490 sound/core/pcm_compat.c status = runtime->status; runtime 491 sound/core/pcm_compat.c control = runtime->control; runtime 492 sound/core/pcm_compat.c boundary = recalculate_boundary(runtime); runtime 558 sound/core/pcm_compat.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 567 sound/core/pcm_compat.c if (snd_BUG_ON(!runtime)) runtime 579 sound/core/pcm_compat.c status = runtime->status; runtime 580 sound/core/pcm_compat.c control = runtime->control; runtime 581 sound/core/pcm_compat.c boundary = recalculate_boundary(runtime); runtime 32 sound/core/pcm_dmaengine.c return substream->runtime->private_data; runtime 153 sound/core/pcm_dmaengine.c if (!substream->runtime->no_period_wakeup) runtime 158 sound/core/pcm_dmaengine.c substream->runtime->dma_addr, runtime 185 sound/core/pcm_dmaengine.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 200 sound/core/pcm_dmaengine.c if (runtime->info & SNDRV_PCM_INFO_PAUSE) runtime 229 sound/core/pcm_dmaengine.c return bytes_to_frames(substream->runtime, prtd->pos); runtime 255 sound/core/pcm_dmaengine.c return bytes_to_frames(substream->runtime, pos); runtime 301 sound/core/pcm_dmaengine.c ret = snd_pcm_hw_constraint_integer(substream->runtime, runtime 312 sound/core/pcm_dmaengine.c substream->runtime->private_data = prtd; runtime 80 sound/core/pcm_drm_eld.c int snd_pcm_hw_constraint_eld(struct snd_pcm_runtime *runtime, void *eld) runtime 84 sound/core/pcm_drm_eld.c ret = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, runtime 90 sound/core/pcm_drm_eld.c ret = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, runtime 95 sound/core/pcm_iec958.c int snd_pcm_create_iec958_consumer(struct snd_pcm_runtime *runtime, u8 *cs, runtime 98 sound/core/pcm_iec958.c return create_iec958_consumer(runtime->rate, runtime 99 sound/core/pcm_iec958.c snd_pcm_format_width(runtime->format), runtime 47 sound/core/pcm_lib.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 51 sound/core/pcm_lib.c if (runtime->silence_size < runtime->boundary) { runtime 53 sound/core/pcm_lib.c snd_pcm_uframes_t appl_ptr = READ_ONCE(runtime->control->appl_ptr); runtime 54 sound/core/pcm_lib.c if (runtime->silence_start != appl_ptr) { runtime 55 sound/core/pcm_lib.c n = appl_ptr - runtime->silence_start; runtime 57 sound/core/pcm_lib.c n += runtime->boundary; runtime 58 sound/core/pcm_lib.c if ((snd_pcm_uframes_t)n < runtime->silence_filled) runtime 59 sound/core/pcm_lib.c runtime->silence_filled -= n; runtime 61 sound/core/pcm_lib.c runtime->silence_filled = 0; runtime 62 sound/core/pcm_lib.c runtime->silence_start = appl_ptr; runtime 64 sound/core/pcm_lib.c if (runtime->silence_filled >= runtime->buffer_size) runtime 66 sound/core/pcm_lib.c noise_dist = snd_pcm_playback_hw_avail(runtime) + runtime->silence_filled; runtime 67 sound/core/pcm_lib.c if (noise_dist >= (snd_pcm_sframes_t) runtime->silence_threshold) runtime 69 sound/core/pcm_lib.c frames = runtime->silence_threshold - noise_dist; runtime 70 sound/core/pcm_lib.c if (frames > runtime->silence_size) runtime 71 sound/core/pcm_lib.c frames = runtime->silence_size; runtime 74 sound/core/pcm_lib.c snd_pcm_sframes_t avail = snd_pcm_playback_hw_avail(runtime); runtime 75 sound/core/pcm_lib.c if (avail > runtime->buffer_size) runtime 76 sound/core/pcm_lib.c avail = runtime->buffer_size; runtime 77 sound/core/pcm_lib.c runtime->silence_filled = avail > 0 ? avail : 0; runtime 78 sound/core/pcm_lib.c runtime->silence_start = (runtime->status->hw_ptr + runtime 79 sound/core/pcm_lib.c runtime->silence_filled) % runtime 80 sound/core/pcm_lib.c runtime->boundary; runtime 82 sound/core/pcm_lib.c ofs = runtime->status->hw_ptr; runtime 85 sound/core/pcm_lib.c frames += runtime->boundary; runtime 86 sound/core/pcm_lib.c runtime->silence_filled -= frames; runtime 87 sound/core/pcm_lib.c if ((snd_pcm_sframes_t)runtime->silence_filled < 0) { runtime 88 sound/core/pcm_lib.c runtime->silence_filled = 0; runtime 89 sound/core/pcm_lib.c runtime->silence_start = new_hw_ptr; runtime 91 sound/core/pcm_lib.c runtime->silence_start = ofs; runtime 94 sound/core/pcm_lib.c frames = runtime->buffer_size - runtime->silence_filled; runtime 96 sound/core/pcm_lib.c if (snd_BUG_ON(frames > runtime->buffer_size)) runtime 100 sound/core/pcm_lib.c ofs = runtime->silence_start % runtime->buffer_size; runtime 102 sound/core/pcm_lib.c transfer = ofs + frames > runtime->buffer_size ? runtime->buffer_size - ofs : frames; runtime 105 sound/core/pcm_lib.c runtime->silence_filled += transfer; runtime 144 sound/core/pcm_lib.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 147 sound/core/pcm_lib.c if (runtime->tstamp_mode == SNDRV_PCM_TSTAMP_ENABLE) runtime 148 sound/core/pcm_lib.c snd_pcm_gettime(runtime, (struct timespec *)&runtime->status->tstamp); runtime 176 sound/core/pcm_lib.c struct snd_pcm_runtime *runtime) runtime 181 sound/core/pcm_lib.c if (avail > runtime->avail_max) runtime 182 sound/core/pcm_lib.c runtime->avail_max = avail; runtime 183 sound/core/pcm_lib.c if (runtime->status->state == SNDRV_PCM_STATE_DRAINING) { runtime 184 sound/core/pcm_lib.c if (avail >= runtime->buffer_size) { runtime 189 sound/core/pcm_lib.c if (avail >= runtime->stop_threshold) { runtime 194 sound/core/pcm_lib.c if (runtime->twake) { runtime 195 sound/core/pcm_lib.c if (avail >= runtime->twake) runtime 196 sound/core/pcm_lib.c wake_up(&runtime->tsleep); runtime 197 sound/core/pcm_lib.c } else if (avail >= runtime->control->avail_min) runtime 198 sound/core/pcm_lib.c wake_up(&runtime->sleep); runtime 206 sound/core/pcm_lib.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 210 sound/core/pcm_lib.c if (runtime->tstamp_mode != SNDRV_PCM_TSTAMP_ENABLE) runtime 214 sound/core/pcm_lib.c (runtime->audio_tstamp_report.actual_type == runtime 222 sound/core/pcm_lib.c audio_frames = runtime->hw_ptr_wrap + runtime->status->hw_ptr; runtime 224 sound/core/pcm_lib.c if (runtime->audio_tstamp_config.report_delay) { runtime 226 sound/core/pcm_lib.c audio_frames -= runtime->delay; runtime 228 sound/core/pcm_lib.c audio_frames += runtime->delay; runtime 231 sound/core/pcm_lib.c runtime->rate); runtime 234 sound/core/pcm_lib.c if (!timespec_equal(&runtime->status->audio_tstamp, audio_tstamp)) { runtime 235 sound/core/pcm_lib.c runtime->status->audio_tstamp = *audio_tstamp; runtime 236 sound/core/pcm_lib.c runtime->status->tstamp = *curr_tstamp; runtime 243 sound/core/pcm_lib.c snd_pcm_gettime(substream->runtime, (struct timespec *)&driver_tstamp); runtime 244 sound/core/pcm_lib.c runtime->driver_tstamp = driver_tstamp; runtime 250 sound/core/pcm_lib.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 260 sound/core/pcm_lib.c old_hw_ptr = runtime->status->hw_ptr; runtime 270 sound/core/pcm_lib.c if (runtime->tstamp_mode == SNDRV_PCM_TSTAMP_ENABLE) { runtime 272 sound/core/pcm_lib.c (runtime->audio_tstamp_config.type_requested != SNDRV_PCM_AUDIO_TSTAMP_TYPE_DEFAULT)) { runtime 275 sound/core/pcm_lib.c &runtime->audio_tstamp_config, runtime 276 sound/core/pcm_lib.c &runtime->audio_tstamp_report); runtime 279 sound/core/pcm_lib.c if (runtime->audio_tstamp_report.actual_type == SNDRV_PCM_AUDIO_TSTAMP_TYPE_DEFAULT) runtime 280 sound/core/pcm_lib.c snd_pcm_gettime(runtime, (struct timespec *)&curr_tstamp); runtime 282 sound/core/pcm_lib.c snd_pcm_gettime(runtime, (struct timespec *)&curr_tstamp); runtime 289 sound/core/pcm_lib.c if (pos >= runtime->buffer_size) { runtime 295 sound/core/pcm_lib.c name, pos, runtime->buffer_size, runtime 296 sound/core/pcm_lib.c runtime->period_size); runtime 300 sound/core/pcm_lib.c pos -= pos % runtime->min_align; runtime 302 sound/core/pcm_lib.c hw_base = runtime->hw_ptr_base; runtime 307 sound/core/pcm_lib.c delta = runtime->hw_ptr_interrupt + runtime->period_size; runtime 310 sound/core/pcm_lib.c hdelta = curr_jiffies - runtime->hw_ptr_jiffies; runtime 311 sound/core/pcm_lib.c if (hdelta > runtime->hw_ptr_buffer_jiffies/2 + 1) { runtime 312 sound/core/pcm_lib.c hw_base += runtime->buffer_size; runtime 313 sound/core/pcm_lib.c if (hw_base >= runtime->boundary) { runtime 325 sound/core/pcm_lib.c hw_base += runtime->buffer_size; runtime 326 sound/core/pcm_lib.c if (hw_base >= runtime->boundary) { runtime 335 sound/core/pcm_lib.c delta += runtime->boundary; runtime 337 sound/core/pcm_lib.c if (runtime->no_period_wakeup) { runtime 343 sound/core/pcm_lib.c jdelta = curr_jiffies - runtime->hw_ptr_jiffies; runtime 344 sound/core/pcm_lib.c if (jdelta < runtime->hw_ptr_buffer_jiffies / 2) runtime 346 sound/core/pcm_lib.c hdelta = jdelta - delta * HZ / runtime->rate; runtime 347 sound/core/pcm_lib.c xrun_threshold = runtime->hw_ptr_buffer_jiffies / 2 + 1; runtime 349 sound/core/pcm_lib.c delta += runtime->buffer_size; runtime 350 sound/core/pcm_lib.c hw_base += runtime->buffer_size; runtime 351 sound/core/pcm_lib.c if (hw_base >= runtime->boundary) { runtime 356 sound/core/pcm_lib.c hdelta -= runtime->hw_ptr_buffer_jiffies; runtime 362 sound/core/pcm_lib.c if (delta >= runtime->buffer_size + runtime->period_size) { runtime 378 sound/core/pcm_lib.c if (runtime->hw.info & SNDRV_PCM_INFO_BATCH) runtime 381 sound/core/pcm_lib.c if (hdelta < runtime->delay) runtime 383 sound/core/pcm_lib.c hdelta -= runtime->delay; runtime 384 sound/core/pcm_lib.c jdelta = curr_jiffies - runtime->hw_ptr_jiffies; runtime 385 sound/core/pcm_lib.c if (((hdelta * HZ) / runtime->rate) > jdelta + HZ/100) { runtime 387 sound/core/pcm_lib.c (((runtime->period_size * HZ) / runtime->rate) runtime 395 sound/core/pcm_lib.c new_hw_ptr += runtime->period_size; runtime 396 sound/core/pcm_lib.c if (new_hw_ptr >= runtime->boundary) { runtime 397 sound/core/pcm_lib.c new_hw_ptr -= runtime->boundary; runtime 406 sound/core/pcm_lib.c (long)runtime->period_size, jdelta, runtime 407 sound/core/pcm_lib.c ((hdelta * HZ) / runtime->rate), hw_base, runtime 412 sound/core/pcm_lib.c hw_base = new_hw_ptr - (new_hw_ptr % runtime->buffer_size); runtime 415 sound/core/pcm_lib.c if (delta > runtime->period_size + runtime->period_size / 2) { runtime 425 sound/core/pcm_lib.c if (runtime->status->hw_ptr == new_hw_ptr) { runtime 426 sound/core/pcm_lib.c runtime->hw_ptr_jiffies = curr_jiffies; runtime 432 sound/core/pcm_lib.c runtime->silence_size > 0) runtime 436 sound/core/pcm_lib.c delta = new_hw_ptr - runtime->hw_ptr_interrupt; runtime 438 sound/core/pcm_lib.c delta += runtime->boundary; runtime 439 sound/core/pcm_lib.c delta -= (snd_pcm_uframes_t)delta % runtime->period_size; runtime 440 sound/core/pcm_lib.c runtime->hw_ptr_interrupt += delta; runtime 441 sound/core/pcm_lib.c if (runtime->hw_ptr_interrupt >= runtime->boundary) runtime 442 sound/core/pcm_lib.c runtime->hw_ptr_interrupt -= runtime->boundary; runtime 444 sound/core/pcm_lib.c runtime->hw_ptr_base = hw_base; runtime 445 sound/core/pcm_lib.c runtime->status->hw_ptr = new_hw_ptr; runtime 446 sound/core/pcm_lib.c runtime->hw_ptr_jiffies = curr_jiffies; runtime 449 sound/core/pcm_lib.c runtime->hw_ptr_wrap += runtime->boundary; runtime 454 sound/core/pcm_lib.c return snd_pcm_update_state(substream, runtime); runtime 490 sound/core/pcm_lib.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 492 sound/core/pcm_lib.c runtime->sync.id32[0] = substream->pcm->card->number; runtime 493 sound/core/pcm_lib.c runtime->sync.id32[1] = -1; runtime 494 sound/core/pcm_lib.c runtime->sync.id32[2] = -1; runtime 495 sound/core/pcm_lib.c runtime->sync.id32[3] = -1; runtime 1109 sound/core/pcm_lib.c int snd_pcm_hw_rule_add(struct snd_pcm_runtime *runtime, unsigned int cond, runtime 1114 sound/core/pcm_lib.c struct snd_pcm_hw_constraints *constrs = &runtime->hw_constraints; runtime 1163 sound/core/pcm_lib.c int snd_pcm_hw_constraint_mask(struct snd_pcm_runtime *runtime, snd_pcm_hw_param_t var, runtime 1166 sound/core/pcm_lib.c struct snd_pcm_hw_constraints *constrs = &runtime->hw_constraints; runtime 1185 sound/core/pcm_lib.c int snd_pcm_hw_constraint_mask64(struct snd_pcm_runtime *runtime, snd_pcm_hw_param_t var, runtime 1188 sound/core/pcm_lib.c struct snd_pcm_hw_constraints *constrs = &runtime->hw_constraints; runtime 1209 sound/core/pcm_lib.c int snd_pcm_hw_constraint_integer(struct snd_pcm_runtime *runtime, snd_pcm_hw_param_t var) runtime 1211 sound/core/pcm_lib.c struct snd_pcm_hw_constraints *constrs = &runtime->hw_constraints; runtime 1228 sound/core/pcm_lib.c int snd_pcm_hw_constraint_minmax(struct snd_pcm_runtime *runtime, snd_pcm_hw_param_t var, runtime 1231 sound/core/pcm_lib.c struct snd_pcm_hw_constraints *constrs = &runtime->hw_constraints; runtime 1260 sound/core/pcm_lib.c int snd_pcm_hw_constraint_list(struct snd_pcm_runtime *runtime, runtime 1265 sound/core/pcm_lib.c return snd_pcm_hw_rule_add(runtime, cond, var, runtime 1291 sound/core/pcm_lib.c int snd_pcm_hw_constraint_ranges(struct snd_pcm_runtime *runtime, runtime 1296 sound/core/pcm_lib.c return snd_pcm_hw_rule_add(runtime, cond, var, runtime 1326 sound/core/pcm_lib.c int snd_pcm_hw_constraint_ratnums(struct snd_pcm_runtime *runtime, runtime 1331 sound/core/pcm_lib.c return snd_pcm_hw_rule_add(runtime, cond, var, runtime 1360 sound/core/pcm_lib.c int snd_pcm_hw_constraint_ratdens(struct snd_pcm_runtime *runtime, runtime 1365 sound/core/pcm_lib.c return snd_pcm_hw_rule_add(runtime, cond, var, runtime 1404 sound/core/pcm_lib.c int snd_pcm_hw_constraint_msbits(struct snd_pcm_runtime *runtime, runtime 1410 sound/core/pcm_lib.c return snd_pcm_hw_rule_add(runtime, cond, -1, runtime 1433 sound/core/pcm_lib.c int snd_pcm_hw_constraint_step(struct snd_pcm_runtime *runtime, runtime 1438 sound/core/pcm_lib.c return snd_pcm_hw_rule_add(runtime, cond, var, runtime 1464 sound/core/pcm_lib.c int snd_pcm_hw_constraint_pow2(struct snd_pcm_runtime *runtime, runtime 1468 sound/core/pcm_lib.c return snd_pcm_hw_rule_add(runtime, cond, var, runtime 1491 sound/core/pcm_lib.c int snd_pcm_hw_rule_noresample(struct snd_pcm_runtime *runtime, runtime 1494 sound/core/pcm_lib.c return snd_pcm_hw_rule_add(runtime, SNDRV_PCM_HW_PARAMS_NORESAMPLE, runtime 1676 sound/core/pcm_lib.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1681 sound/core/pcm_lib.c runtime->status->hw_ptr %= runtime->buffer_size; runtime 1683 sound/core/pcm_lib.c runtime->status->hw_ptr = 0; runtime 1684 sound/core/pcm_lib.c runtime->hw_ptr_wrap = 0; runtime 1694 sound/core/pcm_lib.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1696 sound/core/pcm_lib.c if (!(runtime->info & SNDRV_PCM_INFO_MMAP)) { runtime 1700 sound/core/pcm_lib.c width = snd_pcm_format_physical_width(runtime->format); runtime 1704 sound/core/pcm_lib.c switch (runtime->access) { runtime 1708 sound/core/pcm_lib.c info->step = runtime->channels * width; runtime 1713 sound/core/pcm_lib.c size_t size = runtime->dma_bytes / runtime->channels; runtime 1733 sound/core/pcm_lib.c params->fifo_size = substream->runtime->hw.fifo_size; runtime 1734 sound/core/pcm_lib.c if (!(substream->runtime->hw.info & SNDRV_PCM_INFO_FIFO_IN_FRAMES)) { runtime 1783 sound/core/pcm_lib.c struct snd_pcm_runtime *runtime; runtime 1792 sound/core/pcm_lib.c runtime = substream->runtime; runtime 1803 sound/core/pcm_lib.c kill_fasync(&runtime->fasync, SIGIO, POLL_IN); runtime 1818 sound/core/pcm_lib.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1827 sound/core/pcm_lib.c add_wait_queue(&runtime->tsleep, &wait); runtime 1829 sound/core/pcm_lib.c if (runtime->no_period_wakeup) runtime 1838 sound/core/pcm_lib.c if (runtime->rate) { runtime 1839 sound/core/pcm_lib.c long t = runtime->period_size * 2 / runtime 1840 sound/core/pcm_lib.c runtime->rate; runtime 1861 sound/core/pcm_lib.c if (avail >= runtime->twake) runtime 1869 sound/core/pcm_lib.c switch (runtime->status->state) { runtime 1900 sound/core/pcm_lib.c remove_wait_queue(&runtime->tsleep, &wait); runtime 1913 sound/core/pcm_lib.c static void *get_dma_ptr(struct snd_pcm_runtime *runtime, runtime 1916 sound/core/pcm_lib.c return runtime->dma_area + hwoff + runtime 1917 sound/core/pcm_lib.c channel * (runtime->dma_bytes / runtime->channels); runtime 1925 sound/core/pcm_lib.c if (copy_from_user(get_dma_ptr(substream->runtime, channel, hwoff), runtime 1936 sound/core/pcm_lib.c memcpy(get_dma_ptr(substream->runtime, channel, hwoff), buf, bytes); runtime 1947 sound/core/pcm_lib.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1955 sound/core/pcm_lib.c snd_pcm_format_set_silence(runtime->format, runtime 1956 sound/core/pcm_lib.c get_dma_ptr(runtime, channel, hwoff), runtime 1957 sound/core/pcm_lib.c bytes_to_samples(runtime, bytes)); runtime 1967 sound/core/pcm_lib.c get_dma_ptr(substream->runtime, channel, hwoff), runtime 1978 sound/core/pcm_lib.c memcpy(buf, get_dma_ptr(substream->runtime, channel, hwoff), bytes); runtime 1991 sound/core/pcm_lib.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1994 sound/core/pcm_lib.c hwoff = frames_to_bytes(runtime, hwoff); runtime 1995 sound/core/pcm_lib.c off = frames_to_bytes(runtime, off); runtime 1996 sound/core/pcm_lib.c frames = frames_to_bytes(runtime, frames); runtime 2009 sound/core/pcm_lib.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 2010 sound/core/pcm_lib.c int channels = runtime->channels; runtime 2018 sound/core/pcm_lib.c off = samples_to_bytes(runtime, off); runtime 2019 sound/core/pcm_lib.c frames = samples_to_bytes(runtime, frames); runtime 2020 sound/core/pcm_lib.c hwoff = samples_to_bytes(runtime, hwoff); runtime 2039 sound/core/pcm_lib.c if (substream->runtime->access == SNDRV_PCM_ACCESS_RW_INTERLEAVED || runtime 2040 sound/core/pcm_lib.c substream->runtime->access == SNDRV_PCM_ACCESS_MMAP_INTERLEAVED) runtime 2051 sound/core/pcm_lib.c struct snd_pcm_runtime *runtime; runtime 2054 sound/core/pcm_lib.c runtime = substream->runtime; runtime 2055 sound/core/pcm_lib.c if (snd_BUG_ON(!substream->ops->copy_user && !runtime->dma_area)) runtime 2057 sound/core/pcm_lib.c if (runtime->status->state == SNDRV_PCM_STATE_OPEN) runtime 2062 sound/core/pcm_lib.c static int pcm_accessible_state(struct snd_pcm_runtime *runtime) runtime 2064 sound/core/pcm_lib.c switch (runtime->status->state) { runtime 2084 sound/core/pcm_lib.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 2085 sound/core/pcm_lib.c snd_pcm_uframes_t old_appl_ptr = runtime->control->appl_ptr; runtime 2091 sound/core/pcm_lib.c runtime->control->appl_ptr = appl_ptr; runtime 2095 sound/core/pcm_lib.c runtime->control->appl_ptr = old_appl_ptr; runtime 2110 sound/core/pcm_lib.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 2126 sound/core/pcm_lib.c if (runtime->access != SNDRV_PCM_ACCESS_RW_INTERLEAVED && runtime 2127 sound/core/pcm_lib.c runtime->channels > 1) runtime 2131 sound/core/pcm_lib.c if (runtime->access != SNDRV_PCM_ACCESS_RW_NONINTERLEAVED) runtime 2161 sound/core/pcm_lib.c err = pcm_accessible_state(runtime); runtime 2165 sound/core/pcm_lib.c runtime->twake = runtime->control->avail_min ? : 1; runtime 2166 sound/core/pcm_lib.c if (runtime->status->state == SNDRV_PCM_STATE_RUNNING) runtime 2174 sound/core/pcm_lib.c runtime->status->state == SNDRV_PCM_STATE_PREPARED && runtime 2175 sound/core/pcm_lib.c size >= runtime->start_threshold) { runtime 2188 sound/core/pcm_lib.c runtime->status->state == SNDRV_PCM_STATE_DRAINING) { runtime 2196 sound/core/pcm_lib.c runtime->twake = min_t(snd_pcm_uframes_t, size, runtime 2197 sound/core/pcm_lib.c runtime->control->avail_min ? : 1); runtime 2205 sound/core/pcm_lib.c appl_ptr = READ_ONCE(runtime->control->appl_ptr); runtime 2206 sound/core/pcm_lib.c appl_ofs = appl_ptr % runtime->buffer_size; runtime 2207 sound/core/pcm_lib.c cont = runtime->buffer_size - appl_ofs; runtime 2220 sound/core/pcm_lib.c err = pcm_accessible_state(runtime); runtime 2224 sound/core/pcm_lib.c if (appl_ptr >= runtime->boundary) runtime 2225 sound/core/pcm_lib.c appl_ptr -= runtime->boundary; runtime 2235 sound/core/pcm_lib.c runtime->status->state == SNDRV_PCM_STATE_PREPARED && runtime 2236 sound/core/pcm_lib.c snd_pcm_playback_hw_avail(runtime) >= (snd_pcm_sframes_t)runtime->start_threshold) { runtime 2243 sound/core/pcm_lib.c runtime->twake = 0; runtime 2245 sound/core/pcm_lib.c snd_pcm_update_state(substream, runtime); runtime 2337 sound/core/pcm_lib.c if (!substream->runtime) runtime 2341 sound/core/pcm_lib.c if (map->channels == substream->runtime->channels && runtime 26 sound/core/pcm_local.h int snd_pcm_hw_constraint_mask(struct snd_pcm_runtime *runtime, runtime 32 sound/core/pcm_local.h struct snd_pcm_runtime *runtime); runtime 42 sound/core/pcm_local.h return snd_pcm_playback_avail(substream->runtime); runtime 44 sound/core/pcm_local.h return snd_pcm_capture_avail(substream->runtime); runtime 51 sound/core/pcm_local.h return snd_pcm_playback_hw_avail(substream->runtime); runtime 53 sound/core/pcm_local.h return snd_pcm_capture_hw_avail(substream->runtime); runtime 136 sound/core/pcm_memory.c if (substream->runtime) { runtime 289 sound/core/pcm_memory.c struct snd_pcm_runtime *runtime; runtime 297 sound/core/pcm_memory.c runtime = substream->runtime; runtime 299 sound/core/pcm_memory.c if (runtime->dma_buffer_p) { runtime 303 sound/core/pcm_memory.c if (runtime->dma_buffer_p->bytes >= size) { runtime 304 sound/core/pcm_memory.c runtime->dma_bytes = size; runtime 325 sound/core/pcm_memory.c runtime->dma_bytes = size; runtime 340 sound/core/pcm_memory.c struct snd_pcm_runtime *runtime; runtime 344 sound/core/pcm_memory.c runtime = substream->runtime; runtime 345 sound/core/pcm_memory.c if (runtime->dma_area == NULL) runtime 347 sound/core/pcm_memory.c if (runtime->dma_buffer_p != &substream->dma_buffer) { runtime 349 sound/core/pcm_memory.c snd_dma_free_pages(runtime->dma_buffer_p); runtime 350 sound/core/pcm_memory.c kfree(runtime->dma_buffer_p); runtime 360 sound/core/pcm_memory.c struct snd_pcm_runtime *runtime; runtime 364 sound/core/pcm_memory.c runtime = substream->runtime; runtime 365 sound/core/pcm_memory.c if (runtime->dma_area) { runtime 366 sound/core/pcm_memory.c if (runtime->dma_bytes >= size) runtime 368 sound/core/pcm_memory.c vfree(runtime->dma_area); runtime 370 sound/core/pcm_memory.c runtime->dma_area = __vmalloc(size, gfp_flags, PAGE_KERNEL); runtime 371 sound/core/pcm_memory.c if (!runtime->dma_area) runtime 373 sound/core/pcm_memory.c runtime->dma_bytes = size; runtime 387 sound/core/pcm_memory.c struct snd_pcm_runtime *runtime; runtime 391 sound/core/pcm_memory.c runtime = substream->runtime; runtime 392 sound/core/pcm_memory.c vfree(runtime->dma_area); runtime 393 sound/core/pcm_memory.c runtime->dma_area = NULL; runtime 411 sound/core/pcm_memory.c return vmalloc_to_page(substream->runtime->dma_area + offset); runtime 484 sound/core/pcm_misc.c int snd_pcm_limit_hw_rates(struct snd_pcm_runtime *runtime) runtime 488 sound/core/pcm_misc.c if (runtime->hw.rates & (1 << i)) { runtime 489 sound/core/pcm_misc.c runtime->hw.rate_min = snd_pcm_known_rates.list[i]; runtime 494 sound/core/pcm_misc.c if (runtime->hw.rates & (1 << i)) { runtime 495 sound/core/pcm_misc.c runtime->hw.rate_max = snd_pcm_known_rates.list[i]; runtime 231 sound/core/pcm_native.c if (!(substream->runtime->hw.info & SNDRV_PCM_INFO_MMAP)) runtime 246 sound/core/pcm_native.c &substream->runtime->hw_constraints; runtime 282 sound/core/pcm_native.c &substream->runtime->hw_constraints; runtime 318 sound/core/pcm_native.c &substream->runtime->hw_constraints; runtime 468 sound/core/pcm_native.c params->info = substream->runtime->hw.info; runtime 536 sound/core/pcm_native.c static int period_to_usecs(struct snd_pcm_runtime *runtime) runtime 540 sound/core/pcm_native.c if (! runtime->rate) runtime 544 sound/core/pcm_native.c usecs = (750000 / runtime->rate) * runtime->period_size; runtime 545 sound/core/pcm_native.c usecs += ((750000 % runtime->rate) * runtime->period_size) / runtime 546 sound/core/pcm_native.c runtime->rate; runtime 554 sound/core/pcm_native.c if (substream->runtime->status->state != SNDRV_PCM_STATE_DISCONNECTED) runtime 555 sound/core/pcm_native.c substream->runtime->status->state = state; runtime 565 sound/core/pcm_native.c &substream->runtime->trigger_tstamp); runtime 636 sound/core/pcm_native.c struct snd_pcm_runtime *runtime; runtime 643 sound/core/pcm_native.c runtime = substream->runtime; runtime 645 sound/core/pcm_native.c switch (runtime->status->state) { runtime 680 sound/core/pcm_native.c runtime->access = params_access(params); runtime 681 sound/core/pcm_native.c runtime->format = params_format(params); runtime 682 sound/core/pcm_native.c runtime->subformat = params_subformat(params); runtime 683 sound/core/pcm_native.c runtime->channels = params_channels(params); runtime 684 sound/core/pcm_native.c runtime->rate = params_rate(params); runtime 685 sound/core/pcm_native.c runtime->period_size = params_period_size(params); runtime 686 sound/core/pcm_native.c runtime->periods = params_periods(params); runtime 687 sound/core/pcm_native.c runtime->buffer_size = params_buffer_size(params); runtime 688 sound/core/pcm_native.c runtime->info = params->info; runtime 689 sound/core/pcm_native.c runtime->rate_num = params->rate_num; runtime 690 sound/core/pcm_native.c runtime->rate_den = params->rate_den; runtime 691 sound/core/pcm_native.c runtime->no_period_wakeup = runtime 695 sound/core/pcm_native.c bits = snd_pcm_format_physical_width(runtime->format); runtime 696 sound/core/pcm_native.c runtime->sample_bits = bits; runtime 697 sound/core/pcm_native.c bits *= runtime->channels; runtime 698 sound/core/pcm_native.c runtime->frame_bits = bits; runtime 704 sound/core/pcm_native.c runtime->byte_align = bits / 8; runtime 705 sound/core/pcm_native.c runtime->min_align = frames; runtime 708 sound/core/pcm_native.c runtime->tstamp_mode = SNDRV_PCM_TSTAMP_NONE; runtime 709 sound/core/pcm_native.c runtime->period_step = 1; runtime 710 sound/core/pcm_native.c runtime->control->avail_min = runtime->period_size; runtime 711 sound/core/pcm_native.c runtime->start_threshold = 1; runtime 712 sound/core/pcm_native.c runtime->stop_threshold = runtime->buffer_size; runtime 713 sound/core/pcm_native.c runtime->silence_threshold = 0; runtime 714 sound/core/pcm_native.c runtime->silence_size = 0; runtime 715 sound/core/pcm_native.c runtime->boundary = runtime->buffer_size; runtime 716 sound/core/pcm_native.c while (runtime->boundary * 2 <= LONG_MAX - runtime->buffer_size) runtime 717 sound/core/pcm_native.c runtime->boundary *= 2; runtime 720 sound/core/pcm_native.c if (runtime->dma_area && !substream->ops->copy_user) runtime 721 sound/core/pcm_native.c memset(runtime->dma_area, 0, runtime->dma_bytes); runtime 728 sound/core/pcm_native.c if ((usecs = period_to_usecs(runtime)) >= 0) runtime 765 sound/core/pcm_native.c struct snd_pcm_runtime *runtime; runtime 770 sound/core/pcm_native.c runtime = substream->runtime; runtime 772 sound/core/pcm_native.c switch (runtime->status->state) { runtime 793 sound/core/pcm_native.c struct snd_pcm_runtime *runtime; runtime 798 sound/core/pcm_native.c runtime = substream->runtime; runtime 800 sound/core/pcm_native.c if (runtime->status->state == SNDRV_PCM_STATE_OPEN) { runtime 814 sound/core/pcm_native.c if (params->silence_size >= runtime->boundary) { runtime 820 sound/core/pcm_native.c if (params->silence_threshold > runtime->buffer_size) runtime 825 sound/core/pcm_native.c runtime->tstamp_mode = params->tstamp_mode; runtime 827 sound/core/pcm_native.c runtime->tstamp_type = params->tstamp_type; runtime 828 sound/core/pcm_native.c runtime->period_step = params->period_step; runtime 829 sound/core/pcm_native.c runtime->control->avail_min = params->avail_min; runtime 830 sound/core/pcm_native.c runtime->start_threshold = params->start_threshold; runtime 831 sound/core/pcm_native.c runtime->stop_threshold = params->stop_threshold; runtime 832 sound/core/pcm_native.c runtime->silence_threshold = params->silence_threshold; runtime 833 sound/core/pcm_native.c runtime->silence_size = params->silence_size; runtime 834 sound/core/pcm_native.c params->boundary = runtime->boundary; runtime 837 sound/core/pcm_native.c runtime->silence_size > 0) runtime 839 sound/core/pcm_native.c err = snd_pcm_update_state(substream, runtime); runtime 864 sound/core/pcm_native.c delay = snd_pcm_playback_hw_avail(substream->runtime); runtime 866 sound/core/pcm_native.c delay = snd_pcm_capture_avail(substream->runtime); runtime 867 sound/core/pcm_native.c return delay + substream->runtime->delay; runtime 873 sound/core/pcm_native.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 878 sound/core/pcm_native.c &runtime->audio_tstamp_config); runtime 881 sound/core/pcm_native.c if (runtime->audio_tstamp_config.type_requested == runtime 883 sound/core/pcm_native.c if (runtime->hw.info & SNDRV_PCM_INFO_HAS_WALL_CLOCK) runtime 884 sound/core/pcm_native.c runtime->audio_tstamp_config.type_requested = runtime 887 sound/core/pcm_native.c runtime->audio_tstamp_config.type_requested = runtime 889 sound/core/pcm_native.c runtime->audio_tstamp_report.valid = 0; runtime 891 sound/core/pcm_native.c runtime->audio_tstamp_report.valid = 1; runtime 893 sound/core/pcm_native.c status->state = runtime->status->state; runtime 894 sound/core/pcm_native.c status->suspended_state = runtime->status->suspended_state; runtime 897 sound/core/pcm_native.c status->trigger_tstamp = runtime->trigger_tstamp; runtime 900 sound/core/pcm_native.c if (runtime->tstamp_mode == SNDRV_PCM_TSTAMP_ENABLE) { runtime 901 sound/core/pcm_native.c status->tstamp = runtime->status->tstamp; runtime 902 sound/core/pcm_native.c status->driver_tstamp = runtime->driver_tstamp; runtime 904 sound/core/pcm_native.c runtime->status->audio_tstamp; runtime 905 sound/core/pcm_native.c if (runtime->audio_tstamp_report.valid == 1) runtime 909 sound/core/pcm_native.c &runtime->audio_tstamp_report); runtime 915 sound/core/pcm_native.c if (runtime->tstamp_mode == SNDRV_PCM_TSTAMP_ENABLE) runtime 916 sound/core/pcm_native.c snd_pcm_gettime(runtime, &status->tstamp); runtime 919 sound/core/pcm_native.c status->appl_ptr = runtime->control->appl_ptr; runtime 920 sound/core/pcm_native.c status->hw_ptr = runtime->status->hw_ptr; runtime 924 sound/core/pcm_native.c status->avail_max = runtime->avail_max; runtime 925 sound/core/pcm_native.c status->overrange = runtime->overrange; runtime 926 sound/core/pcm_native.c runtime->avail_max = 0; runtime 927 sound/core/pcm_native.c runtime->overrange = 0; runtime 960 sound/core/pcm_native.c struct snd_pcm_runtime *runtime; runtime 964 sound/core/pcm_native.c runtime = substream->runtime; runtime 966 sound/core/pcm_native.c if (runtime->status->state == SNDRV_PCM_STATE_OPEN) { runtime 971 sound/core/pcm_native.c if (channel >= runtime->channels) runtime 996 sound/core/pcm_native.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 997 sound/core/pcm_native.c if (runtime->trigger_master == NULL) runtime 999 sound/core/pcm_native.c if (runtime->trigger_master == substream) { runtime 1000 sound/core/pcm_native.c if (!runtime->trigger_tstamp_latched) runtime 1001 sound/core/pcm_native.c snd_pcm_gettime(runtime, &runtime->trigger_tstamp); runtime 1003 sound/core/pcm_native.c snd_pcm_trigger_tstamp(runtime->trigger_master); runtime 1004 sound/core/pcm_native.c runtime->trigger_tstamp = runtime->trigger_master->runtime->trigger_tstamp; runtime 1006 sound/core/pcm_native.c runtime->trigger_master = NULL; runtime 1213 sound/core/pcm_native.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1214 sound/core/pcm_native.c if (runtime->status->state != SNDRV_PCM_STATE_PREPARED) runtime 1219 sound/core/pcm_native.c runtime->trigger_tstamp_latched = false; runtime 1220 sound/core/pcm_native.c runtime->trigger_master = substream; runtime 1226 sound/core/pcm_native.c if (substream->runtime->trigger_master != substream) runtime 1233 sound/core/pcm_native.c if (substream->runtime->trigger_master == substream) runtime 1239 sound/core/pcm_native.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1241 sound/core/pcm_native.c runtime->hw_ptr_jiffies = jiffies; runtime 1242 sound/core/pcm_native.c runtime->hw_ptr_buffer_jiffies = (runtime->buffer_size * HZ) / runtime 1243 sound/core/pcm_native.c runtime->rate; runtime 1244 sound/core/pcm_native.c runtime->status->state = state; runtime 1246 sound/core/pcm_native.c runtime->silence_size > 0) runtime 1283 sound/core/pcm_native.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1284 sound/core/pcm_native.c if (runtime->status->state == SNDRV_PCM_STATE_OPEN) runtime 1286 sound/core/pcm_native.c runtime->trigger_master = substream; runtime 1292 sound/core/pcm_native.c if (substream->runtime->trigger_master == substream && runtime 1300 sound/core/pcm_native.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1301 sound/core/pcm_native.c if (runtime->status->state != state) { runtime 1303 sound/core/pcm_native.c runtime->status->state = state; runtime 1306 sound/core/pcm_native.c wake_up(&runtime->sleep); runtime 1307 sound/core/pcm_native.c wake_up(&runtime->tsleep); runtime 1360 sound/core/pcm_native.c if (substream->runtime && snd_pcm_running(substream)) runtime 1372 sound/core/pcm_native.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1373 sound/core/pcm_native.c if (!(runtime->info & SNDRV_PCM_INFO_PAUSE)) runtime 1376 sound/core/pcm_native.c if (runtime->status->state != SNDRV_PCM_STATE_RUNNING) runtime 1378 sound/core/pcm_native.c } else if (runtime->status->state != SNDRV_PCM_STATE_PAUSED) runtime 1380 sound/core/pcm_native.c runtime->trigger_master = substream; runtime 1386 sound/core/pcm_native.c if (substream->runtime->trigger_master != substream) runtime 1396 sound/core/pcm_native.c substream->runtime->hw_ptr_jiffies = jiffies - HZ * 1000; runtime 1404 sound/core/pcm_native.c if (substream->runtime->trigger_master == substream) runtime 1412 sound/core/pcm_native.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1415 sound/core/pcm_native.c runtime->status->state = SNDRV_PCM_STATE_PAUSED; runtime 1417 sound/core/pcm_native.c wake_up(&runtime->sleep); runtime 1418 sound/core/pcm_native.c wake_up(&runtime->tsleep); runtime 1420 sound/core/pcm_native.c runtime->status->state = SNDRV_PCM_STATE_RUNNING; runtime 1445 sound/core/pcm_native.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1446 sound/core/pcm_native.c switch (runtime->status->state) { runtime 1455 sound/core/pcm_native.c runtime->trigger_master = substream; runtime 1461 sound/core/pcm_native.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1462 sound/core/pcm_native.c if (runtime->trigger_master != substream) runtime 1472 sound/core/pcm_native.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1474 sound/core/pcm_native.c runtime->status->suspended_state = runtime->status->state; runtime 1475 sound/core/pcm_native.c runtime->status->state = SNDRV_PCM_STATE_SUSPENDED; runtime 1477 sound/core/pcm_native.c wake_up(&runtime->sleep); runtime 1478 sound/core/pcm_native.c wake_up(&runtime->tsleep); runtime 1526 sound/core/pcm_native.c if (substream->runtime == NULL) runtime 1549 sound/core/pcm_native.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1550 sound/core/pcm_native.c if (!(runtime->info & SNDRV_PCM_INFO_RESUME)) runtime 1552 sound/core/pcm_native.c runtime->trigger_master = substream; runtime 1558 sound/core/pcm_native.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1559 sound/core/pcm_native.c if (runtime->trigger_master != substream) runtime 1562 sound/core/pcm_native.c if (runtime->status->suspended_state != SNDRV_PCM_STATE_RUNNING && runtime 1563 sound/core/pcm_native.c (runtime->status->suspended_state != SNDRV_PCM_STATE_DRAINING || runtime 1571 sound/core/pcm_native.c if (substream->runtime->trigger_master == substream && runtime 1578 sound/core/pcm_native.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1580 sound/core/pcm_native.c runtime->status->state = runtime->status->suspended_state; runtime 1612 sound/core/pcm_native.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1616 sound/core/pcm_native.c switch (runtime->status->state) { runtime 1636 sound/core/pcm_native.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1637 sound/core/pcm_native.c switch (runtime->status->state) { runtime 1650 sound/core/pcm_native.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1654 sound/core/pcm_native.c runtime->hw_ptr_base = 0; runtime 1655 sound/core/pcm_native.c runtime->hw_ptr_interrupt = runtime->status->hw_ptr - runtime 1656 sound/core/pcm_native.c runtime->status->hw_ptr % runtime->period_size; runtime 1657 sound/core/pcm_native.c runtime->silence_start = runtime->status->hw_ptr; runtime 1658 sound/core/pcm_native.c runtime->silence_filled = 0; runtime 1664 sound/core/pcm_native.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1665 sound/core/pcm_native.c runtime->control->appl_ptr = runtime->status->hw_ptr; runtime 1667 sound/core/pcm_native.c runtime->silence_size > 0) runtime 1689 sound/core/pcm_native.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1690 sound/core/pcm_native.c if (runtime->status->state == SNDRV_PCM_STATE_OPEN || runtime 1691 sound/core/pcm_native.c runtime->status->state == SNDRV_PCM_STATE_DISCONNECTED) runtime 1710 sound/core/pcm_native.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1711 sound/core/pcm_native.c runtime->control->appl_ptr = runtime->status->hw_ptr; runtime 1739 sound/core/pcm_native.c switch (substream->runtime->status->state) { runtime 1759 sound/core/pcm_native.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1760 sound/core/pcm_native.c switch (runtime->status->state) { runtime 1766 sound/core/pcm_native.c runtime->trigger_master = substream; runtime 1772 sound/core/pcm_native.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1774 sound/core/pcm_native.c switch (runtime->status->state) { runtime 1781 sound/core/pcm_native.c runtime->status->state = SNDRV_PCM_STATE_SETUP; runtime 1785 sound/core/pcm_native.c runtime->status->state = SNDRV_PCM_STATE_DRAINING; runtime 1788 sound/core/pcm_native.c runtime->status->state = SNDRV_PCM_STATE_SETUP; runtime 1795 sound/core/pcm_native.c if (runtime->status->state == SNDRV_PCM_STATE_RUNNING) { runtime 1796 sound/core/pcm_native.c int new_state = snd_pcm_capture_avail(runtime) > 0 ? runtime 1803 sound/core/pcm_native.c if (runtime->status->state == SNDRV_PCM_STATE_DRAINING && runtime 1804 sound/core/pcm_native.c runtime->trigger_master == substream && runtime 1805 sound/core/pcm_native.c (runtime->hw.info & SNDRV_PCM_INFO_DRAIN_TRIGGER)) runtime 1833 sound/core/pcm_native.c struct snd_pcm_runtime *runtime; runtime 1841 sound/core/pcm_native.c runtime = substream->runtime; runtime 1843 sound/core/pcm_native.c if (runtime->status->state == SNDRV_PCM_STATE_OPEN) runtime 1854 sound/core/pcm_native.c if (runtime->status->state == SNDRV_PCM_STATE_PAUSED) runtime 1880 sound/core/pcm_native.c runtime = s->runtime; runtime 1881 sound/core/pcm_native.c if (runtime->status->state == SNDRV_PCM_STATE_DRAINING) { runtime 1882 sound/core/pcm_native.c to_check = runtime; runtime 1893 sound/core/pcm_native.c if (runtime->no_period_wakeup) runtime 1897 sound/core/pcm_native.c if (runtime->rate) { runtime 1898 sound/core/pcm_native.c long t = runtime->period_size * 2 / runtime->rate; runtime 1908 sound/core/pcm_native.c if (s->runtime == to_check) { runtime 1920 sound/core/pcm_native.c if (substream->runtime->status->state == SNDRV_PCM_STATE_SUSPENDED) runtime 1945 sound/core/pcm_native.c struct snd_pcm_runtime *runtime; runtime 1950 sound/core/pcm_native.c runtime = substream->runtime; runtime 1952 sound/core/pcm_native.c if (runtime->status->state == SNDRV_PCM_STATE_OPEN || runtime 1953 sound/core/pcm_native.c runtime->status->state == SNDRV_PCM_STATE_DISCONNECTED) runtime 1958 sound/core/pcm_native.c if (runtime->status->state == SNDRV_PCM_STATE_PAUSED) runtime 2021 sound/core/pcm_native.c if (substream->runtime->status->state == SNDRV_PCM_STATE_OPEN || runtime 2022 sound/core/pcm_native.c substream->runtime->status->state != substream1->runtime->status->state || runtime 2225 sound/core/pcm_native.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 2226 sound/core/pcm_native.c struct snd_pcm_hw_constraints *constrs = &runtime->hw_constraints; runtime 2243 sound/core/pcm_native.c err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_FORMAT, runtime 2248 sound/core/pcm_native.c err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_SAMPLE_BITS, runtime 2254 sound/core/pcm_native.c err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_SAMPLE_BITS, runtime 2259 sound/core/pcm_native.c err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_FRAME_BITS, runtime 2264 sound/core/pcm_native.c err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_FRAME_BITS, runtime 2269 sound/core/pcm_native.c err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_FRAME_BITS, runtime 2274 sound/core/pcm_native.c err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, runtime 2279 sound/core/pcm_native.c err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, runtime 2284 sound/core/pcm_native.c err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, runtime 2289 sound/core/pcm_native.c err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_PERIODS, runtime 2294 sound/core/pcm_native.c err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_SIZE, runtime 2299 sound/core/pcm_native.c err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_SIZE, runtime 2304 sound/core/pcm_native.c err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_SIZE, runtime 2309 sound/core/pcm_native.c err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_SIZE, runtime 2314 sound/core/pcm_native.c err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_SIZE, runtime 2319 sound/core/pcm_native.c err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_SIZE, runtime 2324 sound/core/pcm_native.c err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_BYTES, runtime 2329 sound/core/pcm_native.c err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_BYTES, runtime 2334 sound/core/pcm_native.c err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_TIME, runtime 2339 sound/core/pcm_native.c err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_TIME, runtime 2349 sound/core/pcm_native.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 2350 sound/core/pcm_native.c struct snd_pcm_hardware *hw = &runtime->hw; runtime 2366 sound/core/pcm_native.c err = snd_pcm_hw_constraint_mask(runtime, SNDRV_PCM_HW_PARAM_ACCESS, mask); runtime 2370 sound/core/pcm_native.c err = snd_pcm_hw_constraint_mask64(runtime, SNDRV_PCM_HW_PARAM_FORMAT, hw->formats); runtime 2374 sound/core/pcm_native.c err = snd_pcm_hw_constraint_mask(runtime, SNDRV_PCM_HW_PARAM_SUBFORMAT, 1 << SNDRV_PCM_SUBFORMAT_STD); runtime 2378 sound/core/pcm_native.c err = snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_CHANNELS, runtime 2383 sound/core/pcm_native.c err = snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_RATE, runtime 2388 sound/core/pcm_native.c err = snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_PERIOD_BYTES, runtime 2393 sound/core/pcm_native.c err = snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_PERIODS, runtime 2398 sound/core/pcm_native.c err = snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_BUFFER_BYTES, runtime 2403 sound/core/pcm_native.c err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_BYTES, runtime 2410 sound/core/pcm_native.c if (runtime->dma_bytes) { runtime 2411 sound/core/pcm_native.c err = snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_BUFFER_BYTES, 0, runtime->dma_bytes); runtime 2417 sound/core/pcm_native.c err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, runtime 2425 sound/core/pcm_native.c snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIOD_SIZE); runtime 2445 sound/core/pcm_native.c substream->runtime->status->state != SNDRV_PCM_STATE_OPEN) runtime 2637 sound/core/pcm_native.c switch (substream->runtime->status->state) { runtime 2661 sound/core/pcm_native.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 2669 sound/core/pcm_native.c appl_ptr = runtime->control->appl_ptr + frames; runtime 2670 sound/core/pcm_native.c if (appl_ptr >= (snd_pcm_sframes_t)runtime->boundary) runtime 2671 sound/core/pcm_native.c appl_ptr -= runtime->boundary; runtime 2681 sound/core/pcm_native.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 2689 sound/core/pcm_native.c appl_ptr = runtime->control->appl_ptr - frames; runtime 2691 sound/core/pcm_native.c appl_ptr += runtime->boundary; runtime 2764 sound/core/pcm_native.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 2775 sound/core/pcm_native.c status = runtime->status; runtime 2776 sound/core/pcm_native.c control = runtime->control; runtime 2810 sound/core/pcm_native.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 2817 sound/core/pcm_native.c runtime->tstamp_type = arg; runtime 2825 sound/core/pcm_native.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 2828 sound/core/pcm_native.c if (runtime->status->state == SNDRV_PCM_STATE_OPEN) runtime 2846 sound/core/pcm_native.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 2850 sound/core/pcm_native.c if (runtime->status->state == SNDRV_PCM_STATE_OPEN) runtime 2852 sound/core/pcm_native.c if (runtime->channels > 128) runtime 2859 sound/core/pcm_native.c bufs = memdup_user(xfern.bufs, sizeof(void *) * runtime->channels); runtime 3067 sound/core/pcm_native.c struct snd_pcm_runtime *runtime; runtime 3074 sound/core/pcm_native.c runtime = substream->runtime; runtime 3075 sound/core/pcm_native.c if (runtime->status->state == SNDRV_PCM_STATE_OPEN) runtime 3077 sound/core/pcm_native.c if (!frame_aligned(runtime, count)) runtime 3079 sound/core/pcm_native.c count = bytes_to_frames(runtime, count); runtime 3082 sound/core/pcm_native.c result = frames_to_bytes(runtime, result); runtime 3091 sound/core/pcm_native.c struct snd_pcm_runtime *runtime; runtime 3098 sound/core/pcm_native.c runtime = substream->runtime; runtime 3099 sound/core/pcm_native.c if (runtime->status->state == SNDRV_PCM_STATE_OPEN) runtime 3101 sound/core/pcm_native.c if (!frame_aligned(runtime, count)) runtime 3103 sound/core/pcm_native.c count = bytes_to_frames(runtime, count); runtime 3106 sound/core/pcm_native.c result = frames_to_bytes(runtime, result); runtime 3114 sound/core/pcm_native.c struct snd_pcm_runtime *runtime; runtime 3124 sound/core/pcm_native.c runtime = substream->runtime; runtime 3125 sound/core/pcm_native.c if (runtime->status->state == SNDRV_PCM_STATE_OPEN) runtime 3129 sound/core/pcm_native.c if (to->nr_segs > 1024 || to->nr_segs != runtime->channels) runtime 3131 sound/core/pcm_native.c if (!frame_aligned(runtime, to->iov->iov_len)) runtime 3133 sound/core/pcm_native.c frames = bytes_to_samples(runtime, to->iov->iov_len); runtime 3141 sound/core/pcm_native.c result = frames_to_bytes(runtime, result); runtime 3150 sound/core/pcm_native.c struct snd_pcm_runtime *runtime; runtime 3160 sound/core/pcm_native.c runtime = substream->runtime; runtime 3161 sound/core/pcm_native.c if (runtime->status->state == SNDRV_PCM_STATE_OPEN) runtime 3165 sound/core/pcm_native.c if (from->nr_segs > 128 || from->nr_segs != runtime->channels || runtime 3166 sound/core/pcm_native.c !frame_aligned(runtime, from->iov->iov_len)) runtime 3168 sound/core/pcm_native.c frames = bytes_to_samples(runtime, from->iov->iov_len); runtime 3176 sound/core/pcm_native.c result = frames_to_bytes(runtime, result); runtime 3185 sound/core/pcm_native.c struct snd_pcm_runtime *runtime; runtime 3199 sound/core/pcm_native.c runtime = substream->runtime; runtime 3200 sound/core/pcm_native.c poll_wait(file, &runtime->sleep, wait); runtime 3205 sound/core/pcm_native.c switch (runtime->status->state) { runtime 3209 sound/core/pcm_native.c if (avail >= runtime->control->avail_min) runtime 3242 sound/core/pcm_native.c struct snd_pcm_runtime *runtime; runtime 3246 sound/core/pcm_native.c runtime = substream->runtime; runtime 3247 sound/core/pcm_native.c vmf->page = virt_to_page(runtime->status); runtime 3278 sound/core/pcm_native.c struct snd_pcm_runtime *runtime; runtime 3282 sound/core/pcm_native.c runtime = substream->runtime; runtime 3283 sound/core/pcm_native.c vmf->page = virt_to_page(runtime->control); runtime 3317 sound/core/pcm_native.c (pcm_file->substream->runtime->hw.info & SNDRV_PCM_INFO_SYNC_APPLPTR)) runtime 3330 sound/core/pcm_native.c if (pcm_file->substream->runtime->hw.info & SNDRV_PCM_INFO_SYNC_APPLPTR) runtime 3357 sound/core/pcm_native.c void *vaddr = substream->runtime->dma_area + ofs; runtime 3367 sound/core/pcm_native.c struct snd_pcm_runtime *runtime; runtime 3374 sound/core/pcm_native.c runtime = substream->runtime; runtime 3376 sound/core/pcm_native.c dma_bytes = PAGE_ALIGN(runtime->dma_bytes); runtime 3431 sound/core/pcm_native.c substream->runtime->dma_area, runtime 3432 sound/core/pcm_native.c substream->runtime->dma_addr, runtime 3433 sound/core/pcm_native.c substream->runtime->dma_bytes); runtime 3457 sound/core/pcm_native.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 3460 sound/core/pcm_native.c return vm_iomap_memory(area, runtime->dma_addr, runtime->dma_bytes); runtime 3471 sound/core/pcm_native.c struct snd_pcm_runtime *runtime; runtime 3484 sound/core/pcm_native.c runtime = substream->runtime; runtime 3485 sound/core/pcm_native.c if (runtime->status->state == SNDRV_PCM_STATE_OPEN) runtime 3487 sound/core/pcm_native.c if (!(runtime->info & SNDRV_PCM_INFO_MMAP)) runtime 3489 sound/core/pcm_native.c if (runtime->access == SNDRV_PCM_ACCESS_RW_INTERLEAVED || runtime 3490 sound/core/pcm_native.c runtime->access == SNDRV_PCM_ACCESS_RW_NONINTERLEAVED) runtime 3494 sound/core/pcm_native.c dma_bytes = PAGE_ALIGN(runtime->dma_bytes); runtime 3543 sound/core/pcm_native.c struct snd_pcm_runtime *runtime; runtime 3549 sound/core/pcm_native.c runtime = substream->runtime; runtime 3550 sound/core/pcm_native.c return fasync_helper(fd, file, on, &runtime->fasync); runtime 3685 sound/core/pcm_native.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 3690 sound/core/pcm_native.c return (unsigned long)runtime->status; runtime 3692 sound/core/pcm_native.c return (unsigned long)runtime->control; runtime 3694 sound/core/pcm_native.c return (unsigned long)runtime->dma_area + offset; runtime 49 sound/core/pcm_param_trace.h __entry->total = substream->runtime->hw_constraints.rules_num; runtime 99 sound/core/pcm_param_trace.h __entry->total = substream->runtime->hw_constraints.rules_num; runtime 22 sound/core/pcm_timer.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 25 sound/core/pcm_timer.c rate = runtime->rate; runtime 31 sound/core/pcm_timer.c fsize = runtime->period_size; runtime 45 sound/core/pcm_timer.c runtime->rate, runtime->period_size); runtime 46 sound/core/pcm_timer.c runtime->timer_resolution = -1; runtime 49 sound/core/pcm_timer.c runtime->timer_resolution = (mult * fsize / rate) * post; runtime 57 sound/core/pcm_timer.c return substream->runtime ? substream->runtime->timer_resolution : 0; runtime 33 sound/core/pcm_trace.h __entry->period_size = (substream)->runtime->period_size; runtime 34 sound/core/pcm_trace.h __entry->buffer_size = (substream)->runtime->buffer_size; runtime 35 sound/core/pcm_trace.h __entry->old_hw_ptr = (substream)->runtime->status->hw_ptr; runtime 36 sound/core/pcm_trace.h __entry->hw_ptr_base = (substream)->runtime->hw_ptr_base; runtime 68 sound/core/pcm_trace.h __entry->period_size = (substream)->runtime->period_size; runtime 69 sound/core/pcm_trace.h __entry->buffer_size = (substream)->runtime->buffer_size; runtime 70 sound/core/pcm_trace.h __entry->old_hw_ptr = (substream)->runtime->status->hw_ptr; runtime 71 sound/core/pcm_trace.h __entry->hw_ptr_base = (substream)->runtime->hw_ptr_base; runtime 127 sound/core/pcm_trace.h __entry->avail = (substream)->stream ? snd_pcm_capture_avail(substream->runtime) : snd_pcm_playback_avail(substream->runtime); runtime 128 sound/core/pcm_trace.h __entry->period_size = (substream)->runtime->period_size; runtime 129 sound/core/pcm_trace.h __entry->buffer_size = (substream)->runtime->buffer_size; runtime 77 sound/core/rawmidi.c struct snd_rawmidi_runtime *runtime = substream->runtime; runtime 79 sound/core/rawmidi.c return runtime->avail >= runtime->avail_min; runtime 85 sound/core/rawmidi.c struct snd_rawmidi_runtime *runtime = substream->runtime; runtime 87 sound/core/rawmidi.c return runtime->avail >= runtime->avail_min && runtime 88 sound/core/rawmidi.c (!substream->append || runtime->avail >= count); runtime 93 sound/core/rawmidi.c struct snd_rawmidi_runtime *runtime = runtime 96 sound/core/rawmidi.c if (runtime->event) runtime 97 sound/core/rawmidi.c runtime->event(runtime->substream); runtime 101 sound/core/rawmidi.c static inline void snd_rawmidi_buffer_ref(struct snd_rawmidi_runtime *runtime) runtime 103 sound/core/rawmidi.c runtime->buffer_ref++; runtime 106 sound/core/rawmidi.c static inline void snd_rawmidi_buffer_unref(struct snd_rawmidi_runtime *runtime) runtime 108 sound/core/rawmidi.c runtime->buffer_ref--; runtime 113 sound/core/rawmidi.c struct snd_rawmidi_runtime *runtime; runtime 115 sound/core/rawmidi.c runtime = kzalloc(sizeof(*runtime), GFP_KERNEL); runtime 116 sound/core/rawmidi.c if (!runtime) runtime 118 sound/core/rawmidi.c runtime->substream = substream; runtime 119 sound/core/rawmidi.c spin_lock_init(&runtime->lock); runtime 120 sound/core/rawmidi.c init_waitqueue_head(&runtime->sleep); runtime 121 sound/core/rawmidi.c INIT_WORK(&runtime->event_work, snd_rawmidi_input_event_work); runtime 122 sound/core/rawmidi.c runtime->event = NULL; runtime 123 sound/core/rawmidi.c runtime->buffer_size = PAGE_SIZE; runtime 124 sound/core/rawmidi.c runtime->avail_min = 1; runtime 126 sound/core/rawmidi.c runtime->avail = 0; runtime 128 sound/core/rawmidi.c runtime->avail = runtime->buffer_size; runtime 129 sound/core/rawmidi.c runtime->buffer = kvzalloc(runtime->buffer_size, GFP_KERNEL); runtime 130 sound/core/rawmidi.c if (!runtime->buffer) { runtime 131 sound/core/rawmidi.c kfree(runtime); runtime 134 sound/core/rawmidi.c runtime->appl_ptr = runtime->hw_ptr = 0; runtime 135 sound/core/rawmidi.c substream->runtime = runtime; runtime 141 sound/core/rawmidi.c struct snd_rawmidi_runtime *runtime = substream->runtime; runtime 143 sound/core/rawmidi.c kvfree(runtime->buffer); runtime 144 sound/core/rawmidi.c kfree(runtime); runtime 145 sound/core/rawmidi.c substream->runtime = NULL; runtime 162 sound/core/rawmidi.c cancel_work_sync(&substream->runtime->event_work); runtime 165 sound/core/rawmidi.c static void __reset_runtime_ptrs(struct snd_rawmidi_runtime *runtime, runtime 168 sound/core/rawmidi.c runtime->drain = 0; runtime 169 sound/core/rawmidi.c runtime->appl_ptr = runtime->hw_ptr = 0; runtime 170 sound/core/rawmidi.c runtime->avail = is_input ? 0 : runtime->buffer_size; runtime 173 sound/core/rawmidi.c static void reset_runtime_ptrs(struct snd_rawmidi_runtime *runtime, runtime 178 sound/core/rawmidi.c spin_lock_irqsave(&runtime->lock, flags); runtime 179 sound/core/rawmidi.c __reset_runtime_ptrs(runtime, is_input); runtime 180 sound/core/rawmidi.c spin_unlock_irqrestore(&runtime->lock, flags); runtime 186 sound/core/rawmidi.c reset_runtime_ptrs(substream->runtime, false); runtime 195 sound/core/rawmidi.c struct snd_rawmidi_runtime *runtime = substream->runtime; runtime 198 sound/core/rawmidi.c runtime->drain = 1; runtime 199 sound/core/rawmidi.c timeout = wait_event_interruptible_timeout(runtime->sleep, runtime 200 sound/core/rawmidi.c (runtime->avail >= runtime->buffer_size), runtime 204 sound/core/rawmidi.c if (runtime->avail < runtime->buffer_size && !timeout) { runtime 207 sound/core/rawmidi.c (long)runtime->avail, (long)runtime->buffer_size); runtime 210 sound/core/rawmidi.c runtime->drain = 0; runtime 226 sound/core/rawmidi.c reset_runtime_ptrs(substream->runtime, true); runtime 450 sound/core/rawmidi.c if (rawmidi_file->input && rawmidi_file->input->runtime) runtime 451 sound/core/rawmidi.c rawmidi_file->input->runtime->oss = (maj == SOUND_MAJOR); runtime 452 sound/core/rawmidi.c if (rawmidi_file->output && rawmidi_file->output->runtime) runtime 453 sound/core/rawmidi.c rawmidi_file->output->runtime->oss = (maj == SOUND_MAJOR); runtime 492 sound/core/rawmidi.c if (substream->runtime->private_free) runtime 493 sound/core/rawmidi.c substream->runtime->private_free(substream); runtime 645 sound/core/rawmidi.c static int resize_runtime_buffer(struct snd_rawmidi_runtime *runtime, runtime 655 sound/core/rawmidi.c if (params->buffer_size != runtime->buffer_size) { runtime 659 sound/core/rawmidi.c spin_lock_irq(&runtime->lock); runtime 660 sound/core/rawmidi.c if (runtime->buffer_ref) { runtime 661 sound/core/rawmidi.c spin_unlock_irq(&runtime->lock); runtime 665 sound/core/rawmidi.c oldbuf = runtime->buffer; runtime 666 sound/core/rawmidi.c runtime->buffer = newbuf; runtime 667 sound/core/rawmidi.c runtime->buffer_size = params->buffer_size; runtime 668 sound/core/rawmidi.c __reset_runtime_ptrs(runtime, is_input); runtime 669 sound/core/rawmidi.c spin_unlock_irq(&runtime->lock); runtime 672 sound/core/rawmidi.c runtime->avail_min = params->avail_min; runtime 683 sound/core/rawmidi.c return resize_runtime_buffer(substream->runtime, params, false); runtime 691 sound/core/rawmidi.c return resize_runtime_buffer(substream->runtime, params, true); runtime 698 sound/core/rawmidi.c struct snd_rawmidi_runtime *runtime = substream->runtime; runtime 702 sound/core/rawmidi.c spin_lock_irq(&runtime->lock); runtime 703 sound/core/rawmidi.c status->avail = runtime->avail; runtime 704 sound/core/rawmidi.c spin_unlock_irq(&runtime->lock); runtime 711 sound/core/rawmidi.c struct snd_rawmidi_runtime *runtime = substream->runtime; runtime 715 sound/core/rawmidi.c spin_lock_irq(&runtime->lock); runtime 716 sound/core/rawmidi.c status->avail = runtime->avail; runtime 717 sound/core/rawmidi.c status->xruns = runtime->xruns; runtime 718 sound/core/rawmidi.c runtime->xruns = 0; runtime 719 sound/core/rawmidi.c spin_unlock_irq(&runtime->lock); runtime 897 sound/core/rawmidi.c struct snd_rawmidi_runtime *runtime = substream->runtime; runtime 901 sound/core/rawmidi.c if (runtime->buffer == NULL) { runtime 906 sound/core/rawmidi.c spin_lock_irqsave(&runtime->lock, flags); runtime 909 sound/core/rawmidi.c if (runtime->avail < runtime->buffer_size) { runtime 910 sound/core/rawmidi.c runtime->buffer[runtime->hw_ptr++] = buffer[0]; runtime 911 sound/core/rawmidi.c runtime->hw_ptr %= runtime->buffer_size; runtime 912 sound/core/rawmidi.c runtime->avail++; runtime 915 sound/core/rawmidi.c runtime->xruns++; runtime 919 sound/core/rawmidi.c count1 = runtime->buffer_size - runtime->hw_ptr; runtime 922 sound/core/rawmidi.c if (count1 > (int)(runtime->buffer_size - runtime->avail)) runtime 923 sound/core/rawmidi.c count1 = runtime->buffer_size - runtime->avail; runtime 924 sound/core/rawmidi.c memcpy(runtime->buffer + runtime->hw_ptr, buffer, count1); runtime 925 sound/core/rawmidi.c runtime->hw_ptr += count1; runtime 926 sound/core/rawmidi.c runtime->hw_ptr %= runtime->buffer_size; runtime 927 sound/core/rawmidi.c runtime->avail += count1; runtime 933 sound/core/rawmidi.c if (count1 > (int)(runtime->buffer_size - runtime->avail)) { runtime 934 sound/core/rawmidi.c count1 = runtime->buffer_size - runtime->avail; runtime 935 sound/core/rawmidi.c runtime->xruns += count - count1; runtime 938 sound/core/rawmidi.c memcpy(runtime->buffer, buffer, count1); runtime 939 sound/core/rawmidi.c runtime->hw_ptr = count1; runtime 940 sound/core/rawmidi.c runtime->avail += count1; runtime 946 sound/core/rawmidi.c if (runtime->event) runtime 947 sound/core/rawmidi.c schedule_work(&runtime->event_work); runtime 949 sound/core/rawmidi.c wake_up(&runtime->sleep); runtime 951 sound/core/rawmidi.c spin_unlock_irqrestore(&runtime->lock, flags); runtime 962 sound/core/rawmidi.c struct snd_rawmidi_runtime *runtime = substream->runtime; runtime 966 sound/core/rawmidi.c spin_lock_irqsave(&runtime->lock, flags); runtime 967 sound/core/rawmidi.c snd_rawmidi_buffer_ref(runtime); runtime 968 sound/core/rawmidi.c while (count > 0 && runtime->avail) { runtime 969 sound/core/rawmidi.c count1 = runtime->buffer_size - runtime->appl_ptr; runtime 972 sound/core/rawmidi.c if (count1 > (int)runtime->avail) runtime 973 sound/core/rawmidi.c count1 = runtime->avail; runtime 976 sound/core/rawmidi.c appl_ptr = runtime->appl_ptr; runtime 977 sound/core/rawmidi.c runtime->appl_ptr += count1; runtime 978 sound/core/rawmidi.c runtime->appl_ptr %= runtime->buffer_size; runtime 979 sound/core/rawmidi.c runtime->avail -= count1; runtime 982 sound/core/rawmidi.c memcpy(kernelbuf + result, runtime->buffer + appl_ptr, count1); runtime 984 sound/core/rawmidi.c spin_unlock_irqrestore(&runtime->lock, flags); runtime 986 sound/core/rawmidi.c runtime->buffer + appl_ptr, count1)) runtime 988 sound/core/rawmidi.c spin_lock_irqsave(&runtime->lock, flags); runtime 996 sound/core/rawmidi.c snd_rawmidi_buffer_unref(runtime); runtime 997 sound/core/rawmidi.c spin_unlock_irqrestore(&runtime->lock, flags); runtime 1016 sound/core/rawmidi.c struct snd_rawmidi_runtime *runtime; runtime 1022 sound/core/rawmidi.c runtime = substream->runtime; runtime 1026 sound/core/rawmidi.c spin_lock_irq(&runtime->lock); runtime 1031 sound/core/rawmidi.c spin_unlock_irq(&runtime->lock); runtime 1035 sound/core/rawmidi.c add_wait_queue(&runtime->sleep, &wait); runtime 1037 sound/core/rawmidi.c spin_unlock_irq(&runtime->lock); runtime 1039 sound/core/rawmidi.c remove_wait_queue(&runtime->sleep, &wait); runtime 1044 sound/core/rawmidi.c if (!runtime->avail) runtime 1046 sound/core/rawmidi.c spin_lock_irq(&runtime->lock); runtime 1048 sound/core/rawmidi.c spin_unlock_irq(&runtime->lock); runtime 1070 sound/core/rawmidi.c struct snd_rawmidi_runtime *runtime = substream->runtime; runtime 1074 sound/core/rawmidi.c if (runtime->buffer == NULL) { runtime 1079 sound/core/rawmidi.c spin_lock_irqsave(&runtime->lock, flags); runtime 1080 sound/core/rawmidi.c result = runtime->avail >= runtime->buffer_size; runtime 1081 sound/core/rawmidi.c spin_unlock_irqrestore(&runtime->lock, flags); runtime 1098 sound/core/rawmidi.c struct snd_rawmidi_runtime *runtime = substream->runtime; runtime 1100 sound/core/rawmidi.c if (runtime->buffer == NULL) { runtime 1106 sound/core/rawmidi.c if (runtime->avail >= runtime->buffer_size) { runtime 1111 sound/core/rawmidi.c *buffer = runtime->buffer[runtime->hw_ptr]; runtime 1114 sound/core/rawmidi.c count1 = runtime->buffer_size - runtime->hw_ptr; runtime 1117 sound/core/rawmidi.c if (count1 > (int)(runtime->buffer_size - runtime->avail)) runtime 1118 sound/core/rawmidi.c count1 = runtime->buffer_size - runtime->avail; runtime 1119 sound/core/rawmidi.c memcpy(buffer, runtime->buffer + runtime->hw_ptr, count1); runtime 1123 sound/core/rawmidi.c if (count > (int)(runtime->buffer_size - runtime->avail - count1)) runtime 1124 sound/core/rawmidi.c count = runtime->buffer_size - runtime->avail - count1; runtime 1125 sound/core/rawmidi.c memcpy(buffer + count1, runtime->buffer, count); runtime 1151 sound/core/rawmidi.c struct snd_rawmidi_runtime *runtime = substream->runtime; runtime 1155 sound/core/rawmidi.c spin_lock_irqsave(&runtime->lock, flags); runtime 1157 sound/core/rawmidi.c spin_unlock_irqrestore(&runtime->lock, flags); runtime 1171 sound/core/rawmidi.c struct snd_rawmidi_runtime *runtime = substream->runtime; runtime 1173 sound/core/rawmidi.c if (runtime->buffer == NULL) { runtime 1178 sound/core/rawmidi.c snd_BUG_ON(runtime->avail + count > runtime->buffer_size); runtime 1179 sound/core/rawmidi.c runtime->hw_ptr += count; runtime 1180 sound/core/rawmidi.c runtime->hw_ptr %= runtime->buffer_size; runtime 1181 sound/core/rawmidi.c runtime->avail += count; runtime 1184 sound/core/rawmidi.c if (runtime->drain || snd_rawmidi_ready(substream)) runtime 1185 sound/core/rawmidi.c wake_up(&runtime->sleep); runtime 1204 sound/core/rawmidi.c struct snd_rawmidi_runtime *runtime = substream->runtime; runtime 1208 sound/core/rawmidi.c spin_lock_irqsave(&runtime->lock, flags); runtime 1210 sound/core/rawmidi.c spin_unlock_irqrestore(&runtime->lock, flags); runtime 1228 sound/core/rawmidi.c struct snd_rawmidi_runtime *runtime = substream->runtime; runtime 1232 sound/core/rawmidi.c spin_lock_irqsave(&runtime->lock, flags); runtime 1242 sound/core/rawmidi.c spin_unlock_irqrestore(&runtime->lock, flags); runtime 1255 sound/core/rawmidi.c struct snd_rawmidi_runtime *runtime = substream->runtime; runtime 1259 sound/core/rawmidi.c spin_lock_irqsave(&runtime->lock, flags); runtime 1260 sound/core/rawmidi.c if (runtime->avail < runtime->buffer_size) { runtime 1261 sound/core/rawmidi.c count = runtime->buffer_size - runtime->avail; runtime 1264 sound/core/rawmidi.c spin_unlock_irqrestore(&runtime->lock, flags); runtime 1276 sound/core/rawmidi.c struct snd_rawmidi_runtime *runtime = substream->runtime; runtime 1281 sound/core/rawmidi.c if (snd_BUG_ON(!runtime->buffer)) runtime 1285 sound/core/rawmidi.c spin_lock_irqsave(&runtime->lock, flags); runtime 1287 sound/core/rawmidi.c if ((long)runtime->avail < count) { runtime 1288 sound/core/rawmidi.c spin_unlock_irqrestore(&runtime->lock, flags); runtime 1292 sound/core/rawmidi.c snd_rawmidi_buffer_ref(runtime); runtime 1293 sound/core/rawmidi.c while (count > 0 && runtime->avail > 0) { runtime 1294 sound/core/rawmidi.c count1 = runtime->buffer_size - runtime->appl_ptr; runtime 1297 sound/core/rawmidi.c if (count1 > (long)runtime->avail) runtime 1298 sound/core/rawmidi.c count1 = runtime->avail; runtime 1301 sound/core/rawmidi.c appl_ptr = runtime->appl_ptr; runtime 1302 sound/core/rawmidi.c runtime->appl_ptr += count1; runtime 1303 sound/core/rawmidi.c runtime->appl_ptr %= runtime->buffer_size; runtime 1304 sound/core/rawmidi.c runtime->avail -= count1; runtime 1307 sound/core/rawmidi.c memcpy(runtime->buffer + appl_ptr, runtime 1310 sound/core/rawmidi.c spin_unlock_irqrestore(&runtime->lock, flags); runtime 1311 sound/core/rawmidi.c if (copy_from_user(runtime->buffer + appl_ptr, runtime 1313 sound/core/rawmidi.c spin_lock_irqsave(&runtime->lock, flags); runtime 1317 sound/core/rawmidi.c spin_lock_irqsave(&runtime->lock, flags); runtime 1323 sound/core/rawmidi.c count1 = runtime->avail < runtime->buffer_size; runtime 1324 sound/core/rawmidi.c snd_rawmidi_buffer_unref(runtime); runtime 1325 sound/core/rawmidi.c spin_unlock_irqrestore(&runtime->lock, flags); runtime 1344 sound/core/rawmidi.c struct snd_rawmidi_runtime *runtime; runtime 1349 sound/core/rawmidi.c runtime = substream->runtime; runtime 1351 sound/core/rawmidi.c if (substream->append && count > runtime->buffer_size) runtime 1355 sound/core/rawmidi.c spin_lock_irq(&runtime->lock); runtime 1360 sound/core/rawmidi.c spin_unlock_irq(&runtime->lock); runtime 1364 sound/core/rawmidi.c add_wait_queue(&runtime->sleep, &wait); runtime 1366 sound/core/rawmidi.c spin_unlock_irq(&runtime->lock); runtime 1368 sound/core/rawmidi.c remove_wait_queue(&runtime->sleep, &wait); runtime 1373 sound/core/rawmidi.c if (!runtime->avail && !timeout) runtime 1375 sound/core/rawmidi.c spin_lock_irq(&runtime->lock); runtime 1377 sound/core/rawmidi.c spin_unlock_irq(&runtime->lock); runtime 1388 sound/core/rawmidi.c spin_lock_irq(&runtime->lock); runtime 1389 sound/core/rawmidi.c while (runtime->avail != runtime->buffer_size) { runtime 1391 sound/core/rawmidi.c unsigned int last_avail = runtime->avail; runtime 1394 sound/core/rawmidi.c add_wait_queue(&runtime->sleep, &wait); runtime 1396 sound/core/rawmidi.c spin_unlock_irq(&runtime->lock); runtime 1398 sound/core/rawmidi.c remove_wait_queue(&runtime->sleep, &wait); runtime 1401 sound/core/rawmidi.c if (runtime->avail == last_avail && !timeout) runtime 1403 sound/core/rawmidi.c spin_lock_irq(&runtime->lock); runtime 1405 sound/core/rawmidi.c spin_unlock_irq(&runtime->lock); runtime 1413 sound/core/rawmidi.c struct snd_rawmidi_runtime *runtime; runtime 1418 sound/core/rawmidi.c runtime = rfile->input->runtime; runtime 1420 sound/core/rawmidi.c poll_wait(file, &runtime->sleep, wait); runtime 1423 sound/core/rawmidi.c runtime = rfile->output->runtime; runtime 1424 sound/core/rawmidi.c poll_wait(file, &runtime->sleep, wait); runtime 1454 sound/core/rawmidi.c struct snd_rawmidi_runtime *runtime; runtime 1472 sound/core/rawmidi.c runtime = substream->runtime; runtime 1477 sound/core/rawmidi.c runtime->oss ? "OSS compatible" : "native", runtime 1478 sound/core/rawmidi.c (unsigned long) runtime->buffer_size, runtime 1479 sound/core/rawmidi.c (unsigned long) runtime->avail); runtime 1496 sound/core/rawmidi.c runtime = substream->runtime; runtime 1501 sound/core/rawmidi.c (unsigned long) runtime->buffer_size, runtime 1502 sound/core/rawmidi.c (unsigned long) runtime->avail, runtime 1503 sound/core/rawmidi.c (unsigned long) runtime->xruns); runtime 1777 sound/core/rawmidi.c if (s->runtime) runtime 1778 sound/core/rawmidi.c wake_up(&s->runtime->sleep); runtime 63 sound/core/seq/seq_midi.c struct snd_rawmidi_runtime *runtime; runtime 71 sound/core/seq/seq_midi.c runtime = substream->runtime; runtime 72 sound/core/seq/seq_midi.c msynth = runtime->private_data; runtime 76 sound/core/seq/seq_midi.c while (runtime->avail > 0) { runtime 98 sound/core/seq/seq_midi.c struct snd_rawmidi_runtime *runtime; runtime 103 sound/core/seq/seq_midi.c runtime = substream->runtime; runtime 104 sound/core/seq/seq_midi.c if ((tmp = runtime->avail) < count) { runtime 166 sound/core/seq/seq_midi.c struct snd_rawmidi_runtime *runtime; runtime 177 sound/core/seq/seq_midi.c runtime = msynth->input_rfile.input->runtime; runtime 186 sound/core/seq/seq_midi.c runtime->event = snd_midi_input_event; runtime 187 sound/core/seq/seq_midi.c runtime->private_data = msynth; runtime 118 sound/core/seq/seq_virmidi.c struct snd_virmidi *vmidi = substream->runtime->private_data; runtime 167 sound/core/seq/seq_virmidi.c struct snd_virmidi *vmidi = substream->runtime->private_data; runtime 180 sound/core/seq/seq_virmidi.c struct snd_rawmidi_runtime *runtime = substream->runtime; runtime 194 sound/core/seq/seq_virmidi.c runtime->private_data = vmidi; runtime 210 sound/core/seq/seq_virmidi.c struct snd_rawmidi_runtime *runtime = substream->runtime; runtime 227 sound/core/seq/seq_virmidi.c runtime->private_data = vmidi; runtime 237 sound/core/seq/seq_virmidi.c struct snd_virmidi *vmidi = substream->runtime->private_data; runtime 245 sound/core/seq/seq_virmidi.c substream->runtime->private_data = NULL; runtime 255 sound/core/seq/seq_virmidi.c struct snd_virmidi *vmidi = substream->runtime->private_data; runtime 260 sound/core/seq/seq_virmidi.c substream->runtime->private_data = NULL; runtime 192 sound/drivers/aloop.c struct snd_pcm_runtime *runtime, *cruntime; runtime 202 sound/drivers/aloop.c runtime = cable->streams[SNDRV_PCM_STREAM_PLAYBACK]-> runtime 203 sound/drivers/aloop.c substream->runtime; runtime 205 sound/drivers/aloop.c substream->runtime; runtime 206 sound/drivers/aloop.c check = runtime->format != cruntime->format || runtime 207 sound/drivers/aloop.c runtime->rate != cruntime->rate || runtime 208 sound/drivers/aloop.c runtime->channels != cruntime->channels; runtime 217 sound/drivers/aloop.c runtime = cable->streams[SNDRV_PCM_STREAM_PLAYBACK]-> runtime 218 sound/drivers/aloop.c substream->runtime; runtime 221 sound/drivers/aloop.c if (setup->format != runtime->format) { runtime 224 sound/drivers/aloop.c setup->format = runtime->format; runtime 226 sound/drivers/aloop.c if (setup->rate != runtime->rate) { runtime 229 sound/drivers/aloop.c setup->rate = runtime->rate; runtime 231 sound/drivers/aloop.c if (setup->channels != runtime->channels) { runtime 234 sound/drivers/aloop.c setup->channels = runtime->channels; runtime 249 sound/drivers/aloop.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 250 sound/drivers/aloop.c struct loopback_pcm *dpcm = runtime->private_data; runtime 306 sound/drivers/aloop.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 307 sound/drivers/aloop.c struct loopback_pcm *dpcm = runtime->private_data; runtime 310 sound/drivers/aloop.c cable->hw.formats = pcm_format_to_bits(runtime->format); runtime 311 sound/drivers/aloop.c cable->hw.rate_min = runtime->rate; runtime 312 sound/drivers/aloop.c cable->hw.rate_max = runtime->rate; runtime 313 sound/drivers/aloop.c cable->hw.channels_min = runtime->channels; runtime 314 sound/drivers/aloop.c cable->hw.channels_max = runtime->channels; runtime 319 sound/drivers/aloop.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 320 sound/drivers/aloop.c struct loopback_pcm *dpcm = runtime->private_data; runtime 326 sound/drivers/aloop.c salign = (snd_pcm_format_physical_width(runtime->format) * runtime 327 sound/drivers/aloop.c runtime->channels) / 8; runtime 328 sound/drivers/aloop.c bps = salign * runtime->rate; runtime 333 sound/drivers/aloop.c dpcm->pcm_buffer_size = frames_to_bytes(runtime, runtime->buffer_size); runtime 337 sound/drivers/aloop.c snd_pcm_format_set_silence(runtime->format, runtime->dma_area, runtime 338 sound/drivers/aloop.c runtime->buffer_size * runtime->channels); runtime 345 sound/drivers/aloop.c dpcm->pcm_period_size = frames_to_bytes(runtime, runtime->period_size); runtime 360 sound/drivers/aloop.c struct snd_pcm_runtime *runtime = dpcm->substream->runtime; runtime 361 sound/drivers/aloop.c char *dst = runtime->dma_area; runtime 373 sound/drivers/aloop.c snd_pcm_format_set_silence(runtime->format, dst + dst_off, runtime 374 sound/drivers/aloop.c bytes_to_frames(runtime, size) * runtime 375 sound/drivers/aloop.c runtime->channels); runtime 388 sound/drivers/aloop.c struct snd_pcm_runtime *runtime = play->substream->runtime; runtime 389 sound/drivers/aloop.c char *src = runtime->dma_area; runtime 390 sound/drivers/aloop.c char *dst = capt->substream->runtime->dma_area; runtime 397 sound/drivers/aloop.c if (runtime->status->state == SNDRV_PCM_STATE_DRAINING && runtime 398 sound/drivers/aloop.c snd_pcm_playback_hw_avail(runtime) < runtime->buffer_size) { runtime 400 sound/drivers/aloop.c appl_ptr = appl_ptr1 = runtime->control->appl_ptr; runtime 401 sound/drivers/aloop.c appl_ptr1 -= appl_ptr1 % runtime->buffer_size; runtime 404 sound/drivers/aloop.c appl_ptr1 -= runtime->buffer_size; runtime 534 sound/drivers/aloop.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 535 sound/drivers/aloop.c struct loopback_pcm *dpcm = runtime->private_data; runtime 542 sound/drivers/aloop.c return bytes_to_frames(runtime, pos); runtime 570 sound/drivers/aloop.c static void loopback_runtime_free(struct snd_pcm_runtime *runtime) runtime 572 sound/drivers/aloop.c struct loopback_pcm *dpcm = runtime->private_data; runtime 585 sound/drivers/aloop.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 586 sound/drivers/aloop.c struct loopback_pcm *dpcm = runtime->private_data; runtime 673 sound/drivers/aloop.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 703 sound/drivers/aloop.c snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS); runtime 708 sound/drivers/aloop.c err = snd_pcm_hw_rule_add(runtime, 0, runtime 714 sound/drivers/aloop.c err = snd_pcm_hw_rule_add(runtime, 0, runtime 720 sound/drivers/aloop.c err = snd_pcm_hw_rule_add(runtime, 0, runtime 727 sound/drivers/aloop.c runtime->private_data = dpcm; runtime 728 sound/drivers/aloop.c runtime->private_free = loopback_runtime_free; runtime 730 sound/drivers/aloop.c runtime->hw = loopback_pcm_hardware; runtime 732 sound/drivers/aloop.c runtime->hw = cable->hw; runtime 750 sound/drivers/aloop.c struct loopback_pcm *dpcm = substream->runtime->private_data; runtime 99 sound/drivers/dummy.c (*(const struct dummy_timer_ops **)(substream)->runtime->private_data) runtime 103 sound/drivers/dummy.c int (*playback_constraints)(struct snd_pcm_runtime *runtime); runtime 104 sound/drivers/dummy.c int (*capture_constraints)(struct snd_pcm_runtime *runtime); runtime 135 sound/drivers/dummy.c static int emu10k1_playback_constraints(struct snd_pcm_runtime *runtime) runtime 138 sound/drivers/dummy.c err = snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS); runtime 141 sound/drivers/dummy.c err = snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_BUFFER_BYTES, 256, UINT_MAX); runtime 263 sound/drivers/dummy.c struct dummy_systimer_pcm *dpcm = substream->runtime->private_data; runtime 273 sound/drivers/dummy.c struct dummy_systimer_pcm *dpcm = substream->runtime->private_data; runtime 282 sound/drivers/dummy.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 283 sound/drivers/dummy.c struct dummy_systimer_pcm *dpcm = runtime->private_data; runtime 286 sound/drivers/dummy.c dpcm->rate = runtime->rate; runtime 287 sound/drivers/dummy.c dpcm->frac_buffer_size = runtime->buffer_size * HZ; runtime 288 sound/drivers/dummy.c dpcm->frac_period_size = runtime->period_size * HZ; runtime 314 sound/drivers/dummy.c struct dummy_systimer_pcm *dpcm = substream->runtime->private_data; runtime 331 sound/drivers/dummy.c substream->runtime->private_data = dpcm; runtime 340 sound/drivers/dummy.c kfree(substream->runtime->private_data); runtime 388 sound/drivers/dummy.c struct dummy_hrtimer_pcm *dpcm = substream->runtime->private_data; runtime 398 sound/drivers/dummy.c struct dummy_hrtimer_pcm *dpcm = substream->runtime->private_data; runtime 414 sound/drivers/dummy.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 415 sound/drivers/dummy.c struct dummy_hrtimer_pcm *dpcm = runtime->private_data; runtime 421 sound/drivers/dummy.c delta = div_u64(delta * runtime->rate + 999999, 1000000); runtime 422 sound/drivers/dummy.c div_u64_rem(delta, runtime->buffer_size, &pos); runtime 428 sound/drivers/dummy.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 429 sound/drivers/dummy.c struct dummy_hrtimer_pcm *dpcm = runtime->private_data; runtime 435 sound/drivers/dummy.c period = runtime->period_size; runtime 436 sound/drivers/dummy.c rate = runtime->rate; runtime 452 sound/drivers/dummy.c substream->runtime->private_data = dpcm; runtime 462 sound/drivers/dummy.c struct dummy_hrtimer_pcm *dpcm = substream->runtime->private_data; runtime 529 sound/drivers/dummy.c substream->runtime->dma_bytes = params_buffer_bytes(hw_params); runtime 547 sound/drivers/dummy.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 562 sound/drivers/dummy.c runtime->hw = dummy->pcm_hw; runtime 564 sound/drivers/dummy.c runtime->hw.info &= ~SNDRV_PCM_INFO_INTERLEAVED; runtime 565 sound/drivers/dummy.c runtime->hw.info |= SNDRV_PCM_INFO_NONINTERLEAVED; runtime 568 sound/drivers/dummy.c runtime->hw.info &= ~(SNDRV_PCM_INFO_MMAP | runtime 576 sound/drivers/dummy.c err = model->playback_constraints(substream->runtime); runtime 579 sound/drivers/dummy.c err = model->capture_constraints(substream->runtime); runtime 433 sound/drivers/ml403-ac97cr.c src = (u16 *)(substream->runtime->dma_area + rec->sw_data); runtime 490 sound/drivers/ml403-ac97cr.c dst = (u16 *)(substream->runtime->dma_area + rec->sw_data); runtime 610 sound/drivers/ml403-ac97cr.c struct snd_pcm_runtime *runtime; runtime 613 sound/drivers/ml403-ac97cr.c runtime = substream->runtime; runtime 621 sound/drivers/ml403-ac97cr.c runtime->rate); runtime 622 sound/drivers/ml403-ac97cr.c PDEBUG(WORK_INFO, "prepare(): rate=%d\n", runtime->rate); runtime 644 sound/drivers/ml403-ac97cr.c struct snd_pcm_runtime *runtime; runtime 647 sound/drivers/ml403-ac97cr.c runtime = substream->runtime; runtime 655 sound/drivers/ml403-ac97cr.c runtime->rate); runtime 656 sound/drivers/ml403-ac97cr.c PDEBUG(WORK_INFO, "prepare(capture): rate=%d\n", runtime->rate); runtime 693 sound/drivers/ml403-ac97cr.c struct snd_pcm_runtime *runtime; runtime 696 sound/drivers/ml403-ac97cr.c runtime = substream->runtime; runtime 700 sound/drivers/ml403-ac97cr.c runtime->hw = snd_ml403_ac97cr_playback; runtime 702 sound/drivers/ml403-ac97cr.c snd_pcm_hw_constraint_step(runtime, 0, runtime 711 sound/drivers/ml403-ac97cr.c struct snd_pcm_runtime *runtime; runtime 714 sound/drivers/ml403-ac97cr.c runtime = substream->runtime; runtime 718 sound/drivers/ml403-ac97cr.c runtime->hw = snd_ml403_ac97cr_capture; runtime 720 sound/drivers/ml403-ac97cr.c snd_pcm_hw_constraint_step(runtime, 0, runtime 30 sound/drivers/pcm-indirect2.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 46 sound/drivers/pcm-indirect2.c rec->bytes2hw, rec->bytes2hw / 2 / 2 / runtime->rate); runtime 54 sound/drivers/pcm-indirect2.c runtime->rate, runtime 225 sound/drivers/pcm-indirect2.c return bytes_to_frames(substream->runtime, rec->sw_io); runtime 237 sound/drivers/pcm-indirect2.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 238 sound/drivers/pcm-indirect2.c snd_pcm_uframes_t appl_ptr = runtime->control->appl_ptr; runtime 251 sound/drivers/pcm-indirect2.c if (diff < -(snd_pcm_sframes_t) (runtime->boundary / 2)) runtime 252 sound/drivers/pcm-indirect2.c diff += runtime->boundary; runtime 257 sound/drivers/pcm-indirect2.c rec->sw_ready += (int)frames_to_bytes(runtime, diff); runtime 405 sound/drivers/pcm-indirect2.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 406 sound/drivers/pcm-indirect2.c snd_pcm_uframes_t appl_ptr = runtime->control->appl_ptr; runtime 413 sound/drivers/pcm-indirect2.c if (diff < -(snd_pcm_sframes_t) (runtime->boundary / 2)) runtime 414 sound/drivers/pcm-indirect2.c diff += runtime->boundary; runtime 415 sound/drivers/pcm-indirect2.c rec->sw_ready -= frames_to_bytes(runtime, diff); runtime 49 sound/drivers/pcsp/pcsp_lib.c struct snd_pcm_runtime *runtime; runtime 62 sound/drivers/pcsp/pcsp_lib.c runtime = substream->runtime; runtime 64 sound/drivers/pcsp/pcsp_lib.c val = runtime->dma_area[chip->playback_ptr + chip->fmt_size - 1]; runtime 243 sound/drivers/pcsp/pcsp_lib.c snd_pcm_format_physical_width(substream->runtime->format) >> 3; runtime 244 sound/drivers/pcsp/pcsp_lib.c chip->is_signed = snd_pcm_format_signed(substream->runtime->format); runtime 252 sound/drivers/pcsp/pcsp_lib.c substream->runtime->periods, runtime 286 sound/drivers/pcsp/pcsp_lib.c return bytes_to_frames(substream->runtime, pos); runtime 314 sound/drivers/pcsp/pcsp_lib.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 322 sound/drivers/pcsp/pcsp_lib.c runtime->hw = snd_pcsp_playback; runtime 45 sound/drivers/vx/vx_pcm.c static void vx_pcm_read_per_bytes(struct vx_core *chip, struct snd_pcm_runtime *runtime, runtime 49 sound/drivers/vx/vx_pcm.c unsigned char *buf = (unsigned char *)(runtime->dma_area + offset); runtime 53 sound/drivers/vx/vx_pcm.c buf = (unsigned char *)runtime->dma_area; runtime 58 sound/drivers/vx/vx_pcm.c buf = (unsigned char *)runtime->dma_area; runtime 63 sound/drivers/vx/vx_pcm.c buf = (unsigned char *)runtime->dma_area; runtime 152 sound/drivers/vx/vx_pcm.c struct snd_pcm_runtime *runtime) runtime 156 sound/drivers/vx/vx_pcm.c if (runtime->channels == 1) runtime 158 sound/drivers/vx/vx_pcm.c if (snd_pcm_format_little_endian(runtime->format)) runtime 160 sound/drivers/vx/vx_pcm.c if (runtime->rate < 32000 && runtime->rate > 11025) runtime 162 sound/drivers/vx/vx_pcm.c else if (runtime->rate <= 11025) runtime 165 sound/drivers/vx/vx_pcm.c switch (snd_pcm_format_physical_width(runtime->format)) { runtime 513 sound/drivers/vx/vx_pcm.c struct snd_pcm_runtime *runtime = subs->runtime; runtime 541 sound/drivers/vx/vx_pcm.c runtime->hw = vx_pcm_playback_hw; runtime 542 sound/drivers/vx/vx_pcm.c runtime->hw.period_bytes_min = chip->ibl.size; runtime 543 sound/drivers/vx/vx_pcm.c runtime->private_data = pipe; runtime 546 sound/drivers/vx/vx_pcm.c snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_BYTES, 4); runtime 547 sound/drivers/vx/vx_pcm.c snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_BYTES, 4); runtime 560 sound/drivers/vx/vx_pcm.c if (! subs->runtime->private_data) runtime 563 sound/drivers/vx/vx_pcm.c pipe = subs->runtime->private_data; runtime 610 sound/drivers/vx/vx_pcm.c struct snd_pcm_runtime *runtime, runtime 632 sound/drivers/vx/vx_pcm.c vx_pseudo_dma_write(chip, runtime, pipe, size); runtime 648 sound/drivers/vx/vx_pcm.c struct snd_pcm_runtime *runtime, runtime 665 sound/drivers/vx/vx_pcm.c if (pipe->position >= (int)runtime->buffer_size) runtime 666 sound/drivers/vx/vx_pcm.c pipe->position %= runtime->buffer_size; runtime 680 sound/drivers/vx/vx_pcm.c struct snd_pcm_runtime *runtime = subs->runtime; runtime 685 sound/drivers/vx/vx_pcm.c if ((err = vx_pcm_playback_transfer_chunk(chip, runtime, pipe, runtime 700 sound/drivers/vx/vx_pcm.c struct snd_pcm_runtime *runtime = subs->runtime; runtime 703 sound/drivers/vx/vx_pcm.c if ((err = vx_update_pipe_position(chip, runtime, pipe)) < 0) runtime 705 sound/drivers/vx/vx_pcm.c if (pipe->transferred >= (int)runtime->period_size) { runtime 706 sound/drivers/vx/vx_pcm.c pipe->transferred %= runtime->period_size; runtime 718 sound/drivers/vx/vx_pcm.c struct vx_pipe *pipe = subs->runtime->private_data; runtime 770 sound/drivers/vx/vx_pcm.c struct snd_pcm_runtime *runtime = subs->runtime; runtime 771 sound/drivers/vx/vx_pcm.c struct vx_pipe *pipe = runtime->private_data; runtime 799 sound/drivers/vx/vx_pcm.c struct snd_pcm_runtime *runtime = subs->runtime; runtime 800 sound/drivers/vx/vx_pcm.c struct vx_pipe *pipe = runtime->private_data; runtime 826 sound/drivers/vx/vx_pcm.c if (chip->pcm_running && chip->freq != runtime->rate) { runtime 828 sound/drivers/vx/vx_pcm.c "from the current %d\n", runtime->rate, chip->freq); runtime 831 sound/drivers/vx/vx_pcm.c vx_set_clock(chip, runtime->rate); runtime 833 sound/drivers/vx/vx_pcm.c if ((err = vx_set_format(chip, pipe, runtime)) < 0) runtime 842 sound/drivers/vx/vx_pcm.c pipe->buffer_bytes = frames_to_bytes(runtime, runtime->buffer_size); runtime 843 sound/drivers/vx/vx_pcm.c pipe->period_bytes = frames_to_bytes(runtime, runtime->period_size); runtime 847 sound/drivers/vx/vx_pcm.c vx_update_pipe_position(chip, runtime, pipe); runtime 903 sound/drivers/vx/vx_pcm.c struct snd_pcm_runtime *runtime = subs->runtime; runtime 946 sound/drivers/vx/vx_pcm.c runtime->hw = vx_pcm_capture_hw; runtime 947 sound/drivers/vx/vx_pcm.c runtime->hw.period_bytes_min = chip->ibl.size; runtime 948 sound/drivers/vx/vx_pcm.c runtime->private_data = pipe; runtime 951 sound/drivers/vx/vx_pcm.c snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_BYTES, 4); runtime 952 sound/drivers/vx/vx_pcm.c snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_BYTES, 4); runtime 966 sound/drivers/vx/vx_pcm.c if (! subs->runtime->private_data) runtime 968 sound/drivers/vx/vx_pcm.c pipe = subs->runtime->private_data; runtime 1000 sound/drivers/vx/vx_pcm.c struct snd_pcm_runtime *runtime = subs->runtime; runtime 1005 sound/drivers/vx/vx_pcm.c size = runtime->buffer_size - snd_pcm_capture_avail(runtime); runtime 1008 sound/drivers/vx/vx_pcm.c size = frames_to_bytes(runtime, size); runtime 1028 sound/drivers/vx/vx_pcm.c vx_pcm_read_per_bytes(chip, runtime, pipe); runtime 1036 sound/drivers/vx/vx_pcm.c vx_pseudo_dma_read(chip, runtime, pipe, space); runtime 1044 sound/drivers/vx/vx_pcm.c vx_pcm_read_per_bytes(chip, runtime, pipe); runtime 1052 sound/drivers/vx/vx_pcm.c vx_pcm_read_per_bytes(chip, runtime, pipe); runtime 1074 sound/drivers/vx/vx_pcm.c struct snd_pcm_runtime *runtime = subs->runtime; runtime 1075 sound/drivers/vx/vx_pcm.c struct vx_pipe *pipe = runtime->private_data; runtime 1076 sound/drivers/vx/vx_pcm.c return bytes_to_frames(runtime, pipe->hw_ptr); runtime 155 sound/firewire/amdtp-am824.c struct snd_pcm_runtime *runtime = pcm->runtime; runtime 162 sound/firewire/amdtp-am824.c pcm_buffer_pointer %= runtime->buffer_size; runtime 164 sound/firewire/amdtp-am824.c src = (void *)runtime->dma_area + runtime 165 sound/firewire/amdtp-am824.c frames_to_bytes(runtime, pcm_buffer_pointer); runtime 166 sound/firewire/amdtp-am824.c remaining_frames = runtime->buffer_size - pcm_buffer_pointer; runtime 176 sound/firewire/amdtp-am824.c src = (void *)runtime->dma_area; runtime 186 sound/firewire/amdtp-am824.c struct snd_pcm_runtime *runtime = pcm->runtime; runtime 193 sound/firewire/amdtp-am824.c pcm_buffer_pointer %= runtime->buffer_size; runtime 195 sound/firewire/amdtp-am824.c dst = (void *)runtime->dma_area + runtime 196 sound/firewire/amdtp-am824.c frames_to_bytes(runtime, pcm_buffer_pointer); runtime 197 sound/firewire/amdtp-am824.c remaining_frames = runtime->buffer_size - pcm_buffer_pointer; runtime 206 sound/firewire/amdtp-am824.c dst = (void *)runtime->dma_area; runtime 230 sound/firewire/amdtp-am824.c struct snd_pcm_runtime *runtime) runtime 234 sound/firewire/amdtp-am824.c err = amdtp_stream_add_pcm_hw_constraints(s, runtime); runtime 239 sound/firewire/amdtp-am824.c return snd_pcm_hw_constraint_msbits(runtime, 0, 32, 24); runtime 42 sound/firewire/amdtp-am824.h struct snd_pcm_runtime *runtime); runtime 180 sound/firewire/amdtp-stream.c struct snd_pcm_runtime *runtime) runtime 182 sound/firewire/amdtp-stream.c struct snd_pcm_hardware *hw = &runtime->hw; runtime 213 sound/firewire/amdtp-stream.c err = snd_pcm_hw_constraint_minmax(runtime, runtime 229 sound/firewire/amdtp-stream.c err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_SIZE, runtime 235 sound/firewire/amdtp-stream.c err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_SIZE, runtime 419 sound/firewire/amdtp-stream.c if (ptr >= pcm->runtime->buffer_size) runtime 420 sound/firewire/amdtp-stream.c ptr -= pcm->runtime->buffer_size; runtime 424 sound/firewire/amdtp-stream.c if (s->pcm_period_pointer >= pcm->runtime->period_size) { runtime 425 sound/firewire/amdtp-stream.c s->pcm_period_pointer -= pcm->runtime->period_size; runtime 194 sound/firewire/amdtp-stream.h struct snd_pcm_runtime *runtime); runtime 98 sound/firewire/bebob/bebob_pcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 104 sound/firewire/bebob/bebob_pcm.c runtime->hw.formats = AM824_IN_PCM_FORMAT_BITS; runtime 108 sound/firewire/bebob/bebob_pcm.c runtime->hw.formats = AM824_OUT_PCM_FORMAT_BITS; runtime 113 sound/firewire/bebob/bebob_pcm.c limit_channels_and_rates(&runtime->hw, formations); runtime 115 sound/firewire/bebob/bebob_pcm.c err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, runtime 121 sound/firewire/bebob/bebob_pcm.c err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, runtime 127 sound/firewire/bebob/bebob_pcm.c err = amdtp_am824_add_pcm_hw_constraints(s, runtime); runtime 167 sound/firewire/bebob/bebob_pcm.c substream->runtime->hw.rate_min = sampling_rate; runtime 168 sound/firewire/bebob/bebob_pcm.c substream->runtime->hw.rate_max = sampling_rate; runtime 198 sound/firewire/bebob/bebob_pcm.c if (substream->runtime->status->state == SNDRV_PCM_STATE_OPEN) { runtime 217 sound/firewire/bebob/bebob_pcm.c if (substream->runtime->status->state != SNDRV_PCM_STATE_OPEN) runtime 88 sound/firewire/dice/dice-pcm.c struct snd_pcm_runtime *runtime, runtime 92 sound/firewire/dice/dice-pcm.c struct snd_pcm_hardware *hw = &runtime->hw; runtime 120 sound/firewire/dice/dice-pcm.c snd_pcm_limit_hw_rates(runtime); runtime 128 sound/firewire/dice/dice-pcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 129 sound/firewire/dice/dice-pcm.c struct snd_pcm_hardware *hw = &runtime->hw; runtime 145 sound/firewire/dice/dice-pcm.c err = limit_channels_and_rates(dice, substream->runtime, dir, runtime 150 sound/firewire/dice/dice-pcm.c err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, runtime 155 sound/firewire/dice/dice-pcm.c err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, runtime 161 sound/firewire/dice/dice-pcm.c return amdtp_am824_add_pcm_hw_constraints(stream, runtime); runtime 212 sound/firewire/dice/dice-pcm.c substream->runtime->hw.rate_min = rate; runtime 213 sound/firewire/dice/dice-pcm.c substream->runtime->hw.rate_max = rate; runtime 244 sound/firewire/dice/dice-pcm.c if (substream->runtime->status->state == SNDRV_PCM_STATE_OPEN) { runtime 263 sound/firewire/dice/dice-pcm.c if (substream->runtime->status->state != SNDRV_PCM_STATE_OPEN) runtime 151 sound/firewire/digi00x/amdtp-dot.c struct snd_pcm_runtime *runtime = pcm->runtime; runtime 158 sound/firewire/digi00x/amdtp-dot.c pcm_buffer_pointer %= runtime->buffer_size; runtime 160 sound/firewire/digi00x/amdtp-dot.c src = (void *)runtime->dma_area + runtime 161 sound/firewire/digi00x/amdtp-dot.c frames_to_bytes(runtime, pcm_buffer_pointer); runtime 162 sound/firewire/digi00x/amdtp-dot.c remaining_frames = runtime->buffer_size - pcm_buffer_pointer; runtime 173 sound/firewire/digi00x/amdtp-dot.c src = (void *)runtime->dma_area; runtime 183 sound/firewire/digi00x/amdtp-dot.c struct snd_pcm_runtime *runtime = pcm->runtime; runtime 190 sound/firewire/digi00x/amdtp-dot.c pcm_buffer_pointer %= runtime->buffer_size; runtime 192 sound/firewire/digi00x/amdtp-dot.c dst = (void *)runtime->dma_area + runtime 193 sound/firewire/digi00x/amdtp-dot.c frames_to_bytes(runtime, pcm_buffer_pointer); runtime 194 sound/firewire/digi00x/amdtp-dot.c remaining_frames = runtime->buffer_size - pcm_buffer_pointer; runtime 204 sound/firewire/digi00x/amdtp-dot.c dst = (void *)runtime->dma_area; runtime 323 sound/firewire/digi00x/amdtp-dot.c struct snd_pcm_runtime *runtime) runtime 328 sound/firewire/digi00x/amdtp-dot.c err = snd_pcm_hw_constraint_msbits(runtime, 0, 32, 24); runtime 332 sound/firewire/digi00x/amdtp-dot.c return amdtp_stream_add_pcm_hw_constraints(s, runtime); runtime 60 sound/firewire/digi00x/digi00x-pcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 61 sound/firewire/digi00x/digi00x-pcm.c struct snd_pcm_hardware *hw = &runtime->hw; runtime 67 sound/firewire/digi00x/digi00x-pcm.c substream->runtime->hw.formats = SNDRV_PCM_FMTBIT_S32; runtime 70 sound/firewire/digi00x/digi00x-pcm.c substream->runtime->hw.formats = SNDRV_PCM_FMTBIT_S32; runtime 81 sound/firewire/digi00x/digi00x-pcm.c snd_pcm_limit_hw_rates(runtime); runtime 83 sound/firewire/digi00x/digi00x-pcm.c err = snd_pcm_hw_rule_add(substream->runtime, 0, runtime 90 sound/firewire/digi00x/digi00x-pcm.c err = snd_pcm_hw_rule_add(substream->runtime, 0, runtime 97 sound/firewire/digi00x/digi00x-pcm.c return amdtp_dot_add_pcm_hw_constraints(s, substream->runtime); runtime 136 sound/firewire/digi00x/digi00x-pcm.c substream->runtime->hw.rate_min = rate; runtime 137 sound/firewire/digi00x/digi00x-pcm.c substream->runtime->hw.rate_max = rate; runtime 168 sound/firewire/digi00x/digi00x-pcm.c if (substream->runtime->status->state == SNDRV_PCM_STATE_OPEN) { runtime 187 sound/firewire/digi00x/digi00x-pcm.c if (substream->runtime->status->state != SNDRV_PCM_STATE_OPEN) runtime 124 sound/firewire/digi00x/digi00x.h struct snd_pcm_runtime *runtime); runtime 36 sound/firewire/fireface/amdtp-ff.c struct snd_pcm_runtime *runtime = pcm->runtime; runtime 43 sound/firewire/fireface/amdtp-ff.c pcm_buffer_pointer %= runtime->buffer_size; runtime 45 sound/firewire/fireface/amdtp-ff.c src = (void *)runtime->dma_area + runtime 46 sound/firewire/fireface/amdtp-ff.c frames_to_bytes(runtime, pcm_buffer_pointer); runtime 47 sound/firewire/fireface/amdtp-ff.c remaining_frames = runtime->buffer_size - pcm_buffer_pointer; runtime 56 sound/firewire/fireface/amdtp-ff.c src = (void *)runtime->dma_area; runtime 66 sound/firewire/fireface/amdtp-ff.c struct snd_pcm_runtime *runtime = pcm->runtime; runtime 73 sound/firewire/fireface/amdtp-ff.c pcm_buffer_pointer %= runtime->buffer_size; runtime 75 sound/firewire/fireface/amdtp-ff.c dst = (void *)runtime->dma_area + runtime 76 sound/firewire/fireface/amdtp-ff.c frames_to_bytes(runtime, pcm_buffer_pointer); runtime 77 sound/firewire/fireface/amdtp-ff.c remaining_frames = runtime->buffer_size - pcm_buffer_pointer; runtime 86 sound/firewire/fireface/amdtp-ff.c dst = (void *)runtime->dma_area; runtime 104 sound/firewire/fireface/amdtp-ff.c struct snd_pcm_runtime *runtime) runtime 108 sound/firewire/fireface/amdtp-ff.c err = snd_pcm_hw_constraint_msbits(runtime, 0, 32, 24); runtime 112 sound/firewire/fireface/amdtp-ff.c return amdtp_stream_add_pcm_hw_constraints(s, runtime); runtime 107 sound/firewire/fireface/ff-pcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 113 sound/firewire/fireface/ff-pcm.c runtime->hw.formats = SNDRV_PCM_FMTBIT_S32; runtime 117 sound/firewire/fireface/ff-pcm.c runtime->hw.formats = SNDRV_PCM_FMTBIT_S32; runtime 122 sound/firewire/fireface/ff-pcm.c limit_channels_and_rates(&runtime->hw, pcm_channels); runtime 124 sound/firewire/fireface/ff-pcm.c err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, runtime 130 sound/firewire/fireface/ff-pcm.c err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, runtime 136 sound/firewire/fireface/ff-pcm.c return amdtp_ff_add_pcm_hw_constraints(s, runtime); runtime 172 sound/firewire/fireface/ff-pcm.c substream->runtime->hw.rate_min = rate; runtime 173 sound/firewire/fireface/ff-pcm.c substream->runtime->hw.rate_max = rate; runtime 178 sound/firewire/fireface/ff-pcm.c substream->runtime->hw.rate_min = rate; runtime 179 sound/firewire/fireface/ff-pcm.c substream->runtime->hw.rate_max = rate; runtime 212 sound/firewire/fireface/ff-pcm.c if (substream->runtime->status->state == SNDRV_PCM_STATE_OPEN) { runtime 231 sound/firewire/fireface/ff-pcm.c if (substream->runtime->status->state != SNDRV_PCM_STATE_OPEN) runtime 244 sound/firewire/fireface/ff-pcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 249 sound/firewire/fireface/ff-pcm.c err = snd_ff_stream_start_duplex(ff, runtime->rate); runtime 261 sound/firewire/fireface/ff-pcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 266 sound/firewire/fireface/ff-pcm.c err = snd_ff_stream_start_duplex(ff, runtime->rate); runtime 134 sound/firewire/fireface/ff.h struct snd_pcm_runtime *runtime); runtime 135 sound/firewire/fireworks/fireworks_pcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 141 sound/firewire/fireworks/fireworks_pcm.c runtime->hw.formats = AM824_IN_PCM_FORMAT_BITS; runtime 145 sound/firewire/fireworks/fireworks_pcm.c runtime->hw.formats = AM824_OUT_PCM_FORMAT_BITS; runtime 151 sound/firewire/fireworks/fireworks_pcm.c runtime->hw.rates = efw->supported_sampling_rate, runtime 152 sound/firewire/fireworks/fireworks_pcm.c snd_pcm_limit_hw_rates(runtime); runtime 154 sound/firewire/fireworks/fireworks_pcm.c limit_channels(&runtime->hw, pcm_channels); runtime 156 sound/firewire/fireworks/fireworks_pcm.c err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, runtime 162 sound/firewire/fireworks/fireworks_pcm.c err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, runtime 168 sound/firewire/fireworks/fireworks_pcm.c err = amdtp_am824_add_pcm_hw_constraints(s, runtime); runtime 202 sound/firewire/fireworks/fireworks_pcm.c substream->runtime->hw.rate_min = sampling_rate; runtime 203 sound/firewire/fireworks/fireworks_pcm.c substream->runtime->hw.rate_max = sampling_rate; runtime 232 sound/firewire/fireworks/fireworks_pcm.c if (substream->runtime->status->state == SNDRV_PCM_STATE_OPEN) { runtime 251 sound/firewire/fireworks/fireworks_pcm.c if (substream->runtime->status->state != SNDRV_PCM_STATE_OPEN) runtime 90 sound/firewire/isight.c struct snd_pcm_runtime *runtime = isight->pcm->runtime; runtime 97 sound/firewire/isight.c if (ptr >= runtime->buffer_size) runtime 98 sound/firewire/isight.c ptr -= runtime->buffer_size; runtime 102 sound/firewire/isight.c if (isight->period_counter >= runtime->period_size) { runtime 103 sound/firewire/isight.c isight->period_counter -= runtime->period_size; runtime 111 sound/firewire/isight.c struct snd_pcm_runtime *runtime; runtime 117 sound/firewire/isight.c runtime = isight->pcm->runtime; runtime 118 sound/firewire/isight.c if (isight->buffer_pointer + count <= runtime->buffer_size) { runtime 119 sound/firewire/isight.c memcpy(runtime->dma_area + isight->buffer_pointer * 4, runtime 122 sound/firewire/isight.c count1 = runtime->buffer_size - isight->buffer_pointer; runtime 123 sound/firewire/isight.c memcpy(runtime->dma_area + isight->buffer_pointer * 4, runtime 126 sound/firewire/isight.c memcpy(runtime->dma_area, samples, (count - count1) * 4); runtime 140 sound/firewire/isight.c struct snd_pcm_runtime *runtime; runtime 147 sound/firewire/isight.c runtime = isight->pcm->runtime; runtime 149 sound/firewire/isight.c if (dropped < runtime->buffer_size) { runtime 150 sound/firewire/isight.c if (isight->buffer_pointer + dropped <= runtime->buffer_size) { runtime 151 sound/firewire/isight.c memset(runtime->dma_area + isight->buffer_pointer * 4, runtime 154 sound/firewire/isight.c count1 = runtime->buffer_size - isight->buffer_pointer; runtime 155 sound/firewire/isight.c memset(runtime->dma_area + isight->buffer_pointer * 4, runtime 157 sound/firewire/isight.c memset(runtime->dma_area, 0, (dropped - count1) * 4); runtime 268 sound/firewire/isight.c substream->runtime->hw = hardware; runtime 126 sound/firewire/motu/amdtp-motu.c struct snd_pcm_runtime *runtime = pcm->runtime; runtime 134 sound/firewire/motu/amdtp-motu.c pcm_buffer_pointer %= runtime->buffer_size; runtime 136 sound/firewire/motu/amdtp-motu.c dst = (void *)runtime->dma_area + runtime 137 sound/firewire/motu/amdtp-motu.c frames_to_bytes(runtime, pcm_buffer_pointer); runtime 138 sound/firewire/motu/amdtp-motu.c remaining_frames = runtime->buffer_size - pcm_buffer_pointer; runtime 152 sound/firewire/motu/amdtp-motu.c dst = (void *)runtime->dma_area; runtime 162 sound/firewire/motu/amdtp-motu.c struct snd_pcm_runtime *runtime = pcm->runtime; runtime 170 sound/firewire/motu/amdtp-motu.c pcm_buffer_pointer %= runtime->buffer_size; runtime 172 sound/firewire/motu/amdtp-motu.c src = (void *)runtime->dma_area + runtime 173 sound/firewire/motu/amdtp-motu.c frames_to_bytes(runtime, pcm_buffer_pointer); runtime 174 sound/firewire/motu/amdtp-motu.c remaining_frames = runtime->buffer_size - pcm_buffer_pointer; runtime 189 sound/firewire/motu/amdtp-motu.c src = (void *)runtime->dma_area; runtime 217 sound/firewire/motu/amdtp-motu.c struct snd_pcm_runtime *runtime) runtime 222 sound/firewire/motu/amdtp-motu.c err = snd_pcm_hw_constraint_msbits(runtime, 0, 32, 24); runtime 226 sound/firewire/motu/amdtp-motu.c return amdtp_stream_add_pcm_hw_constraints(s, runtime); runtime 72 sound/firewire/motu/motu-pcm.c struct snd_pcm_runtime *runtime, runtime 75 sound/firewire/motu/motu-pcm.c struct snd_pcm_hardware *hw = &runtime->hw; runtime 95 sound/firewire/motu/motu-pcm.c snd_pcm_limit_hw_rates(runtime); runtime 101 sound/firewire/motu/motu-pcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 102 sound/firewire/motu/motu-pcm.c struct snd_pcm_hardware *hw = &runtime->hw; runtime 117 sound/firewire/motu/motu-pcm.c limit_channels_and_rates(motu, runtime, formats); runtime 119 sound/firewire/motu/motu-pcm.c err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, runtime 124 sound/firewire/motu/motu-pcm.c err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, runtime 130 sound/firewire/motu/motu-pcm.c return amdtp_motu_add_pcm_hw_constraints(stream, runtime); runtime 168 sound/firewire/motu/motu-pcm.c substream->runtime->hw.rate_min = rate; runtime 169 sound/firewire/motu/motu-pcm.c substream->runtime->hw.rate_max = rate; runtime 203 sound/firewire/motu/motu-pcm.c if (substream->runtime->status->state == SNDRV_PCM_STATE_OPEN) { runtime 222 sound/firewire/motu/motu-pcm.c if (substream->runtime->status->state != SNDRV_PCM_STATE_OPEN) runtime 142 sound/firewire/motu/motu.h struct snd_pcm_runtime *runtime); runtime 112 sound/firewire/oxfw/oxfw-pcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 118 sound/firewire/oxfw/oxfw-pcm.c runtime->hw.formats = AM824_IN_PCM_FORMAT_BITS; runtime 122 sound/firewire/oxfw/oxfw-pcm.c runtime->hw.formats = AM824_OUT_PCM_FORMAT_BITS; runtime 127 sound/firewire/oxfw/oxfw-pcm.c limit_channels_and_rates(&runtime->hw, formats); runtime 129 sound/firewire/oxfw/oxfw-pcm.c err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, runtime 135 sound/firewire/oxfw/oxfw-pcm.c err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, runtime 141 sound/firewire/oxfw/oxfw-pcm.c err = amdtp_am824_add_pcm_hw_constraints(stream, runtime); runtime 162 sound/firewire/oxfw/oxfw-pcm.c substream->runtime->hw.channels_min = formation.pcm; runtime 163 sound/firewire/oxfw/oxfw-pcm.c substream->runtime->hw.channels_max = formation.pcm; runtime 164 sound/firewire/oxfw/oxfw-pcm.c substream->runtime->hw.rate_min = formation.rate; runtime 165 sound/firewire/oxfw/oxfw-pcm.c substream->runtime->hw.rate_max = formation.rate; runtime 221 sound/firewire/oxfw/oxfw-pcm.c if (substream->runtime->status->state == SNDRV_PCM_STATE_OPEN) { runtime 246 sound/firewire/oxfw/oxfw-pcm.c if (substream->runtime->status->state == SNDRV_PCM_STATE_OPEN) { runtime 267 sound/firewire/oxfw/oxfw-pcm.c if (substream->runtime->status->state != SNDRV_PCM_STATE_OPEN) runtime 282 sound/firewire/oxfw/oxfw-pcm.c if (substream->runtime->status->state != SNDRV_PCM_STATE_OPEN) runtime 41 sound/firewire/tascam/amdtp-tascam.c struct snd_pcm_runtime *runtime = pcm->runtime; runtime 48 sound/firewire/tascam/amdtp-tascam.c pcm_buffer_pointer %= runtime->buffer_size; runtime 50 sound/firewire/tascam/amdtp-tascam.c src = (void *)runtime->dma_area + runtime 51 sound/firewire/tascam/amdtp-tascam.c frames_to_bytes(runtime, pcm_buffer_pointer); runtime 52 sound/firewire/tascam/amdtp-tascam.c remaining_frames = runtime->buffer_size - pcm_buffer_pointer; runtime 61 sound/firewire/tascam/amdtp-tascam.c src = (void *)runtime->dma_area; runtime 71 sound/firewire/tascam/amdtp-tascam.c struct snd_pcm_runtime *runtime = pcm->runtime; runtime 78 sound/firewire/tascam/amdtp-tascam.c pcm_buffer_pointer %= runtime->buffer_size; runtime 80 sound/firewire/tascam/amdtp-tascam.c dst = (void *)runtime->dma_area + runtime 81 sound/firewire/tascam/amdtp-tascam.c frames_to_bytes(runtime, pcm_buffer_pointer); runtime 82 sound/firewire/tascam/amdtp-tascam.c remaining_frames = runtime->buffer_size - pcm_buffer_pointer; runtime 94 sound/firewire/tascam/amdtp-tascam.c dst = (void *)runtime->dma_area; runtime 114 sound/firewire/tascam/amdtp-tascam.c struct snd_pcm_runtime *runtime) runtime 122 sound/firewire/tascam/amdtp-tascam.c err = snd_pcm_hw_constraint_msbits(runtime, 0, 32, 24); runtime 126 sound/firewire/tascam/amdtp-tascam.c return amdtp_stream_add_pcm_hw_constraints(s, runtime); runtime 13 sound/firewire/tascam/tascam-pcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 14 sound/firewire/tascam/tascam-pcm.c struct snd_pcm_hardware *hw = &runtime->hw; runtime 19 sound/firewire/tascam/tascam-pcm.c runtime->hw.formats = SNDRV_PCM_FMTBIT_S32; runtime 23 sound/firewire/tascam/tascam-pcm.c runtime->hw.formats = SNDRV_PCM_FMTBIT_S32; runtime 32 sound/firewire/tascam/tascam-pcm.c runtime->hw.channels_min = runtime->hw.channels_max = pcm_channels; runtime 38 sound/firewire/tascam/tascam-pcm.c snd_pcm_limit_hw_rates(runtime); runtime 40 sound/firewire/tascam/tascam-pcm.c return amdtp_tscm_add_pcm_hw_constraints(stream, runtime); runtime 68 sound/firewire/tascam/tascam-pcm.c substream->runtime->hw.rate_min = rate; runtime 69 sound/firewire/tascam/tascam-pcm.c substream->runtime->hw.rate_max = rate; runtime 100 sound/firewire/tascam/tascam-pcm.c if (substream->runtime->status->state == SNDRV_PCM_STATE_OPEN) { runtime 119 sound/firewire/tascam/tascam-pcm.c if (substream->runtime->status->state != SNDRV_PCM_STATE_OPEN) runtime 132 sound/firewire/tascam/tascam-pcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 137 sound/firewire/tascam/tascam-pcm.c err = snd_tscm_stream_start_duplex(tscm, runtime->rate); runtime 149 sound/firewire/tascam/tascam-pcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 154 sound/firewire/tascam/tascam-pcm.c err = snd_tscm_stream_start_duplex(tscm, runtime->rate); runtime 163 sound/firewire/tascam/tascam.h struct snd_pcm_runtime *runtime); runtime 24 sound/hda/hdac_stream.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 25 sound/hda/hdac_stream.c unsigned int channels = runtime->channels, runtime 26 sound/hda/hdac_stream.c rate = runtime->rate, runtime 27 sound/hda/hdac_stream.c bits_per_sample = runtime->sample_bits, runtime 191 sound/hda/hdac_stream.c struct snd_pcm_runtime *runtime; runtime 195 sound/hda/hdac_stream.c runtime = azx_dev->substream->runtime; runtime 197 sound/hda/hdac_stream.c runtime = NULL; runtime 241 sound/hda/hdac_stream.c if (runtime && runtime->period_size > 64) runtime 243 sound/hda/hdac_stream.c -frames_to_bytes(runtime, 64); runtime 248 sound/hda/hdac_stream.c if (runtime) runtime 249 sound/hda/hdac_stream.c azx_dev->period_wallclk = (((runtime->period_size * 24000) / runtime 250 sound/hda/hdac_stream.c runtime->rate) * 1000); runtime 411 sound/hda/hdac_stream.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 431 sound/hda/hdac_stream.c pos_adj = (pos_adj * runtime->rate + 47999) / 48000; runtime 437 sound/hda/hdac_stream.c pos_adj = frames_to_bytes(runtime, pos_adj); runtime 488 sound/hda/hdac_stream.c struct snd_pcm_runtime *runtime; runtime 493 sound/hda/hdac_stream.c runtime = substream->runtime; runtime 500 sound/hda/hdac_stream.c runtime->no_period_wakeup != azx_dev->no_period_wakeup) { runtime 504 sound/hda/hdac_stream.c azx_dev->no_period_wakeup = runtime->no_period_wakeup; runtime 568 sound/hda/hdac_stream.c struct snd_pcm_runtime *runtime = azx_dev->substream->runtime; runtime 585 sound/hda/hdac_stream.c snd_pcm_gettime(runtime, &runtime->trigger_tstamp); runtime 586 sound/hda/hdac_stream.c runtime->trigger_tstamp_latched = true; runtime 775 sound/hda/hdmi_chmap.c if (!substream || !substream->runtime) runtime 777 sound/hda/hdmi_chmap.c switch (substream->runtime->status->state) { runtime 430 sound/i2c/cs8427.c struct snd_pcm_runtime *runtime = chip->playback.substream ? runtime 431 sound/i2c/cs8427.c chip->playback.substream->runtime : NULL; runtime 438 sound/i2c/cs8427.c runtime != NULL : runtime == NULL)) { runtime 523 sound/i2c/other/ak4113.c struct snd_pcm_runtime *runtime = runtime 524 sound/i2c/other/ak4113.c ak4113->substream ? ak4113->substream->runtime : NULL; runtime 598 sound/i2c/other/ak4113.c if (!(flags & AK4113_CHECK_NO_RATE) && runtime && runtime 599 sound/i2c/other/ak4113.c (runtime->rate != res)) { runtime 606 sound/i2c/other/ak4113.c wake_up(&runtime->sleep); runtime 555 sound/i2c/other/ak4114.c struct snd_pcm_runtime *runtime = ak4114->capture_substream ? ak4114->capture_substream->runtime : NULL; runtime 588 sound/i2c/other/ak4114.c if (!(flags & AK4114_CHECK_NO_RATE) && runtime && runtime->rate != res) { runtime 443 sound/i2c/other/ak4117.c struct snd_pcm_runtime *runtime = ak4117->substream ? ak4117->substream->runtime : NULL; runtime 504 sound/i2c/other/ak4117.c if (!(flags & AK4117_CHECK_NO_RATE) && runtime && runtime->rate != res) { runtime 509 sound/i2c/other/ak4117.c wake_up(&runtime->sleep); runtime 224 sound/isa/ad1816a/ad1816a_lib.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 233 sound/isa/ad1816a/ad1816a_lib.c snd_dma_program(chip->dma1, runtime->dma_addr, size, runtime 236 sound/isa/ad1816a/ad1816a_lib.c rate = runtime->rate; runtime 242 sound/isa/ad1816a/ad1816a_lib.c snd_ad1816a_get_format(chip, runtime->format, runtime 243 sound/isa/ad1816a/ad1816a_lib.c runtime->channels)); runtime 256 sound/isa/ad1816a/ad1816a_lib.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 265 sound/isa/ad1816a/ad1816a_lib.c snd_dma_program(chip->dma2, runtime->dma_addr, size, runtime 268 sound/isa/ad1816a/ad1816a_lib.c rate = runtime->rate; runtime 274 sound/isa/ad1816a/ad1816a_lib.c snd_ad1816a_get_format(chip, runtime->format, runtime 275 sound/isa/ad1816a/ad1816a_lib.c runtime->channels)); runtime 292 sound/isa/ad1816a/ad1816a_lib.c return bytes_to_frames(substream->runtime, ptr); runtime 302 sound/isa/ad1816a/ad1816a_lib.c return bytes_to_frames(substream->runtime, ptr); runtime 437 sound/isa/ad1816a/ad1816a_lib.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 442 sound/isa/ad1816a/ad1816a_lib.c runtime->hw = snd_ad1816a_playback; runtime 443 sound/isa/ad1816a/ad1816a_lib.c snd_pcm_limit_isa_dma_size(chip->dma1, &runtime->hw.buffer_bytes_max); runtime 444 sound/isa/ad1816a/ad1816a_lib.c snd_pcm_limit_isa_dma_size(chip->dma1, &runtime->hw.period_bytes_max); runtime 452 sound/isa/ad1816a/ad1816a_lib.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 457 sound/isa/ad1816a/ad1816a_lib.c runtime->hw = snd_ad1816a_capture; runtime 458 sound/isa/ad1816a/ad1816a_lib.c snd_pcm_limit_isa_dma_size(chip->dma2, &runtime->hw.buffer_bytes_max); runtime 459 sound/isa/ad1816a/ad1816a_lib.c snd_pcm_limit_isa_dma_size(chip->dma2, &runtime->hw.period_bytes_max); runtime 143 sound/isa/cs423x/cs4236_lib.c static int snd_cs4236_xrate(struct snd_pcm_runtime *runtime) runtime 145 sound/isa/cs423x/cs4236_lib.c return snd_pcm_hw_constraint_ratnums(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, runtime 298 sound/isa/es1688/es1688_lib.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 301 sound/isa/es1688/es1688_lib.c if (runtime->rate_num == clocks[0].num) runtime 302 sound/isa/es1688/es1688_lib.c bits = 256 - runtime->rate_den; runtime 304 sound/isa/es1688/es1688_lib.c bits = 128 - runtime->rate_den; runtime 306 sound/isa/es1688/es1688_lib.c divider = 256 - 7160000*20/(8*82*runtime->rate); runtime 359 sound/isa/es1688/es1688_lib.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 368 sound/isa/es1688/es1688_lib.c snd_es1688_write(chip, 0xa8, (snd_es1688_read(chip, 0xa8) & ~0x03) | (3 - runtime->channels)); runtime 370 sound/isa/es1688/es1688_lib.c if (runtime->channels == 1) { runtime 371 sound/isa/es1688/es1688_lib.c if (snd_pcm_format_width(runtime->format) == 8) { runtime 383 sound/isa/es1688/es1688_lib.c if (snd_pcm_format_width(runtime->format) == 8) { runtime 401 sound/isa/es1688/es1688_lib.c snd_dma_program(chip->dma8, runtime->dma_addr, size, DMA_MODE_WRITE | DMA_AUTOINIT); runtime 420 sound/isa/es1688/es1688_lib.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 430 sound/isa/es1688/es1688_lib.c snd_es1688_write(chip, 0xa8, (snd_es1688_read(chip, 0xa8) & ~0x03) | (3 - runtime->channels)); runtime 432 sound/isa/es1688/es1688_lib.c if (runtime->channels == 1) { runtime 433 sound/isa/es1688/es1688_lib.c if (snd_pcm_format_width(runtime->format) == 8) { runtime 443 sound/isa/es1688/es1688_lib.c if (snd_pcm_format_width(runtime->format) == 8) { runtime 458 sound/isa/es1688/es1688_lib.c snd_dma_program(chip->dma8, runtime->dma_addr, size, DMA_MODE_READ | DMA_AUTOINIT); runtime 494 sound/isa/es1688/es1688_lib.c return bytes_to_frames(substream->runtime, ptr); runtime 505 sound/isa/es1688/es1688_lib.c return bytes_to_frames(substream->runtime, ptr); runtime 555 sound/isa/es1688/es1688_lib.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 560 sound/isa/es1688/es1688_lib.c runtime->hw = snd_es1688_playback; runtime 561 sound/isa/es1688/es1688_lib.c snd_pcm_hw_constraint_ratnums(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, runtime 569 sound/isa/es1688/es1688_lib.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 574 sound/isa/es1688/es1688_lib.c runtime->hw = snd_es1688_capture; runtime 575 sound/isa/es1688/es1688_lib.c snd_pcm_hw_constraint_ratnums(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, runtime 403 sound/isa/es18xx.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 405 sound/isa/es18xx.c if (runtime->rate_num == new_clocks[0].num) runtime 406 sound/isa/es18xx.c bits = 128 - runtime->rate_den; runtime 408 sound/isa/es18xx.c bits = 256 - runtime->rate_den; runtime 410 sound/isa/es18xx.c if (runtime->rate_num == old_clocks[0].num) runtime 411 sound/isa/es18xx.c bits = 256 - runtime->rate_den; runtime 413 sound/isa/es18xx.c bits = 128 - runtime->rate_den; runtime 417 sound/isa/es18xx.c div0 = 256 - 7160000*20/(8*82*runtime->rate); runtime 469 sound/isa/es18xx.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 482 sound/isa/es18xx.c ((runtime->channels == 1) ? 0x00 : 0x02) | runtime 483 sound/isa/es18xx.c (snd_pcm_format_width(runtime->format) == 16 ? 0x01 : 0x00) | runtime 484 sound/isa/es18xx.c (snd_pcm_format_unsigned(runtime->format) ? 0x00 : 0x04)); runtime 487 sound/isa/es18xx.c snd_dma_program(chip->dma2, runtime->dma_addr, size, DMA_MODE_WRITE | DMA_AUTOINIT); runtime 568 sound/isa/es18xx.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 575 sound/isa/es18xx.c snd_es18xx_bits(chip, 0xA8, 0x03, runtime->channels == 1 ? 0x02 : 0x01); runtime 590 sound/isa/es18xx.c snd_pcm_format_unsigned(runtime->format) ? 0x51 : 0x71); runtime 592 sound/isa/es18xx.c ((runtime->channels == 1) ? 0x40 : 0x08) | runtime 593 sound/isa/es18xx.c (snd_pcm_format_width(runtime->format) == 16 ? 0x04 : 0x00) | runtime 594 sound/isa/es18xx.c (snd_pcm_format_unsigned(runtime->format) ? 0x00 : 0x20)); runtime 597 sound/isa/es18xx.c snd_dma_program(chip->dma1, runtime->dma_addr, size, DMA_MODE_READ | DMA_AUTOINIT); runtime 634 sound/isa/es18xx.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 641 sound/isa/es18xx.c snd_es18xx_bits(chip, 0xA8, 0x03, runtime->channels == 1 ? 0x02 : 0x01); runtime 652 sound/isa/es18xx.c snd_pcm_format_unsigned(runtime->format) ? 0x80 : 0x00); runtime 654 sound/isa/es18xx.c snd_pcm_format_unsigned(runtime->format) ? 0x51 : 0x71); runtime 656 sound/isa/es18xx.c (runtime->channels == 1 ? 0x40 : 0x08) | runtime 657 sound/isa/es18xx.c (snd_pcm_format_width(runtime->format) == 16 ? 0x04 : 0x00) | runtime 658 sound/isa/es18xx.c (snd_pcm_format_unsigned(runtime->format) ? 0x00 : 0x20)); runtime 661 sound/isa/es18xx.c snd_dma_program(chip->dma1, runtime->dma_addr, size, DMA_MODE_WRITE | DMA_AUTOINIT); runtime 868 sound/isa/es18xx.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 874 sound/isa/es18xx.c chip->capture_a_substream->runtime->channels != 1) runtime 885 sound/isa/es18xx.c substream->runtime->hw = snd_es18xx_playback; runtime 886 sound/isa/es18xx.c snd_pcm_hw_constraint_ratnums(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, runtime 893 sound/isa/es18xx.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 900 sound/isa/es18xx.c chip->playback_a_substream->runtime->channels != 1) runtime 903 sound/isa/es18xx.c substream->runtime->hw = snd_es18xx_capture; runtime 904 sound/isa/es18xx.c snd_pcm_hw_constraint_ratnums(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, runtime 65 sound/isa/gus/gus_pcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 66 sound/isa/gus/gus_pcm.c struct gus_pcm_private *pcmp = runtime->private_data; runtime 76 sound/isa/gus/gus_pcm.c if (snd_pcm_format_unsigned(runtime->format)) runtime 78 sound/isa/gus/gus_pcm.c if (snd_pcm_format_width(runtime->format) == 16) runtime 81 sound/isa/gus/gus_pcm.c block.buffer = runtime->dma_area + offset; runtime 82 sound/isa/gus/gus_pcm.c block.buf_addr = runtime->dma_addr + offset; runtime 93 sound/isa/gus/gus_pcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 94 sound/isa/gus/gus_pcm.c struct gus_pcm_private *pcmp = runtime->private_data; runtime 112 sound/isa/gus/gus_pcm.c rate = snd_gf1_translate_freq(gus, runtime->rate << 4); runtime 114 sound/isa/gus/gus_pcm.c voice_ctrl = snd_pcm_format_width(runtime->format) == 16 ? 0x24 : 0x20; runtime 122 sound/isa/gus/gus_pcm.c begin = pcmp->memory + voice * (pcmp->dma_size / runtime->channels); runtime 123 sound/isa/gus/gus_pcm.c curr = begin + (pcmp->bpos * pcmp->block_size) / runtime->channels; runtime 124 sound/isa/gus/gus_pcm.c end = curr + (pcmp->block_size / runtime->channels); runtime 125 sound/isa/gus/gus_pcm.c end -= snd_pcm_format_width(runtime->format) == 16 ? 2 : 1; runtime 131 sound/isa/gus/gus_pcm.c pan = runtime->channels == 2 ? (!voice ? 1 : 14) : 8; runtime 175 sound/isa/gus/gus_pcm.c struct snd_pcm_runtime *runtime; runtime 192 sound/isa/gus/gus_pcm.c runtime = pcmp->substream->runtime; runtime 214 sound/isa/gus/gus_pcm.c end = pcmp->memory + (((pcmp->bpos + 1) * pcmp->block_size) / runtime->channels); runtime 216 sound/isa/gus/gus_pcm.c step = pcmp->dma_size / runtime->channels; runtime 243 sound/isa/gus/gus_pcm.c if ((runtime->flags & SNDRV_PCM_FLG_MMAP) && runtime 244 sound/isa/gus/gus_pcm.c *runtime->state == SNDRV_PCM_STATE_RUNNING) { runtime 246 sound/isa/gus/gus_pcm.c if (runtime->channels > 1) { runtime 355 sound/isa/gus/gus_pcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 356 sound/isa/gus/gus_pcm.c struct gus_pcm_private *pcmp = runtime->private_data; runtime 364 sound/isa/gus/gus_pcm.c w16 = (snd_pcm_format_width(runtime->format) == 16); runtime 365 sound/isa/gus/gus_pcm.c invert = snd_pcm_format_unsigned(runtime->format); runtime 366 sound/isa/gus/gus_pcm.c return snd_gf1_pcm_poke_block(gus, runtime->dma_area + bpos, runtime 374 sound/isa/gus/gus_pcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 375 sound/isa/gus/gus_pcm.c struct gus_pcm_private *pcmp = runtime->private_data; runtime 382 sound/isa/gus/gus_pcm.c if (copy_from_user(runtime->dma_area + bpos, src, len)) runtime 391 sound/isa/gus/gus_pcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 392 sound/isa/gus/gus_pcm.c struct gus_pcm_private *pcmp = runtime->private_data; runtime 399 sound/isa/gus/gus_pcm.c memcpy(runtime->dma_area + bpos, src, len); runtime 407 sound/isa/gus/gus_pcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 408 sound/isa/gus/gus_pcm.c struct gus_pcm_private *pcmp = runtime->private_data; runtime 415 sound/isa/gus/gus_pcm.c snd_pcm_format_set_silence(runtime->format, runtime->dma_area + bpos, runtime 416 sound/isa/gus/gus_pcm.c bytes_to_samples(runtime, count)); runtime 424 sound/isa/gus/gus_pcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 425 sound/isa/gus/gus_pcm.c struct gus_pcm_private *pcmp = runtime->private_data; runtime 439 sound/isa/gus/gus_pcm.c runtime->dma_bytes, 1, 32, runtime 471 sound/isa/gus/gus_pcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 472 sound/isa/gus/gus_pcm.c struct gus_pcm_private *pcmp = runtime->private_data; runtime 492 sound/isa/gus/gus_pcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 493 sound/isa/gus/gus_pcm.c struct gus_pcm_private *pcmp = runtime->private_data; runtime 506 sound/isa/gus/gus_pcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 507 sound/isa/gus/gus_pcm.c struct gus_pcm_private *pcmp = runtime->private_data; runtime 531 sound/isa/gus/gus_pcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 532 sound/isa/gus/gus_pcm.c struct gus_pcm_private *pcmp = runtime->private_data; runtime 542 sound/isa/gus/gus_pcm.c if (substream->runtime->channels > 1) runtime 544 sound/isa/gus/gus_pcm.c pos = bytes_to_frames(runtime, pos); runtime 588 sound/isa/gus/gus_pcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 590 sound/isa/gus/gus_pcm.c snd_gf1_i_write8(gus, SNDRV_GF1_GB_RECORD_RATE, runtime->rate_den - 2); runtime 593 sound/isa/gus/gus_pcm.c snd_dma_program(gus->gf1.dma2, runtime->dma_addr, gus->c_period_size, DMA_MODE_READ); runtime 622 sound/isa/gus/gus_pcm.c pos = bytes_to_frames(substream->runtime, (gus->c_pos + pos) % gus->c_dma_size); runtime 674 sound/isa/gus/gus_pcm.c static void snd_gf1_pcm_playback_free(struct snd_pcm_runtime *runtime) runtime 676 sound/isa/gus/gus_pcm.c kfree(runtime->private_data); runtime 683 sound/isa/gus/gus_pcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 694 sound/isa/gus/gus_pcm.c runtime->private_data = pcmp; runtime 695 sound/isa/gus/gus_pcm.c runtime->private_free = snd_gf1_pcm_playback_free; runtime 705 sound/isa/gus/gus_pcm.c runtime->hw = snd_gf1_pcm_playback; runtime 706 sound/isa/gus/gus_pcm.c snd_pcm_limit_isa_dma_size(gus->gf1.dma1, &runtime->hw.buffer_bytes_max); runtime 707 sound/isa/gus/gus_pcm.c snd_pcm_limit_isa_dma_size(gus->gf1.dma1, &runtime->hw.period_bytes_max); runtime 708 sound/isa/gus/gus_pcm.c snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_BYTES, 64); runtime 715 sound/isa/gus/gus_pcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 716 sound/isa/gus/gus_pcm.c struct gus_pcm_private *pcmp = runtime->private_data; runtime 727 sound/isa/gus/gus_pcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 732 sound/isa/gus/gus_pcm.c substream->runtime->hw = snd_gf1_pcm_capture; runtime 733 sound/isa/gus/gus_pcm.c snd_pcm_limit_isa_dma_size(gus->gf1.dma2, &runtime->hw.buffer_bytes_max); runtime 734 sound/isa/gus/gus_pcm.c snd_pcm_limit_isa_dma_size(gus->gf1.dma2, &runtime->hw.period_bytes_max); runtime 735 sound/isa/gus/gus_pcm.c snd_pcm_hw_constraint_ratnums(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, runtime 468 sound/isa/msnd/msnd.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 475 sound/isa/msnd/msnd.c runtime->dma_area = (__force void *)chip->mappedbase; runtime 476 sound/isa/msnd/msnd.c runtime->dma_bytes = 0x3000; runtime 479 sound/isa/msnd/msnd.c runtime->hw = snd_msnd_playback; runtime 558 sound/isa/msnd/msnd.c return bytes_to_frames(substream->runtime, chip->playDMAPos); runtime 574 sound/isa/msnd/msnd.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 579 sound/isa/msnd/msnd.c runtime->dma_area = (__force void *)chip->mappedbase + 0x3000; runtime 580 sound/isa/msnd/msnd.c runtime->dma_bytes = 0x3000; runtime 581 sound/isa/msnd/msnd.c memset(runtime->dma_area, 0, runtime->dma_bytes); runtime 583 sound/isa/msnd/msnd.c runtime->hw = snd_msnd_capture; runtime 632 sound/isa/msnd/msnd.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 635 sound/isa/msnd/msnd.c return bytes_to_frames(runtime, chip->captureDMAPos); runtime 220 sound/isa/sb/emu8000_pcm.c struct snd_pcm_runtime *runtime = subs->runtime; runtime 228 sound/isa/sb/emu8000_pcm.c runtime->private_data = rec; runtime 233 sound/isa/sb/emu8000_pcm.c runtime->hw = emu8k_pcm_hw; runtime 234 sound/isa/sb/emu8000_pcm.c runtime->hw.buffer_bytes_max = emu->mem_size - LOOP_BLANK_SIZE * 3; runtime 235 sound/isa/sb/emu8000_pcm.c runtime->hw.period_bytes_max = runtime->hw.buffer_bytes_max / 2; runtime 238 sound/isa/sb/emu8000_pcm.c snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_PERIOD_TIME, runtime 246 sound/isa/sb/emu8000_pcm.c struct snd_emu8k_pcm *rec = subs->runtime->private_data; runtime 248 sound/isa/sb/emu8000_pcm.c subs->runtime->private_data = NULL; runtime 375 sound/isa/sb/emu8000_pcm.c struct snd_emu8k_pcm *rec = subs->runtime->private_data; runtime 455 sound/isa/sb/emu8000_pcm.c struct snd_emu8k_pcm *rec = subs->runtime->private_data; runtime 468 sound/isa/sb/emu8000_pcm.c struct snd_emu8k_pcm *rec = subs->runtime->private_data; runtime 481 sound/isa/sb/emu8000_pcm.c struct snd_emu8k_pcm *rec = subs->runtime->private_data; runtime 523 sound/isa/sb/emu8000_pcm.c struct snd_emu8k_pcm *rec = subs->runtime->private_data; runtime 526 sound/isa/sb/emu8000_pcm.c pos = bytes_to_frames(subs->runtime, pos); runtime 527 sound/isa/sb/emu8000_pcm.c count = bytes_to_frames(subs->runtime, count); runtime 536 sound/isa/sb/emu8000_pcm.c struct snd_emu8k_pcm *rec = subs->runtime->private_data; runtime 539 sound/isa/sb/emu8000_pcm.c pos = bytes_to_frames(subs->runtime, pos); runtime 540 sound/isa/sb/emu8000_pcm.c count = bytes_to_frames(subs->runtime, count); runtime 548 sound/isa/sb/emu8000_pcm.c struct snd_emu8k_pcm *rec = subs->runtime->private_data; runtime 551 sound/isa/sb/emu8000_pcm.c pos = bytes_to_frames(subs->runtime, pos); runtime 552 sound/isa/sb/emu8000_pcm.c count = bytes_to_frames(subs->runtime, count); runtime 565 sound/isa/sb/emu8000_pcm.c struct snd_emu8k_pcm *rec = subs->runtime->private_data; runtime 589 sound/isa/sb/emu8000_pcm.c struct snd_emu8k_pcm *rec = subs->runtime->private_data; runtime 607 sound/isa/sb/emu8000_pcm.c struct snd_emu8k_pcm *rec = subs->runtime->private_data; runtime 609 sound/isa/sb/emu8000_pcm.c rec->pitch = 0xe000 + calc_rate_offset(subs->runtime->rate); runtime 613 sound/isa/sb/emu8000_pcm.c rec->buf_size = subs->runtime->buffer_size; runtime 614 sound/isa/sb/emu8000_pcm.c rec->period_size = subs->runtime->period_size; runtime 615 sound/isa/sb/emu8000_pcm.c rec->voices = subs->runtime->channels; runtime 653 sound/isa/sb/emu8000_pcm.c struct snd_emu8k_pcm *rec = subs->runtime->private_data; runtime 37 sound/isa/sb/sb16_main.c #define runtime_format_bits(runtime) \ runtime 38 sound/isa/sb/sb16_main.c ((unsigned int)pcm_format_to_bits((runtime)->format)) runtime 41 sound/isa/sb/sb16_main.c static void snd_sb16_csp_playback_prepare(struct snd_sb *chip, struct snd_pcm_runtime *runtime) runtime 49 sound/isa/sb/sb16_main.c (runtime_format_bits(runtime) == csp->acc_format)) { runtime 57 sound/isa/sb/sb16_main.c if (runtime_format_bits(runtime) & (SNDRV_PCM_FMTBIT_S8 | SNDRV_PCM_FMTBIT_U8 | runtime 68 sound/isa/sb/sb16_main.c if (csp->ops.csp_autoload(csp, runtime->format, SNDRV_SB_CSP_MODE_DSP_WRITE)) { runtime 76 sound/isa/sb/sb16_main.c (runtime->channels > 1) ? runtime 89 sound/isa/sb/sb16_main.c static void snd_sb16_csp_capture_prepare(struct snd_sb *chip, struct snd_pcm_runtime *runtime) runtime 97 sound/isa/sb/sb16_main.c (runtime_format_bits(runtime) == csp->acc_format)) { runtime 106 sound/isa/sb/sb16_main.c if (csp->ops.csp_autoload(csp, runtime->format, SNDRV_SB_CSP_MODE_DSP_READ)) { runtime 114 sound/isa/sb/sb16_main.c (runtime->channels > 1) ? runtime 140 sound/isa/sb/sb16_main.c static void snd_sb16_csp_playback_open(struct snd_sb *chip, struct snd_pcm_runtime *runtime) runtime 149 sound/isa/sb/sb16_main.c runtime->hw.formats |= csp->acc_format; runtime 153 sound/isa/sb/sb16_main.c runtime->hw.formats |= SNDRV_PCM_FMTBIT_MU_LAW | SNDRV_PCM_FMTBIT_A_LAW | runtime 171 sound/isa/sb/sb16_main.c static void snd_sb16_csp_capture_open(struct snd_sb *chip, struct snd_pcm_runtime *runtime) runtime 180 sound/isa/sb/sb16_main.c runtime->hw.formats |= csp->acc_format; runtime 184 sound/isa/sb/sb16_main.c runtime->hw.formats |= SNDRV_PCM_FMTBIT_MU_LAW | SNDRV_PCM_FMTBIT_A_LAW | runtime 202 sound/isa/sb/sb16_main.c #define snd_sb16_csp_playback_prepare(chip, runtime) /*nop*/ runtime 203 sound/isa/sb/sb16_main.c #define snd_sb16_csp_capture_prepare(chip, runtime) /*nop*/ runtime 205 sound/isa/sb/sb16_main.c #define snd_sb16_csp_playback_open(chip, runtime) /*nop*/ runtime 207 sound/isa/sb/sb16_main.c #define snd_sb16_csp_capture_open(chip, runtime) /*nop*/ runtime 251 sound/isa/sb/sb16_main.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 255 sound/isa/sb/sb16_main.c snd_sb16_csp_playback_prepare(chip, runtime); runtime 256 sound/isa/sb/sb16_main.c if (snd_pcm_format_unsigned(runtime->format) > 0) { runtime 257 sound/isa/sb/sb16_main.c format = runtime->channels > 1 ? SB_DSP4_MODE_UNS_STEREO : SB_DSP4_MODE_UNS_MONO; runtime 259 sound/isa/sb/sb16_main.c format = runtime->channels > 1 ? SB_DSP4_MODE_SIGN_STEREO : SB_DSP4_MODE_SIGN_MONO; runtime 262 sound/isa/sb/sb16_main.c snd_sb16_setup_rate(chip, runtime->rate, SNDRV_PCM_STREAM_PLAYBACK); runtime 265 sound/isa/sb/sb16_main.c snd_dma_program(dma, runtime->dma_addr, size, DMA_MODE_WRITE | DMA_AUTOINIT); runtime 321 sound/isa/sb/sb16_main.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 325 sound/isa/sb/sb16_main.c snd_sb16_csp_capture_prepare(chip, runtime); runtime 326 sound/isa/sb/sb16_main.c if (snd_pcm_format_unsigned(runtime->format) > 0) { runtime 327 sound/isa/sb/sb16_main.c format = runtime->channels > 1 ? SB_DSP4_MODE_UNS_STEREO : SB_DSP4_MODE_UNS_MONO; runtime 329 sound/isa/sb/sb16_main.c format = runtime->channels > 1 ? SB_DSP4_MODE_SIGN_STEREO : SB_DSP4_MODE_SIGN_MONO; runtime 331 sound/isa/sb/sb16_main.c snd_sb16_setup_rate(chip, runtime->rate, SNDRV_PCM_STREAM_CAPTURE); runtime 334 sound/isa/sb/sb16_main.c snd_dma_program(dma, runtime->dma_addr, size, DMA_MODE_READ | DMA_AUTOINIT); runtime 446 sound/isa/sb/sb16_main.c return bytes_to_frames(substream->runtime, ptr); runtime 457 sound/isa/sb/sb16_main.c return bytes_to_frames(substream->runtime, ptr); runtime 508 sound/isa/sb/sb16_main.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 515 sound/isa/sb/sb16_main.c runtime->hw = snd_sb16_playback; runtime 523 sound/isa/sb/sb16_main.c runtime->hw.formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_U16_LE; runtime 526 sound/isa/sb/sb16_main.c runtime->hw.buffer_bytes_max = runtime 527 sound/isa/sb/sb16_main.c runtime->hw.period_bytes_max = 64 * 1024; runtime 529 sound/isa/sb/sb16_main.c snd_sb16_csp_playback_open(chip, runtime); runtime 539 sound/isa/sb/sb16_main.c runtime->hw.formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_U16_LE; runtime 542 sound/isa/sb/sb16_main.c runtime->hw.formats = SNDRV_PCM_FMTBIT_U8 | SNDRV_PCM_FMTBIT_S8; runtime 544 sound/isa/sb/sb16_main.c runtime->hw.buffer_bytes_max = runtime 545 sound/isa/sb/sb16_main.c runtime->hw.period_bytes_max = 64 * 1024; runtime 553 sound/isa/sb/sb16_main.c runtime->hw.rate_max = 48000; runtime 555 sound/isa/sb/sb16_main.c runtime->hw.buffer_bytes_max = 32 * 1024; runtime 556 sound/isa/sb/sb16_main.c runtime->hw.periods_min = 2; runtime 557 sound/isa/sb/sb16_main.c runtime->hw.rate_min = 44100; runtime 560 sound/isa/sb/sb16_main.c runtime->hw.rate_min = runtime->hw.rate_max = chip->locked_rate; runtime 583 sound/isa/sb/sb16_main.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 590 sound/isa/sb/sb16_main.c runtime->hw = snd_sb16_capture; runtime 598 sound/isa/sb/sb16_main.c runtime->hw.formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_U16_LE; runtime 601 sound/isa/sb/sb16_main.c runtime->hw.buffer_bytes_max = runtime 602 sound/isa/sb/sb16_main.c runtime->hw.period_bytes_max = 64 * 1024; runtime 604 sound/isa/sb/sb16_main.c snd_sb16_csp_capture_open(chip, runtime); runtime 614 sound/isa/sb/sb16_main.c runtime->hw.formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_U16_LE; runtime 617 sound/isa/sb/sb16_main.c runtime->hw.formats = SNDRV_PCM_FMTBIT_U8 | SNDRV_PCM_FMTBIT_S8; runtime 619 sound/isa/sb/sb16_main.c runtime->hw.buffer_bytes_max = runtime 620 sound/isa/sb/sb16_main.c runtime->hw.period_bytes_max = 64 * 1024; runtime 628 sound/isa/sb/sb16_main.c runtime->hw.rate_max = 48000; runtime 630 sound/isa/sb/sb16_main.c runtime->hw.buffer_bytes_max = 32 * 1024; runtime 631 sound/isa/sb/sb16_main.c runtime->hw.periods_min = 2; runtime 632 sound/isa/sb/sb16_main.c runtime->hw.rate_min = 44100; runtime 635 sound/isa/sb/sb16_main.c runtime->hw.rate_min = runtime->hw.rate_max = chip->locked_rate; runtime 94 sound/isa/sb/sb8_main.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 97 sound/isa/sb/sb8_main.c unsigned char stereo = runtime->channels > 1; runtime 100 sound/isa/sb/sb8_main.c rate = runtime->rate; runtime 103 sound/isa/sb/sb8_main.c if (runtime->format == SNDRV_PCM_FORMAT_S16_LE) { runtime 112 sound/isa/sb/sb8_main.c if (runtime->channels > 1) { runtime 158 sound/isa/sb/sb8_main.c runtime->dma_area[0] = 0x80; runtime 159 sound/isa/sb/sb8_main.c snd_dma_program(dma, runtime->dma_addr, 1, DMA_MODE_WRITE); runtime 167 sound/isa/sb/sb8_main.c snd_sbdsp_command(chip, 256 - runtime->rate_den / 2); runtime 176 sound/isa/sb/sb8_main.c snd_sbdsp_command(chip, 256 - runtime->rate_den); runtime 187 sound/isa/sb/sb8_main.c snd_dma_program(dma, runtime->dma_addr, runtime 211 sound/isa/sb/sb8_main.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 213 sound/isa/sb/sb8_main.c if (runtime->channels > 1) { runtime 244 sound/isa/sb/sb8_main.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 247 sound/isa/sb/sb8_main.c unsigned char stereo = runtime->channels > 1; runtime 250 sound/isa/sb/sb8_main.c rate = runtime->rate; runtime 253 sound/isa/sb/sb8_main.c if (runtime->format == SNDRV_PCM_FORMAT_S16_LE) { runtime 262 sound/isa/sb/sb8_main.c if (runtime->channels > 1) { runtime 304 sound/isa/sb/sb8_main.c snd_sbdsp_command(chip, 256 - runtime->rate_den / 2); runtime 313 sound/isa/sb/sb8_main.c snd_sbdsp_command(chip, 256 - runtime->rate_den); runtime 324 sound/isa/sb/sb8_main.c snd_dma_program(dma, runtime->dma_addr, runtime 348 sound/isa/sb/sb8_main.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 350 sound/isa/sb/sb8_main.c if (runtime->channels > 1) { runtime 410 sound/isa/sb/sb8_main.c return bytes_to_frames(substream->runtime, ptr); runtime 426 sound/isa/sb/sb8_main.c return bytes_to_frames(substream->runtime, ptr); runtime 478 sound/isa/sb/sb8_main.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 490 sound/isa/sb/sb8_main.c runtime->hw = snd_sb8_playback; runtime 493 sound/isa/sb/sb8_main.c runtime->hw = snd_sb8_capture; runtime 498 sound/isa/sb/sb8_main.c runtime->hw.formats |= SNDRV_PCM_FMTBIT_S16_LE; runtime 499 sound/isa/sb/sb8_main.c runtime->hw.rates |= SNDRV_PCM_RATE_8000_48000; runtime 500 sound/isa/sb/sb8_main.c runtime->hw.rate_min = 4000; runtime 501 sound/isa/sb/sb8_main.c runtime->hw.rate_max = 50000; runtime 502 sound/isa/sb/sb8_main.c runtime->hw.channels_max = 2; runtime 505 sound/isa/sb/sb8_main.c runtime->hw.rate_max = 44100; runtime 506 sound/isa/sb/sb8_main.c runtime->hw.channels_max = 2; runtime 507 sound/isa/sb/sb8_main.c snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, runtime 511 sound/isa/sb/sb8_main.c snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, runtime 517 sound/isa/sb/sb8_main.c runtime->hw.rate_max = 44100; runtime 519 sound/isa/sb/sb8_main.c runtime->hw.rate_max = 15000; runtime 524 sound/isa/sb/sb8_main.c snd_pcm_hw_constraint_ratnums(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, runtime 527 sound/isa/sb/sb8_main.c snd_pcm_hw_constraint_step(runtime, 0, runtime 529 sound/isa/sb/sb8_main.c snd_pcm_hw_constraint_step(runtime, 0, runtime 531 sound/isa/sb/sb8_main.c runtime->hw.buffer_bytes_max = 128 * 1024 * 1024; runtime 532 sound/isa/sb/sb8_main.c runtime->hw.period_bytes_max = 128 * 1024 * 1024; runtime 69 sound/isa/wss/wss_lib.c static int snd_wss_xrate(struct snd_pcm_runtime *runtime) runtime 71 sound/isa/wss/wss_lib.c return snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, runtime 1004 sound/isa/wss/wss_lib.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1012 sound/isa/wss/wss_lib.c snd_dma_program(chip->dma1, runtime->dma_addr, size, DMA_MODE_WRITE | DMA_AUTOINIT); runtime 1047 sound/isa/wss/wss_lib.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1055 sound/isa/wss/wss_lib.c snd_dma_program(chip->dma2, runtime->dma_addr, size, DMA_MODE_READ | DMA_AUTOINIT); runtime 1085 sound/isa/wss/wss_lib.c chip->capture_substream->runtime->overrange++; runtime 1148 sound/isa/wss/wss_lib.c return bytes_to_frames(substream->runtime, ptr); runtime 1159 sound/isa/wss/wss_lib.c return bytes_to_frames(substream->runtime, ptr); runtime 1489 sound/isa/wss/wss_lib.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1492 sound/isa/wss/wss_lib.c runtime->hw = snd_wss_playback; runtime 1496 sound/isa/wss/wss_lib.c runtime->hw.formats &= ~(SNDRV_PCM_FMTBIT_IMA_ADPCM | runtime 1501 sound/isa/wss/wss_lib.c runtime->hw.formats &= ~SNDRV_PCM_FMTBIT_MU_LAW; runtime 1506 sound/isa/wss/wss_lib.c runtime->hw.formats = SNDRV_PCM_FMTBIT_U8 | SNDRV_PCM_FMTBIT_S16_LE; runtime 1508 sound/isa/wss/wss_lib.c snd_pcm_limit_isa_dma_size(chip->dma1, &runtime->hw.buffer_bytes_max); runtime 1509 sound/isa/wss/wss_lib.c snd_pcm_limit_isa_dma_size(chip->dma1, &runtime->hw.period_bytes_max); runtime 1524 sound/isa/wss/wss_lib.c chip->rate_constraint(runtime); runtime 1531 sound/isa/wss/wss_lib.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1534 sound/isa/wss/wss_lib.c runtime->hw = snd_wss_capture; runtime 1538 sound/isa/wss/wss_lib.c runtime->hw.formats &= ~(SNDRV_PCM_FMTBIT_IMA_ADPCM | runtime 1545 sound/isa/wss/wss_lib.c runtime->hw.formats = SNDRV_PCM_FMTBIT_U8 | runtime 1548 sound/isa/wss/wss_lib.c snd_pcm_limit_isa_dma_size(chip->dma2, &runtime->hw.buffer_bytes_max); runtime 1549 sound/isa/wss/wss_lib.c snd_pcm_limit_isa_dma_size(chip->dma2, &runtime->hw.period_bytes_max); runtime 1564 sound/isa/wss/wss_lib.c chip->rate_constraint(runtime); runtime 527 sound/mips/hal2.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 531 sound/mips/hal2.c runtime->hw = hal2_pcm_hw; runtime 550 sound/mips/hal2.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 553 sound/mips/hal2.c dac->voices = runtime->channels; runtime 554 sound/mips/hal2.c dac->sample_rate = hal2_compute_rate(dac, runtime->rate); runtime 598 sound/mips/hal2.c memcpy(buf, substream->runtime->dma_area + rec->sw_data, bytes); runtime 615 sound/mips/hal2.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 620 sound/mips/hal2.c runtime->hw = hal2_pcm_hw; runtime 639 sound/mips/hal2.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 642 sound/mips/hal2.c adc->voices = runtime->channels; runtime 643 sound/mips/hal2.c adc->sample_rate = hal2_compute_rate(adc, runtime->rate); runtime 688 sound/mips/hal2.c memcpy(substream->runtime->dma_area + rec->sw_data, buf, bytes); runtime 355 sound/mips/sgio2audio.c struct snd_pcm_runtime *runtime = chip->channel[ch].substream->runtime; runtime 361 sound/mips/sgio2audio.c dst_base = runtime->dma_area; runtime 363 sound/mips/sgio2audio.c dst_mask = frames_to_bytes(runtime, runtime->buffer_size) - 1; runtime 367 sound/mips/sgio2audio.c ret = chip->channel[ch].size >= runtime->period_size; runtime 368 sound/mips/sgio2audio.c chip->channel[ch].size %= runtime->period_size; runtime 403 sound/mips/sgio2audio.c struct snd_pcm_runtime *runtime = chip->channel[ch].substream->runtime; runtime 409 sound/mips/sgio2audio.c src_base = runtime->dma_area; runtime 411 sound/mips/sgio2audio.c src_mask = frames_to_bytes(runtime, runtime->buffer_size) - 1; runtime 415 sound/mips/sgio2audio.c ret = chip->channel[ch].size >= runtime->period_size; runtime 416 sound/mips/sgio2audio.c chip->channel[ch].size %= runtime->period_size; runtime 443 sound/mips/sgio2audio.c struct snd_sgio2audio_chan *chan = substream->runtime->private_data; runtime 463 sound/mips/sgio2audio.c struct snd_sgio2audio_chan *chan = substream->runtime->private_data; runtime 543 sound/mips/sgio2audio.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 545 sound/mips/sgio2audio.c runtime->hw = snd_sgio2audio_pcm_hw; runtime 546 sound/mips/sgio2audio.c runtime->private_data = &chip->channel[1]; runtime 553 sound/mips/sgio2audio.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 555 sound/mips/sgio2audio.c runtime->hw = snd_sgio2audio_pcm_hw; runtime 556 sound/mips/sgio2audio.c runtime->private_data = &chip->channel[2]; runtime 564 sound/mips/sgio2audio.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 566 sound/mips/sgio2audio.c runtime->hw = snd_sgio2audio_pcm_hw; runtime 567 sound/mips/sgio2audio.c runtime->private_data = &chip->channel[0]; runtime 574 sound/mips/sgio2audio.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 576 sound/mips/sgio2audio.c runtime->private_data = NULL; runtime 599 sound/mips/sgio2audio.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 600 sound/mips/sgio2audio.c struct snd_sgio2audio_chan *chan = substream->runtime->private_data; runtime 617 sound/mips/sgio2audio.c runtime->rate, runtime 619 sound/mips/sgio2audio.c runtime->channels); runtime 623 sound/mips/sgio2audio.c runtime->rate, runtime 625 sound/mips/sgio2audio.c runtime->channels); runtime 656 sound/mips/sgio2audio.c struct snd_sgio2audio_chan *chan = substream->runtime->private_data; runtime 659 sound/mips/sgio2audio.c return bytes_to_frames(substream->runtime, runtime 398 sound/parisc/harmony.c struct snd_pcm_runtime *rt = ss->runtime; runtime 428 sound/parisc/harmony.c struct snd_pcm_runtime *rt = ss->runtime; runtime 457 sound/parisc/harmony.c struct snd_pcm_runtime *rt = ss->runtime; runtime 486 sound/parisc/harmony.c struct snd_pcm_runtime *rt = ss->runtime; runtime 516 sound/parisc/harmony.c struct snd_pcm_runtime *rt = ss->runtime; runtime 535 sound/parisc/harmony.c struct snd_pcm_runtime *rt = ss->runtime; runtime 575 sound/parisc/harmony.c ss->runtime->dma_addr = __pa(ss->runtime->dma_area); runtime 722 sound/pci/ac97/ac97_pcm.c int snd_ac97_pcm_double_rate_rules(struct snd_pcm_runtime *runtime) runtime 726 sound/pci/ac97/ac97_pcm.c err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, runtime 731 sound/pci/ac97/ac97_pcm.c err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, runtime 312 sound/pci/ad1889.c struct snd_pcm_runtime *rt = ss->runtime; runtime 324 sound/pci/ad1889.c struct snd_pcm_runtime *rt = ss->runtime; runtime 352 sound/pci/ad1889.c struct snd_pcm_runtime *rt = ss->runtime; runtime 402 sound/pci/ad1889.c struct snd_pcm_runtime *rt = ss->runtime; runtime 540 sound/pci/ad1889.c return bytes_to_frames(ss->runtime, ptr); runtime 559 sound/pci/ad1889.c return bytes_to_frames(ss->runtime, ptr); runtime 1048 sound/pci/ali5451/ali5451.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1054 sound/pci/ali5451/ali5451.c if (snd_pcm_format_width(runtime->format) == 16) runtime 1056 sound/pci/ali5451/ali5451.c if (!snd_pcm_format_unsigned(runtime->format)) runtime 1058 sound/pci/ali5451/ali5451.c if (runtime->channels > 1) runtime 1094 sound/pci/ali5451/ali5451.c pvoice = s->runtime->private_data; runtime 1138 sound/pci/ali5451/ali5451.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1139 sound/pci/ali5451/ali5451.c struct snd_ali_voice *pvoice = runtime->private_data; runtime 1174 sound/pci/ali5451/ali5451.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1175 sound/pci/ali5451/ali5451.c struct snd_ali_voice *pvoice = runtime->private_data; runtime 1201 sound/pci/ali5451/ali5451.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1202 sound/pci/ali5451/ali5451.c struct snd_ali_voice *pvoice = runtime->private_data; runtime 1219 sound/pci/ali5451/ali5451.c Delta = snd_ali_convert_rate(runtime->rate, 0); runtime 1228 sound/pci/ali5451/ali5451.c snd_ali_set_spdif_out_rate(codec, runtime->rate); runtime 1233 sound/pci/ali5451/ali5451.c LBA = runtime->dma_addr; runtime 1236 sound/pci/ali5451/ali5451.c pvoice->count = runtime->period_size; runtime 1239 sound/pci/ali5451/ali5451.c pvoice->eso = runtime->buffer_size; runtime 1256 sound/pci/ali5451/ali5451.c pvoice->number,runtime->rate,Delta,GVSEL,PAN,CTRL); runtime 1294 sound/pci/ali5451/ali5451.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1295 sound/pci/ali5451/ali5451.c struct snd_ali_voice *pvoice = runtime->private_data; runtime 1314 sound/pci/ali5451/ali5451.c 0x1000 : snd_ali_convert_rate(runtime->rate, pvoice->mode); runtime 1340 sound/pci/ali5451/ali5451.c Delta = ((rate << 12) / runtime->rate) & 0x00ffff; runtime 1344 sound/pci/ali5451/ali5451.c pvoice->eso = runtime->buffer_size; runtime 1347 sound/pci/ali5451/ali5451.c pvoice->count = runtime->period_size; runtime 1350 sound/pci/ali5451/ali5451.c LBA = runtime->dma_addr; runtime 1383 sound/pci/ali5451/ali5451.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1384 sound/pci/ali5451/ali5451.c struct snd_ali_voice *pvoice = runtime->private_data; runtime 1397 sound/pci/ali5451/ali5451.c cso %= runtime->buffer_size; runtime 1405 sound/pci/ali5451/ali5451.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1406 sound/pci/ali5451/ali5451.c struct snd_ali_voice *pvoice = runtime->private_data; runtime 1418 sound/pci/ali5451/ali5451.c cso %= runtime->buffer_size; runtime 1470 sound/pci/ali5451/ali5451.c static void snd_ali_pcm_free_substream(struct snd_pcm_runtime *runtime) runtime 1472 sound/pci/ali5451/ali5451.c struct snd_ali_voice *pvoice = runtime->private_data; runtime 1482 sound/pci/ali5451/ali5451.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1491 sound/pci/ali5451/ali5451.c runtime->private_data = pvoice; runtime 1492 sound/pci/ali5451/ali5451.c runtime->private_free = snd_ali_pcm_free_substream; runtime 1494 sound/pci/ali5451/ali5451.c runtime->hw = *phw; runtime 1496 sound/pci/ali5451/ali5451.c snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_BUFFER_SIZE, runtime 1519 sound/pci/ali5451/ali5451.c struct snd_ali_voice *pvoice = substream->runtime->private_data; runtime 1598 sound/pci/ali5451/ali5451.c return snd_pcm_hw_constraint_list(substream->runtime, 0, runtime 198 sound/pci/als300.c data = chip->playback_substream->runtime->private_data; runtime 206 sound/pci/als300.c data = chip->capture_substream->runtime->private_data; runtime 232 sound/pci/als300.c data = chip->playback_substream->runtime->private_data; runtime 241 sound/pci/als300.c data = chip->capture_substream->runtime->private_data; runtime 359 sound/pci/als300.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 366 sound/pci/als300.c runtime->hw = snd_als300_playback_hw; runtime 367 sound/pci/als300.c runtime->private_data = data; runtime 378 sound/pci/als300.c data = substream->runtime->private_data; runtime 388 sound/pci/als300.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 395 sound/pci/als300.c runtime->hw = snd_als300_capture_hw; runtime 396 sound/pci/als300.c runtime->private_data = data; runtime 407 sound/pci/als300.c data = substream->runtime->private_data; runtime 430 sound/pci/als300.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 448 sound/pci/als300.c runtime->dma_addr); runtime 450 sound/pci/als300.c runtime->dma_addr + buffer_bytes - 1); runtime 459 sound/pci/als300.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 477 sound/pci/als300.c runtime->dma_addr); runtime 479 sound/pci/als300.c runtime->dma_addr + buffer_bytes - 1); runtime 492 sound/pci/als300.c data = substream->runtime->private_data; runtime 535 sound/pci/als300.c data = substream->runtime->private_data; runtime 550 sound/pci/als300.c return bytes_to_frames(substream->runtime, current_ptr); runtime 305 sound/pci/als4000.c static int snd_als4000_get_format(struct snd_pcm_runtime *runtime) runtime 310 sound/pci/als4000.c if (snd_pcm_format_signed(runtime->format)) runtime 312 sound/pci/als4000.c if (snd_pcm_format_physical_width(runtime->format) == 16) runtime 314 sound/pci/als4000.c if (runtime->channels > 1) runtime 372 sound/pci/als4000.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 376 sound/pci/als4000.c chip->capture_format = snd_als4000_get_format(runtime); runtime 386 sound/pci/als4000.c snd_als4000_set_rate(chip, runtime->rate); runtime 387 sound/pci/als4000.c snd_als4000_set_capture_dma(chip, runtime->dma_addr, size); runtime 399 sound/pci/als4000.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 403 sound/pci/als4000.c chip->playback_format = snd_als4000_get_format(runtime); runtime 419 sound/pci/als4000.c snd_als4000_set_rate(chip, runtime->rate); runtime 420 sound/pci/als4000.c snd_als4000_set_playback_dma(chip, runtime->dma_addr, size); runtime 501 sound/pci/als4000.c return bytes_to_frames( substream->runtime, result ); runtime 513 sound/pci/als4000.c return bytes_to_frames( substream->runtime, result ); runtime 624 sound/pci/als4000.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 627 sound/pci/als4000.c runtime->hw = snd_als4000_playback; runtime 643 sound/pci/als4000.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 646 sound/pci/als4000.c runtime->hw = snd_als4000_capture; runtime 443 sound/pci/asihpi/asihpi.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 444 sound/pci/asihpi/asihpi.c struct snd_card_asihpi_pcm *dpcm = runtime->private_data; runtime 475 sound/pci/asihpi/asihpi.c params_buffer_bytes(params), runtime->dma_addr); runtime 480 sound/pci/asihpi/asihpi.c (unsigned long)runtime->dma_addr); runtime 507 sound/pci/asihpi/asihpi.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 508 sound/pci/asihpi/asihpi.c struct snd_card_asihpi_pcm *dpcm = runtime->private_data; runtime 516 sound/pci/asihpi/asihpi.c static void snd_card_asihpi_runtime_free(struct snd_pcm_runtime *runtime) runtime 518 sound/pci/asihpi/asihpi.c struct snd_card_asihpi_pcm *dpcm = runtime->private_data; runtime 525 sound/pci/asihpi/asihpi.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 526 sound/pci/asihpi/asihpi.c struct snd_card_asihpi_pcm *dpcm = runtime->private_data; runtime 538 sound/pci/asihpi/asihpi.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 539 sound/pci/asihpi/asihpi.c struct snd_card_asihpi_pcm *dpcm = runtime->private_data; runtime 550 sound/pci/asihpi/asihpi.c dpcm = (struct snd_card_asihpi_pcm *)substream->runtime->private_data; runtime 584 sound/pci/asihpi/asihpi.c struct snd_card_asihpi_pcm *dpcm = substream->runtime->private_data; runtime 596 sound/pci/asihpi/asihpi.c struct snd_pcm_runtime *runtime = s->runtime; runtime 597 sound/pci/asihpi/asihpi.c struct snd_card_asihpi_pcm *ds = runtime->private_data; runtime 618 sound/pci/asihpi/asihpi.c &runtime->dma_area[0], runtime 657 sound/pci/asihpi/asihpi.c s->runtime->status->state = SNDRV_PCM_STATE_SETUP; runtime 744 sound/pci/asihpi/asihpi.c struct snd_pcm_runtime *runtime; runtime 760 sound/pci/asihpi/asihpi.c struct snd_card_asihpi_pcm *ds = s->runtime->private_data; runtime 761 sound/pci/asihpi/asihpi.c runtime = s->runtime; runtime 776 sound/pci/asihpi/asihpi.c runtime->delay = on_card_bytes; runtime 826 sound/pci/asihpi/asihpi.c (unsigned long)frames_to_bytes(runtime, runtime 827 sound/pci/asihpi/asihpi.c runtime->status->hw_ptr), runtime 828 sound/pci/asihpi/asihpi.c (unsigned long)frames_to_bytes(runtime, runtime 829 sound/pci/asihpi/asihpi.c runtime->control->appl_ptr) runtime 852 sound/pci/asihpi/asihpi.c struct snd_card_asihpi_pcm *ds = s->runtime->private_data; runtime 870 sound/pci/asihpi/asihpi.c char *pd = &s->runtime->dma_area[buf_ofs]; runtime 889 sound/pci/asihpi/asihpi.c pd = s->runtime->dma_area; runtime 908 sound/pci/asihpi/asihpi.c pd = s->runtime->dma_area; runtime 962 sound/pci/asihpi/asihpi.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 963 sound/pci/asihpi/asihpi.c struct snd_card_asihpi_pcm *dpcm = runtime->private_data; runtime 977 sound/pci/asihpi/asihpi.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 978 sound/pci/asihpi/asihpi.c struct snd_card_asihpi_pcm *dpcm = runtime->private_data; runtime 983 sound/pci/asihpi/asihpi.c ptr = bytes_to_frames(runtime, dpcm->pcm_buf_dma_ofs % dpcm->buffer_bytes); runtime 1023 sound/pci/asihpi/asihpi.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1050 sound/pci/asihpi/asihpi.c runtime->private_data = dpcm; runtime 1051 sound/pci/asihpi/asihpi.c runtime->private_free = snd_card_asihpi_runtime_free; runtime 1092 sound/pci/asihpi/asihpi.c runtime->hw = snd_card_asihpi_playback; runtime 1095 sound/pci/asihpi/asihpi.c err = snd_pcm_hw_constraint_pow2(runtime, 0, runtime 1100 sound/pci/asihpi/asihpi.c snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_SIZE, runtime 1103 sound/pci/asihpi/asihpi.c snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_PERIOD_SIZE, runtime 1113 sound/pci/asihpi/asihpi.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1114 sound/pci/asihpi/asihpi.c struct snd_card_asihpi_pcm *dpcm = runtime->private_data; runtime 1137 sound/pci/asihpi/asihpi.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1138 sound/pci/asihpi/asihpi.c struct snd_card_asihpi_pcm *dpcm = runtime->private_data; runtime 1147 sound/pci/asihpi/asihpi.c return bytes_to_frames(runtime, dpcm->pcm_buf_dma_ofs % dpcm->buffer_bytes); runtime 1158 sound/pci/asihpi/asihpi.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1159 sound/pci/asihpi/asihpi.c struct snd_card_asihpi_pcm *dpcm = runtime->private_data; runtime 1205 sound/pci/asihpi/asihpi.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1230 sound/pci/asihpi/asihpi.c runtime->private_data = dpcm; runtime 1231 sound/pci/asihpi/asihpi.c runtime->private_free = snd_card_asihpi_runtime_free; runtime 1262 sound/pci/asihpi/asihpi.c runtime->hw = snd_card_asihpi_capture; runtime 1265 sound/pci/asihpi/asihpi.c err = snd_pcm_hw_constraint_pow2(runtime, 0, runtime 1270 sound/pci/asihpi/asihpi.c snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_SIZE, runtime 1272 sound/pci/asihpi/asihpi.c snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_PERIOD_SIZE, runtime 1282 sound/pci/asihpi/asihpi.c struct snd_card_asihpi_pcm *dpcm = substream->runtime->private_data; runtime 374 sound/pci/atiixp.c addr = (u32)substream->runtime->dma_addr; runtime 650 sound/pci/atiixp.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 651 sound/pci/atiixp.c struct atiixp_dma *dma = runtime->private_data; runtime 662 sound/pci/atiixp.c return bytes_to_frames(runtime, curptr); runtime 710 sound/pci/atiixp.c struct atiixp_dma *dma = substream->runtime->private_data; runtime 877 sound/pci/atiixp.c substream->runtime->format == SNDRV_PCM_FORMAT_S16_LE ? runtime 895 sound/pci/atiixp.c switch (substream->runtime->channels) { runtime 919 sound/pci/atiixp.c substream->runtime->format == SNDRV_PCM_FORMAT_S16_LE ? runtime 926 sound/pci/atiixp.c substream->runtime->channels >= 6 ? ATI_REG_6CH_REORDER_EN: 0); runtime 939 sound/pci/atiixp.c substream->runtime->format == SNDRV_PCM_FORMAT_S16_LE ? runtime 952 sound/pci/atiixp.c struct atiixp_dma *dma = substream->runtime->private_data; runtime 958 sound/pci/atiixp.c dma->buf_addr = substream->runtime->dma_addr; runtime 989 sound/pci/atiixp.c struct atiixp_dma *dma = substream->runtime->private_data; runtime 1029 sound/pci/atiixp.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1038 sound/pci/atiixp.c runtime->hw = snd_atiixp_pcm_hw; runtime 1041 sound/pci/atiixp.c runtime->hw.rates = chip->pcms[pcm_type]->rates; runtime 1042 sound/pci/atiixp.c snd_pcm_limit_hw_rates(runtime); runtime 1045 sound/pci/atiixp.c runtime->hw.formats = SNDRV_PCM_FMTBIT_IEC958_SUBFRAME_LE; runtime 1047 sound/pci/atiixp.c if ((err = snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS)) < 0) runtime 1049 sound/pci/atiixp.c runtime->private_data = dma; runtime 1087 sound/pci/atiixp.c substream->runtime->hw.channels_max = chip->max_channels; runtime 1090 sound/pci/atiixp.c snd_pcm_hw_constraint_step(substream->runtime, 0, runtime 341 sound/pci/atiixp_modem.c addr = (u32)substream->runtime->dma_addr; runtime 599 sound/pci/atiixp_modem.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 600 sound/pci/atiixp_modem.c struct atiixp_dma *dma = runtime->private_data; runtime 611 sound/pci/atiixp_modem.c return bytes_to_frames(runtime, curptr); runtime 660 sound/pci/atiixp_modem.c struct atiixp_dma *dma = substream->runtime->private_data; runtime 782 sound/pci/atiixp_modem.c struct atiixp_dma *dma = substream->runtime->private_data; runtime 789 sound/pci/atiixp_modem.c dma->buf_addr = substream->runtime->dma_addr; runtime 812 sound/pci/atiixp_modem.c struct atiixp_dma *dma = substream->runtime->private_data; runtime 847 sound/pci/atiixp_modem.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 862 sound/pci/atiixp_modem.c runtime->hw = snd_atiixp_pcm_hw; runtime 864 sound/pci/atiixp_modem.c if ((err = snd_pcm_hw_constraint_list(runtime, 0, runtime 868 sound/pci/atiixp_modem.c if ((err = snd_pcm_hw_constraint_integer(runtime, runtime 871 sound/pci/atiixp_modem.c runtime->private_data = dma; runtime 129 sound/pci/au88x0/au88x0_pcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 134 sound/pci/au88x0/au88x0_pcm.c snd_pcm_hw_constraint_integer(runtime, runtime 139 sound/pci/au88x0/au88x0_pcm.c snd_pcm_hw_constraint_pow2(runtime, 0, runtime 143 sound/pci/au88x0/au88x0_pcm.c snd_pcm_hw_constraint_step(runtime, 0, runtime 149 sound/pci/au88x0/au88x0_pcm.c runtime->hw = snd_vortex_playback_hw_a3d; runtime 153 sound/pci/au88x0/au88x0_pcm.c runtime->hw = snd_vortex_playback_hw_spdif; runtime 156 sound/pci/au88x0/au88x0_pcm.c runtime->hw.rates = SNDRV_PCM_RATE_32000; runtime 159 sound/pci/au88x0/au88x0_pcm.c runtime->hw.rates = SNDRV_PCM_RATE_44100; runtime 162 sound/pci/au88x0/au88x0_pcm.c runtime->hw.rates = SNDRV_PCM_RATE_48000; runtime 168 sound/pci/au88x0/au88x0_pcm.c runtime->hw = snd_vortex_playback_hw_adb; runtime 173 sound/pci/au88x0/au88x0_pcm.c runtime->hw.channels_max = 4; runtime 174 sound/pci/au88x0/au88x0_pcm.c snd_pcm_hw_constraint_list(runtime, 0, runtime 179 sound/pci/au88x0/au88x0_pcm.c substream->runtime->private_data = NULL; runtime 183 sound/pci/au88x0/au88x0_pcm.c runtime->hw = snd_vortex_playback_hw_wt; runtime 184 sound/pci/au88x0/au88x0_pcm.c substream->runtime->private_data = NULL; runtime 194 sound/pci/au88x0/au88x0_pcm.c stream_t *stream = (stream_t *) substream->runtime->private_data; runtime 201 sound/pci/au88x0/au88x0_pcm.c substream->runtime->private_data = NULL; runtime 211 sound/pci/au88x0/au88x0_pcm.c stream_t *stream = (stream_t *) (substream->runtime->private_data); runtime 245 sound/pci/au88x0/au88x0_pcm.c stream = substream->runtime->private_data = &chip->dma_adb[dma]; runtime 263 sound/pci/au88x0/au88x0_pcm.c stream = substream->runtime->private_data = runtime 280 sound/pci/au88x0/au88x0_pcm.c stream_t *stream = (stream_t *) (substream->runtime->private_data); runtime 304 sound/pci/au88x0/au88x0_pcm.c substream->runtime->private_data = NULL; runtime 314 sound/pci/au88x0/au88x0_pcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 315 sound/pci/au88x0/au88x0_pcm.c stream_t *stream = (stream_t *) substream->runtime->private_data; runtime 323 sound/pci/au88x0/au88x0_pcm.c fmt = vortex_alsafmt_aspfmt(runtime->format, chip); runtime 327 sound/pci/au88x0/au88x0_pcm.c runtime->channels == 1 ? 0 : 1, 0); runtime 330 sound/pci/au88x0/au88x0_pcm.c vortex_adb_setsrc(chip, dma, runtime->rate, dir); runtime 347 sound/pci/au88x0/au88x0_pcm.c stream_t *stream = (stream_t *) substream->runtime->private_data; runtime 410 sound/pci/au88x0/au88x0_pcm.c stream_t *stream = (stream_t *) substream->runtime->private_data; runtime 423 sound/pci/au88x0/au88x0_pcm.c current_ptr = bytes_to_frames(substream->runtime, current_ptr); runtime 424 sound/pci/au88x0/au88x0_pcm.c if (current_ptr >= substream->runtime->buffer_size) runtime 384 sound/pci/aw2/aw2-alsa.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 387 sound/pci/aw2/aw2-alsa.c runtime->hw = snd_aw2_playback_hw; runtime 400 sound/pci/aw2/aw2-alsa.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 403 sound/pci/aw2/aw2-alsa.c runtime->hw = snd_aw2_capture_hw; runtime 433 sound/pci/aw2/aw2-alsa.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 443 sound/pci/aw2/aw2-alsa.c runtime->dma_addr, period_size, runtime 462 sound/pci/aw2/aw2-alsa.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 472 sound/pci/aw2/aw2-alsa.c runtime->dma_addr, period_size, runtime 547 sound/pci/aw2/aw2-alsa.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 551 sound/pci/aw2/aw2-alsa.c runtime->dma_area, runtime 552 sound/pci/aw2/aw2-alsa.c runtime->buffer_size); runtime 554 sound/pci/aw2/aw2-alsa.c return bytes_to_frames(substream->runtime, current_ptr); runtime 566 sound/pci/aw2/aw2-alsa.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 570 sound/pci/aw2/aw2-alsa.c runtime->dma_area, runtime 571 sound/pci/aw2/aw2-alsa.c runtime->buffer_size); runtime 573 sound/pci/aw2/aw2-alsa.c return bytes_to_frames(substream->runtime, current_ptr); runtime 1444 sound/pci/azt3328.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1445 sound/pci/azt3328.c struct snd_azf3328_codec_data *codec = runtime->private_data; runtime 1451 sound/pci/azt3328.c codec->dma_base = runtime->dma_addr; runtime 1455 sound/pci/azt3328.c runtime->rate, runtime 1456 sound/pci/azt3328.c snd_pcm_format_width(runtime->format), runtime 1457 sound/pci/azt3328.c runtime->channels); runtime 1459 sound/pci/azt3328.c runtime->dma_addr, count, size); runtime 1468 sound/pci/azt3328.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1469 sound/pci/azt3328.c struct snd_azf3328_codec_data *codec = runtime->private_data; runtime 1488 sound/pci/azt3328.c runtime->rate, runtime 1489 sound/pci/azt3328.c snd_pcm_format_width(runtime->format), runtime 1490 sound/pci/azt3328.c runtime->channels); runtime 1504 sound/pci/azt3328.c snd_azf3328_codec_setdmaa(chip, codec, runtime->dma_addr, runtime 1625 sound/pci/azt3328.c substream->runtime->private_data; runtime 1637 sound/pci/azt3328.c frmres = bytes_to_frames( substream->runtime, result); runtime 2034 sound/pci/azt3328.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 2040 sound/pci/azt3328.c runtime->hw = snd_azf3328_hardware; runtime 2042 sound/pci/azt3328.c snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, runtime 2044 sound/pci/azt3328.c runtime->private_data = codec; runtime 2071 sound/pci/azt3328.c substream->runtime->private_data; runtime 378 sound/pci/bt87x.c static int snd_bt87x_set_digital_hw(struct snd_bt87x *chip, struct snd_pcm_runtime *runtime) runtime 381 sound/pci/bt87x.c runtime->hw = snd_bt87x_digital_hw; runtime 382 sound/pci/bt87x.c runtime->hw.rates = snd_pcm_rate_to_rate_bit(chip->board.dig_rate); runtime 383 sound/pci/bt87x.c runtime->hw.rate_min = chip->board.dig_rate; runtime 384 sound/pci/bt87x.c runtime->hw.rate_max = chip->board.dig_rate; runtime 388 sound/pci/bt87x.c static int snd_bt87x_set_analog_hw(struct snd_bt87x *chip, struct snd_pcm_runtime *runtime) runtime 402 sound/pci/bt87x.c runtime->hw = snd_bt87x_analog_hw; runtime 403 sound/pci/bt87x.c return snd_pcm_hw_constraint_ratnums(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, runtime 410 sound/pci/bt87x.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 417 sound/pci/bt87x.c err = snd_bt87x_set_digital_hw(chip, runtime); runtime 419 sound/pci/bt87x.c err = snd_bt87x_set_analog_hw(chip, runtime); runtime 423 sound/pci/bt87x.c err = snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS); runtime 478 sound/pci/bt87x.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 483 sound/pci/bt87x.c decimation = (ANALOG_CLOCK + runtime->rate / 4) / runtime->rate; runtime 485 sound/pci/bt87x.c if (runtime->format == SNDRV_PCM_FORMAT_S8) runtime 534 sound/pci/bt87x.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 536 sound/pci/bt87x.c return (snd_pcm_uframes_t)bytes_to_frames(runtime, chip->current_line * chip->line_bytes); runtime 476 sound/pci/ca0106/ca0106_main.c static void snd_ca0106_pcm_free_substream(struct snd_pcm_runtime *runtime) runtime 478 sound/pci/ca0106/ca0106_main.c kfree(runtime->private_data); runtime 552 sound/pci/ca0106/ca0106_main.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 563 sound/pci/ca0106/ca0106_main.c runtime->private_data = epcm; runtime 564 sound/pci/ca0106/ca0106_main.c runtime->private_free = snd_ca0106_pcm_free_substream; runtime 566 sound/pci/ca0106/ca0106_main.c runtime->hw = snd_ca0106_playback_hw; runtime 578 sound/pci/ca0106/ca0106_main.c if ((err = snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS)) < 0) runtime 580 sound/pci/ca0106/ca0106_main.c if ((err = snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_BYTES, 64)) < 0) runtime 600 sound/pci/ca0106/ca0106_main.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 601 sound/pci/ca0106/ca0106_main.c struct snd_ca0106_pcm *epcm = runtime->private_data; runtime 645 sound/pci/ca0106/ca0106_main.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 656 sound/pci/ca0106/ca0106_main.c runtime->private_data = epcm; runtime 657 sound/pci/ca0106/ca0106_main.c runtime->private_free = snd_ca0106_pcm_free_substream; runtime 659 sound/pci/ca0106/ca0106_main.c runtime->hw = snd_ca0106_capture_hw; runtime 671 sound/pci/ca0106/ca0106_main.c if ((err = snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS)) < 0) runtime 674 sound/pci/ca0106/ca0106_main.c if ((err = snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_BYTES, 64)) < 0) runtime 683 sound/pci/ca0106/ca0106_main.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 684 sound/pci/ca0106/ca0106_main.c struct snd_ca0106_pcm *epcm = runtime->private_data; runtime 742 sound/pci/ca0106/ca0106_main.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 743 sound/pci/ca0106/ca0106_main.c struct snd_ca0106_pcm *epcm = runtime->private_data; runtime 746 sound/pci/ca0106/ca0106_main.c u32 period_size_bytes = frames_to_bytes(runtime, runtime->period_size); runtime 764 sound/pci/ca0106/ca0106_main.c channel, runtime->rate, runtime->format, runtime 765 sound/pci/ca0106/ca0106_main.c runtime->channels, runtime->buffer_size, runtime 766 sound/pci/ca0106/ca0106_main.c runtime->period_size, runtime->periods, runtime 767 sound/pci/ca0106/ca0106_main.c frames_to_bytes(runtime, 1)); runtime 770 sound/pci/ca0106/ca0106_main.c runtime->dma_addr, runtime->dma_area, table_base); runtime 778 sound/pci/ca0106/ca0106_main.c switch (runtime->rate) { runtime 802 sound/pci/ca0106/ca0106_main.c switch (runtime->format) { runtime 824 sound/pci/ca0106/ca0106_main.c for(i=0; i < runtime->periods; i++) { runtime 825 sound/pci/ca0106/ca0106_main.c table_base[i*2] = runtime->dma_addr + (i * period_size_bytes); runtime 830 sound/pci/ca0106/ca0106_main.c snd_ca0106_ptr_write(emu, PLAYBACK_LIST_SIZE, channel, (runtime->periods - 1) << 19); runtime 832 sound/pci/ca0106/ca0106_main.c snd_ca0106_ptr_write(emu, PLAYBACK_DMA_ADDR, channel, runtime->dma_addr); runtime 833 sound/pci/ca0106/ca0106_main.c snd_ca0106_ptr_write(emu, PLAYBACK_PERIOD_SIZE, channel, frames_to_bytes(runtime, runtime->period_size)<<16); // buffer size in bytes runtime 855 sound/pci/ca0106/ca0106_main.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 856 sound/pci/ca0106/ca0106_main.c struct snd_ca0106_pcm *epcm = runtime->private_data; runtime 871 sound/pci/ca0106/ca0106_main.c channel, runtime->rate, runtime->format, runtime 872 sound/pci/ca0106/ca0106_main.c runtime->channels, runtime->buffer_size, runtime 873 sound/pci/ca0106/ca0106_main.c runtime->period_size, runtime->periods, runtime 874 sound/pci/ca0106/ca0106_main.c frames_to_bytes(runtime, 1)); runtime 877 sound/pci/ca0106/ca0106_main.c runtime->dma_addr, runtime->dma_area, table_base); runtime 883 sound/pci/ca0106/ca0106_main.c switch (runtime->rate) { runtime 904 sound/pci/ca0106/ca0106_main.c switch (runtime->format) { runtime 935 sound/pci/ca0106/ca0106_main.c snd_ca0106_ptr_write(emu, CAPTURE_DMA_ADDR, channel, runtime->dma_addr); runtime 936 sound/pci/ca0106/ca0106_main.c snd_ca0106_ptr_write(emu, CAPTURE_BUFFER_SIZE, channel, frames_to_bytes(runtime, runtime->buffer_size)<<16); // buffer size in bytes runtime 947 sound/pci/ca0106/ca0106_main.c struct snd_pcm_runtime *runtime; runtime 972 sound/pci/ca0106/ca0106_main.c runtime = s->runtime; runtime 973 sound/pci/ca0106/ca0106_main.c epcm = runtime->private_data; runtime 1014 sound/pci/ca0106/ca0106_main.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1015 sound/pci/ca0106/ca0106_main.c struct snd_ca0106_pcm *epcm = runtime->private_data; runtime 1042 sound/pci/ca0106/ca0106_main.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1043 sound/pci/ca0106/ca0106_main.c struct snd_ca0106_pcm *epcm = runtime->private_data; runtime 1054 sound/pci/ca0106/ca0106_main.c ptr = (ptr >> 3) * runtime->period_size; runtime 1055 sound/pci/ca0106/ca0106_main.c ptr += bytes_to_frames(runtime, runtime 1057 sound/pci/ca0106/ca0106_main.c if (ptr >= runtime->buffer_size) runtime 1058 sound/pci/ca0106/ca0106_main.c ptr -= runtime->buffer_size; runtime 1072 sound/pci/ca0106/ca0106_main.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1073 sound/pci/ca0106/ca0106_main.c struct snd_ca0106_pcm *epcm = runtime->private_data; runtime 1081 sound/pci/ca0106/ca0106_main.c ptr2 = bytes_to_frames(runtime, ptr1); runtime 1083 sound/pci/ca0106/ca0106_main.c if (ptr >= runtime->buffer_size) runtime 1084 sound/pci/ca0106/ca0106_main.c ptr -= runtime->buffer_size; runtime 774 sound/pci/cmipci.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 778 sound/pci/cmipci.c if (snd_pcm_format_width(runtime->format) >= 16) { runtime 780 sound/pci/cmipci.c if (snd_pcm_format_width(runtime->format) > 16) runtime 783 sound/pci/cmipci.c if (runtime->channels > 1) runtime 785 sound/pci/cmipci.c if (rec->is_dac && set_dac_channels(cm, rec, runtime->channels) < 0) { runtime 790 sound/pci/cmipci.c rec->offset = runtime->dma_addr; runtime 792 sound/pci/cmipci.c rec->dma_size = runtime->buffer_size << rec->shift; runtime 793 sound/pci/cmipci.c period_size = runtime->period_size << rec->shift; runtime 794 sound/pci/cmipci.c if (runtime->channels > 2) { runtime 796 sound/pci/cmipci.c rec->dma_size = (rec->dma_size * runtime->channels) / 2; runtime 797 sound/pci/cmipci.c period_size = (period_size * runtime->channels) / 2; runtime 822 sound/pci/cmipci.c if (runtime->rate > 48000) runtime 823 sound/pci/cmipci.c switch (runtime->rate) { runtime 830 sound/pci/cmipci.c freq = snd_cmipci_rate_freq(runtime->rate); runtime 859 sound/pci/cmipci.c if (runtime->rate > 44100) runtime 949 sound/pci/cmipci.c ptr = bytes_to_frames(substream->runtime, ptr); runtime 951 sound/pci/cmipci.c if (substream->runtime->channels > 2) runtime 952 sound/pci/cmipci.c ptr = (ptr * 2) / substream->runtime->channels; runtime 1222 sound/pci/cmipci.c if (snd_pcm_format_width(subs->runtime->format) > 16) { runtime 1241 sound/pci/cmipci.c rate = subs->runtime->rate; runtime 1286 sound/pci/cmipci.c int rate = substream->runtime->rate; runtime 1290 sound/pci/cmipci.c substream->runtime->format == SNDRV_PCM_FORMAT_S16_LE && runtime 1291 sound/pci/cmipci.c substream->runtime->channels == 2); runtime 1324 sound/pci/cmipci.c struct snd_pcm_runtime *runtime = rec->substream->runtime; runtime 1327 sound/pci/cmipci.c if (rec->needs_silencing && runtime && runtime->dma_area) { runtime 1329 sound/pci/cmipci.c memset(runtime->dma_area, 0, PAGE_SIZE); runtime 1335 sound/pci/cmipci.c if (runtime->channels > 2) runtime 1399 sound/pci/cmipci.c if (substream->runtime->rate > 48000) runtime 1404 sound/pci/cmipci.c if (snd_pcm_format_width(substream->runtime->format) > 16) runtime 1654 sound/pci/cmipci.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1659 sound/pci/cmipci.c runtime->hw = snd_cmipci_playback; runtime 1661 sound/pci/cmipci.c runtime->hw.rates |= SNDRV_PCM_RATE_88200 | runtime 1663 sound/pci/cmipci.c runtime->hw.rate_max = 96000; runtime 1665 sound/pci/cmipci.c err = snd_pcm_hw_constraint_list(runtime, 0, runtime 1669 sound/pci/cmipci.c runtime->hw.rates |= SNDRV_PCM_RATE_KNOT; runtime 1670 sound/pci/cmipci.c runtime->hw.rate_max = 128000; runtime 1672 sound/pci/cmipci.c snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_BUFFER_SIZE, 0, 0x10000); runtime 1680 sound/pci/cmipci.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1685 sound/pci/cmipci.c runtime->hw = snd_cmipci_capture; runtime 1687 sound/pci/cmipci.c runtime->hw.rate_min = 41000; runtime 1688 sound/pci/cmipci.c runtime->hw.rates = SNDRV_PCM_RATE_44100 | SNDRV_PCM_RATE_48000; runtime 1690 sound/pci/cmipci.c err = snd_pcm_hw_constraint_list(runtime, 0, runtime 1694 sound/pci/cmipci.c runtime->hw.rates |= SNDRV_PCM_RATE_KNOT; runtime 1695 sound/pci/cmipci.c runtime->hw.rate_max = 128000; runtime 1697 sound/pci/cmipci.c snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_BUFFER_SIZE, 0, 0x10000); runtime 1704 sound/pci/cmipci.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1709 sound/pci/cmipci.c runtime->hw = snd_cmipci_playback2; runtime 1713 sound/pci/cmipci.c runtime->hw.channels_max = cm->max_channels; runtime 1715 sound/pci/cmipci.c snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, &hw_constraints_channels_4); runtime 1717 sound/pci/cmipci.c snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, &hw_constraints_channels_6); runtime 1719 sound/pci/cmipci.c snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, &hw_constraints_channels_8); runtime 1724 sound/pci/cmipci.c runtime->hw.rates |= SNDRV_PCM_RATE_88200 | runtime 1726 sound/pci/cmipci.c runtime->hw.rate_max = 96000; runtime 1728 sound/pci/cmipci.c err = snd_pcm_hw_constraint_list(runtime, 0, runtime 1732 sound/pci/cmipci.c runtime->hw.rates |= SNDRV_PCM_RATE_KNOT; runtime 1733 sound/pci/cmipci.c runtime->hw.rate_max = 128000; runtime 1735 sound/pci/cmipci.c snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_BUFFER_SIZE, 0, 0x10000); runtime 1742 sound/pci/cmipci.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1748 sound/pci/cmipci.c runtime->hw = snd_cmipci_playback_spdif; runtime 1750 sound/pci/cmipci.c runtime->hw.formats |= SNDRV_PCM_FMTBIT_S32_LE; runtime 1751 sound/pci/cmipci.c snd_pcm_hw_constraint_msbits(runtime, 0, 32, 24); runtime 1754 sound/pci/cmipci.c runtime->hw.rates |= SNDRV_PCM_RATE_88200 | runtime 1756 sound/pci/cmipci.c runtime->hw.rate_max = 96000; runtime 1759 sound/pci/cmipci.c runtime->hw = snd_cmipci_playback_iec958_subframe; runtime 1761 sound/pci/cmipci.c snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_BUFFER_SIZE, 0, 0x40000); runtime 1769 sound/pci/cmipci.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1774 sound/pci/cmipci.c runtime->hw = snd_cmipci_capture_spdif; runtime 1776 sound/pci/cmipci.c runtime->hw.rates |= SNDRV_PCM_RATE_88200 | runtime 1778 sound/pci/cmipci.c runtime->hw.rate_max = 96000; runtime 1780 sound/pci/cmipci.c snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_BUFFER_SIZE, 0, 0x40000); runtime 655 sound/pci/cs4281.c struct cs4281_dma *dma = substream->runtime->private_data; runtime 719 sound/pci/cs4281.c struct snd_pcm_runtime *runtime, runtime 726 sound/pci/cs4281.c if (runtime->channels == 1) runtime 728 sound/pci/cs4281.c if (snd_pcm_format_unsigned(runtime->format) > 0) runtime 730 sound/pci/cs4281.c if (snd_pcm_format_big_endian(runtime->format) > 0) runtime 732 sound/pci/cs4281.c switch (snd_pcm_format_width(runtime->format)) { runtime 734 sound/pci/cs4281.c if (runtime->channels == 1) runtime 741 sound/pci/cs4281.c if (runtime->buffer_size != runtime->period_size) runtime 744 sound/pci/cs4281.c snd_cs4281_pokeBA0(chip, dma->regDBA, runtime->dma_addr); runtime 745 sound/pci/cs4281.c snd_cs4281_pokeBA0(chip, dma->regDBC, runtime->buffer_size - 1); runtime 755 sound/pci/cs4281.c unsigned int val = snd_cs4281_rate(runtime->rate, NULL); runtime 761 sound/pci/cs4281.c unsigned int val = snd_cs4281_rate(runtime->rate, NULL); runtime 796 sound/pci/cs4281.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 797 sound/pci/cs4281.c struct cs4281_dma *dma = runtime->private_data; runtime 801 sound/pci/cs4281.c snd_cs4281_mode(chip, dma, runtime, 0, 1); runtime 808 sound/pci/cs4281.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 809 sound/pci/cs4281.c struct cs4281_dma *dma = runtime->private_data; runtime 813 sound/pci/cs4281.c snd_cs4281_mode(chip, dma, runtime, 1, 1); runtime 820 sound/pci/cs4281.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 821 sound/pci/cs4281.c struct cs4281_dma *dma = runtime->private_data; runtime 830 sound/pci/cs4281.c return runtime->buffer_size - runtime 887 sound/pci/cs4281.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 894 sound/pci/cs4281.c runtime->private_data = dma; runtime 895 sound/pci/cs4281.c runtime->hw = snd_cs4281_playback; runtime 899 sound/pci/cs4281.c snd_pcm_hw_constraint_msbits(runtime, 0, 32, 20); runtime 906 sound/pci/cs4281.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 913 sound/pci/cs4281.c runtime->private_data = dma; runtime 914 sound/pci/cs4281.c runtime->hw = snd_cs4281_capture; runtime 918 sound/pci/cs4281.c snd_pcm_hw_constraint_msbits(runtime, 0, 32, 20); runtime 924 sound/pci/cs4281.c struct cs4281_dma *dma = substream->runtime->private_data; runtime 932 sound/pci/cs4281.c struct cs4281_dma *dma = substream->runtime->private_data; runtime 867 sound/pci/cs46xx/cs46xx_lib.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 868 sound/pci/cs46xx/cs46xx_lib.c struct snd_cs46xx_pcm * cpcm = runtime->private_data; runtime 869 sound/pci/cs46xx/cs46xx_lib.c memcpy(cpcm->hw_buf.area + rec->hw_data, runtime->dma_area + rec->sw_data, bytes); runtime 874 sound/pci/cs46xx/cs46xx_lib.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 875 sound/pci/cs46xx/cs46xx_lib.c struct snd_cs46xx_pcm * cpcm = runtime->private_data; runtime 884 sound/pci/cs46xx/cs46xx_lib.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 885 sound/pci/cs46xx/cs46xx_lib.c memcpy(runtime->dma_area + rec->sw_data, runtime 900 sound/pci/cs46xx/cs46xx_lib.c struct snd_cs46xx_pcm *cpcm = substream->runtime->private_data; runtime 918 sound/pci/cs46xx/cs46xx_lib.c struct snd_cs46xx_pcm *cpcm = substream->runtime->private_data; runtime 953 sound/pci/cs46xx/cs46xx_lib.c struct snd_cs46xx_pcm *cpcm = substream->runtime->private_data; runtime 969 sound/pci/cs46xx/cs46xx_lib.c if (substream->runtime->periods != CS46XX_FRAGS) runtime 973 sound/pci/cs46xx/cs46xx_lib.c if (substream->runtime->periods != CS46XX_FRAGS) runtime 1081 sound/pci/cs46xx/cs46xx_lib.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1089 sound/pci/cs46xx/cs46xx_lib.c cpcm = runtime->private_data; runtime 1121 sound/pci/cs46xx/cs46xx_lib.c if (runtime->dma_area != cpcm->hw_buf.area) runtime 1123 sound/pci/cs46xx/cs46xx_lib.c runtime->dma_area = cpcm->hw_buf.area; runtime 1124 sound/pci/cs46xx/cs46xx_lib.c runtime->dma_addr = cpcm->hw_buf.addr; runtime 1125 sound/pci/cs46xx/cs46xx_lib.c runtime->dma_bytes = cpcm->hw_buf.bytes; runtime 1145 sound/pci/cs46xx/cs46xx_lib.c if (runtime->dma_area == cpcm->hw_buf.area) { runtime 1146 sound/pci/cs46xx/cs46xx_lib.c runtime->dma_area = NULL; runtime 1147 sound/pci/cs46xx/cs46xx_lib.c runtime->dma_addr = 0; runtime 1148 sound/pci/cs46xx/cs46xx_lib.c runtime->dma_bytes = 0; runtime 1185 sound/pci/cs46xx/cs46xx_lib.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1188 sound/pci/cs46xx/cs46xx_lib.c cpcm = runtime->private_data; runtime 1194 sound/pci/cs46xx/cs46xx_lib.c if (runtime->dma_area != cpcm->hw_buf.area) runtime 1197 sound/pci/cs46xx/cs46xx_lib.c runtime->dma_area = NULL; runtime 1198 sound/pci/cs46xx/cs46xx_lib.c runtime->dma_addr = 0; runtime 1199 sound/pci/cs46xx/cs46xx_lib.c runtime->dma_bytes = 0; runtime 1209 sound/pci/cs46xx/cs46xx_lib.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1212 sound/pci/cs46xx/cs46xx_lib.c cpcm = runtime->private_data; runtime 1228 sound/pci/cs46xx/cs46xx_lib.c if (runtime->channels == 1) { runtime 1233 sound/pci/cs46xx/cs46xx_lib.c if (snd_pcm_format_width(runtime->format) == 8) { runtime 1238 sound/pci/cs46xx/cs46xx_lib.c if (snd_pcm_format_unsigned(runtime->format)) runtime 1242 sound/pci/cs46xx/cs46xx_lib.c if (snd_pcm_format_width(runtime->format) != 8) { runtime 1244 sound/pci/cs46xx/cs46xx_lib.c if (snd_pcm_format_big_endian(runtime->format)) runtime 1250 sound/pci/cs46xx/cs46xx_lib.c cpcm->pcm_rec.hw_buffer_size = runtime->period_size * CS46XX_FRAGS << cpcm->shift; runtime 1269 sound/pci/cs46xx/cs46xx_lib.c snd_cs46xx_set_play_sample_rate(chip, runtime->rate); runtime 1279 sound/pci/cs46xx/cs46xx_lib.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1285 sound/pci/cs46xx/cs46xx_lib.c if (runtime->periods == CS46XX_FRAGS) { runtime 1286 sound/pci/cs46xx/cs46xx_lib.c if (runtime->dma_area != chip->capt.hw_buf.area) runtime 1288 sound/pci/cs46xx/cs46xx_lib.c runtime->dma_area = chip->capt.hw_buf.area; runtime 1289 sound/pci/cs46xx/cs46xx_lib.c runtime->dma_addr = chip->capt.hw_buf.addr; runtime 1290 sound/pci/cs46xx/cs46xx_lib.c runtime->dma_bytes = chip->capt.hw_buf.bytes; runtime 1293 sound/pci/cs46xx/cs46xx_lib.c if (runtime->dma_area == chip->capt.hw_buf.area) { runtime 1294 sound/pci/cs46xx/cs46xx_lib.c runtime->dma_area = NULL; runtime 1295 sound/pci/cs46xx/cs46xx_lib.c runtime->dma_addr = 0; runtime 1296 sound/pci/cs46xx/cs46xx_lib.c runtime->dma_bytes = 0; runtime 1309 sound/pci/cs46xx/cs46xx_lib.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1311 sound/pci/cs46xx/cs46xx_lib.c if (runtime->dma_area != chip->capt.hw_buf.area) runtime 1313 sound/pci/cs46xx/cs46xx_lib.c runtime->dma_area = NULL; runtime 1314 sound/pci/cs46xx/cs46xx_lib.c runtime->dma_addr = 0; runtime 1315 sound/pci/cs46xx/cs46xx_lib.c runtime->dma_bytes = 0; runtime 1323 sound/pci/cs46xx/cs46xx_lib.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1329 sound/pci/cs46xx/cs46xx_lib.c chip->capt.pcm_rec.hw_buffer_size = runtime->period_size * CS46XX_FRAGS << 2; runtime 1330 sound/pci/cs46xx/cs46xx_lib.c snd_cs46xx_set_capture_sample_rate(chip, runtime->rate); runtime 1483 sound/pci/cs46xx/cs46xx_lib.c static void snd_cs46xx_pcm_free_substream(struct snd_pcm_runtime *runtime) runtime 1485 sound/pci/cs46xx/cs46xx_lib.c kfree(runtime->private_data); runtime 1492 sound/pci/cs46xx/cs46xx_lib.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1503 sound/pci/cs46xx/cs46xx_lib.c runtime->hw = snd_cs46xx_playback; runtime 1504 sound/pci/cs46xx/cs46xx_lib.c runtime->private_data = cpcm; runtime 1505 sound/pci/cs46xx/cs46xx_lib.c runtime->private_free = snd_cs46xx_pcm_free_substream; runtime 1514 sound/pci/cs46xx/cs46xx_lib.c snd_pcm_hw_constraint_list(runtime, 0, runtime 1524 sound/pci/cs46xx/cs46xx_lib.c substream->runtime->hw.info |= SNDRV_PCM_INFO_MMAP_VALID; runtime 1589 sound/pci/cs46xx/cs46xx_lib.c substream->runtime->hw = snd_cs46xx_capture; runtime 1592 sound/pci/cs46xx/cs46xx_lib.c substream->runtime->hw.info |= SNDRV_PCM_INFO_MMAP_VALID; runtime 1597 sound/pci/cs46xx/cs46xx_lib.c snd_pcm_hw_constraint_list(substream->runtime, 0, runtime 1607 sound/pci/cs46xx/cs46xx_lib.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1610 sound/pci/cs46xx/cs46xx_lib.c cpcm = runtime->private_data; runtime 83 sound/pci/cs5535audio/cs5535audio_pcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 85 sound/pci/cs5535audio/cs5535audio_pcm.c runtime->hw = snd_cs5535audio_playback; runtime 86 sound/pci/cs5535audio/cs5535audio_pcm.c runtime->hw.rates = cs5535au->ac97->rates[AC97_RATES_FRONT_DAC]; runtime 87 sound/pci/cs5535audio/cs5535audio_pcm.c snd_pcm_limit_hw_rates(runtime); runtime 89 sound/pci/cs5535audio/cs5535audio_pcm.c runtime->private_data = &(cs5535au->dmas[CS5535AUDIO_DMA_PLAYBACK]); runtime 90 sound/pci/cs5535audio/cs5535audio_pcm.c if ((err = snd_pcm_hw_constraint_integer(runtime, runtime 132 sound/pci/cs5535audio/cs5535audio_pcm.c addr = (u32) substream->runtime->dma_addr; runtime 236 sound/pci/cs5535audio/cs5535audio_pcm.c struct cs5535audio_dma *dma = substream->runtime->private_data; runtime 243 sound/pci/cs5535audio/cs5535audio_pcm.c dma->buf_addr = substream->runtime->dma_addr; runtime 258 sound/pci/cs5535audio/cs5535audio_pcm.c struct cs5535audio_dma *dma = substream->runtime->private_data; runtime 277 sound/pci/cs5535audio/cs5535audio_pcm.c substream->runtime->rate); runtime 283 sound/pci/cs5535audio/cs5535audio_pcm.c struct cs5535audio_dma *dma = substream->runtime->private_data; runtime 322 sound/pci/cs5535audio/cs5535audio_pcm.c dma = substream->runtime->private_data; runtime 335 sound/pci/cs5535audio/cs5535audio_pcm.c return bytes_to_frames(substream->runtime, curdma); runtime 342 sound/pci/cs5535audio/cs5535audio_pcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 344 sound/pci/cs5535audio/cs5535audio_pcm.c runtime->hw = snd_cs5535audio_capture; runtime 345 sound/pci/cs5535audio/cs5535audio_pcm.c runtime->hw.rates = cs5535au->ac97->rates[AC97_RATES_ADC]; runtime 346 sound/pci/cs5535audio/cs5535audio_pcm.c snd_pcm_limit_hw_rates(runtime); runtime 348 sound/pci/cs5535audio/cs5535audio_pcm.c runtime->private_data = &(cs5535au->dmas[CS5535AUDIO_DMA_CAPTURE]); runtime 349 sound/pci/cs5535audio/cs5535audio_pcm.c if ((err = snd_pcm_hw_constraint_integer(runtime, runtime 367 sound/pci/cs5535audio/cs5535audio_pcm.c substream->runtime->rate); runtime 135 sound/pci/ctxfi/ctatc.c struct snd_pcm_runtime *runtime; runtime 141 sound/pci/ctxfi/ctatc.c runtime = apcm->substream->runtime; runtime 144 sound/pci/ctxfi/ctatc.c apcm->vm_block = vm->map(vm, apcm->substream, runtime->dma_bytes); runtime 249 sound/pci/ctxfi/ctatc.c int n_amixer = apcm->substream->runtime->channels, i = 0; runtime 257 sound/pci/ctxfi/ctatc.c desc.multi = apcm->substream->runtime->channels; runtime 264 sound/pci/ctxfi/ctatc.c pitch = atc_get_pitch(apcm->substream->runtime->rate, runtime 269 sound/pci/ctxfi/ctatc.c src->ops->set_sf(src, convert_format(apcm->substream->runtime->format, runtime 466 sound/pci/ctxfi/ctatc.c apcm->substream->runtime->rate); runtime 470 sound/pci/ctxfi/ctatc.c *n_srcc = apcm->substream->runtime->channels; runtime 483 sound/pci/ctxfi/ctatc.c apcm->substream->runtime->rate); runtime 486 sound/pci/ctxfi/ctatc.c *n_srcc = apcm->substream->runtime->channels * 2; runtime 494 sound/pci/ctxfi/ctatc.c *n_srcc = apcm->substream->runtime->channels; runtime 523 sound/pci/ctxfi/ctatc.c multi = apcm->substream->runtime->channels; runtime 527 sound/pci/ctxfi/ctatc.c apcm->substream->runtime->rate); runtime 603 sound/pci/ctxfi/ctatc.c apcm->substream->runtime->rate); runtime 622 sound/pci/ctxfi/ctatc.c src_dsc.multi = apcm->substream->runtime->channels; runtime 667 sound/pci/ctxfi/ctatc.c multi = apcm->substream->runtime->channels; runtime 690 sound/pci/ctxfi/ctatc.c apcm->substream->runtime->rate); runtime 732 sound/pci/ctxfi/ctatc.c multi = apcm->substream->runtime->channels; runtime 742 sound/pci/ctxfi/ctatc.c src->ops->set_sf(src, convert_format(apcm->substream->runtime->format, runtime 791 sound/pci/ctxfi/ctatc.c int n_amixer = apcm->substream->runtime->channels, i; runtime 798 sound/pci/ctxfi/ctatc.c desc.multi = apcm->substream->runtime->channels; runtime 800 sound/pci/ctxfi/ctatc.c while (apcm->substream->runtime->rate > (rsr * desc.msr)) runtime 808 sound/pci/ctxfi/ctatc.c pitch = atc_get_pitch(apcm->substream->runtime->rate, (rsr * desc.msr)); runtime 812 sound/pci/ctxfi/ctatc.c src->ops->set_sf(src, convert_format(apcm->substream->runtime->format, runtime 859 sound/pci/ctxfi/ctatc.c unsigned int rate = apcm->substream->runtime->rate; runtime 103 sound/pci/ctxfi/ctpcm.c static void ct_atc_pcm_free_substream(struct snd_pcm_runtime *runtime) runtime 105 sound/pci/ctxfi/ctpcm.c struct ct_atc_pcm *apcm = runtime->private_data; runtime 111 sound/pci/ctxfi/ctpcm.c runtime->private_data = NULL; runtime 118 sound/pci/ctxfi/ctpcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 129 sound/pci/ctxfi/ctpcm.c runtime->hw = ct_spdif_passthru_playback_hw; runtime 132 sound/pci/ctxfi/ctpcm.c runtime->hw = ct_pcm_playback_hw; runtime 134 sound/pci/ctxfi/ctpcm.c runtime->hw.channels_max = 8; runtime 137 sound/pci/ctxfi/ctpcm.c err = snd_pcm_hw_constraint_integer(runtime, runtime 142 sound/pci/ctxfi/ctpcm.c err = snd_pcm_hw_constraint_minmax(runtime, runtime 153 sound/pci/ctxfi/ctpcm.c runtime->private_data = apcm; runtime 154 sound/pci/ctxfi/ctpcm.c runtime->private_free = ct_atc_pcm_free_substream; runtime 180 sound/pci/ctxfi/ctpcm.c struct ct_atc_pcm *apcm = substream->runtime->private_data; runtime 195 sound/pci/ctxfi/ctpcm.c struct ct_atc_pcm *apcm = substream->runtime->private_data; runtime 208 sound/pci/ctxfi/ctpcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 209 sound/pci/ctxfi/ctpcm.c struct ct_atc_pcm *apcm = runtime->private_data; runtime 229 sound/pci/ctxfi/ctpcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 230 sound/pci/ctxfi/ctpcm.c struct ct_atc_pcm *apcm = runtime->private_data; runtime 255 sound/pci/ctxfi/ctpcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 256 sound/pci/ctxfi/ctpcm.c struct ct_atc_pcm *apcm = runtime->private_data; runtime 260 sound/pci/ctxfi/ctpcm.c position = bytes_to_frames(runtime, position); runtime 261 sound/pci/ctxfi/ctpcm.c if (position >= runtime->buffer_size) runtime 270 sound/pci/ctxfi/ctpcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 281 sound/pci/ctxfi/ctpcm.c runtime->hw = ct_pcm_capture_hw; runtime 282 sound/pci/ctxfi/ctpcm.c runtime->hw.rate_max = atc->rsr * atc->msr; runtime 284 sound/pci/ctxfi/ctpcm.c err = snd_pcm_hw_constraint_integer(runtime, runtime 289 sound/pci/ctxfi/ctpcm.c err = snd_pcm_hw_constraint_minmax(runtime, runtime 300 sound/pci/ctxfi/ctpcm.c runtime->private_data = apcm; runtime 301 sound/pci/ctxfi/ctpcm.c runtime->private_free = ct_atc_pcm_free_substream; runtime 321 sound/pci/ctxfi/ctpcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 322 sound/pci/ctxfi/ctpcm.c struct ct_atc_pcm *apcm = runtime->private_data; runtime 338 sound/pci/ctxfi/ctpcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 339 sound/pci/ctxfi/ctpcm.c struct ct_atc_pcm *apcm = runtime->private_data; runtime 361 sound/pci/ctxfi/ctpcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 362 sound/pci/ctxfi/ctpcm.c struct ct_atc_pcm *apcm = runtime->private_data; runtime 366 sound/pci/ctxfi/ctpcm.c position = bytes_to_frames(runtime, position); runtime 367 sound/pci/ctxfi/ctpcm.c if (position >= runtime->buffer_size) runtime 67 sound/pci/ctxfi/cttimer.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 69 sound/pci/ctxfi/cttimer.c unsigned int period_size = runtime->period_size; runtime 70 sound/pci/ctxfi/cttimer.c unsigned int buffer_size = runtime->buffer_size; runtime 84 sound/pci/ctxfi/cttimer.c * HZ + (runtime->rate - 1)) / runtime->rate + HZ * 5 / 1000; runtime 98 sound/pci/ctxfi/cttimer.c struct snd_pcm_runtime *runtime = ti->substream->runtime; runtime 104 sound/pci/ctxfi/cttimer.c jiffies + (runtime->period_size * HZ + runtime 105 sound/pci/ctxfi/cttimer.c (runtime->rate - 1)) / runtime->rate); runtime 202 sound/pci/ctxfi/cttimer.c period_size = ti->substream->runtime->period_size; runtime 203 sound/pci/ctxfi/cttimer.c rate = ti->substream->runtime->rate; runtime 265 sound/pci/ctxfi/cttimer.c ti->frag_count = ti->substream->runtime->period_size; runtime 95 sound/pci/echoaudio/echoaudio.c static void audiopipe_free(struct snd_pcm_runtime *runtime) runtime 97 sound/pci/echoaudio/echoaudio.c struct audiopipe *pipe = runtime->private_data; runtime 262 sound/pci/echoaudio/echoaudio.c struct snd_pcm_runtime *runtime; runtime 270 sound/pci/echoaudio/echoaudio.c runtime = substream->runtime; runtime 291 sound/pci/echoaudio/echoaudio.c runtime->hw = pipe->hw; runtime 292 sound/pci/echoaudio/echoaudio.c runtime->private_data = pipe; runtime 293 sound/pci/echoaudio/echoaudio.c runtime->private_free = audiopipe_free; runtime 297 sound/pci/echoaudio/echoaudio.c if ((err = snd_pcm_hw_constraint_list(runtime, 0, runtime 303 sound/pci/echoaudio/echoaudio.c if ((err = snd_pcm_hw_constraint_integer(runtime, runtime 310 sound/pci/echoaudio/echoaudio.c if ((err = snd_pcm_hw_constraint_step(runtime, 0, runtime 314 sound/pci/echoaudio/echoaudio.c if ((err = snd_pcm_hw_constraint_step(runtime, 0, runtime 319 sound/pci/echoaudio/echoaudio.c if ((err = snd_pcm_hw_rule_add(substream->runtime, 0, runtime 346 sound/pci/echoaudio/echoaudio.c if ((err = snd_pcm_hw_rule_add(substream->runtime, 0, runtime 351 sound/pci/echoaudio/echoaudio.c if ((err = snd_pcm_hw_rule_add(substream->runtime, 0, runtime 379 sound/pci/echoaudio/echoaudio.c if ((err = snd_pcm_hw_rule_add(substream->runtime, 0, runtime 385 sound/pci/echoaudio/echoaudio.c if ((err = snd_pcm_hw_rule_add(substream->runtime, 0, runtime 421 sound/pci/echoaudio/echoaudio.c if ((err = snd_pcm_hw_rule_add(substream->runtime, 0, runtime 426 sound/pci/echoaudio/echoaudio.c if ((err = snd_pcm_hw_rule_add(substream->runtime, 0, runtime 462 sound/pci/echoaudio/echoaudio.c if ((err = snd_pcm_hw_rule_add(substream->runtime, 0, runtime 468 sound/pci/echoaudio/echoaudio.c if ((err = snd_pcm_hw_rule_add(substream->runtime, 0, runtime 523 sound/pci/echoaudio/echoaudio.c pipe = (struct audiopipe *) substream->runtime->private_data; runtime 663 sound/pci/echoaudio/echoaudio.c pipe = (struct audiopipe *) substream->runtime->private_data; runtime 683 sound/pci/echoaudio/echoaudio.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 685 sound/pci/echoaudio/echoaudio.c int pipe_index = ((struct audiopipe *)runtime->private_data)->index; runtime 688 sound/pci/echoaudio/echoaudio.c runtime->rate, runtime->format, runtime->channels); runtime 689 sound/pci/echoaudio/echoaudio.c format.interleave = runtime->channels; runtime 692 sound/pci/echoaudio/echoaudio.c switch (runtime->format) { runtime 711 sound/pci/echoaudio/echoaudio.c runtime->format); runtime 749 sound/pci/echoaudio/echoaudio.c pipe = chip->substream[i]->runtime->private_data; runtime 772 sound/pci/echoaudio/echoaudio.c pipe = chip->substream[i]->runtime->private_data; runtime 781 sound/pci/echoaudio/echoaudio.c pipe = chip->substream[i]->runtime->private_data; runtime 798 sound/pci/echoaudio/echoaudio.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 799 sound/pci/echoaudio/echoaudio.c struct audiopipe *pipe = runtime->private_data; runtime 805 sound/pci/echoaudio/echoaudio.c bufsize = substream->runtime->buffer_size; runtime 806 sound/pci/echoaudio/echoaudio.c pos = bytes_to_frames(substream->runtime, pipe->position); runtime 809 sound/pci/echoaudio/echoaudio.c pipe->position -= frames_to_bytes(substream->runtime, bufsize); runtime 1825 sound/pci/echoaudio/echoaudio.c if (substream && ((struct audiopipe *)substream->runtime-> runtime 1828 sound/pci/echoaudio/echoaudio.c substream->runtime->period_size; runtime 344 sound/pci/emu10k1/emu10k1x.c static void snd_emu10k1x_pcm_free_substream(struct snd_pcm_runtime *runtime) runtime 346 sound/pci/emu10k1/emu10k1x.c kfree(runtime->private_data); runtime 372 sound/pci/emu10k1/emu10k1x.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 375 sound/pci/emu10k1/emu10k1x.c if ((err = snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS)) < 0) { runtime 378 sound/pci/emu10k1/emu10k1x.c if ((err = snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_BYTES, 64)) < 0) runtime 387 sound/pci/emu10k1/emu10k1x.c runtime->private_data = epcm; runtime 388 sound/pci/emu10k1/emu10k1x.c runtime->private_free = snd_emu10k1x_pcm_free_substream; runtime 390 sound/pci/emu10k1/emu10k1x.c runtime->hw = snd_emu10k1x_playback_hw; runtime 405 sound/pci/emu10k1/emu10k1x.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 406 sound/pci/emu10k1/emu10k1x.c struct emu10k1x_pcm *epcm = runtime->private_data; runtime 421 sound/pci/emu10k1/emu10k1x.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 424 sound/pci/emu10k1/emu10k1x.c if (runtime->private_data == NULL) runtime 427 sound/pci/emu10k1/emu10k1x.c epcm = runtime->private_data; runtime 442 sound/pci/emu10k1/emu10k1x.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 443 sound/pci/emu10k1/emu10k1x.c struct emu10k1x_pcm *epcm = runtime->private_data; runtime 446 sound/pci/emu10k1/emu10k1x.c u32 period_size_bytes = frames_to_bytes(runtime, runtime->period_size); runtime 449 sound/pci/emu10k1/emu10k1x.c for(i = 0; i < runtime->periods; i++) { runtime 450 sound/pci/emu10k1/emu10k1x.c *table_base++=runtime->dma_addr+(i*period_size_bytes); runtime 455 sound/pci/emu10k1/emu10k1x.c snd_emu10k1x_ptr_write(emu, PLAYBACK_LIST_SIZE, voice, (runtime->periods - 1) << 19); runtime 460 sound/pci/emu10k1/emu10k1x.c snd_emu10k1x_ptr_write(emu, PLAYBACK_DMA_ADDR, voice, runtime->dma_addr); runtime 462 sound/pci/emu10k1/emu10k1x.c snd_emu10k1x_ptr_write(emu, PLAYBACK_PERIOD_SIZE, voice, frames_to_bytes(runtime, runtime->period_size)<<16); runtime 472 sound/pci/emu10k1/emu10k1x.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 473 sound/pci/emu10k1/emu10k1x.c struct emu10k1x_pcm *epcm = runtime->private_data; runtime 485 sound/pci/emu10k1/emu10k1x.c if(runtime->periods == 2) runtime 509 sound/pci/emu10k1/emu10k1x.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 510 sound/pci/emu10k1/emu10k1x.c struct emu10k1x_pcm *epcm = runtime->private_data; runtime 521 sound/pci/emu10k1/emu10k1x.c if(ptr4 == 0 && ptr1 == frames_to_bytes(runtime, runtime->buffer_size)) runtime 526 sound/pci/emu10k1/emu10k1x.c ptr2 = bytes_to_frames(runtime, ptr1); runtime 527 sound/pci/emu10k1/emu10k1x.c ptr2 += (ptr4 >> 3) * runtime->period_size; runtime 530 sound/pci/emu10k1/emu10k1x.c if (ptr >= runtime->buffer_size) runtime 531 sound/pci/emu10k1/emu10k1x.c ptr -= runtime->buffer_size; runtime 553 sound/pci/emu10k1/emu10k1x.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 556 sound/pci/emu10k1/emu10k1x.c if ((err = snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS)) < 0) runtime 558 sound/pci/emu10k1/emu10k1x.c if ((err = snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_BYTES, 64)) < 0) runtime 568 sound/pci/emu10k1/emu10k1x.c runtime->private_data = epcm; runtime 569 sound/pci/emu10k1/emu10k1x.c runtime->private_free = snd_emu10k1x_pcm_free_substream; runtime 571 sound/pci/emu10k1/emu10k1x.c runtime->hw = snd_emu10k1x_capture_hw; runtime 586 sound/pci/emu10k1/emu10k1x.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 587 sound/pci/emu10k1/emu10k1x.c struct emu10k1x_pcm *epcm = runtime->private_data; runtime 604 sound/pci/emu10k1/emu10k1x.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 608 sound/pci/emu10k1/emu10k1x.c if (runtime->private_data == NULL) runtime 610 sound/pci/emu10k1/emu10k1x.c epcm = runtime->private_data; runtime 625 sound/pci/emu10k1/emu10k1x.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 627 sound/pci/emu10k1/emu10k1x.c snd_emu10k1x_ptr_write(emu, CAPTURE_DMA_ADDR, 0, runtime->dma_addr); runtime 628 sound/pci/emu10k1/emu10k1x.c snd_emu10k1x_ptr_write(emu, CAPTURE_BUFFER_SIZE, 0, frames_to_bytes(runtime, runtime->buffer_size)<<16); // buffer size in bytes runtime 640 sound/pci/emu10k1/emu10k1x.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 641 sound/pci/emu10k1/emu10k1x.c struct emu10k1x_pcm *epcm = runtime->private_data; runtime 669 sound/pci/emu10k1/emu10k1x.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 670 sound/pci/emu10k1/emu10k1x.c struct emu10k1x_pcm *epcm = runtime->private_data; runtime 676 sound/pci/emu10k1/emu10k1x.c ptr = bytes_to_frames(runtime, snd_emu10k1x_ptr_read(emu, CAPTURE_POINTER, 0)); runtime 677 sound/pci/emu10k1/emu10k1x.c if (ptr >= runtime->buffer_size) runtime 678 sound/pci/emu10k1/emu10k1x.c ptr -= runtime->buffer_size; runtime 35 sound/pci/emu10k1/emupcm.c epcm->substream->runtime->hw->pointer(emu, epcm->substream), runtime 47 sound/pci/emu10k1/emupcm.c if (emu->pcm_capture_substream->runtime->mode == SNDRV_PCM_MODE_FRAME) runtime 59 sound/pci/emu10k1/emupcm.c if (emu->pcm_capture_mic_substream->runtime->mode == SNDRV_PCM_MODE_FRAME) runtime 71 sound/pci/emu10k1/emupcm.c if (emu->pcm_capture_efx_substream->runtime->mode == SNDRV_PCM_MODE_FRAME) runtime 81 sound/pci/emu10k1/emupcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 82 sound/pci/emu10k1/emupcm.c struct snd_emu10k1_pcm *epcm = runtime->private_data; runtime 88 sound/pci/emu10k1/emupcm.c ptr += runtime->buffer_size; runtime 90 sound/pci/emu10k1/emupcm.c ptr %= runtime->buffer_size; runtime 276 sound/pci/emu10k1/emupcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 286 sound/pci/emu10k1/emupcm.c stereo = runtime->channels == 2; runtime 287 sound/pci/emu10k1/emupcm.c w_16 = snd_pcm_format_width(runtime->format) == 16; runtime 355 sound/pci/emu10k1/emupcm.c pitch_target = emu10k1_calc_pitch_target(runtime->rate); runtime 397 sound/pci/emu10k1/emupcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 398 sound/pci/emu10k1/emupcm.c struct snd_emu10k1_pcm *epcm = runtime->private_data; runtime 411 sound/pci/emu10k1/emupcm.c if (emu->iommu_workaround && runtime->dma_bytes >= EMUPAGESIZE) runtime 412 sound/pci/emu10k1/emupcm.c runtime->dma_bytes -= EMUPAGESIZE; runtime 432 sound/pci/emu10k1/emupcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 435 sound/pci/emu10k1/emupcm.c if (runtime->private_data == NULL) runtime 437 sound/pci/emu10k1/emupcm.c epcm = runtime->private_data; runtime 462 sound/pci/emu10k1/emupcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 466 sound/pci/emu10k1/emupcm.c if (runtime->private_data == NULL) runtime 468 sound/pci/emu10k1/emupcm.c epcm = runtime->private_data; runtime 491 sound/pci/emu10k1/emupcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 492 sound/pci/emu10k1/emupcm.c struct snd_emu10k1_pcm *epcm = runtime->private_data; runtime 497 sound/pci/emu10k1/emupcm.c if (runtime->channels == 2) { runtime 519 sound/pci/emu10k1/emupcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 520 sound/pci/emu10k1/emupcm.c struct snd_emu10k1_pcm *epcm = runtime->private_data; runtime 586 sound/pci/emu10k1/emupcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 587 sound/pci/emu10k1/emupcm.c struct snd_emu10k1_pcm *epcm = runtime->private_data; runtime 606 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, epcm->capture_ba_reg, 0, runtime->dma_addr); runtime 621 sound/pci/emu10k1/emupcm.c if (runtime->channels > 1) runtime 624 sound/pci/emu10k1/emupcm.c snd_emu10k1_audigy_capture_rate_reg(runtime->rate) : runtime 625 sound/pci/emu10k1/emupcm.c snd_emu10k1_capture_rate_reg(runtime->rate); runtime 632 sound/pci/emu10k1/emupcm.c struct snd_pcm_runtime *runtime; runtime 637 sound/pci/emu10k1/emupcm.c runtime = evoice->epcm->substream->runtime; runtime 639 sound/pci/emu10k1/emupcm.c stereo = (!extra && runtime->channels == 2); runtime 640 sound/pci/emu10k1/emupcm.c sample = snd_pcm_format_width(runtime->format) == 16 ? 0 : 0x80808080; runtime 670 sound/pci/emu10k1/emupcm.c struct snd_pcm_runtime *runtime; runtime 677 sound/pci/emu10k1/emupcm.c runtime = substream->runtime; runtime 681 sound/pci/emu10k1/emupcm.c tmp = runtime->channels == 2 ? (master ? 1 : 2) : 0; runtime 693 sound/pci/emu10k1/emupcm.c struct snd_pcm_runtime *runtime; runtime 699 sound/pci/emu10k1/emupcm.c runtime = substream->runtime; runtime 702 sound/pci/emu10k1/emupcm.c pitch = snd_emu10k1_rate_to_pitch(runtime->rate) >> 8; runtime 706 sound/pci/emu10k1/emupcm.c pitch_target = emu10k1_calc_pitch_target(runtime->rate); runtime 734 sound/pci/emu10k1/emupcm.c struct snd_pcm_runtime *runtime) runtime 740 sound/pci/emu10k1/emupcm.c period_pos = runtime->status->hw_ptr - runtime->hw_ptr_interrupt; runtime 741 sound/pci/emu10k1/emupcm.c period_pos %= runtime->period_size; runtime 752 sound/pci/emu10k1/emupcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 753 sound/pci/emu10k1/emupcm.c struct snd_emu10k1_pcm *epcm = runtime->private_data; runtime 771 sound/pci/emu10k1/emupcm.c snd_emu10k1_playback_mangle_extra(emu, epcm, substream, runtime); runtime 801 sound/pci/emu10k1/emupcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 802 sound/pci/emu10k1/emupcm.c struct snd_emu10k1_pcm *epcm = runtime->private_data; runtime 869 sound/pci/emu10k1/emupcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 870 sound/pci/emu10k1/emupcm.c struct snd_emu10k1_pcm *epcm = runtime->private_data; runtime 877 sound/pci/emu10k1/emupcm.c ptr += runtime->buffer_size; runtime 879 sound/pci/emu10k1/emupcm.c ptr %= runtime->buffer_size; runtime 882 sound/pci/emu10k1/emupcm.c ptr += runtime->buffer_size - epcm->ccca_start_addr; runtime 885 sound/pci/emu10k1/emupcm.c if (ptr >= runtime->buffer_size) runtime 886 sound/pci/emu10k1/emupcm.c ptr -= runtime->buffer_size; runtime 903 sound/pci/emu10k1/emupcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 904 sound/pci/emu10k1/emupcm.c struct snd_emu10k1_pcm *epcm = runtime->private_data; runtime 953 sound/pci/emu10k1/emupcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 954 sound/pci/emu10k1/emupcm.c struct snd_emu10k1_pcm *epcm = runtime->private_data; runtime 964 sound/pci/emu10k1/emupcm.c return bytes_to_frames(runtime, ptr); runtime 1070 sound/pci/emu10k1/emupcm.c static void snd_emu10k1_pcm_free_substream(struct snd_pcm_runtime *runtime) runtime 1072 sound/pci/emu10k1/emupcm.c kfree(runtime->private_data); runtime 1094 sound/pci/emu10k1/emupcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1106 sound/pci/emu10k1/emupcm.c runtime->private_data = epcm; runtime 1107 sound/pci/emu10k1/emupcm.c runtime->private_free = snd_emu10k1_pcm_free_substream; runtime 1108 sound/pci/emu10k1/emupcm.c runtime->hw = snd_emu10k1_efx_playback; runtime 1127 sound/pci/emu10k1/emupcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1136 sound/pci/emu10k1/emupcm.c runtime->private_data = epcm; runtime 1137 sound/pci/emu10k1/emupcm.c runtime->private_free = snd_emu10k1_pcm_free_substream; runtime 1138 sound/pci/emu10k1/emupcm.c runtime->hw = snd_emu10k1_playback; runtime 1139 sound/pci/emu10k1/emupcm.c if ((err = snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS)) < 0) { runtime 1143 sound/pci/emu10k1/emupcm.c if ((err = snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_BUFFER_BYTES, 256, UINT_MAX)) < 0) { runtime 1151 sound/pci/emu10k1/emupcm.c err = snd_pcm_hw_rule_noresample(runtime, sample_rate); runtime 1181 sound/pci/emu10k1/emupcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1195 sound/pci/emu10k1/emupcm.c runtime->private_data = epcm; runtime 1196 sound/pci/emu10k1/emupcm.c runtime->private_free = snd_emu10k1_pcm_free_substream; runtime 1197 sound/pci/emu10k1/emupcm.c runtime->hw = snd_emu10k1_capture; runtime 1200 sound/pci/emu10k1/emupcm.c snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_BYTES, &hw_constraints_capture_period_sizes); runtime 1201 sound/pci/emu10k1/emupcm.c snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, &hw_constraints_capture_rates); runtime 1218 sound/pci/emu10k1/emupcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1231 sound/pci/emu10k1/emupcm.c substream->runtime->private_data = epcm; runtime 1232 sound/pci/emu10k1/emupcm.c substream->runtime->private_free = snd_emu10k1_pcm_free_substream; runtime 1233 sound/pci/emu10k1/emupcm.c runtime->hw = snd_emu10k1_capture; runtime 1234 sound/pci/emu10k1/emupcm.c runtime->hw.rates = SNDRV_PCM_RATE_8000; runtime 1235 sound/pci/emu10k1/emupcm.c runtime->hw.rate_min = runtime->hw.rate_max = 8000; runtime 1236 sound/pci/emu10k1/emupcm.c runtime->hw.channels_min = 1; runtime 1239 sound/pci/emu10k1/emupcm.c snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_BYTES, &hw_constraints_capture_period_sizes); runtime 1256 sound/pci/emu10k1/emupcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1271 sound/pci/emu10k1/emupcm.c substream->runtime->private_data = epcm; runtime 1272 sound/pci/emu10k1/emupcm.c substream->runtime->private_free = snd_emu10k1_pcm_free_substream; runtime 1273 sound/pci/emu10k1/emupcm.c runtime->hw = snd_emu10k1_capture_efx; runtime 1274 sound/pci/emu10k1/emupcm.c runtime->hw.rates = SNDRV_PCM_RATE_48000; runtime 1275 sound/pci/emu10k1/emupcm.c runtime->hw.rate_min = runtime->hw.rate_max = 48000; runtime 1303 sound/pci/emu10k1/emupcm.c runtime->hw.rates = SNDRV_PCM_RATE_44100; runtime 1304 sound/pci/emu10k1/emupcm.c runtime->hw.rate_min = runtime->hw.rate_max = 44100; runtime 1305 sound/pci/emu10k1/emupcm.c runtime->hw.channels_min = runtime 1306 sound/pci/emu10k1/emupcm.c runtime->hw.channels_max = 16; runtime 1310 sound/pci/emu10k1/emupcm.c runtime->hw.rates = SNDRV_PCM_RATE_48000; runtime 1311 sound/pci/emu10k1/emupcm.c runtime->hw.rate_min = runtime->hw.rate_max = 48000; runtime 1312 sound/pci/emu10k1/emupcm.c runtime->hw.channels_min = runtime 1313 sound/pci/emu10k1/emupcm.c runtime->hw.channels_max = 16; runtime 1319 sound/pci/emu10k1/emupcm.c runtime->hw.rates = SNDRV_PCM_RATE_96000; runtime 1320 sound/pci/emu10k1/emupcm.c runtime->hw.rate_min = runtime->hw.rate_max = 96000; runtime 1321 sound/pci/emu10k1/emupcm.c runtime->hw.channels_min = runtime->hw.channels_max = 4; runtime 1325 sound/pci/emu10k1/emupcm.c runtime->hw.rates = SNDRV_PCM_RATE_192000; runtime 1326 sound/pci/emu10k1/emupcm.c runtime->hw.rate_min = runtime->hw.rate_max = 192000; runtime 1327 sound/pci/emu10k1/emupcm.c runtime->hw.channels_min = runtime->hw.channels_max = 2; runtime 1329 sound/pci/emu10k1/emupcm.c runtime->hw.formats = SNDRV_PCM_FMTBIT_S32_LE; runtime 1334 sound/pci/emu10k1/emupcm.c runtime->hw.channels_min = runtime->hw.channels_max = 0; runtime 1337 sound/pci/emu10k1/emupcm.c runtime->hw.channels_min++; runtime 1338 sound/pci/emu10k1/emupcm.c runtime->hw.channels_max++; runtime 1347 sound/pci/emu10k1/emupcm.c snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_BYTES, &hw_constraints_capture_period_sizes); runtime 1606 sound/pci/emu10k1/emupcm.c unsigned short *src = (unsigned short *)(substream->runtime->dma_area + rec->sw_data); runtime 1659 sound/pci/emu10k1/emupcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1676 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, emu->gpr_base + pcm->gpr_size, 0, runtime->buffer_size); runtime 1678 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, emu->gpr_base + pcm->gpr_count, 0, runtime->period_size); runtime 1679 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, emu->gpr_base + pcm->gpr_tmpcount, 0, runtime->period_size); runtime 1681 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, TANKMEMADDRREGBASE + 0x80 + pcm->etram[i], 0, (TANKMEMADDRREG_READ|TANKMEMADDRREG_ALIGN) + i * (runtime->buffer_size / pcm->channels)); runtime 1767 sound/pci/emu10k1/emupcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1770 sound/pci/emu10k1/emupcm.c runtime->hw = snd_emu10k1_fx8010_playback; runtime 1771 sound/pci/emu10k1/emupcm.c runtime->hw.channels_min = runtime->hw.channels_max = pcm->channels; runtime 1772 sound/pci/emu10k1/emupcm.c runtime->hw.period_bytes_max = (pcm->buffer_size * 2) / 2; runtime 299 sound/pci/emu10k1/memory.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 306 sound/pci/emu10k1/memory.c if (snd_BUG_ON(runtime->dma_bytes <= 0 || runtime 307 sound/pci/emu10k1/memory.c runtime->dma_bytes >= (emu->address_mode ? MAXPAGES1 : MAXPAGES0) * EMUPAGESIZE)) runtime 313 sound/pci/emu10k1/memory.c idx = runtime->period_size >= runtime->buffer_size ? runtime 316 sound/pci/emu10k1/memory.c blk = search_empty(emu, runtime->dma_bytes + idx); runtime 328 sound/pci/emu10k1/memory.c if (ofs >= runtime->dma_bytes) runtime 152 sound/pci/emu10k1/p16v.c static void snd_p16v_pcm_free_substream(struct snd_pcm_runtime *runtime) runtime 154 sound/pci/emu10k1/p16v.c struct snd_emu10k1_pcm *epcm = runtime->private_data; runtime 165 sound/pci/emu10k1/p16v.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 179 sound/pci/emu10k1/p16v.c runtime->private_data = epcm; runtime 180 sound/pci/emu10k1/p16v.c runtime->private_free = snd_p16v_pcm_free_substream; runtime 182 sound/pci/emu10k1/p16v.c runtime->hw = snd_p16v_playback_hw; runtime 197 sound/pci/emu10k1/p16v.c if ((err = snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS)) < 0) runtime 200 sound/pci/emu10k1/p16v.c runtime->sync.id32[0] = substream->pcm->card->number; runtime 201 sound/pci/emu10k1/p16v.c runtime->sync.id32[1] = 'P'; runtime 202 sound/pci/emu10k1/p16v.c runtime->sync.id32[2] = 16; runtime 203 sound/pci/emu10k1/p16v.c runtime->sync.id32[3] = 'V'; runtime 213 sound/pci/emu10k1/p16v.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 227 sound/pci/emu10k1/p16v.c runtime->private_data = epcm; runtime 228 sound/pci/emu10k1/p16v.c runtime->private_free = snd_p16v_pcm_free_substream; runtime 230 sound/pci/emu10k1/p16v.c runtime->hw = snd_p16v_capture_hw; runtime 245 sound/pci/emu10k1/p16v.c if ((err = snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS)) < 0) runtime 319 sound/pci/emu10k1/p16v.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 322 sound/pci/emu10k1/p16v.c u32 period_size_bytes = frames_to_bytes(runtime, runtime->period_size); runtime 331 sound/pci/emu10k1/p16v.c channel, runtime->rate, runtime->format, runtime->channels, runtime 332 sound/pci/emu10k1/p16v.c runtime->buffer_size, runtime->period_size, runtime 333 sound/pci/emu10k1/p16v.c runtime->periods, frames_to_bytes(runtime, 1)); runtime 336 sound/pci/emu10k1/p16v.c runtime->dma_addr, runtime->dma_area, table_base); runtime 343 sound/pci/emu10k1/p16v.c switch (runtime->rate) { runtime 359 sound/pci/emu10k1/p16v.c for(i = 0; i < runtime->periods; i++) { runtime 360 sound/pci/emu10k1/p16v.c table_base[i*2]=runtime->dma_addr+(i*period_size_bytes); runtime 365 sound/pci/emu10k1/p16v.c snd_emu10k1_ptr20_write(emu, PLAYBACK_LIST_SIZE, channel, (runtime->periods - 1) << 19); runtime 367 sound/pci/emu10k1/p16v.c snd_emu10k1_ptr20_write(emu, PLAYBACK_DMA_ADDR, channel, runtime->dma_addr); runtime 381 sound/pci/emu10k1/p16v.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 394 sound/pci/emu10k1/p16v.c switch (runtime->rate) { runtime 411 sound/pci/emu10k1/p16v.c snd_emu10k1_ptr20_write(emu, CAPTURE_DMA_ADDR, channel, runtime->dma_addr); runtime 412 sound/pci/emu10k1/p16v.c snd_emu10k1_ptr20_write(emu, CAPTURE_BUFFER_SIZE, channel, frames_to_bytes(runtime, runtime->buffer_size) << 16); // buffer size in bytes runtime 447 sound/pci/emu10k1/p16v.c struct snd_pcm_runtime *runtime; runtime 469 sound/pci/emu10k1/p16v.c runtime = s->runtime; runtime 470 sound/pci/emu10k1/p16v.c epcm = runtime->private_data; runtime 501 sound/pci/emu10k1/p16v.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 502 sound/pci/emu10k1/p16v.c struct snd_emu10k1_pcm *epcm = runtime->private_data; runtime 531 sound/pci/emu10k1/p16v.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 532 sound/pci/emu10k1/p16v.c struct snd_emu10k1_pcm *epcm = runtime->private_data; runtime 542 sound/pci/emu10k1/p16v.c ptr2 = bytes_to_frames(runtime, ptr1); runtime 543 sound/pci/emu10k1/p16v.c ptr2+= (ptr4 >> 3) * runtime->period_size; runtime 545 sound/pci/emu10k1/p16v.c if (ptr >= runtime->buffer_size) runtime 546 sound/pci/emu10k1/p16v.c ptr -= runtime->buffer_size; runtime 556 sound/pci/emu10k1/p16v.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 557 sound/pci/emu10k1/p16v.c struct snd_emu10k1_pcm *epcm = runtime->private_data; runtime 565 sound/pci/emu10k1/p16v.c ptr2 = bytes_to_frames(runtime, ptr1); runtime 567 sound/pci/emu10k1/p16v.c if (ptr >= runtime->buffer_size) { runtime 568 sound/pci/emu10k1/p16v.c ptr -= runtime->buffer_size; runtime 873 sound/pci/ens1370.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 878 sound/pci/ens1370.c if (snd_pcm_format_width(runtime->format) == 16) runtime 880 sound/pci/ens1370.c if (runtime->channels > 1) runtime 886 sound/pci/ens1370.c if (runtime->rate == 48000) runtime 893 sound/pci/ens1370.c outl(runtime->dma_addr, ES_REG(ensoniq, DAC1_FRAME)); runtime 902 sound/pci/ens1370.c switch (runtime->rate) { runtime 913 sound/pci/ens1370.c snd_es1371_dac1_rate(ensoniq, runtime->rate); runtime 921 sound/pci/ens1370.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 926 sound/pci/ens1370.c if (snd_pcm_format_width(runtime->format) == 16) runtime 928 sound/pci/ens1370.c if (runtime->channels > 1) runtime 934 sound/pci/ens1370.c outl(runtime->dma_addr, ES_REG(ensoniq, DAC2_FRAME)); runtime 946 sound/pci/ens1370.c ensoniq->ctrl |= ES_1370_PCLKDIVO(ES_1370_SRTODIV(runtime->rate)); runtime 953 sound/pci/ens1370.c snd_es1371_dac2_rate(ensoniq, runtime->rate); runtime 961 sound/pci/ens1370.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 966 sound/pci/ens1370.c if (snd_pcm_format_width(runtime->format) == 16) runtime 968 sound/pci/ens1370.c if (runtime->channels > 1) runtime 974 sound/pci/ens1370.c outl(runtime->dma_addr, ES_REG(ensoniq, ADC_FRAME)); runtime 984 sound/pci/ens1370.c ensoniq->ctrl |= ES_1370_PCLKDIVO(ES_1370_SRTODIV(runtime->rate)); runtime 991 sound/pci/ens1370.c snd_es1371_adc_rate(ensoniq, runtime->rate); runtime 1005 sound/pci/ens1370.c ptr = bytes_to_frames(substream->runtime, ptr); runtime 1022 sound/pci/ens1370.c ptr = bytes_to_frames(substream->runtime, ptr); runtime 1039 sound/pci/ens1370.c ptr = bytes_to_frames(substream->runtime, ptr); runtime 1116 sound/pci/ens1370.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1120 sound/pci/ens1370.c runtime->hw = snd_ensoniq_playback1; runtime 1127 sound/pci/ens1370.c snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, runtime 1130 sound/pci/ens1370.c snd_pcm_hw_constraint_ratdens(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, runtime 1139 sound/pci/ens1370.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1143 sound/pci/ens1370.c runtime->hw = snd_ensoniq_playback2; runtime 1150 sound/pci/ens1370.c snd_pcm_hw_constraint_ratnums(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, runtime 1153 sound/pci/ens1370.c snd_pcm_hw_constraint_ratdens(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, runtime 1162 sound/pci/ens1370.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1166 sound/pci/ens1370.c runtime->hw = snd_ensoniq_capture; runtime 1169 sound/pci/ens1370.c snd_pcm_hw_constraint_ratnums(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, runtime 1172 sound/pci/ens1370.c snd_pcm_hw_constraint_ratnums(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, runtime 450 sound/pci/es1938.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 451 sound/pci/es1938.c if (runtime->rate_num == clocks[0].num) runtime 452 sound/pci/es1938.c bits = 128 - runtime->rate_den; runtime 454 sound/pci/es1938.c bits = 256 - runtime->rate_den; runtime 457 sound/pci/es1938.c div0 = 256 - 7160000*20/(8*82*runtime->rate); runtime 611 sound/pci/es1938.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 617 sound/pci/es1938.c chip->dma1_start = runtime->dma_addr; runtime 619 sound/pci/es1938.c mono = (runtime->channels > 1) ? 0 : 1; runtime 620 sound/pci/es1938.c is8 = snd_pcm_format_width(runtime->format) == 16 ? 0 : 1; runtime 621 sound/pci/es1938.c u = snd_pcm_format_unsigned(runtime->format); runtime 659 sound/pci/es1938.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 665 sound/pci/es1938.c chip->dma2_start = runtime->dma_addr; runtime 667 sound/pci/es1938.c mono = (runtime->channels > 1) ? 0 : 1; runtime 668 sound/pci/es1938.c is8 = snd_pcm_format_width(runtime->format) == 16 ? 0 : 1; runtime 669 sound/pci/es1938.c u = snd_pcm_format_unsigned(runtime->format); runtime 696 sound/pci/es1938.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 702 sound/pci/es1938.c chip->dma1_start = runtime->dma_addr; runtime 704 sound/pci/es1938.c mono = (runtime->channels > 1) ? 0 : 1; runtime 705 sound/pci/es1938.c is8 = snd_pcm_format_width(runtime->format) == 16 ? 0 : 1; runtime 706 sound/pci/es1938.c u = snd_pcm_format_unsigned(runtime->format); runtime 830 sound/pci/es1938.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 836 sound/pci/es1938.c if (copy_to_user(dst, runtime->dma_area + pos + 1, count)) runtime 839 sound/pci/es1938.c if (copy_to_user(dst, runtime->dma_area + pos + 1, count - 1)) runtime 841 sound/pci/es1938.c if (put_user(runtime->dma_area[0], runtime 852 sound/pci/es1938.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 858 sound/pci/es1938.c memcpy(dst, runtime->dma_area + pos + 1, count); runtime 860 sound/pci/es1938.c memcpy(dst, runtime->dma_area + pos + 1, count - 1); runtime 861 sound/pci/es1938.c runtime->dma_area[0] = *((unsigned char *)dst + count - 1); runtime 933 sound/pci/es1938.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 938 sound/pci/es1938.c runtime->hw = snd_es1938_capture; runtime 939 sound/pci/es1938.c snd_pcm_hw_constraint_ratnums(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, runtime 941 sound/pci/es1938.c snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_BUFFER_BYTES, 0, 0xff00); runtime 948 sound/pci/es1938.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 963 sound/pci/es1938.c runtime->hw = snd_es1938_playback; runtime 964 sound/pci/es1938.c snd_pcm_hw_constraint_ratnums(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, runtime 966 sound/pci/es1938.c snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_BUFFER_BYTES, 0, 0xff00); runtime 874 sound/pci/es1968.c struct snd_pcm_runtime *runtime) runtime 877 sound/pci/es1968.c int freq = runtime->rate * 4; runtime 990 sound/pci/es1968.c struct snd_pcm_runtime *runtime) runtime 1073 sound/pci/es1968.c freq = runtime->rate; runtime 1138 sound/pci/es1968.c struct snd_pcm_runtime *runtime) runtime 1176 sound/pci/es1968.c freq = runtime->rate; runtime 1209 sound/pci/es1968.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1210 sound/pci/es1968.c struct esschan *es = runtime->private_data; runtime 1217 sound/pci/es1968.c if (snd_pcm_format_width(runtime->format) == 16) runtime 1219 sound/pci/es1968.c if (runtime->channels > 1) { runtime 1224 sound/pci/es1968.c es->bob_freq = snd_es1968_calc_bob_rate(chip, es, runtime); runtime 1228 sound/pci/es1968.c snd_es1968_playback_setup(chip, es, runtime); runtime 1231 sound/pci/es1968.c snd_es1968_capture_setup(chip, es, runtime); runtime 1241 sound/pci/es1968.c struct esschan *es = substream->runtime->private_data; runtime 1271 sound/pci/es1968.c struct esschan *es = substream->runtime->private_data; runtime 1276 sound/pci/es1968.c return bytes_to_frames(substream->runtime, ptr % es->dma_size); runtime 1466 sound/pci/es1968.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1467 sound/pci/es1968.c struct esschan *chan = runtime->private_data; runtime 1472 sound/pci/es1968.c runtime->dma_bytes = size; runtime 1491 sound/pci/es1968.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1494 sound/pci/es1968.c if (runtime->private_data == NULL) runtime 1496 sound/pci/es1968.c chan = runtime->private_data; runtime 1538 sound/pci/es1968.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1561 sound/pci/es1968.c runtime->private_data = es; runtime 1562 sound/pci/es1968.c runtime->hw = snd_es1968_playback; runtime 1563 sound/pci/es1968.c runtime->hw.buffer_bytes_max = runtime->hw.period_bytes_max = runtime 1575 sound/pci/es1968.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1617 sound/pci/es1968.c runtime->private_data = es; runtime 1618 sound/pci/es1968.c runtime->hw = snd_es1968_capture; runtime 1619 sound/pci/es1968.c runtime->hw.buffer_bytes_max = runtime->hw.period_bytes_max = runtime 1621 sound/pci/es1968.c snd_pcm_hw_constraint_pow2(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_BYTES); runtime 1635 sound/pci/es1968.c if (substream->runtime->private_data == NULL) runtime 1637 sound/pci/es1968.c es = substream->runtime->private_data; runtime 1652 sound/pci/es1968.c if (substream->runtime->private_data == NULL) runtime 1654 sound/pci/es1968.c es = substream->runtime->private_data; runtime 2411 sound/pci/es1968.c snd_es1968_playback_setup(chip, es, es->substream->runtime); runtime 2414 sound/pci/es1968.c snd_es1968_capture_setup(chip, es, es->substream->runtime); runtime 452 sound/pci/fm801.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 460 sound/pci/fm801.c if (snd_pcm_format_width(runtime->format) == 16) runtime 462 sound/pci/fm801.c if (runtime->channels > 1) { runtime 464 sound/pci/fm801.c if (runtime->channels == 4) runtime 466 sound/pci/fm801.c else if (runtime->channels == 6) runtime 469 sound/pci/fm801.c chip->ply_ctrl |= snd_fm801_rate_bits(runtime->rate) << FM801_RATE_SHIFT; runtime 473 sound/pci/fm801.c chip->ply_buffer = runtime->dma_addr; runtime 485 sound/pci/fm801.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 492 sound/pci/fm801.c if (snd_pcm_format_width(runtime->format) == 16) runtime 494 sound/pci/fm801.c if (runtime->channels > 1) runtime 496 sound/pci/fm801.c chip->cap_ctrl |= snd_fm801_rate_bits(runtime->rate) << FM801_RATE_SHIFT; runtime 500 sound/pci/fm801.c chip->cap_buffer = runtime->dma_addr; runtime 523 sound/pci/fm801.c return bytes_to_frames(substream->runtime, ptr); runtime 540 sound/pci/fm801.c return bytes_to_frames(substream->runtime, ptr); runtime 635 sound/pci/fm801.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 639 sound/pci/fm801.c runtime->hw = snd_fm801_playback; runtime 640 sound/pci/fm801.c snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, runtime 643 sound/pci/fm801.c runtime->hw.channels_max = 6; runtime 644 sound/pci/fm801.c snd_pcm_hw_constraint_list(runtime, 0, runtime 648 sound/pci/fm801.c if ((err = snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS)) < 0) runtime 656 sound/pci/fm801.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 660 sound/pci/fm801.c runtime->hw = snd_fm801_capture; runtime 661 sound/pci/fm801.c snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, runtime 663 sound/pci/fm801.c if ((err = snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS)) < 0) runtime 3683 sound/pci/hda/hda_codec.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 3684 sound/pci/hda/hda_codec.c runtime->hw.channels_max = mout->max_channels; runtime 3691 sound/pci/hda/hda_codec.c runtime->hw.rates = mout->analog_rates; runtime 3692 sound/pci/hda/hda_codec.c runtime->hw.formats = mout->analog_formats; runtime 3703 sound/pci/hda/hda_codec.c if ((runtime->hw.rates & mout->spdif_rates) && runtime 3704 sound/pci/hda/hda_codec.c (runtime->hw.formats & mout->spdif_formats)) { runtime 3705 sound/pci/hda/hda_codec.c runtime->hw.rates &= mout->spdif_rates; runtime 3706 sound/pci/hda/hda_codec.c runtime->hw.formats &= mout->spdif_formats; runtime 3716 sound/pci/hda/hda_codec.c return snd_pcm_hw_constraint_step(substream->runtime, 0, runtime 3739 sound/pci/hda/hda_codec.c int chs = substream->runtime->channels; runtime 74 sound/pci/hda/hda_controller.c substream->runtime->rate); runtime 156 sound/pci/hda/hda_controller.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 171 sound/pci/hda/hda_controller.c format_val = snd_hdac_calc_stream_format(runtime->rate, runtime 172 sound/pci/hda/hda_controller.c runtime->channels, runtime 173 sound/pci/hda/hda_controller.c runtime->format, runtime 179 sound/pci/hda/hda_controller.c runtime->rate, runtime->channels, runtime->format); runtime 309 sound/pci/hda/hda_controller.c if (substream->runtime) { runtime 318 sound/pci/hda/hda_controller.c substream->runtime->delay = delay; runtime 331 sound/pci/hda/hda_controller.c return bytes_to_frames(substream->runtime, runtime 374 sound/pci/hda/hda_controller.c struct snd_pcm_runtime *runtime; runtime 383 sound/pci/hda/hda_controller.c runtime = substream->runtime; runtime 459 sound/pci/hda/hda_controller.c NSEC_PER_SEC, runtime->rate)); runtime 461 sound/pci/hda/hda_controller.c ((HDA_MAX_CYCLE_VALUE + 1) * runtime->rate)); runtime 483 sound/pci/hda/hda_controller.c static inline bool is_link_time_supported(struct snd_pcm_runtime *runtime, runtime 486 sound/pci/hda/hda_controller.c if (runtime->hw.info & SNDRV_PCM_INFO_HAS_LINK_SYNCHRONIZED_ATIME) runtime 499 sound/pci/hda/hda_controller.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 504 sound/pci/hda/hda_controller.c if ((substream->runtime->hw.info & SNDRV_PCM_INFO_HAS_LINK_ATIME) && runtime 507 sound/pci/hda/hda_controller.c snd_pcm_gettime(substream->runtime, system_ts); runtime 520 sound/pci/hda/hda_controller.c } else if (is_link_time_supported(runtime, audio_tstamp_config)) { runtime 526 sound/pci/hda/hda_controller.c switch (runtime->tstamp_type) { runtime 587 sound/pci/hda/hda_controller.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 599 sound/pci/hda/hda_controller.c runtime->private_data = azx_dev; runtime 601 sound/pci/hda/hda_controller.c runtime->hw = azx_pcm_hw; runtime 603 sound/pci/hda/hda_controller.c runtime->hw.info |= SNDRV_PCM_INFO_HAS_LINK_SYNCHRONIZED_ATIME; runtime 604 sound/pci/hda/hda_controller.c runtime->hw.channels_min = hinfo->channels_min; runtime 605 sound/pci/hda/hda_controller.c runtime->hw.channels_max = hinfo->channels_max; runtime 606 sound/pci/hda/hda_controller.c runtime->hw.formats = hinfo->formats; runtime 607 sound/pci/hda/hda_controller.c runtime->hw.rates = hinfo->rates; runtime 608 sound/pci/hda/hda_controller.c snd_pcm_limit_hw_rates(runtime); runtime 609 sound/pci/hda/hda_controller.c snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS); runtime 612 sound/pci/hda/hda_controller.c snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_BUFFER_TIME, runtime 621 sound/pci/hda/hda_controller.c runtime->hw.info |= SNDRV_PCM_INFO_BATCH; runtime 638 sound/pci/hda/hda_controller.c snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_BYTES, runtime 640 sound/pci/hda/hda_controller.c snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_BYTES, runtime 651 sound/pci/hda/hda_controller.c snd_pcm_limit_hw_rates(runtime); runtime 653 sound/pci/hda/hda_controller.c if (snd_BUG_ON(!runtime->hw.channels_min) || runtime 654 sound/pci/hda/hda_controller.c snd_BUG_ON(!runtime->hw.channels_max) || runtime 655 sound/pci/hda/hda_controller.c snd_BUG_ON(!runtime->hw.formats) || runtime 656 sound/pci/hda/hda_controller.c snd_BUG_ON(!runtime->hw.rates)) { runtime 667 sound/pci/hda/hda_controller.c runtime->hw.info &= ~SNDRV_PCM_INFO_HAS_WALL_CLOCK; /* legacy */ runtime 668 sound/pci/hda/hda_controller.c runtime->hw.info &= ~SNDRV_PCM_INFO_HAS_LINK_ATIME; runtime 186 sound/pci/hda/hda_controller.h return substream->runtime->private_data; runtime 640 sound/pci/hda/hda_intel.c return bytes_to_frames(substream->runtime, delay); runtime 857 sound/pci/hda/hda_intel.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 861 sound/pci/hda/hda_intel.c if (!runtime) runtime 864 sound/pci/hda/hda_intel.c runtime->delay = AMD_FIFO_SIZE; runtime 865 sound/pci/hda/hda_intel.c delay = frames_to_bytes(runtime, AMD_FIFO_SIZE); runtime 869 sound/pci/hda/hda_intel.c runtime->delay = bytes_to_frames(runtime, pos); runtime 891 sound/pci/hda/hda_intel.c return substream->runtime->delay; runtime 3535 sound/pci/hda/patch_ca0132.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 3551 sound/pci/hda/patch_ca0132.c return (latency * runtime->rate) / 1000; runtime 3626 sound/pci/hda/patch_ca0132.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 3634 sound/pci/hda/patch_ca0132.c return (latency * runtime->rate) / 1000; runtime 1158 sound/pci/hda/patch_hdmi.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1188 sound/pci/hda/patch_hdmi.c runtime->hw.channels_min = hinfo->channels_min; runtime 1189 sound/pci/hda/patch_hdmi.c runtime->hw.channels_max = hinfo->channels_max; runtime 1190 sound/pci/hda/patch_hdmi.c runtime->hw.formats = hinfo->formats; runtime 1191 sound/pci/hda/patch_hdmi.c runtime->hw.rates = hinfo->rates; runtime 1193 sound/pci/hda/patch_hdmi.c snd_pcm_hw_constraint_step(substream->runtime, 0, runtime 1206 sound/pci/hda/patch_hdmi.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1284 sound/pci/hda/patch_hdmi.c runtime->hw.channels_min = hinfo->channels_min; runtime 1285 sound/pci/hda/patch_hdmi.c runtime->hw.channels_max = hinfo->channels_max; runtime 1286 sound/pci/hda/patch_hdmi.c runtime->hw.formats = hinfo->formats; runtime 1287 sound/pci/hda/patch_hdmi.c runtime->hw.rates = hinfo->rates; runtime 1289 sound/pci/hda/patch_hdmi.c snd_pcm_hw_constraint_step(substream->runtime, 0, runtime 1423 sound/pci/hda/patch_hdmi.c if (substream->runtime) runtime 1424 sound/pci/hda/patch_hdmi.c per_pin->channels = substream->runtime->channels; runtime 1888 sound/pci/hda/patch_hdmi.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1927 sound/pci/hda/patch_hdmi.c runtime->rate); runtime 1931 sound/pci/hda/patch_hdmi.c per_pin->channels = substream->runtime->channels; runtime 3115 sound/pci/hda/patch_hdmi.c snd_pcm_hw_constraint_list(substream->runtime, 0, runtime 3119 sound/pci/hda/patch_hdmi.c snd_pcm_hw_constraint_step(substream->runtime, 0, runtime 3274 sound/pci/hda/patch_hdmi.c chs = substream->runtime->channels; runtime 143 sound/pci/hda/patch_si3054.c SET_REG(codec, SI3054_LINE_RATE, substream->runtime->rate); runtime 164 sound/pci/hda/patch_si3054.c substream->runtime->hw.period_bytes_min = 80; runtime 165 sound/pci/hda/patch_si3054.c return snd_pcm_hw_constraint_list(substream->runtime, 0, runtime 575 sound/pci/ice1712/ice1712.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 581 sound/pci/ice1712/ice1712.c if (snd_pcm_format_width(runtime->format) == 16) runtime 583 sound/pci/ice1712/ice1712.c if (runtime->channels == 2) runtime 585 sound/pci/ice1712/ice1712.c rate = (runtime->rate * 8192) / 375; runtime 591 sound/pci/ice1712/ice1712.c outl(runtime->dma_addr, ice->ddma_port + 0); runtime 608 sound/pci/ice1712/ice1712.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 613 sound/pci/ice1712/ice1712.c if (snd_pcm_format_width(runtime->format) == 16) runtime 615 sound/pci/ice1712/ice1712.c if (runtime->channels == 2) runtime 617 sound/pci/ice1712/ice1712.c rate = (runtime->rate * 8192) / 375; runtime 621 sound/pci/ice1712/ice1712.c ice->playback_con_virt_addr[substream->number] = runtime->dma_addr; runtime 624 sound/pci/ice1712/ice1712.c snd_ice1712_ds_write(ice, chn, ICE1712_DSC_ADDR0, runtime->dma_addr); runtime 626 sound/pci/ice1712/ice1712.c snd_ice1712_ds_write(ice, chn, ICE1712_DSC_ADDR1, runtime->dma_addr + (runtime->periods > 1 ? period_size + 1 : 0)); runtime 631 sound/pci/ice1712/ice1712.c if (runtime->channels == 2) { runtime 642 sound/pci/ice1712/ice1712.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 649 sound/pci/ice1712/ice1712.c if (snd_pcm_format_width(runtime->format) == 16) runtime 651 sound/pci/ice1712/ice1712.c if (runtime->channels == 2) runtime 654 sound/pci/ice1712/ice1712.c outl(ice->capture_con_virt_addr = runtime->dma_addr, ICEREG(ice, CONCAP_ADDR)); runtime 660 sound/pci/ice1712/ice1712.c snd_ac97_set_rate(ice->ac97, AC97_PCM_LR_ADC_RATE, runtime->rate); runtime 667 sound/pci/ice1712/ice1712.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 672 sound/pci/ice1712/ice1712.c ptr = runtime->buffer_size - inw(ice->ddma_port + 4); runtime 673 sound/pci/ice1712/ice1712.c ptr = bytes_to_frames(substream->runtime, ptr); runtime 674 sound/pci/ice1712/ice1712.c if (ptr == runtime->buffer_size) runtime 693 sound/pci/ice1712/ice1712.c ptr = bytes_to_frames(substream->runtime, ptr); runtime 694 sound/pci/ice1712/ice1712.c if (ptr == substream->runtime->buffer_size) runtime 707 sound/pci/ice1712/ice1712.c ptr = bytes_to_frames(substream->runtime, ptr); runtime 708 sound/pci/ice1712/ice1712.c if (ptr == substream->runtime->buffer_size) runtime 771 sound/pci/ice1712/ice1712.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 775 sound/pci/ice1712/ice1712.c runtime->hw = snd_ice1712_playback; runtime 781 sound/pci/ice1712/ice1712.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 786 sound/pci/ice1712/ice1712.c runtime->hw = snd_ice1712_playback_ds; runtime 796 sound/pci/ice1712/ice1712.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 800 sound/pci/ice1712/ice1712.c runtime->hw = snd_ice1712_capture; runtime 801 sound/pci/ice1712/ice1712.c runtime->hw.rates = ice->ac97->rates[AC97_RATES_ADC]; runtime 802 sound/pci/ice1712/ice1712.c if (!(runtime->hw.rates & SNDRV_PCM_RATE_8000)) runtime 803 sound/pci/ice1712/ice1712.c runtime->hw.rate_min = 48000; runtime 1050 sound/pci/ice1712/ice1712.c outl(substream->runtime->dma_addr, ICEMT(ice, PLAYBACK_ADDR)); runtime 1073 sound/pci/ice1712/ice1712.c outl(substream->runtime->dma_addr, ICEMT(ice, CAPTURE_ADDR)); runtime 1097 sound/pci/ice1712/ice1712.c ptr = bytes_to_frames(substream->runtime, ptr); runtime 1098 sound/pci/ice1712/ice1712.c if (ptr == substream->runtime->buffer_size) runtime 1111 sound/pci/ice1712/ice1712.c ptr = bytes_to_frames(substream->runtime, ptr); runtime 1112 sound/pci/ice1712/ice1712.c if (ptr == substream->runtime->buffer_size) runtime 1157 sound/pci/ice1712/ice1712.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1161 sound/pci/ice1712/ice1712.c runtime->hw = snd_ice1712_playback_pro; runtime 1163 sound/pci/ice1712/ice1712.c snd_pcm_hw_constraint_msbits(runtime, 0, 32, 24); runtime 1164 sound/pci/ice1712/ice1712.c snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, &hw_constraints_rates); runtime 1166 sound/pci/ice1712/ice1712.c runtime->hw.rate_min = PRO_RATE_DEFAULT; runtime 1167 sound/pci/ice1712/ice1712.c runtime->hw.rate_max = PRO_RATE_DEFAULT; runtime 1179 sound/pci/ice1712/ice1712.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1182 sound/pci/ice1712/ice1712.c runtime->hw = snd_ice1712_capture_pro; runtime 1184 sound/pci/ice1712/ice1712.c snd_pcm_hw_constraint_msbits(runtime, 0, 32, 24); runtime 1185 sound/pci/ice1712/ice1712.c snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, &hw_constraints_rates); runtime 1187 sound/pci/ice1712/ice1712.c runtime->hw.rate_min = PRO_RATE_DEFAULT; runtime 1188 sound/pci/ice1712/ice1712.c runtime->hw.rate_max = PRO_RATE_DEFAULT; runtime 552 sound/pci/ice1712/ice1724.c reg = s->runtime->private_data; runtime 774 sound/pci/ice1712/ice1724.c val = (8 - substream->runtime->channels) >> 1; runtime 777 sound/pci/ice1712/ice1724.c outl(substream->runtime->dma_addr, ICEMT1724(ice, PLAYBACK_ADDR)); runtime 810 sound/pci/ice1712/ice1724.c if (ptr < substream->runtime->dma_addr) { runtime 814 sound/pci/ice1712/ice1724.c ptr -= substream->runtime->dma_addr; runtime 815 sound/pci/ice1712/ice1724.c ptr = bytes_to_frames(substream->runtime, ptr); runtime 816 sound/pci/ice1712/ice1724.c if (ptr >= substream->runtime->buffer_size) { runtime 818 sound/pci/ice1712/ice1724.c (int)ptr, (int)substream->runtime->period_size); runtime 824 sound/pci/ice1712/ice1724.c ptr = bytes_to_frames(substream->runtime, ptr); runtime 827 sound/pci/ice1712/ice1724.c else if (ptr <= substream->runtime->buffer_size) runtime 828 sound/pci/ice1712/ice1724.c ptr = substream->runtime->buffer_size - ptr; runtime 831 sound/pci/ice1712/ice1724.c (int)ptr, (int)substream->runtime->buffer_size); runtime 841 sound/pci/ice1712/ice1724.c const struct vt1724_pcm_reg *reg = substream->runtime->private_data; runtime 844 sound/pci/ice1712/ice1724.c outl(substream->runtime->dma_addr, ice->profi_port + reg->addr); runtime 856 sound/pci/ice1712/ice1724.c const struct vt1724_pcm_reg *reg = substream->runtime->private_data; runtime 863 sound/pci/ice1712/ice1724.c ptr -= substream->runtime->dma_addr; runtime 864 sound/pci/ice1712/ice1724.c return bytes_to_frames(substream->runtime, ptr); runtime 868 sound/pci/ice1712/ice1724.c ptr = bytes_to_frames(substream->runtime, ptr); runtime 871 sound/pci/ice1712/ice1724.c else if (ptr <= substream->runtime->buffer_size) runtime 872 sound/pci/ice1712/ice1724.c ptr = substream->runtime->buffer_size - ptr; runtime 875 sound/pci/ice1712/ice1724.c (int)ptr, (int)substream->runtime->buffer_size); runtime 993 sound/pci/ice1712/ice1724.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 995 sound/pci/ice1712/ice1724.c runtime->hw.rate_min = ice->hw_rates->list[0]; runtime 996 sound/pci/ice1712/ice1724.c runtime->hw.rate_max = ice->hw_rates->list[ice->hw_rates->count - 1]; runtime 997 sound/pci/ice1712/ice1724.c runtime->hw.rates = SNDRV_PCM_RATE_KNOT; runtime 998 sound/pci/ice1712/ice1724.c return snd_pcm_hw_constraint_list(runtime, 0, runtime 1009 sound/pci/ice1712/ice1724.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1013 sound/pci/ice1712/ice1724.c if (rate >= runtime->hw.rate_min runtime 1014 sound/pci/ice1712/ice1724.c && rate <= runtime->hw.rate_max) { runtime 1015 sound/pci/ice1712/ice1724.c runtime->hw.rate_min = rate; runtime 1016 sound/pci/ice1712/ice1724.c runtime->hw.rate_max = rate; runtime 1029 sound/pci/ice1712/ice1724.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1033 sound/pci/ice1712/ice1724.c runtime->private_data = (void *)&vt1724_playback_pro_reg; runtime 1035 sound/pci/ice1712/ice1724.c runtime->hw = snd_vt1724_playback_pro; runtime 1037 sound/pci/ice1712/ice1724.c snd_pcm_hw_constraint_msbits(runtime, 0, 32, 24); runtime 1047 sound/pci/ice1712/ice1724.c runtime->hw.channels_max = chs; runtime 1049 sound/pci/ice1712/ice1724.c snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, 2); runtime 1051 sound/pci/ice1712/ice1724.c snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_BYTES, runtime 1053 sound/pci/ice1712/ice1724.c snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_BYTES, runtime 1064 sound/pci/ice1712/ice1724.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1066 sound/pci/ice1712/ice1724.c runtime->private_data = (void *)&vt1724_capture_pro_reg; runtime 1068 sound/pci/ice1712/ice1724.c runtime->hw = snd_vt1724_2ch_stereo; runtime 1070 sound/pci/ice1712/ice1724.c snd_pcm_hw_constraint_msbits(runtime, 0, 32, 24); runtime 1072 sound/pci/ice1712/ice1724.c snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_BYTES, runtime 1074 sound/pci/ice1712/ice1724.c snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_BYTES, runtime 1204 sound/pci/ice1712/ice1724.c update_spdif_rate(ice, substream->runtime->rate); runtime 1211 sound/pci/ice1712/ice1724.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1213 sound/pci/ice1712/ice1724.c runtime->private_data = (void *)&vt1724_playback_spdif_reg; runtime 1216 sound/pci/ice1712/ice1724.c runtime->hw = snd_vt1724_2ch_stereo; runtime 1219 sound/pci/ice1712/ice1724.c runtime->hw = snd_vt1724_spdif; runtime 1221 sound/pci/ice1712/ice1724.c snd_pcm_hw_constraint_msbits(runtime, 0, 32, 24); runtime 1222 sound/pci/ice1712/ice1724.c snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_BYTES, runtime 1224 sound/pci/ice1712/ice1724.c snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_BYTES, runtime 1248 sound/pci/ice1712/ice1724.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1250 sound/pci/ice1712/ice1724.c runtime->private_data = (void *)&vt1724_capture_spdif_reg; runtime 1253 sound/pci/ice1712/ice1724.c runtime->hw = snd_vt1724_2ch_stereo; runtime 1256 sound/pci/ice1712/ice1724.c runtime->hw = snd_vt1724_spdif; runtime 1258 sound/pci/ice1712/ice1724.c snd_pcm_hw_constraint_msbits(runtime, 0, 32, 24); runtime 1259 sound/pci/ice1712/ice1724.c snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_BYTES, runtime 1261 sound/pci/ice1712/ice1724.c snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_BYTES, runtime 1397 sound/pci/ice1712/ice1724.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1406 sound/pci/ice1712/ice1724.c runtime->private_data = (void *)&vt1724_playback_dma_regs[substream->number]; runtime 1408 sound/pci/ice1712/ice1724.c runtime->hw = snd_vt1724_2ch_stereo; runtime 1410 sound/pci/ice1712/ice1724.c snd_pcm_hw_constraint_msbits(runtime, 0, 32, 24); runtime 170 sound/pci/ice1712/juli.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 177 sound/pci/ice1712/juli.c if (rate >= runtime->hw.rate_min && rate <= runtime->hw.rate_max) { runtime 178 sound/pci/ice1712/juli.c runtime->hw.rate_min = rate; runtime 179 sound/pci/ice1712/juli.c runtime->hw.rate_max = rate; runtime 951 sound/pci/ice1712/quartet.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 959 sound/pci/ice1712/quartet.c if (rate >= runtime->hw.rate_min && rate <= runtime->hw.rate_max) { runtime 960 sound/pci/ice1712/quartet.c runtime->hw.rate_min = rate; runtime 961 sound/pci/ice1712/quartet.c runtime->hw.rate_max = rate; runtime 329 sound/pci/intel8x0.c #define get_ichdev(substream) (substream->runtime->private_data) runtime 936 sound/pci/intel8x0.c struct snd_pcm_runtime *runtime) runtime 939 sound/pci/intel8x0.c int dbl = runtime->rate > 48000; runtime 946 sound/pci/intel8x0.c if (runtime->channels == 4 || dbl) runtime 948 sound/pci/intel8x0.c else if (runtime->channels == 6) runtime 955 sound/pci/intel8x0.c if (runtime->channels == 4 || dbl) runtime 957 sound/pci/intel8x0.c else if (runtime->channels == 6) runtime 964 sound/pci/intel8x0.c if (runtime->channels == 4 || dbl) runtime 966 sound/pci/intel8x0.c else if (runtime->channels == 6) runtime 968 sound/pci/intel8x0.c else if (runtime->channels == 8) runtime 981 sound/pci/intel8x0.c if (runtime->sample_bits > 16) runtime 993 sound/pci/intel8x0.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 996 sound/pci/intel8x0.c ichdev->physbuf = runtime->dma_addr; runtime 1000 sound/pci/intel8x0.c snd_intel8x0_setup_pcm_out(chip, runtime); runtime 1002 sound/pci/intel8x0.c ichdev->pos_shift = (runtime->sample_bits > 16) ? 2 : 1; runtime 1059 sound/pci/intel8x0.c return bytes_to_frames(substream->runtime, ptr); runtime 1116 sound/pci/intel8x0.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1120 sound/pci/intel8x0.c runtime->hw = snd_intel8x0_stream; runtime 1121 sound/pci/intel8x0.c runtime->hw.rates = ichdev->pcm->rates; runtime 1122 sound/pci/intel8x0.c snd_pcm_limit_hw_rates(runtime); runtime 1124 sound/pci/intel8x0.c runtime->hw.buffer_bytes_max = 64*1024; runtime 1125 sound/pci/intel8x0.c runtime->hw.period_bytes_max = 64*1024; runtime 1127 sound/pci/intel8x0.c if ((err = snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS)) < 0) runtime 1129 sound/pci/intel8x0.c runtime->private_data = ichdev; runtime 1136 sound/pci/intel8x0.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1144 sound/pci/intel8x0.c runtime->hw.channels_max = 8; runtime 1145 sound/pci/intel8x0.c snd_pcm_hw_constraint_list(runtime, 0, runtime 1149 sound/pci/intel8x0.c runtime->hw.channels_max = 6; runtime 1150 sound/pci/intel8x0.c snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, runtime 1153 sound/pci/intel8x0.c runtime->hw.channels_max = 4; runtime 1154 sound/pci/intel8x0.c snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, runtime 1158 sound/pci/intel8x0.c snd_ac97_pcm_double_rate_rules(runtime); runtime 1161 sound/pci/intel8x0.c runtime->hw.formats |= SNDRV_PCM_FMTBIT_S32_LE; runtime 1162 sound/pci/intel8x0.c snd_pcm_hw_constraint_msbits(runtime, 0, 32, 20); runtime 2652 sound/pci/intel8x0.c snd_intel8x0_setup_pcm_out(chip, ichdev->substream->runtime); runtime 151 sound/pci/intel8x0m.c #define get_ichdev(substream) (substream->runtime->private_data) runtime 581 sound/pci/intel8x0m.c return bytes_to_frames(substream->runtime, ptr); runtime 587 sound/pci/intel8x0m.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 590 sound/pci/intel8x0m.c ichdev->physbuf = runtime->dma_addr; runtime 593 sound/pci/intel8x0m.c snd_ac97_write(ichdev->ac97, AC97_LINE1_RATE, runtime->rate); runtime 629 sound/pci/intel8x0m.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 633 sound/pci/intel8x0m.c runtime->hw = snd_intel8x0m_stream; runtime 634 sound/pci/intel8x0m.c err = snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, runtime 638 sound/pci/intel8x0m.c runtime->private_data = ichdev; runtime 1292 sound/pci/korg1212/korg1212.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1297 sound/pci/korg1212/korg1212.c pos = bytes_to_frames(runtime, pos); runtime 1298 sound/pci/korg1212/korg1212.c count = bytes_to_frames(runtime, count); runtime 1329 sound/pci/korg1212/korg1212.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1334 sound/pci/korg1212/korg1212.c pos = bytes_to_frames(runtime, pos); runtime 1335 sound/pci/korg1212/korg1212.c count = bytes_to_frames(runtime, count); runtime 1378 sound/pci/korg1212/korg1212.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1385 sound/pci/korg1212/korg1212.c runtime->hw = snd_korg1212_playback_info; runtime 1398 sound/pci/korg1212/korg1212.c snd_pcm_hw_constraint_single(runtime, SNDRV_PCM_HW_PARAM_PERIOD_SIZE, runtime 1409 sound/pci/korg1212/korg1212.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1416 sound/pci/korg1212/korg1212.c runtime->hw = snd_korg1212_capture_info; runtime 1428 sound/pci/korg1212/korg1212.c snd_pcm_hw_constraint_single(runtime, SNDRV_PCM_HW_PARAM_PERIOD_SIZE, runtime 1663 sound/pci/korg1212/korg1212.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1666 sound/pci/korg1212/korg1212.c return snd_korg1212_silence(korg1212, bytes_to_frames(runtime, pos), runtime 1667 sound/pci/korg1212/korg1212.c bytes_to_frames(runtime, count), runtime 215 sound/pci/lola/lola_pcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 225 sound/pci/lola/lola_pcm.c runtime->hw = lola_pcm_hw; runtime 226 sound/pci/lola/lola_pcm.c runtime->hw.channels_max = pcm->num_streams - str->index; runtime 229 sound/pci/lola/lola_pcm.c runtime->hw.rate_min = chip->sample_rate; runtime 230 sound/pci/lola/lola_pcm.c runtime->hw.rate_max = chip->sample_rate; runtime 232 sound/pci/lola/lola_pcm.c runtime->hw.rate_min = chip->sample_rate_min; runtime 233 sound/pci/lola/lola_pcm.c runtime->hw.rate_max = chip->sample_rate_max; runtime 236 sound/pci/lola/lola_pcm.c snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS); runtime 238 sound/pci/lola/lola_pcm.c snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_SIZE, runtime 240 sound/pci/lola/lola_pcm.c snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_SIZE, runtime 372 sound/pci/lola/lola_pcm.c switch (substream->runtime->format) { runtime 388 sound/pci/lola/lola_pcm.c verb |= substream->runtime->channels; runtime 457 sound/pci/lola/lola_pcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 464 sound/pci/lola/lola_pcm.c if (str->index + runtime->channels > pcm->num_streams) { runtime 468 sound/pci/lola/lola_pcm.c for (i = 1; i < runtime->channels; i++) { runtime 486 sound/pci/lola/lola_pcm.c err = lola_set_sample_rate(chip, runtime->rate); runtime 489 sound/pci/lola/lola_pcm.c chip->sample_rate = runtime->rate; /* sample rate gets locked */ runtime 491 sound/pci/lola/lola_pcm.c err = lola_set_stream_config(chip, str, runtime->channels); runtime 559 sound/pci/lola/lola_pcm.c return bytes_to_frames(substream->runtime, pos); runtime 101 sound/pci/lx6464es/lx6464es.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 102 sound/pci/lx6464es/lx6464es.c int channels = runtime->channels; runtime 105 sound/pci/lx6464es/lx6464es.c snd_pcm_uframes_t period_size = runtime->period_size; runtime 128 sound/pci/lx6464es/lx6464es.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 132 sound/pci/lx6464es/lx6464es.c err = lx_stream_set_format(chip, runtime, 0, is_capture); runtime 207 sound/pci/lx6464es/lx6464es.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 215 sound/pci/lx6464es/lx6464es.c runtime->hw = lx_caps; runtime 219 sound/pci/lx6464es/lx6464es.c err = snd_pcm_hw_constraint_integer(runtime, runtime 229 sound/pci/lx6464es/lx6464es.c err = snd_pcm_hw_constraint_single(runtime, SNDRV_PCM_HW_PARAM_RATE, runtime 238 sound/pci/lx6464es/lx6464es.c err = snd_pcm_hw_constraint_minmax(runtime, runtime 248 sound/pci/lx6464es/lx6464es.c snd_pcm_hw_constraint_step(runtime, 0, runtime 255 sound/pci/lx6464es/lx6464es.c runtime->private_data = chip; runtime 281 sound/pci/lx6464es/lx6464es.c pos = lx_stream->frame_pos * substream->runtime->period_size; runtime 331 sound/pci/lx6464es/lx6464es.c if (chip->board_sample_rate != substream->runtime->rate) { runtime 333 sound/pci/lx6464es/lx6464es.c chip->board_sample_rate = substream->runtime->rate; runtime 422 sound/pci/lx6464es/lx6464es.c const u32 channels = substream->runtime->channels; runtime 424 sound/pci/lx6464es/lx6464es.c const u32 period_size = substream->runtime->period_size; runtime 425 sound/pci/lx6464es/lx6464es.c const u32 periods = substream->runtime->periods; runtime 670 sound/pci/lx6464es/lx_core.c int lx_stream_set_format(struct lx6464es *chip, struct snd_pcm_runtime *runtime, runtime 675 sound/pci/lx6464es/lx_core.c u32 channels = runtime->channels; runtime 677 sound/pci/lx6464es/lx_core.c if (runtime->channels != channels) runtime 679 sound/pci/lx6464es/lx_core.c runtime->channels, channels); runtime 686 sound/pci/lx6464es/lx_core.c if (runtime->sample_bits == 16) runtime 690 sound/pci/lx6464es/lx_core.c if (snd_pcm_format_little_endian(runtime->format)) runtime 1023 sound/pci/lx6464es/lx_core.c const u32 channels = substream->runtime->channels; runtime 1025 sound/pci/lx6464es/lx_core.c const u32 period_size = substream->runtime->period_size; runtime 1028 sound/pci/lx6464es/lx_core.c const u32 next_pos = ((pos+1) == substream->runtime->periods) ? runtime 119 sound/pci/lx6464es/lx_core.h int lx_stream_set_format(struct lx6464es *chip, struct snd_pcm_runtime *runtime, runtime 1100 sound/pci/maestro3.c struct m3_dma *s = subs->runtime->private_data; runtime 1138 sound/pci/maestro3.c struct snd_pcm_runtime *runtime = subs->runtime; runtime 1150 sound/pci/maestro3.c s->dma_size = frames_to_bytes(runtime, runtime->buffer_size); runtime 1151 sound/pci/maestro3.c s->period_size = frames_to_bytes(runtime, runtime->period_size); runtime 1221 sound/pci/maestro3.c struct snd_pcm_runtime *runtime) runtime 1241 sound/pci/maestro3.c runtime->channels == 2 ? 0 : 1); runtime 1245 sound/pci/maestro3.c snd_pcm_format_width(runtime->format) == 16 ? 0 : 1); runtime 1248 sound/pci/maestro3.c freq = ((runtime->rate << 15) + 24000 ) / 48000; runtime 1307 sound/pci/maestro3.c subs->runtime->rate > 45000 ? 0xff : 0); runtime 1383 sound/pci/maestro3.c struct m3_dma *s = substream->runtime->private_data; runtime 1389 sound/pci/maestro3.c s->buffer_addr = substream->runtime->dma_addr; runtime 1401 sound/pci/maestro3.c if (substream->runtime->private_data == NULL) runtime 1403 sound/pci/maestro3.c s = substream->runtime->private_data; runtime 1413 sound/pci/maestro3.c struct snd_pcm_runtime *runtime = subs->runtime; runtime 1414 sound/pci/maestro3.c struct m3_dma *s = runtime->private_data; runtime 1419 sound/pci/maestro3.c if (runtime->format != SNDRV_PCM_FORMAT_U8 && runtime 1420 sound/pci/maestro3.c runtime->format != SNDRV_PCM_FORMAT_S16_LE) runtime 1422 sound/pci/maestro3.c if (runtime->rate > 48000 || runtime 1423 sound/pci/maestro3.c runtime->rate < 8000) runtime 1435 sound/pci/maestro3.c snd_m3_pcm_setup2(chip, s, runtime); runtime 1475 sound/pci/maestro3.c struct m3_dma *s = subs->runtime->private_data; runtime 1483 sound/pci/maestro3.c return bytes_to_frames(subs->runtime, ptr); runtime 1734 sound/pci/maestro3.c subs->runtime->private_data = s; runtime 1751 sound/pci/maestro3.c struct m3_dma *s = subs->runtime->private_data; runtime 1774 sound/pci/maestro3.c struct snd_pcm_runtime *runtime = subs->runtime; runtime 1780 sound/pci/maestro3.c runtime->hw = snd_m3_playback; runtime 1798 sound/pci/maestro3.c struct snd_pcm_runtime *runtime = subs->runtime; runtime 1804 sound/pci/maestro3.c runtime->hw = snd_m3_capture; runtime 419 sound/pci/mixart/mixart.c struct mixart_stream *stream = subs->runtime->private_data; runtime 481 sound/pci/mixart/mixart.c struct mixart_stream *stream = subs->runtime->private_data; runtime 492 sound/pci/mixart/mixart.c chip->mgr->sample_rate = subs->runtime->rate; runtime 496 sound/pci/mixart/mixart.c if( mixart_set_clock(chip->mgr, stream->pipe, subs->runtime->rate) ) runtime 596 sound/pci/mixart/mixart.c struct mixart_stream *stream = subs->runtime->private_data; runtime 638 sound/pci/mixart/mixart.c bufferinfo[i].buffer_address = subs->runtime->dma_addr; runtime 639 sound/pci/mixart/mixart.c bufferinfo[i].available_length = subs->runtime->dma_bytes; runtime 713 sound/pci/mixart/mixart.c struct snd_pcm_runtime *runtime = subs->runtime; runtime 724 sound/pci/mixart/mixart.c runtime->hw = snd_mixart_analog_caps; runtime 728 sound/pci/mixart/mixart.c runtime->hw = snd_mixart_digital_caps; runtime 769 sound/pci/mixart/mixart.c runtime->private_data = stream; runtime 771 sound/pci/mixart/mixart.c snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_BYTES, 32); runtime 772 sound/pci/mixart/mixart.c snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_SIZE, 64); runtime 777 sound/pci/mixart/mixart.c runtime->hw.rate_min = runtime->hw.rate_max = mgr->sample_rate; runtime 792 sound/pci/mixart/mixart.c struct snd_pcm_runtime *runtime = subs->runtime; runtime 803 sound/pci/mixart/mixart.c runtime->hw = snd_mixart_analog_caps; runtime 807 sound/pci/mixart/mixart.c runtime->hw = snd_mixart_digital_caps; runtime 810 sound/pci/mixart/mixart.c runtime->hw.channels_min = 2; /* for instance, no mono */ runtime 850 sound/pci/mixart/mixart.c runtime->private_data = stream; runtime 852 sound/pci/mixart/mixart.c snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_BYTES, 32); runtime 853 sound/pci/mixart/mixart.c snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_SIZE, 64); runtime 858 sound/pci/mixart/mixart.c runtime->hw.rate_min = runtime->hw.rate_max = mgr->sample_rate; runtime 874 sound/pci/mixart/mixart.c struct mixart_stream *stream = subs->runtime->private_data; runtime 905 sound/pci/mixart/mixart.c struct snd_pcm_runtime *runtime = subs->runtime; runtime 906 sound/pci/mixart/mixart.c struct mixart_stream *stream = runtime->private_data; runtime 908 sound/pci/mixart/mixart.c return (snd_pcm_uframes_t)((stream->buf_periods * runtime->period_size) + stream->buf_period_frag); runtime 472 sound/pci/mixart/mixart_core.c struct snd_pcm_runtime *runtime = stream->substream->runtime; runtime 478 sound/pci/mixart/mixart_core.c u64 new_elapse_pos = stream->abs_period_elapsed + runtime->period_size; runtime 486 sound/pci/mixart/mixart_core.c if (stream->buf_periods >= runtime->periods) runtime 418 sound/pci/nm256/nm256.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 419 sound/pci/nm256/nm256.c int rate_index = snd_nm256_fixed_rate(runtime->rate); runtime 423 sound/pci/nm256/nm256.c if (snd_pcm_format_width(runtime->format) == 16) { runtime 427 sound/pci/nm256/nm256.c if (runtime->channels > 1) { runtime 432 sound/pci/nm256/nm256.c runtime->rate = samplerates[rate_index]; runtime 551 sound/pci/nm256/nm256.c struct nm256_stream *s = substream->runtime->private_data; runtime 589 sound/pci/nm256/nm256.c struct nm256_stream *s = substream->runtime->private_data; runtime 626 sound/pci/nm256/nm256.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 627 sound/pci/nm256/nm256.c struct nm256_stream *s = runtime->private_data; runtime 631 sound/pci/nm256/nm256.c s->dma_size = frames_to_bytes(runtime, substream->runtime->buffer_size); runtime 632 sound/pci/nm256/nm256.c s->period_size = frames_to_bytes(runtime, substream->runtime->period_size); runtime 633 sound/pci/nm256/nm256.c s->periods = substream->runtime->periods; runtime 652 sound/pci/nm256/nm256.c struct nm256_stream *s = substream->runtime->private_data; runtime 659 sound/pci/nm256/nm256.c return bytes_to_frames(substream->runtime, curp); runtime 666 sound/pci/nm256/nm256.c struct nm256_stream *s = substream->runtime->private_data; runtime 673 sound/pci/nm256/nm256.c return bytes_to_frames(substream->runtime, curp); runtime 686 sound/pci/nm256/nm256.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 687 sound/pci/nm256/nm256.c struct nm256_stream *s = runtime->private_data; runtime 698 sound/pci/nm256/nm256.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 699 sound/pci/nm256/nm256.c struct nm256_stream *s = runtime->private_data; runtime 711 sound/pci/nm256/nm256.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 712 sound/pci/nm256/nm256.c struct nm256_stream *s = runtime->private_data; runtime 726 sound/pci/nm256/nm256.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 727 sound/pci/nm256/nm256.c struct nm256_stream *s = runtime->private_data; runtime 739 sound/pci/nm256/nm256.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 740 sound/pci/nm256/nm256.c struct nm256_stream *s = runtime->private_data; runtime 830 sound/pci/nm256/nm256.c substream->runtime->dma_bytes = params_buffer_bytes(hw_params); runtime 841 sound/pci/nm256/nm256.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 844 sound/pci/nm256/nm256.c runtime->hw = *hw_ptr; runtime 845 sound/pci/nm256/nm256.c runtime->hw.buffer_bytes_max = s->bufsize; runtime 846 sound/pci/nm256/nm256.c runtime->hw.period_bytes_max = s->bufsize / 2; runtime 847 sound/pci/nm256/nm256.c runtime->dma_area = (void __force *) s->bufptr; runtime 848 sound/pci/nm256/nm256.c runtime->dma_addr = s->bufptr_addr; runtime 849 sound/pci/nm256/nm256.c runtime->dma_bytes = s->bufsize; runtime 850 sound/pci/nm256/nm256.c runtime->private_data = s; runtime 853 sound/pci/nm256/nm256.c snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, runtime 117 sound/pci/oxygen/oxygen_pcm.c return (unsigned int)(uintptr_t)substream->runtime->private_data; runtime 124 sound/pci/oxygen/oxygen_pcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 127 sound/pci/oxygen/oxygen_pcm.c runtime->private_data = (void *)(uintptr_t)channel; runtime 130 sound/pci/oxygen/oxygen_pcm.c runtime->hw = oxygen_ac97_hardware; runtime 132 sound/pci/oxygen/oxygen_pcm.c runtime->hw = *oxygen_hardware[channel]; runtime 136 sound/pci/oxygen/oxygen_pcm.c runtime->hw.rates &= ~(SNDRV_PCM_RATE_32000 | runtime 138 sound/pci/oxygen/oxygen_pcm.c runtime->hw.rate_min = 44100; runtime 143 sound/pci/oxygen/oxygen_pcm.c runtime->hw.fifo_size = 0; runtime 146 sound/pci/oxygen/oxygen_pcm.c runtime->hw.channels_max = chip->model.dac_channels_pcm; runtime 150 sound/pci/oxygen/oxygen_pcm.c chip->model.pcm_hardware_filter(channel, &runtime->hw); runtime 151 sound/pci/oxygen/oxygen_pcm.c err = snd_pcm_hw_constraint_step(runtime, 0, runtime 155 sound/pci/oxygen/oxygen_pcm.c err = snd_pcm_hw_constraint_step(runtime, 0, runtime 159 sound/pci/oxygen/oxygen_pcm.c if (runtime->hw.formats & SNDRV_PCM_FMTBIT_S32_LE) { runtime 160 sound/pci/oxygen/oxygen_pcm.c err = snd_pcm_hw_constraint_msbits(runtime, 0, 32, 24); runtime 164 sound/pci/oxygen/oxygen_pcm.c if (runtime->hw.channels_max > 2) { runtime 165 sound/pci/oxygen/oxygen_pcm.c err = snd_pcm_hw_constraint_step(runtime, 0, runtime 315 sound/pci/oxygen/oxygen_pcm.c (u32)substream->runtime->dma_addr); runtime 556 sound/pci/oxygen/oxygen_pcm.c if (substream->runtime->no_period_wakeup) runtime 613 sound/pci/oxygen/oxygen_pcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 619 sound/pci/oxygen/oxygen_pcm.c return bytes_to_frames(runtime, curr_addr - (u32)runtime->dma_addr); runtime 636 sound/pci/pcxhr/pcxhr.c chip->chip_idx, (void *)(long)subs->runtime->dma_addr, runtime 637 sound/pci/pcxhr/pcxhr.c subs->runtime->dma_bytes, subs->number); runtime 644 sound/pci/pcxhr/pcxhr.c snd_BUG_ON(subs->runtime->dma_bytes >= 0x200000); runtime 646 sound/pci/pcxhr/pcxhr.c rmh.cmd[1] = subs->runtime->dma_bytes * 8; runtime 648 sound/pci/pcxhr/pcxhr.c rmh.cmd[2] = subs->runtime->dma_addr >> 24; runtime 652 sound/pci/pcxhr/pcxhr.c rmh.cmd[3] = subs->runtime->dma_addr & MASK_DSP_WORD; runtime 838 sound/pci/pcxhr/pcxhr.c stream = s->runtime->private_data; runtime 845 sound/pci/pcxhr/pcxhr.c stream = subs->runtime->private_data; runtime 863 sound/pci/pcxhr/pcxhr.c stream = s->runtime->private_data; runtime 909 sound/pci/pcxhr/pcxhr.c subs->runtime->period_size, subs->runtime->periods, runtime 910 sound/pci/pcxhr/pcxhr.c subs->runtime->buffer_size); runtime 917 sound/pci/pcxhr/pcxhr.c if (mgr->sample_rate != subs->runtime->rate) { runtime 918 sound/pci/pcxhr/pcxhr.c err = pcxhr_set_clock(mgr, subs->runtime->rate); runtime 924 sound/pci/pcxhr/pcxhr.c mgr->sample_rate = subs->runtime->rate; runtime 942 sound/pci/pcxhr/pcxhr.c struct pcxhr_stream *stream = subs->runtime->private_data; runtime 1007 sound/pci/pcxhr/pcxhr.c struct snd_pcm_runtime *runtime = subs->runtime; runtime 1014 sound/pci/pcxhr/pcxhr.c runtime->hw = pcxhr_caps; runtime 1024 sound/pci/pcxhr/pcxhr.c runtime->hw.channels_max = 1; runtime 1026 sound/pci/pcxhr/pcxhr.c runtime->hw.channels_min = 2; runtime 1039 sound/pci/pcxhr/pcxhr.c runtime->hw.formats &= ~SNDRV_PCM_FMTBIT_FLOAT_LE; runtime 1042 sound/pci/pcxhr/pcxhr.c err = snd_pcm_hw_constraint_integer(runtime, runtime 1053 sound/pci/pcxhr/pcxhr.c runtime->hw.rate_min = runtime->hw.rate_max = mgr->sample_rate; runtime 1064 sound/pci/pcxhr/pcxhr.c runtime->hw.rate_min = external_rate; runtime 1065 sound/pci/pcxhr/pcxhr.c runtime->hw.rate_max = external_rate; runtime 1073 sound/pci/pcxhr/pcxhr.c runtime->private_data = stream; runtime 1076 sound/pci/pcxhr/pcxhr.c snd_pcm_hw_constraint_step(runtime, 0, runtime 1078 sound/pci/pcxhr/pcxhr.c snd_pcm_hw_constraint_step(runtime, 0, runtime 1093 sound/pci/pcxhr/pcxhr.c struct pcxhr_stream *stream = subs->runtime->private_data; runtime 1120 sound/pci/pcxhr/pcxhr.c struct snd_pcm_runtime *runtime = subs->runtime; runtime 1121 sound/pci/pcxhr/pcxhr.c struct pcxhr_stream *stream = runtime->private_data; runtime 1131 sound/pci/pcxhr/pcxhr.c return (snd_pcm_uframes_t)((timer_buf_periods * runtime->period_size) + runtime 1156 sound/pci/pcxhr/pcxhr_core.c struct snd_pcm_runtime *runtime = stream->substream->runtime; runtime 1167 sound/pci/pcxhr/pcxhr_core.c runtime->period_size)) { runtime 1190 sound/pci/pcxhr/pcxhr_core.c runtime->period_size; runtime 1195 sound/pci/pcxhr/pcxhr_core.c if (stream->timer_buf_periods >= runtime->periods) runtime 412 sound/pci/riptide/riptide.c #define get_pcmhwdev(substream) (struct pcmhw *)(substream->runtime->private_data) runtime 1078 sound/pci/riptide/riptide.c struct snd_pcm_runtime *runtime; runtime 1093 sound/pci/riptide/riptide.c (runtime = substream[i]->runtime) && runtime 1094 sound/pci/riptide/riptide.c (data = runtime->private_data) && data->state != ST_STOP) { runtime 1118 sound/pci/riptide/riptide.c frames_to_bytes(runtime, runtime 1119 sound/pci/riptide/riptide.c runtime->period_size); runtime 1123 sound/pci/riptide/riptide.c bytes_to_frames(runtime, pos), runtime 1124 sound/pci/riptide/riptide.c runtime->period_size); runtime 1346 sound/pci/riptide/riptide.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1353 sound/pci/riptide/riptide.c if (data->size && runtime->period_size) { runtime 1357 sound/pci/riptide/riptide.c bytes_to_frames(runtime, rptr.retlongs[1]), runtime 1358 sound/pci/riptide/riptide.c bytes_to_frames(runtime, runtime 1359 sound/pci/riptide/riptide.c rptr.retlongs[1]) % runtime->period_size); runtime 1362 sound/pci/riptide/riptide.c bytes_to_frames(runtime, runtime 1366 sound/pci/riptide/riptide.c bytes_to_frames(runtime, runtime 1370 sound/pci/riptide/riptide.c data->size, runtime->period_size); runtime 1371 sound/pci/riptide/riptide.c ret = bytes_to_frames(runtime, 0); runtime 1441 sound/pci/riptide/riptide.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1453 sound/pci/riptide/riptide.c runtime->channels, runtime->format, runtime->rate); runtime 1456 sound/pci/riptide/riptide.c channels = runtime->channels; runtime 1457 sound/pci/riptide/riptide.c format = runtime->format; runtime 1458 sound/pci/riptide/riptide.c rate = runtime->rate; runtime 1479 sound/pci/riptide/riptide.c size = frames_to_bytes(runtime, runtime->buffer_size); runtime 1480 sound/pci/riptide/riptide.c period = frames_to_bytes(runtime, runtime->period_size); runtime 1590 sound/pci/riptide/riptide.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1595 sound/pci/riptide/riptide.c runtime->hw = snd_riptide_playback; runtime 1606 sound/pci/riptide/riptide.c runtime->private_data = data; runtime 1607 sound/pci/riptide/riptide.c return snd_pcm_hw_constraint_integer(runtime, runtime 1614 sound/pci/riptide/riptide.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1618 sound/pci/riptide/riptide.c runtime->hw = snd_riptide_capture; runtime 1629 sound/pci/riptide/riptide.c runtime->private_data = data; runtime 1630 sound/pci/riptide/riptide.c return snd_pcm_hw_constraint_integer(runtime, runtime 1640 sound/pci/riptide/riptide.c substream->runtime->private_data = NULL; runtime 1651 sound/pci/riptide/riptide.c substream->runtime->private_data = NULL; runtime 1930 sound/pci/riptide/riptide.c && chip->playback_substream[i]->runtime runtime 1932 sound/pci/riptide/riptide.c chip->playback_substream[i]->runtime->private_data)) { runtime 1942 sound/pci/riptide/riptide.c && chip->capture_substream->runtime runtime 1943 sound/pci/riptide/riptide.c && (data = chip->capture_substream->runtime->private_data)) { runtime 663 sound/pci/rme32.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 670 sound/pci/rme32.c runtime->dma_area = (void __force *)(rme32->iobase + runtime 672 sound/pci/rme32.c runtime->dma_addr = rme32->port + RME32_IO_DATA_BUFFER; runtime 673 sound/pci/rme32.c runtime->dma_bytes = RME32_BUFFER_SIZE; runtime 718 sound/pci/rme32.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 725 sound/pci/rme32.c runtime->dma_area = (void __force *)rme32->iobase + runtime 727 sound/pci/rme32.c runtime->dma_addr = rme32->port + RME32_IO_DATA_BUFFER; runtime 728 sound/pci/rme32.c runtime->dma_bytes = RME32_BUFFER_SIZE; runtime 749 sound/pci/rme32.c if ((isadat && runtime->hw.channels_min == 2) || runtime 750 sound/pci/rme32.c (!isadat && runtime->hw.channels_min == 8)) { runtime 837 sound/pci/rme32.c static void snd_rme32_set_buffer_constraint(struct rme32 *rme32, struct snd_pcm_runtime *runtime) runtime 840 sound/pci/rme32.c snd_pcm_hw_constraint_single(runtime, runtime 843 sound/pci/rme32.c snd_pcm_hw_constraint_list(runtime, 0, runtime 853 sound/pci/rme32.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 868 sound/pci/rme32.c runtime->hw = snd_rme32_spdif_fd_info; runtime 870 sound/pci/rme32.c runtime->hw = snd_rme32_spdif_info; runtime 872 sound/pci/rme32.c runtime->hw.rates |= SNDRV_PCM_RATE_64000 | SNDRV_PCM_RATE_88200 | SNDRV_PCM_RATE_96000; runtime 873 sound/pci/rme32.c runtime->hw.rate_max = 96000; runtime 878 sound/pci/rme32.c runtime->hw.rates = snd_pcm_rate_to_rate_bit(rate); runtime 879 sound/pci/rme32.c runtime->hw.rate_min = rate; runtime 880 sound/pci/rme32.c runtime->hw.rate_max = rate; runtime 883 sound/pci/rme32.c snd_rme32_set_buffer_constraint(rme32, runtime); runtime 896 sound/pci/rme32.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 909 sound/pci/rme32.c runtime->hw = snd_rme32_spdif_fd_info; runtime 911 sound/pci/rme32.c runtime->hw = snd_rme32_spdif_info; runtime 913 sound/pci/rme32.c runtime->hw.rates |= SNDRV_PCM_RATE_88200 | SNDRV_PCM_RATE_96000; runtime 914 sound/pci/rme32.c runtime->hw.rate_max = 96000; runtime 920 sound/pci/rme32.c runtime->hw.rates = snd_pcm_rate_to_rate_bit(rate); runtime 921 sound/pci/rme32.c runtime->hw.rate_min = rate; runtime 922 sound/pci/rme32.c runtime->hw.rate_max = rate; runtime 925 sound/pci/rme32.c snd_rme32_set_buffer_constraint(rme32, runtime); runtime 935 sound/pci/rme32.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 950 sound/pci/rme32.c runtime->hw = snd_rme32_adat_fd_info; runtime 952 sound/pci/rme32.c runtime->hw = snd_rme32_adat_info; runtime 956 sound/pci/rme32.c runtime->hw.rates = snd_pcm_rate_to_rate_bit(rate); runtime 957 sound/pci/rme32.c runtime->hw.rate_min = rate; runtime 958 sound/pci/rme32.c runtime->hw.rate_max = rate; runtime 961 sound/pci/rme32.c snd_rme32_set_buffer_constraint(rme32, runtime); runtime 970 sound/pci/rme32.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 973 sound/pci/rme32.c runtime->hw = snd_rme32_adat_fd_info; runtime 975 sound/pci/rme32.c runtime->hw = snd_rme32_adat_info; runtime 980 sound/pci/rme32.c runtime->hw.rates = snd_pcm_rate_to_rate_bit(rate); runtime 981 sound/pci/rme32.c runtime->hw.rate_min = rate; runtime 982 sound/pci/rme32.c runtime->hw.rate_max = rate; runtime 995 sound/pci/rme32.c snd_rme32_set_buffer_constraint(rme32, runtime); runtime 1141 sound/pci/rme32.c substream->runtime->dma_area + rec->sw_data, bytes); runtime 1164 sound/pci/rme32.c memcpy_fromio(substream->runtime->dma_area + rec->sw_data, runtime 982 sound/pci/rme96.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 986 sound/pci/rme96.c runtime->dma_area = (void __force *)(rme96->iobase + runtime 988 sound/pci/rme96.c runtime->dma_addr = rme96->port + RME96_IO_PLAY_BUFFER; runtime 989 sound/pci/rme96.c runtime->dma_bytes = RME96_BUFFER_SIZE; runtime 1045 sound/pci/rme96.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1048 sound/pci/rme96.c runtime->dma_area = (void __force *)(rme96->iobase + runtime 1050 sound/pci/rme96.c runtime->dma_addr = rme96->port + RME96_IO_REC_BUFFER; runtime 1051 sound/pci/rme96.c runtime->dma_bytes = RME96_BUFFER_SIZE; runtime 1070 sound/pci/rme96.c if ((isadat && runtime->hw.channels_min == 2) || runtime 1071 sound/pci/rme96.c (!isadat && runtime->hw.channels_min == 8)) runtime 1162 sound/pci/rme96.c struct snd_pcm_runtime *runtime) runtime 1166 sound/pci/rme96.c snd_pcm_hw_constraint_single(runtime, SNDRV_PCM_HW_PARAM_BUFFER_BYTES, runtime 1170 sound/pci/rme96.c snd_pcm_hw_constraint_single(runtime, runtime 1174 sound/pci/rme96.c snd_pcm_hw_constraint_list(runtime, 0, runtime 1184 sound/pci/rme96.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1197 sound/pci/rme96.c runtime->hw = snd_rme96_playback_spdif_info; runtime 1203 sound/pci/rme96.c runtime->hw.rates = snd_pcm_rate_to_rate_bit(rate); runtime 1204 sound/pci/rme96.c runtime->hw.rate_min = rate; runtime 1205 sound/pci/rme96.c runtime->hw.rate_max = rate; runtime 1207 sound/pci/rme96.c rme96_set_buffer_size_constraint(rme96, runtime); runtime 1221 sound/pci/rme96.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1224 sound/pci/rme96.c runtime->hw = snd_rme96_capture_spdif_info; runtime 1231 sound/pci/rme96.c runtime->hw.rates = snd_pcm_rate_to_rate_bit(rate); runtime 1232 sound/pci/rme96.c runtime->hw.rate_min = rate; runtime 1233 sound/pci/rme96.c runtime->hw.rate_max = rate; runtime 1244 sound/pci/rme96.c rme96_set_buffer_size_constraint(rme96, runtime); runtime 1253 sound/pci/rme96.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1266 sound/pci/rme96.c runtime->hw = snd_rme96_playback_adat_info; runtime 1272 sound/pci/rme96.c runtime->hw.rates = snd_pcm_rate_to_rate_bit(rate); runtime 1273 sound/pci/rme96.c runtime->hw.rate_min = rate; runtime 1274 sound/pci/rme96.c runtime->hw.rate_max = rate; runtime 1276 sound/pci/rme96.c rme96_set_buffer_size_constraint(rme96, runtime); runtime 1285 sound/pci/rme96.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1288 sound/pci/rme96.c runtime->hw = snd_rme96_capture_adat_info; runtime 1298 sound/pci/rme96.c runtime->hw.rates = snd_pcm_rate_to_rate_bit(rate); runtime 1299 sound/pci/rme96.c runtime->hw.rate_min = rate; runtime 1300 sound/pci/rme96.c runtime->hw.rate_max = rate; runtime 1311 sound/pci/rme96.c rme96_set_buffer_size_constraint(rme96, runtime); runtime 3976 sound/pci/rme9652/hdsp.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 3984 sound/pci/rme9652/hdsp.c runtime->status->hw_ptr = hdsp_hw_pointer(hdsp); runtime 3986 sound/pci/rme9652/hdsp.c runtime->status->hw_ptr = 0; runtime 3989 sound/pci/rme9652/hdsp.c struct snd_pcm_runtime *oruntime = other->runtime; runtime 3992 sound/pci/rme9652/hdsp.c oruntime->status->hw_ptr = runtime->status->hw_ptr; runtime 4434 sound/pci/rme9652/hdsp.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 4446 sound/pci/rme9652/hdsp.c runtime->hw = snd_hdsp_playback_subinfo; runtime 4447 sound/pci/rme9652/hdsp.c runtime->dma_area = hdsp->playback_buffer; runtime 4448 sound/pci/rme9652/hdsp.c runtime->dma_bytes = HDSP_DMA_AREA_BYTES; runtime 4455 sound/pci/rme9652/hdsp.c snd_pcm_hw_constraint_msbits(runtime, 0, 32, 24); runtime 4456 sound/pci/rme9652/hdsp.c snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_SIZE, &hdsp_hw_constraints_period_sizes); runtime 4458 sound/pci/rme9652/hdsp.c runtime->hw.rate_min = runtime->hw.rate_max = hdsp->system_sample_rate; runtime 4460 sound/pci/rme9652/hdsp.c runtime->hw.rate_max = 192000; runtime 4461 sound/pci/rme9652/hdsp.c runtime->hw.rates = SNDRV_PCM_RATE_KNOT; runtime 4462 sound/pci/rme9652/hdsp.c snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, &hdsp_hw_constraints_9632_sample_rates); runtime 4465 sound/pci/rme9652/hdsp.c runtime->hw.channels_min = hdsp->qs_out_channels; runtime 4466 sound/pci/rme9652/hdsp.c runtime->hw.channels_max = hdsp->ss_out_channels; runtime 4469 sound/pci/rme9652/hdsp.c snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, runtime 4472 sound/pci/rme9652/hdsp.c snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, runtime 4475 sound/pci/rme9652/hdsp.c snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, runtime 4511 sound/pci/rme9652/hdsp.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 4523 sound/pci/rme9652/hdsp.c runtime->hw = snd_hdsp_capture_subinfo; runtime 4524 sound/pci/rme9652/hdsp.c runtime->dma_area = hdsp->capture_buffer; runtime 4525 sound/pci/rme9652/hdsp.c runtime->dma_bytes = HDSP_DMA_AREA_BYTES; runtime 4532 sound/pci/rme9652/hdsp.c snd_pcm_hw_constraint_msbits(runtime, 0, 32, 24); runtime 4533 sound/pci/rme9652/hdsp.c snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_SIZE, &hdsp_hw_constraints_period_sizes); runtime 4535 sound/pci/rme9652/hdsp.c runtime->hw.channels_min = hdsp->qs_in_channels; runtime 4536 sound/pci/rme9652/hdsp.c runtime->hw.channels_max = hdsp->ss_in_channels; runtime 4537 sound/pci/rme9652/hdsp.c runtime->hw.rate_max = 192000; runtime 4538 sound/pci/rme9652/hdsp.c runtime->hw.rates = SNDRV_PCM_RATE_KNOT; runtime 4539 sound/pci/rme9652/hdsp.c snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, &hdsp_hw_constraints_9632_sample_rates); runtime 4541 sound/pci/rme9652/hdsp.c snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, runtime 4544 sound/pci/rme9652/hdsp.c snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, runtime 4547 sound/pci/rme9652/hdsp.c snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, runtime 5469 sound/pci/rme9652/hdspm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 5479 sound/pci/rme9652/hdspm.c runtime->status->hw_ptr = hdspm_hw_pointer(hdspm); runtime 5481 sound/pci/rme9652/hdspm.c runtime->status->hw_ptr = 0; runtime 5484 sound/pci/rme9652/hdspm.c struct snd_pcm_runtime *oruntime = other->runtime; runtime 5488 sound/pci/rme9652/hdspm.c runtime->status->hw_ptr; runtime 5592 sound/pci/rme9652/hdspm.c (unsigned char *) substream->runtime->dma_area; runtime 5609 sound/pci/rme9652/hdspm.c (unsigned char *) substream->runtime->dma_area; runtime 6055 sound/pci/rme9652/hdspm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 6060 sound/pci/rme9652/hdspm.c runtime->hw = (playback) ? snd_hdspm_playback_subinfo : runtime 6079 sound/pci/rme9652/hdspm.c snd_pcm_hw_constraint_msbits(runtime, 0, 32, 24); runtime 6080 sound/pci/rme9652/hdspm.c snd_pcm_hw_constraint_pow2(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_SIZE); runtime 6085 sound/pci/rme9652/hdspm.c snd_pcm_hw_constraint_minmax(runtime, runtime 6089 sound/pci/rme9652/hdspm.c snd_pcm_hw_constraint_single(runtime, runtime 6095 sound/pci/rme9652/hdspm.c snd_pcm_hw_constraint_minmax(runtime, runtime 6098 sound/pci/rme9652/hdspm.c snd_pcm_hw_constraint_single(runtime, runtime 6104 sound/pci/rme9652/hdspm.c runtime->hw.rates |= SNDRV_PCM_RATE_KNOT; runtime 6105 sound/pci/rme9652/hdspm.c snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, runtime 6108 sound/pci/rme9652/hdspm.c snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, runtime 6115 sound/pci/rme9652/hdspm.c snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, runtime 6120 sound/pci/rme9652/hdspm.c snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, runtime 1961 sound/pci/rme9652/rme9652.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1969 sound/pci/rme9652/rme9652.c runtime->status->hw_ptr = rme9652_hw_pointer(rme9652); runtime 1971 sound/pci/rme9652/rme9652.c runtime->status->hw_ptr = 0; runtime 1974 sound/pci/rme9652/rme9652.c struct snd_pcm_runtime *oruntime = other->runtime; runtime 1977 sound/pci/rme9652/rme9652.c oruntime->status->hw_ptr = runtime->status->hw_ptr; runtime 2284 sound/pci/rme9652/rme9652.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 2290 sound/pci/rme9652/rme9652.c runtime->hw = snd_rme9652_playback_subinfo; runtime 2291 sound/pci/rme9652/rme9652.c runtime->dma_area = rme9652->playback_buffer; runtime 2292 sound/pci/rme9652/rme9652.c runtime->dma_bytes = RME9652_DMA_AREA_BYTES; runtime 2304 sound/pci/rme9652/rme9652.c snd_pcm_hw_constraint_msbits(runtime, 0, 32, 24); runtime 2305 sound/pci/rme9652/rme9652.c snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_SIZE, &hw_constraints_period_sizes); runtime 2306 sound/pci/rme9652/rme9652.c snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, runtime 2309 sound/pci/rme9652/rme9652.c snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, runtime 2312 sound/pci/rme9652/rme9652.c snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, runtime 2344 sound/pci/rme9652/rme9652.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 2350 sound/pci/rme9652/rme9652.c runtime->hw = snd_rme9652_capture_subinfo; runtime 2351 sound/pci/rme9652/rme9652.c runtime->dma_area = rme9652->capture_buffer; runtime 2352 sound/pci/rme9652/rme9652.c runtime->dma_bytes = RME9652_DMA_AREA_BYTES; runtime 2364 sound/pci/rme9652/rme9652.c snd_pcm_hw_constraint_msbits(runtime, 0, 32, 24); runtime 2365 sound/pci/rme9652/rme9652.c snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_SIZE, &hw_constraints_period_sizes); runtime 2366 sound/pci/rme9652/rme9652.c snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, runtime 2369 sound/pci/rme9652/rme9652.c snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, runtime 2372 sound/pci/rme9652/rme9652.c snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, runtime 439 sound/pci/sis7019.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 440 sound/pci/sis7019.c struct voice *voice = runtime->private_data; runtime 474 sound/pci/sis7019.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 482 sound/pci/sis7019.c runtime->private_data = voice; runtime 483 sound/pci/sis7019.c runtime->hw = sis_playback_hw_info; runtime 484 sound/pci/sis7019.c snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_PERIOD_SIZE, runtime 486 sound/pci/sis7019.c snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_BUFFER_SIZE, runtime 495 sound/pci/sis7019.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 496 sound/pci/sis7019.c struct voice *voice = runtime->private_data; runtime 516 sound/pci/sis7019.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 517 sound/pci/sis7019.c struct voice *voice = runtime->private_data; runtime 527 sound/pci/sis7019.c if (snd_pcm_format_width(runtime->format) == 8) runtime 529 sound/pci/sis7019.c if (!snd_pcm_format_signed(runtime->format)) runtime 531 sound/pci/sis7019.c if (runtime->channels == 1) runtime 537 sound/pci/sis7019.c dma_addr = runtime->dma_addr; runtime 538 sound/pci/sis7019.c leo = runtime->buffer_size - 1; runtime 542 sound/pci/sis7019.c if (runtime->period_size == (runtime->buffer_size / 2)) { runtime 544 sound/pci/sis7019.c } else if (runtime->period_size != runtime->buffer_size) { runtime 546 sound/pci/sis7019.c voice->sso = runtime->period_size - 1; runtime 547 sound/pci/sis7019.c voice->period_size = runtime->period_size; runtime 548 sound/pci/sis7019.c voice->buffer_size = runtime->buffer_size; runtime 552 sound/pci/sis7019.c sso_eso |= (runtime->period_size - 1) << 16; runtime 555 sound/pci/sis7019.c delta = sis_rate_to_delta(runtime->rate); runtime 616 sound/pci/sis7019.c voice = s->runtime->private_data; runtime 651 sound/pci/sis7019.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 652 sound/pci/sis7019.c struct voice *voice = runtime->private_data; runtime 663 sound/pci/sis7019.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 681 sound/pci/sis7019.c runtime->private_data = voice; runtime 682 sound/pci/sis7019.c runtime->hw = sis_capture_hw_info; runtime 683 sound/pci/sis7019.c runtime->hw.rates = sis->ac97[0]->rates[AC97_RATES_ADC]; runtime 684 sound/pci/sis7019.c snd_pcm_limit_hw_rates(runtime); runtime 685 sound/pci/sis7019.c snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_PERIOD_SIZE, runtime 687 sound/pci/sis7019.c snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_BUFFER_SIZE, runtime 719 sound/pci/sis7019.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 730 sound/pci/sis7019.c buffer_size = 4096 / runtime->channels; runtime 731 sound/pci/sis7019.c buffer_size /= snd_pcm_format_size(runtime->format, 1); runtime 746 sound/pci/sis7019.c vperiod = runtime->period_size + 12; runtime 765 sound/pci/sis7019.c period_size = runtime->period_size; runtime 775 sound/pci/sis7019.c timing->sync_cso = runtime->period_size; runtime 776 sound/pci/sis7019.c timing->sync_period_size = runtime->period_size; runtime 777 sound/pci/sis7019.c timing->sync_buffer_size = runtime->buffer_size; runtime 788 sound/pci/sis7019.c if (snd_pcm_format_width(runtime->format) == 8) runtime 790 sound/pci/sis7019.c if (runtime->channels == 1) runtime 798 sound/pci/sis7019.c delta = sis_rate_to_delta(runtime->rate); runtime 820 sound/pci/sis7019.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 821 sound/pci/sis7019.c struct voice *voice = runtime->private_data; runtime 830 sound/pci/sis7019.c if (snd_pcm_format_width(runtime->format) == 8) runtime 832 sound/pci/sis7019.c if (!snd_pcm_format_signed(runtime->format)) runtime 834 sound/pci/sis7019.c if (runtime->channels == 1) runtime 837 sound/pci/sis7019.c dma_addr = runtime->dma_addr; runtime 838 sound/pci/sis7019.c leo = runtime->buffer_size - 1; runtime 849 sound/pci/sis7019.c if (runtime->period_size != runtime->buffer_size) runtime 698 sound/pci/sonicvibes.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 705 sound/pci/sonicvibes.c if (runtime->channels > 1) runtime 707 sound/pci/sonicvibes.c if (snd_pcm_format_width(runtime->format) == 16) runtime 710 sound/pci/sonicvibes.c snd_sonicvibes_set_dac_rate(sonic, runtime->rate); runtime 712 sound/pci/sonicvibes.c snd_sonicvibes_setdmaa(sonic, runtime->dma_addr, size); runtime 722 sound/pci/sonicvibes.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 730 sound/pci/sonicvibes.c if (runtime->channels > 1) runtime 732 sound/pci/sonicvibes.c if (snd_pcm_format_width(runtime->format) == 16) runtime 735 sound/pci/sonicvibes.c snd_sonicvibes_set_adc_rate(sonic, runtime->rate); runtime 737 sound/pci/sonicvibes.c snd_sonicvibes_setdmac(sonic, runtime->dma_addr, size); runtime 752 sound/pci/sonicvibes.c return bytes_to_frames(substream->runtime, ptr); runtime 762 sound/pci/sonicvibes.c return bytes_to_frames(substream->runtime, ptr); runtime 806 sound/pci/sonicvibes.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 810 sound/pci/sonicvibes.c runtime->hw = snd_sonicvibes_playback; runtime 811 sound/pci/sonicvibes.c snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, snd_sonicvibes_hw_constraint_dac_rate, NULL, SNDRV_PCM_HW_PARAM_RATE, -1); runtime 818 sound/pci/sonicvibes.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 822 sound/pci/sonicvibes.c runtime->hw = snd_sonicvibes_capture; runtime 823 sound/pci/sonicvibes.c snd_pcm_hw_constraint_ratdens(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, runtime 751 sound/pci/trident/trident_main.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 757 sound/pci/trident/trident_main.c if (snd_pcm_format_width(runtime->format) == 16) runtime 759 sound/pci/trident/trident_main.c if (snd_pcm_format_signed(runtime->format)) runtime 761 sound/pci/trident/trident_main.c if (runtime->channels > 1) runtime 809 sound/pci/trident/trident_main.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 810 sound/pci/trident/trident_main.c struct snd_trident_voice *voice = runtime->private_data; runtime 843 sound/pci/trident/trident_main.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 844 sound/pci/trident/trident_main.c struct snd_trident_voice *voice = runtime->private_data; runtime 904 sound/pci/trident/trident_main.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 905 sound/pci/trident/trident_main.c struct snd_trident_voice *voice = runtime->private_data; runtime 936 sound/pci/trident/trident_main.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 937 sound/pci/trident/trident_main.c struct snd_trident_voice *voice = runtime->private_data; runtime 944 sound/pci/trident/trident_main.c voice->Delta = snd_trident_convert_rate(runtime->rate); runtime 945 sound/pci/trident/trident_main.c voice->spurious_threshold = snd_trident_spurious_threshold(runtime->rate, runtime->period_size); runtime 951 sound/pci/trident/trident_main.c voice->LBA = runtime->dma_addr; runtime 954 sound/pci/trident/trident_main.c voice->ESO = runtime->buffer_size - 1; /* in samples */ runtime 980 sound/pci/trident/trident_main.c evoice->ESO = (runtime->period_size * 2) + 4 - 1; /* in samples */ runtime 998 sound/pci/trident/trident_main.c evoice->isync_mark = runtime->period_size; runtime 999 sound/pci/trident/trident_main.c evoice->ESO = (runtime->period_size * 2) - 1; runtime 1039 sound/pci/trident/trident_main.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1040 sound/pci/trident/trident_main.c struct snd_trident_voice *voice = runtime->private_data; runtime 1052 sound/pci/trident/trident_main.c voice->LBA = runtime->dma_addr; runtime 1064 sound/pci/trident/trident_main.c val = (((unsigned int) 48000L << 12) + (runtime->rate/2)) / runtime->rate; runtime 1068 sound/pci/trident/trident_main.c if (snd_pcm_format_width(runtime->format) == 16) { runtime 1080 sound/pci/trident/trident_main.c if (snd_pcm_format_width(runtime->format) == 16) runtime 1082 sound/pci/trident/trident_main.c if (snd_pcm_format_signed(runtime->format)) runtime 1084 sound/pci/trident/trident_main.c if (runtime->channels > 1) runtime 1089 sound/pci/trident/trident_main.c voice->Delta = snd_trident_convert_rate(runtime->rate); runtime 1090 sound/pci/trident/trident_main.c voice->spurious_threshold = snd_trident_spurious_threshold(runtime->rate, runtime->period_size); runtime 1092 sound/pci/trident/trident_main.c voice->isync_mark = runtime->period_size; runtime 1093 sound/pci/trident/trident_main.c voice->isync_max = runtime->buffer_size; runtime 1097 sound/pci/trident/trident_main.c voice->ESO = voice->isync_ESO = (runtime->period_size * 2) + 6 - 1; runtime 1153 sound/pci/trident/trident_main.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1154 sound/pci/trident/trident_main.c struct snd_trident_voice *voice = runtime->private_data; runtime 1179 sound/pci/trident/trident_main.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1180 sound/pci/trident/trident_main.c struct snd_trident_voice *voice = runtime->private_data; runtime 1185 sound/pci/trident/trident_main.c voice->LBA = runtime->dma_addr; runtime 1186 sound/pci/trident/trident_main.c voice->Delta = snd_trident_convert_adc_rate(runtime->rate); runtime 1187 sound/pci/trident/trident_main.c voice->spurious_threshold = snd_trident_spurious_threshold(runtime->rate, runtime->period_size); runtime 1191 sound/pci/trident/trident_main.c voice->ESO = runtime->buffer_size - 1; /* in samples */ runtime 1211 sound/pci/trident/trident_main.c evoice->Delta = snd_trident_convert_rate(runtime->rate); runtime 1215 sound/pci/trident/trident_main.c evoice->ESO = (runtime->period_size * 2) + 20 - 1; /* in samples, 20 means correction */ runtime 1228 sound/pci/trident/trident_main.c evoice->isync_mark = runtime->period_size; runtime 1229 sound/pci/trident/trident_main.c evoice->ESO = (runtime->period_size * 2) - 1; runtime 1250 sound/pci/trident/trident_main.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1251 sound/pci/trident/trident_main.c struct snd_trident_voice *voice = runtime->private_data; runtime 1260 sound/pci/trident/trident_main.c voice->LBA = runtime->dma_addr; runtime 1263 sound/pci/trident/trident_main.c voice->ESO = runtime->buffer_size - 1; /* in samples */ runtime 1267 sound/pci/trident/trident_main.c voice->spurious_threshold = snd_trident_spurious_threshold(48000, runtime->period_size); runtime 1292 sound/pci/trident/trident_main.c evoice->ESO = (runtime->period_size * 2) + 4 - 1; /* in samples */ runtime 1305 sound/pci/trident/trident_main.c evoice->isync_mark = runtime->period_size; runtime 1306 sound/pci/trident/trident_main.c evoice->ESO = (runtime->period_size * 2) - 1; runtime 1393 sound/pci/trident/trident_main.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1394 sound/pci/trident/trident_main.c struct snd_trident_voice *voice = runtime->private_data; runtime 1405 sound/pci/trident/trident_main.c voice->Delta = snd_trident_convert_rate(runtime->rate); runtime 1406 sound/pci/trident/trident_main.c voice->spurious_threshold = snd_trident_spurious_threshold(runtime->rate, runtime->period_size); runtime 1409 sound/pci/trident/trident_main.c LBAO = runtime->dma_addr; runtime 1417 sound/pci/trident/trident_main.c voice->isync_mark = runtime->period_size; runtime 1418 sound/pci/trident/trident_main.c voice->isync_max = runtime->buffer_size; runtime 1421 sound/pci/trident/trident_main.c RESO = runtime->buffer_size - 1; runtime 1422 sound/pci/trident/trident_main.c voice->ESO = voice->isync_ESO = (runtime->period_size * 2) + 6 - 1; runtime 1456 sound/pci/trident/trident_main.c voice->spurious_threshold = snd_trident_spurious_threshold(48000, runtime->period_size); runtime 1462 sound/pci/trident/trident_main.c voice->LBA = runtime->dma_addr; runtime 1465 sound/pci/trident/trident_main.c voice->ESO = runtime->buffer_size - 1; /* in samples */ runtime 1486 sound/pci/trident/trident_main.c evoice->ESO = (runtime->period_size * 2) + 4 - 1; /* in samples */ runtime 1499 sound/pci/trident/trident_main.c evoice->isync_mark = runtime->period_size; runtime 1500 sound/pci/trident/trident_main.c evoice->ESO = (runtime->period_size * 2) - 1; runtime 1558 sound/pci/trident/trident_main.c voice = s->runtime->private_data; runtime 1631 sound/pci/trident/trident_main.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1632 sound/pci/trident/trident_main.c struct snd_trident_voice *voice = runtime->private_data; runtime 1650 sound/pci/trident/trident_main.c if (cso >= runtime->buffer_size) runtime 1670 sound/pci/trident/trident_main.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1671 sound/pci/trident/trident_main.c struct snd_trident_voice *voice = runtime->private_data; runtime 1678 sound/pci/trident/trident_main.c if (runtime->channels > 1) runtime 1681 sound/pci/trident/trident_main.c result = runtime->buffer_size - result; runtime 1700 sound/pci/trident/trident_main.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1701 sound/pci/trident/trident_main.c struct snd_trident_voice *voice = runtime->private_data; runtime 1831 sound/pci/trident/trident_main.c static void snd_trident_pcm_free_substream(struct snd_pcm_runtime *runtime) runtime 1833 sound/pci/trident/trident_main.c struct snd_trident_voice *voice = runtime->private_data; runtime 1845 sound/pci/trident/trident_main.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1853 sound/pci/trident/trident_main.c runtime->private_data = voice; runtime 1854 sound/pci/trident/trident_main.c runtime->private_free = snd_trident_pcm_free_substream; runtime 1855 sound/pci/trident/trident_main.c runtime->hw = snd_trident_playback; runtime 1857 sound/pci/trident/trident_main.c snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_BUFFER_SIZE, 0, 64*1024); runtime 1873 sound/pci/trident/trident_main.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1874 sound/pci/trident/trident_main.c struct snd_trident_voice *voice = runtime->private_data; runtime 1895 sound/pci/trident/trident_main.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1906 sound/pci/trident/trident_main.c runtime->private_data = voice; runtime 1907 sound/pci/trident/trident_main.c runtime->private_free = snd_trident_pcm_free_substream; runtime 1909 sound/pci/trident/trident_main.c runtime->hw = snd_trident_spdif; runtime 1911 sound/pci/trident/trident_main.c runtime->hw = snd_trident_spdif_7018; runtime 1918 sound/pci/trident/trident_main.c snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_BUFFER_SIZE, 0, 64*1024); runtime 1974 sound/pci/trident/trident_main.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1981 sound/pci/trident/trident_main.c runtime->private_data = voice; runtime 1982 sound/pci/trident/trident_main.c runtime->private_free = snd_trident_pcm_free_substream; runtime 1983 sound/pci/trident/trident_main.c runtime->hw = snd_trident_capture; runtime 1985 sound/pci/trident/trident_main.c snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_BUFFER_SIZE, 0, 64*1024); runtime 2018 sound/pci/trident/trident_main.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 2025 sound/pci/trident/trident_main.c runtime->private_data = voice; runtime 2026 sound/pci/trident/trident_main.c runtime->private_free = snd_trident_pcm_free_substream; runtime 2027 sound/pci/trident/trident_main.c runtime->hw = snd_trident_foldback; runtime 2028 sound/pci/trident/trident_main.c snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_BUFFER_SIZE, 0, 64*1024); runtime 2045 sound/pci/trident/trident_main.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 2046 sound/pci/trident/trident_main.c voice = runtime->private_data; runtime 179 sound/pci/trident/trident_memory.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 182 sound/pci/trident/trident_memory.c if (snd_BUG_ON(runtime->dma_bytes <= 0 || runtime 183 sound/pci/trident/trident_memory.c runtime->dma_bytes > SNDRV_TRIDENT_MAX_PAGES * runtime 193 sound/pci/trident/trident_memory.c blk = search_empty(hdr, runtime->dma_bytes); runtime 227 sound/pci/trident/trident_memory.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 231 sound/pci/trident/trident_memory.c if (snd_BUG_ON(runtime->dma_bytes <= 0 || runtime 232 sound/pci/trident/trident_memory.c runtime->dma_bytes > SNDRV_TRIDENT_MAX_PAGES * runtime 240 sound/pci/trident/trident_memory.c blk = search_empty(hdr, runtime->dma_bytes); runtime 247 sound/pci/trident/trident_memory.c addr = runtime->dma_addr; runtime 248 sound/pci/trident/trident_memory.c ptr = (unsigned long)runtime->dma_area; runtime 723 sound/pci/via82xx.c struct viadev *viadev = substream->runtime->private_data; runtime 828 sound/pci/via82xx.c struct viadev *viadev = substream->runtime->private_data; runtime 850 sound/pci/via82xx.c return bytes_to_frames(substream->runtime, res); runtime 859 sound/pci/via82xx.c struct viadev *viadev = substream->runtime->private_data; runtime 909 sound/pci/via82xx.c return bytes_to_frames(substream->runtime, res); runtime 921 sound/pci/via82xx.c struct viadev *viadev = substream->runtime->private_data; runtime 943 sound/pci/via82xx.c struct viadev *viadev = substream->runtime->private_data; runtime 966 sound/pci/via82xx.c struct snd_pcm_runtime *runtime) runtime 972 sound/pci/via82xx.c (runtime->format == SNDRV_PCM_FORMAT_S16_LE ? VIA_REG_TYPE_16BIT : 0) | runtime 973 sound/pci/via82xx.c (runtime->channels > 1 ? VIA_REG_TYPE_STEREO : 0) | runtime 982 sound/pci/via82xx.c struct viadev *viadev = substream->runtime->private_data; runtime 983 sound/pci/via82xx.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 985 sound/pci/via82xx.c snd_ac97_set_rate(chip->ac97, AC97_PCM_FRONT_DAC_RATE, runtime->rate); runtime 986 sound/pci/via82xx.c snd_ac97_set_rate(chip->ac97, AC97_SPDIF, runtime->rate); runtime 987 sound/pci/via82xx.c via686_setup_format(chip, viadev, runtime); runtime 994 sound/pci/via82xx.c struct viadev *viadev = substream->runtime->private_data; runtime 995 sound/pci/via82xx.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 997 sound/pci/via82xx.c snd_ac97_set_rate(chip->ac97, AC97_PCM_LR_ADC_RATE, runtime->rate); runtime 998 sound/pci/via82xx.c via686_setup_format(chip, viadev, runtime); runtime 1028 sound/pci/via82xx.c struct viadev *viadev = substream->runtime->private_data; runtime 1029 sound/pci/via82xx.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1030 sound/pci/via82xx.c int ac97_rate = chip->dxs_src ? 48000 : runtime->rate; runtime 1038 sound/pci/via82xx.c chip->no_vra ? 48000 : runtime->rate); runtime 1040 sound/pci/via82xx.c snd_ac97_set_rate(chip->ac97, AC97_SPDIF, runtime->rate); runtime 1042 sound/pci/via82xx.c if (runtime->rate == 48000) runtime 1045 sound/pci/via82xx.c rbits = (0x100000 / 48000) * runtime->rate + runtime 1046 sound/pci/via82xx.c ((0x100000 % 48000) * runtime->rate) / 48000; runtime 1054 sound/pci/via82xx.c outl((runtime->format == SNDRV_PCM_FORMAT_S16_LE ? VIA8233_REG_TYPE_16BIT : 0) | /* format */ runtime 1055 sound/pci/via82xx.c (runtime->channels > 1 ? VIA8233_REG_TYPE_STEREO : 0) | /* stereo */ runtime 1070 sound/pci/via82xx.c struct viadev *viadev = substream->runtime->private_data; runtime 1071 sound/pci/via82xx.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1075 sound/pci/via82xx.c if (via_lock_rate(&chip->rates[0], runtime->rate) < 0) runtime 1077 sound/pci/via82xx.c snd_ac97_set_rate(chip->ac97, AC97_PCM_FRONT_DAC_RATE, runtime->rate); runtime 1078 sound/pci/via82xx.c snd_ac97_set_rate(chip->ac97, AC97_PCM_SURR_DAC_RATE, runtime->rate); runtime 1079 sound/pci/via82xx.c snd_ac97_set_rate(chip->ac97, AC97_PCM_LFE_DAC_RATE, runtime->rate); runtime 1080 sound/pci/via82xx.c snd_ac97_set_rate(chip->ac97, AC97_SPDIF, runtime->rate); runtime 1084 sound/pci/via82xx.c fmt = (runtime->format == SNDRV_PCM_FORMAT_S16_LE) ? runtime 1086 sound/pci/via82xx.c fmt |= runtime->channels << 4; runtime 1096 sound/pci/via82xx.c switch (runtime->channels) { runtime 1119 sound/pci/via82xx.c struct viadev *viadev = substream->runtime->private_data; runtime 1120 sound/pci/via82xx.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1122 sound/pci/via82xx.c if (via_lock_rate(&chip->rates[1], runtime->rate) < 0) runtime 1124 sound/pci/via82xx.c snd_ac97_set_rate(chip->ac97, AC97_PCM_LR_ADC_RATE, runtime->rate); runtime 1128 sound/pci/via82xx.c outl((runtime->format == SNDRV_PCM_FORMAT_S16_LE ? VIA8233_REG_TYPE_16BIT : 0) | runtime 1129 sound/pci/via82xx.c (runtime->channels > 1 ? VIA8233_REG_TYPE_STEREO : 0) | runtime 1169 sound/pci/via82xx.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1174 sound/pci/via82xx.c runtime->hw = snd_via82xx_hw; runtime 1182 sound/pci/via82xx.c runtime->hw.rates = chip->ac97->rates[AC97_RATES_SPDIF]; runtime 1183 sound/pci/via82xx.c snd_pcm_limit_hw_rates(runtime); runtime 1186 sound/pci/via82xx.c runtime->hw.rates = SNDRV_PCM_RATE_48000; runtime 1187 sound/pci/via82xx.c runtime->hw.rate_min = runtime->hw.rate_max = 48000; runtime 1190 sound/pci/via82xx.c runtime->hw.rates = (SNDRV_PCM_RATE_CONTINUOUS | runtime 1192 sound/pci/via82xx.c runtime->hw.rate_min = 8000; runtime 1193 sound/pci/via82xx.c runtime->hw.rate_max = 48000; runtime 1197 sound/pci/via82xx.c runtime->hw.rates = chip->ac97->rates[idx]; runtime 1198 sound/pci/via82xx.c snd_pcm_limit_hw_rates(runtime); runtime 1201 sound/pci/via82xx.c runtime->hw.rates = SNDRV_PCM_RATE_KNOT; runtime 1202 sound/pci/via82xx.c runtime->hw.rate_max = runtime->hw.rate_min = ratep->rate; runtime 1208 sound/pci/via82xx.c if ((err = snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS)) < 0) runtime 1212 sound/pci/via82xx.c err = snd_pcm_hw_rule_noresample(runtime, 48000); runtime 1217 sound/pci/via82xx.c runtime->private_data = viadev; runtime 1288 sound/pci/via82xx.c substream->runtime->hw.channels_max = 6; runtime 1290 sound/pci/via82xx.c snd_pcm_hw_constraint_list(substream->runtime, 0, runtime 1313 sound/pci/via82xx.c struct viadev *viadev = substream->runtime->private_data; runtime 1342 sound/pci/via82xx.c struct viadev *viadev = substream->runtime->private_data; runtime 512 sound/pci/via82xx_modem.c struct viadev *viadev = substream->runtime->private_data; runtime 609 sound/pci/via82xx_modem.c struct viadev *viadev = substream->runtime->private_data; runtime 631 sound/pci/via82xx_modem.c return bytes_to_frames(substream->runtime, res); runtime 642 sound/pci/via82xx_modem.c struct viadev *viadev = substream->runtime->private_data; runtime 667 sound/pci/via82xx_modem.c struct viadev *viadev = substream->runtime->private_data; runtime 692 sound/pci/via82xx_modem.c struct viadev *viadev = substream->runtime->private_data; runtime 733 sound/pci/via82xx_modem.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 742 sound/pci/via82xx_modem.c runtime->hw = snd_via82xx_hw; runtime 744 sound/pci/via82xx_modem.c if ((err = snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, runtime 750 sound/pci/via82xx_modem.c if ((err = snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS)) < 0) runtime 753 sound/pci/via82xx_modem.c runtime->private_data = viadev; runtime 787 sound/pci/via82xx_modem.c struct viadev *viadev = substream->runtime->private_data; runtime 245 sound/pci/vx222/vx222_ops.c static void vx2_dma_write(struct vx_core *chip, struct snd_pcm_runtime *runtime, runtime 250 sound/pci/vx222/vx222_ops.c u32 *addr = (u32 *)(runtime->dma_area + offset); runtime 268 sound/pci/vx222/vx222_ops.c addr = (u32 *)runtime->dma_area; runtime 284 sound/pci/vx222/vx222_ops.c static void vx2_dma_read(struct vx_core *chip, struct snd_pcm_runtime *runtime, runtime 288 sound/pci/vx222/vx222_ops.c u32 *addr = (u32 *)(runtime->dma_area + offset); runtime 304 sound/pci/vx222/vx222_ops.c addr = (u32 *)runtime->dma_area; runtime 346 sound/pci/ymfpci/ymfpci_main.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 347 sound/pci/ymfpci/ymfpci_main.c struct snd_ymfpci_pcm *ypcm = runtime->private_data; runtime 380 sound/pci/ymfpci/ymfpci_main.c struct snd_ymfpci_pcm *ypcm = substream->runtime->private_data; runtime 425 sound/pci/ymfpci/ymfpci_main.c struct snd_ymfpci_pcm *ypcm = substream->runtime->private_data; runtime 484 sound/pci/ymfpci/ymfpci_main.c struct snd_pcm_runtime *runtime, runtime 489 sound/pci/ymfpci/ymfpci_main.c u32 delta = snd_ymfpci_calc_delta(runtime->rate); runtime 490 sound/pci/ymfpci/ymfpci_main.c u32 lpfQ = snd_ymfpci_calc_lpfQ(runtime->rate); runtime 491 sound/pci/ymfpci/ymfpci_main.c u32 lpfK = snd_ymfpci_calc_lpfK(runtime->rate); runtime 500 sound/pci/ymfpci/ymfpci_main.c if (runtime->channels == 1) { runtime 517 sound/pci/ymfpci/ymfpci_main.c format = runtime->channels == 2 ? 0x00010000 : 0; runtime 518 sound/pci/ymfpci/ymfpci_main.c if (snd_pcm_format_width(runtime->format) == 8) runtime 521 sound/pci/ymfpci/ymfpci_main.c runtime->rate == 44100 && runtime->channels == 2 && runtime 533 sound/pci/ymfpci/ymfpci_main.c if (runtime->channels == 2 && (voiceidx & 1) != 0) runtime 540 sound/pci/ymfpci/ymfpci_main.c bank->base = cpu_to_le32(runtime->dma_addr); runtime 627 sound/pci/ymfpci/ymfpci_main.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 628 sound/pci/ymfpci/ymfpci_main.c struct snd_ymfpci_pcm *ypcm = runtime->private_data; runtime 641 sound/pci/ymfpci/ymfpci_main.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 644 sound/pci/ymfpci/ymfpci_main.c if (runtime->private_data == NULL) runtime 646 sound/pci/ymfpci/ymfpci_main.c ypcm = runtime->private_data; runtime 665 sound/pci/ymfpci/ymfpci_main.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 666 sound/pci/ymfpci/ymfpci_main.c struct snd_ymfpci_pcm *ypcm = runtime->private_data; runtime 670 sound/pci/ymfpci/ymfpci_main.c ypcm->period_size = runtime->period_size; runtime 671 sound/pci/ymfpci/ymfpci_main.c ypcm->buffer_size = runtime->buffer_size; runtime 674 sound/pci/ymfpci/ymfpci_main.c for (nvoice = 0; nvoice < runtime->channels; nvoice++) runtime 675 sound/pci/ymfpci/ymfpci_main.c snd_ymfpci_pcm_init_voice(ypcm, nvoice, runtime, runtime 704 sound/pci/ymfpci/ymfpci_main.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 705 sound/pci/ymfpci/ymfpci_main.c struct snd_ymfpci_pcm *ypcm = runtime->private_data; runtime 710 sound/pci/ymfpci/ymfpci_main.c ypcm->period_size = runtime->period_size; runtime 711 sound/pci/ymfpci/ymfpci_main.c ypcm->buffer_size = runtime->buffer_size; runtime 715 sound/pci/ymfpci/ymfpci_main.c rate = ((48000 * 4096) / runtime->rate) - 1; runtime 717 sound/pci/ymfpci/ymfpci_main.c if (runtime->channels == 2) { runtime 721 sound/pci/ymfpci/ymfpci_main.c if (snd_pcm_format_width(runtime->format) == 8) runtime 737 sound/pci/ymfpci/ymfpci_main.c bank->base = cpu_to_le32(runtime->dma_addr); runtime 748 sound/pci/ymfpci/ymfpci_main.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 749 sound/pci/ymfpci/ymfpci_main.c struct snd_ymfpci_pcm *ypcm = runtime->private_data; runtime 760 sound/pci/ymfpci/ymfpci_main.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 761 sound/pci/ymfpci/ymfpci_main.c struct snd_ymfpci_pcm *ypcm = runtime->private_data; runtime 878 sound/pci/ymfpci/ymfpci_main.c static void snd_ymfpci_pcm_free_substream(struct snd_pcm_runtime *runtime) runtime 880 sound/pci/ymfpci/ymfpci_main.c kfree(runtime->private_data); runtime 886 sound/pci/ymfpci/ymfpci_main.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 890 sound/pci/ymfpci/ymfpci_main.c runtime->hw = snd_ymfpci_playback; runtime 892 sound/pci/ymfpci/ymfpci_main.c err = snd_pcm_hw_constraint_minmax(runtime, runtime 897 sound/pci/ymfpci/ymfpci_main.c err = snd_pcm_hw_rule_noresample(runtime, 48000); runtime 907 sound/pci/ymfpci/ymfpci_main.c runtime->private_data = ypcm; runtime 908 sound/pci/ymfpci/ymfpci_main.c runtime->private_free = snd_ymfpci_pcm_free_substream; runtime 940 sound/pci/ymfpci/ymfpci_main.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 946 sound/pci/ymfpci/ymfpci_main.c ypcm = runtime->private_data; runtime 962 sound/pci/ymfpci/ymfpci_main.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 968 sound/pci/ymfpci/ymfpci_main.c ypcm = runtime->private_data; runtime 990 sound/pci/ymfpci/ymfpci_main.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 996 sound/pci/ymfpci/ymfpci_main.c ypcm = runtime->private_data; runtime 1011 sound/pci/ymfpci/ymfpci_main.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1015 sound/pci/ymfpci/ymfpci_main.c runtime->hw = snd_ymfpci_capture; runtime 1017 sound/pci/ymfpci/ymfpci_main.c err = snd_pcm_hw_constraint_minmax(runtime, runtime 1022 sound/pci/ymfpci/ymfpci_main.c err = snd_pcm_hw_rule_noresample(runtime, 48000); runtime 1034 sound/pci/ymfpci/ymfpci_main.c runtime->private_data = ypcm; runtime 1035 sound/pci/ymfpci/ymfpci_main.c runtime->private_free = snd_ymfpci_pcm_free_substream; runtime 1058 sound/pci/ymfpci/ymfpci_main.c struct snd_ymfpci_pcm *ypcm = substream->runtime->private_data; runtime 1102 sound/pci/ymfpci/ymfpci_main.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1103 sound/pci/ymfpci/ymfpci_main.c struct snd_ymfpci_pcm *ypcm = runtime->private_data; runtime 1754 sound/pci/ymfpci/ymfpci_main.c if (substream->runtime && substream->runtime->private_data) { runtime 1755 sound/pci/ymfpci/ymfpci_main.c struct snd_ymfpci_pcm *ypcm = substream->runtime->private_data; runtime 255 sound/pcmcia/pdaudiocf/pdaudiocf_irq.c if (chip->pcm_substream == NULL || chip->pcm_substream->runtime == NULL || !snd_pcm_running(chip->pcm_substream)) runtime 37 sound/pcmcia/pdaudiocf/pdaudiocf_pcm.c struct snd_pcm_runtime *runtime = subs->runtime; runtime 71 sound/pcmcia/pdaudiocf/pdaudiocf_pcm.c if ((chip->ak4117->rcs0 & AK4117_UNLCK) || runtime->rate != rate) { runtime 110 sound/pcmcia/pdaudiocf/pdaudiocf_pcm.c struct snd_pcm_runtime *runtime = subs->runtime; runtime 116 sound/pcmcia/pdaudiocf/pdaudiocf_pcm.c chip->pcm_channels = runtime->channels; runtime 118 sound/pcmcia/pdaudiocf/pdaudiocf_pcm.c chip->pcm_little = snd_pcm_format_little_endian(runtime->format) > 0; runtime 120 sound/pcmcia/pdaudiocf/pdaudiocf_pcm.c chip->pcm_swab = snd_pcm_format_big_endian(runtime->format) > 0; runtime 125 sound/pcmcia/pdaudiocf/pdaudiocf_pcm.c if (snd_pcm_format_unsigned(runtime->format)) runtime 133 sound/pcmcia/pdaudiocf/pdaudiocf_pcm.c switch (runtime->format) { runtime 143 sound/pcmcia/pdaudiocf/pdaudiocf_pcm.c switch (runtime->format) { runtime 171 sound/pcmcia/pdaudiocf/pdaudiocf_pcm.c chip->pcm_size = runtime->buffer_size; runtime 172 sound/pcmcia/pdaudiocf/pdaudiocf_pcm.c chip->pcm_period = runtime->period_size; runtime 173 sound/pcmcia/pdaudiocf/pdaudiocf_pcm.c chip->pcm_area = runtime->dma_area; runtime 216 sound/pcmcia/pdaudiocf/pdaudiocf_pcm.c struct snd_pcm_runtime *runtime = subs->runtime; runtime 222 sound/pcmcia/pdaudiocf/pdaudiocf_pcm.c runtime->hw = pdacf_pcm_capture_hw; runtime 223 sound/pcmcia/pdaudiocf/pdaudiocf_pcm.c runtime->private_data = chip; runtime 351 sound/pcmcia/vx/vxp_ops.c static void vxp_dma_write(struct vx_core *chip, struct snd_pcm_runtime *runtime, runtime 356 sound/pcmcia/vx/vxp_ops.c unsigned short *addr = (unsigned short *)(runtime->dma_area + offset); runtime 368 sound/pcmcia/vx/vxp_ops.c addr = (unsigned short *)runtime->dma_area; runtime 390 sound/pcmcia/vx/vxp_ops.c static void vxp_dma_read(struct vx_core *chip, struct snd_pcm_runtime *runtime, runtime 396 sound/pcmcia/vx/vxp_ops.c unsigned short *addr = (unsigned short *)(runtime->dma_area + offset); runtime 408 sound/pcmcia/vx/vxp_ops.c addr = (unsigned short *)runtime->dma_area; runtime 201 sound/ppc/pmac.c struct snd_pcm_runtime *runtime = subs->runtime; runtime 210 sound/ppc/pmac.c rate_index = snd_pmac_rate_index(chip, rec, runtime->rate); runtime 217 sound/ppc/pmac.c astr->cur_formats = 1 << runtime->format; runtime 219 sound/ppc/pmac.c chip->format = runtime->format; runtime 238 sound/ppc/pmac.c offset = runtime->dma_addr; runtime 326 sound/ppc/pmac.c return bytes_to_frames(subs->runtime, count); runtime 574 sound/ppc/pmac.c struct snd_pcm_runtime *runtime = subs->runtime; runtime 578 sound/ppc/pmac.c runtime->hw.rates = 0; runtime 581 sound/ppc/pmac.c runtime->hw.rates |= runtime 587 sound/ppc/pmac.c runtime->hw.rate_max = chip->freq_table[i]; runtime 593 sound/ppc/pmac.c runtime->hw.rate_min = chip->freq_table[i]; runtime 597 sound/ppc/pmac.c runtime->hw.formats = chip->formats_ok; runtime 600 sound/ppc/pmac.c runtime->hw.info |= SNDRV_PCM_INFO_HALF_DUPLEX; runtime 601 sound/ppc/pmac.c runtime->hw.info |= SNDRV_PCM_INFO_JOINT_DUPLEX; runtime 603 sound/ppc/pmac.c runtime->private_data = rec; runtime 607 sound/ppc/pmac.c snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, runtime 609 sound/ppc/pmac.c snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_FORMAT, runtime 613 sound/ppc/pmac.c runtime->hw.periods_max = rec->cmd.size - 1; runtime 616 sound/ppc/pmac.c snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS); runtime 642 sound/ppc/pmac.c subs->runtime->hw = snd_pmac_playback; runtime 650 sound/ppc/pmac.c subs->runtime->hw = snd_pmac_capture; runtime 447 sound/ppc/snd_ps3.c substream->runtime->rate, runtime 448 sound/ppc/snd_ps3.c snd_pcm_format_width(substream->runtime->format)); runtime 454 sound/ppc/snd_ps3.c switch (substream->runtime->rate) { runtime 469 sound/ppc/snd_ps3.c substream->runtime->rate); runtime 474 sound/ppc/snd_ps3.c switch (snd_pcm_format_width(substream->runtime->format)) { runtime 483 sound/ppc/snd_ps3.c snd_pcm_format_width(substream->runtime->format)); runtime 513 sound/ppc/snd_ps3.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 519 sound/ppc/snd_ps3.c runtime->hw = snd_ps3_pcm_hw; runtime 526 sound/ppc/snd_ps3.c snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_BYTES, runtime 560 sound/ppc/snd_ps3.c rate = substream->runtime->rate; runtime 561 sound/ppc/snd_ps3.c ret = snd_pcm_format_size(substream->runtime->format, runtime 563 sound/ppc/snd_ps3.c * substream->runtime->channels; runtime 569 sound/ppc/snd_ps3.c snd_pcm_format_size(substream->runtime->format, rate), runtime 578 sound/ppc/snd_ps3.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 599 sound/ppc/snd_ps3.c card->dma_buffer_size = runtime->dma_bytes; runtime 604 sound/ppc/snd_ps3.c runtime->dma_area; runtime 605 sound/ppc/snd_ps3.c card->dma_start_bus_addr[SND_PS3_CH_L] = runtime->dma_addr; runtime 610 sound/ppc/snd_ps3.c runtime->dma_area + (runtime->dma_bytes / 2); runtime 612 sound/ppc/snd_ps3.c runtime->dma_addr + (runtime->dma_bytes / 2); runtime 687 sound/ppc/snd_ps3.c ret = bytes_to_frames(substream->runtime, bytes * 2); runtime 220 sound/sh/aica.c struct snd_pcm_runtime *runtime; runtime 226 sound/sh/aica.c runtime = substream->runtime; runtime 230 sound/sh/aica.c (unsigned long) (runtime->dma_area + runtime 258 sound/sh/aica.c struct snd_pcm_runtime *runtime; runtime 262 sound/sh/aica.c runtime = dreamcastcard->substream->runtime; runtime 265 sound/sh/aica.c frames_to_bytes(runtime, runtime->buffer_size); runtime 266 sound/sh/aica.c if (runtime->channels > 1) runtime 268 sound/sh/aica.c aica_dma_transfer(runtime->channels, buffer_size, runtime 272 sound/sh/aica.c buffer_size / (AICA_PERIOD_SIZE * runtime->channels); runtime 275 sound/sh/aica.c aica_dma_transfer(runtime->channels, runtime 276 sound/sh/aica.c AICA_PERIOD_SIZE * runtime->channels, runtime 293 sound/sh/aica.c struct snd_pcm_runtime *runtime; runtime 294 sound/sh/aica.c runtime = substream->runtime; runtime 298 sound/sh/aica.c frames_to_bytes(runtime, runtime 307 sound/sh/aica.c if (runtime->channels > 1) runtime 317 sound/sh/aica.c struct snd_pcm_runtime *runtime; runtime 318 sound/sh/aica.c runtime = substream->runtime; runtime 328 sound/sh/aica.c struct snd_pcm_runtime *runtime; runtime 345 sound/sh/aica.c runtime = substream->runtime; runtime 346 sound/sh/aica.c runtime->hw = snd_pcm_aica_playback_hw; runtime 387 sound/sh/aica.c if ((substream->runtime)->format == SNDRV_PCM_FORMAT_S16_LE) runtime 389 sound/sh/aica.c dreamcastcard->channel->freq = substream->runtime->rate; runtime 102 sound/sh/sh_dac_audio.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 104 sound/sh/sh_dac_audio.c runtime->hw = snd_sh_dac_pcm_hw; runtime 143 sound/sh/sh_dac_audio.c struct snd_pcm_runtime *runtime = chip->substream->runtime; runtime 145 sound/sh/sh_dac_audio.c chip->buffer_size = runtime->buffer_size; runtime 305 sound/sh/sh_dac_audio.c struct snd_pcm_runtime *runtime = chip->substream->runtime; runtime 306 sound/sh/sh_dac_audio.c ssize_t b_ps = frames_to_bytes(runtime, runtime->period_size); runtime 120 sound/soc/adi/axi-i2s.c ret = snd_pcm_hw_constraint_ratnums(substream->runtime, 0, runtime 123 sound/soc/adi/axi-spdif.c ret = snd_pcm_hw_constraint_ratnums(substream->runtime, 0, runtime 143 sound/soc/amd/acp-da7219-max98357a.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 152 sound/soc/amd/acp-da7219-max98357a.c runtime->hw.channels_max = DUAL_CHANNEL; runtime 153 sound/soc/amd/acp-da7219-max98357a.c snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, runtime 155 sound/soc/amd/acp-da7219-max98357a.c snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, runtime 164 sound/soc/amd/acp-da7219-max98357a.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 173 sound/soc/amd/acp-da7219-max98357a.c runtime->hw.channels_max = DUAL_CHANNEL; runtime 174 sound/soc/amd/acp-da7219-max98357a.c snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, runtime 176 sound/soc/amd/acp-da7219-max98357a.c snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, runtime 186 sound/soc/amd/acp-da7219-max98357a.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 195 sound/soc/amd/acp-da7219-max98357a.c runtime->hw.channels_max = DUAL_CHANNEL; runtime 196 sound/soc/amd/acp-da7219-max98357a.c snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, runtime 198 sound/soc/amd/acp-da7219-max98357a.c snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, runtime 207 sound/soc/amd/acp-da7219-max98357a.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 216 sound/soc/amd/acp-da7219-max98357a.c runtime->hw.channels_max = DUAL_CHANNEL; runtime 217 sound/soc/amd/acp-da7219-max98357a.c snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, runtime 219 sound/soc/amd/acp-da7219-max98357a.c snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, runtime 228 sound/soc/amd/acp-da7219-max98357a.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 237 sound/soc/amd/acp-da7219-max98357a.c runtime->hw.channels_max = DUAL_CHANNEL; runtime 238 sound/soc/amd/acp-da7219-max98357a.c snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, runtime 240 sound/soc/amd/acp-da7219-max98357a.c snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, runtime 766 sound/soc/amd/acp-pcm-dma.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 779 sound/soc/amd/acp-pcm-dma.c runtime->hw = acp_st_pcm_hardware_playback; runtime 782 sound/soc/amd/acp-pcm-dma.c runtime->hw = acp_pcm_hardware_playback; runtime 787 sound/soc/amd/acp-pcm-dma.c runtime->hw = acp_st_pcm_hardware_capture; runtime 790 sound/soc/amd/acp-pcm-dma.c runtime->hw = acp_pcm_hardware_capture; runtime 794 sound/soc/amd/acp-pcm-dma.c ret = snd_pcm_hw_constraint_integer(runtime, runtime 803 sound/soc/amd/acp-pcm-dma.c runtime->private_data = adata; runtime 843 sound/soc/amd/acp-pcm-dma.c struct snd_pcm_runtime *runtime; runtime 852 sound/soc/amd/acp-pcm-dma.c runtime = substream->runtime; runtime 853 sound/soc/amd/acp-pcm-dma.c rtd = runtime->private_data; runtime 977 sound/soc/amd/acp-pcm-dma.c memset(substream->runtime->dma_area, 0, params_buffer_bytes(params)); runtime 1022 sound/soc/amd/acp-pcm-dma.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1023 sound/soc/amd/acp-pcm-dma.c struct audio_substream_data *rtd = runtime->private_data; runtime 1029 sound/soc/amd/acp-pcm-dma.c period_bytes = frames_to_bytes(runtime, runtime->period_size); runtime 1044 sound/soc/amd/acp-pcm-dma.c runtime->delay = bytes_to_frames(runtime, delay); runtime 1047 sound/soc/amd/acp-pcm-dma.c buffersize = frames_to_bytes(runtime, runtime->buffer_size); runtime 1053 sound/soc/amd/acp-pcm-dma.c return bytes_to_frames(runtime, pos); runtime 1064 sound/soc/amd/acp-pcm-dma.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1065 sound/soc/amd/acp-pcm-dma.c struct audio_substream_data *rtd = runtime->private_data; runtime 1093 sound/soc/amd/acp-pcm-dma.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1094 sound/soc/amd/acp-pcm-dma.c struct audio_substream_data *rtd = runtime->private_data; runtime 1164 sound/soc/amd/acp-pcm-dma.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1165 sound/soc/amd/acp-pcm-dma.c struct audio_substream_data *rtd = runtime->private_data; runtime 1333 sound/soc/amd/acp-pcm-dma.c if (adata->play_i2ssp_stream && adata->play_i2ssp_stream->runtime) { runtime 1344 sound/soc/amd/acp-pcm-dma.c rtd = adata->play_i2ssp_stream->runtime->private_data; runtime 1348 sound/soc/amd/acp-pcm-dma.c adata->capture_i2ssp_stream->runtime) { runtime 1354 sound/soc/amd/acp-pcm-dma.c rtd = adata->capture_i2ssp_stream->runtime->private_data; runtime 1359 sound/soc/amd/acp-pcm-dma.c adata->play_i2sbt_stream->runtime) { runtime 1360 sound/soc/amd/acp-pcm-dma.c rtd = adata->play_i2sbt_stream->runtime->private_data; runtime 1364 sound/soc/amd/acp-pcm-dma.c adata->capture_i2sbt_stream->runtime) { runtime 1365 sound/soc/amd/acp-pcm-dma.c rtd = adata->capture_i2sbt_stream->runtime->private_data; runtime 282 sound/soc/amd/raven/acp3x-pcm-dma.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 294 sound/soc/amd/raven/acp3x-pcm-dma.c runtime->hw = acp3x_pcm_hardware_playback; runtime 296 sound/soc/amd/raven/acp3x-pcm-dma.c runtime->hw = acp3x_pcm_hardware_capture; runtime 298 sound/soc/amd/raven/acp3x-pcm-dma.c ret = snd_pcm_hw_constraint_integer(runtime, runtime 315 sound/soc/amd/raven/acp3x-pcm-dma.c runtime->private_data = i2s_data; runtime 342 sound/soc/amd/raven/acp3x-pcm-dma.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 343 sound/soc/amd/raven/acp3x-pcm-dma.c struct i2s_stream_instance *rtd = runtime->private_data; runtime 353 sound/soc/amd/raven/acp3x-pcm-dma.c memset(substream->runtime->dma_area, 0, params_buffer_bytes(params)); runtime 371 sound/soc/amd/raven/acp3x-pcm-dma.c substream->runtime->private_data; runtime 373 sound/soc/amd/raven/acp3x-pcm-dma.c buffersize = frames_to_bytes(substream->runtime, runtime 374 sound/soc/amd/raven/acp3x-pcm-dma.c substream->runtime->buffer_size); runtime 379 sound/soc/amd/raven/acp3x-pcm-dma.c return bytes_to_frames(substream->runtime, pos); runtime 406 sound/soc/amd/raven/acp3x-pcm-dma.c struct i2s_stream_instance *rtd = substream->runtime->private_data; runtime 498 sound/soc/amd/raven/acp3x-pcm-dma.c struct i2s_stream_instance *rtd = substream->runtime->private_data; runtime 531 sound/soc/amd/raven/acp3x-pcm-dma.c struct i2s_stream_instance *rtd = substream->runtime->private_data; runtime 534 sound/soc/amd/raven/acp3x-pcm-dma.c period_bytes = frames_to_bytes(substream->runtime, runtime 535 sound/soc/amd/raven/acp3x-pcm-dma.c substream->runtime->period_size); runtime 712 sound/soc/amd/raven/acp3x-pcm-dma.c if (adata->play_stream && adata->play_stream->runtime) { runtime 714 sound/soc/amd/raven/acp3x-pcm-dma.c adata->play_stream->runtime->private_data; runtime 727 sound/soc/amd/raven/acp3x-pcm-dma.c if (adata->capture_stream && adata->capture_stream->runtime) { runtime 729 sound/soc/amd/raven/acp3x-pcm-dma.c adata->capture_stream->runtime->private_data; runtime 153 sound/soc/atmel/atmel-pcm-pdc.c struct atmel_runtime_data *prtd = substream->runtime->private_data; runtime 202 sound/soc/atmel/atmel-pcm-pdc.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 203 sound/soc/atmel/atmel-pcm-pdc.c struct atmel_runtime_data *prtd = runtime->private_data; runtime 210 sound/soc/atmel/atmel-pcm-pdc.c runtime->dma_bytes = params_buffer_bytes(params); runtime 215 sound/soc/atmel/atmel-pcm-pdc.c prtd->dma_buffer = runtime->dma_addr; runtime 216 sound/soc/atmel/atmel-pcm-pdc.c prtd->dma_buffer_end = runtime->dma_addr + runtime->dma_bytes; runtime 223 sound/soc/atmel/atmel-pcm-pdc.c runtime->dma_bytes, runtime 230 sound/soc/atmel/atmel-pcm-pdc.c struct atmel_runtime_data *prtd = substream->runtime->private_data; runtime 244 sound/soc/atmel/atmel-pcm-pdc.c struct atmel_runtime_data *prtd = substream->runtime->private_data; runtime 257 sound/soc/atmel/atmel-pcm-pdc.c struct snd_pcm_runtime *rtd = substream->runtime; runtime 323 sound/soc/atmel/atmel-pcm-pdc.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 324 sound/soc/atmel/atmel-pcm-pdc.c struct atmel_runtime_data *prtd = runtime->private_data; runtime 330 sound/soc/atmel/atmel-pcm-pdc.c x = bytes_to_frames(runtime, ptr - prtd->dma_buffer); runtime 332 sound/soc/atmel/atmel-pcm-pdc.c if (x == runtime->buffer_size) runtime 340 sound/soc/atmel/atmel-pcm-pdc.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 347 sound/soc/atmel/atmel-pcm-pdc.c ret = snd_pcm_hw_constraint_integer(runtime, runtime 357 sound/soc/atmel/atmel-pcm-pdc.c runtime->private_data = prtd; runtime 365 sound/soc/atmel/atmel-pcm-pdc.c struct atmel_runtime_data *prtd = substream->runtime->private_data; runtime 379 sound/soc/atmel/atmel-pdmic.c unsigned int rate_min = substream->runtime->hw.rate_min; runtime 380 sound/soc/atmel/atmel-pdmic.c unsigned int rate_max = substream->runtime->hw.rate_max; runtime 298 sound/soc/atmel/atmel_ssc_dai.c ret = snd_pcm_hw_rule_add(substream->runtime, 0, runtime 196 sound/soc/au1x/dbdma2.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 209 sound/soc/au1x/dbdma2.c (unsigned long)runtime->dma_area, runtime 210 sound/soc/au1x/dbdma2.c (unsigned long)runtime->dma_addr, runtime->dma_bytes, runtime 211 sound/soc/au1x/dbdma2.c runtime->min_align); runtime 225 sound/soc/au1x/dbdma2.c pcd->dma_area_s = pcd->dma_area = runtime->dma_addr; runtime 280 sound/soc/au1x/dbdma2.c return bytes_to_frames(substream->runtime, to_dmadata(substream)->pos); runtime 68 sound/soc/au1x/dma.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 73 sound/soc/au1x/dma.c dma_start = virt_to_phys(runtime->dma_area); runtime 281 sound/soc/au1x/dma.c return bytes_to_frames(ss->runtime, location); runtime 583 sound/soc/bcm/cygnus-pcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 595 sound/soc/bcm/cygnus-pcm.c ret = snd_pcm_hw_constraint_step(runtime, 0, runtime 600 sound/soc/bcm/cygnus-pcm.c ret = snd_pcm_hw_constraint_step(runtime, 0, runtime 640 sound/soc/bcm/cygnus-pcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 647 sound/soc/bcm/cygnus-pcm.c runtime->dma_bytes = params_buffer_bytes(params); runtime 667 sound/soc/bcm/cygnus-pcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 687 sound/soc/bcm/cygnus-pcm.c start = runtime->dma_addr; runtime 723 sound/soc/bcm/cygnus-pcm.c return bytes_to_frames(substream->runtime, res); runtime 754 sound/soc/bcm/cygnus-ssp.c substream->runtime->hw.rate_min = CYGNUS_RATE_MIN; runtime 755 sound/soc/bcm/cygnus-ssp.c substream->runtime->hw.rate_max = CYGNUS_RATE_MAX; runtime 757 sound/soc/bcm/cygnus-ssp.c snd_pcm_hw_constraint_list(substream->runtime, 0, runtime 40 sound/soc/codecs/ac97.c return snd_ac97_set_rate(ac97, reg, substream->runtime->rate); runtime 366 sound/soc/codecs/ad193x.c return snd_pcm_hw_constraint_list(substream->runtime, 0, runtime 715 sound/soc/codecs/adau1977.c snd_pcm_hw_constraint_list(substream->runtime, 0, runtime 719 sound/soc/codecs/adau1977.c snd_pcm_hw_constraint_minmax(substream->runtime, runtime 723 sound/soc/codecs/adau1977.c snd_pcm_hw_constraint_mask64(substream->runtime, runtime 731 sound/soc/codecs/adav80x.c return snd_pcm_hw_constraint_single(substream->runtime, runtime 487 sound/soc/codecs/ak4458.c ret = snd_pcm_hw_constraint_list(substream->runtime, 0, runtime 258 sound/soc/codecs/ak4613.c struct snd_pcm_runtime *runtime) runtime 297 sound/soc/codecs/ak4613.c snd_pcm_hw_constraint_list(runtime, 0, runtime 309 sound/soc/codecs/ak4613.c ak4613_hw_constraints(priv, substream->runtime); runtime 237 sound/soc/codecs/ak5558.c return snd_pcm_hw_constraint_list(substream->runtime, 0, runtime 1623 sound/soc/codecs/arizona.c if (!substream->runtime) runtime 1644 sound/soc/codecs/arizona.c return snd_pcm_hw_constraint_list(substream->runtime, 0, runtime 523 sound/soc/codecs/cs35l33.c snd_pcm_hw_constraint_list(substream->runtime, 0, runtime 580 sound/soc/codecs/cs35l34.c snd_pcm_hw_constraint_list(substream->runtime, 0, runtime 609 sound/soc/codecs/cs35l35.c if (!substream->runtime) runtime 612 sound/soc/codecs/cs35l35.c snd_pcm_hw_constraint_list(substream->runtime, 0, runtime 637 sound/soc/codecs/cs35l35.c if (!substream->runtime) runtime 640 sound/soc/codecs/cs35l35.c snd_pcm_hw_constraint_list(substream->runtime, 0, runtime 966 sound/soc/codecs/cs35l36.c snd_pcm_hw_constraint_list(substream->runtime, 0, runtime 1147 sound/soc/codecs/cs42l73.c snd_pcm_hw_constraint_list(substream->runtime, 0, runtime 1447 sound/soc/codecs/cs43130.c return snd_pcm_hw_constraint_list(substream->runtime, 0, runtime 1464 sound/soc/codecs/cs43130.c return snd_pcm_hw_constraint_list(substream->runtime, 0, runtime 754 sound/soc/codecs/cs53l30.c snd_pcm_hw_constraint_list(substream->runtime, 0, runtime 458 sound/soc/codecs/es8316.c snd_pcm_hw_constraint_list(substream->runtime, 0, runtime 466 sound/soc/codecs/es8328.c snd_pcm_hw_constraint_list(substream->runtime, 0, runtime 311 sound/soc/codecs/hdac_hdmi.c static int hdac_hdmi_eld_limit_formats(struct snd_pcm_runtime *runtime, runtime 335 sound/soc/codecs/hdac_hdmi.c return snd_pcm_hw_constraint_mask64(runtime, SNDRV_PCM_HW_PARAM_FORMAT, runtime 623 sound/soc/codecs/hdac_hdmi.c ret = hdac_hdmi_eld_limit_formats(substream->runtime, runtime 628 sound/soc/codecs/hdac_hdmi.c return snd_pcm_hw_constraint_eld(substream->runtime, runtime 410 sound/soc/codecs/hdmi-codec.c ret = snd_pcm_hw_constraint_eld(substream->runtime, runtime 76 sound/soc/codecs/lochnagar-sc.c ret = snd_pcm_hw_constraint_list(substream->runtime, 0, runtime 82 sound/soc/codecs/lochnagar-sc.c return snd_pcm_hw_rule_add(substream->runtime, 0, runtime 105 sound/soc/codecs/lochnagar-sc.c return snd_pcm_hw_constraint_list(substream->runtime, 0, runtime 2905 sound/soc/codecs/madera.c if (!substream->runtime) runtime 2943 sound/soc/codecs/madera.c return snd_pcm_hw_constraint_list(substream->runtime, 0, runtime 1918 sound/soc/codecs/max98090.c substream->runtime->hw.formats = SNDRV_PCM_FMTBIT_S16_LE; runtime 1919 sound/soc/codecs/max98090.c snd_pcm_hw_constraint_msbits(substream->runtime, 0, 16, 16); runtime 176 sound/soc/codecs/max9867.c snd_pcm_hw_constraint_list(substream->runtime, 0, runtime 574 sound/soc/codecs/pcm3168a.c snd_pcm_hw_constraint_minmax(substream->runtime, runtime 582 sound/soc/codecs/pcm3168a.c snd_pcm_hw_constraint_minmax(substream->runtime, runtime 595 sound/soc/codecs/pcm512x.c return snd_pcm_hw_rule_add(substream->runtime, 0, runtime 616 sound/soc/codecs/pcm512x.c return snd_pcm_hw_constraint_ratnums(substream->runtime, 0, runtime 642 sound/soc/codecs/pcm512x.c return snd_pcm_hw_constraint_list(substream->runtime, 0, runtime 78 sound/soc/codecs/rt5514-spi.c struct snd_pcm_runtime *runtime; runtime 89 sound/soc/codecs/rt5514-spi.c runtime = rt5514_dsp->substream->runtime; runtime 121 sound/soc/codecs/rt5514-spi.c runtime->dma_area + rt5514_dsp->dma_offset, runtime 131 sound/soc/codecs/rt5514-spi.c runtime->dma_area + rt5514_dsp->dma_offset, runtime 135 sound/soc/codecs/rt5514-spi.c runtime->dma_area + rt5514_dsp->dma_offset + runtime 144 sound/soc/codecs/rt5514-spi.c if (rt5514_dsp->dma_offset >= runtime->dma_bytes) runtime 256 sound/soc/codecs/rt5514-spi.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 262 sound/soc/codecs/rt5514-spi.c return bytes_to_frames(runtime, rt5514_dsp->dma_offset); runtime 807 sound/soc/codecs/sigmadsp.c return snd_pcm_hw_constraint_list(substream->runtime, 0, runtime 363 sound/soc/codecs/sirf-audio-codec.c substream->runtime->channels); runtime 614 sound/soc/codecs/ssm2518.c snd_pcm_hw_constraint_list(substream->runtime, 0, runtime 333 sound/soc/codecs/ssm2602.c snd_pcm_hw_constraint_list(substream->runtime, 0, runtime 168 sound/soc/codecs/stac9766.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 179 sound/soc/codecs/stac9766.c return snd_soc_component_write(component, reg, runtime->rate); runtime 186 sound/soc/codecs/stac9766.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 196 sound/soc/codecs/stac9766.c return snd_soc_component_write(component, reg, runtime->rate); runtime 290 sound/soc/codecs/sti-sas.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 294 sound/soc/codecs/sti-sas.c if ((drvdata->spdif.mclk / runtime->rate) != 128) { runtime 300 sound/soc/codecs/sti-sas.c if ((drvdata->dac.mclk / runtime->rate) != 256) { runtime 1205 sound/soc/codecs/tlv320aic3x.c width = substream->runtime->sample_bits; runtime 857 sound/soc/codecs/tlv320dac33.c switch (substream->runtime->rate) { runtime 860 sound/soc/codecs/tlv320dac33.c oscset = CALC_OSCSET(substream->runtime->rate, dac33->refclk); runtime 861 sound/soc/codecs/tlv320dac33.c ratioset = CALC_RATIOSET(substream->runtime->rate, runtime 866 sound/soc/codecs/tlv320dac33.c substream->runtime->rate); runtime 878 sound/soc/codecs/tlv320dac33.c switch (substream->runtime->format) { runtime 888 sound/soc/codecs/tlv320dac33.c substream->runtime->format); runtime 1020 sound/soc/codecs/tlv320dac33.c if (substream->runtime->format == SNDRV_PCM_FORMAT_S16_LE) runtime 1052 sound/soc/codecs/tlv320dac33.c unsigned int period_size = substream->runtime->period_size; runtime 1053 sound/soc/codecs/tlv320dac33.c unsigned int rate = substream->runtime->rate; runtime 1095 sound/soc/codecs/tlv320dac33.c SAMPLES_TO_US(substream->runtime->rate, runtime 1169 sound/soc/codecs/tlv320dac33.c substream->runtime->rate, runtime 1183 sound/soc/codecs/tlv320dac33.c substream->runtime->rate, runtime 1205 sound/soc/codecs/tlv320dac33.c substream->runtime->rate, runtime 1246 sound/soc/codecs/tlv320dac33.c substream->runtime->rate, runtime 1261 sound/soc/codecs/tlv320dac33.c substream->runtime->rate, runtime 1602 sound/soc/codecs/twl4030.c snd_pcm_hw_constraint_single(slv_substream->runtime, runtime 1606 sound/soc/codecs/twl4030.c snd_pcm_hw_constraint_single(slv_substream->runtime, runtime 1610 sound/soc/codecs/twl4030.c snd_pcm_hw_constraint_single(slv_substream->runtime, runtime 1656 sound/soc/codecs/twl4030.c snd_pcm_hw_constraint_single(substream->runtime, runtime 1681 sound/soc/codecs/twl4030.c else if (!twl4030->master_substream->runtime->channels) runtime 1685 sound/soc/codecs/twl4030.c if (substream->runtime->channels == 4) runtime 865 sound/soc/codecs/twl6040.c snd_pcm_hw_constraint_list(substream->runtime, 0, runtime 106 sound/soc/codecs/uda1334.c snd_pcm_hw_constraint_list(substream->runtime, 0, runtime 144 sound/soc/codecs/uda134x.c master_runtime = uda134x->master_substream->runtime; runtime 150 sound/soc/codecs/uda134x.c snd_pcm_hw_constraint_single(substream->runtime, runtime 154 sound/soc/codecs/uda134x.c snd_pcm_hw_constraint_single(substream->runtime, runtime 295 sound/soc/codecs/wl1273.c snd_pcm_hw_constraint_single(substream->runtime, runtime 297 sound/soc/codecs/wl1273.c snd_pcm_hw_constraint_single(substream->runtime, runtime 136 sound/soc/codecs/wm8523.c snd_pcm_hw_constraint_list(substream->runtime, 0, runtime 74 sound/soc/codecs/wm8524.c snd_pcm_hw_constraint_list(substream->runtime, 0, runtime 855 sound/soc/codecs/wm8580.c return snd_pcm_hw_constraint_minmax(substream->runtime, runtime 534 sound/soc/codecs/wm8731.c snd_pcm_hw_constraint_list(substream->runtime, 0, runtime 182 sound/soc/codecs/wm8741.c snd_pcm_hw_constraint_list(substream->runtime, 0, runtime 657 sound/soc/codecs/wm8988.c snd_pcm_hw_constraint_list(substream->runtime, 0, runtime 244 sound/soc/codecs/wm9705.c return snd_soc_component_write(component, reg, substream->runtime->rate); runtime 528 sound/soc/codecs/wm9712.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 537 sound/soc/codecs/wm9712.c return snd_soc_component_write(component, reg, runtime->rate); runtime 544 sound/soc/codecs/wm9712.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 552 sound/soc/codecs/wm9712.c return snd_soc_component_write(component, AC97_PCM_SURR_DAC_RATE, runtime->rate); runtime 1030 sound/soc/codecs/wm9713.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1040 sound/soc/codecs/wm9713.c return snd_soc_component_write(component, reg, runtime->rate); runtime 1047 sound/soc/codecs/wm9713.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1055 sound/soc/codecs/wm9713.c return snd_soc_component_write(component, AC97_PCM_SURR_DAC_RATE, runtime->rate); runtime 3420 sound/soc/codecs/wm_adsp.c stream->runtime->private_data = compr; runtime 3431 sound/soc/codecs/wm_adsp.c struct wm_adsp_compr *compr = stream->runtime->private_data; runtime 3451 sound/soc/codecs/wm_adsp.c struct wm_adsp_compr *compr = stream->runtime->private_data; runtime 3506 sound/soc/codecs/wm_adsp.c struct wm_adsp_compr *compr = stream->runtime->private_data; runtime 3533 sound/soc/codecs/wm_adsp.c struct wm_adsp_compr *compr = stream->runtime->private_data; runtime 3898 sound/soc/codecs/wm_adsp.c struct wm_adsp_compr *compr = stream->runtime->private_data; runtime 4062 sound/soc/codecs/wm_adsp.c struct wm_adsp_compr *compr = stream->runtime->private_data; runtime 4220 sound/soc/codecs/wm_adsp.c struct wm_adsp_compr *compr = stream->runtime->private_data; runtime 26 sound/soc/dwc/dwc-pcm.c struct snd_pcm_runtime *runtime, unsigned int tx_ptr, \ runtime 29 sound/soc/dwc/dwc-pcm.c const u##sample_bits (*p)[2] = (void *)runtime->dma_area; \ runtime 30 sound/soc/dwc/dwc-pcm.c unsigned int period_pos = tx_ptr % runtime->period_size; \ runtime 37 sound/soc/dwc/dwc-pcm.c if (++tx_ptr >= runtime->buffer_size) \ runtime 40 sound/soc/dwc/dwc-pcm.c *period_elapsed = period_pos >= runtime->period_size; \ runtime 46 sound/soc/dwc/dwc-pcm.c struct snd_pcm_runtime *runtime, unsigned int rx_ptr, \ runtime 49 sound/soc/dwc/dwc-pcm.c u##sample_bits (*p)[2] = (void *)runtime->dma_area; \ runtime 50 sound/soc/dwc/dwc-pcm.c unsigned int period_pos = rx_ptr % runtime->period_size; \ runtime 57 sound/soc/dwc/dwc-pcm.c if (++rx_ptr >= runtime->buffer_size) \ runtime 60 sound/soc/dwc/dwc-pcm.c *period_elapsed = period_pos >= runtime->period_size; \ runtime 112 sound/soc/dwc/dwc-pcm.c new_ptr = dev->tx_fn(dev, substream->runtime, ptr, runtime 117 sound/soc/dwc/dwc-pcm.c new_ptr = dev->rx_fn(dev, substream->runtime, ptr, runtime 140 sound/soc/dwc/dwc-pcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 145 sound/soc/dwc/dwc-pcm.c snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS); runtime 146 sound/soc/dwc/dwc-pcm.c runtime->private_data = dev; runtime 160 sound/soc/dwc/dwc-pcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 161 sound/soc/dwc/dwc-pcm.c struct dw_i2s_dev *dev = runtime->private_data; runtime 202 sound/soc/dwc/dwc-pcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 203 sound/soc/dwc/dwc-pcm.c struct dw_i2s_dev *dev = runtime->private_data; runtime 236 sound/soc/dwc/dwc-pcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 237 sound/soc/dwc/dwc-pcm.c struct dw_i2s_dev *dev = runtime->private_data; runtime 245 sound/soc/dwc/dwc-pcm.c return pos < runtime->buffer_size ? pos : 0; runtime 113 sound/soc/dwc/local.h struct snd_pcm_runtime *runtime, unsigned int tx_ptr, runtime 116 sound/soc/dwc/local.h struct snd_pcm_runtime *runtime, unsigned int rx_ptr, runtime 487 sound/soc/fsl/fsl_asrc.c snd_pcm_hw_constraint_step(substream->runtime, 0, runtime 491 sound/soc/fsl/fsl_asrc.c return snd_pcm_hw_constraint_list(substream->runtime, 0, runtime 501 sound/soc/fsl/fsl_asrc.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 502 sound/soc/fsl/fsl_asrc.c struct fsl_asrc_pair *pair = runtime->private_data; runtime 555 sound/soc/fsl/fsl_asrc.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 556 sound/soc/fsl/fsl_asrc.c struct fsl_asrc_pair *pair = runtime->private_data; runtime 567 sound/soc/fsl/fsl_asrc.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 568 sound/soc/fsl/fsl_asrc.c struct fsl_asrc_pair *pair = runtime->private_data; runtime 47 sound/soc/fsl/fsl_asrc_dma.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 48 sound/soc/fsl/fsl_asrc_dma.c struct fsl_asrc_pair *pair = runtime->private_data; runtime 61 sound/soc/fsl/fsl_asrc_dma.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 62 sound/soc/fsl/fsl_asrc_dma.c struct fsl_asrc_pair *pair = runtime->private_data; runtime 68 sound/soc/fsl/fsl_asrc_dma.c if (!substream->runtime->no_period_wakeup) runtime 73 sound/soc/fsl/fsl_asrc_dma.c pair->dma_chan[!dir], runtime->dma_addr, runtime 102 sound/soc/fsl/fsl_asrc_dma.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 103 sound/soc/fsl/fsl_asrc_dma.c struct fsl_asrc_pair *pair = runtime->private_data; runtime 138 sound/soc/fsl/fsl_asrc_dma.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 139 sound/soc/fsl/fsl_asrc_dma.c struct fsl_asrc_pair *pair = runtime->private_data; runtime 254 sound/soc/fsl/fsl_asrc_dma.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 255 sound/soc/fsl/fsl_asrc_dma.c struct fsl_asrc_pair *pair = runtime->private_data; runtime 274 sound/soc/fsl/fsl_asrc_dma.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 286 sound/soc/fsl/fsl_asrc_dma.c runtime->private_data = pair; runtime 288 sound/soc/fsl/fsl_asrc_dma.c snd_pcm_hw_constraint_integer(substream->runtime, runtime 297 sound/soc/fsl/fsl_asrc_dma.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 298 sound/soc/fsl/fsl_asrc_dma.c struct fsl_asrc_pair *pair = runtime->private_data; runtime 316 sound/soc/fsl/fsl_asrc_dma.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 317 sound/soc/fsl/fsl_asrc_dma.c struct fsl_asrc_pair *pair = runtime->private_data; runtime 319 sound/soc/fsl/fsl_asrc_dma.c return bytes_to_frames(substream->runtime, pair->pos); runtime 385 sound/soc/fsl/fsl_dma.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 405 sound/soc/fsl/fsl_dma.c ret = snd_pcm_hw_constraint_integer(runtime, runtime 451 sound/soc/fsl/fsl_dma.c runtime->private_data = dma_private; runtime 539 sound/soc/fsl/fsl_dma.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 540 sound/soc/fsl/fsl_dma.c struct fsl_dma_private *dma_private = runtime->private_data; runtime 703 sound/soc/fsl/fsl_dma.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 704 sound/soc/fsl/fsl_dma.c struct fsl_dma_private *dma_private = runtime->private_data; runtime 746 sound/soc/fsl/fsl_dma.c frames = bytes_to_frames(runtime, position - dma_private->dma_buf_phys); runtime 752 sound/soc/fsl/fsl_dma.c if (frames == runtime->buffer_size) runtime 768 sound/soc/fsl/fsl_dma.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 769 sound/soc/fsl/fsl_dma.c struct fsl_dma_private *dma_private = runtime->private_data; runtime 801 sound/soc/fsl/fsl_dma.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 802 sound/soc/fsl/fsl_dma.c struct fsl_dma_private *dma_private = runtime->private_data; runtime 816 sound/soc/fsl/fsl_dma.c substream->runtime->private_data = NULL; runtime 733 sound/soc/fsl/fsl_esai.c esai_priv->channels[tx] = substream->runtime->channels; runtime 636 sound/soc/fsl/fsl_sai.c snd_pcm_hw_constraint_step(substream->runtime, 0, runtime 641 sound/soc/fsl/fsl_sai.c ret = snd_pcm_hw_constraint_list(substream->runtime, 0, runtime 648 sound/soc/fsl/fsl_ssi.c snd_pcm_hw_constraint_step(substream->runtime, 0, runtime 49 sound/soc/fsl/imx-audmix.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 55 sound/soc/fsl/imx-audmix.c ret = snd_pcm_hw_constraint_list(runtime, 0, runtime 64 sound/soc/fsl/imx-audmix.c ret = snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_CHANNELS, runtime 69 sound/soc/fsl/imx-audmix.c return snd_pcm_hw_constraint_mask64(runtime, SNDRV_PCM_HW_PARAM_FORMAT, runtime 75 sound/soc/fsl/imx-pcm-fiq.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 76 sound/soc/fsl/imx-pcm-fiq.c struct imx_pcm_runtime_data *iprtd = runtime->private_data; runtime 90 sound/soc/fsl/imx-pcm-fiq.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 91 sound/soc/fsl/imx-pcm-fiq.c struct imx_pcm_runtime_data *iprtd = runtime->private_data; runtime 109 sound/soc/fsl/imx-pcm-fiq.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 110 sound/soc/fsl/imx-pcm-fiq.c struct imx_pcm_runtime_data *iprtd = runtime->private_data; runtime 146 sound/soc/fsl/imx-pcm-fiq.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 147 sound/soc/fsl/imx-pcm-fiq.c struct imx_pcm_runtime_data *iprtd = runtime->private_data; runtime 149 sound/soc/fsl/imx-pcm-fiq.c return bytes_to_frames(substream->runtime, iprtd->offset); runtime 170 sound/soc/fsl/imx-pcm-fiq.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 177 sound/soc/fsl/imx-pcm-fiq.c runtime->private_data = iprtd; runtime 186 sound/soc/fsl/imx-pcm-fiq.c ret = snd_pcm_hw_constraint_integer(substream->runtime, runtime 199 sound/soc/fsl/imx-pcm-fiq.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 200 sound/soc/fsl/imx-pcm-fiq.c struct imx_pcm_runtime_data *iprtd = runtime->private_data; runtime 212 sound/soc/fsl/imx-pcm-fiq.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 215 sound/soc/fsl/imx-pcm-fiq.c ret = dma_mmap_wc(substream->pcm->card->dev, vma, runtime->dma_area, runtime 216 sound/soc/fsl/imx-pcm-fiq.c runtime->dma_addr, runtime->dma_bytes); runtime 219 sound/soc/fsl/imx-pcm-fiq.c runtime->dma_area, runtime 220 sound/soc/fsl/imx-pcm-fiq.c &runtime->dma_addr, runtime 221 sound/soc/fsl/imx-pcm-fiq.c runtime->dma_bytes); runtime 68 sound/soc/fsl/mpc5200_dma.c bd->data[0] = s->runtime->dma_addr + (s->period_next * s->period_bytes); runtime 72 sound/soc/fsl/mpc5200_dma.c s->period_next = (s->period_next + 1) % s->runtime->periods; runtime 86 sound/soc/fsl/mpc5200_dma.c s->period_current = (s->period_current+1) % s->runtime->periods; runtime 117 sound/soc/fsl/mpc5200_dma.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 127 sound/soc/fsl/mpc5200_dma.c substream->pstr->stream, runtime->frame_bits, runtime 128 sound/soc/fsl/mpc5200_dma.c (int)runtime->period_size, runtime->periods); runtime 129 sound/soc/fsl/mpc5200_dma.c s->period_bytes = frames_to_bytes(runtime, runtime 130 sound/soc/fsl/mpc5200_dma.c runtime->period_size); runtime 135 sound/soc/fsl/mpc5200_dma.c s->runtime = runtime; runtime 147 sound/soc/fsl/mpc5200_dma.c for (i = 0; i < runtime->periods; i++) runtime 215 sound/soc/fsl/mpc5200_dma.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 230 sound/soc/fsl/mpc5200_dma.c rc = snd_pcm_hw_constraint_integer(runtime, runtime 280 sound/soc/fsl/mpc5200_dma.c return bytes_to_frames(substream->runtime, count); runtime 23 sound/soc/fsl/mpc5200_dma.h struct snd_pcm_runtime *runtime; runtime 46 sound/soc/intel/atom/sst-mfld-platform-compress.c struct snd_compr_runtime *runtime = cstream->runtime; runtime 68 sound/soc/intel/atom/sst-mfld-platform-compress.c runtime->private_data = stream; runtime 80 sound/soc/intel/atom/sst-mfld-platform-compress.c stream = cstream->runtime->private_data; runtime 105 sound/soc/intel/atom/sst-mfld-platform-compress.c stream = cstream->runtime->private_data; runtime 148 sound/soc/intel/atom/sst-mfld-platform-compress.c virt_to_phys(cstream->runtime->buffer); runtime 150 sound/soc/intel/atom/sst-mfld-platform-compress.c cstream->runtime->buffer_size; runtime 152 sound/soc/intel/atom/sst-mfld-platform-compress.c str_params.aparams.frag_size = cstream->runtime->fragment_size; runtime 171 sound/soc/intel/atom/sst-mfld-platform-compress.c struct sst_runtime_stream *stream = cstream->runtime->private_data; runtime 207 sound/soc/intel/atom/sst-mfld-platform-compress.c stream = cstream->runtime->private_data; runtime 210 sound/soc/intel/atom/sst-mfld-platform-compress.c (u32)cstream->runtime->buffer_size; runtime 220 sound/soc/intel/atom/sst-mfld-platform-compress.c stream = cstream->runtime->private_data; runtime 231 sound/soc/intel/atom/sst-mfld-platform-compress.c cstream->runtime->private_data; runtime 240 sound/soc/intel/atom/sst-mfld-platform-compress.c cstream->runtime->private_data; runtime 249 sound/soc/intel/atom/sst-mfld-platform-compress.c cstream->runtime->private_data; runtime 132 sound/soc/intel/atom/sst-mfld-platform-pcm.c channels = substream->runtime->channels; runtime 133 sound/soc/intel/atom/sst-mfld-platform-pcm.c period_size = substream->runtime->period_size; runtime 134 sound/soc/intel/atom/sst-mfld-platform-pcm.c periodbytes = samples_to_bytes(substream->runtime, period_size); runtime 145 sound/soc/intel/atom/sst-mfld-platform-pcm.c param->uc.pcm_params.num_chan = (u8) substream->runtime->channels; runtime 146 sound/soc/intel/atom/sst-mfld-platform-pcm.c param->uc.pcm_params.pcm_wd_sz = substream->runtime->sample_bits; runtime 147 sound/soc/intel/atom/sst-mfld-platform-pcm.c param->uc.pcm_params.sfreq = substream->runtime->rate; runtime 226 sound/soc/intel/atom/sst-mfld-platform-pcm.c substream->runtime->private_data; runtime 236 sound/soc/intel/atom/sst-mfld-platform-pcm.c substream->runtime->dma_area = substream->dma_buffer.area; runtime 262 sound/soc/intel/atom/sst-mfld-platform-pcm.c if (!substream || !substream->runtime) runtime 264 sound/soc/intel/atom/sst-mfld-platform-pcm.c stream = substream->runtime->private_data; runtime 276 sound/soc/intel/atom/sst-mfld-platform-pcm.c substream->runtime->private_data; runtime 285 sound/soc/intel/atom/sst-mfld-platform-pcm.c stream->stream_info.sfreq = substream->runtime->rate; runtime 307 sound/soc/intel/atom/sst-mfld-platform-pcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 330 sound/soc/intel/atom/sst-mfld-platform-pcm.c runtime->private_data = stream; runtime 337 sound/soc/intel/atom/sst-mfld-platform-pcm.c snd_pcm_hw_constraint_step(substream->runtime, 0, runtime 340 sound/soc/intel/atom/sst-mfld-platform-pcm.c return snd_pcm_hw_constraint_integer(runtime, runtime 354 sound/soc/intel/atom/sst-mfld-platform-pcm.c stream = substream->runtime->private_data; runtime 370 sound/soc/intel/atom/sst-mfld-platform-pcm.c stream = substream->runtime->private_data; runtime 386 sound/soc/intel/atom/sst-mfld-platform-pcm.c substream->runtime->hw.info = SNDRV_PCM_INFO_BLOCK_TRANSFER; runtime 401 sound/soc/intel/atom/sst-mfld-platform-pcm.c memset(substream->runtime->dma_area, 0, params_buffer_bytes(params)); runtime 591 sound/soc/intel/atom/sst-mfld-platform-pcm.c struct snd_pcm_runtime *runtime; runtime 596 sound/soc/intel/atom/sst-mfld-platform-pcm.c runtime = substream->runtime; runtime 597 sound/soc/intel/atom/sst-mfld-platform-pcm.c runtime->hw = sst_platform_pcm_hw; runtime 612 sound/soc/intel/atom/sst-mfld-platform-pcm.c stream = substream->runtime->private_data; runtime 657 sound/soc/intel/atom/sst-mfld-platform-pcm.c stream = substream->runtime->private_data; runtime 667 sound/soc/intel/atom/sst-mfld-platform-pcm.c substream->runtime->delay = str_info->pcm_delay; runtime 502 sound/soc/intel/atom/sst/sst_drv_interface.c delay_frames = bytes_to_frames(substream->runtime, delay_bytes); runtime 505 sound/soc/intel/atom/sst/sst_drv_interface.c pointer_samples = bytes_to_samples(substream->runtime, pointer_bytes); runtime 509 sound/soc/intel/atom/sst/sst_drv_interface.c info->buffer_ptr = pointer_samples / substream->runtime->channels; runtime 211 sound/soc/intel/baytrail/sst-baytrail-pcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 221 sound/soc/intel/baytrail/sst-baytrail-pcm.c pos = frames_to_bytes(runtime, runtime 222 sound/soc/intel/baytrail/sst-baytrail-pcm.c (runtime->control->appl_ptr % runtime 223 sound/soc/intel/baytrail/sst-baytrail-pcm.c runtime->buffer_size)); runtime 234 sound/soc/intel/baytrail/sst-baytrail-pcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 241 sound/soc/intel/baytrail/sst-baytrail-pcm.c return bytes_to_frames(runtime, pcm_data->hw_ptr); runtime 285 sound/soc/intel/boards/bxt_da7219_max98357a.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 294 sound/soc/intel/boards/bxt_da7219_max98357a.c runtime->hw.channels_max = DUAL_CHANNEL; runtime 295 sound/soc/intel/boards/bxt_da7219_max98357a.c snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, runtime 298 sound/soc/intel/boards/bxt_da7219_max98357a.c runtime->hw.formats = SNDRV_PCM_FMTBIT_S16_LE; runtime 299 sound/soc/intel/boards/bxt_da7219_max98357a.c snd_pcm_hw_constraint_msbits(runtime, 0, 16, 16); runtime 301 sound/soc/intel/boards/bxt_da7219_max98357a.c snd_pcm_hw_constraint_list(runtime, 0, runtime 326 sound/soc/intel/boards/bxt_da7219_max98357a.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 328 sound/soc/intel/boards/bxt_da7219_max98357a.c runtime->hw.channels_min = runtime->hw.channels_max = QUAD_CHANNEL; runtime 329 sound/soc/intel/boards/bxt_da7219_max98357a.c snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, runtime 332 sound/soc/intel/boards/bxt_da7219_max98357a.c return snd_pcm_hw_constraint_list(substream->runtime, 0, runtime 360 sound/soc/intel/boards/bxt_da7219_max98357a.c substream->runtime->hw.channels_max = 1; runtime 361 sound/soc/intel/boards/bxt_da7219_max98357a.c snd_pcm_hw_constraint_list(substream->runtime, 0, runtime 365 sound/soc/intel/boards/bxt_da7219_max98357a.c return snd_pcm_hw_constraint_list(substream->runtime, 0, runtime 275 sound/soc/intel/boards/bxt_rt298.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 277 sound/soc/intel/boards/bxt_rt298.c runtime->hw.channels_max = 4; runtime 278 sound/soc/intel/boards/bxt_rt298.c snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, runtime 281 sound/soc/intel/boards/bxt_rt298.c return snd_pcm_hw_constraint_list(substream->runtime, 0, runtime 301 sound/soc/intel/boards/bxt_rt298.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 310 sound/soc/intel/boards/bxt_rt298.c runtime->hw.channels_max = 2; runtime 311 sound/soc/intel/boards/bxt_rt298.c snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, runtime 314 sound/soc/intel/boards/bxt_rt298.c runtime->hw.formats = SNDRV_PCM_FMTBIT_S16_LE; runtime 315 sound/soc/intel/boards/bxt_rt298.c snd_pcm_hw_constraint_msbits(runtime, 0, 16, 16); runtime 316 sound/soc/intel/boards/bxt_rt298.c snd_pcm_hw_constraint_list(runtime, 0, runtime 83 sound/soc/intel/boards/byt-max98090.c static int byt_max98090_init(struct snd_soc_pcm_runtime *runtime) runtime 86 sound/soc/intel/boards/byt-max98090.c struct snd_soc_card *card = runtime->card; runtime 92 sound/soc/intel/boards/byt-max98090.c ret = snd_soc_dai_set_sysclk(runtime->codec_dai, runtime 101 sound/soc/intel/boards/byt-max98090.c ret = snd_soc_card_jack_new(runtime->card, "Headset", runtime 123 sound/soc/intel/boards/byt-rt5640.c static int byt_rt5640_init(struct snd_soc_pcm_runtime *runtime) runtime 126 sound/soc/intel/boards/byt-rt5640.c struct snd_soc_component *component = runtime->codec_dai->component; runtime 127 sound/soc/intel/boards/byt-rt5640.c struct snd_soc_card *card = runtime->card; runtime 146 sound/soc/intel/boards/bytcht_cx2072x.c return snd_pcm_hw_constraint_single(substream->runtime, runtime 101 sound/soc/intel/boards/bytcht_da7213.c return snd_pcm_hw_constraint_single(substream->runtime, runtime 158 sound/soc/intel/boards/bytcht_es8316.c static int byt_cht_es8316_init(struct snd_soc_pcm_runtime *runtime) runtime 160 sound/soc/intel/boards/bytcht_es8316.c struct snd_soc_component *codec = runtime->codec_dai->component; runtime 161 sound/soc/intel/boards/bytcht_es8316.c struct snd_soc_card *card = runtime->card; runtime 215 sound/soc/intel/boards/bytcht_es8316.c ret = snd_soc_dai_set_sysclk(runtime->codec_dai, 0, 19200000, runtime 294 sound/soc/intel/boards/bytcht_es8316.c return snd_pcm_hw_constraint_single(substream->runtime, runtime 91 sound/soc/intel/boards/bytcht_nocodec.c return snd_pcm_hw_constraint_list(substream->runtime, 0, runtime 815 sound/soc/intel/boards/bytcr_rt5640.c static int byt_rt5640_init(struct snd_soc_pcm_runtime *runtime) runtime 817 sound/soc/intel/boards/bytcr_rt5640.c struct snd_soc_card *card = runtime->card; runtime 819 sound/soc/intel/boards/bytcr_rt5640.c struct snd_soc_component *component = runtime->codec_dai->component; runtime 1026 sound/soc/intel/boards/bytcr_rt5640.c return snd_pcm_hw_constraint_single(substream->runtime, runtime 540 sound/soc/intel/boards/bytcr_rt5651.c static int byt_rt5651_init(struct snd_soc_pcm_runtime *runtime) runtime 542 sound/soc/intel/boards/bytcr_rt5651.c struct snd_soc_card *card = runtime->card; runtime 543 sound/soc/intel/boards/bytcr_rt5651.c struct snd_soc_component *codec = runtime->codec_dai->component; runtime 638 sound/soc/intel/boards/bytcr_rt5651.c ret = snd_soc_card_jack_new(runtime->card, "Headset", runtime 642 sound/soc/intel/boards/bytcr_rt5651.c dev_err(runtime->dev, "jack creation failed %d\n", ret); runtime 727 sound/soc/intel/boards/bytcr_rt5651.c return snd_pcm_hw_constraint_list(substream->runtime, 0, runtime 186 sound/soc/intel/boards/cht_bsw_max98090_ti.c static int cht_codec_init(struct snd_soc_pcm_runtime *runtime) runtime 190 sound/soc/intel/boards/cht_bsw_max98090_ti.c struct cht_mc_private *ctx = snd_soc_card_get_drvdata(runtime->card); runtime 204 sound/soc/intel/boards/cht_bsw_max98090_ti.c ret = snd_soc_card_jack_new(runtime->card, "Headset Jack", runtime 208 sound/soc/intel/boards/cht_bsw_max98090_ti.c dev_err(runtime->dev, "Headset Jack creation failed %d\n", ret); runtime 212 sound/soc/intel/boards/cht_bsw_max98090_ti.c ret = snd_soc_jack_add_gpiods(runtime->card->dev->parent, jack, runtime 220 sound/soc/intel/boards/cht_bsw_max98090_ti.c dev_err(runtime->dev, runtime 245 sound/soc/intel/boards/cht_bsw_max98090_ti.c dev_err(runtime->dev, "unable to set MCLK rate\n"); runtime 286 sound/soc/intel/boards/cht_bsw_max98090_ti.c return snd_pcm_hw_constraint_single(substream->runtime, runtime 95 sound/soc/intel/boards/cht_bsw_nau8824.c static int cht_codec_init(struct snd_soc_pcm_runtime *runtime) runtime 97 sound/soc/intel/boards/cht_bsw_nau8824.c struct cht_mc_private *ctx = snd_soc_card_get_drvdata(runtime->card); runtime 99 sound/soc/intel/boards/cht_bsw_nau8824.c struct snd_soc_dai *codec_dai = runtime->codec_dai; runtime 106 sound/soc/intel/boards/cht_bsw_nau8824.c dev_err(runtime->dev, "can't set codec TDM slot %d\n", ret); runtime 118 sound/soc/intel/boards/cht_bsw_nau8824.c ret = snd_soc_card_jack_new(runtime->card, "Headset", jack_type, jack, runtime 121 sound/soc/intel/boards/cht_bsw_nau8824.c dev_err(runtime->dev, runtime 158 sound/soc/intel/boards/cht_bsw_nau8824.c return snd_pcm_hw_constraint_single(substream->runtime, runtime 251 sound/soc/intel/boards/cht_bsw_rt5645.c static int cht_codec_init(struct snd_soc_pcm_runtime *runtime) runtime 253 sound/soc/intel/boards/cht_bsw_rt5645.c struct snd_soc_card *card = runtime->card; runtime 254 sound/soc/intel/boards/cht_bsw_rt5645.c struct cht_mc_private *ctx = snd_soc_card_get_drvdata(runtime->card); runtime 255 sound/soc/intel/boards/cht_bsw_rt5645.c struct snd_soc_component *component = runtime->codec_dai->component; runtime 305 sound/soc/intel/boards/cht_bsw_rt5645.c ret = snd_soc_card_jack_new(runtime->card, "Headset", runtime 309 sound/soc/intel/boards/cht_bsw_rt5645.c dev_err(runtime->dev, "Headset jack creation failed %d\n", ret); runtime 333 sound/soc/intel/boards/cht_bsw_rt5645.c dev_err(runtime->dev, "unable to set MCLK rate\n"); runtime 417 sound/soc/intel/boards/cht_bsw_rt5645.c return snd_pcm_hw_constraint_single(substream->runtime, runtime 176 sound/soc/intel/boards/cht_bsw_rt5672.c static int cht_codec_init(struct snd_soc_pcm_runtime *runtime) runtime 179 sound/soc/intel/boards/cht_bsw_rt5672.c struct snd_soc_dai *codec_dai = runtime->codec_dai; runtime 181 sound/soc/intel/boards/cht_bsw_rt5672.c struct cht_mc_private *ctx = snd_soc_card_get_drvdata(runtime->card); runtime 184 sound/soc/intel/boards/cht_bsw_rt5672.c dev_warn(runtime->dev, "Unable to add GPIO mapping table\n"); runtime 200 sound/soc/intel/boards/cht_bsw_rt5672.c ret = snd_soc_card_jack_new(runtime->card, "Headset", runtime 232 sound/soc/intel/boards/cht_bsw_rt5672.c dev_err(runtime->dev, "unable to set MCLK rate\n"); runtime 279 sound/soc/intel/boards/cht_bsw_rt5672.c return snd_pcm_hw_constraint_single(substream->runtime, runtime 286 sound/soc/intel/boards/glk_rt5682_max98357a.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 288 sound/soc/intel/boards/glk_rt5682_max98357a.c runtime->hw.channels_min = runtime->hw.channels_max = QUAD_CHANNEL; runtime 289 sound/soc/intel/boards/glk_rt5682_max98357a.c snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, runtime 292 sound/soc/intel/boards/glk_rt5682_max98357a.c return snd_pcm_hw_constraint_list(substream->runtime, 0, runtime 311 sound/soc/intel/boards/glk_rt5682_max98357a.c return snd_pcm_hw_constraint_list(substream->runtime, 0, runtime 279 sound/soc/intel/boards/kbl_da7219_max98357a.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 288 sound/soc/intel/boards/kbl_da7219_max98357a.c runtime->hw.channels_max = DUAL_CHANNEL; runtime 289 sound/soc/intel/boards/kbl_da7219_max98357a.c snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, runtime 292 sound/soc/intel/boards/kbl_da7219_max98357a.c runtime->hw.formats = SNDRV_PCM_FMTBIT_S16_LE; runtime 293 sound/soc/intel/boards/kbl_da7219_max98357a.c snd_pcm_hw_constraint_msbits(runtime, 0, 16, 16); runtime 295 sound/soc/intel/boards/kbl_da7219_max98357a.c snd_pcm_hw_constraint_list(runtime, 0, runtime 325 sound/soc/intel/boards/kbl_da7219_max98357a.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 327 sound/soc/intel/boards/kbl_da7219_max98357a.c runtime->hw.channels_min = runtime->hw.channels_max = QUAD_CHANNEL; runtime 328 sound/soc/intel/boards/kbl_da7219_max98357a.c snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, runtime 331 sound/soc/intel/boards/kbl_da7219_max98357a.c return snd_pcm_hw_constraint_list(substream->runtime, 0, runtime 178 sound/soc/intel/boards/kbl_da7219_max98927.c struct snd_soc_pcm_runtime *runtime = substream->private_data; runtime 181 sound/soc/intel/boards/kbl_da7219_max98927.c for (j = 0; j < runtime->num_codecs; j++) { runtime 182 sound/soc/intel/boards/kbl_da7219_max98927.c struct snd_soc_dai *codec_dai = runtime->codec_dais[j]; runtime 187 sound/soc/intel/boards/kbl_da7219_max98927.c dev_err(runtime->dev, "DEV0 TDM slot err:%d\n", ret); runtime 194 sound/soc/intel/boards/kbl_da7219_max98927.c dev_err(runtime->dev, "DEV1 TDM slot err:%d\n", ret); runtime 202 sound/soc/intel/boards/kbl_da7219_max98927.c dev_err(runtime->dev, runtime 211 sound/soc/intel/boards/kbl_da7219_max98927.c dev_err(runtime->dev, runtime 454 sound/soc/intel/boards/kbl_da7219_max98927.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 463 sound/soc/intel/boards/kbl_da7219_max98927.c runtime->hw.channels_max = DUAL_CHANNEL; runtime 464 sound/soc/intel/boards/kbl_da7219_max98927.c snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, runtime 473 sound/soc/intel/boards/kbl_da7219_max98927.c runtime->hw.formats = SNDRV_PCM_FMTBIT_S24_LE; runtime 474 sound/soc/intel/boards/kbl_da7219_max98927.c snd_pcm_hw_constraint_msbits(runtime, 0, 32, 24); runtime 477 sound/soc/intel/boards/kbl_da7219_max98927.c runtime->hw.formats = SNDRV_PCM_FMTBIT_S16_LE; runtime 478 sound/soc/intel/boards/kbl_da7219_max98927.c snd_pcm_hw_constraint_msbits(runtime, 0, 16, 16); runtime 481 sound/soc/intel/boards/kbl_da7219_max98927.c snd_pcm_hw_constraint_list(runtime, 0, runtime 511 sound/soc/intel/boards/kbl_da7219_max98927.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 514 sound/soc/intel/boards/kbl_da7219_max98927.c runtime->hw.channels_min = runtime->hw.channels_max = QUAD_CHANNEL; runtime 515 sound/soc/intel/boards/kbl_da7219_max98927.c snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, runtime 525 sound/soc/intel/boards/kbl_da7219_max98927.c runtime->hw.formats = SNDRV_PCM_FMTBIT_S24_LE; runtime 526 sound/soc/intel/boards/kbl_da7219_max98927.c snd_pcm_hw_constraint_msbits(runtime, 0, 32, 24); runtime 529 sound/soc/intel/boards/kbl_da7219_max98927.c return snd_pcm_hw_constraint_list(substream->runtime, 0, runtime 556 sound/soc/intel/boards/kbl_da7219_max98927.c substream->runtime->hw.channels_max = 1; runtime 557 sound/soc/intel/boards/kbl_da7219_max98927.c snd_pcm_hw_constraint_list(substream->runtime, 0, runtime 561 sound/soc/intel/boards/kbl_da7219_max98927.c return snd_pcm_hw_constraint_list(substream->runtime, 0, runtime 294 sound/soc/intel/boards/kbl_rt5660.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 303 sound/soc/intel/boards/kbl_rt5660.c runtime->hw.channels_max = DUAL_CHANNEL; runtime 304 sound/soc/intel/boards/kbl_rt5660.c snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, runtime 307 sound/soc/intel/boards/kbl_rt5660.c runtime->hw.formats = SNDRV_PCM_FMTBIT_S16_LE; runtime 308 sound/soc/intel/boards/kbl_rt5660.c snd_pcm_hw_constraint_msbits(runtime, 0, 16, 16); runtime 310 sound/soc/intel/boards/kbl_rt5660.c snd_pcm_hw_constraint_list(runtime, 0, runtime 370 sound/soc/intel/boards/kbl_rt5663_max98927.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 379 sound/soc/intel/boards/kbl_rt5663_max98927.c runtime->hw.channels_max = 2; runtime 380 sound/soc/intel/boards/kbl_rt5663_max98927.c snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, runtime 383 sound/soc/intel/boards/kbl_rt5663_max98927.c runtime->hw.formats = SNDRV_PCM_FMTBIT_S16_LE; runtime 384 sound/soc/intel/boards/kbl_rt5663_max98927.c snd_pcm_hw_constraint_msbits(runtime, 0, 16, 16); runtime 386 sound/soc/intel/boards/kbl_rt5663_max98927.c snd_pcm_hw_constraint_list(runtime, 0, runtime 526 sound/soc/intel/boards/kbl_rt5663_max98927.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 528 sound/soc/intel/boards/kbl_rt5663_max98927.c runtime->hw.channels_max = DMIC_CH(dmic_constraints); runtime 529 sound/soc/intel/boards/kbl_rt5663_max98927.c snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, runtime 532 sound/soc/intel/boards/kbl_rt5663_max98927.c return snd_pcm_hw_constraint_list(substream->runtime, 0, runtime 560 sound/soc/intel/boards/kbl_rt5663_max98927.c substream->runtime->hw.channels_max = 1; runtime 561 sound/soc/intel/boards/kbl_rt5663_max98927.c snd_pcm_hw_constraint_list(substream->runtime, 0, runtime 565 sound/soc/intel/boards/kbl_rt5663_max98927.c return snd_pcm_hw_constraint_list(substream->runtime, 0, runtime 240 sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 249 sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c runtime->hw.channels_max = 2; runtime 250 sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, runtime 253 sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c runtime->hw.formats = SNDRV_PCM_FMTBIT_S16_LE; runtime 254 sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c snd_pcm_hw_constraint_msbits(runtime, 0, 16, 16); runtime 256 sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c snd_pcm_hw_constraint_list(runtime, 0, runtime 397 sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 399 sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c runtime->hw.channels_max = DMIC_CH(dmic_constraints); runtime 400 sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, runtime 403 sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c runtime->hw.formats = SNDRV_PCM_FMTBIT_S16_LE; runtime 404 sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c snd_pcm_hw_constraint_msbits(runtime, 0, 16, 16); runtime 406 sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c return snd_pcm_hw_constraint_list(substream->runtime, 0, runtime 269 sound/soc/intel/boards/skl_nau88l25_max98357a.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 278 sound/soc/intel/boards/skl_nau88l25_max98357a.c runtime->hw.channels_max = 2; runtime 279 sound/soc/intel/boards/skl_nau88l25_max98357a.c snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, runtime 282 sound/soc/intel/boards/skl_nau88l25_max98357a.c runtime->hw.formats = SNDRV_PCM_FMTBIT_S16_LE; runtime 283 sound/soc/intel/boards/skl_nau88l25_max98357a.c snd_pcm_hw_constraint_msbits(runtime, 0, 16, 16); runtime 285 sound/soc/intel/boards/skl_nau88l25_max98357a.c snd_pcm_hw_constraint_list(runtime, 0, runtime 351 sound/soc/intel/boards/skl_nau88l25_max98357a.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 353 sound/soc/intel/boards/skl_nau88l25_max98357a.c runtime->hw.channels_max = DMIC_CH(dmic_constraints); runtime 354 sound/soc/intel/boards/skl_nau88l25_max98357a.c snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, runtime 357 sound/soc/intel/boards/skl_nau88l25_max98357a.c return snd_pcm_hw_constraint_list(substream->runtime, 0, runtime 385 sound/soc/intel/boards/skl_nau88l25_max98357a.c substream->runtime->hw.channels_max = 1; runtime 386 sound/soc/intel/boards/skl_nau88l25_max98357a.c snd_pcm_hw_constraint_list(substream->runtime, 0, runtime 390 sound/soc/intel/boards/skl_nau88l25_max98357a.c return snd_pcm_hw_constraint_list(substream->runtime, 0, runtime 289 sound/soc/intel/boards/skl_nau88l25_ssm4567.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 298 sound/soc/intel/boards/skl_nau88l25_ssm4567.c runtime->hw.channels_max = 2; runtime 299 sound/soc/intel/boards/skl_nau88l25_ssm4567.c snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, runtime 302 sound/soc/intel/boards/skl_nau88l25_ssm4567.c runtime->hw.formats = SNDRV_PCM_FMTBIT_S16_LE; runtime 303 sound/soc/intel/boards/skl_nau88l25_ssm4567.c snd_pcm_hw_constraint_msbits(runtime, 0, 16, 16); runtime 305 sound/soc/intel/boards/skl_nau88l25_ssm4567.c snd_pcm_hw_constraint_list(runtime, 0, runtime 389 sound/soc/intel/boards/skl_nau88l25_ssm4567.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 391 sound/soc/intel/boards/skl_nau88l25_ssm4567.c runtime->hw.channels_max = DMIC_CH(dmic_constraints); runtime 392 sound/soc/intel/boards/skl_nau88l25_ssm4567.c snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, runtime 395 sound/soc/intel/boards/skl_nau88l25_ssm4567.c return snd_pcm_hw_constraint_list(substream->runtime, 0, runtime 423 sound/soc/intel/boards/skl_nau88l25_ssm4567.c substream->runtime->hw.channels_max = 1; runtime 424 sound/soc/intel/boards/skl_nau88l25_ssm4567.c snd_pcm_hw_constraint_list(substream->runtime, 0, runtime 428 sound/soc/intel/boards/skl_nau88l25_ssm4567.c return snd_pcm_hw_constraint_list(substream->runtime, 0, runtime 183 sound/soc/intel/boards/skl_rt286.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 192 sound/soc/intel/boards/skl_rt286.c runtime->hw.channels_max = 2; runtime 193 sound/soc/intel/boards/skl_rt286.c snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, runtime 196 sound/soc/intel/boards/skl_rt286.c runtime->hw.formats = SNDRV_PCM_FMTBIT_S16_LE; runtime 197 sound/soc/intel/boards/skl_rt286.c snd_pcm_hw_constraint_msbits(runtime, 0, 16, 16); runtime 199 sound/soc/intel/boards/skl_rt286.c snd_pcm_hw_constraint_list(runtime, 0, runtime 272 sound/soc/intel/boards/skl_rt286.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 274 sound/soc/intel/boards/skl_rt286.c runtime->hw.channels_max = 4; runtime 275 sound/soc/intel/boards/skl_rt286.c snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, runtime 278 sound/soc/intel/boards/skl_rt286.c return snd_pcm_hw_constraint_list(substream->runtime, 0, runtime 355 sound/soc/intel/common/sst-dsp-priv.h void sst_module_runtime_free(struct sst_module_runtime *runtime); runtime 358 sound/soc/intel/common/sst-dsp-priv.h int sst_module_runtime_alloc_blocks(struct sst_module_runtime *runtime, runtime 360 sound/soc/intel/common/sst-dsp-priv.h int sst_module_runtime_free_blocks(struct sst_module_runtime *runtime); runtime 361 sound/soc/intel/common/sst-dsp-priv.h int sst_module_runtime_save(struct sst_module_runtime *runtime, runtime 363 sound/soc/intel/common/sst-dsp-priv.h int sst_module_runtime_restore(struct sst_module_runtime *runtime, runtime 414 sound/soc/intel/common/sst-firmware.c struct sst_module_runtime *runtime, *rtmp; runtime 425 sound/soc/intel/common/sst-firmware.c list_for_each_entry_safe(runtime, rtmp, &module->runtime_list, list) { runtime 427 sound/soc/intel/common/sst-firmware.c block_list_remove(dsp, &runtime->block_list); runtime 428 sound/soc/intel/common/sst-firmware.c list_del(&runtime->list); runtime 429 sound/soc/intel/common/sst-firmware.c kfree(runtime); runtime 526 sound/soc/intel/common/sst-firmware.c struct sst_module_runtime *runtime; runtime 528 sound/soc/intel/common/sst-firmware.c runtime = kzalloc(sizeof(*runtime), GFP_KERNEL); runtime 529 sound/soc/intel/common/sst-firmware.c if (runtime == NULL) runtime 532 sound/soc/intel/common/sst-firmware.c runtime->id = id; runtime 533 sound/soc/intel/common/sst-firmware.c runtime->dsp = dsp; runtime 534 sound/soc/intel/common/sst-firmware.c runtime->module = module; runtime 535 sound/soc/intel/common/sst-firmware.c INIT_LIST_HEAD(&runtime->block_list); runtime 538 sound/soc/intel/common/sst-firmware.c list_add(&runtime->list, &module->runtime_list); runtime 541 sound/soc/intel/common/sst-firmware.c return runtime; runtime 545 sound/soc/intel/common/sst-firmware.c void sst_module_runtime_free(struct sst_module_runtime *runtime) runtime 547 sound/soc/intel/common/sst-firmware.c struct sst_dsp *dsp = runtime->dsp; runtime 550 sound/soc/intel/common/sst-firmware.c list_del(&runtime->list); runtime 553 sound/soc/intel/common/sst-firmware.c kfree(runtime); runtime 853 sound/soc/intel/common/sst-firmware.c int sst_module_runtime_alloc_blocks(struct sst_module_runtime *runtime, runtime 856 sound/soc/intel/common/sst-firmware.c struct sst_dsp *dsp = runtime->dsp; runtime 857 sound/soc/intel/common/sst-firmware.c struct sst_module *module = runtime->module; runtime 879 sound/soc/intel/common/sst-firmware.c ret = block_alloc_fixed(dsp, &ba, &runtime->block_list); runtime 886 sound/soc/intel/common/sst-firmware.c ret = block_alloc(dsp, &ba, &runtime->block_list); runtime 895 sound/soc/intel/common/sst-firmware.c runtime->persistent_offset = ba.offset; runtime 898 sound/soc/intel/common/sst-firmware.c ret = block_list_prepare(dsp, &runtime->block_list); runtime 914 sound/soc/intel/common/sst-firmware.c int sst_module_runtime_free_blocks(struct sst_module_runtime *runtime) runtime 916 sound/soc/intel/common/sst-firmware.c struct sst_dsp *dsp = runtime->dsp; runtime 919 sound/soc/intel/common/sst-firmware.c block_list_remove(dsp, &runtime->block_list); runtime 925 sound/soc/intel/common/sst-firmware.c int sst_module_runtime_save(struct sst_module_runtime *runtime, runtime 928 sound/soc/intel/common/sst-firmware.c struct sst_dsp *dsp = runtime->dsp; runtime 929 sound/soc/intel/common/sst-firmware.c struct sst_module *module = runtime->module; runtime 933 sound/soc/intel/common/sst-firmware.c runtime->id, runtime->persistent_offset, runtime 953 sound/soc/intel/common/sst-firmware.c dsp->addr.lpe_base + runtime->persistent_offset, runtime 962 sound/soc/intel/common/sst-firmware.c runtime->persistent_offset, runtime 971 sound/soc/intel/common/sst-firmware.c int sst_module_runtime_restore(struct sst_module_runtime *runtime, runtime 974 sound/soc/intel/common/sst-firmware.c struct sst_dsp *dsp = runtime->dsp; runtime 975 sound/soc/intel/common/sst-firmware.c struct sst_module *module = runtime->module; runtime 979 sound/soc/intel/common/sst-firmware.c runtime->id, runtime->persistent_offset, runtime 996 sound/soc/intel/common/sst-firmware.c dsp->addr.lpe_base + runtime->persistent_offset, runtime 1004 sound/soc/intel/common/sst-firmware.c sst_memcpy32(dsp->addr.lpe + runtime->persistent_offset, runtime 1169 sound/soc/intel/common/sst-firmware.c struct sst_module_runtime *runtime; runtime 1174 sound/soc/intel/common/sst-firmware.c list_for_each_entry(runtime, &module->runtime_list, list) { runtime 1175 sound/soc/intel/common/sst-firmware.c if (runtime->id == id) { runtime 1177 sound/soc/intel/common/sst-firmware.c return runtime; runtime 1146 sound/soc/intel/haswell/sst-haswell-ipc.c struct sst_hsw_stream *stream, struct sst_module_runtime *runtime) runtime 1150 sound/soc/intel/haswell/sst-haswell-ipc.c struct sst_module *module = runtime->module; runtime 1163 sound/soc/intel/haswell/sst-haswell-ipc.c sst_dsp_get_offset(dsp, runtime->persistent_offset, SST_MEM_DRAM); runtime 1171 sound/soc/intel/haswell/sst-haswell-ipc.c runtime->id); runtime 1455 sound/soc/intel/haswell/sst-haswell-ipc.c struct sst_module_runtime *runtime; runtime 1465 sound/soc/intel/haswell/sst-haswell-ipc.c runtime = sst_module_runtime_new(module, mod_id, NULL); runtime 1466 sound/soc/intel/haswell/sst-haswell-ipc.c if (runtime == NULL) { runtime 1472 sound/soc/intel/haswell/sst-haswell-ipc.c err = sst_module_runtime_alloc_blocks(runtime, offset); runtime 1476 sound/soc/intel/haswell/sst-haswell-ipc.c sst_module_runtime_free(runtime); runtime 1480 sound/soc/intel/haswell/sst-haswell-ipc.c dev_dbg(dsp->dev, "runtime id %d created for module %d\n", runtime->id, runtime 1482 sound/soc/intel/haswell/sst-haswell-ipc.c return runtime; runtime 1485 sound/soc/intel/haswell/sst-haswell-ipc.c void sst_hsw_runtime_module_free(struct sst_module_runtime *runtime) runtime 1487 sound/soc/intel/haswell/sst-haswell-ipc.c sst_module_runtime_free_blocks(runtime); runtime 1488 sound/soc/intel/haswell/sst-haswell-ipc.c sst_module_runtime_free(runtime); runtime 1894 sound/soc/intel/haswell/sst-haswell-ipc.c struct sst_module_runtime *runtime; runtime 1914 sound/soc/intel/haswell/sst-haswell-ipc.c runtime = sst_module_runtime_get_from_id(module, module_id); runtime 1915 sound/soc/intel/haswell/sst-haswell-ipc.c if (runtime == NULL) { runtime 1931 sound/soc/intel/haswell/sst-haswell-ipc.c runtime->persistent_offset, SST_MEM_DRAM); runtime 448 sound/soc/intel/haswell/sst-haswell-ipc.h struct sst_hsw_stream *stream, struct sst_module_runtime *runtime); runtime 519 sound/soc/intel/haswell/sst-haswell-ipc.h void sst_hsw_runtime_module_free(struct sst_module_runtime *runtime); runtime 106 sound/soc/intel/haswell/sst-haswell-pcm.c struct sst_module_runtime *runtime; runtime 465 sound/soc/intel/haswell/sst-haswell-pcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 604 sound/soc/intel/haswell/sst-haswell-pcm.c ret = create_adsp_page_table(substream, pdata, rtd, runtime->dma_area, runtime 605 sound/soc/intel/haswell/sst-haswell-pcm.c runtime->dma_bytes, rtd->cpu_dai->id); runtime 612 sound/soc/intel/haswell/sst-haswell-pcm.c if (runtime->dma_bytes % PAGE_SIZE) runtime 613 sound/soc/intel/haswell/sst-haswell-pcm.c pages = (runtime->dma_bytes / PAGE_SIZE) + 1; runtime 615 sound/soc/intel/haswell/sst-haswell-pcm.c pages = runtime->dma_bytes / PAGE_SIZE; runtime 619 sound/soc/intel/haswell/sst-haswell-pcm.c pages, runtime->dma_bytes, 0, runtime 635 sound/soc/intel/haswell/sst-haswell-pcm.c pcm_data->runtime); runtime 673 sound/soc/intel/haswell/sst-haswell-pcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 695 sound/soc/intel/haswell/sst-haswell-pcm.c pos = runtime->control->appl_ptr % runtime->buffer_size; runtime 710 sound/soc/intel/haswell/sst-haswell-pcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 716 sound/soc/intel/haswell/sst-haswell-pcm.c snd_pcm_uframes_t position = bytes_to_frames(runtime, runtime 718 sound/soc/intel/haswell/sst-haswell-pcm.c unsigned char *dma_area = runtime->dma_area; runtime 720 sound/soc/intel/haswell/sst-haswell-pcm.c bytes_to_frames(runtime, runtime->dma_bytes); runtime 724 sound/soc/intel/haswell/sst-haswell-pcm.c pos = frames_to_bytes(runtime, runtime 725 sound/soc/intel/haswell/sst-haswell-pcm.c (runtime->control->appl_ptr % runtime->buffer_size)); runtime 742 sound/soc/intel/haswell/sst-haswell-pcm.c samples = SST_SAMPLES(runtime, position - old_position); runtime 743 sound/soc/intel/haswell/sst-haswell-pcm.c snd_pcm_format_set_silence(runtime->format, runtime 745 sound/soc/intel/haswell/sst-haswell-pcm.c runtime, old_position), runtime 751 sound/soc/intel/haswell/sst-haswell-pcm.c samples = SST_SAMPLES(runtime, runtime 753 sound/soc/intel/haswell/sst-haswell-pcm.c snd_pcm_format_set_silence(runtime->format, runtime 755 sound/soc/intel/haswell/sst-haswell-pcm.c runtime, old_position), runtime 760 sound/soc/intel/haswell/sst-haswell-pcm.c samples = SST_SAMPLES(runtime, position); runtime 761 sound/soc/intel/haswell/sst-haswell-pcm.c snd_pcm_format_set_silence(runtime->format, runtime 776 sound/soc/intel/haswell/sst-haswell-pcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 790 sound/soc/intel/haswell/sst-haswell-pcm.c offset = bytes_to_frames(runtime, position); runtime 886 sound/soc/intel/haswell/sst-haswell-pcm.c pcm_data->runtime = sst_hsw_runtime_module_create(hsw, runtime 888 sound/soc/intel/haswell/sst-haswell-pcm.c if (pcm_data->runtime == NULL) runtime 891 sound/soc/intel/haswell/sst-haswell-pcm.c pcm_data->runtime->persistent_offset; runtime 907 sound/soc/intel/haswell/sst-haswell-pcm.c sst_hsw_runtime_module_free(pcm_data->runtime); runtime 921 sound/soc/intel/haswell/sst-haswell-pcm.c if (pcm_data->runtime){ runtime 922 sound/soc/intel/haswell/sst-haswell-pcm.c sst_hsw_runtime_module_free(pcm_data->runtime); runtime 923 sound/soc/intel/haswell/sst-haswell-pcm.c pcm_data->runtime = NULL; runtime 1298 sound/soc/intel/haswell/sst-haswell-pcm.c err = sst_module_runtime_restore(pcm_data->runtime, runtime 1346 sound/soc/intel/haswell/sst-haswell-pcm.c err = sst_module_runtime_save(pcm_data->runtime, runtime 59 sound/soc/intel/skylake/skl-pcm.c return substream->runtime->private_data; runtime 90 sound/soc/intel/skylake/skl-pcm.c struct snd_pcm_runtime *runtime) runtime 92 sound/soc/intel/skylake/skl-pcm.c snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS); runtime 95 sound/soc/intel/skylake/skl-pcm.c snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_BUFFER_TIME, runtime 225 sound/soc/intel/skylake/skl-pcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 237 sound/soc/intel/skylake/skl-pcm.c skl_set_pcm_constrains(bus, runtime); runtime 244 sound/soc/intel/skylake/skl-pcm.c runtime->hw.info &= ~SNDRV_PCM_INFO_HAS_WALL_CLOCK; /* legacy */ runtime 245 sound/soc/intel/skylake/skl-pcm.c runtime->hw.info &= ~SNDRV_PCM_INFO_HAS_LINK_ATIME; runtime 248 sound/soc/intel/skylake/skl-pcm.c runtime->private_data = stream; runtime 287 sound/soc/intel/skylake/skl-pcm.c (substream->runtime->status->state == SNDRV_PCM_STATE_XRUN || runtime 311 sound/soc/intel/skylake/skl-pcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 323 sound/soc/intel/skylake/skl-pcm.c runtime->rate, runtime->channels, runtime->format); runtime 610 sound/soc/intel/skylake/skl-pcm.c (substream->runtime->status->state == SNDRV_PCM_STATE_XRUN)) runtime 1225 sound/soc/intel/skylake/skl-pcm.c return bytes_to_frames(substream->runtime, pos); runtime 1240 sound/soc/intel/skylake/skl-pcm.c substream->runtime->rate); runtime 1257 sound/soc/intel/skylake/skl-pcm.c if ((substream->runtime->hw.info & SNDRV_PCM_INFO_HAS_LINK_ATIME) && runtime 1260 sound/soc/intel/skylake/skl-pcm.c snd_pcm_gettime(substream->runtime, system_ts); runtime 104 sound/soc/kirkwood/kirkwood-dma.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 112 sound/soc/kirkwood/kirkwood-dma.c err = snd_pcm_hw_constraint_minmax(runtime, runtime 119 sound/soc/kirkwood/kirkwood-dma.c err = snd_pcm_hw_constraint_step(runtime, 0, runtime 125 sound/soc/kirkwood/kirkwood-dma.c err = snd_pcm_hw_constraint_step(substream->runtime, 0, runtime 186 sound/soc/kirkwood/kirkwood-dma.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 189 sound/soc/kirkwood/kirkwood-dma.c runtime->dma_bytes = params_buffer_bytes(params); runtime 202 sound/soc/kirkwood/kirkwood-dma.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 207 sound/soc/kirkwood/kirkwood-dma.c size = frames_to_bytes(runtime, runtime->buffer_size); runtime 213 sound/soc/kirkwood/kirkwood-dma.c writel(runtime->dma_addr, priv->io + KIRKWOOD_PLAY_BUF_ADDR); runtime 217 sound/soc/kirkwood/kirkwood-dma.c writel(runtime->dma_addr, priv->io + KIRKWOOD_REC_BUF_ADDR); runtime 232 sound/soc/kirkwood/kirkwood-dma.c count = bytes_to_frames(substream->runtime, runtime 235 sound/soc/kirkwood/kirkwood-dma.c count = bytes_to_frames(substream->runtime, runtime 231 sound/soc/kirkwood/kirkwood-i2s.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 269 sound/soc/kirkwood/kirkwood-i2s.c if (!runtime->no_period_wakeup) { runtime 40 sound/soc/mediatek/common/mtk-afe-fe-dai.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 48 sound/soc/mediatek/common/mtk-afe-fe-dai.c snd_pcm_hw_constraint_step(substream->runtime, 0, runtime 65 sound/soc/mediatek/common/mtk-afe-fe-dai.c ret = snd_pcm_hw_constraint_minmax(runtime, runtime 74 sound/soc/mediatek/common/mtk-afe-fe-dai.c ret = snd_pcm_hw_constraint_integer(runtime, runtime 131 sound/soc/mediatek/common/mtk-afe-fe-dai.c msb_at_bit33 = upper_32_bits(substream->runtime->dma_addr) ? 1 : 0; runtime 132 sound/soc/mediatek/common/mtk-afe-fe-dai.c memif->phys_buf_addr = lower_32_bits(substream->runtime->dma_addr); runtime 133 sound/soc/mediatek/common/mtk-afe-fe-dai.c memif->buffer_size = substream->runtime->dma_bytes; runtime 183 sound/soc/mediatek/common/mtk-afe-fe-dai.c struct snd_pcm_runtime * const runtime = substream->runtime; runtime 188 sound/soc/mediatek/common/mtk-afe-fe-dai.c unsigned int counter = runtime->period_size; runtime 206 sound/soc/mediatek/common/mtk-afe-fe-dai.c fs = afe->irq_fs(substream, runtime->rate); runtime 247 sound/soc/mediatek/common/mtk-afe-fe-dai.c switch (substream->runtime->format) { runtime 260 sound/soc/mediatek/common/mtk-afe-fe-dai.c __func__, substream->runtime->format); runtime 112 sound/soc/mediatek/common/mtk-afe-platform-driver.c return bytes_to_frames(substream->runtime, pcm_ptr_bytes); runtime 276 sound/soc/mediatek/common/mtk-btcvsd.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 278 sound/soc/mediatek/common/mtk-btcvsd.c if (runtime->format == SNDRV_PCM_FORMAT_S32_LE || runtime 279 sound/soc/mediatek/common/mtk-btcvsd.c runtime->format == SNDRV_PCM_FORMAT_U32_LE) runtime 284 sound/soc/mediatek/common/mtk-btcvsd.c count = count / runtime->channels; runtime 933 sound/soc/mediatek/common/mtk-btcvsd.c substream->runtime->dma_bytes = params_buffer_bytes(hw_params); runtime 1038 sound/soc/mediatek/common/mtk-btcvsd.c frame %= substream->runtime->buffer_size; runtime 257 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c substream->runtime->rate); runtime 260 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c substream->runtime->rate); runtime 111 sound/soc/mediatek/mt2701/mt2701-cs42448.c err = snd_pcm_hw_constraint_list(substream->runtime, 0, runtime 325 sound/soc/mediatek/mt8173/mt8173-afe-pcm.c struct snd_pcm_runtime * const runtime = substream->runtime; runtime 331 sound/soc/mediatek/mt8173/mt8173-afe-pcm.c runtime->rate * 256, NULL, 0); runtime 333 sound/soc/mediatek/mt8173/mt8173-afe-pcm.c runtime->rate * 256, NULL, 0); runtime 335 sound/soc/mediatek/mt8173/mt8173-afe-pcm.c ret = mt8173_afe_set_i2s(afe, substream->runtime->rate); runtime 374 sound/soc/mediatek/mt8173/mt8173-afe-pcm.c struct snd_pcm_runtime * const runtime = substream->runtime; runtime 381 sound/soc/mediatek/mt8173/mt8173-afe-pcm.c runtime->rate * 128, runtime 383 sound/soc/mediatek/mt8173/mt8173-afe-pcm.c runtime->rate * runtime->channels * 32); runtime 395 sound/soc/mediatek/mt8173/mt8173-afe-pcm.c switch (runtime->channels) { runtime 430 sound/soc/mediatek/mt8173/mt8173-afe-pcm.c 0x000000f0, runtime->channels << 4); runtime 66 sound/soc/mediatek/mt8173/mt8173-max98090.c static int mt8173_max98090_init(struct snd_soc_pcm_runtime *runtime) runtime 69 sound/soc/mediatek/mt8173/mt8173-max98090.c struct snd_soc_card *card = runtime->card; runtime 70 sound/soc/mediatek/mt8173/mt8173-max98090.c struct snd_soc_component *component = runtime->codec_dai->component; runtime 73 sound/soc/mediatek/mt8173/mt8173-rt5650-rt5514.c static int mt8173_rt5650_rt5514_init(struct snd_soc_pcm_runtime *runtime) runtime 75 sound/soc/mediatek/mt8173/mt8173-rt5650-rt5514.c struct snd_soc_card *card = runtime->card; runtime 76 sound/soc/mediatek/mt8173/mt8173-rt5650-rt5514.c struct snd_soc_component *component = runtime->codec_dais[0]->component; runtime 77 sound/soc/mediatek/mt8173/mt8173-rt5650-rt5676.c static int mt8173_rt5650_rt5676_init(struct snd_soc_pcm_runtime *runtime) runtime 79 sound/soc/mediatek/mt8173/mt8173-rt5650-rt5676.c struct snd_soc_card *card = runtime->card; runtime 80 sound/soc/mediatek/mt8173/mt8173-rt5650-rt5676.c struct snd_soc_component *component = runtime->codec_dais[0]->component; runtime 81 sound/soc/mediatek/mt8173/mt8173-rt5650-rt5676.c struct snd_soc_component *component_sub = runtime->codec_dais[1]->component; runtime 103 sound/soc/mediatek/mt8173/mt8173-rt5650.c static int mt8173_rt5650_init(struct snd_soc_pcm_runtime *runtime) runtime 105 sound/soc/mediatek/mt8173/mt8173-rt5650.c struct snd_soc_card *card = runtime->card; runtime 106 sound/soc/mediatek/mt8173/mt8173-rt5650.c struct snd_soc_component *component = runtime->codec_dais[0]->component; runtime 107 sound/soc/mediatek/mt8173/mt8173-rt5650.c const char *codec_capture_dai = runtime->codec_dais[1]->name; runtime 85 sound/soc/mediatek/mt8183/mt8183-mt6358-ts3a227-max98357.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 87 sound/soc/mediatek/mt8183/mt8183-mt6358-ts3a227-max98357.c snd_pcm_hw_constraint_list(runtime, 0, runtime 89 sound/soc/mediatek/mt8183/mt8183-mt6358-ts3a227-max98357.c runtime->hw.channels_max = 1; runtime 90 sound/soc/mediatek/mt8183/mt8183-mt6358-ts3a227-max98357.c snd_pcm_hw_constraint_list(runtime, 0, runtime 94 sound/soc/mediatek/mt8183/mt8183-mt6358-ts3a227-max98357.c runtime->hw.formats = SNDRV_PCM_FMTBIT_S16_LE; runtime 95 sound/soc/mediatek/mt8183/mt8183-mt6358-ts3a227-max98357.c snd_pcm_hw_constraint_msbits(runtime, 0, 16, 16); runtime 98 sound/soc/meson/axg-fifo.c struct snd_pcm_runtime *runtime = ss->runtime; runtime 103 sound/soc/meson/axg-fifo.c return bytes_to_frames(runtime, addr - (unsigned int)runtime->dma_addr); runtime 109 sound/soc/meson/axg-fifo.c struct snd_pcm_runtime *runtime = ss->runtime; runtime 122 sound/soc/meson/axg-fifo.c end_ptr = runtime->dma_addr + runtime->dma_bytes - AXG_FIFO_BURST; runtime 123 sound/soc/meson/axg-fifo.c regmap_write(fifo->map, FIFO_START_ADDR, runtime->dma_addr); runtime 158 sound/soc/meson/axg-fifo.c struct snd_pcm_runtime *runtime = ss->runtime; runtime 166 sound/soc/meson/axg-fifo.c regmap_write(fifo->map, FIFO_INIT_ADDR, runtime->dma_addr); runtime 227 sound/soc/meson/axg-fifo.c ret = snd_pcm_hw_constraint_step(ss->runtime, 0, runtime 233 sound/soc/meson/axg-fifo.c ret = snd_pcm_hw_constraint_step(ss->runtime, 0, runtime 153 sound/soc/meson/axg-tdm-interface.c ret = snd_pcm_hw_constraint_single(substream->runtime, runtime 123 sound/soc/pxa/mmp-pcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 128 sound/soc/pxa/mmp-pcm.c __phys_to_pfn(runtime->dma_addr) + off, runtime 55 sound/soc/qcom/lpass-platform.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 69 sound/soc/qcom/lpass-platform.c runtime->private_data = data; runtime 93 sound/soc/qcom/lpass-platform.c runtime->dma_bytes = lpass_platform_pcm_hardware.buffer_bytes_max; runtime 95 sound/soc/qcom/lpass-platform.c ret = snd_pcm_hw_constraint_integer(runtime, runtime 110 sound/soc/qcom/lpass-platform.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 117 sound/soc/qcom/lpass-platform.c data = runtime->private_data; runtime 131 sound/soc/qcom/lpass-platform.c struct snd_pcm_runtime *rt = substream->runtime; runtime 224 sound/soc/qcom/lpass-platform.c struct snd_pcm_runtime *rt = substream->runtime; runtime 241 sound/soc/qcom/lpass-platform.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 245 sound/soc/qcom/lpass-platform.c struct snd_pcm_runtime *rt = substream->runtime; runtime 254 sound/soc/qcom/lpass-platform.c runtime->dma_addr); runtime 297 sound/soc/qcom/lpass-platform.c struct snd_pcm_runtime *rt = substream->runtime; runtime 371 sound/soc/qcom/lpass-platform.c struct snd_pcm_runtime *rt = substream->runtime; runtime 395 sound/soc/qcom/lpass-platform.c return bytes_to_frames(substream->runtime, curr_addr - base_addr); runtime 401 sound/soc/qcom/lpass-platform.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 404 sound/soc/qcom/lpass-platform.c runtime->dma_area, runtime->dma_addr, runtime 405 sound/soc/qcom/lpass-platform.c runtime->dma_bytes); runtime 211 sound/soc/qcom/qdsp6/q6asm-dai.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 213 sound/soc/qcom/qdsp6/q6asm-dai.c struct q6asm_dai_rtd *prtd = runtime->private_data; runtime 276 sound/soc/qcom/qdsp6/q6asm-dai.c prtd->audio_client, runtime->rate, runtime 277 sound/soc/qcom/qdsp6/q6asm-dai.c runtime->channels, NULL, runtime 281 sound/soc/qcom/qdsp6/q6asm-dai.c runtime->rate, runtime->channels, runtime 285 sound/soc/qcom/qdsp6/q6asm-dai.c for (i = 0; i < runtime->periods; i++) runtime 300 sound/soc/qcom/qdsp6/q6asm-dai.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 301 sound/soc/qcom/qdsp6/q6asm-dai.c struct q6asm_dai_rtd *prtd = runtime->private_data; runtime 327 sound/soc/qcom/qdsp6/q6asm-dai.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 361 sound/soc/qcom/qdsp6/q6asm-dai.c runtime->hw = q6asm_dai_hardware_playback; runtime 363 sound/soc/qcom/qdsp6/q6asm-dai.c runtime->hw = q6asm_dai_hardware_capture; runtime 365 sound/soc/qcom/qdsp6/q6asm-dai.c ret = snd_pcm_hw_constraint_list(runtime, 0, runtime 371 sound/soc/qcom/qdsp6/q6asm-dai.c ret = snd_pcm_hw_constraint_integer(runtime, runtime 377 sound/soc/qcom/qdsp6/q6asm-dai.c ret = snd_pcm_hw_constraint_minmax(runtime, runtime 387 sound/soc/qcom/qdsp6/q6asm-dai.c ret = snd_pcm_hw_constraint_step(runtime, 0, runtime 393 sound/soc/qcom/qdsp6/q6asm-dai.c ret = snd_pcm_hw_constraint_step(runtime, 0, runtime 400 sound/soc/qcom/qdsp6/q6asm-dai.c runtime->private_data = prtd; runtime 404 sound/soc/qcom/qdsp6/q6asm-dai.c runtime->dma_bytes = q6asm_dai_hardware_playback.buffer_bytes_max; runtime 419 sound/soc/qcom/qdsp6/q6asm-dai.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 421 sound/soc/qcom/qdsp6/q6asm-dai.c struct q6asm_dai_rtd *prtd = runtime->private_data; runtime 441 sound/soc/qcom/qdsp6/q6asm-dai.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 442 sound/soc/qcom/qdsp6/q6asm-dai.c struct q6asm_dai_rtd *prtd = runtime->private_data; runtime 447 sound/soc/qcom/qdsp6/q6asm-dai.c return bytes_to_frames(runtime, (prtd->pcm_irq_pos)); runtime 454 sound/soc/qcom/qdsp6/q6asm-dai.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 460 sound/soc/qcom/qdsp6/q6asm-dai.c runtime->dma_area, runtime->dma_addr, runtime 461 sound/soc/qcom/qdsp6/q6asm-dai.c runtime->dma_bytes); runtime 467 sound/soc/qcom/qdsp6/q6asm-dai.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 468 sound/soc/qcom/qdsp6/q6asm-dai.c struct q6asm_dai_rtd *prtd = runtime->private_data; runtime 551 sound/soc/qcom/qdsp6/q6asm-dai.c struct snd_compr_runtime *runtime = stream->runtime; runtime 595 sound/soc/qcom/qdsp6/q6asm-dai.c runtime->private_data = prtd; runtime 609 sound/soc/qcom/qdsp6/q6asm-dai.c struct snd_compr_runtime *runtime = stream->runtime; runtime 610 sound/soc/qcom/qdsp6/q6asm-dai.c struct q6asm_dai_rtd *prtd = runtime->private_data; runtime 632 sound/soc/qcom/qdsp6/q6asm-dai.c struct snd_compr_runtime *runtime = stream->runtime; runtime 633 sound/soc/qcom/qdsp6/q6asm-dai.c struct q6asm_dai_rtd *prtd = runtime->private_data; runtime 652 sound/soc/qcom/qdsp6/q6asm-dai.c prtd->periods = runtime->fragments; runtime 653 sound/soc/qcom/qdsp6/q6asm-dai.c prtd->pcm_count = runtime->fragment_size; runtime 654 sound/soc/qcom/qdsp6/q6asm-dai.c prtd->pcm_size = runtime->fragments * runtime->fragment_size; runtime 692 sound/soc/qcom/qdsp6/q6asm-dai.c struct snd_compr_runtime *runtime = stream->runtime; runtime 693 sound/soc/qcom/qdsp6/q6asm-dai.c struct q6asm_dai_rtd *prtd = runtime->private_data; runtime 721 sound/soc/qcom/qdsp6/q6asm-dai.c struct snd_compr_runtime *runtime = stream->runtime; runtime 722 sound/soc/qcom/qdsp6/q6asm-dai.c struct q6asm_dai_rtd *prtd = runtime->private_data; runtime 738 sound/soc/qcom/qdsp6/q6asm-dai.c struct snd_compr_runtime *runtime = stream->runtime; runtime 739 sound/soc/qcom/qdsp6/q6asm-dai.c struct q6asm_dai_rtd *prtd = runtime->private_data; runtime 752 sound/soc/qcom/qdsp6/q6asm-dai.c struct snd_compr_runtime *runtime = stream->runtime; runtime 753 sound/soc/qcom/qdsp6/q6asm-dai.c struct q6asm_dai_rtd *prtd = runtime->private_data; runtime 121 sound/soc/rockchip/rk3288_hdmi_analog.c static int rk_init(struct snd_soc_pcm_runtime *runtime) runtime 123 sound/soc/rockchip/rk3288_hdmi_analog.c struct rk_drvdata *machine = snd_soc_card_get_drvdata(runtime->card); runtime 127 sound/soc/rockchip/rk3288_hdmi_analog.c snd_soc_card_jack_new(runtime->card, "Headphone Jack", runtime 86 sound/soc/rockchip/rockchip_max98090.c static int rk_init(struct snd_soc_pcm_runtime *runtime) runtime 149 sound/soc/rockchip/rockchip_max98090.c return snd_pcm_hw_constraint_minmax(substream->runtime, runtime 100 sound/soc/rockchip/rockchip_rt5645.c static int rk_init(struct snd_soc_pcm_runtime *runtime) runtime 102 sound/soc/rockchip/rockchip_rt5645.c struct snd_soc_card *card = runtime->card; runtime 116 sound/soc/rockchip/rockchip_rt5645.c return rt5645_set_jack_detect(runtime->codec_dai->component, runtime 60 sound/soc/samsung/h1940_uda1380.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 62 sound/soc/samsung/h1940_uda1380.c return snd_pcm_hw_constraint_list(runtime, 0, runtime 66 sound/soc/samsung/idma.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 67 sound/soc/samsung/idma.c struct idma_ctrl *prtd = substream->runtime->private_data; runtime 88 sound/soc/samsung/idma.c val |= (((runtime->dma_bytes >> 2) & runtime 102 sound/soc/samsung/idma.c struct idma_ctrl *prtd = substream->runtime->private_data; runtime 134 sound/soc/samsung/idma.c struct idma_ctrl *prtd = substream->runtime->private_data; runtime 143 sound/soc/samsung/idma.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 144 sound/soc/samsung/idma.c struct idma_ctrl *prtd = substream->runtime->private_data; runtime 154 sound/soc/samsung/idma.c runtime->dma_bytes = params_buffer_bytes(params); runtime 156 sound/soc/samsung/idma.c prtd->start = prtd->pos = runtime->dma_addr; runtime 159 sound/soc/samsung/idma.c prtd->end = runtime->dma_addr + runtime->dma_bytes; runtime 175 sound/soc/samsung/idma.c struct idma_ctrl *prtd = substream->runtime->private_data; runtime 188 sound/soc/samsung/idma.c struct idma_ctrl *prtd = substream->runtime->private_data; runtime 221 sound/soc/samsung/idma.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 222 sound/soc/samsung/idma.c struct idma_ctrl *prtd = runtime->private_data; runtime 233 sound/soc/samsung/idma.c return bytes_to_frames(substream->runtime, res); runtime 239 sound/soc/samsung/idma.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 248 sound/soc/samsung/idma.c (runtime->dma_addr + offset) >> PAGE_SHIFT, runtime 283 sound/soc/samsung/idma.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 302 sound/soc/samsung/idma.c runtime->private_data = prtd; runtime 309 sound/soc/samsung/idma.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 310 sound/soc/samsung/idma.c struct idma_ctrl *prtd = runtime->private_data; runtime 28 sound/soc/samsung/odroid.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 30 sound/soc/samsung/odroid.c snd_pcm_hw_constraint_single(runtime, SNDRV_PCM_HW_PARAM_CHANNELS, 2); runtime 130 sound/soc/samsung/rx1950_uda1380.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 132 sound/soc/samsung/rx1950_uda1380.c return snd_pcm_hw_constraint_list(runtime, 0, runtime 91 sound/soc/samsung/s3c24xx_uda134x.c ret = snd_pcm_hw_constraint_list(substream->runtime, 0, runtime 201 sound/soc/sh/dma-sh7760.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 206 sound/soc/sh/dma-sh7760.c (u32)runtime->dma_addr, runtime->dma_bytes); runtime 209 sound/soc/sh/dma-sh7760.c BRGREG(BRGATXSAR) = (unsigned long)runtime->dma_area; runtime 210 sound/soc/sh/dma-sh7760.c BRGREG(BRGATXTCR) = runtime->dma_bytes; runtime 212 sound/soc/sh/dma-sh7760.c BRGREG(BRGARXDAR) = (unsigned long)runtime->dma_area; runtime 213 sound/soc/sh/dma-sh7760.c BRGREG(BRGARXTCR) = runtime->dma_bytes; runtime 275 sound/soc/sh/dma-sh7760.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 292 sound/soc/sh/dma-sh7760.c return bytes_to_frames(runtime, pos); runtime 507 sound/soc/sh/fsi.c ret = !!(io->substream && io->substream->runtime); runtime 522 sound/soc/sh/fsi.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 528 sound/soc/sh/fsi.c io->buff_sample_capa = fsi_frame2sample(fsi, runtime->buffer_size); runtime 530 sound/soc/sh/fsi.c io->period_samples = fsi_frame2sample(fsi, runtime->period_size); runtime 532 sound/soc/sh/fsi.c io->sample_width = samples_to_bytes(runtime, 1); runtime 1038 sound/soc/sh/fsi.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1042 sound/soc/sh/fsi.c if (io->period_pos >= runtime->periods) { runtime 1106 sound/soc/sh/fsi.c struct snd_pcm_runtime *runtime = io->substream->runtime; runtime 1108 sound/soc/sh/fsi.c return runtime->dma_area + runtime 1109 sound/soc/sh/fsi.c samples_to_bytes(runtime, io->buff_sample_pos); runtime 1299 sound/soc/sh/fsi.c substream->runtime->dma_addr, runtime 1723 sound/soc/sh/fsi.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1728 sound/soc/sh/fsi.c ret = snd_pcm_hw_constraint_integer(runtime, runtime 173 sound/soc/sh/rcar/adg.c struct snd_pcm_runtime *runtime = rsnd_io_to_runtime(io); runtime 187 sound/soc/sh/rcar/adg.c if (runtime->rate != in_rate) { runtime 190 sound/soc/sh/rcar/adg.c } else if (runtime->rate != out_rate) { runtime 260 sound/soc/sh/rcar/core.c struct snd_pcm_runtime *runtime = rsnd_io_to_runtime(io); runtime 271 sound/soc/sh/rcar/core.c return runtime->channels; runtime 357 sound/soc/sh/rcar/core.c struct snd_pcm_runtime *runtime = rsnd_io_to_runtime(io); runtime 360 sound/soc/sh/rcar/core.c switch (snd_pcm_format_width(runtime->format)) { runtime 392 sound/soc/sh/rcar/core.c struct snd_pcm_runtime *runtime = rsnd_io_to_runtime(io); runtime 429 sound/soc/sh/rcar/core.c if ((snd_pcm_format_width(runtime->format) != 16) || runtime 451 sound/soc/sh/rcar/core.c struct snd_pcm_runtime *runtime = rsnd_io_to_runtime(io); runtime 466 sound/soc/sh/rcar/core.c if (snd_pcm_format_width(runtime->format) != 24) runtime 979 sound/soc/sh/rcar/core.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1001 sound/soc/sh/rcar/core.c snd_pcm_hw_constraint_list(runtime, 0, runtime 1004 sound/soc/sh/rcar/core.c snd_pcm_hw_constraint_integer(runtime, runtime 1014 sound/soc/sh/rcar/core.c snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, runtime 1018 sound/soc/sh/rcar/core.c snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, runtime 1550 sound/soc/sh/rcar/core.c struct snd_pcm_runtime *runtime = rsnd_io_to_runtime(io); runtime 1554 sound/soc/sh/rcar/core.c if (!runtime) { runtime 186 sound/soc/sh/rcar/dma.c substream->runtime->dma_addr, runtime 274 sound/soc/sh/rcar/dma.c struct snd_pcm_runtime *runtime = rsnd_io_to_runtime(io); runtime 286 sound/soc/sh/rcar/dma.c *pointer = bytes_to_frames(runtime, pos); runtime 520 sound/soc/sh/rcar/rsnd.h (io)->substream->runtime : NULL) runtime 83 sound/soc/sh/rcar/src.c struct snd_pcm_runtime *runtime = rsnd_io_to_runtime(io); runtime 87 sound/soc/sh/rcar/src.c if (!runtime) runtime 99 sound/soc/sh/rcar/src.c convert_rate = runtime->rate; runtime 109 sound/soc/sh/rcar/src.c struct snd_pcm_runtime *runtime = rsnd_io_to_runtime(io); runtime 122 sound/soc/sh/rcar/src.c return runtime->rate; runtime 132 sound/soc/sh/rcar/src.c rate = runtime->rate; runtime 196 sound/soc/sh/rcar/src.c struct snd_pcm_runtime *runtime = rsnd_io_to_runtime(io); runtime 209 sound/soc/sh/rcar/src.c if (!runtime) runtime 368 sound/soc/sh/rcar/ssi.c struct snd_pcm_runtime *runtime = rsnd_io_to_runtime(io); runtime 417 sound/soc/sh/rcar/ssi.c width = snd_pcm_format_width(runtime->format); runtime 848 sound/soc/sh/rcar/ssi.c struct snd_pcm_runtime *runtime = rsnd_io_to_runtime(io); runtime 850 sound/soc/sh/rcar/ssi.c u32 *buf = (u32 *)(runtime->dma_area + ssi->byte_pos); runtime 855 sound/soc/sh/rcar/ssi.c if (snd_pcm_format_width(runtime->format) == 24) runtime 873 sound/soc/sh/rcar/ssi.c if (period_pos >= runtime->periods) { runtime 892 sound/soc/sh/rcar/ssi.c struct snd_pcm_runtime *runtime = rsnd_io_to_runtime(io); runtime 897 sound/soc/sh/rcar/ssi.c ssi->byte_per_period = runtime->period_size * runtime 898 sound/soc/sh/rcar/ssi.c runtime->channels * runtime 899 sound/soc/sh/rcar/ssi.c samples_to_bytes(runtime, 1); runtime 911 sound/soc/sh/rcar/ssi.c struct snd_pcm_runtime *runtime = rsnd_io_to_runtime(io); runtime 913 sound/soc/sh/rcar/ssi.c *pointer = bytes_to_frames(runtime, READ_ONCE(ssi->byte_pos)); runtime 497 sound/soc/sh/siu_dai.c struct snd_pcm_runtime *rt = substream->runtime; runtime 544 sound/soc/sh/siu_dai.c struct snd_pcm_runtime *rt = substream->runtime; runtime 206 sound/soc/sh/siu_pcm.c struct snd_pcm_runtime *rt = substream->runtime; runtime 397 sound/soc/sh/siu_pcm.c struct snd_pcm_runtime *rt = ss->runtime; runtime 406 sound/soc/sh/siu_pcm.c rt = siu_stream->substream->runtime; runtime 486 sound/soc/sh/siu_pcm.c struct snd_pcm_runtime *rt = ss->runtime; runtime 512 sound/soc/sh/siu_pcm.c return bytes_to_frames(ss->runtime, ptr); runtime 143 sound/soc/soc-compress.c fe->dpcm[stream].runtime = fe_substream->runtime; runtime 153 sound/soc/soc-compress.c fe->dpcm[stream].runtime = fe_substream->runtime; runtime 164 sound/soc/soc-compress.c fe->dpcm[stream].runtime = NULL; runtime 334 sound/soc/soc-compress.c fe->dpcm[stream].runtime = NULL; runtime 3806 sound/soc/soc-dapm.c struct snd_pcm_runtime *runtime = NULL; runtime 3814 sound/soc/soc-dapm.c runtime = kzalloc(sizeof(*runtime), GFP_KERNEL); runtime 3815 sound/soc/soc-dapm.c if (!runtime) { runtime 3820 sound/soc/soc-dapm.c substream->runtime = runtime; runtime 3905 sound/soc/soc-dapm.c runtime->format = params_format(params); runtime 3906 sound/soc/soc-dapm.c runtime->subformat = params_subformat(params); runtime 3907 sound/soc/soc-dapm.c runtime->channels = params_channels(params); runtime 3908 sound/soc/soc-dapm.c runtime->rate = params_rate(params); runtime 3988 sound/soc/soc-dapm.c kfree(substream->runtime); runtime 341 sound/soc/soc-generic-dmaengine-pcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 347 sound/soc/soc-generic-dmaengine-pcm.c void *dma_ptr = runtime->dma_area + hwoff + runtime 348 sound/soc/soc-generic-dmaengine-pcm.c channel * (runtime->dma_bytes / runtime->channels); runtime 140 sound/soc/soc-pcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 141 sound/soc/soc-pcm.c runtime->hw.info = hw->info; runtime 142 sound/soc/soc-pcm.c runtime->hw.formats = hw->formats; runtime 143 sound/soc/soc-pcm.c runtime->hw.period_bytes_min = hw->period_bytes_min; runtime 144 sound/soc/soc-pcm.c runtime->hw.period_bytes_max = hw->period_bytes_max; runtime 145 sound/soc/soc-pcm.c runtime->hw.periods_min = hw->periods_min; runtime 146 sound/soc/soc-pcm.c runtime->hw.periods_max = hw->periods_max; runtime 147 sound/soc/soc-pcm.c runtime->hw.buffer_bytes_max = hw->buffer_bytes_max; runtime 148 sound/soc/soc-pcm.c runtime->hw.fifo_size = hw->fifo_size; runtime 189 sound/soc/soc-pcm.c ret = snd_pcm_hw_constraint_single(substream->runtime, runtime 205 sound/soc/soc-pcm.c ret = snd_pcm_hw_constraint_single(substream->runtime, runtime 221 sound/soc/soc-pcm.c ret = snd_pcm_hw_constraint_single(substream->runtime, runtime 316 sound/soc/soc-pcm.c ret = snd_pcm_hw_constraint_msbits(substream->runtime, 0, 0, bits); runtime 356 sound/soc/soc-pcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 357 sound/soc/soc-pcm.c struct snd_pcm_hardware *hw = &runtime->hw; runtime 422 sound/soc/soc-pcm.c snd_pcm_limit_hw_rates(runtime); runtime 491 sound/soc/soc-pcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 558 sound/soc/soc-pcm.c runtime->hw.info |= SNDRV_PCM_INFO_JOINT_DUPLEX; runtime 561 sound/soc/soc-pcm.c if (!runtime->hw.rates) { runtime 566 sound/soc/soc-pcm.c if (!runtime->hw.formats) { runtime 571 sound/soc/soc-pcm.c if (!runtime->hw.channels_min || !runtime->hw.channels_max || runtime 572 sound/soc/soc-pcm.c runtime->hw.channels_min > runtime->hw.channels_max) { runtime 597 sound/soc/soc-pcm.c pr_debug("ASoC: rate mask 0x%x\n", runtime->hw.rates); runtime 598 sound/soc/soc-pcm.c pr_debug("ASoC: min ch %d max ch %d\n", runtime->hw.channels_min, runtime 599 sound/soc/soc-pcm.c runtime->hw.channels_max); runtime 600 sound/soc/soc-pcm.c pr_debug("ASoC: min rate %d max rate %d\n", runtime->hw.rate_min, runtime 601 sound/soc/soc-pcm.c runtime->hw.rate_max); runtime 1118 sound/soc/soc-pcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1125 sound/soc/soc-pcm.c runtime->delay = 0; runtime 1130 sound/soc/soc-pcm.c delay = runtime->delay; runtime 1140 sound/soc/soc-pcm.c runtime->delay = delay; runtime 1167 sound/soc/soc-pcm.c be->dpcm[stream].runtime = fe->dpcm[stream].runtime; runtime 1215 sound/soc/soc-pcm.c be_substream->runtime = fe_substream->runtime; runtime 1466 sound/soc/soc-pcm.c if (!fe->dpcm[stream].runtime && !fe->fe_compr) runtime 1536 sound/soc/soc-pcm.c be_substream->runtime = NULL; runtime 1579 sound/soc/soc-pcm.c be_substream->runtime = be->dpcm[stream].runtime; runtime 1621 sound/soc/soc-pcm.c be_substream->runtime = NULL; runtime 1628 sound/soc/soc-pcm.c static void dpcm_init_runtime_hw(struct snd_pcm_runtime *runtime, runtime 1631 sound/soc/soc-pcm.c runtime->hw.rate_min = stream->rate_min; runtime 1632 sound/soc/soc-pcm.c runtime->hw.rate_max = min_not_zero(stream->rate_max, UINT_MAX); runtime 1633 sound/soc/soc-pcm.c runtime->hw.channels_min = stream->channels_min; runtime 1634 sound/soc/soc-pcm.c runtime->hw.channels_max = stream->channels_max; runtime 1635 sound/soc/soc-pcm.c if (runtime->hw.formats) runtime 1636 sound/soc/soc-pcm.c runtime->hw.formats &= stream->formats; runtime 1638 sound/soc/soc-pcm.c runtime->hw.formats = stream->formats; runtime 1639 sound/soc/soc-pcm.c runtime->hw.rates = stream->rates; runtime 1794 sound/soc/soc-pcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1800 sound/soc/soc-pcm.c dpcm_init_runtime_hw(runtime, &cpu_dai_drv->playback); runtime 1802 sound/soc/soc-pcm.c dpcm_init_runtime_hw(runtime, &cpu_dai_drv->capture); runtime 1804 sound/soc/soc-pcm.c dpcm_runtime_merge_format(substream, &runtime->hw.formats); runtime 1805 sound/soc/soc-pcm.c dpcm_runtime_merge_chan(substream, &runtime->hw.channels_min, runtime 1806 sound/soc/soc-pcm.c &runtime->hw.channels_max); runtime 1807 sound/soc/soc-pcm.c dpcm_runtime_merge_rate(substream, &runtime->hw.rates, runtime 1808 sound/soc/soc-pcm.c &runtime->hw.rate_min, &runtime->hw.rate_max); runtime 1844 sound/soc/soc-pcm.c fe_substream->runtime->hw.info |= SNDRV_PCM_INFO_JOINT_DUPLEX; runtime 1871 sound/soc/soc-pcm.c be_substream->runtime->hw.info |= SNDRV_PCM_INFO_JOINT_DUPLEX; runtime 1897 sound/soc/soc-pcm.c struct snd_pcm_runtime *runtime = fe_substream->runtime; runtime 1920 sound/soc/soc-pcm.c snd_pcm_limit_hw_rates(runtime); runtime 1972 sound/soc/soc-pcm.c be_substream->runtime = NULL; runtime 2813 sound/soc/soc-pcm.c fe->dpcm[stream].runtime = fe_substream->runtime; runtime 2834 sound/soc/soc-pcm.c fe->dpcm[stream].runtime = NULL; runtime 2858 sound/soc/soc-pcm.c fe->dpcm[stream].runtime = NULL; runtime 46 sound/soc/sof/intel/hda-dai.c fe_hstream = fe_substream->runtime->private_data; runtime 202 sound/soc/sof/intel/hda-dai.c struct hdac_stream *hstream = substream->runtime->private_data; runtime 291 sound/soc/sof/intel/hda-dai.c hstream = substream->runtime->private_data; runtime 357 sound/soc/sof/intel/hda-dai.c hstream = substream->runtime->private_data; runtime 286 sound/soc/sof/intel/hda-ipc.c struct hdac_stream *hstream = substream->runtime->private_data; runtime 304 sound/soc/sof/intel/hda-ipc.c struct hdac_stream *hstream = substream->runtime->private_data; runtime 88 sound/soc/sof/intel/hda-pcm.c struct hdac_stream *hstream = substream->runtime->private_data; runtime 101 sound/soc/sof/intel/hda-pcm.c dmab = substream->runtime->dma_buffer_p; runtime 131 sound/soc/sof/intel/hda-pcm.c struct hdac_stream *hstream = substream->runtime->private_data; runtime 141 sound/soc/sof/intel/hda-pcm.c struct hdac_stream *hstream = substream->runtime->private_data; runtime 197 sound/soc/sof/intel/hda-pcm.c pos = bytes_to_frames(substream->runtime, pos); runtime 218 sound/soc/sof/intel/hda-pcm.c substream->runtime->private_data = &dsp_stream->hstream; runtime 225 sound/soc/sof/intel/hda-pcm.c struct hdac_stream *hstream = substream->runtime->private_data; runtime 237 sound/soc/sof/intel/hda-pcm.c substream->runtime->private_data = NULL; runtime 519 sound/soc/sof/intel/hda-stream.c struct hdac_stream *stream = substream->runtime->private_data; runtime 35 sound/soc/sof/intel/intel-ipc.c struct intel_stream *stream = substream->runtime->private_data; runtime 48 sound/soc/sof/intel/intel-ipc.c struct intel_stream *stream = substream->runtime->private_data; runtime 74 sound/soc/sof/intel/intel-ipc.c substream->runtime->private_data = stream; runtime 83 sound/soc/sof/intel/intel-ipc.c struct intel_stream *stream = substream->runtime->private_data; runtime 85 sound/soc/sof/intel/intel-ipc.c substream->runtime->private_data = NULL; runtime 432 sound/soc/sof/ipc.c if (!stream->substream->runtime->no_period_wakeup) runtime 102 sound/soc/sof/pcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 138 sound/soc/sof/pcm.c ret = create_page_table(substream, runtime->dma_area, runtime 139 sound/soc/sof/pcm.c runtime->dma_bytes); runtime 145 sound/soc/sof/pcm.c pcm.params.buffer.pages = PFN_UP(runtime->dma_bytes); runtime 154 sound/soc/sof/pcm.c pcm.params.buffer.size = runtime->dma_bytes; runtime 420 sound/soc/sof/pcm.c host = bytes_to_frames(substream->runtime, runtime 422 sound/soc/sof/pcm.c dai = bytes_to_frames(substream->runtime, runtime 434 sound/soc/sof/pcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 459 sound/soc/sof/pcm.c snd_pcm_hw_constraint_step(substream->runtime, 0, runtime 462 sound/soc/sof/pcm.c snd_pcm_hw_constraint_step(substream->runtime, 0, runtime 467 sound/soc/sof/pcm.c runtime->hw.info = SNDRV_PCM_INFO_MMAP | runtime 472 sound/soc/sof/pcm.c runtime->hw.formats = le64_to_cpu(caps->formats); runtime 473 sound/soc/sof/pcm.c runtime->hw.period_bytes_min = le32_to_cpu(caps->period_size_min); runtime 474 sound/soc/sof/pcm.c runtime->hw.period_bytes_max = le32_to_cpu(caps->period_size_max); runtime 475 sound/soc/sof/pcm.c runtime->hw.periods_min = le32_to_cpu(caps->periods_min); runtime 476 sound/soc/sof/pcm.c runtime->hw.periods_max = le32_to_cpu(caps->periods_max); runtime 482 sound/soc/sof/pcm.c runtime->hw.buffer_bytes_max = le32_to_cpu(caps->buffer_size_max); runtime 485 sound/soc/sof/pcm.c runtime->hw.period_bytes_min, runtime 486 sound/soc/sof/pcm.c runtime->hw.period_bytes_max); runtime 488 sound/soc/sof/pcm.c runtime->hw.periods_min, runtime 489 sound/soc/sof/pcm.c runtime->hw.periods_max); runtime 491 sound/soc/sof/pcm.c runtime->hw.buffer_bytes_max); runtime 231 sound/soc/sof/pm.c if (!substream || !substream->runtime) runtime 234 sound/soc/sof/pm.c state = substream->runtime->status->state; runtime 105 sound/soc/sprd/sprd-pcm-compress.c struct snd_compr_runtime *runtime = cstream->runtime; runtime 106 sound/soc/sprd/sprd-pcm-compress.c struct sprd_compr_stream *stream = runtime->private_data; runtime 116 sound/soc/sprd/sprd-pcm-compress.c struct snd_compr_runtime *runtime = cstream->runtime; runtime 117 sound/soc/sprd/sprd-pcm-compress.c struct sprd_compr_stream *stream = runtime->private_data; runtime 132 sound/soc/sprd/sprd-pcm-compress.c struct snd_compr_runtime *runtime = cstream->runtime; runtime 133 sound/soc/sprd/sprd-pcm-compress.c struct sprd_compr_stream *stream = runtime->private_data; runtime 267 sound/soc/sprd/sprd-pcm-compress.c struct snd_compr_runtime *runtime = cstream->runtime; runtime 268 sound/soc/sprd/sprd-pcm-compress.c struct sprd_compr_stream *stream = runtime->private_data; runtime 319 sound/soc/sprd/sprd-pcm-compress.c struct snd_compr_runtime *runtime = cstream->runtime; runtime 382 sound/soc/sprd/sprd-pcm-compress.c runtime->private_data = stream; runtime 397 sound/soc/sprd/sprd-pcm-compress.c struct snd_compr_runtime *runtime = cstream->runtime; runtime 398 sound/soc/sprd/sprd-pcm-compress.c struct sprd_compr_stream *stream = runtime->private_data; runtime 426 sound/soc/sprd/sprd-pcm-compress.c struct snd_compr_runtime *runtime = cstream->runtime; runtime 427 sound/soc/sprd/sprd-pcm-compress.c struct sprd_compr_stream *stream = runtime->private_data; runtime 524 sound/soc/sprd/sprd-pcm-compress.c struct snd_compr_runtime *runtime = cstream->runtime; runtime 525 sound/soc/sprd/sprd-pcm-compress.c struct sprd_compr_stream *stream = runtime->private_data; runtime 538 sound/soc/sprd/sprd-pcm-compress.c struct snd_compr_runtime *runtime = cstream->runtime; runtime 539 sound/soc/sprd/sprd-pcm-compress.c struct sprd_compr_stream *stream = runtime->private_data; runtime 549 sound/soc/sprd/sprd-pcm-compress.c if (stream->received_stage0 < runtime->fragment_size) { runtime 550 sound/soc/sprd/sprd-pcm-compress.c avail_bytes = runtime->fragment_size - stream->received_stage0; runtime 51 sound/soc/sprd/sprd-pcm-dma.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 62 sound/soc/sprd/sprd-pcm-dma.c ret = snd_pcm_hw_constraint_step(runtime, 0, runtime 68 sound/soc/sprd/sprd-pcm-dma.c ret = snd_pcm_hw_constraint_step(runtime, 0, runtime 74 sound/soc/sprd/sprd-pcm-dma.c ret = snd_pcm_hw_constraint_integer(runtime, runtime 83 sound/soc/sprd/sprd-pcm-dma.c size = runtime->hw.periods_max * SPRD_PCM_DMA_LINKLIST_SIZE; runtime 97 sound/soc/sprd/sprd-pcm-dma.c runtime->private_data = dma_private; runtime 116 sound/soc/sprd/sprd-pcm-dma.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 118 sound/soc/sprd/sprd-pcm-dma.c struct sprd_pcm_dma_private *dma_private = runtime->private_data; runtime 122 sound/soc/sprd/sprd-pcm-dma.c int size = runtime->hw.periods_max * SPRD_PCM_DMA_LINKLIST_SIZE; runtime 146 sound/soc/sprd/sprd-pcm-dma.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 147 sound/soc/sprd/sprd-pcm-dma.c struct sprd_pcm_dma_private *dma_private = runtime->private_data; runtime 163 sound/soc/sprd/sprd-pcm-dma.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 164 sound/soc/sprd/sprd-pcm-dma.c struct sprd_pcm_dma_private *dma_private = runtime->private_data; runtime 196 sound/soc/sprd/sprd-pcm-dma.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 197 sound/soc/sprd/sprd-pcm-dma.c struct sprd_pcm_dma_private *dma_private = runtime->private_data; runtime 215 sound/soc/sprd/sprd-pcm-dma.c runtime->dma_bytes = totsize; runtime 228 sound/soc/sprd/sprd-pcm-dma.c runtime->dma_bytes = totsize; runtime 250 sound/soc/sprd/sprd-pcm-dma.c config.src_addr = runtime->dma_addr + runtime 256 sound/soc/sprd/sprd-pcm-dma.c config.dst_addr = runtime->dma_addr + runtime 266 sound/soc/sprd/sprd-pcm-dma.c sg_dma_address(sgt) = runtime->dma_addr + runtime 299 sound/soc/sprd/sprd-pcm-dma.c if (!runtime->no_period_wakeup) { runtime 327 sound/soc/sprd/sprd-pcm-dma.c substream->runtime->private_data; runtime 392 sound/soc/sprd/sprd-pcm-dma.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 394 sound/soc/sprd/sprd-pcm-dma.c struct sprd_pcm_dma_private *dma_private = runtime->private_data; runtime 420 sound/soc/sprd/sprd-pcm-dma.c pointer[i] = state.residue - runtime->dma_addr - runtime 440 sound/soc/sprd/sprd-pcm-dma.c x = bytes_to_frames(runtime, bytes_of_pointer); runtime 441 sound/soc/sprd/sprd-pcm-dma.c if (x == runtime->buffer_size) runtime 450 sound/soc/sprd/sprd-pcm-dma.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 454 sound/soc/sprd/sprd-pcm-dma.c runtime->dma_addr >> PAGE_SHIFT, runtime 1391 sound/soc/sti/uniperif.h struct snd_pcm_runtime *runtime) runtime 1393 sound/soc/sti/uniperif.h return (runtime->channels * snd_pcm_format_width(runtime->format) / 8); runtime 219 sound/soc/sti/uniperif_player.c struct snd_pcm_runtime *runtime) runtime 229 sound/soc/sti/uniperif_player.c if (runtime) { runtime 230 sound/soc/sti/uniperif_player.c switch (runtime->rate) { runtime 314 sound/soc/sti/uniperif_player.c struct snd_pcm_runtime *runtime) runtime 318 sound/soc/sti/uniperif_player.c clk_div = player->mclk / runtime->rate; runtime 327 sound/soc/sti/uniperif_player.c switch (runtime->format) { runtime 368 sound/soc/sti/uniperif_player.c uni_player_set_channel_status(player, runtime); runtime 392 sound/soc/sti/uniperif_player.c SET_UNIPERIF_I2S_FMT_NUM_CH(player, runtime->channels / 2); runtime 417 sound/soc/sti/uniperif_player.c struct snd_pcm_runtime *runtime) runtime 426 sound/soc/sti/uniperif_player.c slot_width = snd_pcm_format_width(runtime->format); runtime 428 sound/soc/sti/uniperif_player.c output_frame_size = slot_width * runtime->channels; runtime 430 sound/soc/sti/uniperif_player.c clk_div = player->mclk / runtime->rate; runtime 464 sound/soc/sti/uniperif_player.c switch (runtime->format) { runtime 490 sound/soc/sti/uniperif_player.c if ((runtime->channels % 2) || (runtime->channels < 2) || runtime 491 sound/soc/sti/uniperif_player.c (runtime->channels > 10)) { runtime 496 sound/soc/sti/uniperif_player.c SET_UNIPERIF_I2S_FMT_NUM_CH(player, runtime->channels / 2); runtime 510 sound/soc/sti/uniperif_player.c struct snd_pcm_runtime *runtime) runtime 522 sound/soc/sti/uniperif_player.c sti_uniperiph_get_user_frame_size(runtime); runtime 548 sound/soc/sti/uniperif_player.c freq = runtime->rate * tdm_frame_size * 8; runtime 603 sound/soc/sti/uniperif_player.c if (player->substream && player->substream->runtime) runtime 605 sound/soc/sti/uniperif_player.c player->substream->runtime); runtime 709 sound/soc/sti/uniperif_player.c ret = snd_pcm_hw_rule_add(substream->runtime, 0, runtime 717 sound/soc/sti/uniperif_player.c return snd_pcm_hw_rule_add(substream->runtime, 0, runtime 751 sound/soc/sti/uniperif_player.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 766 sound/soc/sti/uniperif_player.c sti_uniperiph_get_user_frame_size(runtime) / 4; runtime 768 sound/soc/sti/uniperif_player.c transfer_size = runtime->channels * UNIPERIF_FIFO_FRAMES; runtime 796 sound/soc/sti/uniperif_player.c ret = uni_player_prepare_iec958(player, runtime); runtime 799 sound/soc/sti/uniperif_player.c ret = uni_player_prepare_pcm(player, runtime); runtime 802 sound/soc/sti/uniperif_player.c ret = uni_player_prepare_iec958(player, runtime); runtime 805 sound/soc/sti/uniperif_player.c ret = uni_player_prepare_tdm(player, runtime); runtime 81 sound/soc/sti/uniperif_reader.c static int uni_reader_prepare_pcm(struct snd_pcm_runtime *runtime, runtime 91 sound/soc/sti/uniperif_reader.c switch (runtime->format) { runtime 117 sound/soc/sti/uniperif_reader.c switch (runtime->format) { runtime 137 sound/soc/sti/uniperif_reader.c if ((runtime->channels % 2) || (runtime->channels < 2) || runtime 138 sound/soc/sti/uniperif_reader.c (runtime->channels > 10)) { runtime 143 sound/soc/sti/uniperif_reader.c SET_UNIPERIF_I2S_FMT_NUM_CH(reader, runtime->channels / 2); runtime 149 sound/soc/sti/uniperif_reader.c static int uni_reader_prepare_tdm(struct snd_pcm_runtime *runtime, runtime 157 sound/soc/sti/uniperif_reader.c frame_size = sti_uniperiph_get_user_frame_size(runtime); runtime 191 sound/soc/sti/uniperif_reader.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 205 sound/soc/sti/uniperif_reader.c sti_uniperiph_get_user_frame_size(runtime) / 4; runtime 207 sound/soc/sti/uniperif_reader.c transfer_size = runtime->channels * UNIPERIF_FIFO_FRAMES; runtime 233 sound/soc/sti/uniperif_reader.c ret = uni_reader_prepare_tdm(runtime, reader); runtime 235 sound/soc/sti/uniperif_reader.c ret = uni_reader_prepare_pcm(runtime, reader); runtime 369 sound/soc/sti/uniperif_reader.c ret = snd_pcm_hw_rule_add(substream->runtime, 0, runtime 377 sound/soc/sti/uniperif_reader.c return snd_pcm_hw_rule_add(substream->runtime, 0, runtime 89 sound/soc/stm/stm32_adfsdm.c substream->runtime->rate, 0, runtime 93 sound/soc/stm/stm32_adfsdm.c __func__, substream->runtime->rate); runtime 178 sound/soc/stm/stm32_adfsdm.c snd_pcm_format_t format = priv->substream->runtime->format; runtime 265 sound/soc/stm/stm32_adfsdm.c return bytes_to_frames(substream->runtime, priv->pos); runtime 279 sound/soc/stm/stm32_adfsdm.c priv->pcm_buff = substream->runtime->dma_area; runtime 561 sound/soc/stm/stm32_i2s.c snd_pcm_hw_constraint_single(substream->runtime, runtime 769 sound/soc/stm/stm32_sai_sub.c snd_pcm_hw_constraint_mask64(substream->runtime, runtime 772 sound/soc/stm/stm32_sai_sub.c snd_pcm_hw_constraint_single(substream->runtime, runtime 945 sound/soc/stm/stm32_sai_sub.c struct snd_pcm_runtime *runtime) runtime 947 sound/soc/stm/stm32_sai_sub.c if (!runtime) runtime 952 sound/soc/stm/stm32_sai_sub.c switch (runtime->rate) { runtime 1080 sound/soc/stm/stm32_sai_sub.c substream->runtime->rate = params_rate(params); runtime 1081 sound/soc/stm/stm32_sai_sub.c stm32_sai_set_iec958_status(sai, substream->runtime); runtime 1239 sound/soc/stm/stm32_sai_sub.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1243 sound/soc/stm/stm32_sai_sub.c int *ptr = (int *)(runtime->dma_area + hwoff + runtime 1244 sound/soc/stm/stm32_sai_sub.c channel * (runtime->dma_bytes / runtime->channels)); runtime 1245 sound/soc/stm/stm32_sai_sub.c ssize_t cnt = bytes_to_samples(runtime, bytes); runtime 377 sound/soc/sunxi/sun4i-codec.c if (substream->runtime->rate > 32000) runtime 620 sound/soc/sunxi/sun4i-codec.c snd_pcm_hw_constraint_list(substream->runtime, 0, runtime 209 sound/soc/sunxi/sun4i-spdif.c if (substream->runtime->channels == 1) runtime 1159 sound/soc/ti/davinci-mcasp.c return fifo_use / substream->runtime->channels; runtime 1486 sound/soc/ti/davinci-mcasp.c snd_pcm_hw_constraint_minmax(substream->runtime, runtime 1490 sound/soc/ti/davinci-mcasp.c snd_pcm_hw_constraint_list(substream->runtime, runtime 1499 sound/soc/ti/davinci-mcasp.c ret = snd_pcm_hw_rule_add(substream->runtime, 0, runtime 1509 sound/soc/ti/davinci-mcasp.c ret = snd_pcm_hw_rule_add(substream->runtime, 0, runtime 1523 sound/soc/ti/davinci-mcasp.c ret = snd_pcm_hw_rule_add(substream->runtime, 0, runtime 1530 sound/soc/ti/davinci-mcasp.c ret = snd_pcm_hw_rule_add(substream->runtime, 0, runtime 1539 sound/soc/ti/davinci-mcasp.c snd_pcm_hw_rule_add(substream->runtime, 0, runtime 86 sound/soc/ti/n810.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 89 sound/soc/ti/n810.c snd_pcm_hw_constraint_single(runtime, SNDRV_PCM_HW_PARAM_CHANNELS, 2); runtime 53 sound/soc/ti/omap-hdmi.c if (ad->current_stream && ad->current_stream->runtime && runtime 72 sound/soc/ti/omap-hdmi.c ret = snd_pcm_hw_constraint_step(substream->runtime, 0, runtime 79 sound/soc/ti/omap-hdmi.c ret = snd_pcm_hw_constraint_step(substream->runtime, 0, runtime 816 sound/soc/ti/omap-mcbsp.c snd_pcm_hw_rule_add(substream->runtime, 0, runtime 823 sound/soc/ti/omap-mcbsp.c snd_pcm_hw_constraint_step(substream->runtime, 0, runtime 924 sound/soc/ti/omap-mcbsp.c delay = fifo_use / substream->runtime->channels; runtime 92 sound/soc/ti/rx51.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 96 sound/soc/ti/rx51.c snd_pcm_hw_constraint_single(runtime, SNDRV_PCM_HW_PARAM_CHANNELS, 2); runtime 54 sound/soc/txx9/txx9aclc.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 56 sound/soc/txx9/txx9aclc.c struct txx9aclc_dmadata *dmadata = runtime->private_data; runtime 66 sound/soc/txx9/txx9aclc.c (unsigned long)runtime->dma_area, runtime 67 sound/soc/txx9/txx9aclc.c (unsigned long)runtime->dma_addr, runtime->dma_bytes, runtime 68 sound/soc/txx9/txx9aclc.c runtime->min_align); runtime 86 sound/soc/txx9/txx9aclc.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 87 sound/soc/txx9/txx9aclc.c struct txx9aclc_dmadata *dmadata = runtime->private_data; runtime 89 sound/soc/txx9/txx9aclc.c dmadata->dma_addr = runtime->dma_addr; runtime 208 sound/soc/txx9/txx9aclc.c struct txx9aclc_dmadata *dmadata = substream->runtime->private_data; runtime 241 sound/soc/txx9/txx9aclc.c struct txx9aclc_dmadata *dmadata = substream->runtime->private_data; runtime 243 sound/soc/txx9/txx9aclc.c return bytes_to_frames(substream->runtime, dmadata->pos); runtime 256 sound/soc/txx9/txx9aclc.c ret = snd_pcm_hw_constraint_integer(substream->runtime, runtime 260 sound/soc/txx9/txx9aclc.c substream->runtime->private_data = dmadata; runtime 266 sound/soc/txx9/txx9aclc.c struct txx9aclc_dmadata *dmadata = substream->runtime->private_data; runtime 179 sound/soc/uniphier/aio-compress.c struct snd_compr_runtime *runtime = cstream->runtime; runtime 182 sound/soc/uniphier/aio-compress.c int bytes = runtime->fragment_size; runtime 217 sound/soc/uniphier/aio-compress.c struct snd_compr_runtime *runtime = cstream->runtime; runtime 221 sound/soc/uniphier/aio-compress.c int bytes = runtime->fragment_size, ret = 0; runtime 250 sound/soc/uniphier/aio-compress.c struct snd_compr_runtime *runtime = cstream->runtime; runtime 253 sound/soc/uniphier/aio-compress.c int bytes = runtime->fragment_size; runtime 323 sound/soc/uniphier/aio-compress.c struct snd_compr_runtime *runtime = cstream->runtime; runtime 328 sound/soc/uniphier/aio-compress.c int bytes = runtime->fragment_size; runtime 30 sound/soc/uniphier/aio-dma.c struct snd_pcm_runtime *runtime = sub->substream->runtime; runtime 31 sound/soc/uniphier/aio-dma.c int bytes = runtime->period_size * runtime 32 sound/soc/uniphier/aio-dma.c runtime->channels * samples_to_bytes(runtime, 1); runtime 36 sound/soc/uniphier/aio-dma.c ret = aiodma_rb_set_threshold(sub, runtime->dma_bytes, runtime 41 sound/soc/uniphier/aio-dma.c aiodma_rb_sync(sub, runtime->dma_addr, runtime->dma_bytes, bytes); runtime 50 sound/soc/uniphier/aio-dma.c struct snd_compr_runtime *runtime = sub->cstream->runtime; runtime 51 sound/soc/uniphier/aio-dma.c int bytes = runtime->fragment_size; runtime 98 sound/soc/uniphier/aio-dma.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 102 sound/soc/uniphier/aio-dma.c return snd_pcm_hw_constraint_step(runtime, 0, runtime 110 sound/soc/uniphier/aio-dma.c substream->runtime->dma_bytes = params_buffer_bytes(params); runtime 118 sound/soc/uniphier/aio-dma.c substream->runtime->dma_bytes = 0; runtime 125 sound/soc/uniphier/aio-dma.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 129 sound/soc/uniphier/aio-dma.c int bytes = runtime->period_size * runtime 130 sound/soc/uniphier/aio-dma.c runtime->channels * samples_to_bytes(runtime, 1); runtime 139 sound/soc/uniphier/aio-dma.c ret = aiodma_rb_set_buffer(sub, runtime->dma_addr, runtime 140 sound/soc/uniphier/aio-dma.c runtime->dma_addr + runtime->dma_bytes, runtime 151 sound/soc/uniphier/aio-dma.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 156 sound/soc/uniphier/aio-dma.c int bytes = runtime->period_size * runtime 157 sound/soc/uniphier/aio-dma.c runtime->channels * samples_to_bytes(runtime, 1); runtime 163 sound/soc/uniphier/aio-dma.c aiodma_rb_sync(sub, runtime->dma_addr, runtime->dma_bytes, runtime 186 sound/soc/uniphier/aio-dma.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 190 sound/soc/uniphier/aio-dma.c int bytes = runtime->period_size * runtime 191 sound/soc/uniphier/aio-dma.c runtime->channels * samples_to_bytes(runtime, 1); runtime 196 sound/soc/uniphier/aio-dma.c aiodma_rb_sync(sub, runtime->dma_addr, runtime->dma_bytes, bytes); runtime 199 sound/soc/uniphier/aio-dma.c pos = bytes_to_frames(runtime, sub->rd_offs); runtime 201 sound/soc/uniphier/aio-dma.c pos = bytes_to_frames(runtime, sub->wr_offs); runtime 16 sound/soc/ux500/mop500_ab8500.h int mop500_ab8500_machine_init(struct snd_soc_pcm_runtime *runtime); runtime 307 sound/soc/ux500/ux500_msp_dai.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 321 sound/soc/ux500/ux500_msp_dai.c msp_config->frame_freq = runtime->rate; runtime 329 sound/soc/ux500/ux500_msp_dai.c runtime->rate, runtime->channels); runtime 368 sound/soc/ux500/ux500_msp_dai.c ret = setup_pcm_framing(dai, runtime->rate, prot_desc); runtime 464 sound/soc/ux500/ux500_msp_dai.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 468 sound/soc/ux500/ux500_msp_dai.c dai->id, snd_pcm_stream_str(substream), runtime->rate); runtime 502 sound/soc/ux500/ux500_msp_dai.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 510 sound/soc/ux500/ux500_msp_dai.c snd_pcm_hw_constraint_minmax(runtime, runtime 524 sound/soc/ux500/ux500_msp_dai.c snd_pcm_hw_constraint_single(runtime, runtime 322 sound/soc/xilinx/xlnx_formatter_pcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 371 sound/soc/xilinx/xlnx_formatter_pcm.c runtime->private_data = stream_data; runtime 374 sound/soc/xilinx/xlnx_formatter_pcm.c err = snd_pcm_hw_constraint_step(runtime, 0, runtime 394 sound/soc/xilinx/xlnx_formatter_pcm.c substream->runtime->private_data; runtime 415 sound/soc/xilinx/xlnx_formatter_pcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 416 sound/soc/xilinx/xlnx_formatter_pcm.c struct xlnx_pcm_stream_param *stream_data = runtime->private_data; runtime 423 sound/soc/xilinx/xlnx_formatter_pcm.c return bytes_to_frames(runtime, pos); runtime 436 sound/soc/xilinx/xlnx_formatter_pcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 437 sound/soc/xilinx/xlnx_formatter_pcm.c struct xlnx_pcm_stream_param *stream_data = runtime->private_data; runtime 513 sound/soc/xilinx/xlnx_formatter_pcm.c substream->runtime->private_data; runtime 77 sound/soc/xtensa/xtfpga-i2s.c struct snd_pcm_runtime *runtime, runtime 131 sound/soc/xtensa/xtfpga-i2s.c struct xtfpga_i2s *i2s, struct snd_pcm_runtime *runtime, \ runtime 135 sound/soc/xtensa/xtfpga-i2s.c (void *)runtime->dma_area; \ runtime 143 sound/soc/xtensa/xtfpga-i2s.c if (++tx_ptr >= runtime->buffer_size) \ runtime 166 sound/soc/xtensa/xtfpga-i2s.c unsigned new_tx_ptr = i2s->tx_fn(i2s, tx_substream->runtime, runtime 370 sound/soc/xtensa/xtfpga-i2s.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 376 sound/soc/xtensa/xtfpga-i2s.c runtime->private_data = p; runtime 391 sound/soc/xtensa/xtfpga-i2s.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 392 sound/soc/xtensa/xtfpga-i2s.c struct xtfpga_i2s *i2s = runtime->private_data; runtime 430 sound/soc/xtensa/xtfpga-i2s.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 431 sound/soc/xtensa/xtfpga-i2s.c struct xtfpga_i2s *i2s = runtime->private_data; runtime 457 sound/soc/xtensa/xtfpga-i2s.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 458 sound/soc/xtensa/xtfpga-i2s.c struct xtfpga_i2s *i2s = runtime->private_data; runtime 461 sound/soc/xtensa/xtfpga-i2s.c return pos < runtime->buffer_size ? pos : 0; runtime 585 sound/sparc/amd7930.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 595 sound/sparc/amd7930.c amd->p_orig = amd->p_cur = runtime->dma_area; runtime 600 sound/sparc/amd7930.c if (runtime->format == SNDRV_PCM_FORMAT_A_LAW) runtime 617 sound/sparc/amd7930.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 627 sound/sparc/amd7930.c amd->c_orig = amd->c_cur = runtime->dma_area; runtime 632 sound/sparc/amd7930.c if (runtime->format == SNDRV_PCM_FORMAT_A_LAW) runtime 654 sound/sparc/amd7930.c return bytes_to_frames(substream->runtime, ptr); runtime 666 sound/sparc/amd7930.c return bytes_to_frames(substream->runtime, ptr); runtime 693 sound/sparc/amd7930.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 696 sound/sparc/amd7930.c runtime->hw = snd_amd7930_pcm_hw; runtime 703 sound/sparc/amd7930.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 706 sound/sparc/amd7930.c runtime->hw = snd_amd7930_pcm_hw; runtime 214 sound/sparc/cs4231.c static int snd_cs4231_xrate(struct snd_pcm_runtime *runtime) runtime 216 sound/sparc/cs4231.c return snd_pcm_hw_constraint_list(runtime, 0, runtime 427 sound/sparc/cs4231.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 437 sound/sparc/cs4231.c runtime->dma_addr + offset, period_size)) runtime 439 sound/sparc/cs4231.c (*periods_sent) = ((*periods_sent) + 1) % runtime->periods; runtime 909 sound/sparc/cs4231.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 918 sound/sparc/cs4231.c if (WARN_ON(runtime->period_size > 0xffff + 1)) { runtime 977 sound/sparc/cs4231.c chip->capture_substream->runtime->overrange++; runtime 1009 sound/sparc/cs4231.c ptr -= substream->runtime->dma_addr; runtime 1011 sound/sparc/cs4231.c return bytes_to_frames(substream->runtime, ptr); runtime 1025 sound/sparc/cs4231.c ptr -= substream->runtime->dma_addr; runtime 1027 sound/sparc/cs4231.c return bytes_to_frames(substream->runtime, ptr); runtime 1144 sound/sparc/cs4231.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1147 sound/sparc/cs4231.c runtime->hw = snd_cs4231_playback; runtime 1155 sound/sparc/cs4231.c snd_cs4231_xrate(runtime); runtime 1163 sound/sparc/cs4231.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1166 sound/sparc/cs4231.c runtime->hw = snd_cs4231_capture; runtime 1174 sound/sparc/cs4231.c snd_cs4231_xrate(runtime); runtime 2047 sound/sparc/dbri.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 2052 sound/sparc/dbri.c runtime->hw = snd_dbri_pcm_hw; runtime 2061 sound/sparc/dbri.c snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, runtime 2064 sound/sparc/dbri.c snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_FORMAT, runtime 2089 sound/sparc/dbri.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 2118 sound/sparc/dbri.c runtime->dma_area, runtime 2146 sound/sparc/dbri.c substream->runtime->buffer_size, direction); runtime 2214 sound/sparc/dbri.c ret = bytes_to_frames(substream->runtime, info->offset) runtime 2215 sound/sparc/dbri.c % substream->runtime->buffer_size; runtime 2217 sound/sparc/dbri.c ret, substream->runtime->buffer_size); runtime 208 sound/spi/at73c213.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 212 sound/spi/at73c213.c err = snd_pcm_hw_constraint_integer(runtime, runtime 218 sound/spi/at73c213.c runtime->hw = snd_at73c213_playback_hw; runtime 257 sound/spi/at73c213.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 260 sound/spi/at73c213.c block_size = frames_to_bytes(runtime, runtime->period_size); runtime 265 sound/spi/at73c213.c (long)runtime->dma_addr); runtime 267 sound/spi/at73c213.c runtime->period_size * runtime->channels); runtime 269 sound/spi/at73c213.c (long)runtime->dma_addr + block_size); runtime 271 sound/spi/at73c213.c runtime->period_size * runtime->channels); runtime 308 sound/spi/at73c213.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 313 sound/spi/at73c213.c - (unsigned long)runtime->dma_addr; runtime 315 sound/spi/at73c213.c pos = bytes_to_frames(runtime, bytes); runtime 316 sound/spi/at73c213.c if (pos >= runtime->buffer_size) runtime 317 sound/spi/at73c213.c pos -= runtime->buffer_size; runtime 360 sound/spi/at73c213.c struct snd_pcm_runtime *runtime = chip->substream->runtime; runtime 369 sound/spi/at73c213.c block_size = frames_to_bytes(runtime, runtime->period_size); runtime 374 sound/spi/at73c213.c if (chip->period == runtime->periods) runtime 377 sound/spi/at73c213.c if (next_period == runtime->periods) runtime 383 sound/spi/at73c213.c (long)runtime->dma_addr + offset); runtime 385 sound/spi/at73c213.c runtime->period_size * runtime->channels); runtime 199 sound/usb/6fire/pcm.c struct snd_pcm_runtime *alsa_rt = sub->instance->runtime; runtime 246 sound/usb/6fire/pcm.c struct snd_pcm_runtime *alsa_rt = sub->instance->runtime; runtime 319 sound/usb/6fire/pcm.c if (sub->period_off >= sub->instance->runtime->period_size) { runtime 320 sound/usb/6fire/pcm.c sub->period_off %= sub->instance->runtime->period_size; runtime 344 sound/usb/6fire/pcm.c if (sub->period_off >= sub->instance->runtime->period_size) { runtime 345 sound/usb/6fire/pcm.c sub->period_off %= sub->instance->runtime->period_size; runtime 390 sound/usb/6fire/pcm.c struct snd_pcm_runtime *alsa_rt = alsa_sub->runtime; runtime 465 sound/usb/6fire/pcm.c struct snd_pcm_runtime *alsa_rt = alsa_sub->runtime; runtime 147 sound/usb/caiaq/audio.c substream->runtime->hw = cdev->pcm_info; runtime 148 sound/usb/caiaq/audio.c snd_pcm_limit_hw_rates(substream->runtime); runtime 197 sound/usb/caiaq/audio.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 244 sound/usb/caiaq/audio.c if (runtime->rate == rates[i]) runtime 247 sound/usb/caiaq/audio.c snd_pcm_limit_hw_rates(runtime); runtime 253 sound/usb/caiaq/audio.c bpp = ((runtime->rate / 8000) + CLOCK_DRIFT_TOLERANCE) runtime 259 sound/usb/caiaq/audio.c ret = snd_usb_caiaq_set_audio_params(cdev, runtime->rate, runtime 260 sound/usb/caiaq/audio.c runtime->sample_bits, bpp); runtime 316 sound/usb/caiaq/audio.c ptr = bytes_to_frames(sub->runtime, runtime 319 sound/usb/caiaq/audio.c ptr = bytes_to_frames(sub->runtime, runtime 378 sound/usb/caiaq/audio.c struct snd_pcm_runtime *rt = sub->runtime; runtime 425 sound/usb/caiaq/audio.c struct snd_pcm_runtime *rt = sub->runtime; runtime 457 sound/usb/caiaq/audio.c struct snd_pcm_runtime *rt = sub->runtime; runtime 538 sound/usb/caiaq/audio.c struct snd_pcm_runtime *rt = sub->runtime; runtime 574 sound/usb/caiaq/audio.c struct snd_pcm_runtime *rt = sub->runtime; runtime 259 sound/usb/hiface/pcm.c struct snd_pcm_runtime *alsa_rt = sub->instance->runtime; runtime 355 sound/usb/hiface/pcm.c struct snd_pcm_runtime *alsa_rt = alsa_sub->runtime; runtime 379 sound/usb/hiface/pcm.c ret = snd_pcm_hw_constraint_list(alsa_sub->runtime, 0, runtime 434 sound/usb/hiface/pcm.c struct snd_pcm_runtime *alsa_rt = alsa_sub->runtime; runtime 509 sound/usb/hiface/pcm.c return bytes_to_frames(alsa_sub->runtime, dma_offset); runtime 88 sound/usb/line6/capture.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 94 sound/usb/line6/capture.c if (runtime == NULL) runtime 97 sound/usb/line6/capture.c if (line6pcm->in.pos_done + frames > runtime->buffer_size) { runtime 104 sound/usb/line6/capture.c len = runtime->buffer_size - line6pcm->in.pos_done; runtime 107 sound/usb/line6/capture.c memcpy(runtime->dma_area + runtime 110 sound/usb/line6/capture.c memcpy(runtime->dma_area, fbuf + len * bytes_per_frame, runtime 119 sound/usb/line6/capture.c memcpy(runtime->dma_area + runtime 124 sound/usb/line6/capture.c if (line6pcm->in.pos_done >= runtime->buffer_size) runtime 125 sound/usb/line6/capture.c line6pcm->in.pos_done -= runtime->buffer_size; runtime 222 sound/usb/line6/capture.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 225 sound/usb/line6/capture.c err = snd_pcm_hw_constraint_ratdens(runtime, 0, runtime 233 sound/usb/line6/capture.c runtime->hw = line6pcm->properties->capture_hw; runtime 205 sound/usb/line6/playback.c struct snd_pcm_runtime *runtime = runtime 206 sound/usb/line6/playback.c get_substream(line6pcm, SNDRV_PCM_STREAM_PLAYBACK)->runtime; runtime 208 sound/usb/line6/playback.c if (line6pcm->out.pos + urb_frames > runtime->buffer_size) { runtime 215 sound/usb/line6/playback.c len = runtime->buffer_size - line6pcm->out.pos; runtime 219 sound/usb/line6/playback.c runtime->dma_area + runtime 223 sound/usb/line6/playback.c len * bytes_per_frame, runtime->dma_area, runtime 230 sound/usb/line6/playback.c runtime->dma_area + runtime 236 sound/usb/line6/playback.c if (line6pcm->out.pos >= runtime->buffer_size) runtime 237 sound/usb/line6/playback.c line6pcm->out.pos -= runtime->buffer_size; runtime 333 sound/usb/line6/playback.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 338 sound/usb/line6/playback.c if (line6pcm->out.pos_done >= runtime->buffer_size) runtime 339 sound/usb/line6/playback.c line6pcm->out.pos_done -= runtime->buffer_size; runtime 373 sound/usb/line6/playback.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 376 sound/usb/line6/playback.c err = snd_pcm_hw_constraint_ratdens(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, runtime 381 sound/usb/line6/playback.c runtime->hw = line6pcm->properties->playback_hw; runtime 1157 sound/usb/midi.c substream->runtime->private_data = port; runtime 1171 sound/usb/midi.c (struct usbmidi_out_port *)substream->runtime->private_data; runtime 1187 sound/usb/midi.c struct usbmidi_out_port *port = substream->runtime->private_data; runtime 192 sound/usb/misc/ua101.c ua->playback.substream->runtime->delay -= runtime 214 sound/usb/misc/ua101.c struct snd_pcm_runtime *runtime; runtime 218 sound/usb/misc/ua101.c runtime = stream->substream->runtime; runtime 220 sound/usb/misc/ua101.c source = runtime->dma_area + stream->buffer_pos * frame_bytes; runtime 221 sound/usb/misc/ua101.c if (stream->buffer_pos + frames <= runtime->buffer_size) { runtime 225 sound/usb/misc/ua101.c frames1 = runtime->buffer_size - stream->buffer_pos; runtime 228 sound/usb/misc/ua101.c runtime->dma_area, (frames - frames1) * frame_bytes); runtime 232 sound/usb/misc/ua101.c if (stream->buffer_pos >= runtime->buffer_size) runtime 233 sound/usb/misc/ua101.c stream->buffer_pos -= runtime->buffer_size; runtime 235 sound/usb/misc/ua101.c if (stream->period_pos >= runtime->period_size) { runtime 236 sound/usb/misc/ua101.c stream->period_pos -= runtime->period_size; runtime 307 sound/usb/misc/ua101.c ua->playback.substream->runtime->delay += frames; runtime 318 sound/usb/misc/ua101.c struct snd_pcm_runtime *runtime; runtime 322 sound/usb/misc/ua101.c runtime = stream->substream->runtime; runtime 324 sound/usb/misc/ua101.c dest = runtime->dma_area + stream->buffer_pos * frame_bytes; runtime 325 sound/usb/misc/ua101.c if (stream->buffer_pos + frames <= runtime->buffer_size) { runtime 329 sound/usb/misc/ua101.c frames1 = runtime->buffer_size - stream->buffer_pos; runtime 331 sound/usb/misc/ua101.c memcpy(runtime->dma_area, runtime 337 sound/usb/misc/ua101.c if (stream->buffer_pos >= runtime->buffer_size) runtime 338 sound/usb/misc/ua101.c stream->buffer_pos -= runtime->buffer_size; runtime 340 sound/usb/misc/ua101.c if (stream->period_pos >= runtime->period_size) { runtime 341 sound/usb/misc/ua101.c stream->period_pos -= runtime->period_size; runtime 621 sound/usb/misc/ua101.c substream->runtime->hw.info = runtime 628 sound/usb/misc/ua101.c substream->runtime->hw.formats = ua->format_bit; runtime 629 sound/usb/misc/ua101.c substream->runtime->hw.rates = snd_pcm_rate_to_rate_bit(ua->rate); runtime 630 sound/usb/misc/ua101.c substream->runtime->hw.rate_min = ua->rate; runtime 631 sound/usb/misc/ua101.c substream->runtime->hw.rate_max = ua->rate; runtime 632 sound/usb/misc/ua101.c substream->runtime->hw.channels_min = channels; runtime 633 sound/usb/misc/ua101.c substream->runtime->hw.channels_max = channels; runtime 634 sound/usb/misc/ua101.c substream->runtime->hw.buffer_bytes_max = 45000 * 1024; runtime 635 sound/usb/misc/ua101.c substream->runtime->hw.period_bytes_min = 1; runtime 636 sound/usb/misc/ua101.c substream->runtime->hw.period_bytes_max = UINT_MAX; runtime 637 sound/usb/misc/ua101.c substream->runtime->hw.periods_min = 2; runtime 638 sound/usb/misc/ua101.c substream->runtime->hw.periods_max = UINT_MAX; runtime 639 sound/usb/misc/ua101.c err = snd_pcm_hw_constraint_minmax(substream->runtime, runtime 645 sound/usb/misc/ua101.c err = snd_pcm_hw_constraint_msbits(substream->runtime, 0, 32, 24); runtime 658 sound/usb/misc/ua101.c substream->runtime->hw.fifo_size = runtime 660 sound/usb/misc/ua101.c substream->runtime->delay = substream->runtime->hw.fifo_size; runtime 679 sound/usb/misc/ua101.c substream->runtime->hw.fifo_size = runtime 815 sound/usb/misc/ua101.c substream->runtime->delay = 0; runtime 68 sound/usb/pcm.c struct snd_usb_substream *subs = substream->runtime->private_data; runtime 75 sound/usb/pcm.c substream->runtime->delay = snd_usb_pcm_delay(subs, runtime 76 sound/usb/pcm.c substream->runtime->rate); runtime 78 sound/usb/pcm.c return hwptr_done / (substream->runtime->frame_bits >> 3); runtime 787 sound/usb/pcm.c struct snd_usb_substream *subs = substream->runtime->private_data; runtime 854 sound/usb/pcm.c struct snd_usb_substream *subs = substream->runtime->private_data; runtime 880 sound/usb/pcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 881 sound/usb/pcm.c struct snd_usb_substream *subs = runtime->private_data; runtime 930 sound/usb/pcm.c bytes_to_frames(runtime, subs->data_endpoint->maxpacksize); runtime 932 sound/usb/pcm.c bytes_to_frames(runtime, subs->data_endpoint->curpacksize); runtime 939 sound/usb/pcm.c runtime->delay = 0; runtime 1186 sound/usb/pcm.c static int snd_usb_pcm_check_knot(struct snd_pcm_runtime *runtime, runtime 1219 sound/usb/pcm.c err = snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, runtime 1232 sound/usb/pcm.c static int setup_hw_info(struct snd_pcm_runtime *runtime, struct snd_usb_substream *subs) runtime 1239 sound/usb/pcm.c runtime->hw.formats = subs->formats; runtime 1241 sound/usb/pcm.c runtime->hw.rate_min = 0x7fffffff; runtime 1242 sound/usb/pcm.c runtime->hw.rate_max = 0; runtime 1243 sound/usb/pcm.c runtime->hw.channels_min = 256; runtime 1244 sound/usb/pcm.c runtime->hw.channels_max = 0; runtime 1245 sound/usb/pcm.c runtime->hw.rates = 0; runtime 1249 sound/usb/pcm.c runtime->hw.rates |= fp->rates; runtime 1250 sound/usb/pcm.c if (runtime->hw.rate_min > fp->rate_min) runtime 1251 sound/usb/pcm.c runtime->hw.rate_min = fp->rate_min; runtime 1252 sound/usb/pcm.c if (runtime->hw.rate_max < fp->rate_max) runtime 1253 sound/usb/pcm.c runtime->hw.rate_max = fp->rate_max; runtime 1254 sound/usb/pcm.c if (runtime->hw.channels_min > fp->channels) runtime 1255 sound/usb/pcm.c runtime->hw.channels_min = fp->channels; runtime 1256 sound/usb/pcm.c if (runtime->hw.channels_max < fp->channels) runtime 1257 sound/usb/pcm.c runtime->hw.channels_max = fp->channels; runtime 1260 sound/usb/pcm.c runtime->hw.period_bytes_min = runtime->hw.period_bytes_max = runtime 1275 sound/usb/pcm.c err = snd_pcm_hw_constraint_minmax(runtime, runtime 1281 sound/usb/pcm.c err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, runtime 1289 sound/usb/pcm.c err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, runtime 1297 sound/usb/pcm.c err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_FORMAT, runtime 1306 sound/usb/pcm.c err = snd_pcm_hw_rule_add(runtime, 0, runtime 1316 sound/usb/pcm.c err = snd_usb_pcm_check_knot(runtime, subs); runtime 1327 sound/usb/pcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 1333 sound/usb/pcm.c runtime->hw = snd_usb_hardware; runtime 1334 sound/usb/pcm.c runtime->private_data = subs; runtime 1343 sound/usb/pcm.c ret = setup_hw_info(runtime, subs); runtime 1387 sound/usb/pcm.c struct snd_pcm_runtime *runtime = subs->pcm_substream->runtime; runtime 1397 sound/usb/pcm.c stride = runtime->frame_bits >> 3; runtime 1410 sound/usb/pcm.c if (bytes % (runtime->sample_bits >> 3) != 0) { runtime 1421 sound/usb/pcm.c if (subs->hwptr_done >= runtime->buffer_size * stride) runtime 1422 sound/usb/pcm.c subs->hwptr_done -= runtime->buffer_size * stride; runtime 1425 sound/usb/pcm.c if (subs->transfer_done >= runtime->period_size) { runtime 1426 sound/usb/pcm.c subs->transfer_done -= runtime->period_size; runtime 1432 sound/usb/pcm.c runtime->delay = subs->last_delay = 0; runtime 1440 sound/usb/pcm.c if (oldptr + bytes > runtime->buffer_size * stride) { runtime 1442 sound/usb/pcm.c runtime->buffer_size * stride - oldptr; runtime 1443 sound/usb/pcm.c memcpy(runtime->dma_area + oldptr, cp, bytes1); runtime 1444 sound/usb/pcm.c memcpy(runtime->dma_area, cp + bytes1, bytes - bytes1); runtime 1446 sound/usb/pcm.c memcpy(runtime->dma_area + oldptr, cp, bytes); runtime 1457 sound/usb/pcm.c struct snd_pcm_runtime *runtime = subs->pcm_substream->runtime; runtime 1458 sound/usb/pcm.c unsigned int stride = runtime->frame_bits >> 3; runtime 1461 sound/usb/pcm.c unsigned int wrap = runtime->buffer_size * stride; runtime 1463 sound/usb/pcm.c u8 *src = runtime->dma_area; runtime 1489 sound/usb/pcm.c if (++subs->dsd_dop.channel % runtime->channels == 0) { runtime 1507 sound/usb/pcm.c if (subs->hwptr_done >= runtime->buffer_size * stride) runtime 1508 sound/usb/pcm.c subs->hwptr_done -= runtime->buffer_size * stride; runtime 1514 sound/usb/pcm.c struct snd_pcm_runtime *runtime = subs->pcm_substream->runtime; runtime 1516 sound/usb/pcm.c if (subs->hwptr_done + bytes > runtime->buffer_size * stride) { runtime 1519 sound/usb/pcm.c runtime->buffer_size * stride - subs->hwptr_done; runtime 1521 sound/usb/pcm.c runtime->dma_area + subs->hwptr_done, bytes1); runtime 1523 sound/usb/pcm.c runtime->dma_area, bytes - bytes1); runtime 1526 sound/usb/pcm.c runtime->dma_area + subs->hwptr_done, bytes); runtime 1529 sound/usb/pcm.c if (subs->hwptr_done >= runtime->buffer_size * stride) runtime 1530 sound/usb/pcm.c subs->hwptr_done -= runtime->buffer_size * stride; runtime 1562 sound/usb/pcm.c struct snd_pcm_runtime *runtime = subs->pcm_substream->runtime; runtime 1569 sound/usb/pcm.c stride = runtime->frame_bits >> 3; runtime 1587 sound/usb/pcm.c if (subs->transfer_done >= runtime->period_size) { runtime 1588 sound/usb/pcm.c subs->transfer_done -= runtime->period_size; runtime 1629 sound/usb/pcm.c % (runtime->buffer_size * stride); runtime 1630 sound/usb/pcm.c buf[i] = bitrev8(runtime->dma_area[idx]); runtime 1634 sound/usb/pcm.c if (subs->hwptr_done >= runtime->buffer_size * stride) runtime 1635 sound/usb/pcm.c subs->hwptr_done -= runtime->buffer_size * stride; runtime 1646 sound/usb/pcm.c runtime->delay = subs->last_delay; runtime 1647 sound/usb/pcm.c runtime->delay += frames; runtime 1648 sound/usb/pcm.c subs->last_delay = runtime->delay; runtime 1658 sound/usb/pcm.c snd_pcm_gettime(runtime, &runtime->trigger_tstamp); runtime 1676 sound/usb/pcm.c struct snd_pcm_runtime *runtime = subs->pcm_substream->runtime; runtime 1691 sound/usb/pcm.c est_delay = snd_usb_pcm_delay(subs, runtime->rate); runtime 1697 sound/usb/pcm.c runtime->delay = subs->last_delay; runtime 1704 sound/usb/pcm.c if (abs(est_delay - subs->last_delay) * 1000 > runtime->rate * 2) runtime 1724 sound/usb/pcm.c struct snd_usb_substream *subs = substream->runtime->private_data; runtime 1761 sound/usb/pcm.c struct snd_usb_substream *subs = substream->runtime->private_data; runtime 60 sound/usb/usx2y/usbusx2yaudio.c struct snd_pcm_runtime *runtime = subs->pcm_substream->runtime; runtime 80 sound/usb/usx2y/usbusx2yaudio.c if ((hwptr_done + len) > runtime->buffer_size) { runtime 81 sound/usb/usx2y/usbusx2yaudio.c int cnt = runtime->buffer_size - hwptr_done; runtime 83 sound/usb/usx2y/usbusx2yaudio.c memcpy(runtime->dma_area + hwptr_done * usX2Y->stride, cp, blen); runtime 84 sound/usb/usx2y/usbusx2yaudio.c memcpy(runtime->dma_area, cp + blen, len * usX2Y->stride - blen); runtime 86 sound/usb/usx2y/usbusx2yaudio.c memcpy(runtime->dma_area + hwptr_done * usX2Y->stride, cp, runtime 90 sound/usb/usx2y/usbusx2yaudio.c if ((hwptr_done += len) >= runtime->buffer_size) runtime 91 sound/usb/usx2y/usbusx2yaudio.c hwptr_done -= runtime->buffer_size; runtime 97 sound/usb/usx2y/usbusx2yaudio.c if (subs->transfer_done >= runtime->period_size) { runtime 98 sound/usb/usx2y/usbusx2yaudio.c subs->transfer_done -= runtime->period_size; runtime 119 sound/usb/usx2y/usbusx2yaudio.c struct snd_pcm_runtime *runtime = subs->pcm_substream->runtime; runtime 138 sound/usb/usx2y/usbusx2yaudio.c if (subs->hwptr + count > runtime->buffer_size) { runtime 143 sound/usb/usx2y/usbusx2yaudio.c len = runtime->buffer_size - subs->hwptr; runtime 145 sound/usb/usx2y/usbusx2yaudio.c memcpy(subs->tmpbuf, runtime->dma_area + runtime 148 sound/usb/usx2y/usbusx2yaudio.c runtime->dma_area, (count - len) * usX2Y->stride); runtime 150 sound/usb/usx2y/usbusx2yaudio.c subs->hwptr -= runtime->buffer_size; runtime 153 sound/usb/usx2y/usbusx2yaudio.c urb->transfer_buffer = runtime->dma_area + subs->hwptr * usX2Y->stride; runtime 154 sound/usb/usx2y/usbusx2yaudio.c if ((subs->hwptr += count) >= runtime->buffer_size) runtime 155 sound/usb/usx2y/usbusx2yaudio.c subs->hwptr -= runtime->buffer_size; runtime 170 sound/usb/usx2y/usbusx2yaudio.c struct snd_pcm_runtime *runtime = subs->pcm_substream->runtime; runtime 175 sound/usb/usx2y/usbusx2yaudio.c if (subs->hwptr_done >= runtime->buffer_size) runtime 176 sound/usb/usx2y/usbusx2yaudio.c subs->hwptr_done -= runtime->buffer_size; runtime 177 sound/usb/usx2y/usbusx2yaudio.c if (subs->transfer_done >= runtime->period_size) { runtime 178 sound/usb/usx2y/usbusx2yaudio.c subs->transfer_done -= runtime->period_size; runtime 511 sound/usb/usx2y/usbusx2yaudio.c struct snd_usX2Y_substream *subs = substream->runtime->private_data; runtime 519 sound/usb/usx2y/usbusx2yaudio.c struct snd_usX2Y_substream *subs = substream->runtime->private_data; runtime 758 sound/usb/usx2y/usbusx2yaudio.c !test_substream->runtime) runtime 760 sound/usb/usx2y/usbusx2yaudio.c if ((test_substream->runtime->format && runtime 761 sound/usb/usx2y/usbusx2yaudio.c test_substream->runtime->format != format) || runtime 762 sound/usb/usx2y/usbusx2yaudio.c (test_substream->runtime->rate && runtime 763 sound/usb/usx2y/usbusx2yaudio.c test_substream->runtime->rate != rate)) { runtime 787 sound/usb/usx2y/usbusx2yaudio.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 788 sound/usb/usx2y/usbusx2yaudio.c struct snd_usX2Y_substream *subs = runtime->private_data; runtime 797 sound/usb/usx2y/usbusx2yaudio.c !cap_subs->pcm_substream->runtime || runtime 798 sound/usb/usx2y/usbusx2yaudio.c !cap_subs->pcm_substream->runtime->status || runtime 799 sound/usb/usx2y/usbusx2yaudio.c cap_subs->pcm_substream->runtime->status->state < SNDRV_PCM_STATE_PREPARED) { runtime 820 sound/usb/usx2y/usbusx2yaudio.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 821 sound/usb/usx2y/usbusx2yaudio.c struct snd_usX2Y_substream *subs = runtime->private_data; runtime 832 sound/usb/usx2y/usbusx2yaudio.c if (usX2Y->format != runtime->format) runtime 833 sound/usb/usx2y/usbusx2yaudio.c if ((err = usX2Y_format_set(usX2Y, runtime->format)) < 0) runtime 835 sound/usb/usx2y/usbusx2yaudio.c if (usX2Y->rate != runtime->rate) runtime 836 sound/usb/usx2y/usbusx2yaudio.c if ((err = usX2Y_rate_set(usX2Y, runtime->rate)) < 0) runtime 877 sound/usb/usx2y/usbusx2yaudio.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 882 sound/usb/usx2y/usbusx2yaudio.c runtime->hw = snd_usX2Y_2c; runtime 883 sound/usb/usx2y/usbusx2yaudio.c runtime->private_data = subs; runtime 885 sound/usb/usx2y/usbusx2yaudio.c snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_PERIOD_TIME, 1000, 200000); runtime 893 sound/usb/usx2y/usbusx2yaudio.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 894 sound/usb/usx2y/usbusx2yaudio.c struct snd_usX2Y_substream *subs = runtime->private_data; runtime 53 sound/usb/usx2y/usx2yhwdeppcm.c struct snd_pcm_runtime *runtime = subs->pcm_substream->runtime; runtime 70 sound/usb/usx2y/usx2yhwdeppcm.c if ((hwptr_done += lens) >= runtime->buffer_size) runtime 71 sound/usb/usx2y/usx2yhwdeppcm.c hwptr_done -= runtime->buffer_size; runtime 75 sound/usb/usx2y/usx2yhwdeppcm.c if (subs->transfer_done >= runtime->period_size) { runtime 76 sound/usb/usx2y/usx2yhwdeppcm.c subs->transfer_done -= runtime->period_size; runtime 82 sound/usb/usx2y/usx2yhwdeppcm.c static inline int usX2Y_iso_frames_per_buffer(struct snd_pcm_runtime *runtime, runtime 85 sound/usb/usx2y/usx2yhwdeppcm.c return (runtime->buffer_size * 1000) / usX2Y->rate + 1; //FIXME: so far only correct period_size == 2^x ? runtime 104 sound/usb/usx2y/usx2yhwdeppcm.c struct snd_pcm_runtime *runtime = subs->pcm_substream->runtime; runtime 108 sound/usb/usx2y/usx2yhwdeppcm.c usX2Y_iso_frames_per_buffer(runtime, usX2Y); runtime 346 sound/usb/usx2y/usx2yhwdeppcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 347 sound/usb/usx2y/usx2yhwdeppcm.c struct snd_usX2Y_substream *subs = runtime->private_data, runtime 357 sound/usb/usx2y/usx2yhwdeppcm.c !cap_subs->pcm_substream->runtime || runtime 358 sound/usb/usx2y/usx2yhwdeppcm.c !cap_subs->pcm_substream->runtime->status || runtime 359 sound/usb/usx2y/usx2yhwdeppcm.c cap_subs->pcm_substream->runtime->status->state < SNDRV_PCM_STATE_PREPARED) { runtime 471 sound/usb/usx2y/usx2yhwdeppcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 472 sound/usb/usx2y/usx2yhwdeppcm.c struct snd_usX2Y_substream *subs = runtime->private_data; runtime 491 sound/usb/usx2y/usx2yhwdeppcm.c if (usX2Y->format != runtime->format) runtime 492 sound/usb/usx2y/usx2yhwdeppcm.c if ((err = usX2Y_format_set(usX2Y, runtime->format)) < 0) runtime 494 sound/usb/usx2y/usx2yhwdeppcm.c if (usX2Y->rate != runtime->rate) runtime 495 sound/usb/usx2y/usx2yhwdeppcm.c if ((err = usX2Y_rate_set(usX2Y, runtime->rate)) < 0) runtime 506 sound/usb/usx2y/usx2yhwdeppcm.c while (usX2Y_iso_frames_per_buffer(runtime, usX2Y) > runtime 510 sound/usb/usx2y/usx2yhwdeppcm.c usX2Y_iso_frames_per_buffer(runtime, usX2Y), runtime 521 sound/usb/usx2y/usx2yhwdeppcm.c usX2Y_iso_frames_per_buffer(runtime, usX2Y), runtime 556 sound/usb/usx2y/usx2yhwdeppcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 561 sound/usb/usx2y/usx2yhwdeppcm.c runtime->hw = SNDRV_PCM_STREAM_PLAYBACK == substream->stream ? snd_usX2Y_2c : runtime 563 sound/usb/usx2y/usx2yhwdeppcm.c runtime->private_data = subs; runtime 565 sound/usb/usx2y/usx2yhwdeppcm.c snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_PERIOD_TIME, 1000, 200000); runtime 572 sound/usb/usx2y/usx2yhwdeppcm.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 573 sound/usb/usx2y/usx2yhwdeppcm.c struct snd_usX2Y_substream *subs = runtime->private_data; runtime 292 sound/x86/intel_hdmi_audio.c switch (substream->runtime->rate) { runtime 324 sound/x86/intel_hdmi_audio.c switch (substream->runtime->format) { runtime 362 sound/x86/intel_hdmi_audio.c channels = substream->runtime->channels; runtime 369 sound/x86/intel_hdmi_audio.c if (substream->runtime->format == SNDRV_PCM_FORMAT_S16_LE) runtime 372 sound/x86/intel_hdmi_audio.c if (substream->runtime->format == SNDRV_PCM_FORMAT_S32_LE) runtime 601 sound/x86/intel_hdmi_audio.c channels = substream->runtime->channels; runtime 608 sound/x86/intel_hdmi_audio.c frame2.regval = (substream->runtime->channels - 1) | (ca << 24); runtime 611 sound/x86/intel_hdmi_audio.c frame2.regx.chnl_cnt = substream->runtime->channels - 1; runtime 874 sound/x86/intel_hdmi_audio.c u32 addr = substream->runtime->dma_addr + ofs; runtime 877 sound/x86/intel_hdmi_audio.c if (!substream->runtime->no_period_wakeup) runtime 887 sound/x86/intel_hdmi_audio.c intelhaddata->pcmbuf_filled %= substream->runtime->periods; runtime 902 sound/x86/intel_hdmi_audio.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 905 sound/x86/intel_hdmi_audio.c num_periods = runtime->periods; runtime 910 sound/x86/intel_hdmi_audio.c frames_to_bytes(runtime, runtime->period_size); runtime 931 sound/x86/intel_hdmi_audio.c int num_periods = substream->runtime->periods; runtime 1062 sound/x86/intel_hdmi_audio.c struct snd_pcm_runtime *runtime; runtime 1066 sound/x86/intel_hdmi_audio.c runtime = substream->runtime; runtime 1071 sound/x86/intel_hdmi_audio.c runtime->hw = had_pcm_hardware; runtime 1073 sound/x86/intel_hdmi_audio.c retval = snd_pcm_hw_constraint_integer(runtime, runtime 1081 sound/x86/intel_hdmi_audio.c retval = snd_pcm_hw_constraint_step(substream->runtime, 0, runtime 1086 sound/x86/intel_hdmi_audio.c retval = snd_pcm_hw_constraint_msbits(runtime, 0, 32, 24); runtime 1203 sound/x86/intel_hdmi_audio.c struct snd_pcm_runtime *runtime; runtime 1206 sound/x86/intel_hdmi_audio.c runtime = substream->runtime; runtime 1209 sound/x86/intel_hdmi_audio.c (int)frames_to_bytes(runtime, runtime->period_size)); runtime 1210 sound/x86/intel_hdmi_audio.c dev_dbg(intelhaddata->dev, "periods=%d\n", runtime->periods); runtime 1213 sound/x86/intel_hdmi_audio.c dev_dbg(intelhaddata->dev, "rate=%d\n", runtime->rate); runtime 1214 sound/x86/intel_hdmi_audio.c dev_dbg(intelhaddata->dev, "channels=%d\n", runtime->channels); runtime 1221 sound/x86/intel_hdmi_audio.c retval = had_prog_n(substream->runtime->rate, &n_param, intelhaddata); runtime 1231 sound/x86/intel_hdmi_audio.c had_prog_cts(substream->runtime->rate, disp_samp_freq, link_rate, runtime 1268 sound/x86/intel_hdmi_audio.c len = bytes_to_frames(substream->runtime, len); runtime 1270 sound/x86/intel_hdmi_audio.c len %= substream->runtime->buffer_size; runtime 1319 sound/x86/intel_hdmi_audio.c retval = had_prog_n(substream->runtime->rate, &n_param, intelhaddata); runtime 1329 sound/x86/intel_hdmi_audio.c had_prog_cts(substream->runtime->rate, disp_samp_freq, link_rate, runtime 358 sound/xen/xen_snd_front_alsa.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 368 sound/xen/xen_snd_front_alsa.c runtime->hw = stream->pcm_hw; runtime 369 sound/xen/xen_snd_front_alsa.c runtime->hw.info &= ~(SNDRV_PCM_INFO_MMAP | runtime 376 sound/xen/xen_snd_front_alsa.c runtime->hw.info |= SNDRV_PCM_INFO_INTERLEAVED; runtime 388 sound/xen/xen_snd_front_alsa.c ret = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_FORMAT, runtime 396 sound/xen/xen_snd_front_alsa.c ret = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, runtime 404 sound/xen/xen_snd_front_alsa.c ret = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, runtime 412 sound/xen/xen_snd_front_alsa.c ret = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_SIZE, runtime 420 sound/xen/xen_snd_front_alsa.c ret = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_SIZE, runtime 517 sound/xen/xen_snd_front_alsa.c struct snd_pcm_runtime *runtime = substream->runtime; runtime 521 sound/xen/xen_snd_front_alsa.c ret = to_sndif_format(runtime->format); runtime 525 sound/xen/xen_snd_front_alsa.c runtime->format); runtime 533 sound/xen/xen_snd_front_alsa.c runtime->channels, runtime 534 sound/xen/xen_snd_front_alsa.c runtime->rate, runtime 582 sound/xen/xen_snd_front_alsa.c cur_frame = bytes_to_frames(substream->runtime, pos_bytes); runtime 588 sound/xen/xen_snd_front_alsa.c new_hw_ptr = (new_hw_ptr + delta) % substream->runtime->buffer_size; runtime 592 sound/xen/xen_snd_front_alsa.c if (stream->out_frames > substream->runtime->period_size) { runtime 593 sound/xen/xen_snd_front_alsa.c stream->out_frames %= substream->runtime->period_size; runtime 38 tools/perf/bench/epoll-ctl.c struct timeval start, end, runtime; runtime 98 tools/perf/bench/epoll-ctl.c timersub(&end, &start, &runtime); runtime 93 tools/perf/bench/epoll-wait.c struct timeval start, end, runtime; runtime 280 tools/perf/bench/epoll-wait.c timersub(&end, &start, &runtime); runtime 290 tools/perf/bench/epoll-wait.c (int) runtime.tv_sec); runtime 522 tools/perf/bench/epoll-wait.c unsigned long t = worker[i].ops/runtime.tv_sec; runtime 40 tools/perf/bench/futex-hash.c struct timeval start, end, runtime; runtime 107 tools/perf/bench/futex-hash.c timersub(&end, &start, &runtime); runtime 117 tools/perf/bench/futex-hash.c (int) runtime.tv_sec); runtime 207 tools/perf/bench/futex-hash.c unsigned long t = worker[i].ops/runtime.tv_sec; runtime 40 tools/perf/bench/futex-lock-pi.c struct timeval start, end, runtime; runtime 67 tools/perf/bench/futex-lock-pi.c (int) runtime.tv_sec); runtime 77 tools/perf/bench/futex-lock-pi.c timersub(&end, &start, &runtime); runtime 214 tools/perf/bench/futex-lock-pi.c unsigned long t = worker[i].ops/runtime.tv_sec; runtime 161 tools/perf/bench/futex-requeue.c struct timeval start, end, runtime; runtime 187 tools/perf/bench/futex-requeue.c timersub(&end, &start, &runtime); runtime 190 tools/perf/bench/futex-requeue.c update_stats(&requeuetime_stats, runtime.tv_usec); runtime 194 tools/perf/bench/futex-requeue.c j + 1, nrequeued, nthreads, runtime.tv_usec / (double)USEC_PER_MSEC); runtime 42 tools/perf/bench/futex-wake-parallel.c struct timeval runtime; runtime 88 tools/perf/bench/futex-wake-parallel.c timersub(&end, &start, &waker->runtime); runtime 172 tools/perf/bench/futex-wake-parallel.c update_stats(&__waketime_stats, waking_worker[i].runtime.tv_usec); runtime 208 tools/perf/bench/futex-wake-parallel.c update_stats(&waketime_stats, waking_worker[i].runtime.tv_usec); runtime 166 tools/perf/bench/futex-wake.c struct timeval start, end, runtime; runtime 185 tools/perf/bench/futex-wake.c timersub(&end, &start, &runtime); runtime 188 tools/perf/bench/futex-wake.c update_stats(&waketime_stats, runtime.tv_usec); runtime 192 tools/perf/bench/futex-wake.c j + 1, nwoken, nthreads, runtime.tv_usec / (double)USEC_PER_MSEC); runtime 122 tools/perf/builtin-sched.c u64 runtime; runtime 600 tools/perf/builtin-sched.c u64 runtime; runtime 603 tools/perf/builtin-sched.c ret = read(fd, &runtime, sizeof(runtime)); runtime 604 tools/perf/builtin-sched.c BUG_ON(ret != sizeof(runtime)); runtime 606 tools/perf/builtin-sched.c return runtime; runtime 1066 tools/perf/builtin-sched.c atom->runtime += delta; runtime 1177 tools/perf/builtin-sched.c const u64 runtime = perf_evsel__intval(evsel, sample, "runtime"); runtime 1199 tools/perf/builtin-sched.c add_runtime_event(atoms, runtime, timestamp); runtime 2291 tools/perf/builtin-trace.c u64 runtime = perf_evsel__intval(evsel, sample, "runtime"); runtime 2292 tools/perf/builtin-trace.c double runtime_ms = (double)runtime / NSEC_PER_MSEC; runtime 2312 tools/perf/builtin-trace.c runtime, runtime 158 tools/testing/selftests/timers/inconsistency-check.c int runtime = 10; runtime 165 tools/testing/selftests/timers/inconsistency-check.c runtime = atoi(optarg); runtime 188 tools/testing/selftests/timers/inconsistency-check.c if (consistency_test(clockid, runtime)) runtime 123 tools/testing/selftests/timers/threadtest.c time_t start, now, runtime; runtime 132 tools/testing/selftests/timers/threadtest.c runtime = DEFAULT_RUNTIME; runtime 138 tools/testing/selftests/timers/threadtest.c runtime = atoi(optarg); runtime 165 tools/testing/selftests/timers/threadtest.c printf("Testing consistency with %i threads for %ld seconds: ", thread_count, runtime); runtime 172 tools/testing/selftests/timers/threadtest.c while (time(&now) < start + runtime) {