Lines Matching refs:dev_desc
101 const struct lpss_device_desc *dev_desc; member
134 offset = pdata->dev_desc->prv_offset + LPSS_TX_INT; in lpss_uart_setup()
140 offset = pdata->dev_desc->prv_offset + LPSS_GENERAL; in lpss_uart_setup()
152 offset = pdata->dev_desc->prv_offset + LPSS_RESETS; in lpss_deassert_reset()
198 if (readl(pdata->mmio_base + pdata->dev_desc->prv_offset)) in byt_i2c_setup()
407 const struct lpss_device_desc *dev_desc = pdata->dev_desc; in register_device_clock() local
426 || pdata->mmio_size < dev_desc->prv_offset + LPSS_CLK_SIZE) in register_device_clock()
430 prv_base = pdata->mmio_base + dev_desc->prv_offset; in register_device_clock()
438 if (dev_desc->flags & LPSS_CLK_GATE) { in register_device_clock()
444 if (dev_desc->flags & LPSS_CLK_DIVIDER) { in register_device_clock()
473 clk_register_clkdev(clk, dev_desc->clk_con_id, devname); in register_device_clock()
637 const struct lpss_device_desc *dev_desc; in acpi_lpss_create_device() local
644 dev_desc = (const struct lpss_device_desc *)id->driver_data; in acpi_lpss_create_device()
645 if (!dev_desc) { in acpi_lpss_create_device()
660 if (dev_desc->prv_size_override) in acpi_lpss_create_device()
661 pdata->mmio_size = dev_desc->prv_size_override; in acpi_lpss_create_device()
676 pdata->dev_desc = dev_desc; in acpi_lpss_create_device()
678 if (dev_desc->setup) in acpi_lpss_create_device()
679 dev_desc->setup(pdata); in acpi_lpss_create_device()
681 if (dev_desc->flags & LPSS_CLK) { in acpi_lpss_create_device()
695 pdev = acpi_create_platform_device(adev, dev_desc->properties); in acpi_lpss_create_device()
715 return readl(pdata->mmio_base + pdata->dev_desc->prv_offset + reg); in __lpss_reg_read()
721 writel(val, pdata->mmio_base + pdata->dev_desc->prv_offset + reg); in __lpss_reg_write()
884 if (pdata->dev_desc->flags & LPSS_NO_D3_DELAY) in acpi_lpss_d3_to_d0_delay()
907 if (pdata->dev_desc->flags & (LPSS_SAVE_CTX | LPSS_SAVE_CTX_ONCE)) in acpi_lpss_activate()
911 if (pdata->dev_desc->flags & LPSS_SAVE_CTX_ONCE) in acpi_lpss_activate()
1023 if (pdata->dev_desc->flags & LPSS_SAVE_CTX) in acpi_lpss_suspend()
1058 if (pdata->dev_desc->flags & (LPSS_SAVE_CTX | LPSS_SAVE_CTX_ONCE)) in acpi_lpss_resume()
1080 if (pdata->dev_desc->resume_from_noirq) in acpi_lpss_suspend_late()
1091 if (pdata->dev_desc->resume_from_noirq) { in acpi_lpss_suspend_noirq()
1118 if (pdata->dev_desc->resume_from_noirq) in acpi_lpss_resume_early()
1140 if (!pdata->dev_desc->resume_from_noirq) in acpi_lpss_resume_noirq()
1164 if (pdata->dev_desc->resume_from_noirq) in acpi_lpss_restore_early()
1179 if (!pdata->dev_desc->resume_from_noirq) in acpi_lpss_restore_noirq()
1200 if (pdata->dev_desc->resume_from_noirq) in acpi_lpss_poweroff_late()
1213 if (pdata->dev_desc->resume_from_noirq) { in acpi_lpss_poweroff_noirq()
1289 pdata->mmio_size < pdata->dev_desc->prv_offset + LPSS_LTR_SIZE) { in acpi_lpss_platform_notify()
1304 if (pdata->dev_desc->flags & LPSS_LTR) in acpi_lpss_platform_notify()
1309 if (pdata->dev_desc->flags & LPSS_LTR) in acpi_lpss_platform_notify()
1328 if (!pdata || !pdata->mmio_base || !(pdata->dev_desc->flags & LPSS_LTR)) in acpi_lpss_bind()
1331 if (pdata->mmio_size >= pdata->dev_desc->prv_offset + LPSS_LTR_SIZE) in acpi_lpss_bind()