Home
last modified time | relevance | path

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

/linux-4.1.27/include/net/
Dbusy_poll.h78 static inline bool sk_busy_loop(struct sock *sk, int nonblock) in sk_busy_loop() argument
80 unsigned long end_time = !nonblock ? sk_busy_loop_end_time(sk) : 0; in sk_busy_loop()
111 } while (!nonblock && skb_queue_empty(&sk->sk_receive_queue) && in sk_busy_loop()
163 static inline bool sk_busy_loop(struct sock *sk, int nonblock) in sk_busy_loop() argument
Dtcp.h439 int tcp_recvmsg(struct sock *sk, struct msghdr *msg, size_t len, int nonblock,
/linux-4.1.27/drivers/media/usb/em28xx/
Dem28xx-audio.c254 int nonblock, ret = 0; in snd_em28xx_capture_open() local
267 nonblock = !!(substream->f_flags & O_NONBLOCK); in snd_em28xx_capture_open()
268 if (nonblock) { in snd_em28xx_capture_open()
502 int nonblock = 0; in em28xx_vol_put() local
509 nonblock = !!(substream->f_flags & O_NONBLOCK); in em28xx_vol_put()
510 if (nonblock) { in em28xx_vol_put()
540 int nonblock = 0; in em28xx_vol_get() local
547 nonblock = !!(substream->f_flags & O_NONBLOCK); in em28xx_vol_get()
548 if (nonblock) { in em28xx_vol_get()
575 int nonblock = 0; in em28xx_vol_put_mute() local
[all …]
/linux-4.1.27/fs/
Dsignalfd.c160 int nonblock) in signalfd_dequeue() argument
169 if (!nonblock) in signalfd_dequeue()
209 int nonblock = file->f_flags & O_NONBLOCK; in signalfd_read() local
219 ret = signalfd_dequeue(ctx, &info, nonblock); in signalfd_read()
227 nonblock = 1; in signalfd_read()
/linux-4.1.27/drivers/char/
Dlp.c273 static int lp_wait_ready(int minor, int nonblock) in lp_wait_ready() argument
284 if (error && (nonblock || (LP_F(minor) & LP_ABORT))) in lp_wait_ready()
303 int nonblock = ((file->f_flags & O_NONBLOCK) || in lp_write() local
333 (nonblock ? PARPORT_INACTIVITY_O_NONBLOCK in lp_write()
336 if ((retv = lp_wait_ready (minor, nonblock)) == 0) in lp_write()
362 error = lp_wait_ready (minor, nonblock); in lp_write()
368 } else if (nonblock) { in lp_write()
420 int nonblock = ((file->f_flags & O_NONBLOCK) || in lp_read() local
432 (nonblock ? PARPORT_INACTIVITY_O_NONBLOCK in lp_read()
448 if (nonblock) { in lp_read()
Dvirtio_console.c617 void *data, bool nonblock) in __send_to_port() argument
643 if (nonblock) in __send_to_port()
795 static int wait_port_writable(struct port *port, bool nonblock) in wait_port_writable() argument
800 if (nonblock) in wait_port_writable()
821 bool nonblock; in port_fops_write() local
830 nonblock = filp->f_flags & O_NONBLOCK; in port_fops_write()
832 ret = wait_port_writable(port, nonblock); in port_fops_write()
855 nonblock = true; in port_fops_write()
857 ret = __send_to_port(port, sg, 1, count, buf, nonblock); in port_fops_write()
859 if (nonblock && ret > 0) in port_fops_write()
Drandom.c1343 _random_read(int nonblock, char __user *buf, size_t nbytes) in _random_read() argument
1362 if (nonblock) in _random_read()
/linux-4.1.27/arch/mn10300/kernel/
Dgdb-io-serial.c99 int gdbstub_io_rx_char(unsigned char *_ch, int nonblock) in gdbstub_io_rx_char() argument
120 if (nonblock) in gdbstub_io_rx_char()
Dgdb-io-ttysm.c181 int gdbstub_io_rx_char(unsigned char *_ch, int nonblock) in gdbstub_io_rx_char() argument
202 if (nonblock) in gdbstub_io_rx_char()
/linux-4.1.27/sound/core/seq/
Dseq_memory.c224 int nonblock, struct file *file) in snd_seq_cell_alloc() argument
243 while (pool->free == NULL && ! nonblock && ! pool->closing) { in snd_seq_cell_alloc()
290 struct snd_seq_event_cell **cellp, int nonblock, in snd_seq_event_dup() argument
308 err = snd_seq_cell_alloc(pool, &cell, nonblock, file); in snd_seq_event_dup()
334 err = snd_seq_cell_alloc(pool, &tmp, nonblock, file); in snd_seq_event_dup()
Dseq_fifo.h57 int snd_seq_fifo_cell_out(struct snd_seq_fifo *f, struct snd_seq_event_cell **cellp, int nonblock);
Dseq_fifo.c172 struct snd_seq_event_cell **cellp, int nonblock) in snd_seq_fifo_cell_out() argument
185 if (nonblock) { in snd_seq_fifo_cell_out()
Dseq_memory.h69 struct snd_seq_event_cell **cellp, int nonblock, struct file *file);
Dseq_clientmgr.c432 int nonblock; in snd_seq_read() local
434 nonblock = (file->f_flags & O_NONBLOCK) || result > 0; in snd_seq_read()
435 if ((err = snd_seq_fifo_cell_out(fifo, &cell, nonblock)) < 0) { in snd_seq_read()
/linux-4.1.27/drivers/usb/class/
Dusblp.c237 static int usblp_wwait(struct usblp *usblp, int nonblock);
238 static int usblp_wtest(struct usblp *usblp, int nonblock);
239 static int usblp_rwait_and_lock(struct usblp *usblp, int nonblock);
240 static int usblp_rtest(struct usblp *usblp, int nonblock);
864 static int usblp_wwait(struct usblp *usblp, int nonblock) in usblp_wwait() argument
877 rc = usblp_wtest(usblp, nonblock); in usblp_wwait()
902 static int usblp_wtest(struct usblp *usblp, int nonblock) in usblp_wtest() argument
916 if (nonblock) in usblp_wtest()
928 static int usblp_rwait_and_lock(struct usblp *usblp, int nonblock) in usblp_rwait_and_lock() argument
940 if ((rc = usblp_rtest(usblp, nonblock)) < 0) { in usblp_rwait_and_lock()
[all …]
/linux-4.1.27/arch/frv/kernel/
Dgdb-io.c139 int gdbstub_rx_char(unsigned char *_ch, int nonblock) in gdbstub_rx_char() argument
158 if (nonblock) in gdbstub_rx_char()
/linux-4.1.27/drivers/media/pci/ttpci/
Dav7110_av.c446 unsigned long count, int nonblock, int type) in ts_play() argument
460 if (nonblock && !FREE_COND_TS) in ts_play()
465 if (nonblock) in ts_play()
485 unsigned long count, int nonblock, int type) in dvb_play() argument
493 if (nonblock && !FREE_COND) in dvb_play()
498 if (nonblock) in dvb_play()
518 unsigned long count, int nonblock, int type) in dvb_play_kernel() argument
526 if (nonblock && !FREE_COND) in dvb_play_kernel()
531 if (nonblock) in dvb_play_kernel()
548 unsigned long count, int nonblock, int type) in dvb_aplay() argument
[all …]
/linux-4.1.27/drivers/staging/lustre/lustre/lclient/
Dlcommon_misc.c127 int cl_get_grouplock(struct cl_object *obj, unsigned long gid, int nonblock, in cl_get_grouplock() argument
162 enqflags = CEF_MUST | (nonblock ? CEF_NONBLOCK : 0); in cl_get_grouplock()
Dlcommon_cl.c513 int nonblock) in ccc_transient_page_own() argument
/linux-4.1.27/include/sound/
Dpcm_oss.h30 nonblock:1, member
/linux-4.1.27/sound/core/
Dpcm_lib.c2015 int nonblock, in snd_pcm_lib_write1() argument
2052 if (nonblock) { in snd_pcm_lib_write1()
2131 int nonblock; in snd_pcm_lib_write() local
2138 nonblock = !!(substream->f_flags & O_NONBLOCK); in snd_pcm_lib_write()
2143 return snd_pcm_lib_write1(substream, (unsigned long)buf, size, nonblock, in snd_pcm_lib_write()
2194 int nonblock; in snd_pcm_lib_writev() local
2201 nonblock = !!(substream->f_flags & O_NONBLOCK); in snd_pcm_lib_writev()
2206 nonblock, snd_pcm_lib_writev_transfer); in snd_pcm_lib_writev()
2233 int nonblock, in snd_pcm_lib_read1() argument
2282 if (nonblock) { in snd_pcm_lib_read1()
[all …]
Dpcm_native.c1659 int nonblock = 0; in snd_pcm_drain() local
1678 nonblock = 1; in snd_pcm_drain()
1680 nonblock = 1; in snd_pcm_drain()
1693 if (nonblock) { in snd_pcm_drain()
/linux-4.1.27/drivers/staging/lustre/lustre/llite/
Dvvp_page.c80 int nonblock) in vvp_page_own() argument
86 if (nonblock) { in vvp_page_own()
430 struct cl_io *unused, int nonblock) in vvp_transient_page_own() argument
/linux-4.1.27/net/rds/
Drecv.c404 int ret = 0, nonblock = msg_flags & MSG_DONTWAIT; in rds_recvmsg() local
409 timeo = sock_rcvtimeo(sk, nonblock); in rds_recvmsg()
430 if (nonblock) { in rds_recvmsg()
Dcong.c360 int rds_cong_wait(struct rds_cong_map *map, __be16 port, int nonblock, in rds_cong_wait() argument
365 if (nonblock) { in rds_cong_wait()
Dsend.c963 int nonblock = msg->msg_flags & MSG_DONTWAIT; in rds_sendmsg() local
964 long timeo = sock_sndtimeo(sk, nonblock); in rds_sendmsg()
1059 ret = rds_cong_wait(conn->c_fcong, dport, nonblock, rs); in rds_sendmsg()
1073 if (nonblock) { in rds_sendmsg()
Drds.h603 int rds_cong_wait(struct rds_cong_map *map, __be16 port, int nonblock, struct rds_sock *rs);
/linux-4.1.27/arch/frv/include/asm/
Dgdb-stub.h86 extern int gdbstub_rx_char(unsigned char *_ch, int nonblock);
/linux-4.1.27/include/media/
Dvideobuf2-core.h478 loff_t *ppos, int nonblock);
480 loff_t *ppos, int nonblock);
/linux-4.1.27/drivers/staging/lustre/lustre/include/
Dlclient.h306 struct cl_io *io, int nonblock);
402 int cl_get_grouplock(struct cl_object *obj, unsigned long gid, int nonblock,
Dcl_object.h857 struct cl_io *io, int nonblock);
/linux-4.1.27/fs/nfs/
Dwrite.c325 struct nfs_page *req, bool nonblock) in nfs_unroll_locks_and_wait() argument
346 if (!nonblock) in nfs_unroll_locks_and_wait()
428 nfs_lock_and_join_requests(struct page *page, bool nonblock) in nfs_lock_and_join_requests() argument
461 if (!nonblock && ret == -EAGAIN) { in nfs_lock_and_join_requests()
493 subreq, nonblock); in nfs_lock_and_join_requests()
553 struct page *page, bool nonblock) in nfs_page_async_flush() argument
558 req = nfs_lock_and_join_requests(page, nonblock); in nfs_page_async_flush()
Dpagelist.c168 nfs_page_group_lock(struct nfs_page *req, bool nonblock) in nfs_page_group_lock() argument
177 if (!nonblock) in nfs_page_group_lock()
/linux-4.1.27/fs/gfs2/
Dinode.h102 extern struct inode *gfs2_ilookup(struct super_block *sb, u64 no_addr, int nonblock);
Dglock.c576 static void run_queue(struct gfs2_glock *gl, const int nonblock) in run_queue() argument
592 if (nonblock) in run_queue()
/linux-4.1.27/arch/mn10300/include/asm/
Dgdb-stub.h102 extern asmlinkage int gdbstub_io_rx_char(unsigned char *_ch, int nonblock);
/linux-4.1.27/include/linux/
Dnetlink.h71 extern int netlink_unicast(struct sock *ssk, struct sk_buff *skb, __u32 portid, int nonblock);
/linux-4.1.27/drivers/staging/lustre/lustre/lov/
Dlov_page.c84 int nonblock) in lov_page_own() argument
/linux-4.1.27/drivers/message/fusion/
Dmptctl.c179 mptctl_syscall_down(MPT_ADAPTER *ioc, int nonblock) in mptctl_syscall_down() argument
183 if (nonblock) { in mptctl_syscall_down()
627 int nonblock = (file->f_flags & O_NONBLOCK); in __mptctl_ioctl() local
677 if ((ret = mptctl_syscall_down(iocp, nonblock)) != 0) in __mptctl_ioctl()
2828 int nonblock = (filp->f_flags & O_NONBLOCK); in compat_mptfwxfer_ioctl() local
2844 if ((ret = mptctl_syscall_down(iocp, nonblock)) != 0) in compat_mptfwxfer_ioctl()
2869 int nonblock = (filp->f_flags & O_NONBLOCK); in compat_mpt_command() local
2884 if ((ret = mptctl_syscall_down(iocp, nonblock)) != 0) in compat_mpt_command()
/linux-4.1.27/sound/oss/
Dsequencer.c76 static int seq_queue(unsigned char *note, char nonblock);
327 static int seq_queue(unsigned char *note, char nonblock) in seq_queue() argument
340 if (!nonblock && qlen >= SEQ_MAX_QUEUE && !waitqueue_active(&seq_sleeper)) { in seq_queue()
Dswarm_cs4297a.c1617 static int drain_adc(struct cs4297a_state *s, int nonblock) in drain_adc() argument
1626 static int drain_dac(struct cs4297a_state *s, int nonblock) in drain_dac() argument
1636 if (nonblock) in drain_dac()
/linux-4.1.27/sound/core/oss/
Dpcm_oss.c2271 if (setup->nonblock) in snd_pcm_oss_init_substream()
2388 int nonblock; in snd_pcm_oss_open() local
2420 nonblock = !!(file->f_flags & O_NONBLOCK); in snd_pcm_oss_open()
2421 if (!nonblock) in snd_pcm_oss_open()
2422 nonblock = nonblock_open; in snd_pcm_oss_open()
2433 if (nonblock) { in snd_pcm_oss_open()
2858 setup->nonblock ? " non-block" : "", in snd_pcm_oss_proc_read()
2921 template.nonblock = 1; in snd_pcm_oss_proc_write()
/linux-4.1.27/net/dccp/
Dproto.c808 int dccp_recvmsg(struct sock *sk, struct msghdr *msg, size_t len, int nonblock, in dccp_recvmsg() argument
821 timeo = sock_rcvtimeo(sk, nonblock); in dccp_recvmsg()
Ddccp.h313 int dccp_recvmsg(struct sock *sk, struct msghdr *msg, size_t len, int nonblock,
/linux-4.1.27/net/llc/
Daf_llc.c711 const int nonblock = flags & MSG_DONTWAIT; in llc_ui_recvmsg() local
728 timeo = sock_rcvtimeo(sk, nonblock); in llc_ui_recvmsg()
/linux-4.1.27/drivers/block/drbd/
Ddrbd_actlog.c229 static struct lc_element *_al_get(struct drbd_device *device, unsigned int enr, bool nonblock) in _al_get() argument
244 if (nonblock) in _al_get()
/linux-4.1.27/drivers/gpu/drm/vmwgfx/
Dvmwgfx_resource.c576 bool nonblock = !!(flags & drm_vmw_synccpu_dontblock); in vmw_user_dmabuf_synccpu_grab() local
579 if (nonblock) in vmw_user_dmabuf_synccpu_grab()
/linux-4.1.27/drivers/staging/lustre/lustre/obdclass/
Dcl_page.c864 struct cl_page *pg, int nonblock) in cl_page_own0() argument
880 io, nonblock); in cl_page_own0()
/linux-4.1.27/net/ipv4/
Dtcp.c1546 int tcp_recvmsg(struct sock *sk, struct msghdr *msg, size_t len, int nonblock, in tcp_recvmsg() argument
1566 sk_busy_loop(sk, nonblock); in tcp_recvmsg()
1574 timeo = sock_rcvtimeo(sk, nonblock); in tcp_recvmsg()
/linux-4.1.27/drivers/tty/
Dtty_io.c2429 int nonblock; in fionbio() local
2431 if (get_user(nonblock, p)) in fionbio()
2435 if (nonblock) in fionbio()
/linux-4.1.27/drivers/media/v4l2-core/
Dvideobuf2-core.c2968 loff_t *ppos, int nonblock, int read) in __vb2_perform_fileio() argument
2985 nonblock ? "non" : ""); in __vb2_perform_fileio()
3017 ret = vb2_internal_dqbuf(q, &fileio->b, nonblock); in __vb2_perform_fileio()
/linux-4.1.27/drivers/usb/gadget/legacy/
Dinode.c295 goto nonblock; in get_ready_ep()
299 nonblock: in get_ready_ep()
/linux-4.1.27/drivers/usb/gadget/function/
Df_fs.c190 static int ffs_mutex_lock(struct mutex *mutex, unsigned nonblock)
3471 static int ffs_mutex_lock(struct mutex *mutex, unsigned nonblock) in ffs_mutex_lock() argument
3473 return nonblock in ffs_mutex_lock()
/linux-4.1.27/drivers/staging/lustre/lustre/obdecho/
Decho_client.c235 struct cl_io *io, int nonblock) in echo_page_own() argument
239 if (!nonblock) in echo_page_own()
/linux-4.1.27/drivers/mmc/card/
Dmmc_test.c1464 bool nonblock, int min_sg_len) in mmc_test_area_io_seq() argument
1493 if (nonblock) in mmc_test_area_io_seq()
/linux-4.1.27/net/netlink/
Daf_netlink.c1825 u32 portid, int nonblock) in netlink_unicast() argument
1833 timeo = sock_sndtimeo(ssk, nonblock); in netlink_unicast()