Lines Matching defs:address
18 acpi_hw_validate_io_request(acpi_io_address address, u32 bit_width);
22 * conditionally illegal. This table must remain ordered by port address.
82 * DESCRIPTION: Validates an I/O request (address/length). Certain ports are
90 acpi_hw_validate_io_request(acpi_io_address address, u32 bit_width)
109 last_address = address + byte_width - 1;
113 ACPI_FORMAT_UINT64(address),
116 /* Maximum 16-bit address in I/O space */
120 "Illegal I/O port address/length above 64K: %8.8X%8.8X/0x%X",
121 ACPI_FORMAT_UINT64(address), byte_width));
125 /* Exit if requested address is not within the protected port table */
127 if (address > acpi_protected_ports[ACPI_PORT_INFO_ENTRIES - 1].end) {
135 * Check if the requested address range will write to a reserved
138 * 1) Address range is contained completely in the port address range
143 if ((address <= port_info->end)
152 ACPI_FORMAT_UINT64(address),
161 /* Finished if address range ends before the end of this port */
183 * address and the length.
187 acpi_status acpi_hw_read_port(acpi_io_address address, u32 *value, u32 width)
193 /* Truncate address to 16 bits if requested */
196 address &= ACPI_UINT16_MAX;
201 status = acpi_hw_validate_io_request(address, width);
203 status = acpi_os_read_port(address, value, width);
220 if (acpi_hw_validate_io_request(address, 8) == AE_OK) {
221 status = acpi_os_read_port(address, &one_byte, 8);
229 address++;
247 * address and the length.
251 acpi_status acpi_hw_write_port(acpi_io_address address, u32 value, u32 width)
256 /* Truncate address to 16 bits if requested */
259 address &= ACPI_UINT16_MAX;
264 status = acpi_hw_validate_io_request(address, width);
266 status = acpi_os_write_port(address, value, width);
283 if (acpi_hw_validate_io_request(address, 8) == AE_OK) {
285 acpi_os_write_port(address, (value >> i) & 0xFF, 8);
291 address++;
311 acpi_status acpi_hw_validate_io_block(u64 address, u32 bit_width, u32 count)
316 status = acpi_hw_validate_io_request((acpi_io_address)address,
321 address += ACPI_DIV_8(bit_width);