/drivers/staging/vc04_services/bcm2835-audio/ |
D | bcm2835-pcm.c | 47 static void snd_bcm2835_playback_free(struct snd_pcm_runtime *runtime) in snd_bcm2835_playback_free() argument 49 kfree(runtime->private_data); in snd_bcm2835_playback_free() 89 struct snd_pcm_runtime *runtime = substream->runtime; in snd_bcm2835_playback_open_generic() local 128 runtime->private_data = alsa_stream; in snd_bcm2835_playback_open_generic() 129 runtime->private_free = snd_bcm2835_playback_free; in snd_bcm2835_playback_open_generic() 131 runtime->hw = snd_bcm2835_playback_spdif_hw; in snd_bcm2835_playback_open_generic() 135 runtime->hw = snd_bcm2835_playback_hw; in snd_bcm2835_playback_open_generic() 138 snd_pcm_hw_constraint_step(runtime, in snd_bcm2835_playback_open_generic() 144 snd_pcm_hw_constraint_minmax(runtime, in snd_bcm2835_playback_open_generic() 171 struct snd_pcm_runtime *runtime; in snd_bcm2835_playback_close() local [all …]
|
/drivers/media/pci/cobalt/ |
D | cobalt-alsa-pcm.c | 102 struct snd_pcm_runtime *runtime; in cobalt_alsa_announce_pcm_data() local 119 runtime = substream->runtime; in cobalt_alsa_announce_pcm_data() 120 if (runtime == NULL) { in cobalt_alsa_announce_pcm_data() 124 is_s32 = runtime->format == SNDRV_PCM_FORMAT_S32_LE; in cobalt_alsa_announce_pcm_data() 126 stride = runtime->frame_bits >> 3; in cobalt_alsa_announce_pcm_data() 137 if (runtime->dma_area == NULL) { in cobalt_alsa_announce_pcm_data() 143 if (oldptr + length >= runtime->buffer_size) { in cobalt_alsa_announce_pcm_data() 144 unsigned int cnt = runtime->buffer_size - oldptr; in cobalt_alsa_announce_pcm_data() 148 sample_cpy(runtime->dma_area + (oldptr + i) * stride, in cobalt_alsa_announce_pcm_data() 152 sample_cpy(runtime->dma_area + (i - cnt) * stride, in cobalt_alsa_announce_pcm_data() [all …]
|
/drivers/media/pci/cx18/ |
D | cx18-alsa-pcm.c | 62 struct snd_pcm_runtime *runtime; in cx18_alsa_announce_pcm_data() local 77 runtime = substream->runtime; in cx18_alsa_announce_pcm_data() 78 if (runtime == NULL) { in cx18_alsa_announce_pcm_data() 83 stride = runtime->frame_bits >> 3; in cx18_alsa_announce_pcm_data() 95 if (runtime->dma_area == NULL) { in cx18_alsa_announce_pcm_data() 101 if (oldptr + length >= runtime->buffer_size) { in cx18_alsa_announce_pcm_data() 103 runtime->buffer_size - oldptr; in cx18_alsa_announce_pcm_data() 104 memcpy(runtime->dma_area + oldptr * stride, pcm_data, in cx18_alsa_announce_pcm_data() 106 memcpy(runtime->dma_area, pcm_data + cnt * stride, in cx18_alsa_announce_pcm_data() 109 memcpy(runtime->dma_area + oldptr * stride, pcm_data, in cx18_alsa_announce_pcm_data() [all …]
|
/drivers/media/pci/ivtv/ |
D | ivtv-alsa-pcm.c | 59 struct snd_pcm_runtime *runtime; in ivtv_alsa_announce_pcm_data() local 74 runtime = substream->runtime; in ivtv_alsa_announce_pcm_data() 75 if (runtime == NULL) { in ivtv_alsa_announce_pcm_data() 80 stride = runtime->frame_bits >> 3; in ivtv_alsa_announce_pcm_data() 92 if (runtime->dma_area == NULL) { in ivtv_alsa_announce_pcm_data() 98 if (oldptr + length >= runtime->buffer_size) { in ivtv_alsa_announce_pcm_data() 100 runtime->buffer_size - oldptr; in ivtv_alsa_announce_pcm_data() 101 memcpy(runtime->dma_area + oldptr * stride, pcm_data, in ivtv_alsa_announce_pcm_data() 103 memcpy(runtime->dma_area, pcm_data + cnt * stride, in ivtv_alsa_announce_pcm_data() 106 memcpy(runtime->dma_area + oldptr * stride, pcm_data, in ivtv_alsa_announce_pcm_data() [all …]
|
/drivers/media/usb/tm6000/ |
D | tm6000-alsa.c | 131 struct snd_pcm_runtime *runtime = substream->runtime; in snd_tm6000_pcm_open() local 134 err = snd_pcm_hw_constraint_pow2(runtime, 0, in snd_tm6000_pcm_open() 141 runtime->hw = snd_tm6000_digital_hw; in snd_tm6000_pcm_open() 142 snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS); in snd_tm6000_pcm_open() 170 struct snd_pcm_runtime *runtime; in tm6000_fillbuf() local 183 runtime = substream->runtime; in tm6000_fillbuf() 184 if (!runtime || !runtime->dma_area) { in tm6000_fillbuf() 190 stride = runtime->frame_bits >> 3; in tm6000_fillbuf() 204 runtime->dma_area, buf_pos, in tm6000_fillbuf() 205 (unsigned int)runtime->buffer_size, stride); in tm6000_fillbuf() [all …]
|
/drivers/media/usb/cx231xx/ |
D | cx231xx-audio.c | 89 struct snd_pcm_runtime *runtime; in cx231xx_audio_isocirq() local 113 runtime = substream->runtime; in cx231xx_audio_isocirq() 114 stride = runtime->frame_bits >> 3; in cx231xx_audio_isocirq() 127 if (oldptr + length >= runtime->buffer_size) { in cx231xx_audio_isocirq() 130 cnt = runtime->buffer_size - oldptr; in cx231xx_audio_isocirq() 131 memcpy(runtime->dma_area + oldptr * stride, cp, in cx231xx_audio_isocirq() 133 memcpy(runtime->dma_area, cp + cnt * stride, in cx231xx_audio_isocirq() 136 memcpy(runtime->dma_area + oldptr * stride, cp, in cx231xx_audio_isocirq() 144 runtime->buffer_size) in cx231xx_audio_isocirq() 146 runtime->buffer_size; in cx231xx_audio_isocirq() [all …]
|
/drivers/gpu/drm/i915/ |
D | intel_device_info.c | 392 struct intel_runtime_info *runtime = RUNTIME_INFO(dev_priv); in intel_device_info_runtime_init() local 397 runtime->num_scalers[pipe] = 2; in intel_device_info_runtime_init() 399 runtime->num_scalers[PIPE_A] = 2; in intel_device_info_runtime_init() 400 runtime->num_scalers[PIPE_B] = 2; in intel_device_info_runtime_init() 401 runtime->num_scalers[PIPE_C] = 1; in intel_device_info_runtime_init() 408 runtime->num_sprites[pipe] = 4; in intel_device_info_runtime_init() 411 runtime->num_sprites[pipe] = 6; in intel_device_info_runtime_init() 414 runtime->num_sprites[pipe] = 3; in intel_device_info_runtime_init() 425 runtime->num_sprites[PIPE_A] = 2; in intel_device_info_runtime_init() 426 runtime->num_sprites[PIPE_B] = 2; in intel_device_info_runtime_init() [all …]
|
/drivers/staging/media/atomisp/ |
D | Makefile | 119 pci/runtime/binary/src/binary.o \ 120 pci/runtime/bufq/src/bufq.o \ 121 pci/runtime/debug/src/ia_css_debug.o \ 122 pci/runtime/eventq/src/eventq.o \ 123 pci/runtime/event/src/event.o \ 124 pci/runtime/frame/src/frame.o \ 125 pci/runtime/ifmtr/src/ifmtr.o \ 126 pci/runtime/inputfifo/src/inputfifo.o \ 127 pci/runtime/isp_param/src/isp_param.o \ 128 pci/runtime/isys/src/csi_rx_rmgr.o \ [all …]
|
/drivers/gpu/drm/bridge/synopsys/ |
D | dw-hdmi-ahb-audio.c | 210 struct snd_pcm_runtime *runtime) in dw_hdmi_create_cs() argument 215 snd_pcm_create_iec958_consumer(runtime, cs, sizeof(cs)); in dw_hdmi_create_cs() 320 struct snd_pcm_runtime *runtime = substream->runtime; in dw_hdmi_open() local 326 runtime->hw = dw_hdmi_hw; in dw_hdmi_open() 330 ret = snd_pcm_hw_constraint_eld(runtime, eld); in dw_hdmi_open() 335 ret = snd_pcm_limit_hw_rates(runtime); in dw_hdmi_open() 339 ret = snd_pcm_hw_constraint_integer(runtime, in dw_hdmi_open() 345 ret = snd_pcm_hw_constraint_minmax(runtime, in dw_hdmi_open() 404 struct snd_pcm_runtime *runtime = substream->runtime; in dw_hdmi_prepare() local 413 if (runtime->channels == 2) in dw_hdmi_prepare() [all …]
|
/drivers/usb/gadget/function/ |
D | u_audio.c | 133 struct snd_pcm_runtime *runtime; in u_audio_iso_complete() local 162 runtime = substream->runtime; in u_audio_iso_complete() 163 if (!runtime || !snd_pcm_running(substream)) { in u_audio_iso_complete() 195 pending = runtime->dma_bytes - hw_ptr; in u_audio_iso_complete() 199 memcpy(req->buf, runtime->dma_area + hw_ptr, pending); in u_audio_iso_complete() 200 memcpy(req->buf + pending, runtime->dma_area, in u_audio_iso_complete() 203 memcpy(req->buf, runtime->dma_area + hw_ptr, in u_audio_iso_complete() 208 memcpy(runtime->dma_area + hw_ptr, req->buf, pending); in u_audio_iso_complete() 209 memcpy(runtime->dma_area, req->buf + pending, in u_audio_iso_complete() 212 memcpy(runtime->dma_area + hw_ptr, req->buf, in u_audio_iso_complete() [all …]
|
D | f_audio_source.c | 366 struct snd_pcm_runtime *runtime; in audio_send() local 380 runtime = audio->substream->runtime; in audio_send() 406 length = frames_to_bytes(runtime, frames); in audio_send() 437 frames -= bytes_to_frames(runtime, length); in audio_send() 438 audio->frames_sent += bytes_to_frames(runtime, length); in audio_send() 737 struct snd_pcm_runtime *runtime = substream->runtime; in audio_pcm_open() local 740 runtime->private_data = audio; in audio_pcm_open() 741 runtime->hw = audio_hw_info; in audio_pcm_open() 742 snd_pcm_limit_hw_rates(runtime); in audio_pcm_open() 743 runtime->hw.channels_max = 2; in audio_pcm_open() [all …]
|
D | u_uac1_legacy.c | 156 struct snd_pcm_runtime *runtime = substream->runtime; in u_audio_playback() local 161 if (runtime->status->state == SNDRV_PCM_STATE_XRUN || in u_audio_playback() 162 runtime->status->state == SNDRV_PCM_STATE_SUSPENDED) { in u_audio_playback() 172 frames = bytes_to_frames(runtime, count); in u_audio_playback()
|
/drivers/media/usb/usbtv/ |
D | usbtv-audio.c | 68 struct snd_pcm_runtime *runtime = substream->runtime; in snd_usbtv_pcm_open() local 71 runtime->hw = snd_usbtv_digital_hw; in snd_usbtv_pcm_open() 102 struct snd_pcm_runtime *runtime = substream->runtime; in usbtv_audio_urb_received() local 125 frame_bytes = runtime->frame_bits >> 3; in usbtv_audio_urb_received() 135 if (buffer_pos + chunk_length >= runtime->buffer_size) { in usbtv_audio_urb_received() 136 size_t cnt = (runtime->buffer_size - buffer_pos) * in usbtv_audio_urb_received() 138 memcpy(runtime->dma_area + buffer_pos * frame_bytes, in usbtv_audio_urb_received() 140 memcpy(runtime->dma_area, urb_current + cnt, in usbtv_audio_urb_received() 143 memcpy(runtime->dma_area + buffer_pos * frame_bytes, in usbtv_audio_urb_received() 150 if (buffer_pos >= runtime->buffer_size) in usbtv_audio_urb_received() [all …]
|
/drivers/media/pci/saa7134/ |
D | saa7134-alsa.c | 235 struct snd_pcm_runtime *runtime = substream->runtime; in snd_card_saa7134_capture_trigger() local 236 snd_card_saa7134_pcm_t *pcm = runtime->private_data; in snd_card_saa7134_capture_trigger() 499 struct snd_pcm_runtime *runtime = substream->runtime; in snd_card_saa7134_capture_prepare() local 504 snd_card_saa7134_pcm_t *pcm = runtime->private_data; in snd_card_saa7134_capture_prepare() 510 if (snd_pcm_format_width(runtime->format) == 8) in snd_card_saa7134_capture_prepare() 515 if (snd_pcm_format_signed(runtime->format)) in snd_card_saa7134_capture_prepare() 520 if (snd_pcm_format_big_endian(runtime->format)) in snd_card_saa7134_capture_prepare() 527 if (1 == runtime->channels) in snd_card_saa7134_capture_prepare() 529 if (2 == runtime->channels) in snd_card_saa7134_capture_prepare() 543 if (1 == runtime->channels) in snd_card_saa7134_capture_prepare() [all …]
|
/drivers/media/pci/cx23885/ |
D | cx23885-alsa.c | 314 struct snd_pcm_runtime *runtime = substream->runtime; in snd_cx23885_pcm_open() local 322 err = snd_pcm_hw_constraint_pow2(runtime, 0, in snd_cx23885_pcm_open() 329 runtime->hw = snd_cx23885_digital_hw; in snd_cx23885_pcm_open() 336 runtime->hw.period_bytes_min = bpl; in snd_cx23885_pcm_open() 337 runtime->hw.period_bytes_max = bpl; in snd_cx23885_pcm_open() 365 if (substream->runtime->dma_area) { in snd_cx23885_hw_params() 367 substream->runtime->dma_area = NULL; in snd_cx23885_hw_params() 403 substream->runtime->dma_area = chip->buf->vaddr; in snd_cx23885_hw_params() 404 substream->runtime->dma_bytes = chip->dma_size; in snd_cx23885_hw_params() 405 substream->runtime->dma_addr = 0; in snd_cx23885_hw_params() [all …]
|
/drivers/media/usb/go7007/ |
D | snd-go7007.c | 67 struct snd_pcm_runtime *runtime = gosnd->substream->runtime; in parse_audio_stream_data() local 68 int frames = bytes_to_frames(runtime, length); in parse_audio_stream_data() 73 if (gosnd->hw_ptr >= runtime->buffer_size) in parse_audio_stream_data() 74 gosnd->hw_ptr -= runtime->buffer_size; in parse_audio_stream_data() 77 if (gosnd->w_idx + length > runtime->dma_bytes) { in parse_audio_stream_data() 78 int cpy = runtime->dma_bytes - gosnd->w_idx; in parse_audio_stream_data() 80 memcpy(runtime->dma_area + gosnd->w_idx, buf, cpy); in parse_audio_stream_data() 85 memcpy(runtime->dma_area + gosnd->w_idx, buf, length); in parse_audio_stream_data() 88 if (gosnd->avail < runtime->period_size) { in parse_audio_stream_data() 92 gosnd->avail -= runtime->period_size; in parse_audio_stream_data() [all …]
|
/drivers/gpu/drm/nouveau/ |
D | nouveau_display.h | 20 int (*init)(struct drm_device *, bool resume, bool runtime); 21 void (*fini)(struct drm_device *, bool suspend, bool runtime); 47 int nouveau_display_init(struct drm_device *dev, bool resume, bool runtime); 49 void nouveau_display_fini(struct drm_device *dev, bool suspend, bool runtime); 50 int nouveau_display_suspend(struct drm_device *dev, bool runtime); 51 void nouveau_display_resume(struct drm_device *dev, bool runtime);
|
D | nouveau_vga.c | 89 bool runtime = nouveau_pmops_runtime(); in nouveau_vga_init() local 101 vga_switcheroo_register_client(dev->pdev, &nouveau_switcheroo_ops, runtime); in nouveau_vga_init() 103 if (runtime && nouveau_is_v1_dsm() && !nouveau_is_optimus()) in nouveau_vga_init() 111 bool runtime = nouveau_pmops_runtime(); in nouveau_vga_fini() local 123 if (runtime && nouveau_is_v1_dsm() && !nouveau_is_optimus()) in nouveau_vga_fini()
|
D | nouveau_display.c | 568 nouveau_display_init(struct drm_device *dev, bool resume, bool runtime) in nouveau_display_init() argument 586 ret = disp->init(dev, resume, runtime); in nouveau_display_init() 599 nouveau_display_fini(struct drm_device *dev, bool suspend, bool runtime) in nouveau_display_fini() argument 621 if (!runtime) in nouveau_display_fini() 625 disp->fini(dev, runtime, suspend); in nouveau_display_fini() 781 nouveau_display_suspend(struct drm_device *dev, bool runtime) in nouveau_display_suspend() argument 786 if (!runtime) { in nouveau_display_suspend() 796 nouveau_display_fini(dev, true, runtime); in nouveau_display_suspend() 801 nouveau_display_resume(struct drm_device *dev, bool runtime) in nouveau_display_resume() argument 805 nouveau_display_init(dev, true, runtime); in nouveau_display_resume()
|
/drivers/media/pci/cx25821/ |
D | cx25821-alsa.c | 449 struct snd_pcm_runtime *runtime = substream->runtime; in snd_cx25821_pcm_open() local 458 err = snd_pcm_hw_constraint_pow2(runtime, 0, in snd_cx25821_pcm_open() 465 runtime->hw = snd_cx25821_digital_hw; in snd_cx25821_pcm_open() 476 runtime->hw.period_bytes_min = bpl; in snd_cx25821_pcm_open() 477 runtime->hw.period_bytes_max = bpl; in snd_cx25821_pcm_open() 504 if (substream->runtime->dma_area) { in snd_cx25821_hw_params() 506 substream->runtime->dma_area = NULL; in snd_cx25821_hw_params() 547 substream->runtime->dma_area = chip->buf->vaddr; in snd_cx25821_hw_params() 548 substream->runtime->dma_bytes = chip->dma_size; in snd_cx25821_hw_params() 549 substream->runtime->dma_addr = 0; in snd_cx25821_hw_params() [all …]
|
/drivers/staging/most/sound/ |
D | sound.c | 191 struct snd_pcm_runtime *const runtime = channel->substream->runtime; in copy_data() local 193 unsigned int const buffer_size = runtime->buffer_size; in copy_data() 203 channel->copy_fn(runtime->dma_area + channel->buffer_pos * frame_bytes, in copy_data() 209 channel->copy_fn(runtime->dma_area, in copy_data() 218 if (channel->period_pos >= runtime->period_size) { in copy_data() 219 channel->period_pos -= runtime->period_size; in copy_data() 276 struct snd_pcm_runtime *runtime = substream->runtime; in pcm_open() local 299 runtime->hw = channel->pcm_hardware; in pcm_open() 335 struct snd_pcm_runtime *runtime = substream->runtime; in pcm_prepare() local 337 int width = snd_pcm_format_physical_width(runtime->format); in pcm_prepare() [all …]
|
/drivers/media/pci/cx88/ |
D | cx88-alsa.c | 407 struct snd_pcm_runtime *runtime = substream->runtime; in snd_cx88_pcm_open() local 415 err = snd_pcm_hw_constraint_pow2(runtime, 0, in snd_cx88_pcm_open() 422 runtime->hw = snd_cx88_digital_hw; in snd_cx88_pcm_open() 428 runtime->hw.period_bytes_min = bpl; in snd_cx88_pcm_open() 429 runtime->hw.period_bytes_max = bpl; in snd_cx88_pcm_open() 457 if (substream->runtime->dma_area) { in snd_cx88_hw_params() 459 substream->runtime->dma_area = NULL; in snd_cx88_hw_params() 494 substream->runtime->dma_area = chip->buf->vaddr; in snd_cx88_hw_params() 495 substream->runtime->dma_bytes = chip->dma_size; in snd_cx88_hw_params() 496 substream->runtime->dma_addr = 0; in snd_cx88_hw_params() [all …]
|
/drivers/media/usb/em28xx/ |
D | em28xx-audio.c | 86 struct snd_pcm_runtime *runtime; in em28xx_audio_isocirq() local 113 runtime = substream->runtime; in em28xx_audio_isocirq() 114 stride = runtime->frame_bits >> 3; in em28xx_audio_isocirq() 127 if (oldptr + length >= runtime->buffer_size) { in em28xx_audio_isocirq() 129 runtime->buffer_size - oldptr; in em28xx_audio_isocirq() 130 memcpy(runtime->dma_area + oldptr * stride, cp, in em28xx_audio_isocirq() 132 memcpy(runtime->dma_area, cp + cnt * stride, in em28xx_audio_isocirq() 135 memcpy(runtime->dma_area + oldptr * stride, cp, in em28xx_audio_isocirq() 143 runtime->buffer_size) in em28xx_audio_isocirq() 145 runtime->buffer_size; in em28xx_audio_isocirq() [all …]
|
/drivers/firmware/efi/ |
D | Makefile | 21 obj-$(CONFIG_EFI_RUNTIME_MAP) += runtime-map.o 22 obj-$(CONFIG_EFI_RUNTIME_WRAPPERS) += runtime-wrappers.o 36 arm-obj-$(CONFIG_EFI) := efi-init.o arm-runtime.o 39 riscv-obj-$(CONFIG_EFI) := efi-init.o riscv-runtime.o
|
D | Kconfig | 41 bool "Export efi runtime maps to sysfs" 45 Export efi runtime memory maps to /sys/firmware/efi/runtime-map. 49 See also Documentation/ABI/testing/sysfs-firmware-efi-runtime-map. 98 the EFI runtime support gets system table address, memory 153 users to load EFI capsules. This driver requires working runtime 174 kernel subsystem, just for testing the UEFI runtime service 176 by the Firmware Test Suite (FWTS) for testing the UEFI runtime 181 Say Y here to enable the runtime services support via /dev/efi_test. 228 while calling ExitBootServices() and passing control to the runtime
|