Home
last modified time | relevance | path

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

123456789

/linux/drivers/usb/typec/altmodes/
H A Dthunderbolt.c31 struct typec_altmode *plug[2]; member
42 struct typec_altmode *plug = tbt->plug[TYPEC_PLUG_SOP_P]; in tbt_enter_mode() local
49 if (plug) { in tbt_enter_mode()
53 vdo |= TBT_ENTER_MODE_CABLE_SPEED(TBT_CABLE_SPEED(plug->vdo)); in tbt_enter_mode()
54 vdo |= plug->vdo & TBT_CABLE_ROUNDED; in tbt_enter_mode()
55 vdo |= plug->vdo & TBT_CABLE_OPTICAL; in tbt_enter_mode()
56 vdo |= plug->vdo & TBT_CABLE_RETIMER; in tbt_enter_mode()
57 vdo |= plug->vdo & TBT_CABLE_LINK_TRAINING; in tbt_enter_mode()
77 dev_dbg(&tbt->plug[TYPEC_PLUG_SOP_P]->dev, in tbt_altmode_work()
85 dev_dbg(&tbt->plug[TYPEC_PLUG_SOP_PP]->dev, in tbt_altmode_work()
[all …]
H A Ddisplayport.c762 struct typec_altmode *plug = typec_altmode_get_plug(alt, TYPEC_PLUG_SOP_P); in dp_altmode_probe() local
775 typec_altmode_put_plug(plug); in dp_altmode_probe()
781 typec_altmode_put_plug(plug); in dp_altmode_probe()
793 if (plug) { in dp_altmode_probe()
794 plug->desc = "Displayport"; in dp_altmode_probe()
795 plug->cable_ops = &dp_cable_ops; in dp_altmode_probe()
798 dp->plug_prime = plug; in dp_altmode_probe()
809 if (plug) in dp_altmode_probe()
810 typec_altmode_set_drvdata(plug, dp); in dp_altmode_probe()
813 dp->state = plug ? DP_STATE_ENTER_PRIME : DP_STATE_ENTER; in dp_altmode_probe()
/linux/sound/core/oss/
H A Dio.c13 #define pcm_write(plug,buf,count) snd_pcm_oss_write3(plug,buf,count,1) argument
14 #define pcm_writev(plug,vec,count) snd_pcm_oss_writev3(plug,vec,count) argument
15 #define pcm_read(plug,buf,count) snd_pcm_oss_read3(plug,buf,count,1) argument
16 #define pcm_readv(plug,vec,count) snd_pcm_oss_readv3(plug,vec,count) argument
32 return pcm_write(plugin->plug, src_channels->area.addr, frames); in io_playback_transfer()
44 return pcm_writev(plugin->plug, bufs, frames); in io_playback_transfer()
58 return pcm_read(plugin->plug, dst_channels->area.addr, frames); in io_capture_transfer()
70 return pcm_readv(plugin->plug, bufs, frames); in io_capture_transfer()
93 int snd_pcm_plugin_build_io(struct snd_pcm_substream *plug, in snd_pcm_plugin_build_io() argument
104 if (snd_BUG_ON(!plug || !params)) in snd_pcm_plugin_build_io()
[all …]
H A Dpcm_plugin.c20 #define snd_pcm_plug_first(plug) ((plug)->runtime->oss.plugin_first) argument
21 #define snd_pcm_plug_last(plug) ((plug)->runtime->oss.plugin_last) argument
93 int snd_pcm_plug_alloc(struct snd_pcm_substream *plug, snd_pcm_uframes_t frames) in snd_pcm_plug_alloc() argument
96 if (snd_BUG_ON(!snd_pcm_plug_first(plug))) in snd_pcm_plug_alloc()
98 if (snd_pcm_plug_stream(plug) == SNDRV_PCM_STREAM_PLAYBACK) { in snd_pcm_plug_alloc()
99 struct snd_pcm_plugin *plugin = snd_pcm_plug_first(plug); in snd_pcm_plug_alloc()
111 struct snd_pcm_plugin *plugin = snd_pcm_plug_last(plug); in snd_pcm_plug_alloc()
135 int snd_pcm_plugin_build(struct snd_pcm_substream *plug, in snd_pcm_plugin_build() argument
145 if (snd_BUG_ON(!plug)) in snd_pcm_plugin_build()
153 plugin->plug = plug; in snd_pcm_plugin_build()
[all …]
H A Dpcm_plugin.h12 #define snd_pcm_plug_stream(plug) ((plug)->stream) argument
61 struct snd_pcm_substream *plug; member
77 int snd_pcm_plug_alloc(struct snd_pcm_substream *plug, snd_pcm_uframes_t frames);
H A Dcopy.c46 int snd_pcm_plugin_build_copy(struct snd_pcm_substream *plug, in snd_pcm_plugin_build_copy() argument
70 err = snd_pcm_plugin_build(plug, "copy", src_format, dst_format, in snd_pcm_plugin_build_copy()
H A Droute.c72 int snd_pcm_plugin_build_route(struct snd_pcm_substream *plug, in snd_pcm_plugin_build_route() argument
88 err = snd_pcm_plugin_build(plug, "route conversion", in snd_pcm_plugin_build_route()
/linux/block/
H A Dblk-core.c630 struct blk_plug plug; in __submit_bio() local
632 blk_start_plug(&plug); in __submit_bio()
649 blk_finish_plug(&plug); in __submit_bio()
957 blk_flush_plug(current->plug, false); in bio_poll()
1129 void blk_start_plug_nr_ios(struct blk_plug *plug, unsigned short nr_ios) in blk_start_plug_nr_ios() argument
1136 if (tsk->plug) in blk_start_plug_nr_ios()
1139 plug->cur_ktime = 0; in blk_start_plug_nr_ios()
1140 rq_list_init(&plug->mq_list); in blk_start_plug_nr_ios()
1141 rq_list_init(&plug->cached_rqs); in blk_start_plug_nr_ios()
1142 plug->nr_ios = min_t(unsigned short, nr_ios, BLK_MAX_REQUEST_COUNT); in blk_start_plug_nr_ios()
[all …]
H A Dblk-lib.c88 struct blk_plug plug; in blkdev_issue_discard() local
91 blk_start_plug(&plug); in blkdev_issue_discard()
99 blk_finish_plug(&plug); in blkdev_issue_discard()
151 struct blk_plug plug; in blkdev_issue_write_zeroes() local
154 blk_start_plug(&plug); in blkdev_issue_write_zeroes()
161 blk_finish_plug(&plug); in blkdev_issue_write_zeroes()
167 blk_finish_plug(&plug); in blkdev_issue_write_zeroes()
230 struct blk_plug plug; in blkdev_issue_zero_pages() local
236 blk_start_plug(&plug); in blkdev_issue_zero_pages()
242 blk_finish_plug(&plug); in blkdev_issue_zero_pages()
[all …]
H A Dblk-mq.c598 struct blk_plug *plug, in blk_mq_rq_cache_fill() argument
608 .nr_tags = plug->nr_ios, in blk_mq_rq_cache_fill()
609 .cached_rqs = &plug->cached_rqs, in blk_mq_rq_cache_fill()
618 plug->nr_ios = 1; in blk_mq_rq_cache_fill()
630 struct blk_plug *plug = current->plug; in blk_mq_alloc_cached_request() local
633 if (!plug) in blk_mq_alloc_cached_request()
636 if (rq_list_empty(&plug->cached_rqs)) { in blk_mq_alloc_cached_request()
637 if (plug->nr_ios == 1) in blk_mq_alloc_cached_request()
639 rq = blk_mq_rq_cache_fill(q, plug, opf, flags); in blk_mq_alloc_cached_request()
643 rq = rq_list_peek(&plug->cached_rqs); in blk_mq_alloc_cached_request()
[all …]
H A Dblk.h675 struct blk_plug *plug = current->plug; in blk_time_get_ns() local
677 if (!plug || !in_task()) in blk_time_get_ns()
685 if (!plug->cur_ktime) { in blk_time_get_ns()
686 plug->cur_ktime = ktime_get_ns(); in blk_time_get_ns()
689 return plug->cur_ktime; in blk_time_get_ns()
/linux/drivers/thermal/renesas/
H A DKconfig9 Enable this to plug the R-Car thermal sensor driver into the Linux
18 Enable this to plug the R-Car Gen3/Gen4 or RZ/G2 thermal sensor
27 Enable this to plug the RZ/G2L thermal sensor driver into the Linux
34 Enable this to plug the RZ/G3E thermal sensor driver into the Linux
42 Enable this to plug the RZ/G3S thermal sensor driver into the Linux
/linux/drivers/usb/typec/
H A Dclass.c262 struct typec_plug *plug = to_typec_plug(adev->dev.parent); in typec_altmode_set_partner() local
264 partner->plug[plug->index] = altmode; in typec_altmode_set_partner()
283 struct typec_plug *plug = to_typec_plug(adev->dev.parent); in typec_altmode_put_partner() local
285 partner->plug[plug->index] = NULL; in typec_altmode_put_partner()
817 struct typec_plug *plug; in number_of_alternate_modes_show() local
824 plug = to_typec_plug(dev); in number_of_alternate_modes_show()
825 num_altmodes = plug->num_altmodes; in number_of_alternate_modes_show()
1207 struct typec_plug *plug = to_typec_plug(dev); in typec_plug_release() local
1209 ida_destroy(&plug->mode_ids); in typec_plug_release()
1210 kfree(plug); in typec_plug_release()
[all …]
H A Dbus.c337 if (!altmode->plug[sop]) in typec_cable_altmode_vdm()
339 pdev = &altmode->plug[sop]->adev; in typec_cable_altmode_vdm()
365 if (port->plug[index]) { in typec_altmode_get_plug()
366 get_device(&port->plug[index]->adev.dev); in typec_altmode_get_plug()
367 return &port->plug[index]->adev; in typec_altmode_get_plug()
378 void typec_altmode_put_plug(struct typec_altmode *plug) in typec_altmode_put_plug() argument
380 if (plug) in typec_altmode_put_plug()
381 put_device(&plug->dev); in typec_altmode_put_plug()
/linux/mm/
H A Dswap.h216 void swap_read_folio(struct folio *folio, struct swap_iocb **plug);
217 void __swap_read_unplug(struct swap_iocb *plug);
218 static inline void swap_read_unplug(struct swap_iocb *plug) in swap_read_unplug() argument
220 if (unlikely(plug)) in swap_read_unplug()
221 __swap_read_unplug(plug); in swap_read_unplug()
295 struct swap_iocb **plug);
399 static inline void swap_read_folio(struct folio *folio, struct swap_iocb **plug) in swap_read_folio() argument
H A Dpage_io.c538 static void swap_read_folio_fs(struct folio *folio, struct swap_iocb **plug) in swap_read_folio_fs() argument
544 if (plug) in swap_read_folio_fs()
545 sio = *plug; in swap_read_folio_fs()
564 if (sio->pages == ARRAY_SIZE(sio->bvec) || !plug) { in swap_read_folio_fs()
568 if (plug) in swap_read_folio_fs()
569 *plug = sio; in swap_read_folio_fs()
609 void swap_read_folio(struct folio *folio, struct swap_iocb **plug) in swap_read_folio() argument
644 swap_read_folio_fs(folio, plug); in swap_read_folio()
H A Dswap_state.c617 struct swap_iocb **plug) in read_swap_cache_async() argument
635 swap_read_folio(folio, plug); in read_swap_cache_async()
729 struct blk_plug plug; in swap_cluster_readahead() local
745 blk_start_plug(&plug); in swap_cluster_readahead()
762 blk_finish_plug(&plug); in swap_cluster_readahead()
831 struct blk_plug plug; in swap_vma_readahead() local
846 blk_start_plug(&plug); in swap_vma_readahead()
889 blk_finish_plug(&plug); in swap_vma_readahead()
/linux/drivers/md/
H A Draid1-10.c131 struct raid1_plug_cb *plug = NULL; in raid1_add_bio_to_plug() local
143 cb = blk_check_plugged(unplug, mddev, sizeof(*plug)); in raid1_add_bio_to_plug()
147 plug = container_of(cb, struct raid1_plug_cb, cb); in raid1_add_bio_to_plug()
148 bio_list_add(&plug->pending, bio); in raid1_add_bio_to_plug()
149 if (++plug->count / MAX_PLUG_BIO >= copies) { in raid1_add_bio_to_plug()
/linux/io_uring/
H A Dopdef.c66 .plug = 1,
81 .plug = 1,
101 .plug = 1,
115 .plug = 1,
249 .plug = 1,
263 .plug = 1,
424 .plug = 1,
555 .plug = 1,
570 .plug = 1,
594 .plug = 1,
/linux/arch/powerpc/platforms/ps3/
H A Dinterrupt.c706 unsigned int plug; in ps3_get_irq() local
713 asm volatile("cntlzd %0,%1" : "=r" (plug) : "r" (x)); in ps3_get_irq()
714 plug &= 0x3f; in ps3_get_irq()
716 if (unlikely(!plug)) { in ps3_get_irq()
725 if (unlikely(plug < NR_IRQS_LEGACY || plug > PS3_PLUG_MAX)) { in ps3_get_irq()
734 if (test_bit(63 - plug, &pd->ipi_mask)) in ps3_get_irq()
735 lv1_end_of_interrupt_ext(pd->ppe_id, pd->thread_id, plug); in ps3_get_irq()
737 return plug; in ps3_get_irq()
/linux/drivers/block/drbd/
H A Ddrbd_req.c1275 struct drbd_plug_cb *plug = container_of(cb, struct drbd_plug_cb, cb); in drbd_unplug() local
1276 struct drbd_resource *resource = plug->cb.data; in drbd_unplug()
1277 struct drbd_request *req = plug->most_recent_req; in drbd_unplug()
1297 struct drbd_plug_cb *plug; in drbd_check_plugged() local
1298 struct blk_plug_cb *cb = blk_check_plugged(drbd_unplug, resource, sizeof(*plug)); in drbd_check_plugged()
1301 plug = container_of(cb, struct drbd_plug_cb, cb); in drbd_check_plugged()
1303 plug = NULL; in drbd_check_plugged()
1304 return plug; in drbd_check_plugged()
1307 static void drbd_update_plug(struct drbd_plug_cb *plug, struct drbd_request *req) in drbd_update_plug() argument
1309 struct drbd_request *tmp = plug->most_recent_req; in drbd_update_plug()
[all …]
/linux/Documentation/usb/
H A Dchipidea.rst38 2) Connect 2 boards with usb cable: 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.
66 5) Remove B-device (unplug micro B plug) and insert again in 10 seconds;
69 6) Remove B-device (unplug micro B plug) and insert again after 10 seconds;
/linux/sound/firewire/
H A Dfcp.h20 unsigned short plug);
23 unsigned short plug);
/linux/include/linux/
H A Dblkdev.h1201 void __blk_flush_plug(struct blk_plug *plug, bool from_schedule);
1202 static inline void blk_flush_plug(struct blk_plug *plug, bool async) in blk_flush_plug() argument
1204 if (plug) in blk_flush_plug()
1205 __blk_flush_plug(plug, async); in blk_flush_plug()
1213 struct blk_plug *plug = tsk->plug; in blk_plug_invalidate_ts() local
1215 if (plug) in blk_plug_invalidate_ts()
1216 plug->cur_ktime = 0; in blk_plug_invalidate_ts()
1226 static inline void blk_start_plug_nr_ios(struct blk_plug *plug, in blk_start_plug_nr_ios() argument
1231 static inline void blk_start_plug(struct blk_plug *plug) in blk_start_plug() argument
1235 static inline void blk_finish_plug(struct blk_plug *plug) in blk_finish_plug() argument
[all …]
/linux/fs/xfs/
H A Dxfs_discard.c118 struct blk_plug plug; in xfs_discard_extents() local
120 blk_start_plug(&plug); in xfs_discard_extents()
141 blk_finish_plug(&plug); in xfs_discard_extents()
474 struct blk_plug plug; in xfs_discard_rtdev_extents() local
478 blk_start_plug(&plug); in xfs_discard_rtdev_extents()
505 blk_finish_plug(&plug); in xfs_discard_rtdev_extents()

123456789