/freebsd/tests/sys/netpfil/pf/ |
H A D | frag-overhole.py | 7 # index boundary 4096 | 23 boundary = 4096 24 fragnum = int(boundary / fragsize) 27 ((int((boundary + fragsize) / len(payload)) + 1) * payload) 36 frag=(boundary - fragsize) >> 3, flags='MF')/ 37 bytes(packet)[20 + boundary - fragsize:20 + boundary - len(dummy)]) 39 frag=(boundary - len(dummy)) >> 3, flags='MF')/ 40 (dummy+bytes(packet)[20 + boundary:20 + boundary + fragsize])) 42 frag=(boundary - 8 - len(dummy)) >> 3, flags='MF')/ 43 (dummy+bytes(packet)[20 + boundary - 8:20 + boundary])) [all …]
|
H A D | frag-overlimit.py | 22 # index boundary 4096 | 39 boundary = 4096 40 fragnum= int(boundary / fragsize) 43 (int((boundary + boundary) / len(payload)) * payload) 51 frag=(boundary + boundary - fragsize) >> 3) / 52 bytes(packet)[20 + boundary + boundary - fragsize:]) 54 frag=(boundary - 8) >> 3, flags='MF')/ 55 (dummy + bytes(packet)[20 + boundary:20 + boundary + 8])) 57 frag=(boundary - fragsize) >> 3, flags='MF') / 58 bytes(packet)[20 + boundary - fragsize:20 + boundary])
|
H A D | frag-overreplace.py | 21 # index boundary 4096 | 37 boundary = 4096 38 fragnum = int(boundary / fragsize) 41 (int((boundary + fragsize) / len(payload)) * payload) 50 frag=(boundary - 8) >> 3, flags='MF') / 51 (dummy + bytes(packet)[20 + boundary:20 + boundary + 8])) 53 frag=(boundary - fragsize) >> 3, flags='MF') / 54 bytes(packet)[20 + boundary - fragsize:20 + boundary]) 56 frag=(boundary) >> 3)/bytes(packet)[20 + boundary:])
|
H A D | frag-overindex.py | 21 # index boundary 4096 | 36 boundary = 4096 37 fragnum = int(boundary / fragsize) 40 (int((boundary + 8) / len(payload)) * payload) 48 frag=(boundary - 8) >> 3) / 49 (dummy + bytes(packet)[20 + boundary:20 + boundary + 8])) 51 frag=(boundary - fragsize) >> 3, flags='MF') / 52 bytes(packet)[20 + boundary - fragsize:20 + boundary])
|
/freebsd/sys/riscv/riscv/ |
H A D | busdma_machdep.c | 53 bus_size_t alignment, bus_addr_t boundary, bus_addr_t lowaddr, in common_bus_dma_tag_create() argument 65 if (boundary != 0 && boundary < maxsegsz) in common_bus_dma_tag_create() 66 maxsegsz = boundary; in common_bus_dma_tag_create() 80 common->boundary = boundary; in common_bus_dma_tag_create() 100 if (common->boundary == 0) in common_bus_dma_tag_create() 101 common->boundary = parent->boundary; in common_bus_dma_tag_create() 102 else if (parent->boundary != 0) { in common_bus_dma_tag_create() 103 common->boundary = MIN(parent->boundary, in common_bus_dma_tag_create() 104 common->boundary); in common_bus_dma_tag_create() 116 bus_addr_t boundary, bus_addr_t lowaddr, bus_addr_t highaddr, in bus_dma_tag_create() argument [all …]
|
/freebsd/sys/arm64/arm64/ |
H A D | busdma_machdep.c | 54 bus_size_t alignment, bus_addr_t boundary, bus_addr_t lowaddr, in common_bus_dma_tag_create() argument 66 if (boundary != 0 && boundary < maxsegsz) in common_bus_dma_tag_create() 67 maxsegsz = boundary; in common_bus_dma_tag_create() 81 common->boundary = boundary; in common_bus_dma_tag_create() 102 if (common->boundary == 0) in common_bus_dma_tag_create() 103 common->boundary = parent->boundary; in common_bus_dma_tag_create() 104 else if (parent->boundary != 0) { in common_bus_dma_tag_create() 105 common->boundary = MIN(parent->boundary, in common_bus_dma_tag_create() 106 common->boundary); in common_bus_dma_tag_create() 122 bus_addr_t boundary, bus_addr_t lowaddr, bus_addr_t highaddr, in bus_dma_tag_create() argument [all …]
|
/freebsd/sys/x86/x86/ |
H A D | busdma_machdep.c | 58 bus_size_t alignment, bus_addr_t boundary, bus_addr_t lowaddr, in common_bus_dma_tag_create() argument 68 if (boundary != 0 && boundary < maxsegsz) in common_bus_dma_tag_create() 69 maxsegsz = boundary; in common_bus_dma_tag_create() 85 common->boundary = boundary; in common_bus_dma_tag_create() 105 if (common->boundary == 0) in common_bus_dma_tag_create() 106 common->boundary = parent->boundary; in common_bus_dma_tag_create() 107 else if (parent->boundary != 0) { in common_bus_dma_tag_create() 108 common->boundary = MIN(parent->boundary, in common_bus_dma_tag_create() 109 common->boundary); in common_bus_dma_tag_create() 139 bus_addr_t boundary, bus_addr_t lowaddr, bus_addr_t highaddr, in bus_dma_tag_create() argument [all …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/scudo/standalone/ |
H A D | common.h | 37 inline constexpr uptr roundUp(uptr X, uptr Boundary) { in roundUp() argument 38 DCHECK(isPowerOfTwo(Boundary)); in roundUp() 39 return (X + Boundary - 1) & ~(Boundary - 1); in roundUp() 41 inline constexpr uptr roundUpSlow(uptr X, uptr Boundary) { in roundUpSlow() argument 42 return ((X + Boundary - 1) / Boundary) * Boundary; in roundUpSlow() 45 inline constexpr uptr roundDown(uptr X, uptr Boundary) { in roundDown() argument 46 DCHECK(isPowerOfTwo(Boundary)); in roundDown() 47 return X & ~(Boundary - 1); in roundDown() 49 inline constexpr uptr roundDownSlow(uptr X, uptr Boundary) { in roundDownSlow() argument 50 return (X / Boundary) * Boundary; in roundDownSlow()
|
/freebsd/crypto/openssl/crypto/asn1/ |
H A D | bio_ndef.c | 39 /* Boundary where content is inserted */ 40 unsigned char **boundary; member 93 sarg.boundary = NULL; in BIO_new_NDEF() 116 ndef_aux->boundary = sarg.boundary; in BIO_new_NDEF() 152 if (*ndef_aux->boundary == NULL) in ndef_prefix() 155 *plen = *ndef_aux->boundary - *pbuf; in ndef_prefix() 210 sarg.boundary = ndef_aux->boundary; in ndef_suffix() 227 if (*ndef_aux->boundary == NULL) in ndef_suffix() 229 *pbuf = *ndef_aux->boundary; in ndef_suffix() 230 *plen = derlen - (*ndef_aux->boundary - ndef_aux->derbuf); in ndef_suffix()
|
/freebsd/contrib/ntp/libntp/ |
H A D | socket.c | 36 * - keep a current socket fd boundary initialized with 38 * - attempt to move the descriptor to the boundary or 40 * - if that fails and boundary > 0 set boundary 43 * if failure and boundary == 0 return old fd 47 * - fds will be moved above the socket fd boundary 49 * - the socket boundary will be reduced until 84 * check whether boundary has be set up in move_fd() 91 "initial socket boundary: %d\n", in move_fd() 114 TRACE(1, ("move_fd: selecting new socket boundary in move_fd() [all...] |
/freebsd/sys/vm/ |
H A D | vm_extern.h | 63 vm_paddr_t low, vm_paddr_t high, u_long alignment, vm_paddr_t boundary, 67 vm_paddr_t boundary, vm_memattr_t memattr); 148 * in -boundary (a power-of-two)? For boundary == 0, all addresses match. in vm_addr_align_ok() 151 vm_addr_bound_ok(vm_paddr_t pa, vm_paddr_t size, vm_paddr_t boundary) 153 KASSERT(powerof2(boundary), ("%s: boundary is not a power of 2: %#jx", 154 __func__, (uintmax_t)boundary)); 155 return (((pa ^ (pa + size - 1)) & -boundary) == 0); in vm_addr_bound_ok() argument 160 vm_paddr_t boundary) in vm_addr_bound_ok() 164 vm_addr_ok(vm_paddr_t pa,vm_paddr_t size,u_long alignment,vm_paddr_t boundary) vm_addr_ok() argument [all...] |
/freebsd/sys/contrib/edk2/Include/Library/ |
H A D | BaseMemoryLib.h | 72 If Buffer is not aligned on a 16-bit boundary, then ASSERT(). 73 If Length is not aligned on a 16-bit boundary, then ASSERT(). 99 If Buffer is not aligned on a 32-bit boundary, then ASSERT(). 100 If Length is not aligned on a 32-bit boundary, then ASSERT(). 126 If Buffer is not aligned on a 64-bit boundary, then ASSERT(). 127 If Length is not aligned on a 64-bit boundary, then ASSERT(). 153 If Buffer is not aligned on a UINTN boundary, then ASSERT(). 154 If Length is not aligned on a UINTN boundary, then ASSERT(). 259 If Buffer is not aligned on a 16-bit boundary, then ASSERT(). 260 If Length is not aligned on a 16-bit boundary, then ASSERT(). [all …]
|
/freebsd/share/man/man9/ |
H A D | contigmalloc.9 | 43 .Fa "vm_paddr_t boundary" 56 .Fa "vm_paddr_t boundary" 65 bytes, and which does not cross a boundary of 66 .Fa boundary 135 address 0 and 4194303 inclusive, aligned to a 32K boundary and not 136 crossing a 1M address boundary. 145 .Fa boundary
|
/freebsd/sys/powerpc/powerpc/ |
H A D | busdma_machdep.c | 67 bus_addr_t boundary; member 104 #define dmat_boundary(dmat) ((dmat)->boundary) 139 bus_addr_t boundary, bus_addr_t lowaddr, in bus_dma_tag_create() argument 149 if (boundary != 0 && boundary < maxsegsz) in bus_dma_tag_create() 150 maxsegsz = boundary; in bus_dma_tag_create() 172 newtag->boundary = boundary; in bus_dma_tag_create() 192 if (newtag->boundary == 0) in bus_dma_tag_create() 193 newtag->boundary = parent->boundary; in bus_dma_tag_create() 194 else if (parent->boundary != 0) in bus_dma_tag_create() 195 newtag->boundary = MIN(parent->boundary, in bus_dma_tag_create() [all …]
|
/freebsd/contrib/bionic-x86_64-string/ |
H A D | ssse3-strcmp-slm.S | 171 * Now both strings are aligned at 16-byte boundary. Loop over strings 233 * Setup %r10 value allows us to detect crossing a page boundary. 234 * When %r10 goes positive we have crossed a page boundary and 244 jg L(nibble_ashr_1) /* cross page boundary */ 268 jg L(nibble_ashr_1) /* cross page boundary */ 292 * Nibble avoids loads across page boundary. This is to avoid a potential 348 * Setup %r10 value allows us to detect crossing a page boundary. 349 * When %r10 goes positive we have crossed a page boundary and 384 jg L(nibble_ashr_2) /* cross page boundary */ 458 * Setup %r10 value allows us to detect crossing a page boundary. [all …]
|
/freebsd/sys/arm/arm/ |
H A D | busdma_machdep.c | 81 bus_addr_t boundary; member 172 #define dmat_boundary(dmat) ((dmat)->boundary) 273 * Return true if the given address does not fall on the alignment boundary. in alignment_bounce() 284 * on a cacheline boundary (which would require a partial cacheline flush). 313 * always comply with the required rules (alignment, boundary, and address in might_bounce() 337 * boundaries, or doesn't begin on an alignment boundary, or falls within the in must_bounce() 362 bus_addr_t boundary, bus_addr_t lowaddr, bus_addr_t highaddr, in bus_dma_tag_create() 371 KASSERT(boundary == 0 || powerof2(boundary), in bus_dma_tag_create() 372 ("dma tag boundary in bus_dma_tag_create() 358 bus_dma_tag_create(bus_dma_tag_t parent,bus_size_t alignment,bus_addr_t boundary,bus_addr_t lowaddr,bus_addr_t highaddr,bus_dma_filter_t * filter,void * filterarg,bus_size_t maxsize,int nsegments,bus_size_t maxsegsz,int flags,bus_dma_lock_t * lockfunc,void * lockfuncarg,bus_dma_tag_t * dmat) bus_dma_tag_create() argument [all...] |
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/MCTargetDesc/ |
H A D | PPCXCOFFStreamer.cpp | 13 // to a 64 byte boundary if required (by adding a 4 byte nop). This is important 15 // and by aligning anything that is within 4 bytes of the boundary we can 16 // guarantee that the 8 byte instructions do not cross that boundary. 43 // Prefixed instructions must not cross a 64-byte boundary (i.e. prefix is in emitPrefixedInstruction() 44 // before the boundary and the remaining 4-bytes are after the boundary). In in emitPrefixedInstruction() 45 // order to achieve this, a nop is added prior to any such boundary-crossing in emitPrefixedInstruction()
|
/freebsd/contrib/lua/src/ |
H A D | ltable.c | 843 ** Try to find a boundary in the hash part of table 't'. From the 847 ** find a boundary. We keep doubling 'j' until we get an absent index. 852 ** boundary. ('j + 1' cannot be a present integer key because it is 867 return j; /* well, max integer is a boundary... */ in hash_search() 892 ** Try to find a boundary in table 't'. (A 'boundary' is an integer index 898 ** part that may be a boundary. 900 ** (1) If 't[limit]' is empty, there must be a boundary before it. 902 ** is present. If so, it is a boundary. Otherwise, do a binary search 903 ** between 0 and limit to find a boundary. In both cases, try to 904 ** use this boundary as the new 'alimit', as a hint for the next call. [all …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/safestack/ |
H A D | safestack_util.h | 31 inline size_t RoundUpTo(size_t size, size_t boundary) { in RoundUpTo() argument 32 SFS_CHECK((boundary & (boundary - 1)) == 0); in RoundUpTo() 33 return (size + boundary - 1) & ~(boundary - 1); in RoundUpTo()
|
/freebsd/sys/compat/linuxkpi/common/include/linux/ |
H A D | dmapool.h | 40 size_t size, size_t align, size_t boundary); 50 size_t align, size_t boundary) in dma_pool_create() argument 53 return (linux_dma_pool_create(name, dev, size, align, boundary)); in dma_pool_create() 58 size_t align, size_t boundary) in dmam_pool_create() argument 65 *pp = linux_dma_pool_create(name, dev, size, align, boundary); in dmam_pool_create()
|
/freebsd/contrib/llvm-project/compiler-rt/lib/memprof/ |
H A D | memprof_malloc_linux.cpp | 86 INTERCEPTOR(void *, memalign, uptr boundary, uptr size) { in INTERCEPTOR() argument 88 return memprof_memalign(boundary, size, &stack, FROM_MALLOC); in INTERCEPTOR() 91 INTERCEPTOR(void *, __libc_memalign, uptr boundary, uptr size) { in INTERCEPTOR() argument 93 void *res = memprof_memalign(boundary, size, &stack, FROM_MALLOC); in INTERCEPTOR() 100 INTERCEPTOR(void *, aligned_alloc, uptr boundary, uptr size) { in INTERCEPTOR() argument 102 return memprof_aligned_alloc(boundary, size, &stack); in INTERCEPTOR()
|
/freebsd/contrib/netbsd-tests/kernel/ |
H A D | t_extent.c | 63 u_long alignment, u_long boundary, int expret, u_long expres) in h_alloc_subregion() argument 70 boundary, ##__VA_ARGS__) in h_alloc_subregion() 73 alignment, 0, boundary, 0, &result); in h_alloc_subregion() 183 "Checks for overflow in boundary check, before an allocated region " in ATF_TC_HEAD() 205 "Checks for overflow in boundary checks, before the subregion end " in ATF_TC_HEAD() 225 "Checks allocation beyond last boundary line: last two " in ATF_TC_HEAD() 226 "allocations should succeed without boundary \"fixups\""); in ATF_TC_HEAD() 245 "Checks allocation beyond last boundary line: last allocation " in ATF_TC_HEAD() 246 "should be bumped to the next boundary and exactly fit the " in ATF_TC_HEAD() 291 "When allocating a region with a boundary constraint, checks " in ATF_TC_HEAD()
|
/freebsd/contrib/llvm-project/compiler-rt/lib/profile/ |
H A D | InstrProfilingUtil.h | 77 static inline size_t lprofRoundUpTo(size_t x, size_t boundary) { in lprofRoundUpTo() argument 78 return (x + boundary - 1) & ~(boundary - 1); in lprofRoundUpTo() 81 static inline size_t lprofRoundDownTo(size_t x, size_t boundary) { in lprofRoundDownTo() argument 82 return x & ~(boundary - 1); in lprofRoundDownTo()
|
/freebsd/sys/contrib/device-tree/src/arm/nxp/imx/ |
H A D | imx6dl-nit6xlite.dts | 3 * Copyright 2015 Boundary Devices, Inc. 11 model = "Boundary Devices i.MX6 Solo Nitrogen6_Lite Board"; 12 compatible = "boundary,imx6dl-nit6xlite", "fsl,imx6dl";
|
H A D | imx6q-nitrogen6_max.dts | 3 * Copyright 2015 Boundary Devices, Inc. 11 model = "Boundary Devices i.MX6 Quad Nitrogen6_MAX Board"; 12 compatible = "boundary,imx6q-nitrogen6_max", "fsl,imx6q";
|