Home
last modified time | relevance | path

Searched refs:nonblock (Results 1 – 25 of 48) sorted by relevance

12

/linux/drivers/media/usb/em28xx/
H A Dem28xx-audio.c220 int nonblock, ret = 0; in snd_em28xx_capture_open() local
232 nonblock = !!(substream->f_flags & O_NONBLOCK); in snd_em28xx_capture_open()
233 if (nonblock) { in snd_em28xx_capture_open()
416 int nonblock = 0; in em28xx_vol_put() local
423 nonblock = !!(substream->f_flags & O_NONBLOCK); in em28xx_vol_put()
424 if (nonblock) { in em28xx_vol_put()
455 int nonblock = 0; in em28xx_vol_get() local
462 nonblock = !!(substream->f_flags & O_NONBLOCK); in em28xx_vol_get()
463 if (nonblock) { in em28xx_vol_get()
491 int nonblock = 0; in em28xx_vol_put_mute() local
[all …]
/linux/fs/
H A Dsignalfd.c155 int nonblock) in signalfd_dequeue() argument
165 if (!nonblock) in signalfd_dequeue()
208 bool nonblock; in signalfd_read_iter() local
214 nonblock = file->f_flags & O_NONBLOCK || iocb->ki_flags & IOCB_NOWAIT; in signalfd_read_iter()
216 ret = signalfd_dequeue(ctx, &info, nonblock); in signalfd_read_iter()
223 nonblock = 1; in signalfd_read_iter()
H A Deventpoll.c441 static bool ep_busy_loop(struct eventpoll *ep, int nonblock) in ep_busy_loop() argument
451 napi_busy_loop(napi_id, nonblock ? NULL : ep_busy_loop_end, in ep_busy_loop()
563 static inline bool ep_busy_loop(struct eventpoll *ep, int nonblock) in ep_busy_loop() argument
2278 bool nonblock) in epoll_mutex_lock() argument
2280 if (!nonblock) { in epoll_mutex_lock()
2290 bool nonblock) in do_epoll_ctl() argument
2358 error = epoll_mutex_lock(&ep->mtx, 0, nonblock); in do_epoll_ctl()
2365 error = epoll_mutex_lock(&epnested_mutex, 0, nonblock); in do_epoll_ctl()
2376 error = epoll_mutex_lock(&ep->mtx, 0, nonblock); in do_epoll_ctl()
/linux/drivers/char/
H A Dlp.c280 static int lp_wait_ready(int minor, int nonblock) in lp_wait_ready() argument
291 if (error && (nonblock || (LP_F(minor) & LP_ABORT))) in lp_wait_ready()
310 int nonblock = ((file->f_flags & O_NONBLOCK) || in lp_write() local
340 (nonblock ? PARPORT_INACTIVITY_O_NONBLOCK in lp_write()
343 if ((retv = lp_wait_ready(minor, nonblock)) == 0) in lp_write()
369 error = lp_wait_ready(minor, nonblock); in lp_write()
375 } else if (nonblock) { in lp_write()
427 int nonblock = ((file->f_flags & O_NONBLOCK) || in lp_read() local
439 (nonblock ? PARPORT_INACTIVITY_O_NONBLOCK in lp_read()
455 if (nonblock) { in lp_read()
H A Dvirtio_console.c597 void *data, bool nonblock) in __send_to_port() argument
623 if (nonblock) in __send_to_port()
775 static int wait_port_writable(struct port *port, bool nonblock) in wait_port_writable() argument
780 if (nonblock) in wait_port_writable()
801 bool nonblock; in port_fops_write() local
810 nonblock = filp->f_flags & O_NONBLOCK; in port_fops_write()
812 ret = wait_port_writable(port, nonblock); in port_fops_write()
835 nonblock = true; in port_fops_write()
837 ret = __send_to_port(port, sg, 1, count, buf, nonblock); in port_fops_write()
839 if (nonblock && ret > 0) in port_fops_write()
/linux/fs/bcachefs/
H A Dfs-io-pagecache.c693 bool nonblock) in bch2_seek_pagecache_data() argument
710 if (!nonblock) { in bch2_seek_pagecache_data()
745 unsigned min_replicas, bool nonblock) in folio_hole_offset() argument
753 FGP_LOCK|(nonblock ? FGP_NOWAIT : 0), 0); in folio_hole_offset()
782 bool nonblock) in bch2_seek_pagecache_hole() argument
789 ret = folio_hole_offset(mapping, &offset, min_replicas, nonblock); in bch2_seek_pagecache_hole()
800 bool nonblock) in bch2_clamp_data_hole() argument
805 *hole_start << 9, *hole_end << 9, min_replicas, nonblock) >> 9; in bch2_clamp_data_hole()
815 *hole_start << 9, *hole_end << 9, min_replicas, nonblock) >> 9; in bch2_clamp_data_hole()
/linux/drivers/usb/class/
H A Dusblp.c233 static int usblp_wwait(struct usblp *usblp, int nonblock);
234 static int usblp_wtest(struct usblp *usblp, int nonblock);
235 static int usblp_rwait_and_lock(struct usblp *usblp, int nonblock);
236 static int usblp_rtest(struct usblp *usblp, int nonblock);
900 static int usblp_wwait(struct usblp *usblp, int nonblock) in usblp_wwait() argument
913 rc = usblp_wtest(usblp, nonblock); in usblp_wwait()
938 static int usblp_wtest(struct usblp *usblp, int nonblock) in usblp_wtest() argument
952 if (nonblock) in usblp_wtest()
964 static int usblp_rwait_and_lock(struct usblp *usblp, int nonblock) in usblp_rwait_and_lock() argument
976 if ((rc = usblp_rtest(usblp, nonblock)) < 0) { in usblp_rwait_and_lock()
[all …]
/linux/drivers/staging/media/av7110/
H A Dav7110_av.c435 unsigned long count, int nonblock, int type) in ts_play() argument
449 if (nonblock && !FREE_COND_TS) in ts_play()
454 if (nonblock) in ts_play()
473 unsigned long count, int nonblock, int type) in dvb_play() argument
482 if (nonblock && !FREE_COND) in dvb_play()
487 if (nonblock) in dvb_play()
507 unsigned long count, int nonblock, int type) in dvb_play_kernel() argument
516 if (nonblock && !FREE_COND) in dvb_play_kernel()
521 if (nonblock) in dvb_play_kernel()
538 unsigned long count, int nonblock, int type) in dvb_aplay() argument
[all …]
/linux/include/net/
H A Dbusy_poll.h112 static inline void sk_busy_loop(struct sock *sk, int nonblock) in sk_busy_loop() argument
118 napi_busy_loop(napi_id, nonblock ? NULL : sk_busy_loop_end, sk, in sk_busy_loop()
/linux/sound/core/seq/
H A Dseq_memory.c269 int nonblock, struct file *file, in snd_seq_cell_alloc() argument
289 while (pool->free == NULL && ! nonblock && ! pool->closing) { in snd_seq_cell_alloc()
340 struct snd_seq_event_cell **cellp, int nonblock, in snd_seq_event_dup() argument
359 err = snd_seq_cell_alloc(pool, &cell, nonblock, file, mutexp); in snd_seq_event_dup()
390 err = snd_seq_cell_alloc(pool, &tmp, nonblock, file, in snd_seq_event_dup()
H A Dseq_fifo.c161 struct snd_seq_event_cell **cellp, int nonblock) in snd_seq_fifo_cell_out() argument
174 if (nonblock) { in snd_seq_fifo_cell_out()
H A Dseq_fifo.h42 int snd_seq_fifo_cell_out(struct snd_seq_fifo *f, struct snd_seq_event_cell **cellp, int nonblock);
H A Dseq_memory.h71 struct snd_seq_event_cell **cellp, int nonblock,
/linux/drivers/iio/
H A Dindustrialio-buffer.c1615 static int iio_dma_resv_lock(struct dma_buf *dmabuf, bool nonblock) in iio_dma_resv_lock() argument
1617 if (!nonblock) in iio_dma_resv_lock()
1628 struct dma_buf *dmabuf, bool nonblock) in iio_buffer_find_attachment() argument
1652 int __user *user_fd, bool nonblock) in iio_buffer_attach_dmabuf() argument
1688 err = iio_dma_resv_lock(dmabuf, nonblock); in iio_buffer_attach_dmabuf()
1757 int __user *user_req, bool nonblock) in iio_buffer_detach_dmabuf() argument
1813 bool nonblock) in iio_buffer_enqueue_dmabuf() argument
1848 attach = iio_buffer_find_attachment(ib, dmabuf, nonblock); in iio_buffer_enqueue_dmabuf()
1874 ret = iio_dma_resv_lock(dmabuf, nonblock); in iio_buffer_enqueue_dmabuf()
1878 timeout = nonblock ? 0 : msecs_to_jiffies(DMABUF_ENQUEUE_TIMEOUT_MS); in iio_buffer_enqueue_dmabuf()
[all …]
/linux/include/drm/
H A Ddrm_atomic_helper.h69 bool nonblock);
120 bool nonblock);
H A Ddrm_mode_config.h269 bool nonblock);
/linux/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_bo.c493 bool nonblock = !!(flags & drm_vmw_synccpu_dontblock); in vmw_user_bo_synccpu_grab() local
501 true, nonblock ? 0 : in vmw_user_bo_synccpu_grab()
510 ret = ttm_bo_reserve(bo, true, nonblock, NULL); in vmw_user_bo_synccpu_grab()
514 ret = ttm_bo_wait(bo, true, nonblock); in vmw_user_bo_synccpu_grab()
/linux/include/sound/
H A Dpcm_oss.h15 nonblock:1, member
/linux/net/rds/
H A Dsend.c1045 struct rds_connection *conn, int nonblock) in rds_send_mprds_hash() argument
1065 if (nonblock) in rds_send_mprds_hash()
1111 int nonblock = msg->msg_flags & MSG_DONTWAIT; in rds_sendmsg() local
1112 long timeo = sock_sndtimeo(sk, nonblock); in rds_sendmsg()
1307 cpath = &conn->c_path[rds_send_mprds_hash(rs, conn, nonblock)]; in rds_sendmsg()
1340 ret = rds_cong_wait(conn->c_fcong, dport, nonblock, rs); in rds_sendmsg()
1349 if (nonblock) { in rds_sendmsg()
H A Dcong.c368 int rds_cong_wait(struct rds_cong_map *map, __be16 port, int nonblock, in rds_cong_wait() argument
373 if (nonblock) { in rds_cong_wait()
H A Drecv.c644 int ret = 0, nonblock = msg_flags & MSG_DONTWAIT; in rds_recvmsg() local
650 timeo = sock_rcvtimeo(sk, nonblock); in rds_recvmsg()
672 if (nonblock) { in rds_recvmsg()
/linux/sound/usb/line6/
H A Ddriver.h168 unsigned int nonblock:1; member
/linux/include/media/
H A Dvideobuf2-core.h1110 loff_t *ppos, int nonblock);
1120 loff_t *ppos, int nonblock);
/linux/drivers/gpu/drm/
H A Ddrm_atomic_helper.c2008 bool nonblock) in drm_atomic_helper_commit() argument
2023 ret = drm_atomic_helper_setup_commit(state, nonblock); in drm_atomic_helper_commit()
2033 if (!nonblock) { in drm_atomic_helper_commit()
2070 if (nonblock) in drm_atomic_helper_commit()
2136 static int stall_checks(struct drm_crtc *crtc, bool nonblock) in stall_checks() argument
2152 if (!completed && nonblock) { in stall_checks()
2273 bool nonblock) in drm_atomic_helper_setup_commit() argument
2296 ret = stall_checks(crtc, nonblock); in drm_atomic_helper_setup_commit()
2340 if (nonblock && old_conn_state->commit && in drm_atomic_helper_setup_commit()
2362 if (nonblock && old_plane_state->commit && in drm_atomic_helper_setup_commit()
/linux/drivers/message/fusion/
H A Dmptctl.c179 mptctl_syscall_down(MPT_ADAPTER *ioc, int nonblock) in mptctl_syscall_down() argument
183 if (nonblock) { in mptctl_syscall_down()
624 int nonblock = (file->f_flags & O_NONBLOCK); in __mptctl_ioctl() local
673 if ((ret = mptctl_syscall_down(iocp, nonblock)) != 0) in __mptctl_ioctl()
2719 int nonblock = (filp->f_flags & O_NONBLOCK); in compat_mptfwxfer_ioctl() local
2735 if ((ret = mptctl_syscall_down(iocp, nonblock)) != 0) in compat_mptfwxfer_ioctl()
2760 int nonblock = (filp->f_flags & O_NONBLOCK); in compat_mpt_command() local
2775 if ((ret = mptctl_syscall_down(iocp, nonblock)) != 0) in compat_mpt_command()

12