Home
last modified time | relevance | path

Searched refs:offset (Results 1 – 25 of 347) sorted by relevance

12345678910>>...14

/xnu-11215/tools/lldbmacros/
H A Dapic.py43 def DoLapicRead32(offset, cpu): argument
52 return DoReadMsr64(offset >> 4, cpu)
56 def DoLapicWrite32(offset, val, cpu): argument
213 def DoIoApicRead(offset): argument
223 def DoIoApicWrite(offset, val): argument
278 offset = ArgumentStringToInt(cmd_args[0])
279 read_val = DoLapicRead32(offset, lcpu)
295 offset = ArgumentStringToInt(cmd_args[0])
324 offset = ArgumentStringToInt(cmd_args[0])
325 read_val = DoIoApicRead(offset)
[all …]
H A Dcoreanalytics.py17 offset = len(event_name) + 1
19 val = kern.GetValueFromAddress(curr + offset, "char *")
23 offset = offset + len(as_string) + 1
/xnu-11215/pexpert/arm/
H A Dpe_fiq.c41 #define gicd_read32(offset) (_gic_read32(gicd_base + (offset))) argument
42 #define gicd_write32(offset, data) (_gic_write32(gicd_base + (offset), (data))) argument
43 #define gicr_read32(offset) (_gic_read32(gicr_pe_base + (offset))) argument
44 #define gicr_write32(offset, data) (_gic_write32(gicr_pe_base + (offset), (data))) argument
45 #define gicr_read64(offset) (_gic_read64(gicr_pe_base + (offset))) argument
53 for (vm_offset_t offset = 0; offset < gicr_size; offset += GICR_PE_SIZE) { in find_gicr_pe_base() local
54 vm_offset_t gicr_pe_base = gicr_base + offset; in find_gicr_pe_base()
/xnu-11215/tests/vm/
H A Dvm_compressor.c79 size_t offset = 0; variable
83 offset += sizeof(uint32_t);
84 while (offset < sz) {
87 const struct c_segment_info* cseg = (const struct c_segment_info*)(buf + offset);
88 offset += sizeof(struct c_segment_info);
91 offset += cseg->csi_slots_len * sizeof(struct c_slot_info);
105 size_t offset = 0; variable
109 offset += sizeof(uint32_t);
111 T_ASSERT_LE(offset + sizeof(struct vm_map_info_hdr), sz, "vm_map_info_hdr size");
112 struct vm_map_info_hdr* hdr = (struct vm_map_info_hdr*)(buf + offset);
[all …]
/xnu-11215/osfmk/kern/
H A Dzalloc_ro_shim.h131 vm_offset_t offset, in zalloc_ro_mut_shimmed() argument
136 zalloc_ro_mut(zone_id.zid, elem, offset, new_data, new_data_size); in zalloc_ro_mut_shimmed()
148 vm_offset_t offset, in zalloc_ro_clear_shimmed() argument
152 zalloc_ro_clear(zone_id.zid, elem, offset, size); in zalloc_ro_clear_shimmed()
154 bzero((void *)((vm_offset_t)elem + offset), size); in zalloc_ro_clear_shimmed()
157 #define zalloc_ro_clear(zone_id, elem, offset, size) \ argument
158 zalloc_ro_clear_shimmed(zone_id, elem, offset, size)
225 vm_offset_t offset, in zalloc_ro_mut_atomic_shimmed() argument
232 vm_offset_t ptr = (vm_offset_t)elem + offset; in zalloc_ro_mut_atomic_shimmed()
236 #define zalloc_ro_mut_atomic(zone_id, elem, offset, op, value) \ argument
[all …]
/xnu-11215/osfmk/vm/
H A Dvm_compressor_pager.c92 memory_object_offset_t offset,
98 memory_object_offset_t offset,
107 memory_object_offset_t offset,
198 memory_object_offset_t offset,
425 memory_object_offset_t offset, in compressor_memory_object_data_request() argument
443 if ((uint32_t)(offset / PAGE_SIZE) != (offset / PAGE_SIZE)) { in compressor_memory_object_data_request()
488 memory_object_offset_t offset, in compressor_memory_object_data_initialize() argument
497 for (cur_offset = offset; in compressor_memory_object_data_initialize()
833 if ((uint32_t)(offset / PAGE_SIZE) != (offset / PAGE_SIZE)) { in vm_compressor_pager_get()
906 if ((uint32_t)(offset / PAGE_SIZE) != (offset / PAGE_SIZE)) { in vm_compressor_pager_state_clr()
[all …]
H A Dmemory_object.c592 paging_offset = offset; in vm_object_update_extent()
794 copy_offset = offset; in vm_object_update()
934 start = offset; in vm_object_update()
935 end = offset + size; in vm_object_update()
1285 offset = offset + named_entry->offset; in memory_object_iopl_request()
1320 offset, in memory_object_iopl_request()
1361 offset, in memory_object_upl_request()
1981 offset, in memory_object_data_request()
2003 offset, in memory_object_data_return()
2023 offset, in memory_object_data_initialize()
[all …]
H A Dvm_memory_entry.c347 &offset); in mach_make_memory_entry_named_create()
486 user_entry->offset = 0; in mach_make_memory_entry_named_create()
550 &offset); in mach_make_memory_entry_copy()
666 &offset); in mach_make_memory_entry_share()
1042 &offset, in mach_make_memory_entry_from_parent_entry()
1098 user_entry->offset, in mach_make_memory_entry_from_parent_entry()
1800 offset = mem_entry->offset; in mach_memory_entry_get_page_counts()
1803 offset = vm_object_trunc_page(offset); in mach_memory_entry_get_page_counts()
1844 offset = mem_entry->offset; in mach_memory_entry_phys_page_offset()
1849 *offset_p = offset - vm_object_trunc_page(offset) + data_offset; in mach_memory_entry_phys_page_offset()
[all …]
H A Dvm_iokit.h41 memory_object_offset_t offset,
64 extern void vm_page_set_offset(vm_page_t page, vm_object_offset_t offset);
77 vm_object_offset_t offset,
87 memory_object_offset_t offset,
111 memory_object_offset_ut offset,
141 memory_object_offset_ut offset,
153 vm_object_offset_ut offset,
H A Dbsd_vm.c164 memory_object_offset_t offset, in memory_object_control_uiomove() argument
279 offset += PAGE_SIZE_64; in memory_object_control_uiomove()
430 memory_object_offset_t offset, in vnode_pager_data_return() argument
440 assertf(page_aligned(offset), "offset 0x%llx\n", offset); in vnode_pager_data_return()
610 memory_object_offset_t offset, in vnode_pager_cs_check_validation_bitmap() argument
641 assertf(page_aligned(offset), "offset 0x%llx\n", offset); in vnode_pager_data_request()
646 base_offset = offset; in vnode_pager_data_request()
787 offset += size; in vnode_pager_cluster_write()
790 *resid_offset = offset; in vnode_pager_cluster_write()
822 base_offset = offset; in vnode_pager_cluster_write()
[all …]
/xnu-11215/iokit/Kernel/
H A DIOSubMemoryDescriptor.cpp49 IOByteCount offset, in withSubRange() argument
55 if (self && !self->initSubRange(of, offset, length, (IODirection) options)) { in withSubRange()
64 IOByteCount offset, IOByteCount length, in initSubRange() argument
67 if (parent && ((offset + length) > parent->getLength())) { in initSubRange()
97 _start = offset; in initSubRange()
125 assert(offset <= _length); in getPhysicalSegment()
131 if (offset >= _length) { in getPhysicalSegment()
135 address = _parent->getPhysicalSegment( offset + _start, &actualLength, options ); in getPhysicalSegment()
138 *length = min( _length - offset, actualLength ); in getPhysicalSegment()
199 IOByteCount offset, in makeMapping() argument
[all …]
H A DIONVRAMV3Handler.cpp124 var_offset = offset; in find_active_var_in_image()
140 uint32_t offset = 0; in find_current_offset_in_image() local
148 while (offset < len) { in find_current_offset_in_image()
162 while (offset < len) { in find_current_offset_in_image()
166 inner_offset = offset; in find_current_offset_in_image()
180 offset++; in find_current_offset_in_image()
183 *newOffset = offset; in find_current_offset_in_image()
731 if ((_nvramImage[offset + i] != 0) && (_nvramImage[offset + i] != 0xFF)) { in unserializeVariables()
1399 offset = 0; in convertObjectToProp()
1482 *length = offset; in convertObjectToProp()
[all …]
H A DIOInterleavedMemoryDescriptor.cpp131 IOByteCount offset, in setMemoryDescriptor() argument
138 if ((offset + length) > descriptor->getLength()) { in setMemoryDescriptor()
147 _descriptorOffsets[_descriptorCount] = offset; in setMemoryDescriptor()
258 IOByteCount offset, in getPhysicalSegment() argument
270 assert(offset <= _length); in getPhysicalSegment()
273 if (offset < _descriptorLengths[index]) { in getPhysicalSegment()
274 … pa = _descriptors[index]->getPhysicalSegment(_descriptorOffsets[index] + offset, length, options); in getPhysicalSegment()
275 if ((_descriptorLengths[index] - offset) < *length) { in getPhysicalSegment()
276 *length = _descriptorLengths[index] - offset; in getPhysicalSegment()
280 offset -= _descriptorLengths[index]; in getPhysicalSegment()
H A DIOMemoryDescriptor.cpp532 offset = 0; in memoryReferenceCreate()
720 entries->offset = offset + (entryAddr - srcAddr); in memoryReferenceCreate()
726 && (cloneEntries->offset == entries->offset)) { in memoryReferenceCreate()
776 entries->offset = offset + (entryAddr - srcAddr); in memoryReferenceCreate()
1129 entryOffset = offset - entry->offset; in memoryReferenceMap()
1442 printf("offset %qx, %qx\n", offset, entry->offset); in memoryReferenceMapNew()
1450 entryOffset = offset - entry->offset; in memoryReferenceMapNew()
1556 if (offset) { in memoryReferenceGetDMAMapLength()
1575 (offset ? *offset : (vm_object_offset_t)-1), total); in memoryReferenceGetDMAMapLength()
2813 for (IOByteCount offset = 0; offset < getLength(); offset += physical_segment.length) { in ktraceEmitPhysicalSegments() local
[all …]
H A DIODMACommand.cpp637 UInt64 offset; in walkAll() local
650 offset = 0; in walkAll()
686 offset = 0; in walkAll()
712 offset = 0; in walkAll()
1128 if (offset) { in getPreparedOffsetAndLength()
1306 if (offset >= memLength) { in genIOVMSegments()
1364 if (offset in genIOVMSegments()
1365 && (offset == internalState->fNextOffset || off2Ind <= offset)) { in genIOVMSegments()
1564 leftover, offset, in genIOVMSegments()
1594 offset = memLength; in genIOVMSegments()
[all …]
H A DIONVRAMCHRPHandler.cpp59 uint32_t offset; member
142 uint32_t offset; in adler32() local
148 for (offset = 0; offset < length; offset++) { in adler32()
175 size_t offset; in adler32_with_version() local
186 return adler32(buf + offset, len - offset); in adler32_with_version()
942 for (offset = 0; offset < length;) { in unescapeBytesToData()
943 byte = bytes[offset++]; in unescapeBytesToData()
961 for (offset = 0; offset < length;) { in unescapeBytesToData()
1119 offset = 0; in convertObjectToProp()
1180 buffer += offset; in convertObjectToProp()
[all …]
/xnu-11215/osfmk/kdp/output_stages/
H A Dout_disk.c57 if ((offset < stage_data->furthest_written_offset) || (offset != stage_data->current_offset)) { in disk_stage_write()
60 uint64_t aligned_offset = offset - offset_misalignment; in disk_stage_write()
61 err = disk_stage_read(stage, offset, 0, NULL); in disk_stage_write()
88 if (offset + chunk < stage_data->furthest_written_offset) { in disk_stage_write()
93 uint64_t aligned_offset = offset - offset_misalignment; in disk_stage_write()
94 err = disk_stage_read(stage, offset, 0, NULL); in disk_stage_write()
139 offset += chunk; in disk_stage_write()
141 if (offset > stage_data->furthest_written_offset) { in disk_stage_write()
142 stage_data->furthest_written_offset = offset; in disk_stage_write()
170 uint64_t aligned_offset = offset - offset_misalignment; in disk_stage_read()
[all …]
/xnu-11215/iokit/IOKit/
H A DIOMemoryDescriptor.h342 UInt32 offset,
593 UInt32 offset,
608 IOByteCount offset,
764 mach_vm_size_t offset = 0,
772 IOByteCount offset = 0,
837 IOByteCount offset,
1023 mach_vm_size_t offset,
1036 mach_vm_size_t offset,
1159 uint64_t * offset);
1188 UInt32 offset,
[all …]
H A DIODMACommand.h370 virtual IOReturn genIOVMSegments(UInt64 *offset,
375 virtual UInt64 transfer( IOOptionBits transferOp, UInt64 offset, void * buffer, UInt64 length );
387 UInt64 writeBytes(UInt64 offset, const void *bytes, UInt64 length);
397 UInt64 readBytes(UInt64 offset, void *bytes, UInt64 length);
403 gen32IOVMSegments(UInt64 *offset, in gen32IOVMSegments() argument
407 return genIOVMSegments(offset, segments, numSegments); in gen32IOVMSegments()
414 gen64IOVMSegments(UInt64 *offset, in gen64IOVMSegments() argument
418 return genIOVMSegments(offset, segments, numSegments); in gen64IOVMSegments()
487 UInt64 offset = 0,
505 virtual IOReturn getPreparedOffsetAndLength(UInt64 * offset, UInt64 * length);
[all …]
/xnu-11215/bsd/dev/arm64/
H A Dfasttrap_isa.c483 uint64_t offset; local
486 offset = sign_extend(offset, numbits - 1);
487 offset = offset << 2;
489 return offset;
497 uint64_t offset; local
525 uint64_t offset, regval; local
629 uint64_t offset; local
744 uint64_t offset; local
798 uint64_t offset; local
884 offset = sign_extend(offset, 32); /* Sign extend from bit 32 */
[all …]
/xnu-11215/libkern/kxld/
H A Dkxld_util.c297 u_long offset = 0; in validate_and_swap_macho_32() local
313 offset = sizeof(*mach_hdr); in validate_and_swap_macho_32()
478 u_long offset = 0; in validate_and_swap_macho_64() local
494 offset = sizeof(*mach_hdr); in validate_and_swap_macho_64()
673 u_long offset = 0; in unswap_macho_32() local
684 offset = sizeof(*mach_hdr); in unswap_macho_32()
731 u_long offset = 0; in unswap_macho_64() local
742 offset = sizeof(*mach_hdr); in unswap_macho_64()
862 kxld_round_page_cross_safe(kxld_addr_t offset) in kxld_round_page_cross_safe() argument
865 return round_page(offset); in kxld_round_page_cross_safe()
[all …]
H A Dkxld_sect.c80 if (src->offset) { in kxld_sect_init_from_macho_32()
81 sect->data = macho + src->offset; in kxld_sect_init_from_macho_32()
130 if (src->offset) { in kxld_sect_init_from_macho_64()
421 if (kxld_sect_align_address(sect, offset) != offset) { in export_macho()
424 kxld_sect_align_address(sect, offset), offset, in export_macho()
458 (void *) (buf + offset), in export_macho()
460 offset, in export_macho()
465 (void *) (buf + offset), in export_macho()
537 secthdr->offset, in sect_export_macho_header_32()
538 secthdr->offset, in sect_export_macho_header_32()
[all …]
/xnu-11215/osfmk/mach/
H A Dexclaves_l4.h352 for (Exclaves_L4_Word32_t offset = 0; offset < count; offset++) { in Exclaves_L4_SetMrs() local
353 ipcb->mr[mr + offset] = words[offset]; in Exclaves_L4_SetMrs()
363 for (Exclaves_L4_Word32_t offset = 0; offset < count; offset++) { in Exclaves_L4_GetMrs() local
364 words[offset] = ipcb->mr[mr + offset]; in Exclaves_L4_GetMrs()
/xnu-11215/pexpert/pexpert/arm64/
H A DAIC.h24 #define aic_read32(offset, data) (_aic_read32(pic_base + (offset))) argument
25 #define aic_write32(offset, data) (_aic_write32(pic_base + (offset), (data))) argument
/xnu-11215/bsd/kern/
H A Dkern_cs.c603 csvnode_get_blob(struct vnode *vp, off_t offset) in csvnode_get_blob() argument
605 return ubc_cs_blob_get(vp, -1, -1, offset); in csvnode_get_blob()
847 csvnode_get_teamid(struct vnode *vp, off_t offset) in csvnode_get_teamid() argument
855 csblob = ubc_cs_blob_get(vp, -1, -1, offset); in csvnode_get_teamid()
1117 if ((csblob = ubc_cs_blob_get(vp, -1, -1, offset)) == NULL) { in csfg_get_cdhash()
1302 if ((csblob = ubc_cs_blob_get(vp, -1, -1, offset)) == NULL) { in csfg_get_validation_category()
1443 csfg_get_csblob(struct fileglob *fg, uint64_t offset) in csfg_get_csblob() argument
1590 csfg_get_identity(struct fileglob *fg, off_t offset) in csfg_get_identity() argument
1604 csblob = ubc_cs_blob_get(vp, -1, -1, offset); in csfg_get_identity()
1633 return csvnode_get_platform_identifier(vp, offset); in csfg_get_platform_identifier()
[all …]

12345678910>>...14