/drivers/gpu/drm/i915/ |
D | intel_device_info.c | 92 const struct intel_runtime_info *runtime, in intel_device_info_print() argument 95 if (runtime->graphics.ip.rel) in intel_device_info_print() 97 runtime->graphics.ip.ver, in intel_device_info_print() 98 runtime->graphics.ip.rel); in intel_device_info_print() 101 runtime->graphics.ip.ver); in intel_device_info_print() 103 if (runtime->media.ip.rel) in intel_device_info_print() 105 runtime->media.ip.ver, in intel_device_info_print() 106 runtime->media.ip.rel); in intel_device_info_print() 109 runtime->media.ip.ver); in intel_device_info_print() 111 if (runtime->display.ip.rel) in intel_device_info_print() [all …]
|
/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() 88 struct snd_pcm_runtime *runtime = substream->runtime; in snd_bcm2835_playback_open_generic() local 127 runtime->private_data = alsa_stream; in snd_bcm2835_playback_open_generic() 128 runtime->private_free = snd_bcm2835_playback_free; in snd_bcm2835_playback_open_generic() 130 runtime->hw = snd_bcm2835_playback_spdif_hw; in snd_bcm2835_playback_open_generic() 134 runtime->hw = snd_bcm2835_playback_hw; in snd_bcm2835_playback_open_generic() 137 snd_pcm_hw_constraint_step(runtime, in snd_bcm2835_playback_open_generic() 143 snd_pcm_hw_constraint_minmax(runtime, in snd_bcm2835_playback_open_generic() 170 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/staging/media/deprecated/tm6000/ |
D | tm6000-alsa.c | 130 struct snd_pcm_runtime *runtime = substream->runtime; in snd_tm6000_pcm_open() local 133 err = snd_pcm_hw_constraint_pow2(runtime, 0, in snd_tm6000_pcm_open() 140 runtime->hw = snd_tm6000_digital_hw; in snd_tm6000_pcm_open() 141 snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS); in snd_tm6000_pcm_open() 169 struct snd_pcm_runtime *runtime; in tm6000_fillbuf() local 182 runtime = substream->runtime; in tm6000_fillbuf() 183 if (!runtime || !runtime->dma_area) { in tm6000_fillbuf() 189 stride = runtime->frame_bits >> 3; in tm6000_fillbuf() 203 runtime->dma_area, buf_pos, in tm6000_fillbuf() 204 (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/staging/media/atomisp/ |
D | Makefile | 113 pci/runtime/binary/src/binary.o \ 114 pci/runtime/bufq/src/bufq.o \ 115 pci/runtime/debug/src/ia_css_debug.o \ 116 pci/runtime/eventq/src/eventq.o \ 117 pci/runtime/event/src/event.o \ 118 pci/runtime/frame/src/frame.o \ 119 pci/runtime/ifmtr/src/ifmtr.o \ 120 pci/runtime/inputfifo/src/inputfifo.o \ 121 pci/runtime/isp_param/src/isp_param.o \ 122 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/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 103 vga_switcheroo_register_client(pdev, &nouveau_switcheroo_ops, runtime); in nouveau_vga_init() 105 if (runtime && nouveau_is_v1_dsm() && !nouveau_is_optimus()) in nouveau_vga_init() 113 bool runtime = nouveau_pmops_runtime(); in nouveau_vga_fini() local 127 if (runtime && nouveau_is_v1_dsm() && !nouveau_is_optimus()) in nouveau_vga_fini()
|
D | nouveau_display.c | 562 nouveau_display_init(struct drm_device *dev, bool resume, bool runtime) in nouveau_display_init() argument 580 ret = disp->init(dev, resume, runtime); in nouveau_display_init() 593 nouveau_display_fini(struct drm_device *dev, bool suspend, bool runtime) in nouveau_display_fini() argument 615 if (!runtime) in nouveau_display_fini() 619 disp->fini(dev, runtime, suspend); in nouveau_display_fini() 777 nouveau_display_suspend(struct drm_device *dev, bool runtime) in nouveau_display_suspend() argument 782 if (!runtime) { in nouveau_display_suspend() 792 nouveau_display_fini(dev, true, runtime); in nouveau_display_suspend() 797 nouveau_display_resume(struct drm_device *dev, bool runtime) in nouveau_display_resume() argument 801 nouveau_display_init(dev, true, runtime); in nouveau_display_resume()
|
/drivers/media/pci/cx25821/ |
D | cx25821-alsa.c | 448 struct snd_pcm_runtime *runtime = substream->runtime; in snd_cx25821_pcm_open() local 457 err = snd_pcm_hw_constraint_pow2(runtime, 0, in snd_cx25821_pcm_open() 464 runtime->hw = snd_cx25821_digital_hw; in snd_cx25821_pcm_open() 475 runtime->hw.period_bytes_min = bpl; in snd_cx25821_pcm_open() 476 runtime->hw.period_bytes_max = bpl; in snd_cx25821_pcm_open() 503 if (substream->runtime->dma_area) { in snd_cx25821_hw_params() 505 substream->runtime->dma_area = NULL; in snd_cx25821_hw_params() 546 substream->runtime->dma_area = chip->buf->vaddr; in snd_cx25821_hw_params() 547 substream->runtime->dma_bytes = chip->dma_size; in snd_cx25821_hw_params() 548 substream->runtime->dma_addr = 0; in snd_cx25821_hw_params() [all …]
|
/drivers/most/ |
D | most_snd.c | 181 struct snd_pcm_runtime *const runtime = channel->substream->runtime; in copy_data() local 183 unsigned int const buffer_size = runtime->buffer_size; in copy_data() 193 channel->copy_fn(runtime->dma_area + channel->buffer_pos * frame_bytes, in copy_data() 199 channel->copy_fn(runtime->dma_area, in copy_data() 208 if (channel->period_pos >= runtime->period_size) { in copy_data() 209 channel->period_pos -= runtime->period_size; in copy_data() 266 struct snd_pcm_runtime *runtime = substream->runtime; in pcm_open() local 289 runtime->hw = channel->pcm_hardware; in pcm_open() 325 struct snd_pcm_runtime *runtime = substream->runtime; in pcm_prepare() local 327 int width = snd_pcm_format_physical_width(runtime->format); in pcm_prepare() [all …]
|
/drivers/usb/gadget/function/ |
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_audio.c | 155 struct snd_pcm_runtime *runtime; in u_audio_iso_complete() local 187 runtime = substream->runtime; in u_audio_iso_complete() 188 if (!runtime || !snd_pcm_running(substream)) { in u_audio_iso_complete() 245 pending = runtime->dma_bytes - hw_ptr; in u_audio_iso_complete() 249 memcpy(req->buf, runtime->dma_area + hw_ptr, pending); in u_audio_iso_complete() 250 memcpy(req->buf + pending, runtime->dma_area, in u_audio_iso_complete() 253 memcpy(req->buf, runtime->dma_area + hw_ptr, in u_audio_iso_complete() 258 memcpy(runtime->dma_area + hw_ptr, req->buf, pending); in u_audio_iso_complete() 259 memcpy(runtime->dma_area, req->buf + pending, in u_audio_iso_complete() 262 memcpy(runtime->dma_area + hw_ptr, req->buf, in u_audio_iso_complete() [all …]
|
D | u_uac1_legacy.c | 156 struct snd_pcm_runtime *runtime = substream->runtime; in u_audio_playback() local 161 if (runtime->state == SNDRV_PCM_STATE_XRUN || in u_audio_playback() 162 runtime->state == SNDRV_PCM_STATE_SUSPENDED) { in u_audio_playback() 172 frames = bytes_to_frames(runtime, count); in u_audio_playback()
|
/drivers/media/pci/cx88/ |
D | cx88-alsa.c | 406 struct snd_pcm_runtime *runtime = substream->runtime; in snd_cx88_pcm_open() local 414 err = snd_pcm_hw_constraint_pow2(runtime, 0, in snd_cx88_pcm_open() 421 runtime->hw = snd_cx88_digital_hw; in snd_cx88_pcm_open() 427 runtime->hw.period_bytes_min = bpl; in snd_cx88_pcm_open() 428 runtime->hw.period_bytes_max = bpl; in snd_cx88_pcm_open() 456 if (substream->runtime->dma_area) { in snd_cx88_hw_params() 458 substream->runtime->dma_area = NULL; in snd_cx88_hw_params() 493 substream->runtime->dma_area = chip->buf->vaddr; in snd_cx88_hw_params() 494 substream->runtime->dma_bytes = chip->dma_size; in snd_cx88_hw_params() 495 substream->runtime->dma_addr = 0; in snd_cx88_hw_params() [all …]
|
/drivers/media/usb/em28xx/ |
D | em28xx-audio.c | 76 struct snd_pcm_runtime *runtime; in em28xx_audio_isocirq() local 103 runtime = substream->runtime; in em28xx_audio_isocirq() 104 stride = runtime->frame_bits >> 3; in em28xx_audio_isocirq() 117 if (oldptr + length >= runtime->buffer_size) { in em28xx_audio_isocirq() 119 runtime->buffer_size - oldptr; in em28xx_audio_isocirq() 120 memcpy(runtime->dma_area + oldptr * stride, cp, in em28xx_audio_isocirq() 122 memcpy(runtime->dma_area, cp + cnt * stride, in em28xx_audio_isocirq() 125 memcpy(runtime->dma_area + oldptr * stride, cp, in em28xx_audio_isocirq() 133 runtime->buffer_size) in em28xx_audio_isocirq() 135 runtime->buffer_size; in em28xx_audio_isocirq() [all …]
|
/drivers/firmware/efi/ |
D | Makefile | 23 obj-$(CONFIG_EFI_RUNTIME_MAP) += runtime-map.o 24 obj-$(CONFIG_EFI_RUNTIME_WRAPPERS) += runtime-wrappers.o 40 arm-obj-$(CONFIG_EFI) := efi-init.o arm-runtime.o 43 riscv-obj-$(CONFIG_EFI) := efi-init.o riscv-runtime.o
|
D | Kconfig | 30 bool "Export efi runtime maps to sysfs" 34 Export efi runtime memory maps to /sys/firmware/efi/runtime-map. 38 See also Documentation/ABI/testing/sysfs-firmware-efi-runtime-map. 99 the EFI runtime support gets system table address, memory 174 users to load EFI capsules. This driver requires working runtime 195 kernel subsystem, just for testing the UEFI runtime service 197 by the Firmware Test Suite (FWTS) for testing the UEFI runtime 202 Say Y here to enable the runtime services support via /dev/efi_test. 252 while calling ExitBootServices() and passing control to the runtime 288 bool "Disable EFI runtime services support by default" [all …]
|