Lines Matching refs:achip

1138 	struct acpi_gpio_chip *achip = region_context;  in acpi_gpio_adr_space_handler()  local
1139 struct gpio_chip *chip = achip->chip; in acpi_gpio_adr_space_handler()
1147 status = acpi_buffer_to_resource(achip->conn_info.connection, in acpi_gpio_adr_space_handler()
1148 achip->conn_info.length, &ares); in acpi_gpio_adr_space_handler()
1172 mutex_lock(&achip->conn_lock); in acpi_gpio_adr_space_handler()
1175 list_for_each_entry(conn, &achip->conns, node) { in acpi_gpio_adr_space_handler()
1192 list_for_each_entry(event, &achip->events, node) { in acpi_gpio_adr_space_handler()
1204 mutex_unlock(&achip->conn_lock); in acpi_gpio_adr_space_handler()
1212 mutex_unlock(&achip->conn_lock); in acpi_gpio_adr_space_handler()
1219 list_add_tail(&conn->node, &achip->conns); in acpi_gpio_adr_space_handler()
1222 mutex_unlock(&achip->conn_lock); in acpi_gpio_adr_space_handler()
1235 static void acpi_gpiochip_request_regions(struct acpi_gpio_chip *achip) in acpi_gpiochip_request_regions() argument
1237 struct gpio_chip *chip = achip->chip; in acpi_gpiochip_request_regions()
1241 INIT_LIST_HEAD(&achip->conns); in acpi_gpiochip_request_regions()
1242 mutex_init(&achip->conn_lock); in acpi_gpiochip_request_regions()
1245 NULL, achip); in acpi_gpiochip_request_regions()
1251 static void acpi_gpiochip_free_regions(struct acpi_gpio_chip *achip) in acpi_gpiochip_free_regions() argument
1253 struct gpio_chip *chip = achip->chip; in acpi_gpiochip_free_regions()
1266 list_for_each_entry_safe_reverse(conn, tmp, &achip->conns, node) { in acpi_gpiochip_free_regions()
1274 acpi_gpiochip_parse_own_gpio(struct acpi_gpio_chip *achip, in acpi_gpiochip_parse_own_gpio() argument
1280 struct gpio_chip *chip = achip->chip; in acpi_gpiochip_parse_own_gpio()
1315 static void acpi_gpiochip_scan_gpios(struct acpi_gpio_chip *achip) in acpi_gpiochip_scan_gpios() argument
1317 struct gpio_chip *chip = achip->chip; in acpi_gpiochip_scan_gpios()
1330 desc = acpi_gpiochip_parse_own_gpio(achip, fwnode, &name, in acpi_gpiochip_scan_gpios()