Home
last modified time | relevance | path

Searched refs:boundary (Results 1 – 25 of 171) sorted by relevance

1234567

/freebsd/sys/riscv/riscv/
H A Dbusdma_machdep.c53 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/x86/x86/
H A Dbusdma_machdep.c58 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/tests/sys/netpfil/pf/
H A Dfrag-overlimit.py39 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 Dfrag-overreplace.py37 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 Dfrag-overindex.py36 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/arm64/arm64/
H A Dbusdma_machdep.c54 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/crypto/openssl/crypto/asn1/
H A Dbio_ndef.c40 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/llvm-project/compiler-rt/lib/safestack/
H A Dsafestack_util.h31 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/powerpc/powerpc/
H A Dbusdma_machdep.c67 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()
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 in bus_dma_tag_create()
135 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/compiler-rt/lib/profile/
H A DInstrProfilingUtil.h77 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/vm/
H A Dvm_extern.h63 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...]
H A Dvm_reserv.h51 vm_paddr_t boundary);
63 vm_paddr_t boundary);
H A Dvm_kern.c219 u_long alignment, vm_paddr_t boundary, vm_memattr_t memattr) in kmem_alloc_contig_pages() argument
233 npages, low, high, alignment, boundary, memattr); in kmem_alloc_contig_pages()
239 low, high, alignment, boundary) == ENOMEM && wait) in kmem_alloc_contig_pages()
346 vm_paddr_t high, u_long alignment, vm_paddr_t boundary, in kmem_alloc_contig_domain() argument
367 pflags, npages, low, high, alignment, boundary, memattr); in kmem_alloc_contig_domain()
393 u_long alignment, vm_paddr_t boundary, vm_memattr_t memattr) in kmem_alloc_contig() argument
397 high, alignment, boundary, memattr)); in kmem_alloc_contig()
402 vm_paddr_t low, vm_paddr_t high, u_long alignment, vm_paddr_t boundary, in kmem_alloc_contig_domainset() argument
416 alignment, boundary, memattr); in kmem_alloc_contig_domainset()
H A Dvm_reserv.c624 u_long alignment, vm_paddr_t boundary) in vm_reserv_alloc_contig() argument
656 if (!vm_addr_ok(pa, size, alignment, boundary)) in vm_reserv_alloc_contig()
679 !vm_addr_ok(pa, size, alignment, boundary)) in vm_reserv_alloc_contig()
767 boundary > VM_LEVEL_0_SIZE ? boundary : 0); in vm_reserv_alloc_contig()
1290 vm_paddr_t high, u_long alignment, vm_paddr_t boundary) in vm_reserv_reclaim_contig() argument
1300 KASSERT(powerof2(boundary), ("boundary is not a power of 2")); in vm_reserv_reclaim_contig()
1309 if (!vm_addr_bound_ok(0, size, boundary)) in vm_reserv_reclaim_contig()
1320 ppn_bound = boundary == 0 ? VM_LEVEL_0_NPAGES : in vm_reserv_reclaim_contig()
1321 (int)(MIN(MAX(PAGE_SIZE, boundary), in vm_reserv_reclaim_contig()
1372 KASSERT(vm_addr_ok(pa, size, alignment, boundary), in vm_reserv_reclaim_contig()
[all …]
/freebsd/sys/compat/linuxkpi/common/include/linux/
H A Ddmapool.h40 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 Dmemprof_malloc_linux.cpp86 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/sys/arm/arm/
H A Dbusdma_machdep.c81 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/compiler-rt/lib/asan/
H A Dasan_malloc_linux.cpp95 INTERCEPTOR(void*, memalign, uptr boundary, uptr size) { in INTERCEPTOR() argument
97 return asan_memalign(boundary, size, &stack, FROM_MALLOC); in INTERCEPTOR()
100 INTERCEPTOR(void*, __libc_memalign, uptr boundary, uptr size) { in INTERCEPTOR() argument
102 void *res = asan_memalign(boundary, size, &stack, FROM_MALLOC); in INTERCEPTOR()
109 INTERCEPTOR(void*, aligned_alloc, uptr boundary, uptr size) { in INTERCEPTOR() argument
111 return asan_aligned_alloc(boundary, size, &stack); in INTERCEPTOR()
/freebsd/contrib/sendmail/contrib/
H A Dbounce-resender.pl128 $boundary = $1;
135 if (/^--$boundary/) {
165 if (!(/^--$boundary/ || /^\s*$/)) {
218 } elsif (/^--$boundary/) {
254 if (/^--$boundary/) {
/freebsd/sys/riscv/include/
H A Dbus_dma_impl.h35 bus_addr_t boundary; member
48 bus_size_t alignment, bus_addr_t boundary, bus_addr_t lowaddr,
79 bus_addr_t boundary, bus_addr_t lowaddr, bus_addr_t highaddr,
/freebsd/sys/x86/include/
H A Dbusdma_impl.h37 bus_addr_t boundary; member
51 bus_size_t alignment, bus_addr_t boundary, bus_addr_t lowaddr,
87 bus_addr_t boundary, bus_addr_t lowaddr, bus_addr_t highaddr,
/freebsd/sys/arm64/include/
H A Dbus_dma_impl.h35 bus_addr_t boundary; member
49 bus_size_t alignment, bus_addr_t boundary, bus_addr_t lowaddr,
84 bus_size_t alignment, bus_addr_t boundary, bus_addr_t lowaddr,
/freebsd/sys/dev/nvme/
H A Dnvme_ns.c250 return (ns->boundary); in nvme_ns_get_stripesize()
468 if (ns->boundary > 0 && in nvme_ns_bio_process()
471 bp->bio_bcount, ns->boundary); in nvme_ns_bio_process()
473 return (nvme_ns_split_bio(ns, bp, ns->boundary)); in nvme_ns_bio_process()
586 ns->boundary = in nvme_ns_construct()
590 ns->boundary = 0; in nvme_ns_construct()
592 ns->boundary = ns->data.noiob * nvme_ns_get_sector_size(ns); in nvme_ns_construct()
/freebsd/sys/contrib/dev/acpica/include/
H A Dacmacros.h347 #define ACPI_ROUND_DOWN(value, boundary) (((ACPI_SIZE)(value)) & \ argument
348 (~(((ACPI_SIZE) boundary)-1)))
350 #define ACPI_ROUND_UP(value, boundary) ((((ACPI_SIZE)(value)) + \ argument
351 (((ACPI_SIZE) boundary)-1)) & \
352 (~(((ACPI_SIZE) boundary)-1)))
371 #define ACPI_ROUND_UP_TO(value, boundary) (((value) + ((boundary)-1)) / (boundary)) argument
/freebsd/sys/arm/nvidia/drm2/
H A Dtegra_bo.c100 vm_paddr_t low, high, boundary; in tegra_bo_alloc_contig() local
104 boundary = 0; in tegra_bo_alloc_contig()
108 low, high, alignment, boundary, memattr); in tegra_bo_alloc_contig()
112 alignment, boundary); in tegra_bo_alloc_contig()

1234567