Home
last modified time | relevance | path

Searched refs:thc_dev (Results 1 – 3 of 3) sorted by relevance

/drivers/hid/intel-thc-hid/intel-thc/
A Dintel-thc-wot.c28 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 …]
A Dintel-thc-dev.c196 struct thc_device *thc_dev; in thc_dev_init() local
199 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 …]
A Dintel-thc-wot.h23 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 8 milliseconds