Home
last modified time | relevance | path

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

12345678

/Linux-v5.10/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.c87 int snd_pcm_plugin_build_route(struct snd_pcm_substream *plug, in snd_pcm_plugin_build_route() argument
103 err = snd_pcm_plugin_build(plug, "route conversion", in snd_pcm_plugin_build_route()
Dlinear.c149 int snd_pcm_plugin_build_linear(struct snd_pcm_substream *plug, in snd_pcm_plugin_build_linear() argument
170 err = snd_pcm_plugin_build(plug, "linear format conversion", in snd_pcm_plugin_build_linear()
/Linux-v5.10/block/
Dblk-core.c810 struct blk_plug *plug; in submit_bio_checks() local
814 plug = blk_mq_plug(q, bio); in submit_bio_checks()
815 if (plug && plug->nowait) in submit_bio_checks()
1689 void blk_start_plug(struct blk_plug *plug) in blk_start_plug() argument
1696 if (tsk->plug) in blk_start_plug()
1699 INIT_LIST_HEAD(&plug->mq_list); in blk_start_plug()
1700 INIT_LIST_HEAD(&plug->cb_list); in blk_start_plug()
1701 plug->rq_count = 0; in blk_start_plug()
1702 plug->multiple_queues = false; in blk_start_plug()
1703 plug->nowait = false; in blk_start_plug()
[all …]
Dblk-lib.c135 struct blk_plug plug; in blkdev_issue_discard() local
138 blk_start_plug(&plug); in blkdev_issue_discard()
147 blk_finish_plug(&plug); in blkdev_issue_discard()
231 struct blk_plug plug; in blkdev_issue_write_same() local
234 blk_start_plug(&plug); in blkdev_issue_write_same()
241 blk_finish_plug(&plug); in blkdev_issue_write_same()
398 struct blk_plug plug; in blkdev_issue_zeroout() local
407 blk_start_plug(&plug); in blkdev_issue_zeroout()
422 blk_finish_plug(&plug); in blkdev_issue_zeroout()
Dblk-mq.c1901 void blk_mq_flush_plug_list(struct blk_plug *plug, bool from_schedule) in blk_mq_flush_plug_list() argument
1905 if (list_empty(&plug->mq_list)) in blk_mq_flush_plug_list()
1907 list_splice_init(&plug->mq_list, &list); in blk_mq_flush_plug_list()
1909 if (plug->rq_count > 2 && plug->multiple_queues) in blk_mq_flush_plug_list()
1912 plug->rq_count = 0; in blk_mq_flush_plug_list()
2117 static void blk_add_rq_to_plug(struct blk_plug *plug, struct request *rq) in blk_add_rq_to_plug() argument
2119 list_add_tail(&rq->queuelist, &plug->mq_list); in blk_add_rq_to_plug()
2120 plug->rq_count++; in blk_add_rq_to_plug()
2121 if (!plug->multiple_queues && !list_is_singular(&plug->mq_list)) { in blk_add_rq_to_plug()
2124 tmp = list_first_entry(&plug->mq_list, struct request, in blk_add_rq_to_plug()
[all …]
/Linux-v5.10/drivers/usb/typec/
Dclass.c181 struct typec_plug *plug = to_typec_plug(adev->dev.parent); in typec_altmode_set_partner() local
183 partner->plug[plug->index] = altmode; in typec_altmode_set_partner()
200 struct typec_plug *plug = to_typec_plug(adev->dev.parent); in typec_altmode_put_partner() local
202 partner->plug[plug->index] = NULL; in typec_altmode_put_partner()
659 struct typec_plug *plug = to_typec_plug(dev); in typec_plug_release() local
661 ida_destroy(&plug->mode_ids); in typec_plug_release()
662 kfree(plug); in typec_plug_release()
683 typec_plug_register_altmode(struct typec_plug *plug, in typec_plug_register_altmode() argument
686 return typec_register_altmode(&plug->dev, desc); in typec_plug_register_altmode()
704 struct typec_plug *plug; in typec_register_plug() local
[all …]
Dbus.c224 if (port->plug[index]) { in typec_altmode_get_plug()
225 get_device(&port->plug[index]->adev.dev); in typec_altmode_get_plug()
226 return &port->plug[index]->adev; in typec_altmode_get_plug()
237 void typec_altmode_put_plug(struct typec_altmode *plug) in typec_altmode_put_plug() argument
239 if (plug) in typec_altmode_put_plug()
240 put_device(&plug->dev); in typec_altmode_put_plug()
/Linux-v5.10/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.10/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.10/sound/firewire/
Dfcp.h20 unsigned short plug);
23 unsigned short plug);
/Linux-v5.10/drivers/block/drbd/
Ddrbd_req.c1260 struct drbd_plug_cb *plug = container_of(cb, struct drbd_plug_cb, cb); in drbd_unplug() local
1261 struct drbd_resource *resource = plug->cb.data; in drbd_unplug()
1262 struct drbd_request *req = plug->most_recent_req; in drbd_unplug()
1282 struct drbd_plug_cb *plug; in drbd_check_plugged() local
1283 struct blk_plug_cb *cb = blk_check_plugged(drbd_unplug, resource, sizeof(*plug)); in drbd_check_plugged()
1286 plug = container_of(cb, struct drbd_plug_cb, cb); in drbd_check_plugged()
1288 plug = NULL; in drbd_check_plugged()
1289 return plug; in drbd_check_plugged()
1292 static void drbd_update_plug(struct drbd_plug_cb *plug, struct drbd_request *req) in drbd_update_plug() argument
1294 struct drbd_request *tmp = plug->most_recent_req; in drbd_update_plug()
[all …]
/Linux-v5.10/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.10/include/linux/
Dblkdev.h1261 struct blk_plug *plug = tsk->plug; in blk_flush_plug() local
1263 if (plug) in blk_flush_plug()
1264 blk_flush_plug_list(plug, false); in blk_flush_plug()
1269 struct blk_plug *plug = tsk->plug; in blk_schedule_flush_plug() local
1271 if (plug) in blk_schedule_flush_plug()
1272 blk_flush_plug_list(plug, true); in blk_schedule_flush_plug()
1277 struct blk_plug *plug = tsk->plug; in blk_needs_flush_plug() local
1279 return plug && in blk_needs_flush_plug()
1280 (!list_empty(&plug->mq_list) || in blk_needs_flush_plug()
1281 !list_empty(&plug->cb_list)); in blk_needs_flush_plug()
[all …]
/Linux-v5.10/fs/btrfs/
Draid56.c1665 static void run_plug(struct btrfs_plug_cb *plug) in run_plug() argument
1675 list_sort(NULL, &plug->rbio_list, plug_cmp); in run_plug()
1676 while (!list_empty(&plug->rbio_list)) { in run_plug()
1677 cur = list_entry(plug->rbio_list.next, in run_plug()
1703 kfree(plug); in run_plug()
1712 struct btrfs_plug_cb *plug; in unplug_work() local
1713 plug = container_of(work, struct btrfs_plug_cb, work); in unplug_work()
1714 run_plug(plug); in unplug_work()
1719 struct btrfs_plug_cb *plug; in btrfs_raid_unplug() local
1720 plug = container_of(cb, struct btrfs_plug_cb, cb); in btrfs_raid_unplug()
[all …]
/Linux-v5.10/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.10/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.10/include/linux/usb/
Dtypec.h133 *typec_plug_register_altmode(struct typec_plug *plug,
257 void typec_unregister_plug(struct typec_plug *plug);
/Linux-v5.10/mm/
Dswap_state.c658 struct blk_plug plug; in swap_cluster_readahead() local
683 blk_start_plug(&plug); in swap_cluster_readahead()
700 blk_finish_plug(&plug); in swap_cluster_readahead()
835 struct blk_plug plug; in swap_vma_readahead() local
848 blk_start_plug(&plug); in swap_vma_readahead()
872 blk_finish_plug(&plug); in swap_vma_readahead()
/Linux-v5.10/Documentation/firmware-guide/acpi/
Dintel-pmc-mux.rst20 configure the cable plug orientation and mode (with Alternate Modes). The driver
95 should not configure them according to the cable plug orientation. This can
96 happen for example if a retimer on the platform handles the cable plug
/Linux-v5.10/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

12345678