/kernel/linux/linux-5.10/sound/core/oss/ |
H A D | io.c | 28 #define pcm_write(plug,buf,count) snd_pcm_oss_write3(plug,buf,count,1) 29 #define pcm_writev(plug,vec,count) snd_pcm_oss_writev3(plug,vec,count) 30 #define pcm_read(plug,buf,count) snd_pcm_oss_read3(plug,buf,count,1) 31 #define pcm_readv(plug,vec,count) snd_pcm_oss_readv3(plug,vec,count) 47 return pcm_write(plugin->plug, src_channels->area.addr, frames); in io_playback_transfer() 59 return pcm_writev(plugin->plug, buf in io_playback_transfer() 108 snd_pcm_plugin_build_io(struct snd_pcm_substream *plug, struct snd_pcm_hw_params *params, struct snd_pcm_plugin **r_plugin) snd_pcm_plugin_build_io() argument [all...] |
H A D | pcm_plugin.c | 35 #define snd_pcm_plug_first(plug) ((plug)->runtime->oss.plugin_first) 36 #define snd_pcm_plug_last(plug) ((plug)->runtime->oss.plugin_last) 107 int snd_pcm_plug_alloc(struct snd_pcm_substream *plug, snd_pcm_uframes_t frames) in snd_pcm_plug_alloc() argument 110 if (snd_BUG_ON(!snd_pcm_plug_first(plug))) in snd_pcm_plug_alloc() 112 if (snd_pcm_plug_stream(plug) == SNDRV_PCM_STREAM_PLAYBACK) { in snd_pcm_plug_alloc() 113 struct snd_pcm_plugin *plugin = snd_pcm_plug_first(plug); in snd_pcm_plug_alloc() 125 struct snd_pcm_plugin *plugin = snd_pcm_plug_last(plug); in snd_pcm_plug_alloc() 149 int snd_pcm_plugin_build(struct snd_pcm_substream *plug, in snd_pcm_plugin_build() argument 202 calc_dst_frames(struct snd_pcm_substream *plug, snd_pcm_sframes_t frames, bool check_size) calc_dst_frames() argument 224 calc_src_frames(struct snd_pcm_substream *plug, snd_pcm_sframes_t frames, bool check_size) calc_src_frames() argument 246 snd_pcm_plug_client_size(struct snd_pcm_substream *plug, snd_pcm_uframes_t drv_frames) snd_pcm_plug_client_size() argument 261 snd_pcm_plug_slave_size(struct snd_pcm_substream *plug, snd_pcm_uframes_t clt_frames) snd_pcm_plug_slave_size() argument 370 snd_pcm_plug_format_plugins(struct snd_pcm_substream *plug, struct snd_pcm_hw_params *params, struct snd_pcm_hw_params *slave_params) snd_pcm_plug_format_plugins() argument 556 snd_pcm_plug_client_channels_buf(struct snd_pcm_substream *plug, char *buf, snd_pcm_uframes_t count, struct snd_pcm_plugin_channel **channels) snd_pcm_plug_client_channels_buf() argument 595 snd_pcm_plug_write_transfer(struct snd_pcm_substream *plug, struct snd_pcm_plugin_channel *src_channels, snd_pcm_uframes_t size) snd_pcm_plug_write_transfer() argument 635 snd_pcm_plug_read_transfer(struct snd_pcm_substream *plug, struct snd_pcm_plugin_channel *dst_channels_final, snd_pcm_uframes_t size) snd_pcm_plug_read_transfer() argument [all...] |
H A D | pcm_plugin.h | 12 #define snd_pcm_plug_stream(plug) ((plug)->stream) 40 const char *name; /* plug-in name */ 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);
|
/kernel/linux/linux-6.6/sound/core/oss/ |
H A D | io.c | 28 #define pcm_write(plug,buf,count) snd_pcm_oss_write3(plug,buf,count,1) 29 #define pcm_writev(plug,vec,count) snd_pcm_oss_writev3(plug,vec,count) 30 #define pcm_read(plug,buf,count) snd_pcm_oss_read3(plug,buf,count,1) 31 #define pcm_readv(plug,vec,count) snd_pcm_oss_readv3(plug,vec,count) 47 return pcm_write(plugin->plug, src_channels->area.addr, frames); in io_playback_transfer() 59 return pcm_writev(plugin->plug, buf in io_playback_transfer() 108 snd_pcm_plugin_build_io(struct snd_pcm_substream *plug, struct snd_pcm_hw_params *params, struct snd_pcm_plugin **r_plugin) snd_pcm_plugin_build_io() argument [all...] |
H A D | pcm_plugin.c | 35 #define snd_pcm_plug_first(plug) ((plug)->runtime->oss.plugin_first) 36 #define snd_pcm_plug_last(plug) ((plug)->runtime->oss.plugin_last) 108 int snd_pcm_plug_alloc(struct snd_pcm_substream *plug, snd_pcm_uframes_t frames) in snd_pcm_plug_alloc() argument 111 if (snd_BUG_ON(!snd_pcm_plug_first(plug))) in snd_pcm_plug_alloc() 113 if (snd_pcm_plug_stream(plug) == SNDRV_PCM_STREAM_PLAYBACK) { in snd_pcm_plug_alloc() 114 struct snd_pcm_plugin *plugin = snd_pcm_plug_first(plug); in snd_pcm_plug_alloc() 126 struct snd_pcm_plugin *plugin = snd_pcm_plug_last(plug); in snd_pcm_plug_alloc() 150 int snd_pcm_plugin_build(struct snd_pcm_substream *plug, in snd_pcm_plugin_build() argument 203 calc_dst_frames(struct snd_pcm_substream *plug, snd_pcm_sframes_t frames, bool check_size) calc_dst_frames() argument 225 calc_src_frames(struct snd_pcm_substream *plug, snd_pcm_sframes_t frames, bool check_size) calc_src_frames() argument 247 snd_pcm_plug_client_size(struct snd_pcm_substream *plug, snd_pcm_uframes_t drv_frames) snd_pcm_plug_client_size() argument 262 snd_pcm_plug_slave_size(struct snd_pcm_substream *plug, snd_pcm_uframes_t clt_frames) snd_pcm_plug_slave_size() argument 371 snd_pcm_plug_format_plugins(struct snd_pcm_substream *plug, struct snd_pcm_hw_params *params, struct snd_pcm_hw_params *slave_params) snd_pcm_plug_format_plugins() argument 557 snd_pcm_plug_client_channels_buf(struct snd_pcm_substream *plug, char *buf, snd_pcm_uframes_t count, struct snd_pcm_plugin_channel **channels) snd_pcm_plug_client_channels_buf() argument 597 snd_pcm_plug_write_transfer(struct snd_pcm_substream *plug, struct snd_pcm_plugin_channel *src_channels, snd_pcm_uframes_t size) snd_pcm_plug_write_transfer() argument 639 snd_pcm_plug_read_transfer(struct snd_pcm_substream *plug, struct snd_pcm_plugin_channel *dst_channels_final, snd_pcm_uframes_t size) snd_pcm_plug_read_transfer() argument [all...] |
H A D | pcm_plugin.h | 12 #define snd_pcm_plug_stream(plug) ((plug)->stream) 40 const char *name; /* plug-in name */ 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);
|
/kernel/linux/linux-6.6/block/ |
H A D | blk-core.c | 876 * first place, directly accessing the plug instead of using in bio_poll() 880 blk_flush_plug(current->plug, false); in bio_poll() 1050 void blk_start_plug_nr_ios(struct blk_plug *plug, unsigned short nr_ios) in blk_start_plug_nr_ios() argument 1055 * If this is a nested plug, don't actually assign it. in blk_start_plug_nr_ios() 1057 if (tsk->plug) in blk_start_plug_nr_ios() 1060 plug->mq_list = NULL; in blk_start_plug_nr_ios() 1061 plug->cached_rq = NULL; in blk_start_plug_nr_ios() 1062 plug->nr_ios = min_t(unsigned short, nr_ios, BLK_MAX_REQUEST_COUNT); in blk_start_plug_nr_ios() 1063 plug->rq_count = 0; in blk_start_plug_nr_ios() 1064 plug in blk_start_plug_nr_ios() 1098 blk_start_plug(struct blk_plug *plug) blk_start_plug() argument 1104 flush_plug_callbacks(struct blk_plug *plug, bool from_schedule) flush_plug_callbacks() argument 1124 struct blk_plug *plug = current->plug; blk_check_plugged() local 1146 __blk_flush_plug(struct blk_plug *plug, bool from_schedule) __blk_flush_plug() argument 1171 blk_finish_plug(struct blk_plug *plug) blk_finish_plug() argument [all...] |
H A D | blk-lib.c | 101 struct blk_plug plug; in blkdev_issue_discard() local 104 blk_start_plug(&plug); in blkdev_issue_discard() 112 blk_finish_plug(&plug); in blkdev_issue_discard() 258 struct blk_plug plug; in blkdev_issue_zeroout() local 267 blk_start_plug(&plug); in blkdev_issue_zeroout() 282 blk_finish_plug(&plug); in blkdev_issue_zeroout() 309 struct blk_plug plug; in blkdev_issue_secure_erase() local 324 blk_start_plug(&plug); in blkdev_issue_secure_erase() 341 blk_finish_plug(&plug); in blkdev_issue_secure_erase()
|
H A D | blk-mq.c | 519 struct blk_plug *plug, in blk_mq_rq_cache_fill() 527 .nr_tags = plug->nr_ios, in blk_mq_rq_cache_fill() 528 .cached_rq = &plug->cached_rq, in blk_mq_rq_cache_fill() 535 plug->nr_ios = 1; in blk_mq_rq_cache_fill() 547 struct blk_plug *plug = current->plug; in blk_mq_alloc_cached_request() local 550 if (!plug) in blk_mq_alloc_cached_request() 553 if (rq_list_empty(plug->cached_rq)) { in blk_mq_alloc_cached_request() 554 if (plug->nr_ios == 1) in blk_mq_alloc_cached_request() 556 rq = blk_mq_rq_cache_fill(q, plug, op in blk_mq_alloc_cached_request() 518 blk_mq_rq_cache_fill(struct request_queue *q, struct blk_plug *plug, blk_opf_t opf, blk_mq_req_flags_t flags) blk_mq_rq_cache_fill() argument 739 blk_mq_free_plug_rqs(struct blk_plug *plug) blk_mq_free_plug_rqs() argument 1282 blk_plug_max_rq_count(struct blk_plug *plug) blk_plug_max_rq_count() argument 1289 blk_add_rq_to_plug(struct blk_plug *plug, struct request *rq) blk_add_rq_to_plug() argument 2711 blk_mq_plug_issue_direct(struct blk_plug *plug) blk_mq_plug_issue_direct() argument 2750 __blk_mq_flush_plug_list(struct request_queue *q, struct blk_plug *plug) __blk_mq_flush_plug_list() argument 2758 blk_mq_dispatch_plug_list(struct blk_plug *plug, bool from_sched) blk_mq_dispatch_plug_list() argument 2804 blk_mq_flush_plug_list(struct blk_plug *plug, bool from_schedule) blk_mq_flush_plug_list() argument 2899 blk_mq_get_new_requests(struct request_queue *q, struct blk_plug *plug, struct bio *bio, unsigned int nsegs) blk_mq_get_new_requests() argument 2932 blk_mq_can_use_cached_rq(struct request *rq, struct blk_plug *plug, struct bio *bio) blk_mq_can_use_cached_rq() argument 2984 struct blk_plug *plug = blk_mq_plug(bio); blk_mq_submit_bio() local [all...] |
/kernel/linux/linux-6.6/mm/ |
H A D | swap.h | 11 void swap_readpage(struct page *page, bool do_poll, struct swap_iocb **plug); 12 void __swap_read_unplug(struct swap_iocb *plug); 13 static inline void swap_read_unplug(struct swap_iocb *plug) in swap_read_unplug() argument 15 if (unlikely(plug)) in swap_read_unplug() 16 __swap_read_unplug(plug); in swap_read_unplug() 50 struct swap_iocb **plug); 67 struct swap_iocb **plug) in swap_readpage() 66 swap_readpage(struct page *page, bool do_poll, struct swap_iocb **plug) swap_readpage() argument
|
H A D | page_io.c | 426 struct swap_iocb **plug) in swap_readpage_fs() 432 if (plug) in swap_readpage_fs() 433 sio = *plug; in swap_readpage_fs() 452 if (sio->pages == ARRAY_SIZE(sio->bvec) || !plug) { in swap_readpage_fs() 456 if (plug) in swap_readpage_fs() 457 *plug = sio; in swap_readpage_fs() 493 void swap_readpage(struct page *page, bool synchronous, struct swap_iocb **plug) in swap_readpage() argument 520 swap_readpage_fs(page, plug); in swap_readpage() 425 swap_readpage_fs(struct page *page, struct swap_iocb **plug) swap_readpage_fs() argument
|
H A D | swap_state.c | 529 unsigned long addr, struct swap_iocb **plug) in read_swap_cache_async() 536 swap_readpage(retpage, false, plug); in read_swap_cache_async() 629 struct blk_plug plug; in swap_cluster_readahead() local 647 blk_start_plug(&plug); in swap_cluster_readahead() 664 blk_finish_plug(&plug); in swap_cluster_readahead() 783 struct blk_plug plug; in swap_vma_readahead() local 802 blk_start_plug(&plug); in swap_vma_readahead() 832 blk_finish_plug(&plug); in swap_vma_readahead() 527 read_swap_cache_async(swp_entry_t entry, gfp_t gfp_mask, struct vm_area_struct *vma, unsigned long addr, struct swap_iocb **plug) read_swap_cache_async() argument
|
/kernel/linux/linux-5.10/block/ |
H A D | blk-core.c | 807 struct blk_plug *plug; in submit_bio_checks() local 811 plug = blk_mq_plug(q, bio); in submit_bio_checks() 812 if (plug && plug->nowait) in submit_bio_checks() 1661 * @plug: The &struct blk_plug that needs to be initialized 1679 * plug. By flushing the pending I/O when the process goes to sleep, we avoid 1682 void blk_start_plug(struct blk_plug *plug) in blk_start_plug() argument 1687 * If this is a nested plug, don't actually assign it. in blk_start_plug() 1689 if (tsk->plug) in blk_start_plug() 1692 INIT_LIST_HEAD(&plug in blk_start_plug() 1706 flush_plug_callbacks(struct blk_plug *plug, bool from_schedule) flush_plug_callbacks() argument 1726 struct blk_plug *plug = current->plug; blk_check_plugged() local 1748 blk_flush_plug_list(struct blk_plug *plug, bool from_schedule) blk_flush_plug_list() argument 1766 blk_finish_plug(struct blk_plug *plug) blk_finish_plug() argument [all...] |
H A D | blk-lib.c | 135 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()
|
/kernel/linux/linux-6.6/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()
|
/kernel/linux/linux-5.10/drivers/usb/typec/ |
H A D | class.c | 175 /* Bind the port alt mode to the partner/plug alt mode. */ in typec_altmode_set_partner() 179 /* Bind the partner/plug alt mode to the port alt mode. */ in typec_altmode_set_partner() 181 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() 202 struct typec_plug *plug = to_typec_plug(adev->dev.parent); in typec_altmode_put_partner() local 204 partner->plug[plug->index] = NULL; in typec_altmode_put_partner() 216 * If a partner or cable plug executes Enter/Exit Mode command successfully, the 245 * Returns handle to the port that a cable plug o 664 struct typec_plug *plug = to_typec_plug(dev); typec_plug_release() local 688 typec_plug_register_altmode(struct typec_plug *plug, const struct typec_altmode_desc *desc) typec_plug_register_altmode() argument 709 struct typec_plug *plug; typec_register_plug() local 743 typec_unregister_plug(struct typec_plug *plug) typec_unregister_plug() argument [all...] |
H A D | bus.c | 220 * typec_altmode_get_plug - Find cable plug alternate mode 222 * @index: Cable plug index 224 * Increment reference count for cable plug alternate mode device. Returns 225 * handle to the cable plug alternate mode, or NULL if none is found. 232 if (port->plug[index]) { in typec_altmode_get_plug() 233 get_device(&port->plug[index]->adev.dev); in typec_altmode_get_plug() 234 return &port->plug[index]->adev; in typec_altmode_get_plug() 242 * typec_altmode_put_plug - Decrement cable plug alternate mode reference count 243 * @plug: Handle to the cable plug alternat 245 typec_altmode_put_plug(struct typec_altmode *plug) typec_altmode_put_plug() argument [all...] |
/kernel/linux/linux-6.6/drivers/usb/typec/ |
H A D | class.c | 247 /* Bind the port alt mode to the partner/plug alt mode. */ in typec_altmode_set_partner() 251 /* Bind the partner/plug alt mode to the port alt mode. */ in typec_altmode_set_partner() 253 struct typec_plug *plug = to_typec_plug(adev->dev.parent); in typec_altmode_set_partner() local 255 partner->plug[plug->index] = altmode; in typec_altmode_set_partner() 274 struct typec_plug *plug = to_typec_plug(adev->dev.parent); in typec_altmode_put_partner() local 276 partner->plug[plug->index] = NULL; in typec_altmode_put_partner() 288 * If a partner or cable plug executes Enter/Exit Mode command successfully, the 317 * Returns handle to the port that a cable plug o 621 struct typec_plug *plug; number_of_alternate_modes_show() local 915 struct typec_plug *plug = to_typec_plug(dev); typec_plug_release() local 928 struct typec_plug *plug = to_typec_plug(kobj_to_dev(kobj)); typec_plug_attr_is_visible() local 967 typec_plug_set_num_altmodes(struct typec_plug *plug, int num_altmodes) typec_plug_set_num_altmodes() argument 999 typec_plug_register_altmode(struct typec_plug *plug, const struct typec_altmode_desc *desc) typec_plug_register_altmode() argument 1020 struct typec_plug *plug; typec_register_plug() local 1055 typec_unregister_plug(struct typec_plug *plug) typec_unregister_plug() argument [all...] |
H A D | bus.c | 251 * typec_altmode_get_plug - Find cable plug alternate mode 253 * @index: Cable plug index 255 * Increment reference count for cable plug alternate mode device. Returns 256 * handle to the cable plug alternate mode, or NULL if none is found. 263 if (port->plug[index]) { in typec_altmode_get_plug() 264 get_device(&port->plug[index]->adev.dev); in typec_altmode_get_plug() 265 return &port->plug[index]->adev; in typec_altmode_get_plug() 273 * typec_altmode_put_plug - Decrement cable plug alternate mode reference count 274 * @plug: Handle to the cable plug alternat 276 typec_altmode_put_plug(struct typec_altmode *plug) typec_altmode_put_plug() argument [all...] |
/kernel/linux/linux-5.10/arch/powerpc/platforms/ps3/ |
H A D | interrupt.c | 30 * @status: 256 bit status bitmap indexed by plug 32 * @mask: 256 bit mask bitmap indexed by plug 35 * The HV maintains per SMT thread mappings of HV outlet to HV plug on 37 * supplied bitmaps indexed by plug number. The addresses of the bitmaps 45 * implementation equates HV plug value to Linux virq value, constrains each 46 * interrupt to have a system wide unique plug number, and limits the range 47 * of the plug values to map into the first dword of the bitmaps. This 48 * gives a usable range of plug values of {NUM_ISA_INTERRUPTS..63}. Note 239 * Sets up virq and connects the irq plug. 282 * Disconnects the irq plug an 705 unsigned int plug; ps3_get_irq() local [all...] |
/kernel/linux/linux-6.6/arch/powerpc/platforms/ps3/ |
H A D | interrupt.c | 31 * @status: 256 bit status bitmap indexed by plug 33 * @mask: 256 bit mask bitmap indexed by plug 36 * The HV maintains per SMT thread mappings of HV outlet to HV plug on 38 * supplied bitmaps indexed by plug number. The addresses of the bitmaps 46 * implementation equates HV plug value to Linux virq value, constrains each 47 * interrupt to have a system wide unique plug number, and limits the range 48 * of the plug values to map into the first dword of the bitmaps. This 49 * gives a usable range of plug values of {NR_IRQS_LEGACY..63}. Note 240 * Sets up virq and connects the irq plug. 283 * Disconnects the irq plug an 706 unsigned int plug; ps3_get_irq() local [all...] |
/kernel/linux/linux-5.10/sound/firewire/ |
H A D | fcp.h | 20 unsigned short plug); 23 unsigned short plug);
|
/kernel/linux/linux-6.6/sound/firewire/ |
H A D | fcp.h | 20 unsigned short plug); 23 unsigned short plug);
|
/kernel/linux/linux-6.6/io_uring/ |
H A D | opdef.c | 61 .plug = 1, 74 .plug = 1, 92 .plug = 1, 105 .plug = 1, 232 .plug = 1, 245 .plug = 1, 398 .plug = 1,
|
/kernel/linux/linux-5.10/fs/btrfs/ |
H A D | raid56.c | 91 * plug list is used by the plugging code 664 * The rbio is added to the lock owner's plug list, or merged into 665 * an rbio already on the plug list. When the lock owner unlocks, 733 * No merging, put us on the tail of the plug list, our rbio in lock_stripe_add() 754 * called as rmw or parity rebuild is completed. If the plug list has more 791 * we use the plug list to hold all the rbios in unlock_stripe() 1669 * rbios on the plug list are sorted for easier merging. 1688 static void run_plug(struct btrfs_plug_cb *plug) in run_plug() argument 1694 * sort our plug list then try to merge in run_plug() 1698 list_sort(NULL, &plug in run_plug() 1735 struct btrfs_plug_cb *plug; unplug_work() local 1742 struct btrfs_plug_cb *plug; btrfs_raid_unplug() local 1788 struct btrfs_plug_cb *plug = NULL; raid56_parity_write() local [all...] |