• Home
  • Raw
  • Download

Lines Matching refs:oflags

318 char *format_oflags(int oflags);
416 int alloc_fd(char *file, int oflags);
417 struct fd_cache *alloc_fdcache(char *file, int oflags);
1184 char *format_oflags(int oflags) in format_oflags() argument
1189 switch (oflags & 03) { in format_oflags()
1204 if (oflags & O_EXCL) in format_oflags()
1207 if (oflags & O_SYNC) in format_oflags()
1210 if (oflags & O_RAW) in format_oflags()
1212 if (oflags & O_WELLFORMED) in format_oflags()
1215 if (oflags & O_SSD) in format_oflags()
1218 if (oflags & O_LDRAW) in format_oflags()
1220 if (oflags & O_PARALLEL) in format_oflags()
1222 if (oflags & O_BIG) in format_oflags()
1224 if (oflags & O_PLACE) in format_oflags()
1226 if (oflags & O_ASYNC) in format_oflags()
1231 if (oflags & O_DIRECT) in format_oflags()
1233 if (oflags & O_DSYNC) in format_oflags()
1235 if (oflags & O_RSYNC) in format_oflags()
1406 int fd, offset, nbytes, oflags, rval; in do_read() local
1423 oflags = req->r_data.read.r_oflags; in do_read()
1435 if ((fd = alloc_fd(file, oflags)) == -1) in do_read()
1447 if (oflags & O_SSD) { in do_read()
1472 fdc = alloc_fdcache(file, oflags); in do_read()
1484 if ((oflags & O_DIRECT) && ((long)addr % fdc->c_memalign != 0)) { in do_read()
1601 int fd, nbytes, oflags, signo; in do_write() local
1625 oflags = req->r_data.write.r_oflags; in do_write()
1640 if ((fd = alloc_fd(file, oflags)) == -1) in do_write()
1651 if (oflags & O_SSD) { in do_write()
1702 fdc = alloc_fdcache(file, oflags); in do_write()
1714 if ((oflags & O_DIRECT) && ((long)addr % fdc->c_memalign != 0)) { in do_write()
1765 wrec.w_oflags = oflags; in do_write()
1816 oflags, fdc->c_memalign, in do_write()
1823 offset, nbytes % 4096, oflags); in do_write()
1911 0, oflags & O_PARALLEL); in do_write()
2082 int fd, oflags, signo, nb, i; in do_listio() local
3058 int fd, offset, nbytes, nstrides, nents, oflags; in do_rw() local
3083 oflags = req->r_data.io.r_oflags; in do_rw()
3115 if ((fd = alloc_fd(file, oflags)) == -1) in do_rw()
3144 fdc = alloc_fdcache(file, oflags); in do_rw()
3163 if (oflags & O_SSD) { in do_rw()
3220 if ((oflags & O_DIRECT) && ((long)addr % fdc->c_memalign != 0)) { in do_rw()
3283 wrec.w_oflags = oflags; in do_rw()
3446 oflags & O_PARALLEL); in do_rw()
3498 int fd, oflags, offset, nbytes; in do_fcntl() local
3511 oflags = req->r_data.io.r_oflags; in do_fcntl()
3524 if ((fd = alloc_fd(file, oflags)) == -1) in do_fcntl()
3602 int fd, oflags; in do_sync() local
3612 oflags = req->r_data.io.r_oflags; in do_sync()
3618 if ((fd = alloc_fd(file, oflags)) == -1) in do_sync()
4258 int alloc_fd(char *file, int oflags) in alloc_fd() argument
4261 struct fd_cache *alloc_fdcache(char *file, int oflags); in alloc_fd()
4263 fdc = alloc_fdcache(file, oflags); in alloc_fd()
4270 struct fd_cache *alloc_fdcache(char *file, int oflags) in alloc_fdcache() argument
4314 cp->c_oflags == oflags && strcmp(cp->c_file, file) == 0) { in alloc_fdcache()
4340 if ((fd = open(file, oflags, 0666)) < 0) { in alloc_fdcache()
4344 file, oflags, format_oflags(oflags), in alloc_fdcache()
4360 if ((fd = open(file, oflags, 0666)) < 0) { in alloc_fdcache()
4363 file, oflags, format_oflags(oflags), in alloc_fdcache()
4405 free_slot->c_oflags = oflags; in alloc_fdcache()
4414 if (oflags & O_DIRECT) { in alloc_fdcache()