/linux-6.1.9/drivers/acpi/ |
D | resource.c | 106 bool acpi_dev_resource_memory(struct acpi_resource *ares, struct resource *res) in acpi_dev_resource_memory() argument 112 switch (ares->type) { in acpi_dev_resource_memory() 114 memory24 = &ares->data.memory24; in acpi_dev_resource_memory() 120 memory32 = &ares->data.memory32; in acpi_dev_resource_memory() 126 fixed_memory32 = &ares->data.fixed_memory32; in acpi_dev_resource_memory() 179 bool acpi_dev_resource_io(struct acpi_resource *ares, struct resource *res) in acpi_dev_resource_io() argument 184 switch (ares->type) { in acpi_dev_resource_io() 186 io = &ares->data.io; in acpi_dev_resource_io() 192 fixed_io = &ares->data.fixed_io; in acpi_dev_resource_io() 289 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 | 192 static acpi_status acpi_irq_parse_one_cb(struct acpi_resource *ares, in acpi_irq_parse_one_cb() argument 200 switch (ares->type) { in acpi_irq_parse_one_cb() 202 irq = &ares->data.irq; in acpi_irq_parse_one_cb() 213 eirq = &ares->data.extended_irq; in acpi_irq_parse_one_cb()
|
D | scan.c | 1674 static int acpi_check_serial_bus_slave(struct acpi_resource *ares, void *data) in acpi_check_serial_bus_slave() argument 1678 if (ares->type != ACPI_RESOURCE_TYPE_SERIAL_BUS) in acpi_check_serial_bus_slave() 1870 static acpi_status acpi_get_resource_memory(struct acpi_resource *ares, in acpi_get_resource_memory() argument 1875 if (acpi_dev_resource_memory(ares, res)) in acpi_get_resource_memory()
|
/linux-6.1.9/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_resource_count(struct acpi_resource *ares, void *data) in i2c_acpi_resource_count() argument 77 if (i2c_acpi_get_i2c_resource(ares, &sb)) in i2c_acpi_resource_count() 104 static int i2c_acpi_fill_info(struct acpi_resource *ares, void *data) in i2c_acpi_fill_info() argument 111 if (info->addr || !i2c_acpi_get_i2c_resource(ares, &sb)) in i2c_acpi_fill_info() 176 static int i2c_acpi_add_irq_resource(struct acpi_resource *ares, void *data) in i2c_acpi_add_irq_resource() argument 184 if (!acpi_dev_resource_interrupt(ares, 0, &r)) in i2c_acpi_add_irq_resource() 653 struct acpi_resource *ares; in i2c_acpi_space_handler() local [all …]
|
/linux-6.1.9/drivers/gpio/ |
D | gpiolib-acpi.c | 186 bool acpi_gpio_get_irq_resource(struct acpi_resource *ares, in acpi_gpio_get_irq_resource() argument 191 if (ares->type != ACPI_RESOURCE_TYPE_GPIO) in acpi_gpio_get_irq_resource() 194 gpio = &ares->data.gpio; in acpi_gpio_get_irq_resource() 209 bool acpi_gpio_get_io_resource(struct acpi_resource *ares, in acpi_gpio_get_io_resource() argument 214 if (ares->type != ACPI_RESOURCE_TYPE_GPIO) in acpi_gpio_get_io_resource() 217 gpio = &ares->data.gpio; in acpi_gpio_get_io_resource() 380 static acpi_status acpi_gpiochip_alloc_event(struct acpi_resource *ares, in acpi_gpiochip_alloc_event() argument 393 if (!acpi_gpio_get_irq_resource(ares, &agpio)) in acpi_gpiochip_alloc_event() 725 static int acpi_populate_gpio_lookup(struct acpi_resource *ares, void *data) in acpi_populate_gpio_lookup() argument 729 if (ares->type != ACPI_RESOURCE_TYPE_GPIO) in acpi_populate_gpio_lookup() [all …]
|
/linux-6.1.9/drivers/irqchip/ |
D | qcom-irq-combiner.c | 141 static acpi_status count_registers_cb(struct acpi_resource *ares, void *context) in count_registers_cb() argument 145 if (ares->type == ACPI_RESOURCE_TYPE_GENERIC_REGISTER) in count_registers_cb() 172 static acpi_status get_registers_cb(struct acpi_resource *ares, void *context) in get_registers_cb() argument 179 if (ares->type != ACPI_RESOURCE_TYPE_GENERIC_REGISTER) in get_registers_cb() 182 reg = &ares->data.generic_reg; in get_registers_cb()
|
/linux-6.1.9/include/linux/ |
D | acpi.h | 495 bool acpi_dev_resource_memory(struct acpi_resource *ares, struct resource *res); 496 bool acpi_dev_resource_io(struct acpi_resource *ares, struct resource *res); 497 bool acpi_dev_resource_address_space(struct acpi_resource *ares, 499 bool acpi_dev_resource_ext_address_space(struct acpi_resource *ares, 503 bool acpi_dev_resource_interrupt(struct acpi_resource *ares, int index, 513 int acpi_dev_filter_resource_type(struct acpi_resource *ares, 516 static inline int acpi_dev_filter_resource_type_cb(struct acpi_resource *ares, in acpi_dev_filter_resource_type_cb() argument 519 return acpi_dev_filter_resource_type(ares, (unsigned long)arg); in acpi_dev_filter_resource_type_cb() 1210 bool acpi_gpio_get_irq_resource(struct acpi_resource *ares, 1212 bool acpi_gpio_get_io_resource(struct acpi_resource *ares, [all …]
|
D | serdev.h | 335 bool serdev_acpi_get_uart_resource(struct acpi_resource *ares, 338 static inline bool serdev_acpi_get_uart_resource(struct acpi_resource *ares, in serdev_acpi_get_uart_resource() argument
|
D | i2c.h | 1021 bool i2c_acpi_get_i2c_resource(struct acpi_resource *ares, 1031 static inline bool i2c_acpi_get_i2c_resource(struct acpi_resource *ares, in i2c_acpi_get_i2c_resource() argument
|
/linux-6.1.9/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()
|
/linux-6.1.9/drivers/platform/surface/ |
D | surface3_power.c | 384 struct acpi_resource *ares; in mshw0011_space_handler() local 389 ret = acpi_buffer_to_resource(info->connection, info->length, &ares); in mshw0011_space_handler() 393 if (!value64 || !i2c_acpi_get_i2c_resource(ares, &sb)) { in mshw0011_space_handler() 443 ACPI_FREE(ares); in mshw0011_space_handler()
|
/linux-6.1.9/drivers/tty/serdev/ |
D | core.c | 575 bool serdev_acpi_get_uart_resource(struct acpi_resource *ares, in serdev_acpi_get_uart_resource() argument 580 if (ares->type != ACPI_RESOURCE_TYPE_SERIAL_BUS) in serdev_acpi_get_uart_resource() 583 sb = &ares->data.uart_serial_bus; in serdev_acpi_get_uart_resource() 592 static int acpi_serdev_parse_resource(struct acpi_resource *ares, void *data) in acpi_serdev_parse_resource() argument 598 if (!serdev_acpi_get_uart_resource(ares, &sb)) in acpi_serdev_parse_resource()
|
/linux-6.1.9/drivers/platform/x86/intel/int3472/ |
D | discrete.c | 223 static int skl_int3472_handle_gpio_resources(struct acpi_resource *ares, in skl_int3472_handle_gpio_resources() argument 233 if (!acpi_gpio_get_io_resource(ares, &agpio)) in skl_int3472_handle_gpio_resources()
|
/linux-6.1.9/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()
|
/linux-6.1.9/drivers/bluetooth/ |
D | hci_bcm.c | 939 static int bcm_resource(struct acpi_resource *ares, void *data) in bcm_resource() argument 946 switch (ares->type) { in bcm_resource() 948 irq = &ares->data.extended_irq; in bcm_resource() 955 gpio = &ares->data.gpio; in bcm_resource() 964 sb = &ares->data.uart_serial_bus; in bcm_resource()
|
/linux-6.1.9/drivers/firmware/arm_scmi/ |
D | sensors.c | 418 unsigned int ares = le32_to_cpu(adesc->resolution); in iter_axes_desc_process_response() local 420 a->resolution = SENSOR_RES(ares); in iter_axes_desc_process_response() 421 a->exponent = S32_EXT(SENSOR_RES_EXP(ares)); in iter_axes_desc_process_response()
|
/linux-6.1.9/drivers/input/touchscreen/ |
D | goodix.c | 820 static int goodix_resource(struct acpi_resource *ares, void *data) in goodix_resource() argument 826 if (acpi_gpio_get_irq_resource(ares, &gpio)) { in goodix_resource() 834 } else if (acpi_gpio_get_io_resource(ares, &gpio)) in goodix_resource()
|
/linux-6.1.9/drivers/spi/ |
D | spi.c | 2441 static int acpi_spi_count(struct acpi_resource *ares, void *data) in acpi_spi_count() argument 2446 if (ares->type != ACPI_RESOURCE_TYPE_SERIAL_BUS) in acpi_spi_count() 2449 sb = &ares->data.spi_serial_bus; in acpi_spi_count() 2512 static int acpi_spi_add_resource(struct acpi_resource *ares, void *data) in acpi_spi_add_resource() argument 2517 if (ares->type == ACPI_RESOURCE_TYPE_SERIAL_BUS) { in acpi_spi_add_resource() 2522 sb = &ares->data.spi_serial_bus; in acpi_spi_add_resource() 2582 if (acpi_dev_resource_interrupt(ares, 0, &r)) in acpi_spi_add_resource()
|
/linux-6.1.9/drivers/gpu/drm/i915/display/ |
D | intel_dsi_vbt.c | 505 static int i2c_adapter_lookup(struct acpi_resource *ares, void *data) in i2c_adapter_lookup() argument 514 if (!i2c_acpi_get_i2c_resource(ares, &sb)) in i2c_adapter_lookup()
|