Lines Matching +full:width +full:- +full:mm

3  * Module Name: exregion - ACPI default OpRegion (address space) handlers
11 * Some or all of this work - Copyright (c) 1999 - 2024, 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;
202 /* Validate and translate the bit width */
228 ACPI_ERROR ((AE_INFO, "Invalid SystemMemory width %u",
235 * Hardware does not support non-aligned data transfers, we must verify
250 if (!Mm || (Address < Mm->PhysicalAddress) ||
251 ((UINT64) Address + Length > (UINT64) Mm->PhysicalAddress + Mm->Length))
260 for (Mm = MemInfo->FirstMm; Mm; Mm = Mm->NextMm)
262 if (Mm == MemInfo->CurMm)
267 if (Address < Mm->PhysicalAddress)
272 if ((UINT64) Address + Length > (UINT64) Mm->PhysicalAddress + Mm->Length)
277 MemInfo->CurMm = Mm;
283 Mm = ACPI_ALLOCATE_ZEROED(sizeof(*Mm));
284 if (!Mm)
298 ((MemInfo->Address + MemInfo->Length) - Address);
313 ACPI_FREE(Mm);
319 Mm->LogicalAddress = LogicalAddrPtr;
320 Mm->PhysicalAddress = Address;
321 Mm->Length = MapLength;
327 Mm->NextMm = MemInfo->FirstMm;
328 MemInfo->FirstMm = Mm;
329 MemInfo->CurMm = Mm;
337 LogicalAddrPtr = Mm->LogicalAddress +
338 ((UINT64) Address - (UINT64) Mm->PhysicalAddress);
341 "System-Memory (width %u) R/W %u Address=%8.8X%8.8X\n",
347 * Note: For machines that do not support non-aligned transfers, the target
349 * transfer up into smaller (byte-size) chunks because the AML specifically
350 * asked for a transfer width that the hardware may require.
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",
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
533 * PciBus is the PCI bus number range 0-255
534 * PciDevice is the PCI device number range 0-31
536 * PciRegister is the Config space register range 0-255 bytes
538 * Value - input value for write, output address for read
545 "Pci-Config %u (%u) Seg(%04x) Bus(%04x) "
547 Function, BitWidth, PciId->Segment, PciId->Bus, PciId->Device,
548 PciId->Function, PciRegister));
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) +
685 (Address - ACPI_PTR_TO_PHYSADDR (Mapping->Pointer));