plugin 164 fs/ocfs2/stackglue.c int ocfs2_stack_glue_register(struct ocfs2_stack_plugin *plugin) plugin 169 fs/ocfs2/stackglue.c if (!ocfs2_stack_lookup(plugin->sp_name)) { plugin 170 fs/ocfs2/stackglue.c plugin->sp_count = 0; plugin 171 fs/ocfs2/stackglue.c plugin->sp_max_proto = locking_max_version; plugin 172 fs/ocfs2/stackglue.c list_add(&plugin->sp_list, &ocfs2_stack_list); plugin 174 fs/ocfs2/stackglue.c plugin->sp_name); plugin 178 fs/ocfs2/stackglue.c plugin->sp_name); plugin 187 fs/ocfs2/stackglue.c void ocfs2_stack_glue_unregister(struct ocfs2_stack_plugin *plugin) plugin 192 fs/ocfs2/stackglue.c p = ocfs2_stack_lookup(plugin->sp_name); plugin 194 fs/ocfs2/stackglue.c BUG_ON(p != plugin); plugin 195 fs/ocfs2/stackglue.c BUG_ON(plugin == active_stack); plugin 196 fs/ocfs2/stackglue.c BUG_ON(plugin->sp_count != 0); plugin 197 fs/ocfs2/stackglue.c list_del_init(&plugin->sp_list); plugin 199 fs/ocfs2/stackglue.c plugin->sp_name); plugin 202 fs/ocfs2/stackglue.c plugin->sp_name); plugin 290 fs/ocfs2/stackglue.h int ocfs2_stack_glue_register(struct ocfs2_stack_plugin *plugin); plugin 291 fs/ocfs2/stackglue.h void ocfs2_stack_glue_unregister(struct ocfs2_stack_plugin *plugin); plugin 27 sound/core/oss/copy.c static snd_pcm_sframes_t copy_transfer(struct snd_pcm_plugin *plugin, plugin 35 sound/core/oss/copy.c if (snd_BUG_ON(!plugin || !src_channels || !dst_channels)) plugin 39 sound/core/oss/copy.c nchannels = plugin->src_format.channels; plugin 49 sound/core/oss/copy.c snd_pcm_area_silence(&dst_channels->area, 0, frames, plugin->dst_format.format); plugin 54 sound/core/oss/copy.c snd_pcm_area_copy(&src_channels->area, 0, &dst_channels->area, 0, frames, plugin->src_format.format); plugin 67 sound/core/oss/copy.c struct snd_pcm_plugin *plugin; plugin 86 sound/core/oss/copy.c 0, &plugin); plugin 89 sound/core/oss/copy.c plugin->transfer = copy_transfer; plugin 90 sound/core/oss/copy.c *r_plugin = plugin; plugin 37 sound/core/oss/io.c static snd_pcm_sframes_t io_playback_transfer(struct snd_pcm_plugin *plugin, plugin 42 sound/core/oss/io.c if (snd_BUG_ON(!plugin)) plugin 46 sound/core/oss/io.c if (plugin->access == SNDRV_PCM_ACCESS_RW_INTERLEAVED) { plugin 47 sound/core/oss/io.c return pcm_write(plugin->plug, src_channels->area.addr, frames); plugin 49 sound/core/oss/io.c int channel, channels = plugin->dst_format.channels; plugin 50 sound/core/oss/io.c void **bufs = (void**)plugin->extra_data; plugin 59 sound/core/oss/io.c return pcm_writev(plugin->plug, bufs, frames); plugin 63 sound/core/oss/io.c static snd_pcm_sframes_t io_capture_transfer(struct snd_pcm_plugin *plugin, plugin 68 sound/core/oss/io.c if (snd_BUG_ON(!plugin)) plugin 72 sound/core/oss/io.c if (plugin->access == SNDRV_PCM_ACCESS_RW_INTERLEAVED) { plugin 73 sound/core/oss/io.c return pcm_read(plugin->plug, dst_channels->area.addr, frames); plugin 75 sound/core/oss/io.c int channel, channels = plugin->dst_format.channels; plugin 76 sound/core/oss/io.c void **bufs = (void**)plugin->extra_data; plugin 85 sound/core/oss/io.c return pcm_readv(plugin->plug, bufs, frames); plugin 90 sound/core/oss/io.c static snd_pcm_sframes_t io_src_channels(struct snd_pcm_plugin *plugin, plugin 97 sound/core/oss/io.c err = snd_pcm_plugin_client_channels(plugin, frames, &v); plugin 101 sound/core/oss/io.c if (plugin->access == SNDRV_PCM_ACCESS_RW_INTERLEAVED) { plugin 102 sound/core/oss/io.c for (channel = 0; channel < plugin->src_format.channels; ++channel, ++v) plugin 114 sound/core/oss/io.c struct snd_pcm_plugin *plugin; plugin 127 sound/core/oss/io.c &plugin); plugin 130 sound/core/oss/io.c plugin->access = params_access(params); plugin 132 sound/core/oss/io.c plugin->transfer = io_playback_transfer; plugin 133 sound/core/oss/io.c if (plugin->access == SNDRV_PCM_ACCESS_RW_INTERLEAVED) plugin 134 sound/core/oss/io.c plugin->client_channels = io_src_channels; plugin 136 sound/core/oss/io.c plugin->transfer = io_capture_transfer; plugin 139 sound/core/oss/io.c *r_plugin = plugin; plugin 55 sound/core/oss/linear.c static void convert(struct snd_pcm_plugin *plugin, plugin 60 sound/core/oss/linear.c struct linear_priv *data = (struct linear_priv *)plugin->extra_data; plugin 62 sound/core/oss/linear.c int nchannels = plugin->src_format.channels; plugin 70 sound/core/oss/linear.c snd_pcm_area_silence(&dst_channels[channel].area, 0, frames, plugin->dst_format.format); plugin 88 sound/core/oss/linear.c static snd_pcm_sframes_t linear_transfer(struct snd_pcm_plugin *plugin, plugin 93 sound/core/oss/linear.c if (snd_BUG_ON(!plugin || !src_channels || !dst_channels)) plugin 100 sound/core/oss/linear.c for (channel = 0; channel < plugin->src_format.channels; channel++) { plugin 112 sound/core/oss/linear.c convert(plugin, src_channels, dst_channels, frames); plugin 156 sound/core/oss/linear.c struct snd_pcm_plugin *plugin; plugin 172 sound/core/oss/linear.c sizeof(struct linear_priv), &plugin); plugin 175 sound/core/oss/linear.c data = (struct linear_priv *)plugin->extra_data; plugin 177 sound/core/oss/linear.c plugin->transfer = linear_transfer; plugin 178 sound/core/oss/linear.c *r_plugin = plugin; plugin 141 sound/core/oss/mulaw.c typedef void (*mulaw_f)(struct snd_pcm_plugin *plugin, plugin 168 sound/core/oss/mulaw.c static void mulaw_decode(struct snd_pcm_plugin *plugin, plugin 173 sound/core/oss/mulaw.c struct mulaw_priv *data = (struct mulaw_priv *)plugin->extra_data; plugin 175 sound/core/oss/mulaw.c int nchannels = plugin->src_format.channels; plugin 183 sound/core/oss/mulaw.c snd_pcm_area_silence(&dst_channels[channel].area, 0, frames, plugin->dst_format.format); plugin 214 sound/core/oss/mulaw.c static void mulaw_encode(struct snd_pcm_plugin *plugin, plugin 219 sound/core/oss/mulaw.c struct mulaw_priv *data = (struct mulaw_priv *)plugin->extra_data; plugin 221 sound/core/oss/mulaw.c int nchannels = plugin->src_format.channels; plugin 229 sound/core/oss/mulaw.c snd_pcm_area_silence(&dst_channels[channel].area, 0, frames, plugin->dst_format.format); plugin 248 sound/core/oss/mulaw.c static snd_pcm_sframes_t mulaw_transfer(struct snd_pcm_plugin *plugin, plugin 255 sound/core/oss/mulaw.c if (snd_BUG_ON(!plugin || !src_channels || !dst_channels)) plugin 262 sound/core/oss/mulaw.c for (channel = 0; channel < plugin->src_format.channels; channel++) { plugin 274 sound/core/oss/mulaw.c data = (struct mulaw_priv *)plugin->extra_data; plugin 275 sound/core/oss/mulaw.c data->func(plugin, src_channels, dst_channels, frames); plugin 307 sound/core/oss/mulaw.c struct snd_pcm_plugin *plugin; plugin 337 sound/core/oss/mulaw.c sizeof(struct mulaw_priv), &plugin); plugin 340 sound/core/oss/mulaw.c data = (struct mulaw_priv *)plugin->extra_data; plugin 343 sound/core/oss/mulaw.c plugin->transfer = mulaw_transfer; plugin 344 sound/core/oss/mulaw.c *r_plugin = plugin; plugin 542 sound/core/oss/pcm_oss.c struct snd_pcm_plugin *plugin, *next; plugin 544 sound/core/oss/pcm_oss.c plugin = runtime->oss.plugin_first; plugin 545 sound/core/oss/pcm_oss.c while (plugin) { plugin 546 sound/core/oss/pcm_oss.c next = plugin->next; plugin 547 sound/core/oss/pcm_oss.c snd_pcm_plugin_free(plugin); plugin 548 sound/core/oss/pcm_oss.c plugin = next; plugin 554 sound/core/oss/pcm_oss.c static int snd_pcm_plugin_insert(struct snd_pcm_plugin *plugin) plugin 556 sound/core/oss/pcm_oss.c struct snd_pcm_runtime *runtime = plugin->plug->runtime; plugin 557 sound/core/oss/pcm_oss.c plugin->next = runtime->oss.plugin_first; plugin 558 sound/core/oss/pcm_oss.c plugin->prev = NULL; plugin 560 sound/core/oss/pcm_oss.c runtime->oss.plugin_first->prev = plugin; plugin 561 sound/core/oss/pcm_oss.c runtime->oss.plugin_first = plugin; plugin 564 sound/core/oss/pcm_oss.c runtime->oss.plugin_first = plugin; plugin 569 sound/core/oss/pcm_oss.c int snd_pcm_plugin_append(struct snd_pcm_plugin *plugin) plugin 571 sound/core/oss/pcm_oss.c struct snd_pcm_runtime *runtime = plugin->plug->runtime; plugin 572 sound/core/oss/pcm_oss.c plugin->next = NULL; plugin 573 sound/core/oss/pcm_oss.c plugin->prev = runtime->oss.plugin_last; plugin 575 sound/core/oss/pcm_oss.c runtime->oss.plugin_last->next = plugin; plugin 576 sound/core/oss/pcm_oss.c runtime->oss.plugin_last = plugin; plugin 579 sound/core/oss/pcm_oss.c runtime->oss.plugin_first = plugin; plugin 964 sound/core/oss/pcm_oss.c struct snd_pcm_plugin *plugin; plugin 965 sound/core/oss/pcm_oss.c if ((err = snd_pcm_plugin_build_io(substream, sparams, &plugin)) < 0) { plugin 972 sound/core/oss/pcm_oss.c err = snd_pcm_plugin_append(plugin); plugin 974 sound/core/oss/pcm_oss.c err = snd_pcm_plugin_insert(plugin); plugin 49 sound/core/oss/pcm_plugin.c static int snd_pcm_plugin_alloc(struct snd_pcm_plugin *plugin, snd_pcm_uframes_t frames) plugin 57 sound/core/oss/pcm_plugin.c if (plugin->stream == SNDRV_PCM_STREAM_PLAYBACK) { plugin 58 sound/core/oss/pcm_plugin.c format = &plugin->src_format; plugin 60 sound/core/oss/pcm_plugin.c format = &plugin->dst_format; plugin 68 sound/core/oss/pcm_plugin.c if (plugin->buf_frames < frames) { plugin 69 sound/core/oss/pcm_plugin.c kvfree(plugin->buf); plugin 70 sound/core/oss/pcm_plugin.c plugin->buf = kvzalloc(size, GFP_KERNEL); plugin 71 sound/core/oss/pcm_plugin.c plugin->buf_frames = frames; plugin 73 sound/core/oss/pcm_plugin.c if (!plugin->buf) { plugin 74 sound/core/oss/pcm_plugin.c plugin->buf_frames = 0; plugin 77 sound/core/oss/pcm_plugin.c c = plugin->buf_channels; plugin 78 sound/core/oss/pcm_plugin.c if (plugin->access == SNDRV_PCM_ACCESS_RW_INTERLEAVED) { plugin 83 sound/core/oss/pcm_plugin.c c->area.addr = plugin->buf; plugin 87 sound/core/oss/pcm_plugin.c } else if (plugin->access == SNDRV_PCM_ACCESS_RW_NONINTERLEAVED) { plugin 95 sound/core/oss/pcm_plugin.c c->area.addr = plugin->buf + (channel * size); plugin 110 sound/core/oss/pcm_plugin.c struct snd_pcm_plugin *plugin = snd_pcm_plug_first(plug); plugin 111 sound/core/oss/pcm_plugin.c while (plugin->next) { plugin 112 sound/core/oss/pcm_plugin.c if (plugin->dst_frames) plugin 113 sound/core/oss/pcm_plugin.c frames = plugin->dst_frames(plugin, frames); plugin 116 sound/core/oss/pcm_plugin.c plugin = plugin->next; plugin 117 sound/core/oss/pcm_plugin.c err = snd_pcm_plugin_alloc(plugin, frames); plugin 122 sound/core/oss/pcm_plugin.c struct snd_pcm_plugin *plugin = snd_pcm_plug_last(plug); plugin 123 sound/core/oss/pcm_plugin.c while (plugin->prev) { plugin 124 sound/core/oss/pcm_plugin.c if (plugin->src_frames) plugin 125 sound/core/oss/pcm_plugin.c frames = plugin->src_frames(plugin, frames); plugin 128 sound/core/oss/pcm_plugin.c plugin = plugin->prev; plugin 129 sound/core/oss/pcm_plugin.c err = snd_pcm_plugin_alloc(plugin, frames); plugin 138 sound/core/oss/pcm_plugin.c snd_pcm_sframes_t snd_pcm_plugin_client_channels(struct snd_pcm_plugin *plugin, plugin 142 sound/core/oss/pcm_plugin.c *channels = plugin->buf_channels; plugin 153 sound/core/oss/pcm_plugin.c struct snd_pcm_plugin *plugin; plugin 160 sound/core/oss/pcm_plugin.c plugin = kzalloc(sizeof(*plugin) + extra, GFP_KERNEL); plugin 161 sound/core/oss/pcm_plugin.c if (plugin == NULL) plugin 163 sound/core/oss/pcm_plugin.c plugin->name = name; plugin 164 sound/core/oss/pcm_plugin.c plugin->plug = plug; plugin 165 sound/core/oss/pcm_plugin.c plugin->stream = snd_pcm_plug_stream(plug); plugin 166 sound/core/oss/pcm_plugin.c plugin->access = SNDRV_PCM_ACCESS_RW_INTERLEAVED; plugin 167 sound/core/oss/pcm_plugin.c plugin->src_format = *src_format; plugin 168 sound/core/oss/pcm_plugin.c plugin->src_width = snd_pcm_format_physical_width(src_format->format); plugin 169 sound/core/oss/pcm_plugin.c snd_BUG_ON(plugin->src_width <= 0); plugin 170 sound/core/oss/pcm_plugin.c plugin->dst_format = *dst_format; plugin 171 sound/core/oss/pcm_plugin.c plugin->dst_width = snd_pcm_format_physical_width(dst_format->format); plugin 172 sound/core/oss/pcm_plugin.c snd_BUG_ON(plugin->dst_width <= 0); plugin 173 sound/core/oss/pcm_plugin.c if (plugin->stream == SNDRV_PCM_STREAM_PLAYBACK) plugin 177 sound/core/oss/pcm_plugin.c plugin->buf_channels = kcalloc(channels, sizeof(*plugin->buf_channels), GFP_KERNEL); plugin 178 sound/core/oss/pcm_plugin.c if (plugin->buf_channels == NULL) { plugin 179 sound/core/oss/pcm_plugin.c snd_pcm_plugin_free(plugin); plugin 182 sound/core/oss/pcm_plugin.c plugin->client_channels = snd_pcm_plugin_client_channels; plugin 183 sound/core/oss/pcm_plugin.c *ret = plugin; plugin 187 sound/core/oss/pcm_plugin.c int snd_pcm_plugin_free(struct snd_pcm_plugin *plugin) plugin 189 sound/core/oss/pcm_plugin.c if (! plugin) plugin 191 sound/core/oss/pcm_plugin.c if (plugin->private_free) plugin 192 sound/core/oss/pcm_plugin.c plugin->private_free(plugin); plugin 193 sound/core/oss/pcm_plugin.c kfree(plugin->buf_channels); plugin 194 sound/core/oss/pcm_plugin.c kvfree(plugin->buf); plugin 195 sound/core/oss/pcm_plugin.c kfree(plugin); plugin 203 sound/core/oss/pcm_plugin.c struct snd_pcm_plugin *plugin, *plugin_prev, *plugin_next; plugin 212 sound/core/oss/pcm_plugin.c plugin = snd_pcm_plug_last(plug); plugin 213 sound/core/oss/pcm_plugin.c while (plugin && drv_frames > 0) { plugin 214 sound/core/oss/pcm_plugin.c plugin_prev = plugin->prev; plugin 215 sound/core/oss/pcm_plugin.c if (plugin->src_frames) plugin 216 sound/core/oss/pcm_plugin.c drv_frames = plugin->src_frames(plugin, drv_frames); plugin 217 sound/core/oss/pcm_plugin.c if (check_size && plugin->buf_frames && plugin 218 sound/core/oss/pcm_plugin.c drv_frames > plugin->buf_frames) plugin 219 sound/core/oss/pcm_plugin.c drv_frames = plugin->buf_frames; plugin 220 sound/core/oss/pcm_plugin.c plugin = plugin_prev; plugin 223 sound/core/oss/pcm_plugin.c plugin = snd_pcm_plug_first(plug); plugin 224 sound/core/oss/pcm_plugin.c while (plugin && drv_frames > 0) { plugin 225 sound/core/oss/pcm_plugin.c plugin_next = plugin->next; plugin 226 sound/core/oss/pcm_plugin.c if (check_size && plugin->buf_frames && plugin 227 sound/core/oss/pcm_plugin.c drv_frames > plugin->buf_frames) plugin 228 sound/core/oss/pcm_plugin.c drv_frames = plugin->buf_frames; plugin 229 sound/core/oss/pcm_plugin.c if (plugin->dst_frames) plugin 230 sound/core/oss/pcm_plugin.c drv_frames = plugin->dst_frames(plugin, drv_frames); plugin 231 sound/core/oss/pcm_plugin.c plugin = plugin_next; plugin 242 sound/core/oss/pcm_plugin.c struct snd_pcm_plugin *plugin, *plugin_prev, *plugin_next; plugin 253 sound/core/oss/pcm_plugin.c plugin = snd_pcm_plug_first(plug); plugin 254 sound/core/oss/pcm_plugin.c while (plugin && frames > 0) { plugin 255 sound/core/oss/pcm_plugin.c plugin_next = plugin->next; plugin 256 sound/core/oss/pcm_plugin.c if (check_size && plugin->buf_frames && plugin 257 sound/core/oss/pcm_plugin.c frames > plugin->buf_frames) plugin 258 sound/core/oss/pcm_plugin.c frames = plugin->buf_frames; plugin 259 sound/core/oss/pcm_plugin.c if (plugin->dst_frames) { plugin 260 sound/core/oss/pcm_plugin.c frames = plugin->dst_frames(plugin, frames); plugin 264 sound/core/oss/pcm_plugin.c plugin = plugin_next; plugin 267 sound/core/oss/pcm_plugin.c plugin = snd_pcm_plug_last(plug); plugin 268 sound/core/oss/pcm_plugin.c while (plugin) { plugin 269 sound/core/oss/pcm_plugin.c plugin_prev = plugin->prev; plugin 270 sound/core/oss/pcm_plugin.c if (plugin->src_frames) { plugin 271 sound/core/oss/pcm_plugin.c frames = plugin->src_frames(plugin, frames); plugin 275 sound/core/oss/pcm_plugin.c if (check_size && plugin->buf_frames && plugin 276 sound/core/oss/pcm_plugin.c frames > plugin->buf_frames) plugin 277 sound/core/oss/pcm_plugin.c frames = plugin->buf_frames; plugin 278 sound/core/oss/pcm_plugin.c plugin = plugin_prev; plugin 399 sound/core/oss/pcm_plugin.c struct snd_pcm_plugin *plugin = NULL; plugin 451 sound/core/oss/pcm_plugin.c &plugin); plugin 454 sound/core/oss/pcm_plugin.c err = snd_pcm_plugin_append(plugin); plugin 456 sound/core/oss/pcm_plugin.c snd_pcm_plugin_free(plugin); plugin 466 sound/core/oss/pcm_plugin.c err = snd_pcm_plugin_build_route(plug, &srcformat, &tmpformat, &plugin); plugin 470 sound/core/oss/pcm_plugin.c err = snd_pcm_plugin_append(plugin); plugin 472 sound/core/oss/pcm_plugin.c snd_pcm_plugin_free(plugin); plugin 486 sound/core/oss/pcm_plugin.c &plugin); plugin 489 sound/core/oss/pcm_plugin.c err = snd_pcm_plugin_append(plugin); plugin 491 sound/core/oss/pcm_plugin.c snd_pcm_plugin_free(plugin); plugin 500 sound/core/oss/pcm_plugin.c &plugin); plugin 504 sound/core/oss/pcm_plugin.c err = snd_pcm_plugin_append(plugin); plugin 506 sound/core/oss/pcm_plugin.c snd_pcm_plugin_free(plugin); plugin 520 sound/core/oss/pcm_plugin.c &plugin); plugin 526 sound/core/oss/pcm_plugin.c &plugin); plugin 533 sound/core/oss/pcm_plugin.c err = snd_pcm_plugin_append(plugin); plugin 535 sound/core/oss/pcm_plugin.c snd_pcm_plugin_free(plugin); plugin 545 sound/core/oss/pcm_plugin.c err = snd_pcm_plugin_build_route(plug, &srcformat, &tmpformat, &plugin); plugin 549 sound/core/oss/pcm_plugin.c err = snd_pcm_plugin_append(plugin); plugin 551 sound/core/oss/pcm_plugin.c snd_pcm_plugin_free(plugin); plugin 563 sound/core/oss/pcm_plugin.c &plugin); plugin 567 sound/core/oss/pcm_plugin.c err = snd_pcm_plugin_append(plugin); plugin 569 sound/core/oss/pcm_plugin.c snd_pcm_plugin_free(plugin); plugin 582 sound/core/oss/pcm_plugin.c struct snd_pcm_plugin *plugin; plugin 591 sound/core/oss/pcm_plugin.c plugin = snd_pcm_plug_first(plug); plugin 592 sound/core/oss/pcm_plugin.c format = &plugin->src_format; plugin 594 sound/core/oss/pcm_plugin.c plugin = snd_pcm_plug_last(plug); plugin 595 sound/core/oss/pcm_plugin.c format = &plugin->dst_format; plugin 597 sound/core/oss/pcm_plugin.c v = plugin->buf_channels; plugin 602 sound/core/oss/pcm_plugin.c if (snd_BUG_ON(plugin->access != SNDRV_PCM_ACCESS_RW_INTERLEAVED && plugin 618 sound/core/oss/pcm_plugin.c struct snd_pcm_plugin *plugin, *next; plugin 623 sound/core/oss/pcm_plugin.c plugin = snd_pcm_plug_first(plug); plugin 624 sound/core/oss/pcm_plugin.c while (plugin) { plugin 627 sound/core/oss/pcm_plugin.c if ((next = plugin->next) != NULL) { plugin 629 sound/core/oss/pcm_plugin.c if (plugin->dst_frames) { plugin 630 sound/core/oss/pcm_plugin.c frames1 = plugin->dst_frames(plugin, frames); plugin 639 sound/core/oss/pcm_plugin.c if (plugin->src_frames) { plugin 640 sound/core/oss/pcm_plugin.c frames = plugin->src_frames(plugin, frames1); plugin 647 sound/core/oss/pcm_plugin.c pdprintf("write plugin: %s, %li\n", plugin->name, frames); plugin 648 sound/core/oss/pcm_plugin.c if ((frames = plugin->transfer(plugin, src_channels, dst_channels, frames)) < 0) plugin 651 sound/core/oss/pcm_plugin.c plugin = next; plugin 658 sound/core/oss/pcm_plugin.c struct snd_pcm_plugin *plugin, *next; plugin 668 sound/core/oss/pcm_plugin.c plugin = snd_pcm_plug_first(plug); plugin 669 sound/core/oss/pcm_plugin.c while (plugin && frames > 0) { plugin 670 sound/core/oss/pcm_plugin.c if ((next = plugin->next) != NULL) { plugin 671 sound/core/oss/pcm_plugin.c if ((err = plugin->client_channels(plugin, frames, &dst_channels)) < 0) { plugin 678 sound/core/oss/pcm_plugin.c pdprintf("read plugin: %s, %li\n", plugin->name, frames); plugin 679 sound/core/oss/pcm_plugin.c if ((frames = plugin->transfer(plugin, src_channels, dst_channels, frames)) < 0) plugin 681 sound/core/oss/pcm_plugin.c plugin = next; plugin 47 sound/core/oss/pcm_plugin.h snd_pcm_sframes_t (*src_frames)(struct snd_pcm_plugin *plugin, snd_pcm_uframes_t dst_frames); plugin 48 sound/core/oss/pcm_plugin.h snd_pcm_sframes_t (*dst_frames)(struct snd_pcm_plugin *plugin, snd_pcm_uframes_t src_frames); plugin 49 sound/core/oss/pcm_plugin.h snd_pcm_sframes_t (*client_channels)(struct snd_pcm_plugin *plugin, plugin 52 sound/core/oss/pcm_plugin.h snd_pcm_sframes_t (*transfer)(struct snd_pcm_plugin *plugin, plugin 56 sound/core/oss/pcm_plugin.h int (*action)(struct snd_pcm_plugin *plugin, plugin 63 sound/core/oss/pcm_plugin.h void (*private_free)(struct snd_pcm_plugin *plugin); plugin 76 sound/core/oss/pcm_plugin.h int snd_pcm_plugin_free(struct snd_pcm_plugin *plugin); plugin 116 sound/core/oss/pcm_plugin.h int snd_pcm_plugin_append(struct snd_pcm_plugin *plugin); plugin 129 sound/core/oss/pcm_plugin.h snd_pcm_sframes_t snd_pcm_plugin_client_channels(struct snd_pcm_plugin *plugin, plugin 40 sound/core/oss/rate.c typedef void (*rate_f)(struct snd_pcm_plugin *plugin, plugin 53 sound/core/oss/rate.c static void rate_init(struct snd_pcm_plugin *plugin) plugin 56 sound/core/oss/rate.c struct rate_priv *data = (struct rate_priv *)plugin->extra_data; plugin 58 sound/core/oss/rate.c for (channel = 0; channel < plugin->src_format.channels; channel++) { plugin 64 sound/core/oss/rate.c static void resample_expand(struct snd_pcm_plugin *plugin, plugin 76 sound/core/oss/rate.c struct rate_priv *data = (struct rate_priv *)plugin->extra_data; plugin 79 sound/core/oss/rate.c for (channel = 0; channel < plugin->src_format.channels; channel++) { plugin 85 sound/core/oss/rate.c snd_pcm_area_silence(&dst_channels[channel].area, 0, dst_frames, plugin->dst_format.format); plugin 123 sound/core/oss/rate.c static void resample_shrink(struct snd_pcm_plugin *plugin, plugin 135 sound/core/oss/rate.c struct rate_priv *data = (struct rate_priv *)plugin->extra_data; plugin 138 sound/core/oss/rate.c for (channel = 0; channel < plugin->src_format.channels; ++channel) { plugin 144 sound/core/oss/rate.c snd_pcm_area_silence(&dst_channels[channel].area, 0, dst_frames, plugin->dst_format.format); plugin 183 sound/core/oss/rate.c static snd_pcm_sframes_t rate_src_frames(struct snd_pcm_plugin *plugin, snd_pcm_uframes_t frames) plugin 188 sound/core/oss/rate.c if (snd_BUG_ON(!plugin)) plugin 192 sound/core/oss/rate.c data = (struct rate_priv *)plugin->extra_data; plugin 193 sound/core/oss/rate.c if (plugin->src_format.rate < plugin->dst_format.rate) { plugin 216 sound/core/oss/rate.c static snd_pcm_sframes_t rate_dst_frames(struct snd_pcm_plugin *plugin, snd_pcm_uframes_t frames) plugin 221 sound/core/oss/rate.c if (snd_BUG_ON(!plugin)) plugin 225 sound/core/oss/rate.c data = (struct rate_priv *)plugin->extra_data; plugin 226 sound/core/oss/rate.c if (plugin->src_format.rate < plugin->dst_format.rate) { plugin 249 sound/core/oss/rate.c static snd_pcm_sframes_t rate_transfer(struct snd_pcm_plugin *plugin, plugin 257 sound/core/oss/rate.c if (snd_BUG_ON(!plugin || !src_channels || !dst_channels)) plugin 264 sound/core/oss/rate.c for (channel = 0; channel < plugin->src_format.channels; channel++) { plugin 275 sound/core/oss/rate.c dst_frames = rate_dst_frames(plugin, frames); plugin 278 sound/core/oss/rate.c data = (struct rate_priv *)plugin->extra_data; plugin 279 sound/core/oss/rate.c data->func(plugin, src_channels, dst_channels, frames, dst_frames); plugin 283 sound/core/oss/rate.c static int rate_action(struct snd_pcm_plugin *plugin, plugin 287 sound/core/oss/rate.c if (snd_BUG_ON(!plugin)) plugin 292 sound/core/oss/rate.c rate_init(plugin); plugin 307 sound/core/oss/rate.c struct snd_pcm_plugin *plugin; plugin 328 sound/core/oss/rate.c &plugin); plugin 331 sound/core/oss/rate.c data = (struct rate_priv *)plugin->extra_data; plugin 340 sound/core/oss/rate.c rate_init(plugin); plugin 342 sound/core/oss/rate.c plugin->transfer = rate_transfer; plugin 343 sound/core/oss/rate.c plugin->src_frames = rate_src_frames; plugin 344 sound/core/oss/rate.c plugin->dst_frames = rate_dst_frames; plugin 345 sound/core/oss/rate.c plugin->action = rate_action; plugin 346 sound/core/oss/rate.c *r_plugin = plugin; plugin 47 sound/core/oss/route.c static snd_pcm_sframes_t route_transfer(struct snd_pcm_plugin *plugin, plugin 56 sound/core/oss/route.c if (snd_BUG_ON(!plugin || !src_channels || !dst_channels)) plugin 63 sound/core/oss/route.c nsrcs = plugin->src_format.channels; plugin 64 sound/core/oss/route.c ndsts = plugin->dst_format.channels; plugin 66 sound/core/oss/route.c format = plugin->dst_format.format; plugin 92 sound/core/oss/route.c struct snd_pcm_plugin *plugin; plugin 104 sound/core/oss/route.c src_format, dst_format, 0, &plugin); plugin 108 sound/core/oss/route.c plugin->transfer = route_transfer; plugin 109 sound/core/oss/route.c *r_plugin = plugin; plugin 30 tools/lib/traceevent/event-plugin.c char *plugin; plugin 157 tools/lib/traceevent/event-plugin.c char *plugin; plugin 161 tools/lib/traceevent/event-plugin.c plugin = strdup(option->plugin_alias); plugin 162 tools/lib/traceevent/event-plugin.c if (!plugin) plugin 166 tools/lib/traceevent/event-plugin.c plugin = strdup(file); plugin 167 tools/lib/traceevent/event-plugin.c if (!plugin) plugin 169 tools/lib/traceevent/event-plugin.c p = strstr(plugin, "."); plugin 176 tools/lib/traceevent/event-plugin.c if (!op->plugin) plugin 178 tools/lib/traceevent/event-plugin.c if (strcmp(op->plugin, plugin) != 0) plugin 191 tools/lib/traceevent/event-plugin.c if (op->plugin) plugin 201 tools/lib/traceevent/event-plugin.c free(plugin); plugin 279 tools/lib/traceevent/event-plugin.c char *plugin; plugin 283 tools/lib/traceevent/event-plugin.c ret = asprintf(&plugin, "%s/%s", path, file); plugin 289 tools/lib/traceevent/event-plugin.c handle = dlopen(plugin, RTLD_NOW | RTLD_GLOBAL); plugin 292 tools/lib/traceevent/event-plugin.c plugin, dlerror()); plugin 303 tools/lib/traceevent/event-plugin.c TEP_PLUGIN_LOADER_NAME, plugin, dlerror()); plugin 315 tools/lib/traceevent/event-plugin.c list->name = plugin; plugin 318 tools/lib/traceevent/event-plugin.c pr_stat("registering plugin: %s", plugin); plugin 323 tools/lib/traceevent/event-plugin.c free(plugin);