Searched refs:alignment (Results 1 - 18 of 18) sorted by relevance

/macosx-10.5.8/xnu-1228.15.4/iokit/IOKit/
H A DIOMemoryCursor.h112 @param alignment Alignment restrictions on output physical addresses. Not currently implemented. Defaults to single byte alignment.
119 IOPhysicalLength alignment = 1);
126 @param alignment Alignment restrictions on output physical addresses. Not currently implemented. Defaults to single byte alignment.
133 IOPhysicalLength alignment = 1);
188 @param alignment Alignment restrictions on output physical addresses. Not currently implemented. Defaults to single byte alignment.
194 IOPhysicalLength alignment = 1);
200 @param alignment Alignmen
[all...]
H A DIOBufferMemoryDescriptor.h82 vm_offset_t alignment,
89 mach_vm_address_t alignment,
155 vm_offset_t alignment);
159 vm_offset_t alignment = 1);
163 @discussion Added in Mac OS X 10.2, this method allocates a memory buffer with a given size and alignment in the task's address space specified, and returns a memory descriptor instance representing the memory. It is recommended that memory allocated for I/O or sharing via mapping be created via IOBufferMemoryDescriptor. Options passed with the request specify the kind of memory to be allocated - pageablity and sharing are specified with option bits. This function may block and so should not be called from interrupt level or while a simple lock is held.
172 @param alignment The minimum required alignment of the buffer in bytes - 1 is the default for no required alignment. For example, pass 256 to get memory allocated at an address with bits 0-7 zero.
179 vm_offset_t alignment = 1);
183 @discussion Added in Mac OS X 10.5, this method allocates a memory buffer with a given size and alignment i
[all...]
H A DIODMACommand.h188 @param alignment Alignment restriction, in bytes, on I/O bus addresses. Defaults to single byte alignment.
198 UInt32 alignment = 1,
211 @param alignment Alignment restriction, in bytes, on I/O bus addresses. Defaults to single byte alignment.
227 UInt32 alignment = 1,
246 @param alignment Alignment restriction, in bytes, on I/O bus addresses. Defaults to single byte alignment.
255 UInt32 alignment = 1,
283 @discussion Allocate the mapping resources neccessary for this transfer, specifying a sub range of the IOMemoryDescriptor that will be the target of the I/O. The complete() method frees these resources. Data may be copied to buffers for kIODirectionOut memory descriptors, depending on hardware mapping resource availabilty or alignment restriction
503 weakWithSpecification(IODMACommand **newCommand, SegmentFunction outSegFunc, UInt8 numAddressBits, UInt64 maxSegmentSize, MappingOptions mapType, UInt64 maxTransferSize, UInt32 alignment, IOMapper *mapper, void *refCon) argument
[all...]
H A DIOLib.h78 @discussion This is a general purpose utility to allocate memory in the kernel. There are no alignment guarantees given on the returned memory, and alignment may vary depending on the kernel configuration. This function may block and so should not be called from interrupt level or while a simple lock is held.
93 @abstract Allocates wired memory in the kernel map, with an alignment restriction.
94 @discussion This is a utility to allocate memory in the kernel, with an alignment restriction which is specified as a byte count. This function may block and so should not be called from interrupt level or while a simple lock is held.
96 @param alignment Byte count of the alignment for the memory. For example, pass 256 to get memory allocated at an address with bit 0-7 zero.
99 void * IOMallocAligned(vm_size_t size, vm_offset_t alignment);
110 @abstract Allocates wired memory in the kernel map, with an alignment restriction and physically contiguous.
111 @discussion This is a utility to allocate memory in the kernel, with an alignment restriction which is specified as a byte count, and will allocate only physically contiguous memory. The request may fail if memory is fragmented, and may cause large amounts of paging activity. This function may block and so should not be called from interrupt level or while a simple lock is held.
113 @param alignment Byt
[all...]
H A DIORangeAllocator.h77 @param defaultAlignment If this parameter is non-zero it specifies a required alignment for all allocations, for example pass 256 to align allocations on 256 byte boundaries. Zero or one specify unaligned allocations.
91 @param defaultAlignment If this parameter is non-zero it specifies a required alignment for all allocations, for example pass 256 to align allocations on 256 byte boundaries. Zero or one specify unaligned allocations.
137 @discussion This method allocates a range from the free list. The alignment will default to the alignment set when the allocator was created or may be set here.
140 @param alignment If zero is passed, default to the allocators alignment, otherwise pass an alignment required for the allocation, for example 4096 to page align.
146 IORangeScalar alignment = 0 );
/macosx-10.5.8/xnu-1228.15.4/iokit/Kernel/
H A DIOBufferMemoryDescriptor.cpp103 vm_offset_t alignment,
107 return (initWithPhysicalMask(inTask, options, capacity, alignment, physicalMask));
114 mach_vm_address_t alignment,
139 if ((options & (kIOMemorySharingTypeMask | kIOMapCacheMask)) && (alignment < page_size))
140 alignment = page_size;
142 if (physicalMask && (alignment <= 1))
143 alignment = ((physicalMask ^ PAGE_MASK) & PAGE_MASK) + 1;
145 _alignment = alignment;
228 _buffer = (void *) IOKernelAllocateContiguous(capacity, alignment);
229 else if (alignment >
100 initWithOptions( IOOptionBits options, vm_size_t capacity, vm_offset_t alignment, task_t inTask) argument
110 initWithPhysicalMask( task_t inTask, IOOptionBits options, mach_vm_size_t capacity, mach_vm_address_t alignment, mach_vm_address_t physicalMask) argument
347 inTaskWithOptions( task_t inTask, IOOptionBits options, vm_size_t capacity, vm_offset_t alignment) argument
398 initWithOptions( IOOptionBits options, vm_size_t capacity, vm_offset_t alignment) argument
406 withOptions( IOOptionBits options, vm_size_t capacity, vm_offset_t alignment) argument
506 vm_offset_t alignment = _alignment; local
[all...]
H A DIORangeAllocator.cpp186 IORangeScalar alignment )
196 if( 0 == alignment)
197 alignment = defaultAlignmentMask;
199 alignment--;
209 data = (thisStart + alignment) & ~alignment;
H A DIOLib.cpp198 void * IOMallocAligned(vm_size_t size, vm_size_t alignment) argument
208 if (alignment == 0)
209 alignment = 1;
211 alignMask = alignment - 1;
324 IOKernelAllocateContiguous(mach_vm_size_t size, mach_vm_size_t alignment) argument
334 if (alignment == 0)
335 alignment = 1;
337 alignMask = alignment - 1;
400 void * IOMallocContiguous(vm_size_t size, vm_size_t alignment, argument
407 if (alignment
572 IOMallocPageable(vm_size_t size, vm_size_t alignment) argument
[all...]
H A DIODMACommand.cpp118 UInt32 alignment,
127 alignment, mapper, refCon))
151 UInt32 alignment,
189 if (!alignment)
190 alignment = 1;
191 fAlignMask = alignment - 1;
543 UInt32 alignment,
599 if (!alignment)
600 alignment = 1;
601 fAlignMask = alignment
113 withSpecification(SegmentFunction outSegFunc, UInt8 numAddressBits, UInt64 maxSegmentSize, MappingOptions mappingOptions, UInt64 maxTransferSize, UInt32 alignment, IOMapper *mapper, void *refCon) argument
146 initWithSpecification(SegmentFunction outSegFunc, UInt8 numAddressBits, UInt64 maxSegmentSize, MappingOptions mappingOptions, UInt64 maxTransferSize, UInt32 alignment, IOMapper *mapper, void *refCon) argument
538 prepareWithSpecification(SegmentFunction outSegFunc, UInt8 numAddressBits, UInt64 maxSegmentSize, MappingOptions mappingOptions, UInt64 maxTransferSize, UInt32 alignment, IOMapper *mapper, UInt64 offset, UInt64 length, bool flushCache, bool synchronize) argument
[all...]
H A DIOKitKernelInternal.h55 IOKernelAllocateContiguous(mach_vm_size_t size, mach_vm_size_t alignment);
/macosx-10.5.8/xnu-1228.15.4/libkern/gen/
H A DOSAtomicOperations.c136 UInt32 alignment = ((UInt32) value8) & (sizeof(UInt32) - 1); local
138 int shift = (UInt32) *(((UInt8 *) &shiftValues) + alignment);
139 volatile UInt32 * value32 = (volatile UInt32 *) (value8 - alignment);
240 UInt32 alignment = ((UInt32) value16) & (sizeof(UInt32) - 1); local
242 UInt32 shift = (UInt32) *(((UInt8 *) &shiftValues) + alignment);
243 volatile UInt32 * value32 = (volatile UInt32 *) (((UInt32) value16) - alignment);
/macosx-10.5.8/xnu-1228.15.4/libkern/ppc/
H A Dstrlen.s57 andi. r4,r3,0x03 ; test alignment first
/macosx-10.5.8/xnu-1228.15.4/osfmk/ppc/
H A DEmulate.s201 ; alignment. We decode the DSISR to figure out what we need to do.
235 bne- aaPassAlong ; We are in a VM, no emulation for alignment exceptions...
243 rlwinm. r0,r19,0,enaNotifyEMb,enaNotifyEMb ; Should we notify that an alignment exception happened?
336 li r11,T_ALIGNMENT ; Set the we just did an alignment exception....
1004 ; Unhandled alignment exception, pass it along
1016 ; We go here to emulate a trace exception after we have handled alignment error
H A Dvmachmon_asm.s1172 beq+ swapDSI ; An alignment exception looks like a DSI...
1178 ; Set exit returns for a DSI or alignment exception
1603 beq+ swapDSI64 ; An alignment exception looks like a DSI...
1609 ; Set exit returns for a DSI or alignment exception
H A Dskiplists.s1056 andi. r30,r26,mpBasicSize-1 ; test address for alignment
1166 andi. r30,r26,mpBasicSize-1 ; test address for alignment
H A Dlowmem_vectors.s3099 ; All permanent interruptions (i.e., not denorm, alignment, or handled page and segment faults)
3104 ; SAVinject is set. That means that if will not run if we are returning from an alignment
3371 ; All permanent interruptions (i.e., not denorm, alignment, or handled page and segment faults)
3376 ; SAVinject is set. That means that if will not run if we are returning from an alignment
3636 .align 12 ; Force page alignment
/macosx-10.5.8/xnu-1228.15.4/bsd/vfs/
H A Dvfs_subr.c2682 off_t alignment; local
2764 (caddr_t)&alignment, 0, ctx)))
2809 if (alignment)
2810 temp = (alignment > PAGE_SIZE) ? PAGE_MASK : alignment - 1;
/macosx-10.5.8/xnu-1228.15.4/osfmk/chud/ppc/
H A Dchud_cpu_ppc.c1149 #pragma mark **** alignment exceptions ****

Completed in 178 milliseconds