ares 75 drivers/acpi/acpi_apd.c static int misc_check_res(struct acpi_resource *ares, void *data) ares 79 drivers/acpi/acpi_apd.c return !acpi_dev_resource_memory(ares, &res); ares 68 drivers/acpi/evged.c static acpi_status acpi_ged_request_interrupt(struct acpi_resource *ares, ares 80 drivers/acpi/evged.c struct acpi_resource_irq *p = &ares->data.irq; ares 81 drivers/acpi/evged.c struct acpi_resource_extended_irq *pext = &ares->data.extended_irq; ares 85 drivers/acpi/evged.c if (ares->type == ACPI_RESOURCE_TYPE_END_TAG) ares 88 drivers/acpi/evged.c if (!acpi_dev_resource_interrupt(ares, 0, &r)) { ares 92 drivers/acpi/evged.c if (ares->type == ACPI_RESOURCE_TYPE_IRQ) { ares 178 drivers/acpi/irq.c static acpi_status acpi_irq_parse_one_cb(struct acpi_resource *ares, ares 186 drivers/acpi/irq.c switch (ares->type) { ares 188 drivers/acpi/irq.c irq = &ares->data.irq; ares 199 drivers/acpi/irq.c eirq = &ares->data.extended_irq; ares 105 drivers/acpi/resource.c bool acpi_dev_resource_memory(struct acpi_resource *ares, struct resource *res) ares 111 drivers/acpi/resource.c switch (ares->type) { ares 113 drivers/acpi/resource.c memory24 = &ares->data.memory24; ares 119 drivers/acpi/resource.c memory32 = &ares->data.memory32; ares 125 drivers/acpi/resource.c fixed_memory32 = &ares->data.fixed_memory32; ares 178 drivers/acpi/resource.c bool acpi_dev_resource_io(struct acpi_resource *ares, struct resource *res) ares 183 drivers/acpi/resource.c switch (ares->type) { ares 185 drivers/acpi/resource.c io = &ares->data.io; ares 191 drivers/acpi/resource.c fixed_io = &ares->data.fixed_io; ares 288 drivers/acpi/resource.c bool acpi_dev_resource_address_space(struct acpi_resource *ares, ares 294 drivers/acpi/resource.c if (ACPI_FAILURE(acpi_resource_to_address64(ares, &addr))) ares 317 drivers/acpi/resource.c bool acpi_dev_resource_ext_address_space(struct acpi_resource *ares, ares 323 drivers/acpi/resource.c if (ares->type != ACPI_RESOURCE_TYPE_EXTENDED_ADDRESS64) ares 326 drivers/acpi/resource.c ext_addr = &ares->data.ext_address64; ares 452 drivers/acpi/resource.c bool acpi_dev_resource_interrupt(struct acpi_resource *ares, int index, ares 458 drivers/acpi/resource.c switch (ares->type) { ares 464 drivers/acpi/resource.c irq = &ares->data.irq; ares 474 drivers/acpi/resource.c ext_irq = &ares->data.extended_irq; ares 530 drivers/acpi/resource.c static acpi_status acpi_dev_process_resource(struct acpi_resource *ares, ares 541 drivers/acpi/resource.c ret = c->preproc(ares, c->preproc_data); ares 552 drivers/acpi/resource.c if (acpi_dev_resource_memory(ares, res) ares 553 drivers/acpi/resource.c || acpi_dev_resource_io(ares, res) ares 554 drivers/acpi/resource.c || acpi_dev_resource_address_space(ares, &win) ares 555 drivers/acpi/resource.c || acpi_dev_resource_ext_address_space(ares, &win)) ares 558 drivers/acpi/resource.c for (i = 0; acpi_dev_resource_interrupt(ares, i, res); i++) { ares 631 drivers/acpi/resource.c static int is_memory(struct acpi_resource *ares, void *not_used) ares 638 drivers/acpi/resource.c return !(acpi_dev_resource_memory(ares, res) ares 639 drivers/acpi/resource.c || acpi_dev_resource_address_space(ares, &win) ares 640 drivers/acpi/resource.c || acpi_dev_resource_ext_address_space(ares, &win)); ares 675 drivers/acpi/resource.c int acpi_dev_filter_resource_type(struct acpi_resource *ares, ares 680 drivers/acpi/resource.c switch (ares->type) { ares 705 drivers/acpi/resource.c if (ares->data.address.resource_type == ACPI_MEMORY_RANGE) ares 707 drivers/acpi/resource.c else if (ares->data.address.resource_type == ACPI_IO_RANGE) ares 709 drivers/acpi/resource.c else if (ares->data.address.resource_type == ares 1518 drivers/acpi/scan.c static int acpi_check_serial_bus_slave(struct acpi_resource *ares, void *data) ares 1522 drivers/acpi/scan.c if (ares->type != ACPI_RESOURCE_TYPE_SERIAL_BUS) ares 1660 drivers/acpi/scan.c static acpi_status acpi_get_resource_memory(struct acpi_resource *ares, ares 1665 drivers/acpi/scan.c if (acpi_dev_resource_memory(ares, res)) ares 860 drivers/bluetooth/hci_bcm.c static int bcm_resource(struct acpi_resource *ares, void *data) ares 867 drivers/bluetooth/hci_bcm.c switch (ares->type) { ares 869 drivers/bluetooth/hci_bcm.c irq = &ares->data.extended_irq; ares 876 drivers/bluetooth/hci_bcm.c gpio = &ares->data.gpio; ares 885 drivers/bluetooth/hci_bcm.c sb = &ares->data.uart_serial_bus; ares 435 drivers/char/tpm/tpm_crb.c static int crb_check_resource(struct acpi_resource *ares, void *data) ares 441 drivers/char/tpm/tpm_crb.c if (acpi_dev_resource_memory(ares, res) || ares 442 drivers/char/tpm/tpm_crb.c acpi_dev_resource_address_space(ares, &win)) { ares 154 drivers/gpio/gpiolib-acpi.c bool acpi_gpio_get_irq_resource(struct acpi_resource *ares, ares 159 drivers/gpio/gpiolib-acpi.c if (ares->type != ACPI_RESOURCE_TYPE_GPIO) ares 162 drivers/gpio/gpiolib-acpi.c gpio = &ares->data.gpio; ares 259 drivers/gpio/gpiolib-acpi.c static acpi_status acpi_gpiochip_alloc_event(struct acpi_resource *ares, ares 271 drivers/gpio/gpiolib-acpi.c if (!acpi_gpio_get_irq_resource(ares, &agpio)) ares 635 drivers/gpio/gpiolib-acpi.c static int acpi_populate_gpio_lookup(struct acpi_resource *ares, void *data) ares 639 drivers/gpio/gpiolib-acpi.c if (ares->type != ACPI_RESOURCE_TYPE_GPIO) ares 643 drivers/gpio/gpiolib-acpi.c const struct acpi_resource_gpio *agpio = &ares->data.gpio; ares 977 drivers/gpio/gpiolib-acpi.c struct acpi_resource *ares; ares 984 drivers/gpio/gpiolib-acpi.c achip->conn_info.length, &ares); ares 988 drivers/gpio/gpiolib-acpi.c if (WARN_ON(ares->type != ACPI_RESOURCE_TYPE_GPIO)) { ares 989 drivers/gpio/gpiolib-acpi.c ACPI_FREE(ares); ares 993 drivers/gpio/gpiolib-acpi.c agpio = &ares->data.gpio; ares 997 drivers/gpio/gpiolib-acpi.c ACPI_FREE(ares); ares 1073 drivers/gpio/gpiolib-acpi.c ACPI_FREE(ares); ares 1274 drivers/gpio/gpiolib-acpi.c static int acpi_find_gpio_count(struct acpi_resource *ares, void *data) ares 1278 drivers/gpio/gpiolib-acpi.c if (ares->type == ACPI_RESOURCE_TYPE_GPIO) ares 1279 drivers/gpio/gpiolib-acpi.c *count += ares->data.gpio.pin_table_length; ares 55 drivers/i2c/i2c-core-acpi.c bool i2c_acpi_get_i2c_resource(struct acpi_resource *ares, ares 60 drivers/i2c/i2c-core-acpi.c if (ares->type != ACPI_RESOURCE_TYPE_SERIAL_BUS) ares 63 drivers/i2c/i2c-core-acpi.c sb = &ares->data.i2c_serial_bus; ares 72 drivers/i2c/i2c-core-acpi.c static int i2c_acpi_fill_info(struct acpi_resource *ares, void *data) ares 79 drivers/i2c/i2c-core-acpi.c if (info->addr || !i2c_acpi_get_i2c_resource(ares, &sb)) ares 136 drivers/i2c/i2c-core-acpi.c static int i2c_acpi_add_resource(struct acpi_resource *ares, void *data) ares 141 drivers/i2c/i2c-core-acpi.c if (*irq <= 0 && acpi_dev_resource_interrupt(ares, 0, &r)) ares 596 drivers/i2c/i2c-core-acpi.c struct acpi_resource *ares; ares 602 drivers/i2c/i2c-core-acpi.c ret = acpi_buffer_to_resource(info->connection, info->length, &ares); ares 612 drivers/i2c/i2c-core-acpi.c if (!value64 || !i2c_acpi_get_i2c_resource(ares, &sb)) { ares 697 drivers/i2c/i2c-core-acpi.c ACPI_FREE(ares); ares 84 drivers/iio/imu/inv_mpu6050/inv_mpu_acpi.c static int acpi_i2c_check_resource(struct acpi_resource *ares, void *data) ares 89 drivers/iio/imu/inv_mpu6050/inv_mpu_acpi.c if (i2c_acpi_get_i2c_resource(ares, &sb)) { ares 145 drivers/irqchip/qcom-irq-combiner.c static acpi_status count_registers_cb(struct acpi_resource *ares, void *context) ares 149 drivers/irqchip/qcom-irq-combiner.c if (ares->type == ACPI_RESOURCE_TYPE_GENERIC_REGISTER) ares 176 drivers/irqchip/qcom-irq-combiner.c static acpi_status get_registers_cb(struct acpi_resource *ares, void *context) ares 183 drivers/irqchip/qcom-irq-combiner.c if (ares->type != ACPI_RESOURCE_TYPE_GENERIC_REGISTER) ares 186 drivers/irqchip/qcom-irq-combiner.c reg = &ares->data.generic_reg; ares 1462 drivers/perf/xgene_pmu.c static int acpi_pmu_dev_add_resource(struct acpi_resource *ares, void *data) ares 1466 drivers/perf/xgene_pmu.c if (ares->type == ACPI_RESOURCE_TYPE_FIXED_MEMORY32) ares 1467 drivers/perf/xgene_pmu.c acpi_dev_resource_memory(ares, res); ares 34 drivers/platform/x86/i2c-multi-instantiate.c static int i2c_multi_inst_count(struct acpi_resource *ares, void *data) ares 39 drivers/platform/x86/i2c-multi-instantiate.c if (i2c_acpi_get_i2c_resource(ares, &sb)) ares 1914 drivers/spi/spi.c static int acpi_spi_add_resource(struct acpi_resource *ares, void *data) ares 1919 drivers/spi/spi.c if (ares->type == ACPI_RESOURCE_TYPE_SERIAL_BUS) { ares 1924 drivers/spi/spi.c sb = &ares->data.spi_serial_bus; ares 1964 drivers/spi/spi.c if (acpi_dev_resource_interrupt(ares, 0, &r)) ares 427 include/linux/acpi.h bool acpi_dev_resource_memory(struct acpi_resource *ares, struct resource *res); ares 428 include/linux/acpi.h bool acpi_dev_resource_io(struct acpi_resource *ares, struct resource *res); ares 429 include/linux/acpi.h bool acpi_dev_resource_address_space(struct acpi_resource *ares, ares 431 include/linux/acpi.h bool acpi_dev_resource_ext_address_space(struct acpi_resource *ares, ares 435 include/linux/acpi.h bool acpi_dev_resource_interrupt(struct acpi_resource *ares, int index, ares 444 include/linux/acpi.h int acpi_dev_filter_resource_type(struct acpi_resource *ares, ares 447 include/linux/acpi.h static inline int acpi_dev_filter_resource_type_cb(struct acpi_resource *ares, ares 450 include/linux/acpi.h return acpi_dev_filter_resource_type(ares, (unsigned long)arg); ares 1013 include/linux/acpi.h bool acpi_gpio_get_irq_resource(struct acpi_resource *ares, ares 1017 include/linux/acpi.h static inline bool acpi_gpio_get_irq_resource(struct acpi_resource *ares, ares 981 include/linux/i2c.h bool i2c_acpi_get_i2c_resource(struct acpi_resource *ares, ares 988 include/linux/i2c.h static inline bool i2c_acpi_get_i2c_resource(struct acpi_resource *ares,