Lines Matching +full:mm +full:- +full:0
3 * Module Name: exregion - ACPI default OpRegion (address space) handlers
11 * Some or all of this work - Copyright (c) 1999 - 2025, Intel Corp.
28 * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent
104 * re-exports any such software from a foreign destination, Licensee shall
105 * ensure that the distribution and export/re-export of the software is in
108 * any of its subsidiaries will export/re-export any technical data, process,
130 * 3. Neither the names of the above-listed copyright holders nor the names
165 * PARAMETERS: Function - Read or Write operation
166 * Address - Where in the space to read or write
167 * BitWidth - Field width in bits (8, 16, or 32)
168 * Value - Pointer to in or out value
169 * HandlerContext - Pointer to Handler's context
170 * RegionContext - Pointer to context specific to the
191 ACPI_MEM_MAPPING *Mm = MemInfo->CurMm; in AcpiExSystemMemorySpaceHandler() local
235 * Hardware does not support non-aligned data transfers, we must verify in AcpiExSystemMemorySpaceHandler()
239 if (Remainder != 0) in AcpiExSystemMemorySpaceHandler()
250 if (!Mm || (Address < Mm->PhysicalAddress) || in AcpiExSystemMemorySpaceHandler()
251 ((UINT64) Address + Length > (UINT64) Mm->PhysicalAddress + Mm->Length)) in AcpiExSystemMemorySpaceHandler()
260 for (Mm = MemInfo->FirstMm; Mm; Mm = Mm->NextMm) in AcpiExSystemMemorySpaceHandler()
262 if (Mm == MemInfo->CurMm) in AcpiExSystemMemorySpaceHandler()
267 if (Address < Mm->PhysicalAddress) in AcpiExSystemMemorySpaceHandler()
272 if ((UINT64) Address + Length > (UINT64) Mm->PhysicalAddress + Mm->Length) in AcpiExSystemMemorySpaceHandler()
277 MemInfo->CurMm = Mm; in AcpiExSystemMemorySpaceHandler()
283 Mm = ACPI_ALLOCATE_ZEROED(sizeof(*Mm)); in AcpiExSystemMemorySpaceHandler()
284 if (!Mm) in AcpiExSystemMemorySpaceHandler()
287 "Unable to save memory mapping at 0x%8.8X%8.8X, size %u", in AcpiExSystemMemorySpaceHandler()
298 ((MemInfo->Address + MemInfo->Length) - Address); in AcpiExSystemMemorySpaceHandler()
311 "Could not map memory at 0x%8.8X%8.8X, size %u", in AcpiExSystemMemorySpaceHandler()
313 ACPI_FREE(Mm); in AcpiExSystemMemorySpaceHandler()
319 Mm->LogicalAddress = LogicalAddrPtr; in AcpiExSystemMemorySpaceHandler()
320 Mm->PhysicalAddress = Address; in AcpiExSystemMemorySpaceHandler()
321 Mm->Length = MapLength; in AcpiExSystemMemorySpaceHandler()
327 Mm->NextMm = MemInfo->FirstMm; in AcpiExSystemMemorySpaceHandler()
328 MemInfo->FirstMm = Mm; in AcpiExSystemMemorySpaceHandler()
329 MemInfo->CurMm = Mm; in AcpiExSystemMemorySpaceHandler()
337 LogicalAddrPtr = Mm->LogicalAddress + in AcpiExSystemMemorySpaceHandler()
338 ((UINT64) Address - (UINT64) Mm->PhysicalAddress); in AcpiExSystemMemorySpaceHandler()
341 "System-Memory (width %u) R/W %u Address=%8.8X%8.8X\n", in AcpiExSystemMemorySpaceHandler()
347 * Note: For machines that do not support non-aligned transfers, the target in AcpiExSystemMemorySpaceHandler()
349 * transfer up into smaller (byte-size) chunks because the AML specifically in AcpiExSystemMemorySpaceHandler()
356 *Value = 0; in AcpiExSystemMemorySpaceHandler()
433 * PARAMETERS: Function - Read or Write operation
434 * Address - Where in the space to read or write
435 * BitWidth - Field width in bits (8, 16, or 32)
436 * Value - Pointer to in or out value
437 * HandlerContext - Pointer to Handler's context
438 * RegionContext - Pointer to context specific to the
464 "System-IO (width %u) R/W %u Address=%8.8X%8.8X\n", in AcpiExSystemIoSpaceHandler()
498 * PARAMETERS: Function - Read or Write operation
499 * Address - Where in the space to read or write
500 * BitWidth - Field width in bits (8, 16, or 32)
501 * Value - Pointer to in or out value
502 * HandlerContext - Pointer to Handler's context
503 * RegionContext - Pointer to context specific to the
532 * PciSegment is the PCI bus segment range 0-31 in AcpiExPciConfigSpaceHandler()
533 * PciBus is the PCI bus number range 0-255 in AcpiExPciConfigSpaceHandler()
534 * PciDevice is the PCI device number range 0-31 in AcpiExPciConfigSpaceHandler()
536 * PciRegister is the Config space register range 0-255 bytes in AcpiExPciConfigSpaceHandler()
538 * Value - input value for write, output address for read in AcpiExPciConfigSpaceHandler()
545 "Pci-Config %u (%u) Seg(%04x) Bus(%04x) " in AcpiExPciConfigSpaceHandler()
547 Function, BitWidth, PciId->Segment, PciId->Bus, PciId->Device, in AcpiExPciConfigSpaceHandler()
548 PciId->Function, PciRegister)); in AcpiExPciConfigSpaceHandler()
554 *Value = 0; in AcpiExPciConfigSpaceHandler()
579 * PARAMETERS: Function - Read or Write operation
580 * Address - Where in the space to read or write
581 * BitWidth - Field width in bits (8, 16, or 32)
582 * Value - Pointer to in or out value
583 * HandlerContext - Pointer to Handler's context
584 * RegionContext - Pointer to context specific to the
616 * PARAMETERS: Function - Read or Write operation
617 * Address - Where in the space to read or write
618 * BitWidth - Field width in bits (8, 16, or 32)
619 * Value - Pointer to in or out value
620 * HandlerContext - Pointer to Handler's context
621 * RegionContext - Pointer to context specific to the
653 * PARAMETERS: Function - Read or Write operation
654 * Address - Where in the space to read or write
655 * BitWidth - Field width in bits (8, 16, or 32)
656 * Value - Pointer to in or out value
657 * HandlerContext - Pointer to Handler's context
658 * RegionContext - Pointer to context specific to the
684 Pointer = ACPI_CAST_PTR (char, Mapping->Pointer) + in AcpiExDataTableSpaceHandler()
685 (Address - ACPI_PTR_TO_PHYSADDR (Mapping->Pointer)); in AcpiExDataTableSpaceHandler()