| /linux-6.15/drivers/usb/typec/altmodes/ |
| H A D | thunderbolt.c | 31 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() 116 if (tbt->plug[i]) in tbt_altmode_work() 119 tbt->plug[i] = NULL; in tbt_altmode_work() 147 if (tbt->plug[i]) in tbt_enter_modes_ordered() 150 tbt->plug[i] = NULL; in tbt_enter_modes_ordered() 328 if (tbt->plug[i]) in tbt_altmode_remove() 339 struct typec_altmode *plug; in tbt_ready() local 354 if (!plug) in tbt_ready() [all …]
|
| H A D | displayport.c | 726 struct typec_altmode *plug = typec_altmode_get_plug(alt, TYPEC_PLUG_SOP_P); in dp_altmode_probe() local 751 if (plug) { in dp_altmode_probe() 752 plug->desc = "Displayport"; in dp_altmode_probe() 753 plug->cable_ops = &dp_cable_ops; in dp_altmode_probe() 756 dp->plug_prime = plug; in dp_altmode_probe() 767 if (plug) in dp_altmode_probe() 768 typec_altmode_set_drvdata(plug, dp); in dp_altmode_probe() 770 dp->state = plug ? DP_STATE_ENTER_PRIME : DP_STATE_ENTER; in dp_altmode_probe()
|
| /linux-6.15/sound/core/oss/ |
| H A D | io.c | 28 #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() 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() 124 err = snd_pcm_plugin_build(plug, "I/O io", in snd_pcm_plugin_build_io() [all …]
|
| H A D | pcm_plugin.c | 35 #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 160 if (snd_BUG_ON(!plug)) in snd_pcm_plugin_build() 168 plugin->plug = plug; in snd_pcm_plugin_build() 209 plugin = snd_pcm_plug_first(plug); in calc_dst_frames() 231 plugin = snd_pcm_plug_last(plug); in calc_src_frames() 249 if (snd_BUG_ON(!plug)) in snd_pcm_plug_client_size() 264 if (snd_BUG_ON(!plug)) in snd_pcm_plug_slave_size() 574 plugin = snd_pcm_plug_last(plug); in snd_pcm_plug_client_channels_buf() 604 plugin = snd_pcm_plug_first(plug); in snd_pcm_plug_write_transfer() [all …]
|
| H A D | pcm_plugin.h | 12 #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 D | copy.c | 61 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()
|
| H A D | route.c | 87 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()
|
| /linux-6.15/block/ |
| H A D | blk-core.c | 627 struct blk_plug plug; in __submit_bio() local 632 blk_start_plug(&plug); in __submit_bio() 1126 if (tsk->plug) in blk_start_plug_nr_ios() 1129 plug->cur_ktime = 0; in blk_start_plug_nr_ios() 1133 plug->rq_count = 0; in blk_start_plug_nr_ios() 1142 tsk->plug = plug; in blk_start_plug_nr_ios() 1194 struct blk_plug *plug = current->plug; in blk_check_plugged() local 1197 if (!plug) in blk_check_plugged() 1230 plug->cur_ktime = 0; in __blk_flush_plug() 1246 if (plug == current->plug) { in blk_finish_plug() [all …]
|
| H A D | blk-lib.c | 89 struct blk_plug plug; in blkdev_issue_discard() local 92 blk_start_plug(&plug); in blkdev_issue_discard() 100 blk_finish_plug(&plug); in blkdev_issue_discard() 153 struct blk_plug plug; in blkdev_issue_write_zeroes() local 156 blk_start_plug(&plug); in blkdev_issue_write_zeroes() 169 blk_finish_plug(&plug); in blkdev_issue_write_zeroes() 231 struct blk_plug plug; in blkdev_issue_zero_pages() local 237 blk_start_plug(&plug); in blkdev_issue_zero_pages() 249 blk_finish_plug(&plug); in blkdev_issue_zero_pages() 335 struct blk_plug plug; in blkdev_issue_secure_erase() local [all …]
|
| H A D | blk-mq.c | 596 plug->nr_ios = 1; in blk_mq_rq_cache_fill() 608 struct blk_plug *plug = current->plug; in blk_mq_alloc_cached_request() local 611 if (!plug) in blk_mq_alloc_cached_request() 1381 } else if (plug->rq_count >= blk_plug_max_rq_count(plug) || in blk_add_rq_to_plug() 1398 plug->rq_count++; in blk_add_rq_to_plug() 2888 plug->rq_count = 0; in blk_mq_flush_plug_list() 2979 if (plug) { in blk_mq_get_new_requests() 2981 plug->nr_ios = 1; in blk_mq_get_new_requests() 3000 if (!plug) in blk_mq_peek_cached_request() 3058 struct blk_plug *plug = current->plug; in blk_mq_submit_bio() local [all …]
|
| H A D | blk.h | 652 struct blk_plug *plug = current->plug; in blk_time_get_ns() local 654 if (!plug || !in_task()) in blk_time_get_ns() 662 if (!plug->cur_ktime) { in blk_time_get_ns() 663 plug->cur_ktime = ktime_get_ns(); in blk_time_get_ns() 666 return plug->cur_ktime; in blk_time_get_ns()
|
| /linux-6.15/mm/ |
| H A D | swap.h | 15 void swap_read_folio(struct folio *folio, struct swap_iocb **plug); 16 void __swap_read_unplug(struct swap_iocb *plug); 17 static inline void swap_read_unplug(struct swap_iocb *plug) in swap_read_unplug() argument 19 if (unlikely(plug)) in swap_read_unplug() 20 __swap_read_unplug(plug); in swap_read_unplug() 70 struct swap_iocb **plug); 111 static inline void swap_read_folio(struct folio *folio, struct swap_iocb **plug) in swap_read_folio() argument
|
| H A D | page_io.c | 544 static void swap_read_folio_fs(struct folio *folio, struct swap_iocb **plug) in swap_read_folio_fs() argument 550 if (plug) in swap_read_folio_fs() 551 sio = *plug; in swap_read_folio_fs() 570 if (sio->pages == ARRAY_SIZE(sio->bvec) || !plug) { in swap_read_folio_fs() 574 if (plug) in swap_read_folio_fs() 575 *plug = sio; in swap_read_folio_fs() 615 void swap_read_folio(struct folio *folio, struct swap_iocb **plug) in swap_read_folio() argument 650 swap_read_folio_fs(folio, plug); in swap_read_folio()
|
| H A D | swap_state.c | 485 struct swap_iocb **plug) in read_swap_cache_async() argument 503 swap_read_folio(folio, plug); in read_swap_cache_async() 597 struct blk_plug plug; in swap_cluster_readahead() local 613 blk_start_plug(&plug); in swap_cluster_readahead() 630 blk_finish_plug(&plug); in swap_cluster_readahead() 734 struct blk_plug plug; in swap_vma_readahead() local 750 blk_start_plug(&plug); in swap_vma_readahead() 780 blk_finish_plug(&plug); in swap_vma_readahead()
|
| /linux-6.15/drivers/usb/typec/ |
| H A D | class.c | 264 partner->plug[plug->index] = altmode; in typec_altmode_set_partner() 285 partner->plug[plug->index] = NULL; in typec_altmode_put_partner() 719 struct typec_plug *plug; in number_of_alternate_modes_show() local 1112 kfree(plug); in typec_plug_release() 1214 struct typec_plug *plug; in typec_register_plug() local 1218 plug = kzalloc(sizeof(*plug), GFP_KERNEL); in typec_register_plug() 1219 if (!plug) in typec_register_plug() 1224 ida_init(&plug->mode_ids); in typec_register_plug() 1225 plug->num_altmodes = -1; in typec_register_plug() 1235 put_device(&plug->dev); in typec_register_plug() [all …]
|
| H A D | bus.c | 337 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-6.15/drivers/md/ |
| H A D | raid1-10.c | 136 struct raid1_plug_cb *plug = NULL; in raid1_add_bio_to_plug() local 148 cb = blk_check_plugged(unplug, mddev, sizeof(*plug)); in raid1_add_bio_to_plug() 152 plug = container_of(cb, struct raid1_plug_cb, cb); in raid1_add_bio_to_plug() 153 bio_list_add(&plug->pending, bio); in raid1_add_bio_to_plug() 154 if (++plug->count / MAX_PLUG_BIO >= copies) { in raid1_add_bio_to_plug()
|
| /linux-6.15/drivers/thermal/renesas/ |
| H A D | Kconfig | 9 Enable this to plug the R-Car thermal sensor driver into the Linux 18 Enable this to plug the R-Car Gen3 or RZ/G2 thermal sensor driver into 27 Enable this to plug the RZ/G2L thermal sensor driver into the Linux
|
| /linux-6.15/arch/powerpc/platforms/ps3/ |
| H A D | interrupt.c | 706 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-6.15/io_uring/ |
| H A D | opdef.c | 66 .plug = 1, 81 .plug = 1, 101 .plug = 1, 115 .plug = 1, 246 .plug = 1, 260 .plug = 1, 416 .plug = 1, 547 .plug = 1, 562 .plug = 1,
|
| /linux-6.15/sound/firewire/ |
| H A D | fcp.h | 20 unsigned short plug); 23 unsigned short plug);
|
| /linux-6.15/drivers/block/drbd/ |
| H A D | drbd_req.c | 1296 struct drbd_plug_cb *plug; in drbd_check_plugged() local 1302 plug = NULL; in drbd_check_plugged() 1303 return plug; in drbd_check_plugged() 1312 plug->most_recent_req = req; in drbd_update_plug() 1392 if (plug) in drbd_send_and_submit() 1444 struct blk_plug plug; in submit_fast_path() local 1447 blk_start_plug(&plug); in submit_fast_path() 1465 blk_finish_plug(&plug); in submit_fast_path() 1497 struct blk_plug plug; in send_and_submit_pending() local 1500 blk_start_plug(&plug); in send_and_submit_pending() [all …]
|
| /linux-6.15/Documentation/usb/ |
| H A D | chipidea.rst | 38 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-6.15/include/linux/ |
| H A D | blkdev.h | 1107 void __blk_flush_plug(struct blk_plug *plug, bool from_schedule); 1108 static inline void blk_flush_plug(struct blk_plug *plug, bool async) in blk_flush_plug() argument 1110 if (plug) in blk_flush_plug() 1111 __blk_flush_plug(plug, async); in blk_flush_plug() 1119 struct blk_plug *plug = tsk->plug; in blk_plug_invalidate_ts() local 1121 if (plug) in blk_plug_invalidate_ts() 1122 plug->cur_ktime = 0; in blk_plug_invalidate_ts() 1132 static inline void blk_start_plug_nr_ios(struct blk_plug *plug, in blk_start_plug_nr_ios() argument 1137 static inline void blk_start_plug(struct blk_plug *plug) in blk_start_plug() argument 1141 static inline void blk_finish_plug(struct blk_plug *plug) in blk_finish_plug() argument [all …]
|
| /linux-6.15/include/linux/usb/ |
| H A D | typec.h | 162 int typec_plug_set_num_altmodes(struct typec_plug *plug, int num_altmodes); 164 *typec_plug_register_altmode(struct typec_plug *plug, 337 void typec_unregister_plug(struct typec_plug *plug);
|