Lines Matching refs:dev_desc
97 const struct lpss_device_desc *dev_desc; member
130 offset = pdata->dev_desc->prv_offset + LPSS_TX_INT; in lpss_uart_setup()
136 offset = pdata->dev_desc->prv_offset + LPSS_GENERAL; in lpss_uart_setup()
148 offset = pdata->dev_desc->prv_offset + LPSS_RESETS; in lpss_deassert_reset()
197 if (readl(pdata->mmio_base + pdata->dev_desc->prv_offset)) in byt_i2c_setup()
393 const struct lpss_device_desc *dev_desc = pdata->dev_desc; in register_device_clock() local
409 || pdata->mmio_size < dev_desc->prv_offset + LPSS_CLK_SIZE) in register_device_clock()
413 prv_base = pdata->mmio_base + dev_desc->prv_offset; in register_device_clock()
421 if (dev_desc->flags & LPSS_CLK_GATE) { in register_device_clock()
427 if (dev_desc->flags & LPSS_CLK_DIVIDER) { in register_device_clock()
456 clk_register_clkdev(clk, dev_desc->clk_con_id, devname); in register_device_clock()
613 const struct lpss_device_desc *dev_desc; in acpi_lpss_create_device() local
620 dev_desc = (const struct lpss_device_desc *)id->driver_data; in acpi_lpss_create_device()
621 if (!dev_desc) { in acpi_lpss_create_device()
636 if (dev_desc->prv_size_override) in acpi_lpss_create_device()
637 pdata->mmio_size = dev_desc->prv_size_override; in acpi_lpss_create_device()
656 pdata->dev_desc = dev_desc; in acpi_lpss_create_device()
658 if (dev_desc->setup) in acpi_lpss_create_device()
659 dev_desc->setup(pdata); in acpi_lpss_create_device()
661 if (dev_desc->flags & LPSS_CLK) { in acpi_lpss_create_device()
678 pdev = acpi_create_platform_device(adev, dev_desc->properties); in acpi_lpss_create_device()
694 return readl(pdata->mmio_base + pdata->dev_desc->prv_offset + reg); in __lpss_reg_read()
700 writel(val, pdata->mmio_base + pdata->dev_desc->prv_offset + reg); in __lpss_reg_write()
863 if (pdata->dev_desc->flags & LPSS_NO_D3_DELAY) in acpi_lpss_d3_to_d0_delay()
886 if (pdata->dev_desc->flags & LPSS_SAVE_CTX) in acpi_lpss_activate()
997 if (pdata->dev_desc->flags & LPSS_SAVE_CTX) in acpi_lpss_suspend()
1032 if (pdata->dev_desc->flags & LPSS_SAVE_CTX) in acpi_lpss_resume()
1054 if (pdata->dev_desc->resume_from_noirq) in acpi_lpss_suspend_late()
1065 if (pdata->dev_desc->resume_from_noirq) { in acpi_lpss_suspend_noirq()
1092 if (pdata->dev_desc->resume_from_noirq) in acpi_lpss_resume_early()
1114 if (!pdata->dev_desc->resume_from_noirq) in acpi_lpss_resume_noirq()
1138 if (pdata->dev_desc->resume_from_noirq) in acpi_lpss_restore_early()
1153 if (!pdata->dev_desc->resume_from_noirq) in acpi_lpss_restore_noirq()
1174 if (pdata->dev_desc->resume_from_noirq) in acpi_lpss_poweroff_late()
1187 if (pdata->dev_desc->resume_from_noirq) { in acpi_lpss_poweroff_noirq()
1261 pdata->mmio_size < pdata->dev_desc->prv_offset + LPSS_LTR_SIZE) { in acpi_lpss_platform_notify()
1276 if (pdata->dev_desc->flags & LPSS_LTR) in acpi_lpss_platform_notify()
1281 if (pdata->dev_desc->flags & LPSS_LTR) in acpi_lpss_platform_notify()
1300 if (!pdata || !pdata->mmio_base || !(pdata->dev_desc->flags & LPSS_LTR)) in acpi_lpss_bind()
1303 if (pdata->mmio_size >= pdata->dev_desc->prv_offset + LPSS_LTR_SIZE) in acpi_lpss_bind()