Home
last modified time | relevance | path

Searched refs:bfs (Results 1 – 25 of 37) sorted by relevance

12

/netbsd-src/sys/fs/sysvbfs/
H A Dbfs.c72 STATIC int bfs_init_superblock(struct bfs *, int, size_t *);
73 STATIC int bfs_init_inode(struct bfs *, uint8_t *, size_t *);
74 STATIC int bfs_init_dirent(struct bfs *, uint8_t *);
78 STATIC bool bfs_writeback_dirent(const struct bfs *, struct bfs_dirent *,
80 STATIC bool bfs_writeback_inode(const struct bfs *, struct bfs_inode *);
83 bfs_init2(struct bfs **bfsp, int bfs_sector, struct sector_io_ops *io, in bfs_init2()
86 struct bfs *bfs; in bfs_init2() local
93 if ((bfs = (void *)__MALLOC(sizeof(struct bfs), M_BFS, M_WAITOK)) == 0) in bfs_init2()
95 memset(bfs, 0, sizeof *bfs); in bfs_init2()
96 bfs->io = io; in bfs_init2()
[all …]
H A Dbfs.h111 struct bfs { struct
147 int bfs_init2(struct bfs **, int, struct sector_io_ops *, bool); argument
148 void bfs_fini(struct bfs *);
149 int bfs_file_read(const struct bfs *, const char *, void *, size_t, size_t *);
150 int bfs_file_write(struct bfs *, const char *, void *, size_t);
151 int bfs_file_create(struct bfs *, const char *, void *, size_t,
153 int bfs_file_delete(struct bfs *, const char *, bool);
154 int bfs_file_rename(struct bfs *, const char *, const char *);
155 bool bfs_file_lookup(const struct bfs *, const char *, int *, int *,
159 bool bfs_dump(const struct bfs *);
[all …]
H A Dsysvbfs_vnops.c75 struct bfs *bfs = bnode->bmp->bfs; /* my filesystem */ in sysvbfs_lookup() local
104 if (!bfs_dirent_lookup_by_name(bfs, cnp->cn_nameptr, in sysvbfs_lookup()
141 struct bfs *bfs = bmp->bfs; in sysvbfs_create() local
155 if ((err = bfs_file_create(bfs, a->a_cnp->cn_nameptr, 0, 0, &attr)) in sysvbfs_create()
161 if (!bfs_dirent_lookup_by_name(bfs, a->a_cnp->cn_nameptr, &dirent)) in sysvbfs_create()
231 bfs_inode_set_attr(bnode->bmp->bfs, bnode->inode, &attr); in sysvbfs_close()
338 struct bfs *bfs = bnode->bmp->bfs; in sysvbfs_setattr() local
413 bfs_inode_set_attr(bfs, inode, attr); in sysvbfs_setattr()
521 struct bfs *bfs = bmp->bfs; in sysvbfs_remove() local
531 if ((err = bfs_file_delete(bfs, ap->a_cnp->cn_nameptr, true)) != 0) in sysvbfs_remove()
[all …]
H A Dsysvbfs_vfsops.c189 if ((error = sysvbfs_bfs_init(&bmp->bfs, devvp)) != 0) { in sysvbfs_mountfs()
234 sysvbfs_bfs_fini(bmp->bfs); in sysvbfs_unmount()
261 struct bfs *bfs = bmp->bfs; in sysvbfs_statvfs() local
265 data_block = (bfs->data_end - bfs->data_start) >> BFS_BSHIFT; in sysvbfs_statvfs()
266 if (bfs_inode_alloc(bfs, 0, 0, &free_block) != 0) in sysvbfs_statvfs()
269 free_block = (bfs->data_end >> BFS_BSHIFT) - free_block; in sysvbfs_statvfs()
271 DPRINTF("%s: %d %d %d\n", __func__, bfs->data_start, in sysvbfs_statvfs()
272 bfs->data_end, free_block); in sysvbfs_statvfs()
281 f->f_files = bfs->max_inode; in sysvbfs_statvfs()
282 f->f_ffree = bfs->max_inode - bfs->n_inode; in sysvbfs_statvfs()
[all …]
H A Dbfs_sysvbfs.c58 sysvbfs_bfs_init(struct bfs **bfsp, struct vnode *vp) in sysvbfs_bfs_init()
78 sysvbfs_bfs_fini(struct bfs *bfs) in sysvbfs_bfs_fini() argument
81 free(bfs->io, M_TEMP); in sysvbfs_bfs_fini()
82 bfs_fini(bfs); in sysvbfs_bfs_fini()
H A Dsysvbfs.h35 struct bfs;
61 struct bfs *bfs; member
H A DMakefile5 INCS= bfs.h sysvbfs_args.h
H A Dfiles.sysvbfs6 file fs/sysvbfs/bfs.c sysvbfs
/netbsd-src/usr.bin/tftp/
H A Dtftpsubs.c66 } bfs[2]; variable
100 bfs[0].counter = BF_ALLOC; /* pass out the first buffer */ in rw_init()
102 bfs[1].counter = BF_FREE; in rw_init()
104 return (struct tftphdr *)(void *)bfs[0].buf; in rw_init()
119 bfs[current].counter = BF_FREE; /* free old one */ in readit()
122 b = &bfs[current]; /* look at new buffer */ in readit()
146 b = &bfs[nextone]; /* look at "next" buffer */ in read_ahead()
187 bfs[current].counter = ct; /* set size of data to write */ in writeit()
189 if (bfs[current].counter != BF_FREE) /* if not free */ in writeit()
192 bfs[current].counter = BF_ALLOC; /* mark as alloc'd */ in writeit()
[all …]
/netbsd-src/sys/arch/ews4800mips/stand/common/
H A Ddiskutil.c102 struct bfs *bfs; in bfs_ls() local
110 if (bfs_init(&bfs) != 0) in bfs_ls()
113 for (file = bfs->dirent, i = 0; i < bfs->max_dirent; i++, file++) { in bfs_ls()
115 inode = &bfs->inode[file->inode - BFS_ROOT_INODE]; in bfs_ls()
122 bfs_fini(bfs); in bfs_ls()
H A Dmem.c55 struct bfs *bfs; in cmd_mem() local
91 if (bfs_init(&bfs) != 0) { in cmd_mem()
114 if (bfs_file_write(bfs, filename, p, size) != 0) in cmd_mem()
116 bfs_fini(bfs); in cmd_mem()
120 if (bfs_file_read(bfs, filename, p, size, 0) != 0) in cmd_mem()
124 bfs_fini(bfs); in cmd_mem()
129 if (bfs_file_write(bfs, filename, p, size) != 0) in cmd_mem()
131 bfs_fini(bfs); in cmd_mem()
H A Dbootfs.c43 FS_DEF(bfs);
50 struct bfs *bfs; member
66 if (bfs_init(&file->bfs) != 0) { in bfs_open()
71 if (!bfs_file_lookup(file->bfs, name, &file->start, &file->end, in bfs_open()
73 bfs_fini(file->bfs); in bfs_open()
91 bfs_fini(file->bfs); in bfs_close()
H A Dprompt.c195 struct bfs *bfs; in cmd_log_save() local
197 if (bfs_init(&bfs) != 0) { in cmd_log_save()
202 if (bfs_file_write(bfs, "boot.log", __log, LOG_SIZE) != 0) in cmd_log_save()
205 bfs_fini(bfs); in cmd_log_save()
H A Dbfs_subr.c56 bfs_init(struct bfs **bfsp) in bfs_init()
/netbsd-src/sbin/newfs_sysvbfs/
H A Dnewfs_sysvbfs.c181 struct bfs_super_block *bfs = (void *)buf; in bfs_newfs() local
189 bfs->header.magic = BFS_MAGIC; in bfs_newfs()
190 bfs->header.data_start_byte = DEV_BSIZE * 2; /* super block + inode */ in bfs_newfs()
191 bfs->header.data_end_byte = nsectors * BFS_BSIZE - 1; in bfs_newfs()
192 bfs->compaction.from = 0xffffffff; in bfs_newfs()
193 bfs->compaction.to = 0xffffffff; in bfs_newfs()
194 bfs->compaction.from_backup = 0xffffffff; in bfs_newfs()
195 bfs->compaction.to_backup = 0xffffffff; in bfs_newfs()
/netbsd-src/sys/arch/ews4800mips/ews4800mips/
H A Ddisklabel_conv.c93 struct ux_partition *bfs; in vtoc_set_default() local
146 bfs = &vtoc->partition[3]; in vtoc_set_default()
147 bfs->tag = VTOC_TAG_STAND; in vtoc_set_default()
148 bfs->flags = 0; in vtoc_set_default()
149 bfs->start_sector = _BOOTBLOCK_SIZE; in vtoc_set_default()
151 res = nsectors - bfs->start_sector; in vtoc_set_default()
152 bfs->nsectors = res > _BFS_SIZE ? _BFS_SIZE : res; in vtoc_set_default()
/netbsd-src/external/gpl3/gcc.old/dist/libgcc/config/cr16/
H A Dlib1funcs.S148 bfs L2 /* If negative jump to L2 */
471 bfs L10 /* If PSR is set go to L10 */
478 bfs L28 /* If PSR is set go to L28 */
517 bfs L18 /* If PSR is set go to L18 */
/netbsd-src/external/gpl3/gcc/dist/libgcc/config/cr16/
H A Dlib1funcs.S148 bfs L2 /* If negative jump to L2 */
471 bfs L10 /* If PSR is set go to L10 */
478 bfs L28 /* If PSR is set go to L28 */
517 bfs L18 /* If PSR is set go to L18 */
/netbsd-src/sys/arch/ews4800mips/include/
H A Dbfs.h38 int bfs_init(struct bfs **);
/netbsd-src/sys/modules/sysvbfs/
H A DMakefile8 SRCS= bfs.c bfs_sysvbfs.c sysvbfs.c sysvbfs_vnops.c sysvbfs_vfsops.c
/netbsd-src/sys/rump/fs/lib/libsysvbfs/
H A DMakefile9 SRCS= bfs.c bfs_sysvbfs.c sysvbfs.c sysvbfs_vnops.c sysvbfs_vfsops.c
/netbsd-src/sys/arch/ews4800mips/stand/boot/
H A DMakefile48 SRCS += bfs.c
/netbsd-src/external/apache2/llvm/dist/llvm/docs/Proposals/
H A DTestSuite.rst135 * bfs
/netbsd-src/sys/ufs/ffs/
H A Dffs_vfsops.c2414 struct fs *bfs; in ffs_sbupdate()
2428 bfs = (struct fs *)bp->b_data; in ffs_sbupdate()
2430 bfs->fs_flags &= ~FS_INTERNAL; in ffs_sbupdate()
2433 KASSERT(bfs->fs_magic == FS_UFS2_MAGIC); in ffs_sbupdate()
2434 bfs->fs_magic = FS_UFS2EA_MAGIC; in ffs_sbupdate()
2438 ffs_sb_swap(bfs, bfs); in ffs_sbupdate()
2423 struct fs *bfs = (struct fs *)bp->b_data; ffs_sbupdate() local
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/StaticAnalyzer/Core/
H A DAnalyzerOptions.def421 "Value: \"dfs\", \"bfs\", \"unexplored_first\", "

12