/freebsd-13-stable/usr.sbin/makefs/ffs/ |
H A D | ffs_balloc.c | 89 int32_t *bap; local 256 bap = (int32_t *)bp->b_data; 257 nb = ufs_rw32(bap[indirs[i].in_off], needswap); 286 bap[indirs[i - 1].in_off] = ufs_rw32(nb, needswap); 296 pref = ffs_blkpref_ufs1(ip, lbn, indirs[num].in_off, &bap[0]); 310 bap[indirs[num].in_off] = ufs_rw32(nb, needswap); 340 int64_t *bap; local 507 bap = (int64_t *)bp->b_data; 508 nb = ufs_rw64(bap[indirs[i].in_off], needswap); 537 bap[indir [all...] |
H A D | ffs_alloc.c | 154 ffs_blkpref_ufs1(struct inode *ip, daddr_t lbn, int indx, int32_t *bap) argument 161 if (indx % fs->fs_maxbpg == 0 || bap[indx - 1] == 0) { 170 if (indx == 0 || bap[indx - 1] == 0) 175 ufs_rw32(bap[indx - 1], UFS_FSNEEDSWAP(fs)) + 1); 189 return ufs_rw32(bap[indx - 1], UFS_FSNEEDSWAP(fs)) + fs->fs_frag; 193 ffs_blkpref_ufs2(struct inode *ip, daddr_t lbn, int indx, int64_t *bap) argument 200 if (indx % fs->fs_maxbpg == 0 || bap[indx - 1] == 0) { 209 if (indx == 0 || bap[indx - 1] == 0) 214 ufs_rw64(bap[indx - 1], UFS_FSNEEDSWAP(fs)) + 1); 230 return ufs_rw64(bap[ind [all...] |
/freebsd-13-stable/sys/fs/ext2fs/ |
H A D | ext2_balloc.c | 110 e2fs_daddr_t *bap, pref; local 222 bap = (e2fs_daddr_t *)bp->b_data; 223 nb = le32toh(bap[indirs[i].in_off]); 233 pref = ext2_blkpref(ip, lbn, indirs[i].in_off, bap, 255 bap[indirs[i - 1].in_off] = htole32(nb); 273 pref = ext2_blkpref(ip, lbn, indirs[i].in_off, &bap[0], 287 bap[indirs[i].in_off] = htole32(nb);
|
H A D | ext2_inode.c | 129 e2fs_daddr_t *bap, *copy; local 171 bap = (e2fs_daddr_t *)bp->b_data; 173 bcopy((caddr_t)bap, (caddr_t)copy, (u_int)fs->e2fs_bsize); 174 bzero((caddr_t)&bap[last + 1], 185 bap = copy; 192 nb = le32toh(bap[i]); 210 nb = le32toh(bap[i]);
|
H A D | ext2_alloc.c | 209 uint32_t *bap, *sbap, *ebap; local 315 for (bap = &sbap[soff], i = 0; i < len; i++, blkno += fs->e2fs_fpb) { 317 bap = ebap; 321 if (buflist->bs_children[i]->b_blkno != fsbtodb(fs, *bap)) 324 SDT_PROBE1(ext2fs, , alloc, ext2_reallocblks_bap, *bap); 325 *bap++ = blkno; 707 ext2_blkpref(struct inode *ip, e2fs_lbn_t lbn, int indx, e2fs_daddr_t *bap, argument 728 if (bap) 730 if (bap[tmp]) 731 return (le32toh(bap[tm [all...] |
/freebsd-13-stable/sys/ufs/ffs/ |
H A D | ffs_balloc.c | 107 ufs1_daddr_t *bap, pref; local 302 bap = (ufs1_daddr_t *)bp->b_data; 303 nb = bap[indirs[i].in_off]; 369 bap[indirs[i - 1].in_off] = nb; 406 &bap[0]); 442 bap[indirs[i].in_off] = nb; 535 bap = (ufs1_daddr_t *)bp->b_data; 536 bap[indirs[unwindidx].in_off] = 0; 599 ufs2_daddr_t nb, newb, *bap, pref; local 905 bap [all...] |
H A D | ffs_alloc.c | 565 ufs1_daddr_t *bap, *sbap, *ebap; local 707 for (bap = &sbap[soff], i = 0; i < len; i++, blkno += fs->fs_frag) { 709 bap = ebap; 716 if (dbtofsb(fs, buflist->bs_children[i]->b_blkno) != *bap) 721 printf(" %d,", *bap); 726 blkno, *bap, fs->fs_bsize, fs->fs_bsize, 731 *bap, buflist->bs_children[i]); 733 *bap++ = blkno; 831 ufs2_daddr_t *bap, *sbap, *ebap; local 971 for (bap [all...] |
H A D | ffs_snapshot.c | 1140 ufs1_daddr_t last, *bap; local 1169 bap = malloc(fs->fs_bsize, M_DEVBUF, M_WAITOK); 1170 bcopy(bp->b_data, (caddr_t)bap, fs->fs_bsize); 1172 error = (*acctfunc)(snapvp, &bap[0], &bap[last], fs, 1182 error = indiracct_ufs1(snapvp, cancelvp, level, bap[i], lbn, 1191 free(bap, M_DEVBUF); 1426 ufs2_daddr_t last, *bap; local 1455 bap = malloc(fs->fs_bsize, M_DEVBUF, M_WAITOK); 1456 bcopy(bp->b_data, (caddr_t)bap, f [all...] |