Home
last modified time | relevance | path

Searched refs:plugin (Results 1 – 25 of 78) sorted by relevance

1234

/Linux-v5.4/sound/core/oss/
Dpcm_plugin.c49 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()
68 if (plugin->buf_frames < frames) { in snd_pcm_plugin_alloc()
69 kvfree(plugin->buf); in snd_pcm_plugin_alloc()
70 plugin->buf = kvzalloc(size, GFP_KERNEL); in snd_pcm_plugin_alloc()
71 plugin->buf_frames = frames; in snd_pcm_plugin_alloc()
73 if (!plugin->buf) { in snd_pcm_plugin_alloc()
74 plugin->buf_frames = 0; in snd_pcm_plugin_alloc()
[all …]
Dio.c37 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()
72 if (plugin->access == SNDRV_PCM_ACCESS_RW_INTERLEAVED) { in io_capture_transfer()
[all …]
Drate.c40 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
135 struct rate_priv *data = (struct rate_priv *)plugin->extra_data; in resample_shrink()
[all …]
Dmulaw.c141 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()
248 static snd_pcm_sframes_t mulaw_transfer(struct snd_pcm_plugin *plugin, in mulaw_transfer() argument
[all …]
Dcopy.c27 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()
Dlinear.c55 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()
110 convert(plugin, src_channels, dst_channels, frames); in linear_transfer()
154 struct snd_pcm_plugin *plugin; in snd_pcm_plugin_build_linear() local
170 sizeof(struct linear_priv), &plugin); in snd_pcm_plugin_build_linear()
[all …]
Droute.c47 static snd_pcm_sframes_t route_transfer(struct snd_pcm_plugin *plugin, in route_transfer() argument
56 if (snd_BUG_ON(!plugin || !src_channels || !dst_channels)) in route_transfer()
61 nsrcs = plugin->src_format.channels; in route_transfer()
62 ndsts = plugin->dst_format.channels; in route_transfer()
64 format = plugin->dst_format.format; in route_transfer()
90 struct snd_pcm_plugin *plugin; in snd_pcm_plugin_build_route() local
102 src_format, dst_format, 0, &plugin); in snd_pcm_plugin_build_route()
106 plugin->transfer = route_transfer; in snd_pcm_plugin_build_route()
107 *r_plugin = plugin; in snd_pcm_plugin_build_route()
Dpcm_plugin.h47 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,
/Linux-v5.4/scripts/
DMakefile.gcc-plugins3 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) \
22 gcc-plugin-cflags-$(CONFIG_GCC_PLUGIN_STRUCTLEAK) \
25 gcc-plugin-$(CONFIG_GCC_PLUGIN_RANDSTRUCT) += randomize_layout_plugin.so
[all …]
/Linux-v5.4/tools/lib/traceevent/
Devent-plugin.c30 char *plugin; member
157 char *plugin; in update_option() local
161 plugin = strdup(option->plugin_alias); in update_option()
162 if (!plugin) in update_option()
166 plugin = strdup(file); in update_option()
167 if (!plugin) in update_option()
169 p = strstr(plugin, "."); in update_option()
176 if (!op->plugin) in update_option()
178 if (strcmp(op->plugin, plugin) != 0) in update_option()
191 if (op->plugin) in update_option()
[all …]
/Linux-v5.4/Documentation/core-api/
Dgcc-plugins.rst2 GCC plugin infrastructure
14 The GCC plugin infrastructure of the kernel supports all gcc versions from
22 Currently the GCC plugin infrastructure supports only the x86, arm, arm64 and
50 **$(src)/scripts/gcc-plugin.sh**
70 You must install the gcc plugin headers for your gcc version,
73 apt-get install gcc-4.9-plugin-dev
75 Enable a GCC plugin based feature in the kernel config::
79 To compile only the plugin(s)::
84 the cyclomatic complexity GCC plugin.
87 4. How to add a new GCC plugin
[all …]
/Linux-v5.4/tools/testing/selftests/tc-testing/plugin-lib/
DREADME-PLUGINS6 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-v5.4/fs/ocfs2/
Dstackglue.c164 int ocfs2_stack_glue_register(struct ocfs2_stack_plugin *plugin) in ocfs2_stack_glue_register() argument
169 if (!ocfs2_stack_lookup(plugin->sp_name)) { in ocfs2_stack_glue_register()
170 plugin->sp_count = 0; in ocfs2_stack_glue_register()
171 plugin->sp_max_proto = locking_max_version; in ocfs2_stack_glue_register()
172 list_add(&plugin->sp_list, &ocfs2_stack_list); in ocfs2_stack_glue_register()
174 plugin->sp_name); in ocfs2_stack_glue_register()
178 plugin->sp_name); in ocfs2_stack_glue_register()
187 void ocfs2_stack_glue_unregister(struct ocfs2_stack_plugin *plugin) in ocfs2_stack_glue_unregister() argument
192 p = ocfs2_stack_lookup(plugin->sp_name); in ocfs2_stack_glue_unregister()
194 BUG_ON(p != plugin); in ocfs2_stack_glue_unregister()
[all …]
Dstackglue.h290 int ocfs2_stack_glue_register(struct ocfs2_stack_plugin *plugin);
291 void ocfs2_stack_glue_unregister(struct ocfs2_stack_plugin *plugin);
/Linux-v5.4/Documentation/ABI/testing/
Dsysfs-ocfs235 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-v5.4/scripts/gcc-plugins/
DKconfig2 preferred-plugin-hostcc := $(if-success,[ $(gcc-version) -ge 40800 ],$(HOSTCXX),$(HOSTCC))
6 …default "$(shell,$(srctree)/scripts/gcc-plugin.sh "$(preferred-plugin-hostcc)" "$(HOSTCXX)" "$(CC)…
9 $(HOSTCC), or a null string if GCC plugin is unsupported.
43 Enabling this plugin reports the complexity to stderr during the
45 gcc plugin for the kernel.
50 This plugin inserts a __sanitizer_cov_trace_pc() call at the start of
51 basic blocks. It supports all gcc versions with plugin support (from
68 This plugin was ported from grsecurity/PaX. More information at:
97 This plugin was ported from grsecurity/PaX. More information at:
/Linux-v5.4/tools/testing/selftests/tc-testing/creating-plugins/
DAddingPlugins.txt8 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-v5.4/tools/lib/traceevent/Documentation/
Dlibtraceevent-plugins.txt20 The _tep_load_plugins()_ function loads all plugins, located in the plugin
22 The plugin directories are :
25 - System's plugin directory, defined at the library compile time. It
29 - User's plugin directory, located at _~/.local/lib/traceevent/plugins_
36 the system's plugin directory.
Dlibtraceevent-set_flag.txt31 _TEP_DISABLE_SYS_PLUGINS_ - disable plugins, located in system's plugin
36 - in system's plugin directory
40 Note: plugin related flags must me set before calling _tep_load_plugins()_ API.
/Linux-v5.4/drivers/target/
DKconfig22 Say Y here to enable the TCM/IBLOCK subsystem plugin for non-buffered
28 Say Y here to enable the TCM/FILEIO subsystem plugin for buffered
35 Say Y here to enable the TCM/pSCSI subsystem plugin for non-buffered
42 Say Y here to enable the TCM/USER subsystem plugin for a userspace
/Linux-v5.4/tools/testing/selftests/tc-testing/
DREADME53 execution by root uid has been moved into a plugin (see PLUGIN
61 by the plugin.
175 There is now a plugin architecture, and some of the functionality that
178 The plugins are in the directory plugin-lib. The are executed from
179 directory plugins. Put symbolic links from plugins to plugin-lib,
181 necessary if a test case being run requires a specific plugin to work.
187 lrwxrwxrwx 1 bjb bjb 27 Oct 4 16:12 10-rootPlugin.py -> ../plugin-lib/rootPlugin.py
188 lrwxrwxrwx 1 bjb bjb 25 Oct 12 17:55 20-nsPlugin.py -> ../plugin-lib/nsPlugin.py
223 To write a plugin, you need to inherit from TdcPlugin in
224 TdcPlugin.py. To use the plugin, you have to put the
[all …]
DTODO.txt16 - 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-v5.4/security/
DKconfig.hardening12 flaws, this plugin is available to identify and zero-initialize
15 This plugin was originally ported from grsecurity/PaX. More
109 structleak plugin finds a variable it thinks needs to be
111 by the plugin, this can produce false positive warnings.
134 This plugin was ported from grsecurity/PaX. More information at:
144 The STACKLEAK gcc plugin instruments the kernel code for tracking
/Linux-v5.4/drivers/of/unittest-data/
Doverlay_3.dts3 /plugin/;
Doverlay_2.dts3 /plugin/;

1234