Home
last modified time | relevance | path

Searched refs:align (Results 1 – 25 of 321) sorted by relevance

12345678910>>...13

/f-stack/freebsd/contrib/openzfs/lib/libspl/include/os/linux/sys/
H A Dsysmacros.h55 #define P2ALIGN(x, align) ((x) & -(align)) argument
56 #define P2CROSS(x, y, align) (((x) ^ (y)) > (align) - 1) argument
57 #define P2ROUNDUP(x, align) ((((x) - 1) | ((align) - 1)) + 1) 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
63 (-(type)(x) & ((type)(align) - 1))
79 ((type)(x) & -(type)(align))
81 ((type)(x) & ((type)(align) - 1))
83 (-(type)(x) & ((type)(align) - 1))
[all …]
/f-stack/freebsd/contrib/openzfs/include/os/linux/spl/sys/
H A Dsysmacros.h153 #define P2ALIGN(x, align) ((x) & -(align)) argument
154 #define P2CROSS(x, y, align) (((x) ^ (y)) > (align) - 1) argument
155 #define P2ROUNDUP(x, align) ((((x) - 1) | ((align) - 1)) + 1) 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
176 ((type)(x) & -(type)(align))
178 ((type)(x) & ((type)(align) - 1))
180 (-(type)(x) & ((type)(align) - 1))
[all …]
/f-stack/freebsd/contrib/openzfs/include/os/freebsd/spl/sys/
H A Dccompile.h236 #define P2ALIGN(x, align) ((x) & -(align)) argument
237 #define P2CROSS(x, y, align) (((x) ^ (y)) > (align) - 1) argument
238 #define P2ROUNDUP(x, align) ((((x) - 1) | ((align) - 1)) + 1) 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
259 ((type)(x) & -(type)(align))
261 ((type)(x) & ((type)(align) - 1))
263 (-(type)(x) & ((type)(align) - 1))
[all …]
H A Dsysmacros.h194 #define P2ALIGN(x, align) ((x) & -(align)) argument
201 #define P2PHASE(x, align) ((x) & ((align) - 1)) argument
209 #define P2NPHASE(x, align) (-(x) & ((align) - 1)) argument
216 #define P2ROUNDUP(x, align) (-(-(x) & -(align))) argument
223 #define P2END(x, align) (-(~(x) & -(align))) argument
231 #define P2PHASEUP(x, align, phase) ((phase) - (((phase) - (x)) & -(align))) argument
261 ((type)(x) & -(type)(align))
263 ((type)(x) & ((type)(align) - 1))
265 (-(type)(x) & ((type)(align) - 1))
267 (-(-(type)(x) & -(type)(align)))
[all …]
/f-stack/dpdk/drivers/net/mlx4/
H A Dmlx4_utils.c66 size_t align = (uintptr_t)vec[i].align; in mlx4_mallocv_inline() local
68 if (!align) { in mlx4_mallocv_inline()
69 align = sizeof(double); in mlx4_mallocv_inline()
70 } else if (!rte_is_power_of_2(align)) { in mlx4_mallocv_inline()
74 if (least < align) in mlx4_mallocv_inline()
75 least = align; in mlx4_mallocv_inline()
76 align = RTE_ALIGN_CEIL(size, align); in mlx4_mallocv_inline()
77 size = align + vec[i].size; in mlx4_mallocv_inline()
79 *vec[i].addr = data + align; in mlx4_mallocv_inline()
/f-stack/dpdk/lib/librte_eal/common/
H A Drte_malloc.c65 if (size == 0 || (align && !rte_is_power_of_2(align))) in malloc_socket()
78 align == 0 ? 1 : align, 0, false); in malloc_socket()
105 rte_malloc(const char *type, size_t size, unsigned align) in rte_malloc() argument
116 void *ptr = rte_malloc_socket(type, size, align, socket); in rte_zmalloc_socket()
136 rte_zmalloc(const char *type, size_t size, unsigned align) in rte_zmalloc() argument
156 return rte_zmalloc(type, num * size, align); in rte_calloc()
166 return rte_malloc_socket(NULL, size, align, socket); in rte_realloc_socket()
174 size = RTE_CACHE_LINE_ROUNDUP(size), align = RTE_CACHE_LINE_ROUNDUP(align); in rte_realloc_socket()
181 RTE_PTR_ALIGN(ptr, align) == ptr && in rte_realloc_socket()
183 rte_eal_trace_mem_realloc(size, align, socket, ptr); in rte_realloc_socket()
[all …]
H A Dmalloc_heap.c205 align); in find_biggest_element()
212 align); in find_biggest_element()
242 align = RTE_CACHE_LINE_ROUNDUP(align); in heap_alloc()
265 align = RTE_CACHE_LINE_ROUNDUP(align); in heap_alloc_biggest()
469 req.alloc_req.align = align; in try_expand_heap_secondary()
609 align, bound, contig)) in alloc_more_mem_on_socket()
628 align, bound, contig)) in alloc_more_mem_on_socket()
650 align = align == 0 ? 1 : align; in malloc_heap_alloc_on_heap_id()
704 if (size == 0 || (align && !rte_is_power_of_2(align))) in malloc_heap_alloc()
750 align = align == 0 ? 1 : align; in heap_alloc_biggest_on_heap_id()
[all …]
H A Deal_common_memzone.c58 int socket_id, unsigned int flags, unsigned int align, in memzone_reserve_aligned_thread_unsafe() argument
98 if (align && !rte_is_power_of_2(align)) { in memzone_reserve_aligned_thread_unsafe()
100 align); in memzone_reserve_aligned_thread_unsafe()
106 if (align < RTE_CACHE_LINE_SIZE) in memzone_reserve_aligned_thread_unsafe()
107 align = RTE_CACHE_LINE_SIZE; in memzone_reserve_aligned_thread_unsafe()
145 align, contig); in memzone_reserve_aligned_thread_unsafe()
151 flags, align, bound, contig); in memzone_reserve_aligned_thread_unsafe()
203 name, len, socket_id, flags, align, bound); in rte_memzone_reserve_thread_safe()
223 align, bound); in rte_memzone_reserve_bounded()
232 unsigned flags, unsigned align) in rte_memzone_reserve_aligned() argument
[all …]
/f-stack/freebsd/net80211/
H A Dieee80211_radiotap.c281 size_t align, width; in radiotap_offset() member
288 .align = sizeof(uint8_t), in radiotap_offset()
292 .align = sizeof(uint8_t), in radiotap_offset()
304 .align = sizeof(uint8_t), in radiotap_offset()
308 .align = sizeof(uint8_t), in radiotap_offset()
324 .align = sizeof(uint8_t), in radiotap_offset()
328 .align = sizeof(uint8_t), in radiotap_offset()
332 .align = sizeof(uint8_t), in radiotap_offset()
336 .align = sizeof(uint8_t), in radiotap_offset()
344 .align = sizeof(uint8_t), in radiotap_offset()
[all …]
/f-stack/dpdk/drivers/bus/dpaa/base/qbman/
H A Ddpaa_alloc.c13 int bman_alloc_bpid_range(u32 *result, u32 count, u32 align, int partial) in bman_alloc_bpid_range() argument
15 return process_alloc(dpaa_id_bpid, result, count, align, 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() argument
30 return process_alloc(dpaa_id_fqid, result, count, align, 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() argument
45 return process_alloc(dpaa_id_qpool, result, count, align, 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() argument
60 return process_alloc(dpaa_id_cgrid, result, count, align, partial); in qman_alloc_cgrid_range()
/f-stack/dpdk/lib/librte_eal/include/
H A Drte_malloc.h57 rte_malloc(const char *type, size_t size, unsigned align)
84 rte_zmalloc(const char *type, size_t size, unsigned align)
111 rte_calloc(const char *type, size_t num, size_t size, unsigned align)
135 rte_realloc(void *ptr, size_t size, unsigned int align)
162 rte_realloc_socket(void *ptr, size_t size, unsigned int align, int socket)
189 rte_malloc_socket(const char *type, size_t size, unsigned align, int socket)
218 rte_zmalloc_socket(const char *type, size_t size, unsigned align, int socket)
247 rte_calloc_socket(const char *type, size_t num, size_t size, unsigned align, int socket)
H A Drte_common.h277 #define RTE_PTR_ALIGN_FLOOR(ptr, align) \ argument
278 ((typeof(ptr))RTE_ALIGN_FLOOR((uintptr_t)ptr, align))
286 #define RTE_ALIGN_FLOOR(val, align) \ argument
295 #define RTE_PTR_ALIGN_CEIL(ptr, align) \ argument
296 RTE_PTR_ALIGN_FLOOR((typeof(ptr))RTE_PTR_ADD(ptr, (align) - 1), align)
304 #define RTE_ALIGN_CEIL(val, align) \ argument
305 RTE_ALIGN_FLOOR(((val) + ((typeof(val)) (align) - 1)), align)
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() argument
[all …]
/f-stack/dpdk/drivers/common/mlx5/
H A Dmlx5_malloc.c148 mlx5_alloc_align(size_t size, unsigned int align, unsigned int zero) in mlx5_alloc_align() argument
153 ret = posix_memalign(&buf, align, size); in mlx5_alloc_align()
157 size, align, ret); in mlx5_alloc_align()
167 mlx5_malloc(uint32_t flags, size_t size, unsigned int align, int socket) in mlx5_malloc() argument
184 addr = rte_zmalloc_socket(NULL, size, align, socket); in mlx5_malloc()
186 addr = rte_malloc_socket(NULL, size, align, socket); in mlx5_malloc()
196 if (align > MLX5_MALLOC_ALIGNMENT) in mlx5_malloc()
197 addr = mlx5_alloc_align(size, align, !!(flags & MLX5_MEM_ZERO)); in mlx5_malloc()
219 return mlx5_malloc(flags, size, align, socket); in mlx5_realloc()
234 new_addr = rte_realloc_socket(addr, size, align, socket); in mlx5_realloc()
[all …]
/f-stack/freebsd/contrib/dpdk_rte_lpm/
H A Drte_common.h238 #define RTE_PTR_ALIGN_FLOOR(ptr, align) \ argument
239 ((typeof(ptr))RTE_ALIGN_FLOOR((uintptr_t)ptr, align))
247 #define RTE_ALIGN_FLOOR(val, align) \ argument
256 #define RTE_PTR_ALIGN_CEIL(ptr, align) \ argument
257 RTE_PTR_ALIGN_FLOOR((typeof(ptr))RTE_PTR_ADD(ptr, (align) - 1), align)
265 #define RTE_ALIGN_CEIL(val, align) \ argument
266 RTE_ALIGN_FLOOR(((val) + ((typeof(val)) (align) - 1)), align)
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() argument
[all …]
/f-stack/tools/libxo/doc/_static/
H A Dbasic.css_t114 text-align: left;
150 text-align: left;
231 text-align: left;
252 img.align-left, .figure.align-left, object.align-left {
258 img.align-right, .figure.align-right, object.align-right {
264 img.align-center, .figure.align-center, object.align-center {
270 .align-left {
271 text-align: left;
274 .align-center {
278 .align-right {
[all …]
/f-stack/dpdk/drivers/net/virtio/
H A Dvirtio_ring.h132 vring_size(struct virtio_hw *hw, unsigned int num, unsigned long align) in vring_size() argument
139 size = RTE_ALIGN_CEIL(size, align); in vring_size()
146 size = RTE_ALIGN_CEIL(size, align); in vring_size()
152 vring_init_split(struct vring *vr, uint8_t *p, unsigned long align, in vring_init_split() argument
160 RTE_ALIGN_CEIL((uintptr_t)(&vr->avail->ring[num]), align); in vring_init_split()
164 vring_init_packed(struct vring_packed *vr, uint8_t *p, unsigned long align, in vring_init_packed() argument
173 sizeof(struct vring_packed_desc_event)), align); in vring_init_packed()
/f-stack/dpdk/lib/librte_mbuf/
H A Drte_mbuf_dyn.c63 size_t off, align, size, i; in process_score() local
85 for (align = 1; in process_score()
86 (off % (align << 1)) == 0 && (align << 1) <= size; in process_score()
87 align <<= 1) in process_score()
91 for (i = off; i < off + align; i++) in process_score()
94 off += align; in process_score()
146 if ((offset & (align - 1)) != 0) in check_offset()
212 if (params1->align != params2->align) in mbuf_dynfield_cmp()
261 params->align) == 0 && in __rte_mbuf_dynfield_register_offset()
330 if (!rte_is_power_of_2(params->align)) { in rte_mbuf_dynfield_register_offset()
[all …]
/f-stack/freebsd/crypto/openssl/i386/
H A Dx86cpuid.S7 .align 16
151 .align 16
168 .align 16
200 .align 16
213 .align 16
227 .align 16
258 .align 16
277 .align 16
294 .align 16
314 .align 16
[all …]
H A Dvpaes-x86.S5 .align 64
61 .align 64
63 .align 16
71 .align 16
89 .align 16
148 .align 16
171 .align 16
236 .align 16
267 .align 16
287 .align 16
[all …]
/f-stack/dpdk/app/test/
H A Dtest_malloc.c61 is_aligned(void *p, int align) in is_aligned() argument
64 unsigned mask = align - 1; in is_aligned()
272 int align = 1024; in test_multi_alloc_statistics() local
314 align = 0; in test_multi_alloc_statistics()
694 mem_size, align); in test_random_alloc_free()
824 unsigned align = RTE_CACHE_LINE_SIZE; in test_malloc_bad_params() local
837 align = 17; in test_malloc_bad_params()
840 bad_ptr = rte_malloc(type, size, align); in test_malloc_bad_params()
853 align = RTE_CACHE_LINE_SIZE; in test_malloc_bad_params()
856 bad_ptr = rte_malloc(type, size, align); in test_malloc_bad_params()
[all …]
/f-stack/freebsd/crypto/openssl/amd64/
H A Dvpaes-x86_64.S21 .align 16
42 .align 16
113 .align 16
139 .align 16
221 .align 16
293 .align 16
325 .align 16
361 .align 16
408 .align 16
441 .align 16
[all …]
H A Dx86_64cpuid.S15 .align 16
29 .align 16
39 .align 16
208 .align 16
222 .align 16
243 .align 16
260 .align 16
276 .align 16
307 .align 16
320 .align 16
[all …]
/f-stack/app/redis-5.0.5/deps/jemalloc/test/integration/
H A Drallocx.c152 size_t align; in TEST_BEGIN() local
155 align = ZU(1); in TEST_BEGIN()
156 p = mallocx(1, MALLOCX_ALIGN(align)); in TEST_BEGIN()
159 for (align <<= 1; align <= MAX_ALIGN; align <<= 1) { in TEST_BEGIN()
160 q = rallocx(p, 1, MALLOCX_ALIGN(align)); in TEST_BEGIN()
162 "Unexpected rallocx() error for align=%zu", align); in TEST_BEGIN()
164 (void *)((uintptr_t)q & (align-1)), in TEST_BEGIN()
166 q, align); in TEST_BEGIN()
/f-stack/freebsd/contrib/octeon-sdk/
H A Dcvmx-helper-fpa.c73 uint64_t align = CVMX_CACHE_LINE_SIZE; in __cvmx_helper_initialize_fpa_pool() local
76 while (align < buffer_size) in __cvmx_helper_initialize_fpa_pool()
77 align = align << 1; in __cvmx_helper_initialize_fpa_pool()
90 memory = cvmx_bootmem_alloc(buffer_size * buffers, align); in __cvmx_helper_initialize_fpa_pool()
/f-stack/app/micro_thread/
H A Darch_ctx.S41 .align 4
64 .align 4
84 .align 4
100 .align 4
123 .align 4
142 .align 4

12345678910>>...13