/freebsd/contrib/lua/src/ |
H A D | lmem.c | 29 ** ('osize' is the old size, 'nsize' is the new size) 31 ** - frealloc(ud, p, x, 0) frees the block 'p' and returns NULL. 35 ** - frealloc(ud, NULL, x, s) creates a new block of size 's' 36 ** (no matter 'x'). Returns NULL if it cannot create the new block. 38 ** - otherwise, frealloc(ud, b, x, y) reallocates the block 'b' from 39 ** size 'x' to size 'y'. Returns NULL if it cannot reallocate the 40 ** block to the new size. 47 #define callfrealloc(g,block,os,ns) ((*g->frealloc)(g->ud, block, os, ns)) argument 58 #define cantryagain(g) (completestate(g) && !g->gcstopem) 65 ** First allocation will fail except when freeing a block (frees never [all …]
|
/freebsd/share/man/man5/ |
H A D | fs.5 | 55 The block size and number of blocks which 68 .Em super-block 69 that is of size 71 The following structure describes the super-block and is 74 .Bd -literal 76 * Super block for an FFS filesystem. 81 int32_t fs_sblkno; /* offset of super-block in filesys */ 82 int32_t fs_cblkno; /* offset of cyl-block in filesys */ 83 int32_t fs_iblkno; /* offset of inode-blocks in filesys */ 91 int32_t fs_bsize; /* size of basic blocks in fs */ [all …]
|
/freebsd/share/doc/smm/05.fastfs/ |
H A D | 3.t | 35 A file system is described by its super-block, 37 Because the super-block contains critical data, 40 since the super-block data does not change, 42 or other hard disk error causes the default super-block 49 the minimum size of a file system block is 4096 bytes. 50 The size of file system blocks can be any power of two 52 The block size of a file system is recorded in the 53 file system's super-block 54 so it is possible for file systems with different block sizes 56 The block size must be decided at the time that [all …]
|
/freebsd/contrib/jemalloc/src/ |
H A D | base.c | 32 base_map(tsdn_t *tsdn, extent_hooks_t *extent_hooks, unsigned ind, size_t size) { in base_map() argument 38 assert(size == HUGEPAGE_CEILING(size)); in base_map() 41 addr = extent_alloc_mmap(NULL, size, alignment, &zero, &commit); in base_map() 46 addr = extent_hooks->alloc(extent_hooks, NULL, size, alignment, in base_map() 56 size_t size) { in base_unmap() argument 65 * in some consistent-but-allocated state. in base_unmap() 68 if (!extent_dalloc_mmap(addr, size)) { in base_unmap() 71 if (!pages_decommit(addr, size)) { in base_unmap() 74 if (!pages_purge_forced(addr, size)) { in base_unmap() 77 if (!pages_purge_lazy(addr, size)) { in base_unmap() [all …]
|
/freebsd/sys/contrib/ncsw/etc/ |
H A D | mm.c | 2 * Copyright 2008-2012 Freescale Semiconductor Inc. 53 * Initializes a new busy block of "size" bytes and started 54 * rom "base" address. Each busy block has a name that 58 * base - base address of the busy block 59 * size - size of the busy block 60 * name - name that specified the busy block 66 static t_BusyBlock * CreateBusyBlock(uint64_t base, uint64_t size, char *name) in CreateBusyBlock() argument 78 p_BusyBlock->base = base; in CreateBusyBlock() 79 p_BusyBlock->end = base + size; in CreateBusyBlock() 83 n = MM_MAX_NAME_LEN - 1; in CreateBusyBlock() [all …]
|
/freebsd/sys/dev/qat/qat_api/common/crypto/sym/include/ |
H A D | lac_sym_hash_defs.h | 1 /* SPDX-License-Identifier: BSD-3-Clause */ 2 /* Copyright(c) 2007-2022 Intel Corporation */ 22 * MD5 block size in bytes */ 28 * MD5 state size */ 33 * SHA1 Block size in bytes */ 39 * SHA1 state size */ 44 * SHA224 block size in bytes */ 50 * SHA224 state size */ 55 * SHA256 block size in bytes */ 61 * SHA256 state size */ [all …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_common_interceptors_memintrinsics.inc | 1 //===-- sanitizer_common_interceptors_memintrinsics.inc ---------*- C++ -*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 25 //===----------------------------------------------------------------------===// 34 // Platform-specific options. 44 #define COMMON_INTERCEPTOR_MEMSET_IMPL(ctx, dst, v, size) \ 47 return internal_memset(dst, v, size); \ 48 COMMON_INTERCEPTOR_ENTER(ctx, memset, dst, v, size); \ 49 if (common_flags()->intercept_intrin) \ 50 COMMON_INTERCEPTOR_WRITE_RANGE(ctx, dst, size); \ [all …]
|
/freebsd/contrib/elftoolchain/libdwarf/ |
H A D | libdwarf_rw.c | 1 /*- 30 ELFTC_VCSID("$Id: libdwarf_rw.c 3286 2015-12-31 16:45:46Z emaste $"); 199 _dwarf_write_lsb_alloc(uint8_t **block, uint64_t *size, uint64_t *offsetp, in _dwarf_write_lsb_alloc() argument 203 assert(*size > 0); in _dwarf_write_lsb_alloc() 205 while (*offsetp + bytes_to_write > *size) { in _dwarf_write_lsb_alloc() 206 *size *= 2; in _dwarf_write_lsb_alloc() 207 *block = realloc(*block, (size_t) *size); in _dwarf_write_lsb_alloc() 208 if (*block == NULL) { in _dwarf_write_lsb_alloc() 214 _dwarf_write_lsb(*block, offsetp, value, bytes_to_write); in _dwarf_write_lsb_alloc() 255 _dwarf_write_msb_alloc(uint8_t **block, uint64_t *size, uint64_t *offsetp, in _dwarf_write_msb_alloc() argument [all …]
|
/freebsd/share/doc/smm/03.fsck/ |
H A D | 2.t | 38 .I "super-block" . 39 The super-block is built when the file system is created (\c 42 The super-block 46 Because the super-block contains critical data, 50 .I "default super block" 56 or other hard disk error causes the default super-block 74 the range 5-13. 77 containing further data block indices. 78 In a file system with a 4096 byte block size, a singly indirect 79 block contains 1024 further block addresses, [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/ |
H A D | ARMBasicBlockInfo.h | 1 //===-- ARMBasicBlockInfo.h - Basic Block Information -----------*- C++ -*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 9 // Utility functions and data structure for computing block size. 11 //===----------------------------------------------------------------------===// 27 /// UnknownPadding - Return the worst case padding that could result from 35 return Alignment.value() - (1ull << KnownBits); in UnknownPadding() 39 /// BasicBlockInfo - Information about the offset and size of a single 40 /// basic block. 42 /// Offset - Distance from the beginning of the function to the beginning [all …]
|
/freebsd/contrib/libarchive/libarchive/ |
H A D | archive_write_blocksize.3 | 1 .\" Copyright (c) 2003-2011 Tim Kientzle 35 Streaming Archive Library (libarchive, -larchive) 47 .Bl -tag -width indent 49 Sets the block size used for writing the archive data. 52 The default is to use a block size of 10240 bytes. 53 Note that a block size o [all...] |
/freebsd/bin/dd/ |
H A D | dd.1 | 1 .\"- 45 Input data is read and written in 512-byte blocks. 47 to form the output block. 54 .Bl -tag -width "of=file" 56 Set both input and output block size to 68 are specified, then each input block is copied to the output as a 69 single block without any aggregation of short blocks. 71 Set the conversion record size to 74 The conversion record size is required by the record oriented conversion 86 When padding a block in conversion mode or due to use of [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/JITLink/ |
H A D | JITLink.h | 1 //===------------ JITLink.h - JIT linker functionality ----------*- C++ -*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 9 // Contains generic JIT-linker types. 11 //===----------------------------------------------------------------------===// 85 void setOffset(OffsetT Offset) { this->Offset = Offset; } in setOffset() 87 void setKind(Kind K) { this->K = K; } in setKind() 91 return K - FirstRelocation; in getRelocation() 95 void setTarget(Symbol &Target) { this->Target = &Target; } in setTarget() 97 void setAddend(AddendT Addend) { this->Addend = Addend; } in setAddend() [all …]
|
/freebsd/sys/contrib/xz-embedded/linux/lib/xz/ |
H A D | xz_dec_stream.c | 42 /* Position in variable-length integers and Check fields */ 45 /* Variable-length integer decoded by dec_vli() */ 53 /* CRC32 or CRC64 value in Block or CRC32 value in Index */ 56 /* CRC32 value in Block or Index */ 72 /* Information stored in Block Header */ 75 * Value stored in the Compressed Size field, or 76 * VLI_UNKNOWN if Compressed Size is not present. 81 * Value stored in the Uncompressed Size field, or 82 * VLI_UNKNOWN if Uncompressed Size is not present. 86 /* Size of the Block Header field */ [all …]
|
/freebsd/contrib/bzip2/ |
H A D | bzip2.1 | 3 bzip2, bunzip2 \- a block-sorting file compressor, v1.0.8 5 bzcat \- decompresses files to stdout 7 bzip2recover \- recovers data from damaged bzip2 files 12 .RB [ " \-cdfkqstvzVL123456789 " ] 19 .RB [ " \-fkvsVL " ] 25 .RB [ " \-s " ] 35 compresses files using the Burrows-Wheeler block sorting 38 LZ77/LZ78-based compressors, and approaches the performance of the PPM 41 The command-line options are deliberately very similar to 48 command-line flags. Each file is replaced by a compressed version of [all …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/memprof/ |
H A D | memprof_interceptors_memintrinsics.cpp | 1 //===-- memprof_interceptors_memintrinsics.cpp ---------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===---------------------------------------------------------------------===// 12 //===---------------------------------------------------------------------===// 26 #define MEMPROF_MEMCPY_IMPL(to, from, size) \ argument 29 return internal_memcpy(to, from, size); \ 31 return REAL(memcpy)(to, from, size); \ 34 MEMPROF_READ_RANGE(from, size); \ 35 MEMPROF_WRITE_RANGE(to, size); \ 36 return REAL(memcpy)(to, from, size); \ [all …]
|
/freebsd/sys/contrib/ncsw/inc/etc/ |
H A D | mm_ext.h | 1 /* Copyright (c) 2008-2012 Freescale Semiconductor, Inc 73 It initializes a new memory block consisting of base address 74 and size of the available memory by calling to MemBlock_Init 75 routine. It is also initializes a new free block for each 82 @Param[in] h_MM - Handle to the MM object. 83 @Param[in] base - Base address of the MM. 84 @Param[in] size - Size of the MM. 86 …ned on success. E_NOMEMORY is returned if the new MM object or a new free block can not be initial… 88 t_Error MM_Init(t_Handle *h_MM, uint64_t base, uint64_t size); 93 @Description Allocates a block of memory according to the given size and the alignment. [all …]
|
/freebsd/contrib/llvm-project/openmp/runtime/src/ |
H A D | kmp_environment.cpp | 2 * kmp_environment.cpp -- Handle environment variables OS-independently. 5 //===------- 76 allocate(size_t size) allocate() argument 237 ___kmp_env_blk_parse_string(kmp_env_blk_t * block,char const * env) ___kmp_env_blk_parse_string() argument 306 ___kmp_env_blk_parse_windows(kmp_env_blk_t * block,char const * env) ___kmp_env_blk_parse_windows() argument 313 int size = 0; // Size of bulk. ___kmp_env_blk_parse_windows() local 381 ___kmp_env_blk_parse_unix(kmp_env_blk_t * block,char ** env) ___kmp_env_blk_parse_unix() argument 387 size_t size = 0; // Size of bulk. ___kmp_env_blk_parse_unix() local 429 __kmp_env_blk_init(kmp_env_blk_t * block,char const * bulk) __kmp_env_blk_init() argument 462 __kmp_env_blk_sort(kmp_env_blk_t * block) __kmp_env_blk_sort() argument 472 __kmp_env_blk_free(kmp_env_blk_t * block) __kmp_env_blk_free() argument 484 __kmp_env_blk_var(kmp_env_blk_t * block,char const * name) __kmp_env_blk_var() argument [all...] |
/freebsd/libexec/tftpd/ |
H A D | tftp-transfer.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 43 #include "tftp-file.h" 44 #include "tftp-io.h" 45 #include "tftp-utils.h" 46 #include "tftp-options.h" 47 #include "tftp-transfer.h" 51 uint16_t block; member 52 int size; member 59 tftp_send(int peer, uint16_t *block, struct tftp_stats *ts) in tftp_send() argument [all …]
|
/freebsd/contrib/libarchive/libarchive/test/ |
H A D | test_tar_large.c | 1 /*- 2 * Copyright (c) 2003-2007 Tim Kientzle 42 * Each file is built up by duplicating the following block. 53 size_t size; member 69 /* The following size definitions simplify things below. */ 81 memory_write(struct archive *a, void *_private, const void *buff, size_t size) in memory_write() argument 84 struct memblock *block; in memory_write() local 89 * Since libarchive tries to behave in a zero-copy manner, if in memory_write() 97 /* We don't need to store a block of file data. */ in memory_write() 98 private->last->filebytes += (int64_t)size; in memory_write() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/MSF/ |
H A D | MSFCommon.h | 1 //===- MSFCommon.h - Common types and functions for MSF files ---*- C++ -*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 33 // The file system is split into a variable number of fixed size elements. 34 // These elements are referred to as blocks. The size of a block may vary 37 // The index of the free block map. 40 // practice, NumBlocks * BlockSize is equivalent to the size of the MSF 47 // This contains the block # of the block map. 55 assert(SB->FreeBlockMapBlock == 1 || SB->FreeBlockMapBlock == 2); in mainFpmBlock() 56 return SB->FreeBlockMapBlock; in mainFpmBlock() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/ |
H A D | SystemZLongBranch.cpp | 1 //===-- SystemZLongBranch.cpp - Branch lengthening for SystemZ ------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 16 // quadratic in the number of blocks; relaxing branch N can make branch N-1 17 // go out of range, which in turn can make branch N-2 go out of range, 27 // can bring branch N-1 in range of the short form, which in turn can do 28 // the same for branch N-2, and so on. The main advantage of shortening 39 // (1) Work out the address that each block would have if no branches 43 // (2) Work out the address that each block would have if all branches 46 // (3) Walk through the block calculating the final address of each instruction [all …]
|
/freebsd/usr.sbin/makefs/ffs/ |
H A D | ffs_alloc.c | 4 /*- 5 * SPDX-License-Identifier: BSD-3-Clause 13 * contract N66001-01-C-8035 ("CBOSS"), as part of the DARPA CHATS 69 * Allocate a block in the file system. 71 * The size of the requested block is given, which must be some 74 * the following hierarchy is used to allocate a block: 75 * 1) allocate the requested block. 76 * 2) allocate a rotationally optimal block in the same cylinder. 77 * 3) allocate a block in the same cylinder group. 79 * available block is located. [all …]
|
/freebsd/contrib/sendmail/libsm/ |
H A D | rpool.c | 2 * Copyright (c) 2000-2004 Proofpoint, Inc. and its suppliers. 11 SM_RCSID("@(#)$Id: rpool.c,v 1.29 2013-11-22 20:51:43 ca Exp $") 46 ** SM_RPOOL_ALLOCBLOCK_X -- allocate a new block for an rpool. 49 ** rpool -- rpool to which the block should be added. 50 ** size -- size of block. 53 ** Pointer to block. 56 ** F:sm_heap -- out of memory 60 sm_rpool_allocblock_x(rpool, size) in sm_rpool_allocblock_x() argument 62 size_t size; 66 p = sm_malloc_x(sizeof(SM_POOLHDR_T) + size); [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | BranchRelaxation.cpp | 1 //===- BranchRelaxation.cpp --------- 61 unsigned Size = 0; global() member 181 uint64_t Size = 0; computeBlockSize() local [all...] |