Searched refs:segment (Results 1 - 17 of 17) sorted by relevance

/macosx-10.5.8/xnu-1228.15.4/libkern/c++/
H A DOSRuntime.cpp164 // Given a pointer to a 32 bit mach object segment, iterate the segment to
168 OSRuntimeUnloadCPPForSegment(struct segment_command * segment) { argument
172 for (section = firstsect(segment);
174 section = nextsect(segment, section)) {
197 struct segment_command * segment; local
204 segment = firstsegfromheader(header);
206 for (segment = firstsegfromheader(header);
207 segment != 0;
208 segment
241 struct segment_command * segment; local
[all...]
/macosx-10.5.8/xnu-1228.15.4/iokit/Kernel/
H A DIOMemoryCursor.cpp197 void IONaturalMemoryCursor::outputSegment(PhysicalSegment segment, argument
201 ((PhysicalSegment *) outSegments)[outSegmentIndex] = segment;
244 IOPhysicalAddress * segment; local
246 segment = &((PhysicalSegment *) inSegments)[inSegmentIndex].location;
247 OSWriteBigInt(segment, 0, inSegment.location);
248 OSWriteBigInt(segment, sizeof(IOPhysicalAddress), inSegment.length);
291 IOPhysicalAddress * segment; local
293 segment = &((PhysicalSegment *) inSegments)[inSegmentIndex].location;
294 OSWriteLittleInt(segment, 0, inSegment.location);
295 OSWriteLittleInt(segment, sizeo
344 IODBDMADescriptor *segment; local
[all...]
H A DIODMACommand.cpp172 maxSegmentSize--; // Set Max segment to -1
304 Segment64 segment,
322 address = segment.fIOVMAddr;
323 length = segment.fLength;
570 maxSegmentSize--; // Set Max segment to -1
751 Segment64 segment,
756 UInt64 length = min(segment.fLength, context->remaining);
757 addr64_t ioAddr = segment.fIOVMAddr;
1037 Segment64 segment, void *vSegList, UInt32 outSegIndex)
1042 && ((segment
301 segmentOp( void *reference, IODMACommand *target, Segment64 segment, void *segments, UInt32 segmentIndex) argument
749 transferSegment(void *reference, IODMACommand *target, Segment64 segment, void *segments, UInt32 segmentIndex) argument
1035 clientOutputSegment( void *reference, IODMACommand *target, Segment64 segment, void *vSegList, UInt32 outSegIndex) argument
1058 OutputHost32(IODMACommand *, Segment64 segment, void *vSegList, UInt32 outSegIndex) argument
1068 OutputBig32(IODMACommand *, Segment64 segment, void *vSegList, UInt32 outSegIndex) argument
1079 OutputLittle32(IODMACommand *, Segment64 segment, void *vSegList, UInt32 outSegIndex) argument
1090 OutputHost64(IODMACommand *, Segment64 segment, void *vSegList, UInt32 outSegIndex) argument
1099 OutputBig64(IODMACommand *, Segment64 segment, void *vSegList, UInt32 outSegIndex) argument
1110 OutputLittle64(IODMACommand *, Segment64 segment, void *vSegList, UInt32 outSegIndex) argument
[all...]
H A DIOCatalogue.cpp63 extern void OSRuntimeUnloadCPPForSegment(struct segment_command * segment);
1586 * deallocates the kernel's __KLD segment to reclaim that memory.
1636 IOLog("error removing kernel linker: can't find __KLD segment\n");
1651 /* On x86, use the mapping data from the segment load command to
/macosx-10.5.8/xnu-1228.15.4/iokit/IOKit/
H A DIOMemoryCursor.h42 specific memory cursors must inherit from, but a memory cursor can be created without a specific format subclass by just providing a segment function to the initializers. This class does the difficult stuff of dividing a memory descriptor into a physical scatter/gather list appropriate for the target hardware.
44 A driver is expected to create a memory cursor and configure it to the limitations of its DMA hardware; for instance the memory cursor used by the FireWire SBP-2 protocol has a maximum physical segment size of 2^16 - 1 but the actual transfer size is unlimited. Thus it would create a cursor with a maxSegmentSize of 65535 and a maxTransfer size of UINT_MAX. It would also provide a SegmentFunction that can output a pagelist entry.
47 void IONaturalMemoryCursor::outputSegment(PhysicalSegment segment,<br>
51 ((PhysicalSegment *) outSegments)[outSegmentIndex] = segment;<br>
77 @discussion Pointer to a C function that outputs a single physical segment to an element in the array as defined by the segments and segmentIndex parameters.
78 @param segment The physical address and length that is next to be output.
80 @param segmentIndex Index to output 'segment' in the 'segments' array.
82 typedef void (*SegmentFunction)(PhysicalSegment segment,
94 /*! @var maxSegmentSize Maximum size of one segment in a scatter/gather list */
109 @param outSegFunc SegmentFunction to call to output one physical segment
[all...]
H A DIODMACommand.h101 @discussion Pointer to a C function that translates a 64 segment and outputs a single desired segment to the array at the requested index. There are a group of pre-implemented SegmentFunctions that may be usefull to the developer below.
102 @param segment The 64Bit I/O bus address and length.
104 @param segmentIndex Index to output 'segment' in the 'segments' array.
105 @result Returns true if segment encoding succeeded. false may be returned if the current segment does not fit in an output segment, i.e. a 38bit address wont fit into a 32 encoding.
108 Segment64 segment,
115 @abstract Output host natural Segment32 output segment function.
121 @abstract Output host natural Segment32 output segment functio
[all...]
/macosx-10.5.8/xnu-1228.15.4/osfmk/i386/
H A Dmp_slave_boot.s73 #define LJMP(segment,address) \
77 .word segment
139 /* set up the protective mode segment registers : DS, SS, ES */
161 movl $0x28, %ebx /* segment */
H A Dacpi_wakeup.s40 #define LJMP(segment, address) \
43 .word segment
84 * Make intra-segment jump to flush pipeline and reload CS register.
94 /* setup the protected mode segment registers */
168 /* save segment registers */
225 /* switch to kernel code segment */
233 /* switch to kernel data segment */
241 /* restore segment registers */
253 movl $(KERNEL_TSS), %eax /* TSS segment selector */
301 /* switch to kernel data segment */
[all...]
H A Dhibernate_restore.s46 #define LJMP(segment,address) \
49 .word segment
200 mov $(KERNEL_DS),%ax /* set kernel data segment */
H A Dstart.s76 #define LJMP(segment,address) \
79 .word segment
534 LJMP(KERNEL_CS,EXT(vstart)) /* switch to kernel code segment */
542 mov $(KERNEL_DS),%ax /* set kernel data segment */
546 mov %ax,EXT(master_ktss)+TSS_SS0 /* set kernel stack segment */
559 movw $(KERNEL_LDT),%ax /* get LDT segment */
631 LJMP(KERNEL_CS,EXT(slave_vstart)) /* switch to kernel code segment */
649 mov $(KERNEL_DS),%ax /* set kernel data segment */
680 movw $(KERNEL_LDT),%ax /* get LDT segment */
/macosx-10.5.8/xnu-1228.15.4/osfmk/ppc/
H A Dhw_vm.s83 ; +--------+--------+--------+--------+--------+--------+--------+ left shifted "segment"
285 rlwinm r9,r30,0,4,31 ; Clear segment
938 rlwinm r8,r27,4+maxAdrSpb,31-maxAdrSpb-3,31-maxAdrSpb ; Isolate the segment
1282 rldicr r0,r0,0,49 ; Clean all but segment portion
1350 sldi r24,r24,28 ; Get the full XOR value over to segment position
3691 ; handleDSeg - handle a data segment fault
3692 ; handleISeg - handle an instruction segment fault
3696 ; to also handle the missing segment.
3783 ; On 32-bit machines we emulate a segment exception by loading unused SRs with a
3795 cmplwi r4,invalSpace ; Is this a simulated segment faul
[all...]
H A Dlowmem_vectors.s237 * Data segment
259 * Instruction segment
2098 ; Here is where we return from the PTE miss and segment exception handler
3011 bl EXT(switchSegs) ; Go handle the segment registers/STB
3099 ; All permanent interruptions (i.e., not denorm, alignment, or handled page and segment faults)
3105 ; or denorm exception, or from a handled page or segment fault.
3148 bl EXT(switchSegs) ; Go handle the segment registers/STB
3371 ; All permanent interruptions (i.e., not denorm, alignment, or handled page and segment faults)
3377 ; or denorm exception, or from a handled page or segment fault.
3420 bl EXT(switchSegs) ; Go handle the segment register
[all...]
H A Dstart.s820 lis r0,(pcfValid|pcfLarge|pcfDedSeg)<<8 ; Set the valid bit, dedicated segment, and large page flags
H A Dcswtch.s609 ; taking a segment exception in a system that is doing heavy file I/O. We
615 lwz r11,SAVlevel(r30) ; Touch the context in order to fault in the segment
H A Dvmachmon_asm.s2168 bl EXT(switchSegs) ; Go handle the segment registers/STB
2322 bl EXT(switchSegs) ; Go handle the segment registers/STB
/macosx-10.5.8/xnu-1228.15.4/osfmk/default_pager/
H A Ddp_backing_store.c204 paging_segment_t segment,
374 ("segment #%d: %d total, %d free\n",
708 /* transfer of of the target segment. */
709 /* We are guaranteed that the target segment cannot get */
714 /* do not have any backing store in the target segment */
823 /* disable access to this segment */
827 * The "ps" segment is "off-line" now,
837 /* segment from the list of free pages */
839 /* segment pages will appear to be free */
848 * We couldn't delete the segment,
3311 ps_vstruct_transfer_from_segment( vstruct_t vs, paging_segment_t segment, upl_t upl) argument
[all...]
/macosx-10.5.8/xnu-1228.15.4/osfmk/kern/
H A Dkmod.c86 extern void OSRuntimeUnloadCPPForSegment(struct segment_command * segment);
1371 /* Now seek out the const section of the TEXT segment, bailing if not found.
1423 * Construct a TEXT segment load command. The only content of the TEXT
1424 * segment that we actually copy is the __TEXT,__const, which contains the
1453 * Now copy the __DATA segment load command, but none of its content.
1531 * Drop the LINKEDIT segment from the running kernel to recover wired memory.
1563 /* The semantic is "make sure the linkedit segment is freed", so if we
1570 // The in-kernel linker requires the linkedit segment to function.
1573 printf("can't remove kernel __LINKEDIT segment - in-kernel linker needs it\n");
1597 printf("error removing kernel __LINKEDIT segment\
[all...]

Completed in 120 milliseconds