/kernel/linux/linux-5.10/drivers/acpi/ |
D | resource.c | 105 bool acpi_dev_resource_memory(struct acpi_resource *ares, struct resource *res) in acpi_dev_resource_memory() argument 111 switch (ares->type) { in acpi_dev_resource_memory() 113 memory24 = &ares->data.memory24; in acpi_dev_resource_memory() 119 memory32 = &ares->data.memory32; in acpi_dev_resource_memory() 125 fixed_memory32 = &ares->data.fixed_memory32; in acpi_dev_resource_memory() 178 bool acpi_dev_resource_io(struct acpi_resource *ares, struct resource *res) in acpi_dev_resource_io() argument 183 switch (ares->type) { in acpi_dev_resource_io() 185 io = &ares->data.io; in acpi_dev_resource_io() 191 fixed_io = &ares->data.fixed_io; in acpi_dev_resource_io() 288 bool acpi_dev_resource_address_space(struct acpi_resource *ares, in acpi_dev_resource_address_space() argument [all …]
|
D | evged.c | 68 static acpi_status acpi_ged_request_interrupt(struct acpi_resource *ares, in acpi_ged_request_interrupt() argument 80 struct acpi_resource_irq *p = &ares->data.irq; in acpi_ged_request_interrupt() 81 struct acpi_resource_extended_irq *pext = &ares->data.extended_irq; in acpi_ged_request_interrupt() 85 if (ares->type == ACPI_RESOURCE_TYPE_END_TAG) in acpi_ged_request_interrupt() 88 if (!acpi_dev_resource_interrupt(ares, 0, &r)) { in acpi_ged_request_interrupt() 92 if (ares->type == ACPI_RESOURCE_TYPE_IRQ) { in acpi_ged_request_interrupt()
|
D | irq.c | 178 static acpi_status acpi_irq_parse_one_cb(struct acpi_resource *ares, in acpi_irq_parse_one_cb() argument 186 switch (ares->type) { in acpi_irq_parse_one_cb() 188 irq = &ares->data.irq; in acpi_irq_parse_one_cb() 199 eirq = &ares->data.extended_irq; in acpi_irq_parse_one_cb()
|
D | acpi_apd.c | 63 static int misc_check_res(struct acpi_resource *ares, void *data) in misc_check_res() argument 67 return !acpi_dev_resource_memory(ares, &res); in misc_check_res()
|
D | scan.c | 1552 static int acpi_check_serial_bus_slave(struct acpi_resource *ares, void *data) in acpi_check_serial_bus_slave() argument 1556 if (ares->type != ACPI_RESOURCE_TYPE_SERIAL_BUS) in acpi_check_serial_bus_slave() 1701 static acpi_status acpi_get_resource_memory(struct acpi_resource *ares, in acpi_get_resource_memory() argument 1706 if (acpi_dev_resource_memory(ares, res)) in acpi_get_resource_memory()
|
/kernel/linux/linux-5.10/drivers/i2c/ |
D | i2c-core-acpi.c | 55 bool i2c_acpi_get_i2c_resource(struct acpi_resource *ares, in i2c_acpi_get_i2c_resource() argument 60 if (ares->type != ACPI_RESOURCE_TYPE_SERIAL_BUS) in i2c_acpi_get_i2c_resource() 63 sb = &ares->data.i2c_serial_bus; in i2c_acpi_get_i2c_resource() 72 static int i2c_acpi_fill_info(struct acpi_resource *ares, void *data) in i2c_acpi_fill_info() argument 79 if (info->addr || !i2c_acpi_get_i2c_resource(ares, &sb)) in i2c_acpi_fill_info() 136 static int i2c_acpi_add_resource(struct acpi_resource *ares, void *data) in i2c_acpi_add_resource() argument 141 if (*irq <= 0 && acpi_dev_resource_interrupt(ares, 0, &r)) in i2c_acpi_add_resource() 589 struct acpi_resource *ares; in i2c_acpi_space_handler() local 595 ret = acpi_buffer_to_resource(info->connection, info->length, &ares); in i2c_acpi_space_handler() 605 if (!value64 || !i2c_acpi_get_i2c_resource(ares, &sb)) { in i2c_acpi_space_handler() [all …]
|
/kernel/linux/linux-5.10/drivers/gpio/ |
D | gpiolib-acpi.c | 154 bool acpi_gpio_get_irq_resource(struct acpi_resource *ares, in acpi_gpio_get_irq_resource() argument 159 if (ares->type != ACPI_RESOURCE_TYPE_GPIO) in acpi_gpio_get_irq_resource() 162 gpio = &ares->data.gpio; in acpi_gpio_get_irq_resource() 260 static acpi_status acpi_gpiochip_alloc_event(struct acpi_resource *ares, in acpi_gpiochip_alloc_event() argument 272 if (!acpi_gpio_get_irq_resource(ares, &agpio)) in acpi_gpiochip_alloc_event() 642 static int acpi_populate_gpio_lookup(struct acpi_resource *ares, void *data) in acpi_populate_gpio_lookup() argument 646 if (ares->type != ACPI_RESOURCE_TYPE_GPIO) in acpi_populate_gpio_lookup() 650 const struct acpi_resource_gpio *agpio = &ares->data.gpio; in acpi_populate_gpio_lookup() 1000 struct acpi_resource *ares; in acpi_gpio_adr_space_handler() local 1007 achip->conn_info.length, &ares); in acpi_gpio_adr_space_handler() [all …]
|
/kernel/linux/linux-5.10/drivers/irqchip/ |
D | qcom-irq-combiner.c | 145 static acpi_status count_registers_cb(struct acpi_resource *ares, void *context) in count_registers_cb() argument 149 if (ares->type == ACPI_RESOURCE_TYPE_GENERIC_REGISTER) in count_registers_cb() 176 static acpi_status get_registers_cb(struct acpi_resource *ares, void *context) in get_registers_cb() argument 183 if (ares->type != ACPI_RESOURCE_TYPE_GENERIC_REGISTER) in get_registers_cb() 186 reg = &ares->data.generic_reg; in get_registers_cb()
|
/kernel/linux/linux-5.10/drivers/platform/x86/ |
D | intel_cht_int33fe_common.c | 19 static int cht_int33fe_i2c_res_filter(struct acpi_resource *ares, void *data) in cht_int33fe_i2c_res_filter() argument 24 if (i2c_acpi_get_i2c_resource(ares, &sb)) in cht_int33fe_i2c_res_filter()
|
D | surface3_power.c | 385 struct acpi_resource *ares; in mshw0011_space_handler() local 390 ret = acpi_buffer_to_resource(info->connection, info->length, &ares); in mshw0011_space_handler() 394 if (!value64 || ares->type != ACPI_RESOURCE_TYPE_SERIAL_BUS) { in mshw0011_space_handler() 399 sb = &ares->data.i2c_serial_bus; in mshw0011_space_handler() 450 ACPI_FREE(ares); in mshw0011_space_handler()
|
D | i2c-multi-instantiate.c | 34 static int i2c_multi_inst_count(struct acpi_resource *ares, void *data) in i2c_multi_inst_count() argument 39 if (i2c_acpi_get_i2c_resource(ares, &sb)) in i2c_multi_inst_count()
|
/kernel/linux/linux-5.10/include/linux/ |
D | acpi.h | 466 bool acpi_dev_resource_memory(struct acpi_resource *ares, struct resource *res); 467 bool acpi_dev_resource_io(struct acpi_resource *ares, struct resource *res); 468 bool acpi_dev_resource_address_space(struct acpi_resource *ares, 470 bool acpi_dev_resource_ext_address_space(struct acpi_resource *ares, 474 bool acpi_dev_resource_interrupt(struct acpi_resource *ares, int index, 483 int acpi_dev_filter_resource_type(struct acpi_resource *ares, 486 static inline int acpi_dev_filter_resource_type_cb(struct acpi_resource *ares, in acpi_dev_filter_resource_type_cb() argument 489 return acpi_dev_filter_resource_type(ares, (unsigned long)arg); in acpi_dev_filter_resource_type_cb() 1089 bool acpi_gpio_get_irq_resource(struct acpi_resource *ares, 1093 static inline bool acpi_gpio_get_irq_resource(struct acpi_resource *ares, in acpi_gpio_get_irq_resource() argument
|
D | i2c.h | 995 bool i2c_acpi_get_i2c_resource(struct acpi_resource *ares, 1002 static inline bool i2c_acpi_get_i2c_resource(struct acpi_resource *ares, in i2c_acpi_get_i2c_resource() argument
|
/kernel/linux/linux-5.10/drivers/iio/imu/inv_mpu6050/ |
D | inv_mpu_acpi.c | 84 static int acpi_i2c_check_resource(struct acpi_resource *ares, void *data) in acpi_i2c_check_resource() argument 89 if (i2c_acpi_get_i2c_resource(ares, &sb)) { in acpi_i2c_check_resource()
|
/kernel/linux/linux-5.10/drivers/tty/serdev/ |
D | core.c | 567 static int acpi_serdev_parse_resource(struct acpi_resource *ares, void *data) in acpi_serdev_parse_resource() argument 573 if (ares->type != ACPI_RESOURCE_TYPE_SERIAL_BUS) in acpi_serdev_parse_resource() 576 if (ares->data.common_serial_bus.type != ACPI_RESOURCE_SERIAL_TYPE_UART) in acpi_serdev_parse_resource() 582 sb = &ares->data.uart_serial_bus; in acpi_serdev_parse_resource()
|
/kernel/linux/linux-5.10/drivers/bluetooth/ |
D | hci_bcm.c | 895 static int bcm_resource(struct acpi_resource *ares, void *data) in bcm_resource() argument 902 switch (ares->type) { in bcm_resource() 904 irq = &ares->data.extended_irq; in bcm_resource() 911 gpio = &ares->data.gpio; in bcm_resource() 920 sb = &ares->data.uart_serial_bus; in bcm_resource()
|
/kernel/linux/linux-5.10/drivers/char/tpm/ |
D | tpm_crb.c | 435 static int crb_check_resource(struct acpi_resource *ares, void *data) in crb_check_resource() argument 442 if (acpi_dev_resource_memory(ares, res) || in crb_check_resource() 443 acpi_dev_resource_address_space(ares, &win)) { in crb_check_resource()
|
/kernel/linux/linux-5.10/drivers/input/touchscreen/ |
D | goodix.c | 748 static int goodix_resource(struct acpi_resource *ares, void *data) in goodix_resource() argument 754 switch (ares->type) { in goodix_resource() 756 gpio = &ares->data.gpio; in goodix_resource()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/display/ |
D | intel_dsi_vbt.c | 407 static int i2c_adapter_lookup(struct acpi_resource *ares, void *data) in i2c_adapter_lookup() argument 416 if (!i2c_acpi_get_i2c_resource(ares, &sb)) in i2c_adapter_lookup()
|
/kernel/linux/linux-5.10/drivers/spi/ |
D | spi.c | 2142 static int acpi_spi_add_resource(struct acpi_resource *ares, void *data) in acpi_spi_add_resource() argument 2147 if (ares->type == ACPI_RESOURCE_TYPE_SERIAL_BUS) { in acpi_spi_add_resource() 2152 sb = &ares->data.spi_serial_bus; in acpi_spi_add_resource() 2193 if (acpi_dev_resource_interrupt(ares, 0, &r)) in acpi_spi_add_resource()
|