/linux-6.12.1/sound/core/oss/ |
D | linear.c | 70 snd_pcm_area_silence(&dst_channels[channel].area, 0, frames, plugin->dst_format.format); in convert() 117 snd_pcm_format_t src_format, snd_pcm_format_t dst_format) in init_data() argument 122 dst_bytes = snd_pcm_format_width(dst_format) / 8; in init_data() 124 dst_le = snd_pcm_format_little_endian(dst_format) > 0; in init_data() 138 data->dst_ofs = snd_pcm_format_physical_width(dst_format) / 8 - in init_data() 141 snd_pcm_format_signed(dst_format)) { in init_data() 151 struct snd_pcm_plugin_format *dst_format, in snd_pcm_plugin_build_linear() argument 162 if (snd_BUG_ON(src_format->rate != dst_format->rate)) in snd_pcm_plugin_build_linear() 164 if (snd_BUG_ON(src_format->channels != dst_format->channels)) in snd_pcm_plugin_build_linear() 167 !snd_pcm_format_linear(dst_format->format))) in snd_pcm_plugin_build_linear() [all …]
|
D | copy.c | 49 snd_pcm_area_silence(&dst_channels->area, 0, frames, plugin->dst_format.format); in copy_transfer() 63 struct snd_pcm_plugin_format *dst_format, in snd_pcm_plugin_build_copy() argument 74 if (snd_BUG_ON(src_format->format != dst_format->format)) in snd_pcm_plugin_build_copy() 76 if (snd_BUG_ON(src_format->rate != dst_format->rate)) in snd_pcm_plugin_build_copy() 78 if (snd_BUG_ON(src_format->channels != dst_format->channels)) in snd_pcm_plugin_build_copy() 85 err = snd_pcm_plugin_build(plug, "copy", src_format, dst_format, in snd_pcm_plugin_build_copy()
|
D | rate.c | 85 snd_pcm_area_silence(&dst_channels[channel].area, 0, dst_frames, plugin->dst_format.format); in resample_expand() 144 snd_pcm_area_silence(&dst_channels[channel].area, 0, dst_frames, plugin->dst_format.format); in resample_shrink() 193 if (plugin->src_format.rate < plugin->dst_format.rate) { in rate_src_frames() 226 if (plugin->src_format.rate < plugin->dst_format.rate) { in rate_dst_frames() 302 struct snd_pcm_plugin_format *dst_format, in snd_pcm_plugin_build_rate() argument 313 if (snd_BUG_ON(src_format->channels != dst_format->channels)) in snd_pcm_plugin_build_rate() 319 if (snd_BUG_ON(dst_format->format != SNDRV_PCM_FORMAT_S16)) in snd_pcm_plugin_build_rate() 321 if (snd_BUG_ON(src_format->rate == dst_format->rate)) in snd_pcm_plugin_build_rate() 325 src_format, dst_format, in snd_pcm_plugin_build_rate() 332 if (src_format->rate < dst_format->rate) { in snd_pcm_plugin_build_rate() [all …]
|
D | route.c | 64 ndsts = plugin->dst_format.channels; in route_transfer() 66 format = plugin->dst_format.format; in route_transfer() 89 struct snd_pcm_plugin_format *dst_format, in snd_pcm_plugin_build_route() argument 98 if (snd_BUG_ON(src_format->rate != dst_format->rate)) in snd_pcm_plugin_build_route() 100 if (snd_BUG_ON(src_format->format != dst_format->format)) in snd_pcm_plugin_build_route() 104 src_format, dst_format, 0, &plugin); in snd_pcm_plugin_build_route()
|
D | pcm_plugin.h | 43 struct snd_pcm_plugin_format dst_format; /* destination format */ member 73 struct snd_pcm_plugin_format *dst_format, 89 struct snd_pcm_plugin_format *dst_format, 93 struct snd_pcm_plugin_format *dst_format, 97 struct snd_pcm_plugin_format *dst_format, 101 struct snd_pcm_plugin_format *dst_format, 105 struct snd_pcm_plugin_format *dst_format,
|
D | mulaw.c | 183 snd_pcm_area_silence(&dst_channels[channel].area, 0, frames, plugin->dst_format.format); in mulaw_decode() 229 snd_pcm_area_silence(&dst_channels[channel].area, 0, frames, plugin->dst_format.format); in mulaw_encode() 302 struct snd_pcm_plugin_format *dst_format, in snd_pcm_plugin_build_mulaw() argument 315 if (snd_BUG_ON(src_format->rate != dst_format->rate)) in snd_pcm_plugin_build_mulaw() 317 if (snd_BUG_ON(src_format->channels != dst_format->channels)) in snd_pcm_plugin_build_mulaw() 320 if (dst_format->format == SNDRV_PCM_FORMAT_MU_LAW) { in snd_pcm_plugin_build_mulaw() 325 format = dst_format; in snd_pcm_plugin_build_mulaw() 336 src_format, dst_format, in snd_pcm_plugin_build_mulaw()
|
D | pcm_plugin.c | 60 format = &plugin->dst_format; in snd_pcm_plugin_alloc() 153 struct snd_pcm_plugin_format *dst_format, in snd_pcm_plugin_build() argument 162 if (snd_BUG_ON(!src_format || !dst_format)) in snd_pcm_plugin_build() 174 plugin->dst_format = *dst_format; in snd_pcm_plugin_build() 175 plugin->dst_width = snd_pcm_format_physical_width(dst_format->format); in snd_pcm_plugin_build() 180 channels = dst_format->channels; in snd_pcm_plugin_build() 575 format = &plugin->dst_format; in snd_pcm_plug_client_channels_buf()
|
D | io.c | 49 int channel, channels = plugin->dst_format.channels; in io_playback_transfer() 75 int channel, channels = plugin->dst_format.channels; in io_capture_transfer()
|
D | pcm_oss.c | 1475 …_bytes = (runtime->oss.plugin_last->dst_width * runtime->oss.plugin_last->dst_format.channels) / 8; in snd_pcm_oss_read2()
|
/linux-6.12.1/drivers/gpu/drm/msm/disp/dpu1/ |
D | dpu_hw_wb.c | 71 u32 dst_format, pattern, ystride0, ystride1, outsize, chroma_samp; in dpu_hw_wb_setup_format() local 78 dst_format = (chroma_samp << 23) | in dpu_hw_wb_setup_format() 86 dst_format |= BIT(8); /* DSTC3_EN */ in dpu_hw_wb_setup_format() 89 dst_format |= BIT(14); /* DST_ALPHA_X */ in dpu_hw_wb_setup_format() 93 dst_format |= BIT(15); in dpu_hw_wb_setup_format() 100 dst_format |= ((fmt->flags & MSM_FORMAT_FLAG_UNPACK_ALIGN_MSB ? 1 : 0) << 18) | in dpu_hw_wb_setup_format() 116 DPU_REG_WRITE(c, WB_DST_FORMAT, dst_format); in dpu_hw_wb_setup_format()
|
/linux-6.12.1/drivers/gpu/drm/imx/dcss/ |
D | dcss-scaler.c | 413 u32 pix_format, enum buffer_format dst_format) in dcss_scaler_res_set() argument 439 if (dst_format == BUF_FMT_YUV422) in dcss_scaler_res_set() 443 if (src_is_444 && dst_format == BUF_FMT_YUV422) { in dcss_scaler_res_set() 477 u32 src_format, u32 dst_format, in dcss_scaler_fractions_set() argument 536 if (dst_format == BUF_FMT_YUV422) in dcss_scaler_fractions_set() 646 enum buffer_format dst_format, in dcss_scaler_yuv_coef_set() argument 653 (dst_format == BUF_FMT_YUV422 && in dcss_scaler_yuv_coef_set() 677 if (dst_format != BUF_FMT_ARGB8888_YUV444) in dcss_scaler_yuv_coef_set() 679 if (dst_format == BUF_FMT_YUV420) /* should not happen */ in dcss_scaler_yuv_coef_set() 778 enum buffer_format dst_format = BUF_FMT_ARGB8888_YUV444; in dcss_scaler_setup() local [all …]
|
/linux-6.12.1/drivers/gpu/drm/ |
D | drm_format_helper.c | 1007 int drm_fb_blit(struct iosys_map *dst, const unsigned int *dst_pitch, uint32_t dst_format, in drm_fb_blit() argument 1013 if (fb_format == dst_format) { in drm_fb_blit() 1016 } else if (fb_format == (dst_format | DRM_FORMAT_BIG_ENDIAN)) { in drm_fb_blit() 1019 } else if (fb_format == (dst_format & ~DRM_FORMAT_BIG_ENDIAN)) { in drm_fb_blit() 1023 if (dst_format == DRM_FORMAT_RGB565) { in drm_fb_blit() 1026 } else if (dst_format == DRM_FORMAT_XRGB1555) { in drm_fb_blit() 1029 } else if (dst_format == DRM_FORMAT_ARGB1555) { in drm_fb_blit() 1032 } else if (dst_format == DRM_FORMAT_RGBA5551) { in drm_fb_blit() 1035 } else if (dst_format == DRM_FORMAT_RGB888) { in drm_fb_blit() 1038 } else if (dst_format == DRM_FORMAT_ARGB8888) { in drm_fb_blit() [all …]
|
D | drm_mipi_dbi.c | 274 const struct drm_format_info *dst_format; in mipi_dbi_fb_dirty() local 300 dst_format = drm_format_info(dbidev->pixel_format); in mipi_dbi_fb_dirty() 302 dst_format = fb->format; in mipi_dbi_fb_dirty() 303 len = drm_format_info_min_pitch(dst_format, 0, width) * height; in mipi_dbi_fb_dirty()
|
/linux-6.12.1/drivers/media/platform/cadence/ |
D | cdns-csi2tx.c | 208 struct v4l2_mbus_framefmt *dst_format; in csi2tx_set_pad_format() local 217 dst_format = __csi2tx_get_pad_format(subdev, sd_state, fmt); in csi2tx_set_pad_format() 218 if (!dst_format) in csi2tx_set_pad_format() 221 *dst_format = *src_format; in csi2tx_set_pad_format()
|
/linux-6.12.1/drivers/gpu/drm/tiny/ |
D | ofdrm.c | 811 const struct drm_format_info *dst_format = odev->format; in ofdrm_primary_plane_helper_atomic_update() local 831 iosys_map_incr(&dst, drm_fb_clip_offset(dst_pitch, dst_format, &dst_clip)); in ofdrm_primary_plane_helper_atomic_update() 832 drm_fb_blit(&dst, &dst_pitch, dst_format->format, shadow_plane_state->data, fb, in ofdrm_primary_plane_helper_atomic_update() 850 const struct drm_format_info *dst_format = odev->format; in ofdrm_primary_plane_helper_atomic_disable() local 866 dst_vmap += drm_fb_clip_offset(dst_pitch, dst_format, &dst_clip); in ofdrm_primary_plane_helper_atomic_disable() 868 memset_io(dst_vmap, 0, linepixels * dst_format->cpp[0]); in ofdrm_primary_plane_helper_atomic_disable()
|
/linux-6.12.1/include/drm/ |
D | drm_format_helper.h | 114 int drm_fb_blit(struct iosys_map *dst, const unsigned int *dst_pitch, uint32_t dst_format,
|
/linux-6.12.1/drivers/gpu/drm/tests/ |
D | drm_format_helper_test.c | 540 static size_t conversion_buf_size(u32 dst_format, unsigned int dst_pitch, in conversion_buf_size() argument 543 const struct drm_format_info *dst_fi = drm_format_info(dst_format); in conversion_buf_size()
|