Searched refs:thc_dev (Results 1 – 3 of 3) sorted by relevance
28 if (!thc_dev) in thc_wot_config()31 adev = ACPI_COMPANION(thc_dev->dev); in thc_wot_config()35 wot = &thc_dev->wot; in thc_wot_config()55 ret = device_init_wakeup(thc_dev->dev, true); in thc_wot_config()64 device_init_wakeup(thc_dev->dev, false); in thc_wot_config()79 if (!thc_dev) in thc_wot_unconfig()82 adev = ACPI_COMPANION(thc_dev->dev); in thc_wot_unconfig()86 if (thc_dev->wot.gpio_irq_wakeable) in thc_wot_unconfig()87 device_init_wakeup(thc_dev->dev, false); in thc_wot_unconfig()89 if (thc_dev->wot.gpio_irq > 0) { in thc_wot_unconfig()[all …]
196 struct thc_device *thc_dev; in thc_dev_init() local199 thc_dev = devm_kzalloc(device, sizeof(*thc_dev), GFP_KERNEL); in thc_dev_init()200 if (!thc_dev) in thc_dev_init()203 thc_dev->dev = device; in thc_dev_init()204 thc_dev->mmio_addr = mem_addr; in thc_dev_init()205 thc_dev->thc_regmap = devm_regmap_init(device, NULL, thc_dev, &thc_regmap_cfg); in thc_dev_init()206 if (IS_ERR(thc_dev->thc_regmap)) { in thc_dev_init()212 thc_clear_state(thc_dev); in thc_dev_init()218 thc_dev->dma_ctx = thc_dma_init(thc_dev); in thc_dev_init()219 if (!thc_dev->dma_ctx) { in thc_dev_init()[all …]
23 void thc_wot_config(struct thc_device *thc_dev, const struct acpi_gpio_mapping *gpio_map);24 void thc_wot_unconfig(struct thc_device *thc_dev);
Completed in 7 milliseconds