Home
last modified time | relevance | path

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

1234567

/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
188 calc_dst_frames(struct snd_pcm_substream * plug,snd_pcm_sframes_t frames,bool check_size) calc_dst_frames() argument
210 calc_src_frames(struct snd_pcm_substream * plug,snd_pcm_sframes_t frames,bool check_size) calc_src_frames() argument
232 snd_pcm_plug_client_size(struct snd_pcm_substream * plug,snd_pcm_uframes_t drv_frames) snd_pcm_plug_client_size() argument
247 snd_pcm_plug_slave_size(struct snd_pcm_substream * plug,snd_pcm_uframes_t clt_frames) snd_pcm_plug_slave_size() argument
356 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
542 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
582 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
624 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 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()
H A Dlinear.c134 int snd_pcm_plugin_build_linear(struct snd_pcm_substream *plug, in snd_pcm_plugin_build_linear() argument
155 err = snd_pcm_plugin_build(plug, "linear format conversion", in snd_pcm_plugin_build_linear()
/linux/include/linux/
H A Dblk_plug.h47 void __blk_flush_plug(struct blk_plug *plug, bool from_schedule);
48 static inline void blk_flush_plug(struct blk_plug *plug, bool async) in blk_flush_plug() argument
50 if (plug) in blk_flush_plug()
51 __blk_flush_plug(plug, async); in blk_flush_plug()
57 current->plug->cur_ktime = 0; in blk_plug_invalidate_ts()
74 static inline void blk_start_plug(struct blk_plug *plug) in blk_start_plug() argument
78 static inline void blk_start_plug_nr_ios(struct blk_plug *plug, in blk_start_plug_nr_ios() argument
83 static inline void blk_finish_plug(struct blk_plug *plug) in blk_finish_plug() argument
87 static inline void blk_flush_plug(struct blk_plug *plug, bool async) in blk_flush_plug() argument
/linux/block/
H A Dblk-core.c999 blk_flush_plug(current->plug, false); in bio_poll()
1171 void blk_start_plug_nr_ios(struct blk_plug *plug, unsigned short nr_ios) in blk_start_plug_nr_ios()
1176 * If this is a nested plug, don't actually assign it. in blk_start_plug_nr_ios()
1178 if (tsk->plug) in blk_start_plug_nr_ios()
1181 plug->cur_ktime = 0; in blk_start_plug_nr_ios()
1182 rq_list_init(&plug->mq_list); in blk_start_plug_nr_ios()
1183 rq_list_init(&plug->cached_rqs); in blk_start_plug_nr_ios()
1184 plug->nr_ios = min_t(unsigned short, nr_ios, BLK_MAX_REQUEST_COUNT); in blk_start_plug_nr_ios()
1185 plug->rq_count = 0; in blk_start_plug_nr_ios()
1186 plug in blk_start_plug_nr_ios()
1169 blk_start_plug_nr_ios(struct blk_plug * plug,unsigned short nr_ios) blk_start_plug_nr_ios() argument
1218 blk_start_plug(struct blk_plug * plug) blk_start_plug() argument
1224 flush_plug_callbacks(struct blk_plug * plug,bool from_schedule) flush_plug_callbacks() argument
1244 struct blk_plug *plug = current->plug; blk_check_plugged() local
1266 __blk_flush_plug(struct blk_plug * plug,bool from_schedule) __blk_flush_plug() argument
1294 blk_finish_plug(struct blk_plug * plug) blk_finish_plug() argument
[all...]
H A Dblk-mq.c622 struct blk_plug *plug, in blk_mq_rq_cache_fill()
632 .nr_tags = plug->nr_ios, in blk_mq_rq_cache_fill()
633 .cached_rqs = &plug->cached_rqs, in blk_mq_rq_cache_fill()
642 plug->nr_ios = 1;
654 struct blk_plug *plug = current->plug; in blk_mq_alloc_cached_request()
657 if (!plug) in blk_mq_alloc_cached_request()
660 if (rq_list_empty(&plug->cached_rqs)) { in blk_mq_alloc_cached_request()
661 if (plug->nr_ios == 1) in blk_mq_alloc_cached_request()
663 rq = blk_mq_rq_cache_fill(q, plug, op in blk_mq_alloc_cached_request()
615 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
647 struct blk_plug *plug = current->plug; blk_mq_alloc_cached_request() local
847 blk_mq_free_plug_rqs(struct blk_plug * plug) blk_mq_free_plug_rqs() argument
1383 blk_plug_max_rq_count(struct blk_plug * plug) blk_plug_max_rq_count() argument
1390 blk_add_rq_to_plug(struct blk_plug * plug,struct request * rq) blk_add_rq_to_plug() argument
2951 blk_mq_flush_plug_list(struct blk_plug * plug,bool from_schedule) blk_mq_flush_plug_list() argument
3029 blk_mq_get_new_requests(struct request_queue * q,struct blk_plug * plug,struct bio * bio) blk_mq_get_new_requests() argument
3062 blk_mq_get_cached_request(struct blk_plug * plug,struct request_queue * q,blk_opf_t opf) blk_mq_get_cached_request() argument
3107 struct blk_plug *plug = current->plug; blk_mq_submit_bio() local
[all...]
H A Dblk-merge.c1119 * from the passed in @q already in the plug list in blk_bio_list_merge()
1137 struct blk_plug *plug = current->plug;
1140 if (!plug || rq_list_empty(&plug->mq_list)) in blk_mq_sched_try_merge()
1143 rq = plug->mq_list.tail; in blk_mq_sched_try_merge()
1147 else if (!plug->multiple_queues) in blk_mq_sched_try_merge()
1150 rq_list_for_each(&plug->mq_list, rq) { in blk_mq_sched_try_merge()
1085 struct blk_plug *plug = current->plug; blk_attempt_plug_merge() local
H A Dfops.c195 struct blk_plug plug; in __blkdev_direct_IO()
226 blk_start_plug(&plug); in __blkdev_direct_IO()
283 blk_finish_plug(&plug); in __blkdev_direct_IO()
307 blk_finish_plug(&plug); in blkdev_bio_end_io_async()
490 struct blk_plug plug; in blkdev_writepages()
493 blk_start_plug(&plug); in blkdev_writepages()
496 blk_finish_plug(&plug); in blkdev_writepages()
179 struct blk_plug plug; __blkdev_direct_IO() local
488 struct blk_plug plug; blkdev_writepages() local
H A Dblk.h567 * changes a zone write plug zone write pointer offset), but these in blk_zone_bio_endio()
570 * plug. blk_zone_mgmt_bio_endio() handles the potential changes to zone
741 struct blk_plug *plug = current->plug; in blk_time_get_ns()
744 if (!plug || !in_task()) in blk_time_get()
754 now = READ_ONCE(plug->cur_ktime);
757 WRITE_ONCE(plug->cur_ktime, now);
719 struct blk_plug *plug = current->plug; blk_time_get_ns() local
/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/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,
80 .plug = 1,
99 .plug = 1,
112 .plug = 1,
247 .plug = 1,
260 .plug = 1,
420 .plug = 1,
550 .plug = 1,
564 .plug = 1,
587 .plug = 1,
/linux/arch/powerpc/platforms/ps3/
H A Dinterrupt.c31 * @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
235 * Sets up virq and connects the irq plug.
273 * Disconnects the irq plug an in ps3_irq_plug_setup()
706 unsigned int plug; ps3_get_irq() local
[all...]
/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/sound/firewire/
H A Dfcp.h20 unsigned short plug);
23 unsigned short plug);
/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/fs/xfs/
H A Dxfs_discard.c108 * list. We plug and chain the bios so that we only need a single completion
118 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()
473 * list. We plug and chain the bios so that we only need a single completion in xfs_discard_rtdev_extents()
484 struct blk_plug plug; in xfs_discard_rtdev_extents()
488 blk_start_plug(&plug); in xfs_discard_rtdev_extents()
515 blk_finish_plug(&plug); in xfs_trim_gather_rtextent()
474 struct blk_plug plug; xfs_discard_rtdev_extents() local
/linux/fs/hpfs/
H A 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/drivers/media/firewire/
H A 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/Documentation/driver-api/usb/
H A 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
/linux/mm/
H A Dswap_state.c894 struct blk_plug plug; in swap_vma_ra_win()
909 blk_start_plug(&plug);
920 blk_finish_plug(&plug); in swap_vma_readahead()
983 struct blk_plug plug;
996 blk_start_plug(&plug); in swapin_readahead()
1033 blk_finish_plug(&plug); in vma_ra_enabled_show()
830 struct blk_plug plug; swap_cluster_readahead() local
919 struct blk_plug plug; swap_vma_readahead() local
/linux/Documentation/firmware-guide/acpi/
H A 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

1234567