| /kernel/linux/linux-5.10/sound/core/oss/ |
| D | pcm_plugin.c | 49 static int snd_pcm_plugin_alloc(struct snd_pcm_plugin *plugin, snd_pcm_uframes_t frames) in snd_pcm_plugin_alloc() argument 57 if (plugin->stream == SNDRV_PCM_STREAM_PLAYBACK) { in snd_pcm_plugin_alloc() 58 format = &plugin->src_format; in snd_pcm_plugin_alloc() 60 format = &plugin->dst_format; in snd_pcm_plugin_alloc() 71 if (plugin->buf_frames < frames) { in snd_pcm_plugin_alloc() 72 kvfree(plugin->buf); in snd_pcm_plugin_alloc() 73 plugin->buf = kvzalloc(size, GFP_KERNEL); in snd_pcm_plugin_alloc() 74 plugin->buf_frames = frames; in snd_pcm_plugin_alloc() 76 if (!plugin->buf) { in snd_pcm_plugin_alloc() 77 plugin->buf_frames = 0; in snd_pcm_plugin_alloc() [all …]
|
| D | io.c | 34 * Basic io plugin 37 static snd_pcm_sframes_t io_playback_transfer(struct snd_pcm_plugin *plugin, in io_playback_transfer() argument 42 if (snd_BUG_ON(!plugin)) in io_playback_transfer() 46 if (plugin->access == SNDRV_PCM_ACCESS_RW_INTERLEAVED) { in io_playback_transfer() 47 return pcm_write(plugin->plug, src_channels->area.addr, frames); in io_playback_transfer() 49 int channel, channels = plugin->dst_format.channels; in io_playback_transfer() 50 void **bufs = (void**)plugin->extra_data; in io_playback_transfer() 59 return pcm_writev(plugin->plug, bufs, frames); in io_playback_transfer() 63 static snd_pcm_sframes_t io_capture_transfer(struct snd_pcm_plugin *plugin, in io_capture_transfer() argument 68 if (snd_BUG_ON(!plugin)) in io_capture_transfer() [all …]
|
| D | rate.c | 32 * Basic rate conversion plugin 40 typedef void (*rate_f)(struct snd_pcm_plugin *plugin, 53 static void rate_init(struct snd_pcm_plugin *plugin) in rate_init() argument 56 struct rate_priv *data = (struct rate_priv *)plugin->extra_data; in rate_init() 58 for (channel = 0; channel < plugin->src_format.channels; channel++) { in rate_init() 64 static void resample_expand(struct snd_pcm_plugin *plugin, in resample_expand() argument 76 struct rate_priv *data = (struct rate_priv *)plugin->extra_data; in resample_expand() 79 for (channel = 0; channel < plugin->src_format.channels; channel++) { in resample_expand() 85 snd_pcm_area_silence(&dst_channels[channel].area, 0, dst_frames, plugin->dst_format.format); in resample_expand() 123 static void resample_shrink(struct snd_pcm_plugin *plugin, in resample_shrink() argument [all …]
|
| D | linear.c | 29 * Basic linear conversion plugin 55 static void convert(struct snd_pcm_plugin *plugin, in convert() argument 60 struct linear_priv *data = (struct linear_priv *)plugin->extra_data; in convert() 62 int nchannels = plugin->src_format.channels; in convert() 70 snd_pcm_area_silence(&dst_channels[channel].area, 0, frames, plugin->dst_format.format); in convert() 88 static snd_pcm_sframes_t linear_transfer(struct snd_pcm_plugin *plugin, in linear_transfer() argument 93 if (snd_BUG_ON(!plugin || !src_channels || !dst_channels)) in linear_transfer() 100 for (channel = 0; channel < plugin->src_format.channels; channel++) { in linear_transfer() 112 convert(plugin, src_channels, dst_channels, frames); in linear_transfer() 156 struct snd_pcm_plugin *plugin; in snd_pcm_plugin_build_linear() local [all …]
|
| D | mulaw.c | 138 * Basic Mu-Law plugin 141 typedef void (*mulaw_f)(struct snd_pcm_plugin *plugin, 168 static void mulaw_decode(struct snd_pcm_plugin *plugin, in mulaw_decode() argument 173 struct mulaw_priv *data = (struct mulaw_priv *)plugin->extra_data; in mulaw_decode() 175 int nchannels = plugin->src_format.channels; in mulaw_decode() 183 snd_pcm_area_silence(&dst_channels[channel].area, 0, frames, plugin->dst_format.format); in mulaw_decode() 214 static void mulaw_encode(struct snd_pcm_plugin *plugin, in mulaw_encode() argument 219 struct mulaw_priv *data = (struct mulaw_priv *)plugin->extra_data; in mulaw_encode() 221 int nchannels = plugin->src_format.channels; in mulaw_encode() 229 snd_pcm_area_silence(&dst_channels[channel].area, 0, frames, plugin->dst_format.format); in mulaw_encode() [all …]
|
| D | copy.c | 27 static snd_pcm_sframes_t copy_transfer(struct snd_pcm_plugin *plugin, in copy_transfer() argument 35 if (snd_BUG_ON(!plugin || !src_channels || !dst_channels)) in copy_transfer() 39 nchannels = plugin->src_format.channels; in copy_transfer() 49 snd_pcm_area_silence(&dst_channels->area, 0, frames, plugin->dst_format.format); in copy_transfer() 54 …snd_pcm_area_copy(&src_channels->area, 0, &dst_channels->area, 0, frames, plugin->src_format.forma… in copy_transfer() 67 struct snd_pcm_plugin *plugin; in snd_pcm_plugin_build_copy() local 86 0, &plugin); in snd_pcm_plugin_build_copy() 89 plugin->transfer = copy_transfer; in snd_pcm_plugin_build_copy() 90 *r_plugin = plugin; in snd_pcm_plugin_build_copy()
|
| D | pcm_plugin.h | 6 * Digital Audio (Plugin interface) abstract layer 47 snd_pcm_sframes_t (*src_frames)(struct snd_pcm_plugin *plugin, snd_pcm_uframes_t dst_frames); 48 snd_pcm_sframes_t (*dst_frames)(struct snd_pcm_plugin *plugin, snd_pcm_uframes_t src_frames); 49 snd_pcm_sframes_t (*client_channels)(struct snd_pcm_plugin *plugin, 52 snd_pcm_sframes_t (*transfer)(struct snd_pcm_plugin *plugin, 56 int (*action)(struct snd_pcm_plugin *plugin, 63 void (*private_free)(struct snd_pcm_plugin *plugin); 76 int snd_pcm_plugin_free(struct snd_pcm_plugin *plugin); 116 int snd_pcm_plugin_append(struct snd_pcm_plugin *plugin); 129 snd_pcm_sframes_t snd_pcm_plugin_client_channels(struct snd_pcm_plugin *plugin, [all …]
|
| /kernel/linux/linux-6.6/sound/core/oss/ |
| D | pcm_plugin.c | 49 static int snd_pcm_plugin_alloc(struct snd_pcm_plugin *plugin, snd_pcm_uframes_t frames) in snd_pcm_plugin_alloc() argument 57 if (plugin->stream == SNDRV_PCM_STREAM_PLAYBACK) { in snd_pcm_plugin_alloc() 58 format = &plugin->src_format; in snd_pcm_plugin_alloc() 60 format = &plugin->dst_format; in snd_pcm_plugin_alloc() 72 if (plugin->buf_frames < frames) { in snd_pcm_plugin_alloc() 73 kvfree(plugin->buf); in snd_pcm_plugin_alloc() 74 plugin->buf = kvzalloc(size, GFP_KERNEL); in snd_pcm_plugin_alloc() 75 plugin->buf_frames = frames; in snd_pcm_plugin_alloc() 77 if (!plugin->buf) { in snd_pcm_plugin_alloc() 78 plugin->buf_frames = 0; in snd_pcm_plugin_alloc() [all …]
|
| D | io.c | 34 * Basic io plugin 37 static snd_pcm_sframes_t io_playback_transfer(struct snd_pcm_plugin *plugin, in io_playback_transfer() argument 42 if (snd_BUG_ON(!plugin)) in io_playback_transfer() 46 if (plugin->access == SNDRV_PCM_ACCESS_RW_INTERLEAVED) { in io_playback_transfer() 47 return pcm_write(plugin->plug, src_channels->area.addr, frames); in io_playback_transfer() 49 int channel, channels = plugin->dst_format.channels; in io_playback_transfer() 50 void **bufs = (void**)plugin->extra_data; in io_playback_transfer() 59 return pcm_writev(plugin->plug, bufs, frames); in io_playback_transfer() 63 static snd_pcm_sframes_t io_capture_transfer(struct snd_pcm_plugin *plugin, in io_capture_transfer() argument 68 if (snd_BUG_ON(!plugin)) in io_capture_transfer() [all …]
|
| D | rate.c | 32 * Basic rate conversion plugin 40 typedef void (*rate_f)(struct snd_pcm_plugin *plugin, 53 static void rate_init(struct snd_pcm_plugin *plugin) in rate_init() argument 56 struct rate_priv *data = (struct rate_priv *)plugin->extra_data; in rate_init() 58 for (channel = 0; channel < plugin->src_format.channels; channel++) { in rate_init() 64 static void resample_expand(struct snd_pcm_plugin *plugin, in resample_expand() argument 76 struct rate_priv *data = (struct rate_priv *)plugin->extra_data; in resample_expand() 79 for (channel = 0; channel < plugin->src_format.channels; channel++) { in resample_expand() 85 snd_pcm_area_silence(&dst_channels[channel].area, 0, dst_frames, plugin->dst_format.format); in resample_expand() 123 static void resample_shrink(struct snd_pcm_plugin *plugin, in resample_shrink() argument [all …]
|
| D | linear.c | 29 * Basic linear conversion plugin 55 static void convert(struct snd_pcm_plugin *plugin, in convert() argument 60 struct linear_priv *data = (struct linear_priv *)plugin->extra_data; in convert() 62 int nchannels = plugin->src_format.channels; in convert() 70 snd_pcm_area_silence(&dst_channels[channel].area, 0, frames, plugin->dst_format.format); in convert() 88 static snd_pcm_sframes_t linear_transfer(struct snd_pcm_plugin *plugin, in linear_transfer() argument 93 if (snd_BUG_ON(!plugin || !src_channels || !dst_channels)) in linear_transfer() 100 for (channel = 0; channel < plugin->src_format.channels; channel++) { in linear_transfer() 112 convert(plugin, src_channels, dst_channels, frames); in linear_transfer() 156 struct snd_pcm_plugin *plugin; in snd_pcm_plugin_build_linear() local [all …]
|
| D | mulaw.c | 138 * Basic Mu-Law plugin 141 typedef void (*mulaw_f)(struct snd_pcm_plugin *plugin, 168 static void mulaw_decode(struct snd_pcm_plugin *plugin, in mulaw_decode() argument 173 struct mulaw_priv *data = (struct mulaw_priv *)plugin->extra_data; in mulaw_decode() 175 int nchannels = plugin->src_format.channels; in mulaw_decode() 183 snd_pcm_area_silence(&dst_channels[channel].area, 0, frames, plugin->dst_format.format); in mulaw_decode() 214 static void mulaw_encode(struct snd_pcm_plugin *plugin, in mulaw_encode() argument 219 struct mulaw_priv *data = (struct mulaw_priv *)plugin->extra_data; in mulaw_encode() 221 int nchannels = plugin->src_format.channels; in mulaw_encode() 229 snd_pcm_area_silence(&dst_channels[channel].area, 0, frames, plugin->dst_format.format); in mulaw_encode() [all …]
|
| D | copy.c | 27 static snd_pcm_sframes_t copy_transfer(struct snd_pcm_plugin *plugin, in copy_transfer() argument 35 if (snd_BUG_ON(!plugin || !src_channels || !dst_channels)) in copy_transfer() 39 nchannels = plugin->src_format.channels; in copy_transfer() 49 snd_pcm_area_silence(&dst_channels->area, 0, frames, plugin->dst_format.format); in copy_transfer() 54 …snd_pcm_area_copy(&src_channels->area, 0, &dst_channels->area, 0, frames, plugin->src_format.forma… in copy_transfer() 67 struct snd_pcm_plugin *plugin; in snd_pcm_plugin_build_copy() local 86 0, &plugin); in snd_pcm_plugin_build_copy() 89 plugin->transfer = copy_transfer; in snd_pcm_plugin_build_copy() 90 *r_plugin = plugin; in snd_pcm_plugin_build_copy()
|
| D | pcm_plugin.h | 6 * Digital Audio (Plugin interface) abstract layer 47 snd_pcm_sframes_t (*src_frames)(struct snd_pcm_plugin *plugin, snd_pcm_uframes_t dst_frames); 48 snd_pcm_sframes_t (*dst_frames)(struct snd_pcm_plugin *plugin, snd_pcm_uframes_t src_frames); 49 snd_pcm_sframes_t (*client_channels)(struct snd_pcm_plugin *plugin, 52 snd_pcm_sframes_t (*transfer)(struct snd_pcm_plugin *plugin, 56 int (*action)(struct snd_pcm_plugin *plugin, 63 void (*private_free)(struct snd_pcm_plugin *plugin); 76 int snd_pcm_plugin_free(struct snd_pcm_plugin *plugin); 116 int snd_pcm_plugin_append(struct snd_pcm_plugin *plugin); 129 snd_pcm_sframes_t snd_pcm_plugin_client_channels(struct snd_pcm_plugin *plugin, [all …]
|
| /kernel/linux/linux-5.10/scripts/ |
| D | Makefile.gcc-plugins | 3 gcc-plugin-$(CONFIG_GCC_PLUGIN_CYC_COMPLEXITY) += cyc_complexity_plugin.so 5 gcc-plugin-$(CONFIG_GCC_PLUGIN_LATENT_ENTROPY) += latent_entropy_plugin.so 6 gcc-plugin-cflags-$(CONFIG_GCC_PLUGIN_LATENT_ENTROPY) \ 13 gcc-plugin-$(CONFIG_GCC_PLUGIN_SANCOV) += sancov_plugin.so 15 gcc-plugin-$(CONFIG_GCC_PLUGIN_STRUCTLEAK) += structleak_plugin.so 16 gcc-plugin-cflags-$(CONFIG_GCC_PLUGIN_STRUCTLEAK_VERBOSE) \ 18 gcc-plugin-cflags-$(CONFIG_GCC_PLUGIN_STRUCTLEAK_BYREF) \ 20 gcc-plugin-cflags-$(CONFIG_GCC_PLUGIN_STRUCTLEAK_BYREF_ALL) \ 26 gcc-plugin-cflags-$(CONFIG_GCC_PLUGIN_STRUCTLEAK) \ 29 gcc-plugin-$(CONFIG_GCC_PLUGIN_RANDSTRUCT) += randomize_layout_plugin.so [all …]
|
| /kernel/linux/linux-5.10/tools/lib/traceevent/ |
| D | event-plugin.c | 31 char *plugin; member 95 * tep_plugin_list_options - get list of plugin options 98 * plugin options in the format of <plugin>:<option>. This list can be 164 char *plugin; in update_option() local 168 plugin = strdup(option->plugin_alias); in update_option() 169 if (!plugin) in update_option() 173 plugin = strdup(file); in update_option() 174 if (!plugin) in update_option() 176 p = strstr(plugin, "."); in update_option() 183 if (!op->plugin) in update_option() [all …]
|
| /kernel/linux/linux-6.6/scripts/ |
| D | Makefile.gcc-plugins | 3 gcc-plugin-$(CONFIG_GCC_PLUGIN_LATENT_ENTROPY) += latent_entropy_plugin.so 4 gcc-plugin-cflags-$(CONFIG_GCC_PLUGIN_LATENT_ENTROPY) \ 11 gcc-plugin-$(CONFIG_GCC_PLUGIN_STRUCTLEAK) += structleak_plugin.so 12 gcc-plugin-cflags-$(CONFIG_GCC_PLUGIN_STRUCTLEAK_VERBOSE) \ 14 gcc-plugin-cflags-$(CONFIG_GCC_PLUGIN_STRUCTLEAK_BYREF) \ 16 gcc-plugin-cflags-$(CONFIG_GCC_PLUGIN_STRUCTLEAK_BYREF_ALL) \ 22 gcc-plugin-cflags-$(CONFIG_GCC_PLUGIN_STRUCTLEAK) \ 25 gcc-plugin-$(CONFIG_GCC_PLUGIN_STACKLEAK) += stackleak_plugin.so 26 gcc-plugin-cflags-$(CONFIG_GCC_PLUGIN_STACKLEAK) \ 28 gcc-plugin-cflags-$(CONFIG_GCC_PLUGIN_STACKLEAK) \ [all …]
|
| /kernel/linux/linux-6.6/Documentation/kbuild/ |
| D | gcc-plugins.rst | 2 GCC plugin infrastructure 14 The GCC plugin infrastructure of the kernel supports building out-of-tree 16 Plugin source files have to be compilable by a C++ compiler. 18 Currently the GCC plugin infrastructure supports only some architectures. 27 .. [2] https://gcc.gnu.org/onlinedocs/gccint/Plugin-API.html#Plugin-API 49 GCC plugin), so the entire ecosystem can benefit from it. 51 Similarly, even if a feature provided by a GCC plugin does *not* exist 55 After a feature is available in upstream GCC, the plugin will be made 57 kernel-supported versions of GCC provide the feature, the plugin will 86 You must install the gcc plugin headers for your gcc version, [all …]
|
| /kernel/linux/linux-5.10/scripts/gcc-plugins/ |
| D | Makefile | 16 # If the plugin foo.so is compiled from foo.c and foo2.c, you can do: 22 GCC_PLUGINS_DIR = $(shell $(CC) -print-file-name=plugin) 32 plugin-single := $(foreach m, $(GCC_PLUGIN), $(if $($(m:%.so=%-objs)),,$(m))) 33 plugin-multi := $(filter-out $(plugin-single), $(GCC_PLUGIN)) 34 plugin-objs := $(sort $(foreach m, $(plugin-multi), $($(m:%.so=%-objs)))) 36 targets += $(plugin-single) $(plugin-multi) $(plugin-objs) 39 plugin-single := $(addprefix $(obj)/, $(plugin-single)) 40 plugin-multi := $(addprefix $(obj)/, $(plugin-multi)) 41 plugin-objs := $(addprefix $(obj)/, $(plugin-objs)) 46 $(plugin-single): $(obj)/%.so: $(src)/%.c FORCE [all …]
|
| /kernel/linux/linux-6.6/scripts/gcc-plugins/ |
| D | Makefile | 21 # If the plugin foo.so is compiled from foo.c and foo2.c, you can do: 27 GCC_PLUGINS_DIR = $(shell $(CC) -print-file-name=plugin) 39 plugin-single := $(foreach m, $(GCC_PLUGIN), $(if $($(m:%.so=%-objs)),,$(m))) 40 plugin-multi := $(filter-out $(plugin-single), $(GCC_PLUGIN)) 41 plugin-objs := $(sort $(foreach m, $(plugin-multi), $($(m:%.so=%-objs)))) 43 targets += $(plugin-single) $(plugin-multi) $(plugin-objs) 46 plugin-single := $(addprefix $(obj)/, $(plugin-single)) 47 plugin-multi := $(addprefix $(obj)/, $(plugin-multi)) 48 plugin-objs := $(addprefix $(obj)/, $(plugin-objs)) 53 $(plugin-single): $(obj)/%.so: $(src)/%.c FORCE [all …]
|
| /kernel/linux/linux-5.10/Documentation/kbuild/ |
| D | gcc-plugins.rst | 2 GCC plugin infrastructure 14 The GCC plugin infrastructure of the kernel supports building out-of-tree 16 Plugin source files have to be compilable by a C++ compiler. 18 Currently the GCC plugin infrastructure supports only some architectures. 27 .. [2] https://gcc.gnu.org/onlinedocs/gccint/Plugin-API.html#Plugin-API 60 You must install the gcc plugin headers for your gcc version, 63 apt-get install gcc-10-plugin-dev 67 dnf install gcc-plugin-devel 69 Enable the GCC plugin infrastructure and some plugin(s) you want to use 77 To compile the minimum tool set including the plugin(s):: [all …]
|
| /kernel/linux/linux-5.10/drivers/target/ |
| D | Kconfig | 19 tristate "TCM/IBLOCK Subsystem Plugin for Linux/BLOCK" 22 Say Y here to enable the TCM/IBLOCK subsystem plugin for non-buffered 26 tristate "TCM/FILEIO Subsystem Plugin for Linux/VFS" 28 Say Y here to enable the TCM/FILEIO subsystem plugin for buffered 32 tristate "TCM/pSCSI Subsystem Plugin for Linux/SCSI" 35 Say Y here to enable the TCM/pSCSI subsystem plugin for non-buffered 39 tristate "TCM/USER Subsystem Plugin for Linux" 42 Say Y here to enable the TCM/USER subsystem plugin for a userspace
|
| /kernel/linux/linux-6.6/drivers/target/ |
| D | Kconfig | 19 tristate "TCM/IBLOCK Subsystem Plugin for Linux/BLOCK" 22 Say Y here to enable the TCM/IBLOCK subsystem plugin for non-buffered 26 tristate "TCM/FILEIO Subsystem Plugin for Linux/VFS" 28 Say Y here to enable the TCM/FILEIO subsystem plugin for buffered 32 tristate "TCM/pSCSI Subsystem Plugin for Linux/SCSI" 35 Say Y here to enable the TCM/pSCSI subsystem plugin for non-buffered 39 tristate "TCM/USER Subsystem Plugin for Linux" 42 Say Y here to enable the TCM/USER subsystem plugin for a userspace
|
| /kernel/linux/linux-5.10/Documentation/ABI/testing/ |
| D | sysfs-ocfs2 | 35 A cluster plugin is required to use ocfs2 in a cluster. 40 * 'user' - A plugin supporting userspace cluster software 54 cluster plugin is currently in use by the filesystem. 55 The active plugin will appear in the loaded_cluster_plugins 56 file as well. Only one plugin can be used at a time. 58 Reading from this file returns the name of the active plugin 61 This file is read-only. Which plugin is active depends on 77 plugin is active. All other cluster stacks use the 'user' 78 cluster plugin.
|
| /kernel/linux/linux-6.6/Documentation/ABI/testing/ |
| D | sysfs-ocfs2 | 35 A cluster plugin is required to use ocfs2 in a cluster. 40 * 'user' - A plugin supporting userspace cluster software 54 cluster plugin is currently in use by the filesystem. 55 The active plugin will appear in the loaded_cluster_plugins 56 file as well. Only one plugin can be used at a time. 58 Reading from this file returns the name of the active plugin 61 This file is read-only. Which plugin is active depends on 77 plugin is active. All other cluster stacks use the 'user' 78 cluster plugin.
|