Home
last modified time | relevance | path

Searched refs:plug (Results 1 – 25 of 164) sorted by relevance

1234567

/Linux-v5.4/sound/core/oss/
Dio.c28 #define pcm_write(plug,buf,count) snd_pcm_oss_write3(plug,buf,count,1) argument
29 #define pcm_writev(plug,vec,count) snd_pcm_oss_writev3(plug,vec,count) argument
30 #define pcm_read(plug,buf,count) snd_pcm_oss_read3(plug,buf,count,1) argument
31 #define pcm_readv(plug,vec,count) snd_pcm_oss_readv3(plug,vec,count) argument
47 return pcm_write(plugin->plug, src_channels->area.addr, frames); in io_playback_transfer()
59 return pcm_writev(plugin->plug, bufs, frames); in io_playback_transfer()
73 return pcm_read(plugin->plug, dst_channels->area.addr, frames); in io_capture_transfer()
85 return pcm_readv(plugin->plug, bufs, frames); in io_capture_transfer()
108 int snd_pcm_plugin_build_io(struct snd_pcm_substream *plug, in snd_pcm_plugin_build_io() argument
119 if (snd_BUG_ON(!plug || !params)) in snd_pcm_plugin_build_io()
[all …]
Dpcm_plugin.c35 #define snd_pcm_plug_first(plug) ((plug)->runtime->oss.plugin_first) argument
36 #define snd_pcm_plug_last(plug) ((plug)->runtime->oss.plugin_last) argument
104 int snd_pcm_plug_alloc(struct snd_pcm_substream *plug, snd_pcm_uframes_t frames) in snd_pcm_plug_alloc() argument
107 if (snd_BUG_ON(!snd_pcm_plug_first(plug))) in snd_pcm_plug_alloc()
109 if (snd_pcm_plug_stream(plug) == SNDRV_PCM_STREAM_PLAYBACK) { in snd_pcm_plug_alloc()
110 struct snd_pcm_plugin *plugin = snd_pcm_plug_first(plug); in snd_pcm_plug_alloc()
122 struct snd_pcm_plugin *plugin = snd_pcm_plug_last(plug); in snd_pcm_plug_alloc()
146 int snd_pcm_plugin_build(struct snd_pcm_substream *plug, in snd_pcm_plugin_build() argument
156 if (snd_BUG_ON(!plug)) in snd_pcm_plugin_build()
164 plugin->plug = plug; in snd_pcm_plugin_build()
[all …]
Dpcm_plugin.h12 #define snd_pcm_plug_stream(plug) ((plug)->stream) argument
61 struct snd_pcm_substream *plug; member
78 int snd_pcm_plug_alloc(struct snd_pcm_substream *plug, snd_pcm_uframes_t frames);
142 void *snd_pcm_plug_buf_alloc(struct snd_pcm_substream *plug, snd_pcm_uframes_t size);
143 void snd_pcm_plug_buf_unlock(struct snd_pcm_substream *plug, void *ptr);
Dcopy.c61 int snd_pcm_plugin_build_copy(struct snd_pcm_substream *plug, in snd_pcm_plugin_build_copy() argument
85 err = snd_pcm_plugin_build(plug, "copy", src_format, dst_format, in snd_pcm_plugin_build_copy()
Droute.c85 int snd_pcm_plugin_build_route(struct snd_pcm_substream *plug, in snd_pcm_plugin_build_route() argument
101 err = snd_pcm_plugin_build(plug, "route conversion", in snd_pcm_plugin_build_route()
Dlinear.c147 int snd_pcm_plugin_build_linear(struct snd_pcm_substream *plug, in snd_pcm_plugin_build_linear() argument
168 err = snd_pcm_plugin_build(plug, "linear format conversion", in snd_pcm_plugin_build_linear()
/Linux-v5.4/block/
Dblk-core.c695 struct blk_plug *plug; in blk_attempt_plug_merge() local
699 plug = blk_mq_plug(q, bio); in blk_attempt_plug_merge()
700 if (!plug) in blk_attempt_plug_merge()
703 plug_list = &plug->mq_list; in blk_attempt_plug_merge()
1696 void blk_start_plug(struct blk_plug *plug) in blk_start_plug() argument
1703 if (tsk->plug) in blk_start_plug()
1706 INIT_LIST_HEAD(&plug->mq_list); in blk_start_plug()
1707 INIT_LIST_HEAD(&plug->cb_list); in blk_start_plug()
1708 plug->rq_count = 0; in blk_start_plug()
1709 plug->multiple_queues = false; in blk_start_plug()
[all …]
Dblk-lib.c101 struct blk_plug plug; in blkdev_issue_discard() local
104 blk_start_plug(&plug); in blkdev_issue_discard()
113 blk_finish_plug(&plug); in blkdev_issue_discard()
197 struct blk_plug plug; in blkdev_issue_write_same() local
200 blk_start_plug(&plug); in blkdev_issue_write_same()
207 blk_finish_plug(&plug); in blkdev_issue_write_same()
364 struct blk_plug plug; in blkdev_issue_zeroout() local
373 blk_start_plug(&plug); in blkdev_issue_zeroout()
388 blk_finish_plug(&plug); in blkdev_issue_zeroout()
Dblk-mq.c1722 void blk_mq_flush_plug_list(struct blk_plug *plug, bool from_schedule) in blk_mq_flush_plug_list() argument
1732 list_splice_init(&plug->mq_list, &list); in blk_mq_flush_plug_list()
1734 if (plug->rq_count > 2 && plug->multiple_queues) in blk_mq_flush_plug_list()
1737 plug->rq_count = 0; in blk_mq_flush_plug_list()
1933 static void blk_add_rq_to_plug(struct blk_plug *plug, struct request *rq) in blk_add_rq_to_plug() argument
1935 list_add_tail(&rq->queuelist, &plug->mq_list); in blk_add_rq_to_plug()
1936 plug->rq_count++; in blk_add_rq_to_plug()
1937 if (!plug->multiple_queues && !list_is_singular(&plug->mq_list)) { in blk_add_rq_to_plug()
1940 tmp = list_first_entry(&plug->mq_list, struct request, in blk_add_rq_to_plug()
1943 plug->multiple_queues = true; in blk_add_rq_to_plug()
[all …]
/Linux-v5.4/drivers/usb/typec/
Dclass.c180 struct typec_plug *plug = to_typec_plug(adev->dev.parent); in typec_altmode_set_partner() local
182 partner->plug[plug->index] = altmode; in typec_altmode_set_partner()
199 struct typec_plug *plug = to_typec_plug(adev->dev.parent); in typec_altmode_put_partner() local
201 partner->plug[plug->index] = NULL; in typec_altmode_put_partner()
702 struct typec_plug *plug = to_typec_plug(dev); in typec_plug_release() local
704 ida_destroy(&plug->mode_ids); in typec_plug_release()
705 kfree(plug); in typec_plug_release()
726 typec_plug_register_altmode(struct typec_plug *plug, in typec_plug_register_altmode() argument
729 return typec_register_altmode(&plug->dev, desc); in typec_plug_register_altmode()
747 struct typec_plug *plug; in typec_register_plug() local
[all …]
Dbus.c215 if (port->plug[index]) { in typec_altmode_get_plug()
216 get_device(&port->plug[index]->adev.dev); in typec_altmode_get_plug()
217 return &port->plug[index]->adev; in typec_altmode_get_plug()
228 void typec_altmode_put_plug(struct typec_altmode *plug) in typec_altmode_put_plug() argument
230 if (plug) in typec_altmode_put_plug()
231 put_device(&plug->dev); in typec_altmode_put_plug()
DKconfig7 only one type of plug is supported on both ends, i.e. there will not
8 be Type-A plug on one end of the cable and Type-B plug on the other.
/Linux-v5.4/Documentation/ide/
Dwarm-plug-howto.rst2 IDE warm-plug HOWTO
5 To warm-plug devices on a port 'idex'::
9 unplug old device(s) and plug new device(s)::
Dindex.rst12 warm-plug-howto
/Linux-v5.4/arch/powerpc/platforms/ps3/
Dinterrupt.c705 unsigned int plug; in ps3_get_irq() local
712 asm volatile("cntlzd %0,%1" : "=r" (plug) : "r" (x)); in ps3_get_irq()
713 plug &= 0x3f; in ps3_get_irq()
715 if (unlikely(!plug)) { in ps3_get_irq()
724 if (unlikely(plug < NUM_ISA_INTERRUPTS || plug > PS3_PLUG_MAX)) { in ps3_get_irq()
733 if (test_bit(63 - plug, &pd->ipi_mask)) in ps3_get_irq()
734 lv1_end_of_interrupt_ext(pd->ppe_id, pd->thread_id, plug); in ps3_get_irq()
736 return plug; in ps3_get_irq()
/Linux-v5.4/sound/firewire/
Dfcp.h20 unsigned short plug);
23 unsigned short plug);
/Linux-v5.4/drivers/block/drbd/
Ddrbd_req.c1279 struct drbd_plug_cb *plug = container_of(cb, struct drbd_plug_cb, cb); in drbd_unplug() local
1280 struct drbd_resource *resource = plug->cb.data; in drbd_unplug()
1281 struct drbd_request *req = plug->most_recent_req; in drbd_unplug()
1301 struct drbd_plug_cb *plug; in drbd_check_plugged() local
1302 struct blk_plug_cb *cb = blk_check_plugged(drbd_unplug, resource, sizeof(*plug)); in drbd_check_plugged()
1305 plug = container_of(cb, struct drbd_plug_cb, cb); in drbd_check_plugged()
1307 plug = NULL; in drbd_check_plugged()
1308 return plug; in drbd_check_plugged()
1311 static void drbd_update_plug(struct drbd_plug_cb *plug, struct drbd_request *req) in drbd_update_plug() argument
1313 struct drbd_request *tmp = plug->most_recent_req; in drbd_update_plug()
[all …]
/Linux-v5.4/Documentation/usb/
Dchipidea.rst38 2) Connect 2 boards with usb cable with one end is micro A plug, the other end
39 is micro B plug.
41 The A-device(with micro A plug inserted) should enumerate B-device.
65 5) Remove B-device(unplug micro B plug) and insert again in 10 seconds,
68 6) Remove B-device(unplug micro B plug) and insert again after 10 seconds,
/Linux-v5.4/include/linux/
Dblkdev.h1187 struct blk_plug *plug = tsk->plug; in blk_flush_plug() local
1189 if (plug) in blk_flush_plug()
1190 blk_flush_plug_list(plug, false); in blk_flush_plug()
1195 struct blk_plug *plug = tsk->plug; in blk_schedule_flush_plug() local
1197 if (plug) in blk_schedule_flush_plug()
1198 blk_flush_plug_list(plug, true); in blk_schedule_flush_plug()
1203 struct blk_plug *plug = tsk->plug; in blk_needs_flush_plug() local
1205 return plug && in blk_needs_flush_plug()
1206 (!list_empty(&plug->mq_list) || in blk_needs_flush_plug()
1207 !list_empty(&plug->cb_list)); in blk_needs_flush_plug()
[all …]
/Linux-v5.4/fs/btrfs/
Draid56.c1688 static void run_plug(struct btrfs_plug_cb *plug) in run_plug() argument
1698 list_sort(NULL, &plug->rbio_list, plug_cmp); in run_plug()
1699 while (!list_empty(&plug->rbio_list)) { in run_plug()
1700 cur = list_entry(plug->rbio_list.next, in run_plug()
1726 kfree(plug); in run_plug()
1735 struct btrfs_plug_cb *plug; in unplug_work() local
1736 plug = container_of(work, struct btrfs_plug_cb, work); in unplug_work()
1737 run_plug(plug); in unplug_work()
1742 struct btrfs_plug_cb *plug; in btrfs_raid_unplug() local
1743 plug = container_of(cb, struct btrfs_plug_cb, cb); in btrfs_raid_unplug()
[all …]
/Linux-v5.4/mm/
Dswap_state.c548 struct blk_plug plug; in swap_cluster_readahead() local
573 blk_start_plug(&plug); in swap_cluster_readahead()
590 blk_finish_plug(&plug); in swap_cluster_readahead()
725 struct blk_plug plug; in swap_vma_readahead() local
738 blk_start_plug(&plug); in swap_vma_readahead()
762 blk_finish_plug(&plug); in swap_vma_readahead()
/Linux-v5.4/include/linux/usb/
Dtypec.h114 *typec_plug_register_altmode(struct typec_plug *plug,
232 void typec_unregister_plug(struct typec_plug *plug);
/Linux-v5.4/fs/hpfs/
Dbuffer.c41 struct blk_plug plug; in hpfs_prefetch_sectors() local
58 blk_start_plug(&plug); in hpfs_prefetch_sectors()
66 blk_finish_plug(&plug); in hpfs_prefetch_sectors()
/Linux-v5.4/drivers/media/firewire/
Dfiredtv.h132 int cmp_establish_pp_connection(struct firedtv *fdtv, int plug, int channel);
133 void cmp_break_pp_connection(struct firedtv *fdtv, int plug, int channel);
/Linux-v5.4/Documentation/driver-api/usb/
Dtypec.rst41 will be named port0-cable and the plug on the SOP Prime end (see USB Power
46 If the port, partner or cable plug supports Alternate Modes, every supported
106 Double Prime communication, should only have one plug registered. For more
113 typec_cable_desc and about a plug in struct typec_plug_desc. The class copies
157 If a partner or cable plug provides a list of SVIDs as response to USB Power
179 If a partner or cable plug enters or exits a mode, the port driver needs to

1234567