Searched refs:plugin (Results 1 - 49 of 49) sorted by relevance

/linux-4.4.14/sound/core/oss/
H A Dpcm_plugin.c49 static int snd_pcm_plugin_alloc(struct snd_pcm_plugin *plugin, snd_pcm_uframes_t frames) snd_pcm_plugin_alloc() argument
57 if (plugin->stream == SNDRV_PCM_STREAM_PLAYBACK) { snd_pcm_plugin_alloc()
58 format = &plugin->src_format; snd_pcm_plugin_alloc()
60 format = &plugin->dst_format; snd_pcm_plugin_alloc()
68 if (plugin->buf_frames < frames) { snd_pcm_plugin_alloc()
69 vfree(plugin->buf); snd_pcm_plugin_alloc()
70 plugin->buf = vmalloc(size); snd_pcm_plugin_alloc()
71 plugin->buf_frames = frames; snd_pcm_plugin_alloc()
73 if (!plugin->buf) { snd_pcm_plugin_alloc()
74 plugin->buf_frames = 0; snd_pcm_plugin_alloc()
77 c = plugin->buf_channels; snd_pcm_plugin_alloc()
78 if (plugin->access == SNDRV_PCM_ACCESS_RW_INTERLEAVED) { snd_pcm_plugin_alloc()
83 c->area.addr = plugin->buf; snd_pcm_plugin_alloc()
87 } else if (plugin->access == SNDRV_PCM_ACCESS_RW_NONINTERLEAVED) { snd_pcm_plugin_alloc()
95 c->area.addr = plugin->buf + (channel * size); snd_pcm_plugin_alloc()
110 struct snd_pcm_plugin *plugin = snd_pcm_plug_first(plug); snd_pcm_plug_alloc() local
111 while (plugin->next) { snd_pcm_plug_alloc()
112 if (plugin->dst_frames) snd_pcm_plug_alloc()
113 frames = plugin->dst_frames(plugin, frames); snd_pcm_plug_alloc()
116 plugin = plugin->next; snd_pcm_plug_alloc()
117 err = snd_pcm_plugin_alloc(plugin, frames); snd_pcm_plug_alloc()
122 struct snd_pcm_plugin *plugin = snd_pcm_plug_last(plug); snd_pcm_plug_alloc() local
123 while (plugin->prev) { snd_pcm_plug_alloc()
124 if (plugin->src_frames) snd_pcm_plug_alloc()
125 frames = plugin->src_frames(plugin, frames); snd_pcm_plug_alloc()
128 plugin = plugin->prev; snd_pcm_plug_alloc()
129 err = snd_pcm_plugin_alloc(plugin, frames); snd_pcm_plug_alloc()
138 snd_pcm_sframes_t snd_pcm_plugin_client_channels(struct snd_pcm_plugin *plugin, snd_pcm_plugin_client_channels() argument
142 *channels = plugin->buf_channels; snd_pcm_plugin_client_channels()
153 struct snd_pcm_plugin *plugin; snd_pcm_plugin_build() local
160 plugin = kzalloc(sizeof(*plugin) + extra, GFP_KERNEL); snd_pcm_plugin_build()
161 if (plugin == NULL) snd_pcm_plugin_build()
163 plugin->name = name; snd_pcm_plugin_build()
164 plugin->plug = plug; snd_pcm_plugin_build()
165 plugin->stream = snd_pcm_plug_stream(plug); snd_pcm_plugin_build()
166 plugin->access = SNDRV_PCM_ACCESS_RW_INTERLEAVED; snd_pcm_plugin_build()
167 plugin->src_format = *src_format; snd_pcm_plugin_build()
168 plugin->src_width = snd_pcm_format_physical_width(src_format->format); snd_pcm_plugin_build()
169 snd_BUG_ON(plugin->src_width <= 0); snd_pcm_plugin_build()
170 plugin->dst_format = *dst_format; snd_pcm_plugin_build()
171 plugin->dst_width = snd_pcm_format_physical_width(dst_format->format); snd_pcm_plugin_build()
172 snd_BUG_ON(plugin->dst_width <= 0); snd_pcm_plugin_build()
173 if (plugin->stream == SNDRV_PCM_STREAM_PLAYBACK) snd_pcm_plugin_build()
177 plugin->buf_channels = kcalloc(channels, sizeof(*plugin->buf_channels), GFP_KERNEL); snd_pcm_plugin_build()
178 if (plugin->buf_channels == NULL) { snd_pcm_plugin_build()
179 snd_pcm_plugin_free(plugin); snd_pcm_plugin_build()
182 plugin->client_channels = snd_pcm_plugin_client_channels; snd_pcm_plugin_build()
183 *ret = plugin; snd_pcm_plugin_build()
187 int snd_pcm_plugin_free(struct snd_pcm_plugin *plugin) snd_pcm_plugin_free() argument
189 if (! plugin) snd_pcm_plugin_free()
191 if (plugin->private_free) snd_pcm_plugin_free()
192 plugin->private_free(plugin); snd_pcm_plugin_free()
193 kfree(plugin->buf_channels); snd_pcm_plugin_free()
194 vfree(plugin->buf); snd_pcm_plugin_free()
195 kfree(plugin); snd_pcm_plugin_free()
201 struct snd_pcm_plugin *plugin, *plugin_prev, *plugin_next; snd_pcm_plug_client_size() local
210 plugin = snd_pcm_plug_last(plug); snd_pcm_plug_client_size()
211 while (plugin && drv_frames > 0) { snd_pcm_plug_client_size()
212 plugin_prev = plugin->prev; snd_pcm_plug_client_size()
213 if (plugin->src_frames) snd_pcm_plug_client_size()
214 drv_frames = plugin->src_frames(plugin, drv_frames); snd_pcm_plug_client_size()
215 plugin = plugin_prev; snd_pcm_plug_client_size()
218 plugin = snd_pcm_plug_first(plug); snd_pcm_plug_client_size()
219 while (plugin && drv_frames > 0) { snd_pcm_plug_client_size()
220 plugin_next = plugin->next; snd_pcm_plug_client_size()
221 if (plugin->dst_frames) snd_pcm_plug_client_size()
222 drv_frames = plugin->dst_frames(plugin, drv_frames); snd_pcm_plug_client_size()
223 plugin = plugin_next; snd_pcm_plug_client_size()
232 struct snd_pcm_plugin *plugin, *plugin_prev, *plugin_next; snd_pcm_plug_slave_size() local
243 plugin = snd_pcm_plug_first(plug); snd_pcm_plug_slave_size()
244 while (plugin && frames > 0) { snd_pcm_plug_slave_size()
245 plugin_next = plugin->next; snd_pcm_plug_slave_size()
246 if (plugin->dst_frames) { snd_pcm_plug_slave_size()
247 frames = plugin->dst_frames(plugin, frames); snd_pcm_plug_slave_size()
251 plugin = plugin_next; snd_pcm_plug_slave_size()
254 plugin = snd_pcm_plug_last(plug); snd_pcm_plug_slave_size()
255 while (plugin) { snd_pcm_plug_slave_size()
256 plugin_prev = plugin->prev; snd_pcm_plug_slave_size()
257 if (plugin->src_frames) { snd_pcm_plug_slave_size()
258 frames = plugin->src_frames(plugin, frames); snd_pcm_plug_slave_size()
262 plugin = plugin_prev; snd_pcm_plug_slave_size()
369 struct snd_pcm_plugin *plugin = NULL; snd_pcm_plug_format_plugins() local
421 &plugin); snd_pcm_plug_format_plugins()
424 err = snd_pcm_plugin_append(plugin); snd_pcm_plug_format_plugins()
426 snd_pcm_plugin_free(plugin); snd_pcm_plug_format_plugins()
436 err = snd_pcm_plugin_build_route(plug, &srcformat, &tmpformat, &plugin); snd_pcm_plug_format_plugins()
440 err = snd_pcm_plugin_append(plugin); snd_pcm_plug_format_plugins()
442 snd_pcm_plugin_free(plugin); snd_pcm_plug_format_plugins()
456 &plugin); snd_pcm_plug_format_plugins()
459 err = snd_pcm_plugin_append(plugin); snd_pcm_plug_format_plugins()
461 snd_pcm_plugin_free(plugin); snd_pcm_plug_format_plugins()
470 &plugin); snd_pcm_plug_format_plugins()
474 err = snd_pcm_plugin_append(plugin); snd_pcm_plug_format_plugins()
476 snd_pcm_plugin_free(plugin); snd_pcm_plug_format_plugins()
490 &plugin); snd_pcm_plug_format_plugins()
496 &plugin); snd_pcm_plug_format_plugins()
503 err = snd_pcm_plugin_append(plugin); snd_pcm_plug_format_plugins()
505 snd_pcm_plugin_free(plugin); snd_pcm_plug_format_plugins()
515 err = snd_pcm_plugin_build_route(plug, &srcformat, &tmpformat, &plugin); snd_pcm_plug_format_plugins()
519 err = snd_pcm_plugin_append(plugin); snd_pcm_plug_format_plugins()
521 snd_pcm_plugin_free(plugin); snd_pcm_plug_format_plugins()
533 &plugin); snd_pcm_plug_format_plugins()
537 err = snd_pcm_plugin_append(plugin); snd_pcm_plug_format_plugins()
539 snd_pcm_plugin_free(plugin); snd_pcm_plug_format_plugins()
552 struct snd_pcm_plugin *plugin; snd_pcm_plug_client_channels_buf() local
561 plugin = snd_pcm_plug_first(plug); snd_pcm_plug_client_channels_buf()
562 format = &plugin->src_format; snd_pcm_plug_client_channels_buf()
564 plugin = snd_pcm_plug_last(plug); snd_pcm_plug_client_channels_buf()
565 format = &plugin->dst_format; snd_pcm_plug_client_channels_buf()
567 v = plugin->buf_channels; snd_pcm_plug_client_channels_buf()
572 if (snd_BUG_ON(plugin->access != SNDRV_PCM_ACCESS_RW_INTERLEAVED && snd_pcm_plug_client_channels_buf()
588 struct snd_pcm_plugin *plugin, *next; snd_pcm_plug_write_transfer() local
593 plugin = snd_pcm_plug_first(plug); snd_pcm_plug_write_transfer()
594 while (plugin && frames > 0) { snd_pcm_plug_write_transfer()
595 if ((next = plugin->next) != NULL) { snd_pcm_plug_write_transfer()
597 if (plugin->dst_frames) snd_pcm_plug_write_transfer()
598 frames1 = plugin->dst_frames(plugin, frames); snd_pcm_plug_write_transfer()
604 if (plugin->src_frames) snd_pcm_plug_write_transfer()
605 frames = plugin->src_frames(plugin, frames1); snd_pcm_plug_write_transfer()
609 pdprintf("write plugin: %s, %li\n", plugin->name, frames); snd_pcm_plug_write_transfer()
610 if ((frames = plugin->transfer(plugin, src_channels, dst_channels, frames)) < 0) snd_pcm_plug_write_transfer()
613 plugin = next; snd_pcm_plug_write_transfer()
620 struct snd_pcm_plugin *plugin, *next; snd_pcm_plug_read_transfer() local
630 plugin = snd_pcm_plug_first(plug); snd_pcm_plug_read_transfer()
631 while (plugin && frames > 0) { snd_pcm_plug_read_transfer()
632 if ((next = plugin->next) != NULL) { snd_pcm_plug_read_transfer()
633 if ((err = plugin->client_channels(plugin, frames, &dst_channels)) < 0) { snd_pcm_plug_read_transfer()
640 pdprintf("read plugin: %s, %li\n", plugin->name, frames); snd_pcm_plug_read_transfer()
641 if ((frames = plugin->transfer(plugin, src_channels, dst_channels, frames)) < 0) snd_pcm_plug_read_transfer()
643 plugin = next; snd_pcm_plug_read_transfer()
H A Dio.c34 * Basic io plugin
37 static snd_pcm_sframes_t io_playback_transfer(struct snd_pcm_plugin *plugin, io_playback_transfer() argument
42 if (snd_BUG_ON(!plugin)) io_playback_transfer()
46 if (plugin->access == SNDRV_PCM_ACCESS_RW_INTERLEAVED) { io_playback_transfer()
47 return pcm_write(plugin->plug, src_channels->area.addr, frames); io_playback_transfer()
49 int channel, channels = plugin->dst_format.channels; io_playback_transfer()
50 void **bufs = (void**)plugin->extra_data; io_playback_transfer()
59 return pcm_writev(plugin->plug, bufs, frames); io_playback_transfer()
63 static snd_pcm_sframes_t io_capture_transfer(struct snd_pcm_plugin *plugin, io_capture_transfer() argument
68 if (snd_BUG_ON(!plugin)) io_capture_transfer()
72 if (plugin->access == SNDRV_PCM_ACCESS_RW_INTERLEAVED) { io_capture_transfer()
73 return pcm_read(plugin->plug, dst_channels->area.addr, frames); io_capture_transfer()
75 int channel, channels = plugin->dst_format.channels; io_capture_transfer()
76 void **bufs = (void**)plugin->extra_data; io_capture_transfer()
85 return pcm_readv(plugin->plug, bufs, frames); io_capture_transfer()
90 static snd_pcm_sframes_t io_src_channels(struct snd_pcm_plugin *plugin, io_src_channels() argument
97 err = snd_pcm_plugin_client_channels(plugin, frames, &v); io_src_channels()
101 if (plugin->access == SNDRV_PCM_ACCESS_RW_INTERLEAVED) { io_src_channels()
102 for (channel = 0; channel < plugin->src_format.channels; ++channel, ++v) io_src_channels()
114 struct snd_pcm_plugin *plugin; snd_pcm_plugin_build_io() local
127 &plugin); snd_pcm_plugin_build_io()
130 plugin->access = params_access(params); snd_pcm_plugin_build_io()
132 plugin->transfer = io_playback_transfer; snd_pcm_plugin_build_io()
133 if (plugin->access == SNDRV_PCM_ACCESS_RW_INTERLEAVED) snd_pcm_plugin_build_io()
134 plugin->client_channels = io_src_channels; snd_pcm_plugin_build_io()
136 plugin->transfer = io_capture_transfer; snd_pcm_plugin_build_io()
139 *r_plugin = plugin; snd_pcm_plugin_build_io()
H A Drate.c32 * Basic rate conversion plugin
40 typedef void (*rate_f)(struct snd_pcm_plugin *plugin,
53 static void rate_init(struct snd_pcm_plugin *plugin) rate_init() argument
56 struct rate_priv *data = (struct rate_priv *)plugin->extra_data; rate_init()
58 for (channel = 0; channel < plugin->src_format.channels; channel++) { rate_init()
64 static void resample_expand(struct snd_pcm_plugin *plugin, resample_expand() argument
76 struct rate_priv *data = (struct rate_priv *)plugin->extra_data; resample_expand()
79 for (channel = 0; channel < plugin->src_format.channels; channel++) { resample_expand()
85 snd_pcm_area_silence(&dst_channels[channel].area, 0, dst_frames, plugin->dst_format.format); resample_expand()
123 static void resample_shrink(struct snd_pcm_plugin *plugin, resample_shrink() argument
135 struct rate_priv *data = (struct rate_priv *)plugin->extra_data; resample_shrink()
138 for (channel = 0; channel < plugin->src_format.channels; ++channel) { resample_shrink()
144 snd_pcm_area_silence(&dst_channels[channel].area, 0, dst_frames, plugin->dst_format.format); resample_shrink()
183 static snd_pcm_sframes_t rate_src_frames(struct snd_pcm_plugin *plugin, snd_pcm_uframes_t frames) rate_src_frames() argument
188 if (snd_BUG_ON(!plugin)) rate_src_frames()
192 data = (struct rate_priv *)plugin->extra_data; rate_src_frames()
193 if (plugin->src_format.rate < plugin->dst_format.rate) { rate_src_frames()
216 static snd_pcm_sframes_t rate_dst_frames(struct snd_pcm_plugin *plugin, snd_pcm_uframes_t frames) rate_dst_frames() argument
221 if (snd_BUG_ON(!plugin)) rate_dst_frames()
225 data = (struct rate_priv *)plugin->extra_data; rate_dst_frames()
226 if (plugin->src_format.rate < plugin->dst_format.rate) { rate_dst_frames()
249 static snd_pcm_sframes_t rate_transfer(struct snd_pcm_plugin *plugin, rate_transfer() argument
257 if (snd_BUG_ON(!plugin || !src_channels || !dst_channels)) rate_transfer()
264 for (channel = 0; channel < plugin->src_format.channels; channel++) { rate_transfer()
275 dst_frames = rate_dst_frames(plugin, frames); rate_transfer()
278 data = (struct rate_priv *)plugin->extra_data; rate_transfer()
279 data->func(plugin, src_channels, dst_channels, frames, dst_frames); rate_transfer()
283 static int rate_action(struct snd_pcm_plugin *plugin, rate_action() argument
287 if (snd_BUG_ON(!plugin)) rate_action()
292 rate_init(plugin); rate_action()
307 struct snd_pcm_plugin *plugin; snd_pcm_plugin_build_rate() local
328 &plugin); snd_pcm_plugin_build_rate()
331 data = (struct rate_priv *)plugin->extra_data; snd_pcm_plugin_build_rate()
340 rate_init(plugin); snd_pcm_plugin_build_rate()
342 plugin->transfer = rate_transfer; snd_pcm_plugin_build_rate()
343 plugin->src_frames = rate_src_frames; snd_pcm_plugin_build_rate()
344 plugin->dst_frames = rate_dst_frames; snd_pcm_plugin_build_rate()
345 plugin->action = rate_action; snd_pcm_plugin_build_rate()
346 *r_plugin = plugin; snd_pcm_plugin_build_rate()
H A Dcopy.c27 static snd_pcm_sframes_t copy_transfer(struct snd_pcm_plugin *plugin, copy_transfer() argument
35 if (snd_BUG_ON(!plugin || !src_channels || !dst_channels)) copy_transfer()
39 nchannels = plugin->src_format.channels; copy_transfer()
49 snd_pcm_area_silence(&dst_channels->area, 0, frames, plugin->dst_format.format); copy_transfer()
54 snd_pcm_area_copy(&src_channels->area, 0, &dst_channels->area, 0, frames, plugin->src_format.format); copy_transfer()
67 struct snd_pcm_plugin *plugin; snd_pcm_plugin_build_copy() local
86 0, &plugin); snd_pcm_plugin_build_copy()
89 plugin->transfer = copy_transfer; snd_pcm_plugin_build_copy()
90 *r_plugin = plugin; snd_pcm_plugin_build_copy()
H A Dlinear.c29 * Basic linear conversion plugin
55 static void convert(struct snd_pcm_plugin *plugin, convert() argument
60 struct linear_priv *data = (struct linear_priv *)plugin->extra_data; convert()
62 int nchannels = plugin->src_format.channels; convert()
70 snd_pcm_area_silence(&dst_channels[channel].area, 0, frames, plugin->dst_format.format); convert()
88 static snd_pcm_sframes_t linear_transfer(struct snd_pcm_plugin *plugin, linear_transfer() argument
93 if (snd_BUG_ON(!plugin || !src_channels || !dst_channels)) linear_transfer()
100 for (channel = 0; channel < plugin->src_format.channels; channel++) { linear_transfer()
110 convert(plugin, src_channels, dst_channels, frames); linear_transfer()
154 struct snd_pcm_plugin *plugin; snd_pcm_plugin_build_linear() local
170 sizeof(struct linear_priv), &plugin); snd_pcm_plugin_build_linear()
173 data = (struct linear_priv *)plugin->extra_data; snd_pcm_plugin_build_linear()
175 plugin->transfer = linear_transfer; snd_pcm_plugin_build_linear()
176 *r_plugin = plugin; snd_pcm_plugin_build_linear()
H A Droute.c47 static snd_pcm_sframes_t route_transfer(struct snd_pcm_plugin *plugin, route_transfer() argument
56 if (snd_BUG_ON(!plugin || !src_channels || !dst_channels)) route_transfer()
61 nsrcs = plugin->src_format.channels; route_transfer()
62 ndsts = plugin->dst_format.channels; route_transfer()
64 format = plugin->dst_format.format; route_transfer()
90 struct snd_pcm_plugin *plugin; snd_pcm_plugin_build_route() local
102 src_format, dst_format, 0, &plugin); snd_pcm_plugin_build_route()
106 plugin->transfer = route_transfer; snd_pcm_plugin_build_route()
107 *r_plugin = plugin; snd_pcm_plugin_build_route()
H A 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,
180 #define pdprintf(fmt, args...) printk(KERN_DEBUG "plugin: " fmt, ##args)
H A Dmulaw.c138 * Basic Mu-Law plugin
141 typedef void (*mulaw_f)(struct snd_pcm_plugin *plugin,
168 static void mulaw_decode(struct snd_pcm_plugin *plugin, mulaw_decode() argument
173 struct mulaw_priv *data = (struct mulaw_priv *)plugin->extra_data; mulaw_decode()
175 int nchannels = plugin->src_format.channels; mulaw_decode()
183 snd_pcm_area_silence(&dst_channels[channel].area, 0, frames, plugin->dst_format.format); mulaw_decode()
214 static void mulaw_encode(struct snd_pcm_plugin *plugin, mulaw_encode() argument
219 struct mulaw_priv *data = (struct mulaw_priv *)plugin->extra_data; mulaw_encode()
221 int nchannels = plugin->src_format.channels; mulaw_encode()
229 snd_pcm_area_silence(&dst_channels[channel].area, 0, frames, plugin->dst_format.format); mulaw_encode()
248 static snd_pcm_sframes_t mulaw_transfer(struct snd_pcm_plugin *plugin, mulaw_transfer() argument
255 if (snd_BUG_ON(!plugin || !src_channels || !dst_channels)) mulaw_transfer()
262 for (channel = 0; channel < plugin->src_format.channels; channel++) { mulaw_transfer()
272 data = (struct mulaw_priv *)plugin->extra_data; mulaw_transfer()
273 data->func(plugin, src_channels, dst_channels, frames); mulaw_transfer()
305 struct snd_pcm_plugin *plugin; snd_pcm_plugin_build_mulaw() local
335 sizeof(struct mulaw_priv), &plugin); snd_pcm_plugin_build_mulaw()
338 data = (struct mulaw_priv *)plugin->extra_data; snd_pcm_plugin_build_mulaw()
341 plugin->transfer = mulaw_transfer; snd_pcm_plugin_build_mulaw()
342 *r_plugin = plugin; snd_pcm_plugin_build_mulaw()
H A Dpcm_oss.c561 * plugin
568 struct snd_pcm_plugin *plugin, *next; snd_pcm_oss_plugin_clear() local
570 plugin = runtime->oss.plugin_first; snd_pcm_oss_plugin_clear()
571 while (plugin) { snd_pcm_oss_plugin_clear()
572 next = plugin->next; snd_pcm_oss_plugin_clear()
573 snd_pcm_plugin_free(plugin); snd_pcm_oss_plugin_clear()
574 plugin = next; snd_pcm_oss_plugin_clear()
580 static int snd_pcm_plugin_insert(struct snd_pcm_plugin *plugin) snd_pcm_plugin_insert() argument
582 struct snd_pcm_runtime *runtime = plugin->plug->runtime; snd_pcm_plugin_insert()
583 plugin->next = runtime->oss.plugin_first; snd_pcm_plugin_insert()
584 plugin->prev = NULL; snd_pcm_plugin_insert()
586 runtime->oss.plugin_first->prev = plugin; snd_pcm_plugin_insert()
587 runtime->oss.plugin_first = plugin; snd_pcm_plugin_insert()
590 runtime->oss.plugin_first = plugin; snd_pcm_plugin_insert()
595 int snd_pcm_plugin_append(struct snd_pcm_plugin *plugin) snd_pcm_plugin_append() argument
597 struct snd_pcm_runtime *runtime = plugin->plug->runtime; snd_pcm_plugin_append()
598 plugin->next = NULL; snd_pcm_plugin_append()
599 plugin->prev = runtime->oss.plugin_last; snd_pcm_plugin_append()
601 runtime->oss.plugin_last->next = plugin; snd_pcm_plugin_append()
602 runtime->oss.plugin_last = plugin; snd_pcm_plugin_append()
605 runtime->oss.plugin_first = plugin; snd_pcm_plugin_append()
954 struct snd_pcm_plugin *plugin; snd_pcm_oss_change_params() local
955 if ((err = snd_pcm_plugin_build_io(substream, sparams, &plugin)) < 0) { snd_pcm_oss_change_params()
962 err = snd_pcm_plugin_append(plugin); snd_pcm_oss_change_params()
964 err = snd_pcm_plugin_insert(plugin); snd_pcm_oss_change_params()
/linux-4.4.14/tools/lib/traceevent/
H A Devent-plugin.c42 char *plugin; member in struct:trace_plugin_options
100 * traceevent_plugin_list_options - get list of plugin options
103 * plugin options in the format of <plugin>:<option>. This list can be
169 char *plugin; update_option() local
173 plugin = strdup(option->plugin_alias); update_option()
174 if (!plugin) update_option()
178 plugin = strdup(file); update_option()
179 if (!plugin) update_option()
181 p = strstr(plugin, "."); update_option()
188 if (!op->plugin) update_option()
190 if (strcmp(op->plugin, plugin) != 0) update_option()
203 if (op->plugin) update_option()
213 free(plugin); update_option()
218 * traceevent_plugin_add_options - Add a set of options by a plugin
219 * @name: The name of the plugin adding the options
244 * traceevent_plugin_remove_options - remove plugin options that were registered
291 char *plugin; load_plugin() local
294 plugin = malloc(strlen(path) + strlen(file) + 2); load_plugin()
295 if (!plugin) { load_plugin()
296 warning("could not allocate plugin memory\n"); load_plugin()
300 strcpy(plugin, path); load_plugin()
301 strcat(plugin, "/"); load_plugin()
302 strcat(plugin, file); load_plugin()
304 handle = dlopen(plugin, RTLD_NOW | RTLD_GLOBAL); load_plugin()
306 warning("could not load plugin '%s'\n%s\n", load_plugin()
307 plugin, dlerror()); load_plugin()
317 warning("could not find func '%s' in plugin '%s'\n%s\n", load_plugin()
318 PEVENT_PLUGIN_LOADER_NAME, plugin, dlerror()); load_plugin()
324 warning("could not allocate plugin memory\n"); load_plugin()
330 list->name = plugin; load_plugin()
333 pr_stat("registering plugin: %s", plugin); load_plugin()
338 free(plugin); load_plugin()
399 * If a system plugin directory was defined, load_plugins()
409 * Next let the environment-set plugin directory load_plugins()
426 warning("could not allocate plugin memory\n"); load_plugins()
H A Dplugin_function.c74 warning("could not allocate plugin memory\n"); add_child()
100 warning("could not allocate plugin memory\n"); add_and_get_index()
H A DMakefile55 # Set plugin_dir to preffered global plugin location
247 for plugin in $1; do \
248 $(call do_install,$$plugin,$(plugin_dir_SQ)); \
H A Devent-parse.h128 * The function name to initialized the plugin.
155 * the vairable. Useful if a plugin handles more than one event.
H A Devent-parse.c6301 * This allows a plugin to dynamically create a way to process one
/linux-4.4.14/fs/ocfs2/
H A Dstackglue.c172 int ocfs2_stack_glue_register(struct ocfs2_stack_plugin *plugin) ocfs2_stack_glue_register() argument
177 if (!ocfs2_stack_lookup(plugin->sp_name)) { ocfs2_stack_glue_register()
178 plugin->sp_count = 0; ocfs2_stack_glue_register()
179 plugin->sp_max_proto = locking_max_version; ocfs2_stack_glue_register()
180 list_add(&plugin->sp_list, &ocfs2_stack_list); ocfs2_stack_glue_register()
182 plugin->sp_name); ocfs2_stack_glue_register()
186 plugin->sp_name); ocfs2_stack_glue_register()
195 void ocfs2_stack_glue_unregister(struct ocfs2_stack_plugin *plugin) ocfs2_stack_glue_unregister() argument
200 p = ocfs2_stack_lookup(plugin->sp_name); ocfs2_stack_glue_unregister()
202 BUG_ON(p != plugin); ocfs2_stack_glue_unregister()
203 BUG_ON(plugin == active_stack); ocfs2_stack_glue_unregister()
204 BUG_ON(plugin->sp_count != 0); ocfs2_stack_glue_unregister()
205 list_del_init(&plugin->sp_list); ocfs2_stack_glue_unregister()
207 plugin->sp_name); ocfs2_stack_glue_unregister()
210 plugin->sp_name); ocfs2_stack_glue_unregister()
H A Dstackglue.h230 * Each stack plugin must describe itself by registering a
298 int ocfs2_stack_glue_register(struct ocfs2_stack_plugin *plugin);
299 void ocfs2_stack_glue_unregister(struct ocfs2_stack_plugin *plugin);
/linux-4.4.14/arch/m68k/sun3/prom/
H A Dmisc.c82 /* Get the prom plugin-revision. */
/linux-4.4.14/include/uapi/drm/
H A Domap_drm.h104 /* placeholder for plugin-api
115 /* placeholder for plugin-api
/linux-4.4.14/drivers/media/dvb-frontends/
H A Drtl2832_sdr.h20 * GNU Radio plugin "gr-kernel" for device usage will be on:
H A Drtl2832_sdr.c20 * GNU Radio plugin "gr-kernel" for device usage will be on:
/linux-4.4.14/arch/sparc/prom/
H A Dmisc_32.c115 /* Get the prom plugin-revision. */
/linux-4.4.14/drivers/target/
H A Dtarget_core_hba.c73 pr_debug("TCM: Registered subsystem plugin: %s struct module: %p\n", transport_backend_register()
H A Dtarget_core_pscsi.c4 * This file contains the generic target mode <-> Linux SCSI subsystem plugin.
1155 MODULE_DESCRIPTION("TCM PSCSI subsystem plugin");
H A Dtarget_core_configfs.c1085 * If Linux/SCSI subsystem_api_t plugin got a VPD Unit Serial target_wwn_vpd_unit_serial_store()
2935 return sprintf(page, "HBA Index: %d plugin: %s version: %s\n", target_hba_info_show()
3042 str2++; /* Skip to start of plugin dependent ID */ target_core_call_addhbatotarget()
3046 str++; /* Skip to start of plugin dependent ID */ target_core_call_addhbatotarget()
H A Dtarget_core_file.c839 MODULE_DESCRIPTION("TCM FILEIO subsystem plugin");
H A Dtarget_core_iblock.c841 MODULE_DESCRIPTION("TCM IBLOCK subsystem plugin");
H A Dtarget_core_user.c1167 MODULE_DESCRIPTION("TCM USER subsystem plugin");
H A Dtarget_core_transport.c1151 " plugin: %s\n", dev->transport->name); target_cmd_size_check()
/linux-4.4.14/drivers/md/
H A Ddm-cache-policy-cleaner.c389 /* Init the policy plugin interface function pointers. */ init_policy_functions()
H A Ddm-cache-policy-mq.c1353 /* Init the policy plugin interface function pointers. */ init_policy_functions()
H A Ddm-cache-policy-smq.c1570 /* Init the policy plugin interface function pointers. */ init_policy_functions()
/linux-4.4.14/arch/sparc/include/asm/
H A Doplib_32.h87 /* Get the prom plugin revision. */
/linux-4.4.14/net/netfilter/
H A Dxt_IDLETIMER.c166 * The actual xt_tables plugin.
/linux-4.4.14/include/net/
H A Dcodel.h90 /* Qdiscs using codel plugin must use codel_skb_cb in their own cb[] */
/linux-4.4.14/arch/m68k/include/asm/
H A Doplib.h130 /* Get the prom plugin revision. */
/linux-4.4.14/drivers/net/arcnet/
H A Darcdevice.h199 int is_ip; /* This is a ip plugin - not a raw thing */
/linux-4.4.14/drivers/net/wireless/orinoco/
H A Dhermes_dld.c7 * - provide helpers to identify and update plugin data
/linux-4.4.14/sound/pci/asihpi/
H A Dhpi.h647 /** Used by mixer plugin enable functions
653 HPI_SWITCH_OFF = 0, /**< turn the mixer plugin on. */
654 HPI_SWITCH_ON = 1 /**< turn the mixer plugin off. */
/linux-4.4.14/drivers/gpu/drm/bridge/
H A Ddw_hdmi.c1387 /* Store the display mode for plugin/DKMS poweron events */ dw_hdmi_bridge_mode_set()
1611 phy_int_pol & HDMI_PHY_HPD ? "plugin" : "plugout"); dw_hdmi_irq()
/linux-4.4.14/drivers/usb/atm/
H A Dusbatm.c32 * - Module now autoloads on device plugin
/linux-4.4.14/fs/reiserfs/
H A Dxattr.c748 /* This is the implementation for the xattr plugin infrastructure */
/linux-4.4.14/sound/pci/hda/
H A Dpatch_via.c35 /* 2008-04-09 Lydia Wang Add mute front speaker when HP plugin */
/linux-4.4.14/drivers/usb/phy/
H A Dphy-msm-usb.c635 dev_err(phy->dev, "Unable to resume USB. Re-plugin the cable\n"); msm_otg_resume()
/linux-4.4.14/net/l2tp/
H A Dl2tp_ppp.c55 * A pppd plugin that allows PPP traffic to be carried over L2TP using
/linux-4.4.14/drivers/scsi/mvsas/
H A Dmv_sas.c2050 mv_dprintk("plugin interrupt but phy%d is gone\n", mvs_int_port()
/linux-4.4.14/include/uapi/linux/
H A Dethtool.h324 * struct ethtool_modinfo - plugin module eeprom information
/linux-4.4.14/drivers/i2c/
H A Di2c-core.c1659 * dynamically added by USB links or PCI plugin cards.
/linux-4.4.14/sound/oss/
H A Dswarm_cs4297a.c45 * 10/03/00 trw - fixed mmap (fixed GRECORD and the XMMS mmap test plugin
/linux-4.4.14/kernel/trace/
H A Dtrace.c1226 * @type - the plugin for the tracer
1228 * Register a new plugin tracer.

Completed in 1428 milliseconds