Lines Matching refs:flags

70 static inline struct openflags of_read(struct openflags flags)  in of_read()  argument
72 flags.r = 1; in of_read()
73 return flags; in of_read()
76 static inline struct openflags of_write(struct openflags flags) in of_write() argument
78 flags.w = 1; in of_write()
79 return flags; in of_write()
82 static inline struct openflags of_rdwr(struct openflags flags) in of_rdwr() argument
84 return of_read(of_write(flags)); in of_rdwr()
87 static inline struct openflags of_set_rw(struct openflags flags, int r, int w) in of_set_rw() argument
89 flags.r = r; in of_set_rw()
90 flags.w = w; in of_set_rw()
91 return flags; in of_set_rw()
94 static inline struct openflags of_sync(struct openflags flags) in of_sync() argument
96 flags.s = 1; in of_sync()
97 return flags; in of_sync()
100 static inline struct openflags of_create(struct openflags flags) in of_create() argument
102 flags.c = 1; in of_create()
103 return flags; in of_create()
106 static inline struct openflags of_trunc(struct openflags flags) in of_trunc() argument
108 flags.t = 1; in of_trunc()
109 return flags; in of_trunc()
112 static inline struct openflags of_append(struct openflags flags) in of_append() argument
114 flags.a = 1; in of_append()
115 return flags; in of_append()
118 static inline struct openflags of_excl(struct openflags flags) in of_excl() argument
120 flags.e = 1; in of_excl()
121 return flags; in of_excl()
124 static inline struct openflags of_cloexec(struct openflags flags) in of_cloexec() argument
126 flags.cl = 1; in of_cloexec()
127 return flags; in of_cloexec()
142 extern int os_open_file(const char *file, struct openflags flags, int mode);
210 unsigned int flags, unsigned long *stack_out);