Searched defs:alignment (Results 1 - 21 of 21) sorted by relevance

/illumos-gate/usr/src/lib/libc/port/gen/
H A Dposix_memalign.c37 * The value of alignment shall be a power
49 posix_memalign(void **memptr, size_t alignment, size_t size) argument
54 if (alignment == 0 ||
55 (alignment & (sizeof (void *) - 1)) != 0 ||
56 (alignment & (alignment - 1)) != 0)
59 (ptr = memalign(alignment, size)) == NULL)
/illumos-gate/usr/src/uts/common/avs/ns/sdbc/
H A Dsd_pcu.h45 int32_t alignment; /* all sections are multiples of this */ member in struct:sdbc_pwf_hdr_s
/illumos-gate/usr/src/uts/common/io/xge/hal/xgehal/
H A Dxgehal-channel-fp.c242 * xge_hal_check_alignment - Check buffer alignment and calculate the
246 * @alignment: Alignment "granularity" (see below), in bytes.
250 * Check buffer alignment and calculate "misaligned" portion, if exists.
252 * the specified @alignment. If this is the case,
257 * may or may not be equal @alignment. The difference between these two
258 * arguments is that the @alignment is used to make the decision: aligned
262 * @alignment=8 and @copy_size=64 will work okay on AMD Opteron boxes.
264 * Note: @copy_size should be a multiple of @alignment. In many practical
265 * cases @copy_size and @alignment will probably be equal.
270 xge_hal_check_alignment(dma_addr_t dma_pointer, int size, int alignment, argument
[all...]
/illumos-gate/usr/src/cmd/lvm/util/
H A Dmetattach.c49 %s [-s setname] [-A alignment] softpart size|all\n"),
68 sp_ext_offset_t alignment = 0; local
79 if (meta_sp_parsesize(optarg, &alignment) == -1) {
96 if (meta_sp_attach(*spp, spnp, argv[0], options, alignment, ep) != 0) {
/illumos-gate/usr/src/uts/common/io/drm/
H A Ddrm_mm.c206 unsigned alignment)
213 if (alignment)
214 tmp = parent->start % alignment;
217 align_splitoff = drm_mm_split_at_start(parent, alignment - tmp);
239 unsigned alignment,
259 if (alignment) {
260 register unsigned tmp = entry->start % alignment;
262 wasted += alignment - tmp;
204 drm_mm_get_block(struct drm_mm_node *parent, unsigned long size, unsigned alignment) argument
237 drm_mm_search_free(const struct drm_mm *mm, unsigned long size, unsigned alignment, int best_match) argument
H A Ddrm_bufs.c135 * handle alignment issue here.
406 int alignment; local
418 alignment = (request->flags & _DRM_PAGE_ALIGN)
445 buf->total = alignment;
465 offset += alignment;
514 int alignment; local
524 alignment = (request->flags & _DRM_PAGE_ALIGN)
545 buf->total = alignment;
566 offset += alignment;
/illumos-gate/usr/src/uts/common/io/i40e/
H A Di40e_osdep.c45 enum i40e_memory_type type, u64 size, u32 alignment)
56 * Because we need to honor the specified alignment, we need to
57 * dynamically construct the attributes. We save the alignment for
61 attr.dma_attr_align = alignment;
62 mem->idm_alignment = alignment;
44 i40e_allocate_dma_mem(struct i40e_hw *hw, struct i40e_dma_mem *mem, enum i40e_memory_type type, u64 size, u32 alignment) argument
/illumos-gate/usr/src/lib/libmalloc/common/
H A Dmalloc.c198 memalign(size_t alignment, size_t size) argument
206 if (size == 0 || alignment == 0 ||
207 (alignment & (alignment - 1)) != 0) {
210 if (alignment <= ALIGNSZ)
213 alloc_size = size + alignment;
226 fr = (fr + alignment - 1) / alignment * alignment;
239 alloc_size = size + alignment*
[all...]
/illumos-gate/usr/src/tools/ndrgen/
H A Dndrgen.h138 unsigned int alignment : 3; /* mask */ member in struct:typeinfo
/illumos-gate/usr/src/uts/sun4/vm/
H A Dsfmmu.c526 ndata_extra_base(struct memlist *ndata, size_t alignment, caddr_t endaddr) argument
538 * The alignment needs to be a multiple of ecache_alignsize.
540 ASSERT((alignment % ecache_alignsize) == 0);
547 base = roundup(ndata->ml_address, alignment);
580 ndata_select_chunk(struct memlist *ndata, size_t wanted, size_t alignment) argument
609 base = roundup(frlist->ml_address, alignment);
658 ndata_alloc(struct memlist *ndata, size_t wanted, size_t alignment) argument
670 if ((found = ndata_select_chunk(ndata, wanted, alignment)) == NULL)
676 base = roundup(found->ml_address, alignment);
/illumos-gate/usr/src/uts/intel/io/drm/
H A Dradeon_io32.h148 int alignment; member in struct:drm_radeon_mem_alloc_32
H A Di915_gem.c1218 i915_gem_object_bind_to_gtt(struct drm_gem_object *obj, uint32_t alignment) argument
1228 if (alignment == 0)
1229 alignment = PAGE_SIZE;
1230 if (alignment & (PAGE_SIZE - 1)) {
1231 DRM_ERROR("Invalid object alignment requested %u\n", alignment);
1241 (unsigned long) obj->size, alignment, 0);
1244 alignment);
1749 ret = i915_gem_object_pin(obj, (uint32_t) entry->alignment);
1916 DRM_ERROR("alignment\
2226 i915_gem_object_pin(struct drm_gem_object *obj, uint32_t alignment) argument
[all...]
H A Di915_drm.h334 int alignment; member in struct:drm_i915_mem_alloc
341 int alignment; member in struct:drm_i915_mem_alloc32
608 /** Required alignment in graphics aperture */
609 uint64_t alignment; member in struct:drm_i915_gem_exec_object
649 /** alignment required within the aperture */
650 uint64_t alignment; member in struct:drm_i915_gem_pin
H A Dradeon_drm.h732 int alignment; member in struct:drm_radeon_mem_alloc
/illumos-gate/usr/src/lib/libmtmalloc/common/
H A Dmtmalloc.c158 #define MTMALLOC_MIN_ALIGN 8 /* min guaranteed alignment */
460 memalign(size_t alignment, size_t size) argument
467 if (size == 0 || alignment == 0 || misaligned(alignment) ||
468 (alignment & (alignment - 1)) != 0) {
474 if (alignment <= MTMALLOC_MIN_ALIGN)
477 alloc_size = size + alignment - MTMALLOC_MIN_ALIGN;
500 if ((offset = (uintptr_t)alloc_buf & (alignment - 1)) == 0) {
534 shift = alignment
[all...]
/illumos-gate/usr/src/uts/common/io/bnxe/
H A Dbnxe_mm.c561 u32_t alignment,
593 dmaAttrib.dma_attr_align = alignment;
599 size += (alignment - 1);
600 size &= ~((u32_t)(alignment - 1));
602 MEM_LOG(pUM, "*** DMA: %8u (%4d) - %8u", memSize, alignment, size);
660 (!((u32_t)pBuf % (u32_t)alignment)) ? 1 : 0,
661 (!((u32_t)pPhysAddr->as_ptr % (u32_t)alignment) ? 1 : 0));
558 mm_alloc_phys_mem_align_imp(lm_device_t * pLM, u32_t memSize, lm_address_t * pPhysAddr, u32_t alignment, u8_t memType, const char * sz_file, const unsigned long line, u8_t cli_idx) argument
/illumos-gate/usr/src/uts/common/smbsrv/
H A Dndr.h161 unsigned char alignment; /* mask */ member in struct:ndr_typeinfo
/illumos-gate/usr/src/lib/lvm/libmeta/common/
H A Dmeta_sp.c153 sp_ext_length_t alignment);
167 sp_ext_offset_t last_off, sp_ext_length_t alignment);
202 mdcmdopts_t options, sp_ext_length_t alignment, md_error_t *ep);
619 * RETURNS: sp_ext_length_t =0: no default alignment
620 * >0: default alignment
621 * PURPOSE: returns the default alignment for soft partitions to
639 * their alignment requirements.
657 * alignment. There's a chance that the least common
727 * If we have arrived here with the alignment still not set,
736 "alignment
3219 sp_ext_length_t alignment; local
3757 sp_ext_length_t alignment = 0LL; local
4242 meta_create_sp( mdsetname_t *sp, md_sp_t *msp, sp_ext_node_t *oblist, mdcmdopts_t options, sp_ext_length_t alignment, md_error_t *ep ) argument
4860 meta_sp_attach( mdsetname_t *sp, mdname_t *np, char *addsize, mdcmdopts_t options, sp_ext_length_t alignment, md_error_t *ep ) argument
[all...]
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/qlge/
H A Dqlge.c79 QL_DMA_ADDRESS_ALIGNMENT, /* DMA address alignment, default - 8 */
97 QL_DMA_ADDRESS_ALIGNMENT, /* DMA address alignment, default - 8 */
114 0x1, /* DMA address alignment, default - 8 */
1481 (size_t)0, /* default alignment */
1631 (size_t)0, /* default alignment */
3161 (size_t)0, /* alignment */
3252 (size_t)4, /* 4 bytes alignment */
3271 (size_t)4, /* 4 bytes alignment */
3384 (size_t)128, /* alignment:128 bytes boundary */
3416 (size_t)0, /* default alignment
3741 ql_alloc_phys_rbuf(dev_info_t *dip, ddi_dma_handle_t *dma_handle, ddi_device_acc_attr_t *device_acc_attr, uint_t dma_flags, ddi_acc_handle_t *acc_handle, size_t size, size_t alignment, caddr_t *vaddr, ddi_dma_cookie_t *dma_cookie) argument
3822 ql_alloc_phys(dev_info_t *dip, ddi_dma_handle_t *dma_handle, ddi_device_acc_attr_t *device_acc_attr, uint_t dma_flags, ddi_acc_handle_t *acc_handle, size_t size, size_t alignment, caddr_t *vaddr, ddi_dma_cookie_t *dma_cookie) argument
[all...]
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/qlc/
H A Dql_api.c474 QL_DMA_ADDRESS_ALIGNMENT, /* DMA address alignment */
489 QL_DMA_ADDRESS_ALIGNMENT, /* DMA address alignment */
2615 sp->sg_dma.alignment = 64;
11311 EL(ha, "incorrect buffer size alignment\n");
15512 mem_alloc_type_t allocation_type, mem_alignment_t alignment)
15522 switch (alignment) {
15524 mem->alignment = QL_DMA_ALIGN_8_BYTE_BOUNDARY;
15527 mem->alignment = QL_DMA_ALIGN_64_BYTE_BOUNDARY;
15530 EL(ha, "failed, unknown alignment type %x\n", alignment);
15511 ql_get_dma_mem(ql_adapter_state_t *ha, dma_mem_t *mem, uint32_t size, mem_alloc_type_t allocation_type, mem_alignment_t alignment) argument
[all...]
/illumos-gate/usr/src/uts/common/sys/fibre-channel/fca/qlc/
H A Dql_api.h1055 * DMA memory alignment type.
1066 uint64_t alignment; member in struct:dma_mem

Completed in 479 milliseconds