Home
last modified time | relevance | path

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

123

/Linux-v4.19/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 vfree(plugin->buf); in snd_pcm_plugin_alloc()
70 plugin->buf = vmalloc(size); 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.h62 snd_pcm_sframes_t (*src_frames)(struct snd_pcm_plugin *plugin, snd_pcm_uframes_t dst_frames);
63 snd_pcm_sframes_t (*dst_frames)(struct snd_pcm_plugin *plugin, snd_pcm_uframes_t src_frames);
64 snd_pcm_sframes_t (*client_channels)(struct snd_pcm_plugin *plugin,
67 snd_pcm_sframes_t (*transfer)(struct snd_pcm_plugin *plugin,
71 int (*action)(struct snd_pcm_plugin *plugin,
78 void (*private_free)(struct snd_pcm_plugin *plugin);
91 int snd_pcm_plugin_free(struct snd_pcm_plugin *plugin);
131 int snd_pcm_plugin_append(struct snd_pcm_plugin *plugin);
144 snd_pcm_sframes_t snd_pcm_plugin_client_channels(struct snd_pcm_plugin *plugin,
/Linux-v4.19/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_ALL) \
20 gcc-plugin-cflags-$(CONFIG_GCC_PLUGIN_STRUCTLEAK) \
23 gcc-plugin-$(CONFIG_GCC_PLUGIN_RANDSTRUCT) += randomize_layout_plugin.so
24 gcc-plugin-cflags-$(CONFIG_GCC_PLUGIN_RANDSTRUCT) \
[all …]
/Linux-v4.19/tools/lib/traceevent/
Devent-plugin.c28 char *plugin; member
155 char *plugin; in update_option() local
159 plugin = strdup(option->plugin_alias); in update_option()
160 if (!plugin) in update_option()
164 plugin = strdup(file); in update_option()
165 if (!plugin) in update_option()
167 p = strstr(plugin, "."); in update_option()
174 if (!op->plugin) in update_option()
176 if (strcmp(op->plugin, plugin) != 0) in update_option()
189 if (op->plugin) in update_option()
[all …]
/Linux-v4.19/Documentation/
Dgcc-plugins.txt2 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-v4.19/scripts/gcc-plugins/
DKconfig1 preferred-plugin-hostcc := $(if-success,[ $(gcc-version) -ge 40800 ],$(HOSTCXX),$(HOSTCC))
5 …default "$(shell,$(srctree)/scripts/gcc-plugin.sh "$(preferred-plugin-hostcc)" "$(HOSTCXX)" "$(CC)…
8 $(HOSTCC), or a null string if GCC plugin is unsupported.
40 Enabling this plugin reports the complexity to stderr during the
42 gcc plugin for the kernel.
47 This plugin inserts a __sanitizer_cov_trace_pc() call at the start of
48 basic blocks. It supports all gcc versions with plugin support (from
65 This plugin was ported from grsecurity/PaX. More information at:
76 This plugin zero-initializes any structures containing a
80 This plugin was ported from grsecurity/PaX. More information at:
[all …]
/Linux-v4.19/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-v4.19/fs/ocfs2/
Dstackglue.c178 int ocfs2_stack_glue_register(struct ocfs2_stack_plugin *plugin) in ocfs2_stack_glue_register() argument
183 if (!ocfs2_stack_lookup(plugin->sp_name)) { in ocfs2_stack_glue_register()
184 plugin->sp_count = 0; in ocfs2_stack_glue_register()
185 plugin->sp_max_proto = locking_max_version; in ocfs2_stack_glue_register()
186 list_add(&plugin->sp_list, &ocfs2_stack_list); in ocfs2_stack_glue_register()
188 plugin->sp_name); in ocfs2_stack_glue_register()
192 plugin->sp_name); in ocfs2_stack_glue_register()
201 void ocfs2_stack_glue_unregister(struct ocfs2_stack_plugin *plugin) in ocfs2_stack_glue_unregister() argument
206 p = ocfs2_stack_lookup(plugin->sp_name); in ocfs2_stack_glue_unregister()
208 BUG_ON(p != plugin); in ocfs2_stack_glue_unregister()
[all …]
Dstackglue.h298 int ocfs2_stack_glue_register(struct ocfs2_stack_plugin *plugin);
299 void ocfs2_stack_glue_unregister(struct ocfs2_stack_plugin *plugin);
/Linux-v4.19/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-v4.19/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-v4.19/drivers/target/
DKconfig21 Say Y here to enable the TCM/IBLOCK subsystem plugin for non-buffered
27 Say Y here to enable the TCM/FILEIO subsystem plugin for buffered
34 Say Y here to enable the TCM/pSCSI subsystem plugin for non-buffered
41 Say Y here to enable the TCM/USER subsystem plugin for a userspace
/Linux-v4.19/tools/testing/selftests/tc-testing/
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
DREADME53 execution by root uid has been moved into a plugin (see PLUGIN
169 There is now a plugin architecture, and some of the functionality that
172 The plugins are in the directory plugin-lib. The are executed from
173 directory plugins. Put symbolic links from plugins to plugin-lib,
180 lrwxrwxrwx 1 bjb bjb 27 Oct 4 16:12 10-rootPlugin.py -> ../plugin-lib/rootPlugin.py
181 lrwxrwxrwx 1 bjb bjb 25 Oct 12 17:55 20-nsPlugin.py -> ../plugin-lib/nsPlugin.py
216 To write a plugin, you need to inherit from TdcPlugin in
217 TdcPlugin.py. To use the plugin, you have to put the
218 implementation file in plugin-lib, and add a symbolic link to it from
220 appropriate times. There are a few examples in the plugin-lib
[all …]
/Linux-v4.19/drivers/of/unittest-data/
Doverlay_2.dts3 /plugin/;
Doverlay_3.dts3 /plugin/;
Doverlay_5.dts3 /plugin/;
Doverlay_6.dts3 /plugin/;
Doverlay_7.dts3 /plugin/;

123