Lines Matching +full:auto +full:- +full:range
1 // SPDX-License-Identifier: GPL-2.0
30 * cros_ec_lpc_mec_lock() - Acquire mutex for EMI
46 return -EBUSY; in cros_ec_lpc_mec_lock()
52 * cros_ec_lpc_mec_unlock() - Release mutex for EMI
67 return -EBUSY; in cros_ec_lpc_mec_unlock()
73 * cros_ec_lpc_mec_emi_write_address() - Initialize EMI at a given address.
76 * @access_type: Type of access, typically 32-bit auto-increment
86 * cros_ec_lpc_mec_in_range() - Determine if addresses are in MEC EMI range.
91 * Return: 1 if in range, 0 if not, and -EINVAL on failure
92 * such as the mec range not being initialized
97 return -EINVAL; in cros_ec_lpc_mec_in_range()
100 if (WARN_ON(offset + length - 1 >= mec_emi_end)) in cros_ec_lpc_mec_in_range()
101 return -EINVAL; in cros_ec_lpc_mec_in_range()
106 return -EINVAL; in cros_ec_lpc_mec_in_range()
112 * cros_ec_lpc_io_bytes_mec() - Read / write bytes to MEC EMI port.
119 * @return: A negative error code on error, or 8-bit checksum of all
174 * Use long auto-increment access except for misaligned write, in cros_ec_lpc_io_bytes_mec()
177 if (length - i < 4 && io_type == MEC_IO_WRITE) in cros_ec_lpc_io_bytes_mec()
213 return -ENOENT; in cros_ec_lpc_mec_acpi_mutex()
215 status = acpi_get_handle(adev->handle, pathname, &aml_mutex); in cros_ec_lpc_mec_acpi_mutex()
217 return -ENOENT; in cros_ec_lpc_mec_acpi_mutex()