| /f-stack/freebsd/contrib/openzfs/lib/libspl/include/os/linux/sys/ |
| H A D | sysmacros.h | 55 #define P2ALIGN(x, align) ((x) & -(align)) argument 58 #define P2BOUNDARY(off, len, align) \ argument 60 #define P2PHASE(x, align) ((x) & ((align) - 1)) argument 61 #define P2NPHASE(x, align) (-(x) & ((align) - 1)) argument 62 #define P2NPHASE_TYPED(x, align, type) \ argument 78 #define P2ALIGN_TYPED(x, align, type) \ argument 80 #define P2PHASE_TYPED(x, align, type) \ argument 82 #define P2NPHASE_TYPED(x, align, type) \ argument 84 #define P2ROUNDUP_TYPED(x, align, type) \ argument 86 #define P2END_TYPED(x, align, type) \ argument [all …]
|
| /f-stack/freebsd/contrib/openzfs/include/os/linux/spl/sys/ |
| H A D | sysmacros.h | 153 #define P2ALIGN(x, align) ((x) & -(align)) argument 156 #define P2PHASE(x, align) ((x) & ((align) - 1)) argument 157 #define P2NPHASE(x, align) (-(x) & ((align) - 1)) argument 160 #define P2BOUNDARY(off, len, align) \ argument 175 #define P2ALIGN_TYPED(x, align, type) \ argument 177 #define P2PHASE_TYPED(x, align, type) \ argument 179 #define P2NPHASE_TYPED(x, align, type) \ argument 181 #define P2ROUNDUP_TYPED(x, align, type) \ argument 183 #define P2END_TYPED(x, align, type) \ argument 185 #define P2PHASEUP_TYPED(x, align, phase, type) \ argument [all …]
|
| /f-stack/freebsd/contrib/openzfs/include/os/freebsd/spl/sys/ |
| H A D | ccompile.h | 236 #define P2ALIGN(x, align) ((x) & -(align)) argument 239 #define P2PHASE(x, align) ((x) & ((align) - 1)) argument 240 #define P2NPHASE(x, align) (-(x) & ((align) - 1)) argument 243 #define P2BOUNDARY(off, len, align) \ argument 258 #define P2ALIGN_TYPED(x, align, type) \ argument 260 #define P2PHASE_TYPED(x, align, type) \ argument 262 #define P2NPHASE_TYPED(x, align, type) \ argument 264 #define P2ROUNDUP_TYPED(x, align, type) \ argument 266 #define P2END_TYPED(x, align, type) \ argument 268 #define P2PHASEUP_TYPED(x, align, phase, type) \ argument [all …]
|
| H A D | sysmacros.h | 194 #define P2ALIGN(x, align) ((x) & -(align)) argument 201 #define P2PHASE(x, align) ((x) & ((align) - 1)) argument 223 #define P2END(x, align) (-(~(x) & -(align))) argument 239 #define P2BOUNDARY(off, len, align) \ argument 260 #define P2ALIGN_TYPED(x, align, type) \ argument 262 #define P2PHASE_TYPED(x, align, type) \ argument 264 #define P2NPHASE_TYPED(x, align, type) \ argument 266 #define P2ROUNDUP_TYPED(x, align, type) \ argument 268 #define P2END_TYPED(x, align, type) \ argument 270 #define P2PHASEUP_TYPED(x, align, phase, type) \ argument [all …]
|
| /f-stack/dpdk/lib/librte_eal/common/ |
| H A D | rte_malloc.c | 59 malloc_socket(const char *type, size_t size, unsigned int align, in malloc_socket() 89 rte_malloc_socket(const char *type, size_t size, unsigned int align, in rte_malloc_socket() 96 eal_malloc_no_trace(const char *type, size_t size, unsigned int align) in eal_malloc_no_trace() 105 rte_malloc(const char *type, size_t size, unsigned align) in rte_malloc() 114 rte_zmalloc_socket(const char *type, size_t size, unsigned align, int socket) in rte_zmalloc_socket() 136 rte_zmalloc(const char *type, size_t size, unsigned align) in rte_zmalloc() 145 rte_calloc_socket(const char *type, size_t num, size_t size, unsigned align, int socket) in rte_calloc_socket() 154 rte_calloc(const char *type, size_t num, size_t size, unsigned align) in rte_calloc() 163 rte_realloc_socket(void *ptr, size_t size, unsigned int align, int socket) in rte_realloc_socket() 207 rte_realloc(void *ptr, size_t size, unsigned int align) in rte_realloc()
|
| H A D | malloc_heap.c | 155 unsigned int flags, size_t align, size_t bound, bool contig) in find_suitable_element() 189 unsigned int flags, size_t align, bool contig) in find_biggest_element() 237 unsigned int flags, size_t align, size_t bound, bool contig) in heap_alloc() 260 unsigned int flags, size_t align, bool contig) in heap_alloc_biggest() 294 int socket, unsigned int flags, size_t align, size_t bound, in alloc_pages_on_heap() 491 int socket, unsigned int flags, size_t align, size_t bound, in try_expand_heap() 529 unsigned int flags, size_t align, size_t bound, bool contig) in alloc_more_mem_on_socket() 637 unsigned int heap_id, unsigned int flags, size_t align, in malloc_heap_alloc_on_heap_id() 698 unsigned int flags, size_t align, size_t bound, bool contig) in malloc_heap_alloc() 742 unsigned int flags, size_t align, bool contig) in heap_alloc_biggest_on_heap_id() [all …]
|
| H A D | eal_common_memzone.c | 58 int socket_id, unsigned int flags, unsigned int align, in memzone_reserve_aligned_thread_unsafe() 192 unsigned int flags, unsigned int align, unsigned int bound) in rte_memzone_reserve_thread_safe() 220 unsigned flags, unsigned align, unsigned bound) in rte_memzone_reserve_bounded() 232 unsigned flags, unsigned align) in rte_memzone_reserve_aligned()
|
| H A D | malloc_elem.c | 39 malloc_elem_find_max_iova_contig(struct malloc_elem *elem, size_t align) in malloc_elem_find_max_iova_contig() 224 elem_start_pt(struct malloc_elem *elem, size_t size, unsigned align, in elem_start_pt() 285 malloc_elem_can_hold(struct malloc_elem *elem, size_t size, unsigned align, in malloc_elem_can_hold() 433 malloc_elem_alloc(struct malloc_elem *elem, size_t size, unsigned align, in malloc_elem_alloc()
|
| /f-stack/dpdk/drivers/bus/dpaa/base/qbman/ |
| H A D | dpaa_alloc.c | 13 int bman_alloc_bpid_range(u32 *result, u32 count, u32 align, int partial) in bman_alloc_bpid_range() 28 int qman_alloc_fqid_range(u32 *result, u32 count, u32 align, int partial) in qman_alloc_fqid_range() 43 int qman_alloc_pool_range(u32 *result, u32 count, u32 align, int partial) in qman_alloc_pool_range() 58 int qman_alloc_cgrid_range(u32 *result, u32 count, u32 align, int partial) in qman_alloc_cgrid_range()
|
| /f-stack/freebsd/contrib/dpdk_rte_lpm/ |
| H A D | rte_common.h | 238 #define RTE_PTR_ALIGN_FLOOR(ptr, align) \ argument 247 #define RTE_ALIGN_FLOOR(val, align) \ argument 256 #define RTE_PTR_ALIGN_CEIL(ptr, align) \ argument 265 #define RTE_ALIGN_CEIL(val, align) \ argument 275 #define RTE_PTR_ALIGN(ptr, align) RTE_PTR_ALIGN_CEIL(ptr, align) argument 284 #define RTE_ALIGN(val, align) RTE_ALIGN_CEIL(val, align) argument 326 rte_is_aligned(void *ptr, unsigned align) in rte_is_aligned()
|
| /f-stack/dpdk/lib/librte_eal/include/ |
| H A D | rte_common.h | 277 #define RTE_PTR_ALIGN_FLOOR(ptr, align) \ argument 286 #define RTE_ALIGN_FLOOR(val, align) \ argument 295 #define RTE_PTR_ALIGN_CEIL(ptr, align) \ argument 304 #define RTE_ALIGN_CEIL(val, align) \ argument 314 #define RTE_PTR_ALIGN(ptr, align) RTE_PTR_ALIGN_CEIL(ptr, align) argument 323 #define RTE_ALIGN(val, align) RTE_ALIGN_CEIL(val, align) argument 365 rte_is_aligned(void *ptr, unsigned align) in rte_is_aligned()
|
| /f-stack/dpdk/drivers/crypto/bcmfs/ |
| H A D | bcmfs_qp.c | 29 uint32_t align) in bcmfs_qp_check_queue_alignment() 66 int socket_id, unsigned int align) in queue_dma_zone_reserve() 102 unsigned int align; in bcmfs_queue_create() local
|
| /f-stack/dpdk/drivers/common/mlx5/ |
| H A D | mlx5_malloc.c | 148 mlx5_alloc_align(size_t size, unsigned int align, unsigned int zero) in mlx5_alloc_align() 167 mlx5_malloc(uint32_t flags, size_t size, unsigned int align, int socket) in mlx5_malloc() 211 mlx5_realloc(void *addr, uint32_t flags, size_t size, unsigned int align, in mlx5_realloc()
|
| /f-stack/freebsd/kern/ |
| H A D | kern_sharedpage.c | 80 shared_page_alloc_locked(int size, int align) in shared_page_alloc_locked() 93 shared_page_alloc(int size, int align) in shared_page_alloc() 104 shared_page_fill(int size, int align, const void *data) in shared_page_fill()
|
| /f-stack/dpdk/app/test/ |
| H A D | test_malloc.c | 61 is_aligned(void *p, int align) in is_aligned() 272 int align = 1024; in test_multi_alloc_statistics() local 692 const unsigned align = 1 << (rte_rand() % 12); /* up to 4k alignment */ in test_random_alloc_free() local 824 unsigned align = RTE_CACHE_LINE_SIZE; in test_malloc_bad_params() local 910 const unsigned align = 0; in test_alloc_single_socket() local
|
| H A D | test_memzone.c | 473 find_max_block_free_size(unsigned int align, unsigned int socket_id) in find_max_block_free_size() 556 const unsigned int align = 1 << ((rte_rand() % 8) + 5); /* from 128 up to 4k alignment */ in test_memzone_reserve_max_aligned() local 752 check_memzone_bounded(const char *name, uint32_t len, uint32_t align, in check_memzone_bounded()
|
| /f-stack/dpdk/lib/librte_mempool/ |
| H A D | rte_mempool_ops_default.c | 13 size_t *min_chunk_size, size_t *align) in rte_mempool_op_calc_mem_size_helper() 71 size_t *min_chunk_size, size_t *align) in rte_mempool_op_calc_mem_size_default()
|
| /f-stack/dpdk/drivers/net/virtio/ |
| H A D | virtio_ring.h | 132 vring_size(struct virtio_hw *hw, unsigned int num, unsigned long align) in vring_size() 152 vring_init_split(struct vring *vr, uint8_t *p, unsigned long align, in vring_init_split() 164 vring_init_packed(struct vring_packed *vr, uint8_t *p, unsigned long align, in vring_init_packed()
|
| /f-stack/dpdk/drivers/net/ice/base/ |
| H A D | ice_common.h | 69 #define ICE_ALIGN(ptr, align) (((ptr) + ((align) - 1)) & ~((align) - 1)) argument
|
| /f-stack/dpdk/drivers/crypto/virtio/ |
| H A D | virtio_ring.h | 101 vring_size(unsigned int num, unsigned long align) in vring_size() 115 unsigned long align) in vring_init()
|
| /f-stack/freebsd/contrib/openzfs/lib/libspl/include/ |
| H A D | umem.h | 99 umem_alloc_aligned(size_t size, size_t align, int flags) in umem_alloc_aligned() 143 char *name, size_t bufsize, size_t align, in umem_cache_create()
|
| /f-stack/freebsd/contrib/octeon-sdk/ |
| H A D | cvmx-malloc.h | 152 uint32_t align; member
|
| H A D | cvmx-bootmem.c | 76 #define ALIGN_ADDR_UP(addr, align) (((addr) + (~(align))) & (align)) argument 462 …amed_range_once(uint64_t size, uint64_t min_addr, uint64_t max_addr, uint64_t align, const char *n… in cvmx_bootmem_alloc_named_range_once() 493 …med_range_flags(uint64_t size, uint64_t min_addr, uint64_t max_addr, uint64_t align, const char *n… in cvmx_bootmem_alloc_named_range_flags() 506 …loc_named_range(uint64_t size, uint64_t min_addr, uint64_t max_addr, uint64_t align, const char *n… in cvmx_bootmem_alloc_named_range()
|
| H A D | cvmx-zone.c | 100 …create_from_arena(char *name, uint32_t elem_size, uint32_t num_elem, uint32_t align, cvmx_arena_li… in cvmx_zone_create_from_arena()
|
| /f-stack/dpdk/lib/librte_mbuf/ |
| H A D | rte_mbuf_dyn.h | 81 size_t align; /**< The alignment constraint (power of 2). */ member
|