| /linux/sound/core/oss/ |
| H A D | pcm_plugin.c | 34 static int snd_pcm_plugin_alloc(struct snd_pcm_plugin *plugin, snd_pcm_uframes_t frames) in snd_pcm_plugin_alloc() argument 42 if (plugin->stream == SNDRV_PCM_STREAM_PLAYBACK) { in snd_pcm_plugin_alloc() 43 format = &plugin->src_format; in snd_pcm_plugin_alloc() 45 format = &plugin->dst_format; in snd_pcm_plugin_alloc() 57 if (plugin->buf_frames < frames) { in snd_pcm_plugin_alloc() 58 kvfree(plugin->buf); in snd_pcm_plugin_alloc() 59 plugin->buf = kvzalloc(size, GFP_KERNEL); in snd_pcm_plugin_alloc() 60 plugin->buf_frames = frames; in snd_pcm_plugin_alloc() 62 if (!plugin->buf) { in snd_pcm_plugin_alloc() 63 plugin->buf_frames = 0; in snd_pcm_plugin_alloc() [all …]
|
| H A D | io.c | 19 * Basic io plugin 22 static snd_pcm_sframes_t io_playback_transfer(struct snd_pcm_plugin *plugin, in io_playback_transfer() argument 27 if (snd_BUG_ON(!plugin)) in io_playback_transfer() 31 if (plugin->access == SNDRV_PCM_ACCESS_RW_INTERLEAVED) { in io_playback_transfer() 32 return pcm_write(plugin->plug, src_channels->area.addr, frames); in io_playback_transfer() 34 int channel, channels = plugin->dst_format.channels; in io_playback_transfer() 35 void **bufs = (void**)plugin->extra_data; in io_playback_transfer() 44 return pcm_writev(plugin->plug, bufs, frames); in io_playback_transfer() 48 static snd_pcm_sframes_t io_capture_transfer(struct snd_pcm_plugin *plugin, in io_capture_transfer() argument 53 if (snd_BUG_ON(!plugin)) in io_capture_transfer() [all …]
|
| H A D | rate.c | 17 * Basic rate conversion plugin 25 typedef void (*rate_f)(struct snd_pcm_plugin *plugin, 38 static void rate_init(struct snd_pcm_plugin *plugin) in rate_init() argument 41 struct rate_priv *data = (struct rate_priv *)plugin->extra_data; in rate_init() 43 for (channel = 0; channel < plugin->src_format.channels; channel++) { in rate_init() 49 static void resample_expand(struct snd_pcm_plugin *plugin, in resample_expand() argument 61 struct rate_priv *data = (struct rate_priv *)plugin->extra_data; in resample_expand() 64 for (channel = 0; channel < plugin->src_format.channels; channel++) { in resample_expand() 70 snd_pcm_area_silence(&dst_channels[channel].area, 0, dst_frames, plugin->dst_format.format); in resample_expand() 108 static void resample_shrink(struct snd_pcm_plugin *plugin, in resample_shrink() argument [all …]
|
| H A D | linear.c | 14 * Basic linear conversion plugin 40 static void convert(struct snd_pcm_plugin *plugin, in convert() argument 45 struct linear_priv *data = (struct linear_priv *)plugin->extra_data; in convert() 47 int nchannels = plugin->src_format.channels; in convert() 55 snd_pcm_area_silence(&dst_channels[channel].area, 0, frames, plugin->dst_format.format); in convert() 73 static snd_pcm_sframes_t linear_transfer(struct snd_pcm_plugin *plugin, in linear_transfer() argument 78 if (snd_BUG_ON(!plugin || !src_channels || !dst_channels)) in linear_transfer() 85 for (channel = 0; channel < plugin->src_format.channels; channel++) { in linear_transfer() 97 convert(plugin, src_channels, dst_channels, frames); in linear_transfer() 141 struct snd_pcm_plugin *plugin; in snd_pcm_plugin_build_linear() local [all …]
|
| H A D | mulaw.c | 124 * Basic Mu-Law plugin 127 typedef void (*mulaw_f)(struct snd_pcm_plugin *plugin, 154 static void mulaw_decode(struct snd_pcm_plugin *plugin, in mulaw_decode() argument 159 struct mulaw_priv *data = (struct mulaw_priv *)plugin->extra_data; in mulaw_decode() 161 int nchannels = plugin->src_format.channels; in mulaw_decode() 169 snd_pcm_area_silence(&dst_channels[channel].area, 0, frames, plugin->dst_format.format); in mulaw_decode() 200 static void mulaw_encode(struct snd_pcm_plugin *plugin, in mulaw_encode() argument 205 struct mulaw_priv *data = (struct mulaw_priv *)plugin->extra_data; in mulaw_encode() 207 int nchannels = plugin->src_format.channels; in mulaw_encode() 215 snd_pcm_area_silence(&dst_channels[channel].area, 0, frames, plugin->dst_format.format); in mulaw_encode() [all …]
|
| H A D | copy.c | 12 static snd_pcm_sframes_t copy_transfer(struct snd_pcm_plugin *plugin, in copy_transfer() argument 20 if (snd_BUG_ON(!plugin || !src_channels || !dst_channels)) in copy_transfer() 24 nchannels = plugin->src_format.channels; in copy_transfer() 34 snd_pcm_area_silence(&dst_channels->area, 0, frames, plugin->dst_format.format); in copy_transfer() 39 …snd_pcm_area_copy(&src_channels->area, 0, &dst_channels->area, 0, frames, plugin->src_format.forma… in copy_transfer() 52 struct snd_pcm_plugin *plugin; in snd_pcm_plugin_build_copy() local 71 0, &plugin); in snd_pcm_plugin_build_copy() 74 plugin->transfer = copy_transfer; in snd_pcm_plugin_build_copy() 75 *r_plugin = plugin; in snd_pcm_plugin_build_copy()
|
| H A D | route.c | 32 static snd_pcm_sframes_t route_transfer(struct snd_pcm_plugin *plugin, in route_transfer() argument 41 if (snd_BUG_ON(!plugin || !src_channels || !dst_channels)) in route_transfer() 48 nsrcs = plugin->src_format.channels; in route_transfer() 49 ndsts = plugin->dst_format.channels; in route_transfer() 51 format = plugin->dst_format.format; in route_transfer() 77 struct snd_pcm_plugin *plugin; in snd_pcm_plugin_build_route() local 89 src_format, dst_format, 0, &plugin); in snd_pcm_plugin_build_route() 93 plugin->transfer = route_transfer; in snd_pcm_plugin_build_route() 94 *r_plugin = plugin; in snd_pcm_plugin_build_route()
|
| H A 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); 115 int snd_pcm_plugin_append(struct snd_pcm_plugin *plugin); 128 snd_pcm_sframes_t snd_pcm_plugin_client_channels(struct snd_pcm_plugin *plugin, [all …]
|
| /linux/Documentation/kbuild/ |
| H A 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 …]
|
| /linux/scripts/gcc-plugins/ |
| H A 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 [all...] |
| H A D | stackleak_plugin.c | 11 * This gcc plugin is needed for tracking the lowest border of the kernel stack. 15 * to the "track-min-size" plugin parameter. 17 * This plugin is ported from grsecurity/PaX. For more information see: 24 * - add "-fdump-tree-all -fdump-rtl-all" to the plugin CFLAGS in 50 "disable\t\tdo not activate the plugin\n" 521 * Every gcc plugin exports a plugin_init() function that is called right 522 * after the plugin is loaded. This function is responsible for registering 523 * the plugin callbacks and doing other required initialization. 549 * versions of the plugin this new pass was inserted before the in plugin_init() 564 error(G_("incompatible gcc/plugin versions")); in plugin_init() [all …]
|
| H A D | randomize_layout_plugin.c | 13 …* $ gcc -I`gcc -print-file-name=plugin`/include -I`gcc -print-file-name=plugin`/include/c-family -… 15 …* $ g++ -I`g++ -print-file-name=plugin`/include -I`g++ -print-file-name=plugin`/include/c-family -… 34 .help = "disable\t\t\tdo not activate plugin\n" 375 /* from constify plugin */ 381 /* from constify plugin */ 390 /* derived from constify plugin */ 582 /* pipacs' plugin creates franken-arrays that differ from those produced by in check_bad_casts_in_constructor() 611 /* derived from the constify plugin */ 839 error(G_("incompatible gcc/plugin versions")); in plugin_init() 861 error(G_("invalid seed value supplied for %s plugin"), plugin_name); in plugin_init() [all …]
|
| H A D | Kconfig | 12 depends on $(success,test -e $(shell,$(CC) -print-file-name=plugin)/include/plugin-version.h) 35 This plugin was ported from grsecurity/PaX. More information at:
|
| /linux/scripts/ |
| H A 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 # All the plugin CFLAGS are collected here in case a build target needs to 13 …trip $(addprefix -fplugin=$(objtree)/scripts/gcc-plugins/, $(gcc-plugin-y)) $(gcc-plugin-cflags-y)… 21 gcc-plugin-external-$(CONFIG_GCC_PLUGIN_RANDSTRUCT) \ 23 gcc-plugin-external-$(CONFIG_GCC_PLUGIN_STACKLEAK) \ 28 GCC_PLUGIN := $(gcc-plugin-y) $(gcc-plugin-external-y)
|
| H A D | Makefile.autofdo | 20 …= --mllvm=-enable-fs-discriminator=true --mllvm=-improved-fs-discriminator=true -plugin-opt=thinlto 21 KBUILD_LDFLAGS += -plugin-opt=-split-machine-functions
|
| /linux/drivers/target/ |
| H A 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
|
| /linux/tools/testing/selftests/tc-testing/ |
| H A D | README | 52 execution by root uid has been moved into a plugin (see PLUGIN 60 by the plugin. 127 PLUGIN ARCHITECTURE 130 There is now a plugin architecture, and some of the functionality that 133 The plugins are in the directory plugin-lib. The are executed from 134 directory plugins. Put symbolic links from plugins to plugin-lib, 136 necessary if a test case being run requires a specific plugin to work. 142 lrwxrwxrwx 1 bjb bjb 27 Oct 4 16:12 10-rootPlugin.py -> ../plugin-lib/rootPlugin.py 143 lrwxrwxrwx 1 bjb bjb 25 Oct 12 17:55 20-nsPlugin.py -> ../plugin-lib/nsPlugin.py 178 To write a plugin, you need to inherit from TdcPlugin in [all …]
|
| H A D | TODO.txt | 16 - A better implementation of the "hooks". Currently, every plugin 18 changed so that plugin __init__ methods will register functions to 19 be run in the various predefined times. Then if a plugin does not
|
| /linux/Documentation/ABI/testing/ |
| H A 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.
|
| /linux/Documentation/translations/zh_CN/kbuild/ |
| H A D | gcc-plugins.rst | 32 .. [2] https://gcc.gnu.org/onlinedocs/gccint/Plugin-API.html#Plugin-API 85 apt-get install gcc-10-plugin-dev 89 dnf install gcc-plugin-devel libmpc-devel 103 gcc -print-file-name=plugin 104 CROSS_COMPILE=arm-linux-gnu- ${CROSS_COMPILE}gcc -print-file-name=plugin 106 "plugin" 这个词意味着它们没有被检测到:: 108 plugin 112 /usr/lib/gcc/x86_64-redhat-linux/12/plugin
|
| /linux/tools/testing/selftests/tc-testing/creating-plugins/ |
| H A D | AddingPlugins.txt | 8 A new plugin should be written in python as a class that inherits from TdcPlugin. 9 There are some examples in plugin-lib. 11 The plugin can be used to add functionality to the test framework, 49 defined in the test case, but if the plugin is being used to run extra 72 executed. The plugin can adjust the command, based on the stage of 100 The check_args method is so that the plugin can do validation on 104 eg: raise Exception('plugin xxx, arg -y is wrong, fix it')
|
| /linux/tools/testing/selftests/tc-testing/plugin-lib/ |
| H A D | README-PLUGINS | 6 plugin-lib/ 9 10-rootPlugin.py -> ../plugin-lib/rootPlugin.py 10 20-valgrindPlugin.py -> ../plugin-lib/valgrindPlugin.py 11 30-nsPlugin.py -> ../plugin-lib/nsPlugin.py 22 This plugin will write files to the cwd, called vgnd-xxx.log. These will contain
|
| /linux/fs/ocfs2/ |
| H A D | stackglue.c | 163 int ocfs2_stack_glue_register(struct ocfs2_stack_plugin *plugin) in ocfs2_stack_glue_register() argument 168 if (!ocfs2_stack_lookup(plugin->sp_name)) { in ocfs2_stack_glue_register() 169 plugin->sp_count = 0; in ocfs2_stack_glue_register() 170 plugin->sp_max_proto = locking_max_version; in ocfs2_stack_glue_register() 171 list_add(&plugin->sp_list, &ocfs2_stack_list); in ocfs2_stack_glue_register() 173 plugin->sp_name); in ocfs2_stack_glue_register() 177 plugin->sp_name); in ocfs2_stack_glue_register() 186 void ocfs2_stack_glue_unregister(struct ocfs2_stack_plugin *plugin) in ocfs2_stack_glue_unregister() argument 191 p = ocfs2_stack_lookup(plugin->sp_name); in ocfs2_stack_glue_unregister() 193 BUG_ON(p != plugin); in ocfs2_stack_glue_unregister() [all …]
|
| /linux/Documentation/sound/designs/ |
| H A D | jack-injection.rst | 8 Here jack injection means users could inject plugin or plugout events 13 in this case, we could inject plugin or plugout events to an audio 28 change the state by hardware events anymore, we could inject plugin or 154 write-only, inject plugin or plugout 156 - to inject plugin:
|
| /linux/drivers/target/tcm_fc/ |
| H A D | Kconfig | 3 tristate "TCM_FC fabric Plugin" 6 Say Y here to enable the TCM FC plugin for accessing FC fabrics in TCM
|