Searched refs:blocks (Results 1 - 12 of 12) sorted by relevance

/darwin-on-arm/xnu/bsd/dev/dtrace/
H A Dblist.h8 * blist = blist_create(blocks)
22 * capable of managing up to (2^31) blocks per blist, though
24 * that. Managing something like 512MB worth of 4K blocks
81 daddr_t bl_free; /* number of free blocks */
93 extern blist_t blist_create(daddr_t blocks);
H A Dblist.c16 * free contiguous range of blocks under the node. It may contain a
49 * to cover the number of blocks requested at creation time even if it
53 * BLIST_BMAP_RADIX blocks per call. It will panic with 'allocation too
155 * number of blocks
157 * blocks must be greater then 0
160 * managing BLIST_BMAP_RADIX blocks.
164 blist_create(daddr_t blocks) argument
175 while (radix < blocks) {
184 bl->bl_blocks = blocks;
188 blst_radix_init(NULL, bl->bl_radix, bl->bl_skip, blocks);
[all...]
/darwin-on-arm/xnu/bsd/net/
H A Dflowhash.c188 const u_int32_t *blocks; local
194 blocks = (const u_int32_t *)(const void *)(data + nblocks * 4);
197 k1 = getblock32(blocks, i);
246 const u_int64_t *blocks; local
253 blocks = (const u_int64_t *)(const void *)data;
256 k1 = getblock64(blocks, i * 2 + 0);
257 k2 = getblock64(blocks, i * 2 + 1);
/darwin-on-arm/xnu/libkern/kmod/
H A DMakefile.kmod22 CFLAGS_KMOD = $(filter-out -O0 -O1 -O2 -O3 -O4 -Os -Oz -freorder-blocks -flto -fno-stack-protector,$(CFLAGS)) \
/darwin-on-arm/xnu/bsd/hfs/
H A Dhfs_xattr.c100 static int alloc_attr_blks(struct hfsmount *hfsmp, size_t attrsize, size_t extentbufsize, HFSPlusExtentDescriptor *extents, int *blocks);
1057 /* Get some blocks. */
1072 /* Copy data into the blocks. */
1571 * Free the blocks from extent based attributes.
1574 * before releasing the blocks in the allocation bitmap.
2374 * Allocate blocks for an extent based attribute.
2377 alloc_attr_blks(struct hfsmount *hfsmp, size_t attrsize, size_t extentbufsize, HFSPlusExtentDescriptor *extents, int *blocks) argument
2391 *blocks = blkcnt;
2418 printf("hfs: alloc_attr_blks: unexpected failure, %d blocks unallocated\n", blkcnt);
2434 * Release blocks fro
2483 u_int32_t blocks; local
2503 int blocks; local
[all...]
H A Dhfs_hotfiles.c74 int hfl_totalblocks; /* total hot file blocks */
75 int hfl_reclaimblks; /* blocks to reclaim in HFV */
89 u_int32_t blocks; member in struct:hotfile_entry
399 printf("hfs_recording_stop: need to reclaim %d blocks\n", listp->hfl_reclaimblks);
646 * Any file that has blocks inside the hot file
834 entry->blocks = ffp->ff_blocks;
1245 printf("hfs: hotfiles_adopt: [%d] adopted %d blocks (%d left)\n", listp->hfl_next, blksmoved, listp->hfl_totalblocks);
1258 printf("hfs: hotfiles_adopt: %d blocks free in hot file band\n", hfsmp->hfs_hotfile_freeblks);
1466 printf("hfs: hotfiles_evict: %d blocks free in hot file band\n", hfsmp->hfs_hotfile_freeblks);
1638 * Return true if any blocks (o
[all...]
H A Dhfs_vfsutils.c418 vcb->vcbAlBlSt = 0; /* hfs+ allocation blocks start at first block of volume */
958 u_int32_t blocks; local
971 blocks = fp->ff_extents[0].blockCount +
983 blocks = fp->ff_extents[0].blockCount +
988 return (fp->ff_blocks > blocks);
1303 Whoops: the allocation blocks aren't even multiples of the specified base:
1309 /* Try the obvious winner first, to prevent 12K allocation blocks, for instance,
1310 from being handled as two 6K logical blocks instead of 3 4K logical blocks.
2623 * Start with space for the boot blocks an
[all...]
H A Dhfs_vnops.c596 * stay around, preventing de-allocation of these blocks.
608 * If there are extra blocks and there are only 2 refs on
825 u_int64_t blocks; local
831 /* for compressed files, we report all allocated blocks as belonging to the data fork */
832 blocks = cp->c_blocks;
833 VATTR_RETURN(vap, va_data_alloc, blocks * (u_int64_t)hfsmp->blockSize);
838 blocks = VCTOF(vp, cp)->ff_blocks;
839 VATTR_RETURN(vap, va_data_alloc, blocks * (u_int64_t)hfsmp->blockSize);
1847 * This reflects the fact that the file may have borrowed blocks, dirty metadata,
1972 * is imposed is that we may have to touch a whole lot of bitmap blocks i
[all...]
/darwin-on-arm/xnu/bsd/dev/vn/
H A Dshadow.c34 * "shadow" file. Subsequent reads from blocks that have been
38 * 1) a bit map to track which blocks have been written
42 * The band map is used to ensure that blocks that are contiguous in the
90 uint32_t blocks_per_band;/* size in blocks */
413 * The bytes required is the number of blocks in the file,
425 off_t blocks = howmany(file_size, block_size); local
426 return (howmany(blocks, NBBY));
434 * blocks to read. The input values (block_offset, block_count) refer
491 * blocks to write. The input values (block_offset, block_count) refer
524 /* mark these blocks a
[all...]
/darwin-on-arm/xnu/osfmk/default_pager/
H A Ddefault_pager_internal.h319 * Controls allocation of blocks within paging area.
483 #define RMAPSIZE(blocks) (howmany(blocks,NBBY))
/darwin-on-arm/xnu/bsd/hfs/hfscommon/Misc/
H A DFileExtentMapping.c84 Deallocate all allocation blocks in all extents of an extent
87 Deallocate blocks and delete extent records for all allocation
88 blocks beyond a certain point in a file. The starting point
92 Deallocate all allocation blocks belonging to a given fork.
596 // Loop over the extent record and release the blocks associated with each extent.
622 // allocation blocks represented by the extents are deallocated.
993 // Determine how many blocks need to be allocated.
1000 * For deferred allocations just reserve the blocks.
1019 * Give back any unallocated blocks before doing real allocations.
1065 // enough free blocks o
2049 u_int32_t blocks; local
[all...]
/darwin-on-arm/xnu/bsd/hfs/hfscommon/Catalog/
H A DFileIDsServices.c47 static u_int32_t CheckExtents( void *extents, u_int32_t blocks, Boolean isHFSPlus );
69 /* Copy the extent overflow blocks. */
86 /* Copy the extent overflow blocks. */

Completed in 75 milliseconds