/kernel/linux/linux-5.10/fs/cifs/ |
H A D | dir.c | 227 struct tcon_link *tlink, unsigned oflags, umode_t mode, in cifs_do_create() 254 oflags, oplock, &fid->netfid, xid); in cifs_do_create() 320 if (OPEN_FMODE(oflags) & FMODE_READ) in cifs_do_create() 322 if (OPEN_FMODE(oflags) & FMODE_WRITE) in cifs_do_create() 326 if ((oflags & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL)) in cifs_do_create() 328 else if ((oflags & (O_CREAT | O_TRUNC)) == (O_CREAT | O_TRUNC)) in cifs_do_create() 330 else if ((oflags & O_CREAT) == O_CREAT) in cifs_do_create() 463 struct file *file, unsigned oflags, umode_t mode) in cifs_atomic_open() 486 if (!(oflags & O_CREAT)) { in cifs_atomic_open() 527 rc = cifs_do_create(inode, direntry, xid, tlink, oflags, mod in cifs_atomic_open() 226 cifs_do_create(struct inode *inode, struct dentry *direntry, unsigned int xid, struct tcon_link *tlink, unsigned oflags, umode_t mode, __u32 *oplock, struct cifs_fid *fid) cifs_do_create() argument 462 cifs_atomic_open(struct inode *inode, struct dentry *direntry, struct file *file, unsigned oflags, umode_t mode) cifs_atomic_open() argument 581 unsigned oflags = O_EXCL | O_CREAT | O_RDWR; cifs_create() local [all...] |
/kernel/linux/linux-6.6/fs/smb/client/ |
H A D | dir.c | 178 struct tcon_link *tlink, unsigned int oflags, umode_t mode, __u32 *oplock, 208 oflags, oplock, &fid->netfid, xid); 275 if (OPEN_FMODE(oflags) & FMODE_READ) 277 if (OPEN_FMODE(oflags) & FMODE_WRITE) 281 if ((oflags & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL)) 283 else if ((oflags & (O_CREAT | O_TRUNC)) == (O_CREAT | O_TRUNC)) 285 else if ((oflags & O_CREAT) == O_CREAT) 419 struct file *file, unsigned oflags, umode_t mode) 446 if (!(oflags & O_CREAT)) { 487 rc = cifs_do_create(inode, direntry, xid, tlink, oflags, mod 177 cifs_do_create(struct inode *inode, struct dentry *direntry, unsigned int xid, struct tcon_link *tlink, unsigned int oflags, umode_t mode, __u32 *oplock, struct cifs_fid *fid, struct cifs_open_info_data *buf) global() argument 418 cifs_atomic_open(struct inode *inode, struct dentry *direntry, struct file *file, unsigned oflags, umode_t mode) global() argument 545 unsigned oflags = O_EXCL | O_CREAT | O_RDWR; global() local [all...] |
/kernel/liteos_a/fs/vfs/operation/ |
H A D | vfs_fcntl.c | 89 int oflags = va_arg(ap, int); in VfsFcntl() local 90 if (oflags & FD_CLOEXEC) { in VfsFcntl()
|
/kernel/linux/linux-5.10/arch/x86/kernel/ |
H A D | step.c | 114 unsigned long oflags; in enable_single_step() local 136 oflags = regs->flags; in enable_single_step() 159 if (oflags & X86_EFLAGS_TF) in enable_single_step()
|
/kernel/linux/linux-5.10/kernel/ |
H A D | irq_work.c | 32 int oflags; in irq_work_claim() local 34 oflags = atomic_fetch_or(IRQ_WORK_CLAIMED | CSD_TYPE_IRQ_WORK, &work->flags); in irq_work_claim() 40 if (oflags & IRQ_WORK_PENDING) in irq_work_claim()
|
/kernel/linux/linux-6.6/arch/x86/kernel/ |
H A D | step.c | 114 unsigned long oflags; in enable_single_step() local 141 oflags = regs->flags; in enable_single_step() 164 if (oflags & X86_EFLAGS_TF) in enable_single_step()
|
/kernel/linux/linux-5.10/drivers/char/ipmi/ |
H A D | ipmi_ssif.c | 398 unsigned long oflags; in check_start_send() local 400 flags = ipmi_ssif_lock_cond(ssif_info, &oflags); in check_start_send() 552 unsigned long oflags, *flags; in retry_timeout() local 558 flags = ipmi_ssif_lock_cond(ssif_info, &oflags); in retry_timeout() 576 unsigned long oflags, *flags; in watch_timeout() local 581 flags = ipmi_ssif_lock_cond(ssif_info, &oflags); in watch_timeout() 598 unsigned long oflags, *flags; in ssif_alert() local 606 flags = ipmi_ssif_lock_cond(ssif_info, &oflags); in ssif_alert() 623 unsigned long oflags, *flags; in msg_done_handler() local 635 flags = ipmi_ssif_lock_cond(ssif_info, &oflags); in msg_done_handler() 979 unsigned long oflags, *flags; msg_written_handler() local 1050 unsigned long oflags; start_next_msg() local 1084 unsigned long oflags, *flags; sender() local 1121 unsigned long oflags, *flags; request_events() local 1138 unsigned long oflags, *flags; ssif_set_need_watch() local [all...] |
/kernel/linux/linux-6.6/drivers/char/ipmi/ |
H A D | ipmi_ssif.c | 392 unsigned long oflags; in check_start_send() local 394 flags = ipmi_ssif_lock_cond(ssif_info, &oflags); in check_start_send() 545 unsigned long oflags, *flags; in retry_timeout() local 551 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() 971 unsigned long oflags, *flags; msg_written_handler() local 1041 unsigned long oflags; start_next_msg() local 1075 unsigned long oflags, *flags; sender() local 1112 unsigned long oflags, *flags; request_events() local 1129 unsigned long oflags, *flags; ssif_set_need_watch() local [all...] |
/kernel/liteos_m/components/fs/littlefs/ |
H A D | lfs_adapter.c | 111 static int ConvertFlagToLfsOpenFlag (int oflags)
in ConvertFlagToLfsOpenFlag() argument 115 if (oflags & O_CREAT) {
in ConvertFlagToLfsOpenFlag() 119 if (oflags & O_EXCL) {
in ConvertFlagToLfsOpenFlag() 123 if (oflags & O_TRUNC) {
in ConvertFlagToLfsOpenFlag() 127 if (oflags & O_APPEND) {
in ConvertFlagToLfsOpenFlag() 131 if (oflags & O_RDWR) {
in ConvertFlagToLfsOpenFlag() 135 if (oflags & O_WRONLY) {
in ConvertFlagToLfsOpenFlag() 139 if (oflags == O_RDONLY) {
in ConvertFlagToLfsOpenFlag()
|
/kernel/uniproton/src/fs/littlefs/ |
H A D | lfs_adapter.c | 89 static S32 OsConvertFlagToLfsOpenFlag(S32 oflags)
in OsConvertFlagToLfsOpenFlag() argument 93 if (oflags & O_CREAT) {
in OsConvertFlagToLfsOpenFlag() 97 if (oflags & O_EXCL) {
in OsConvertFlagToLfsOpenFlag() 101 if (oflags & O_TRUNC) {
in OsConvertFlagToLfsOpenFlag() 105 if (oflags & O_APPEND) {
in OsConvertFlagToLfsOpenFlag() 109 if (oflags & O_RDWR) {
in OsConvertFlagToLfsOpenFlag() 113 if (oflags & O_WRONLY) {
in OsConvertFlagToLfsOpenFlag() 117 if (oflags == O_RDONLY) {
in OsConvertFlagToLfsOpenFlag()
|
/kernel/linux/linux-6.6/kernel/ |
H A D | irq_work.c | 59 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()
|
/kernel/liteos_a/syscall/ |
H A D | los_syscall.h | 215 extern int fp_open(char *fullpath, int oflags, mode_t mode);
216 extern int do_open(int dirfd, const char *path, int oflags, mode_t mode);
231 extern int SysOpen(const char *path, int oflags, ...);
303 extern int SysOpenat(int dirfd, const char *path, int oflags, ...);
313 extern int do_opendir(const char *path, int oflags);
|
H A D | fs_syscall.c | 412 int SysOpen(const char *path, int oflags, ...) in SysOpen() argument 432 if (oflags & O_CLOEXEC) { in SysOpen() 436 if ((unsigned int)oflags & O_DIRECTORY) { in SysOpen() 437 ret = do_opendir(pathRet, oflags); in SysOpen() 441 va_start(ap, oflags); in SysOpen() 446 ret = do_open(AT_FDCWD, pathRet, oflags, mode); in SysOpen() 1781 int SysOpenat(int dirfd, const char *path, int oflags, ...) in SysOpenat() argument 1790 va_start(ap, oflags); in SysOpenat() 1810 if (oflags & O_CLOEXEC) { in SysOpenat() 1819 ret = do_open(dirfd, (path ? pathRet : NULL), oflags, mod in SysOpenat() [all...] |
/kernel/liteos_a/drivers/char/bch/include/ |
H A D | blockproxy.h | 43 int block_proxy(const char *blkdev, int oflags);
|
/kernel/liteos_m/components/fs/fatfs/ |
H A D | fatfs.c | 113 static unsigned int FatFsGetMode(int oflags)
in FatFsGetMode() argument 117 if ((UINT32)oflags & O_WRONLY) {
in FatFsGetMode() 121 if (((UINT32)oflags & O_ACCMODE) & O_RDWR) {
in FatFsGetMode() 125 if ((UINT32)oflags & O_CREAT) {
in FatFsGetMode() 128 if ((UINT32)oflags & O_EXCL) {
in FatFsGetMode() 133 if ((UINT32)oflags & O_TRUNC) {
in FatFsGetMode()
|
/kernel/linux/linux-6.6/fs/xfs/ |
H A D | xfs_ioctl32.h | 81 __u32 oflags; /* open flags */ member
|
H A D | xfs_ioctl32.c | 322 hreq->oflags = hreq32.oflags; in xfs_compat_handlereq_copyin()
|
/kernel/linux/linux-5.10/fs/xfs/ |
H A D | xfs_ioctl32.h | 83 __u32 oflags; /* open flags */ member
|
H A D | xfs_ioctl32.c | 334 hreq->oflags = hreq32.oflags; in xfs_compat_handlereq_copyin()
|
/kernel/linux/linux-6.6/fs/udf/ |
H A D | inode.c | 405 int oflags; /* UDF_BLK_ flags reporting results */ member 416 map->oflags = 0; in udf_map_block() 428 map->oflags |= UDF_BLK_MAPPED; in udf_map_block() 461 if (map.oflags & UDF_BLK_MAPPED) { in __udf_get_block() 463 if (map.oflags & UDF_BLK_NEW) in __udf_get_block() 791 map->oflags = UDF_BLK_MAPPED; in inode_getblk() 908 map->oflags = UDF_BLK_NEW | UDF_BLK_MAPPED; in inode_getblk() 1217 if (*err || !(map.oflags & UDF_BLK_MAPPED)) in udf_bread() 1225 if (map.oflags & UDF_BLK_NEW) { in udf_bread()
|
/kernel/linux/linux-5.10/net/ipv4/ |
H A D | ipconfig.c | 215 unsigned short oflags; in ic_open_devs() local 242 oflags = dev->flags; in ic_open_devs() 243 if (dev_change_flags(dev, oflags | IFF_UP, NULL) < 0) { in ic_open_devs() 255 d->flags = oflags; in ic_open_devs()
|
/kernel/linux/linux-6.6/net/ipv4/ |
H A D | ipconfig.c | 214 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()
|
/kernel/liteos_a/kernel/extended/dynload/src/ |
H A D | los_load_elf.c | 52 STATIC INT32 OsELFOpen(const CHAR *fileName, INT32 oflags)
in OsELFOpen() argument 62 if (oflags & O_CLOEXEC) {
in OsELFOpen() 66 ret = open(fileName, oflags);
in OsELFOpen()
|
/kernel/linux/linux-6.6/fs/nfsd/ |
H A D | nfs4proc.c | 199 int oflags; in nfsd4_vfs_create() local 201 oflags = O_CREAT | O_LARGEFILE; in nfsd4_vfs_create() 204 oflags |= O_WRONLY; in nfsd4_vfs_create() 207 oflags |= O_RDWR; in nfsd4_vfs_create() 210 oflags |= O_RDONLY; in nfsd4_vfs_create() 215 filp = dentry_create(&path, oflags, open->op_iattr.ia_mode, in nfsd4_vfs_create()
|
/kernel/linux/linux-5.10/fs/xfs/libxfs/ |
H A D | xfs_fs.h | 553 __u32 oflags; /* open flags */ member
|