• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/acpi/acpica/

Lines Matching refs:address

53 acpi_hw_validate_io_request(acpi_io_address address, u32 bit_width);
57 * conditionally illegal. This table must remain ordered by port address.
117 * DESCRIPTION: Validates an I/O request (address/length). Certain ports are
125 acpi_hw_validate_io_request(acpi_io_address address, u32 bit_width)
142 last_address = address + byte_width - 1;
145 ACPI_CAST_PTR(void, address), ACPI_CAST_PTR(void,
149 /* Maximum 16-bit address in I/O space */
153 "Illegal I/O port address/length above 64K: %p/0x%X",
154 ACPI_CAST_PTR(void, address), byte_width));
158 /* Exit if requested address is not within the protected port table */
160 if (address > acpi_protected_ports[ACPI_PORT_INFO_ENTRIES - 1].end) {
168 * Check if the requested address range will write to a reserved
171 * 1) Address range is contained completely in the port address range
176 if ((address <= port_info->end)
184 ACPI_CAST_PTR(void, address),
193 /* Finished if address range ends before the end of this port */
215 * address and the length.
219 acpi_status acpi_hw_read_port(acpi_io_address address, u32 *value, u32 width)
225 /* Truncate address to 16 bits if requested */
228 address &= ACPI_UINT16_MAX;
233 status = acpi_hw_validate_io_request(address, width);
235 status = acpi_os_read_port(address, value, width);
252 if (acpi_hw_validate_io_request(address, 8) == AE_OK) {
253 status = acpi_os_read_port(address, &one_byte, 8);
261 address++;
279 * address and the length.
283 acpi_status acpi_hw_write_port(acpi_io_address address, u32 value, u32 width)
288 /* Truncate address to 16 bits if requested */
291 address &= ACPI_UINT16_MAX;
296 status = acpi_hw_validate_io_request(address, width);
298 status = acpi_os_write_port(address, value, width);
315 if (acpi_hw_validate_io_request(address, 8) == AE_OK) {
317 acpi_os_write_port(address, (value >> i) & 0xFF, 8);
323 address++;