Home
last modified time | relevance | path

Searched refs:ares (Results 1 – 21 of 21) sorted by relevance

/linux/drivers/acpi/
A Dresource.c112 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()
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()
327 ext_addr = &ares->data.ext_address64; in acpi_dev_resource_ext_address_space()
503 switch (ares->type) { in acpi_dev_resource_interrupt()
509 irq = &ares->data.irq; in acpi_dev_resource_interrupt()
519 ext_irq = &ares->data.extended_irq; in acpi_dev_resource_interrupt()
[all …]
A Devged.c68 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()
A Dirq.c182 static acpi_status acpi_irq_parse_one_cb(struct acpi_resource *ares, in acpi_irq_parse_one_cb() argument
190 switch (ares->type) { in acpi_irq_parse_one_cb()
192 irq = &ares->data.irq; in acpi_irq_parse_one_cb()
203 eirq = &ares->data.extended_irq; in acpi_irq_parse_one_cb()
A Dacpi_apd.c63 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()
A Dscan.c1670 static int acpi_check_serial_bus_slave(struct acpi_resource *ares, void *data) in acpi_check_serial_bus_slave() argument
1674 if (ares->type != ACPI_RESOURCE_TYPE_SERIAL_BUS) in acpi_check_serial_bus_slave()
1841 static acpi_status acpi_get_resource_memory(struct acpi_resource *ares, in acpi_get_resource_memory() argument
1846 if (acpi_dev_resource_memory(ares, res)) in acpi_get_resource_memory()
/linux/drivers/i2c/
A Di2c-core-acpi.c55 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()
173 if (*irq <= 0 && acpi_dev_resource_interrupt(ares, 0, &r)) in i2c_acpi_add_resource()
623 struct acpi_resource *ares; in i2c_acpi_space_handler() local
639 if (!value64 || !i2c_acpi_get_i2c_resource(ares, &sb)) { in i2c_acpi_space_handler()
[all …]
/linux/drivers/gpio/
A Dgpiolib-acpi.c184 if (ares->type != ACPI_RESOURCE_TYPE_GPIO) in acpi_gpio_get_irq_resource()
187 gpio = &ares->data.gpio; in acpi_gpio_get_irq_resource()
207 if (ares->type != ACPI_RESOURCE_TYPE_GPIO) in acpi_gpio_get_io_resource()
210 gpio = &ares->data.gpio; in acpi_gpio_get_io_resource()
724 if (ares->type != ACPI_RESOURCE_TYPE_GPIO) in acpi_populate_gpio_lookup()
1080 struct acpi_resource *ares; in acpi_gpio_adr_space_handler() local
1087 achip->conn_info.length, &ares); in acpi_gpio_adr_space_handler()
1092 ACPI_FREE(ares); in acpi_gpio_adr_space_handler()
1096 agpio = &ares->data.gpio; in acpi_gpio_adr_space_handler()
1100 ACPI_FREE(ares); in acpi_gpio_adr_space_handler()
[all …]
/linux/drivers/irqchip/
A Dqcom-irq-combiner.c141 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/include/linux/
A Dacpi.h471 bool acpi_dev_resource_io(struct acpi_resource *ares, struct resource *res);
472 bool acpi_dev_resource_address_space(struct acpi_resource *ares,
474 bool acpi_dev_resource_ext_address_space(struct acpi_resource *ares,
478 bool acpi_dev_resource_interrupt(struct acpi_resource *ares, int index,
487 int acpi_dev_filter_resource_type(struct acpi_resource *ares,
490 static inline int acpi_dev_filter_resource_type_cb(struct acpi_resource *ares, in acpi_dev_filter_resource_type_cb() argument
493 return acpi_dev_filter_resource_type(ares, (unsigned long)arg); in acpi_dev_filter_resource_type_cb()
1125 bool acpi_gpio_get_irq_resource(struct acpi_resource *ares,
1127 bool acpi_gpio_get_io_resource(struct acpi_resource *ares,
1131 static inline bool acpi_gpio_get_irq_resource(struct acpi_resource *ares, in acpi_gpio_get_irq_resource() argument
[all …]
A Dserdev.h334 bool serdev_acpi_get_uart_resource(struct acpi_resource *ares,
337 static inline bool serdev_acpi_get_uart_resource(struct acpi_resource *ares, in serdev_acpi_get_uart_resource() argument
A Di2c.h1024 bool i2c_acpi_get_i2c_resource(struct acpi_resource *ares,
1033 static inline bool i2c_acpi_get_i2c_resource(struct acpi_resource *ares, in i2c_acpi_get_i2c_resource() argument
/linux/drivers/tty/serdev/
A Dcore.c575 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/drivers/platform/surface/
A Dsurface3_power.c377 struct acpi_resource *ares; in mshw0011_space_handler() local
382 ret = acpi_buffer_to_resource(info->connection, info->length, &ares); in mshw0011_space_handler()
386 if (!value64 || !i2c_acpi_get_i2c_resource(ares, &sb)) { in mshw0011_space_handler()
436 ACPI_FREE(ares); in mshw0011_space_handler()
/linux/drivers/iio/imu/inv_mpu6050/
A Dinv_mpu_acpi.c84 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/drivers/platform/x86/intel/int3472/
A Dintel_skl_int3472_discrete.c220 static int skl_int3472_handle_gpio_resources(struct acpi_resource *ares, in skl_int3472_handle_gpio_resources() argument
230 if (!acpi_gpio_get_io_resource(ares, &agpio)) in skl_int3472_handle_gpio_resources()
/linux/drivers/bluetooth/
A Dhci_bcm.c905 static int bcm_resource(struct acpi_resource *ares, void *data) in bcm_resource() argument
912 switch (ares->type) { in bcm_resource()
914 irq = &ares->data.extended_irq; in bcm_resource()
921 gpio = &ares->data.gpio; in bcm_resource()
930 sb = &ares->data.uart_serial_bus; in bcm_resource()
/linux/drivers/char/tpm/
A Dtpm_crb.c435 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/drivers/firmware/arm_scmi/
A Dsensors.c392 unsigned int ares = in scmi_sensor_axis_description() local
395 a->resolution = SENSOR_RES(ares); in scmi_sensor_axis_description()
397 S32_EXT(SENSOR_RES_EXP(ares)); in scmi_sensor_axis_description()
/linux/drivers/input/touchscreen/
A Dgoodix.c724 static int goodix_resource(struct acpi_resource *ares, void *data) in goodix_resource() argument
730 switch (ares->type) { in goodix_resource()
732 gpio = &ares->data.gpio; in goodix_resource()
/linux/drivers/gpu/drm/i915/display/
A Dintel_dsi_vbt.c395 static int i2c_adapter_lookup(struct acpi_resource *ares, void *data) in i2c_adapter_lookup() argument
404 if (!i2c_acpi_get_i2c_resource(ares, &sb)) in i2c_adapter_lookup()
/linux/drivers/spi/
A Dspi.c2355 static int acpi_spi_add_resource(struct acpi_resource *ares, void *data) in acpi_spi_add_resource() argument
2360 if (ares->type == ACPI_RESOURCE_TYPE_SERIAL_BUS) { in acpi_spi_add_resource()
2365 sb = &ares->data.spi_serial_bus; in acpi_spi_add_resource()
2406 if (acpi_dev_resource_interrupt(ares, 0, &r)) in acpi_spi_add_resource()

Completed in 93 milliseconds