Home
last modified time | relevance | path

Searched refs:oflags (Results 1 – 24 of 24) sorted by relevance

/linux/fs/smb/client/
H A Ddir.c179 struct tcon_link *tlink, unsigned int oflags, umode_t mode, __u32 *oplock, argument
209 if (cifs_fscache_enabled(inode) && (oflags & O_ACCMODE) == O_WRONLY)
217 oflags, oplock, &fid->netfid, xid);
284 if (OPEN_FMODE(oflags) & FMODE_READ)
286 if (OPEN_FMODE(oflags) & FMODE_WRITE)
292 if ((oflags & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL))
294 else if ((oflags & (O_CREAT | O_TRUNC)) == (O_CREAT | O_TRUNC))
296 else if ((oflags & O_CREAT) == O_CREAT)
311 create_options |= cifs_open_create_options(oflags, create_options);
462 struct file *file, unsigned int oflags, umode_t mode) argument
[all …]
H A Dcifsfs.h55 struct file *file, unsigned int oflags, umode_t mode);
H A Dfile.c1283 unsigned int oflags = cfile->f_flags & in cifs_reopen_file() local
1288 oflags, &oplock, &cfile->fid.netfid, xid); in cifs_reopen_file()
2512 unsigned int oflags, unsigned int cflags) in open_flags_match() argument
2517 oflags &= ~(O_CREAT | O_EXCL | O_TRUNC); in open_flags_match()
2523 if (OPEN_FMODE(oflags) & FMODE_WRITE) in open_flags_match()
2526 if (cifs_convert_flags(oflags, orw) != cifs_convert_flags(cflags, crw)) in open_flags_match()
2529 return (oflags & (O_SYNC | O_DIRECT)) == (cflags & (O_SYNC | O_DIRECT)); in open_flags_match()
H A Dcifsglob.h2379 static inline int cifs_open_create_options(unsigned int oflags, int opts) in cifs_open_create_options() argument
2382 if (oflags & O_SYNC) in cifs_open_create_options()
2384 if (oflags & O_DIRECT) in cifs_open_create_options()
/linux/drivers/char/ipmi/
H A Dipmi_ssif.c392 unsigned long oflags; in check_start_send() local
394 flags = ipmi_ssif_lock_cond(ssif_info, &oflags); in check_start_send()
544 unsigned long oflags, *flags; in retry_timeout() local
550 flags = ipmi_ssif_lock_cond(ssif_info, &oflags); in retry_timeout()
569 unsigned long oflags, *flags; in watch_timeout() local
574 flags = ipmi_ssif_lock_cond(ssif_info, &oflags); in watch_timeout()
591 unsigned long oflags, *flags; in ssif_alert() local
599 flags = ipmi_ssif_lock_cond(ssif_info, &oflags); in ssif_alert()
616 unsigned long oflags, *flags; in msg_done_handler() local
628 flags = ipmi_ssif_lock_cond(ssif_info, &oflags); in msg_done_handler()
[all …]
/linux/arch/x86/kernel/
H A Dstep.c116 unsigned long oflags; in enable_single_step() local
143 oflags = regs->flags; in enable_single_step()
166 if (oflags & X86_EFLAGS_TF) in enable_single_step()
/linux/kernel/
H A Dirq_work.c59 int oflags; in irq_work_claim() local
61 oflags = atomic_fetch_or(IRQ_WORK_CLAIMED | CSD_TYPE_IRQ_WORK, &work->node.a_flags); in irq_work_claim()
67 if (oflags & IRQ_WORK_PENDING) in irq_work_claim()
H A Dworkqueue.c1000 unsigned int oflags = worker->flags; in worker_clr_flags() local
1011 if ((flags & WORKER_NOT_RUNNING) && (oflags & WORKER_NOT_RUNNING)) in worker_clr_flags()
/linux/include/linux/
H A Dexportfs.h299 int (*permission)(struct handle_to_path_ctx *ctx, unsigned int oflags);
300 struct file * (*open)(const struct path *path, unsigned int oflags);
/linux/fs/
H A Dpidfs.c887 unsigned int oflags) in pidfs_export_permission() argument
889 if (oflags & ~(VALID_FILE_HANDLE_OPEN_FLAGS | O_LARGEFILE)) in pidfs_export_permission()
900 static struct file *pidfs_export_open(const struct path *path, unsigned int oflags) in pidfs_export_open() argument
906 oflags &= ~O_LARGEFILE; in pidfs_export_open()
907 return dentry_open(path, oflags | O_RDWR, current_cred()); in pidfs_export_open()
H A Dnsfs.c644 unsigned int oflags) in nsfs_export_permission() argument
650 static struct file *nsfs_export_open(const struct path *path, unsigned int oflags) in nsfs_export_open() argument
652 return file_open_root(path, "", oflags, 0); in nsfs_export_open()
/linux/drivers/block/
H A Dzloop.c833 static struct file *zloop_filp_open_fmt(int oflags, umode_t mode, in zloop_filp_open_fmt() argument
846 file = filp_open(p, oflags, mode); in zloop_filp_open_fmt()
886 int oflags = O_RDWR; in zloop_init_zone() local
896 oflags |= O_CREAT; in zloop_init_zone()
899 oflags |= O_DIRECT; in zloop_init_zone()
907 zone->file = zloop_filp_open_fmt(oflags, 0600, "%s/%u/cnv-%06u", in zloop_init_zone()
947 zone->file = zloop_filp_open_fmt(oflags, 0600, "%s/%u/seq-%06u", in zloop_init_zone()
/linux/fs/xfs/
H A Dxfs_handle.c256 hreq->oflags |= O_LARGEFILE; in xfs_open_by_handle()
259 permflag = hreq->oflags; in xfs_open_by_handle()
274 FD_PREPARE(fdf, 0, dentry_open(&path, hreq->oflags, cred)); in xfs_open_by_handle()
H A Dxfs_ioctl32.h81 __u32 oflags; /* open flags */ member
H A Dxfs_ioctl32.c323 hreq->oflags = hreq32.oflags; in xfs_compat_handlereq_copyin()
H A Dxfs_trace.h5695 __field(unsigned short, oflags)
5706 __entry->oflags = ppi->gp_oflags;
5717 __entry->oflags,
/linux/fs/udf/
H A Dinode.c406 int oflags; /* UDF_BLK_ flags reporting results */ member
417 map->oflags = 0; in udf_map_block()
433 map->oflags |= UDF_BLK_MAPPED; in udf_map_block()
468 if (map.oflags & UDF_BLK_MAPPED) { in __udf_get_block()
470 if (map.oflags & UDF_BLK_NEW) in __udf_get_block()
815 map->oflags = UDF_BLK_MAPPED; in inode_getblk()
933 map->oflags = UDF_BLK_NEW | UDF_BLK_MAPPED; in inode_getblk()
1248 if (*err || !(map.oflags & UDF_BLK_MAPPED)) in udf_bread()
1256 if (map.oflags & UDF_BLK_NEW) { in udf_bread()
/linux/net/ipv4/
H A Dipconfig.c214 unsigned short oflags; in ic_open_devs() local
241 oflags = dev->flags; in ic_open_devs()
242 if (dev_change_flags(dev, oflags | IFF_UP, NULL) < 0) { in ic_open_devs()
254 d->flags = oflags; in ic_open_devs()
/linux/fs/nfsd/
H A Dnfs4proc.c210 int oflags; in nfsd4_vfs_create() local
212 oflags = O_CREAT | O_LARGEFILE; in nfsd4_vfs_create()
214 oflags |= O_EXCL; in nfsd4_vfs_create()
218 oflags |= O_WRONLY; in nfsd4_vfs_create()
221 oflags |= O_RDWR; in nfsd4_vfs_create()
224 oflags |= O_RDONLY; in nfsd4_vfs_create()
229 filp = dentry_create(&path, oflags, open->op_iattr.ia_mode, in nfsd4_vfs_create()
/linux/fs/xfs/libxfs/
H A Dxfs_fs.h579 __u32 oflags; /* open flags */ member
/linux/fs/smb/server/
H A Dsmb2pdu.c2123 int oflags = O_NONBLOCK | O_LARGEFILE; in smb2_create_open_flags() local
2132 oflags |= O_RDWR; in smb2_create_open_flags()
2135 oflags |= O_WRONLY; in smb2_create_open_flags()
2138 oflags |= O_RDONLY; in smb2_create_open_flags()
2143 oflags |= O_PATH; in smb2_create_open_flags()
2153 oflags |= O_TRUNC; in smb2_create_open_flags()
2164 oflags |= O_CREAT; in smb2_create_open_flags()
2168 oflags &= ~O_CREAT; in smb2_create_open_flags()
2175 return oflags; in smb2_create_open_flags()
/linux/include/uapi/rdma/
H A Dib_user_verbs.h354 __u32 oflags; member
/linux/net/
H A Dsocket.c2699 unsigned int oflags = flags; in __sys_sendmmsg() local
2725 flags = oflags; in __sys_sendmmsg()
/linux/drivers/infiniband/core/
H A Duverbs_cmd.c613 if (!xrcd && !(cmd.oflags & O_CREAT)) { in ib_uverbs_open_xrcd()
619 if (xrcd && cmd.oflags & O_EXCL) { in ib_uverbs_open_xrcd()