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()
199 if (readl(pdata->mmio_base + pdata->dev_desc->prv_offset)) in byt_i2c_setup()
415 const struct lpss_device_desc *dev_desc = pdata->dev_desc; in register_device_clock() local
434 || pdata->mmio_size < dev_desc->prv_offset + LPSS_CLK_SIZE) in register_device_clock()
438 prv_base = pdata->mmio_base + dev_desc->prv_offset; in register_device_clock()
446 if (dev_desc->flags & LPSS_CLK_GATE) { in register_device_clock()
452 if (dev_desc->flags & LPSS_CLK_DIVIDER) { in register_device_clock()
481 clk_register_clkdev(clk, dev_desc->clk_con_id, devname); in register_device_clock()
645 const struct lpss_device_desc *dev_desc; in acpi_lpss_create_device() local
652 dev_desc = (const struct lpss_device_desc *)id->driver_data; in acpi_lpss_create_device()
653 if (!dev_desc) { in acpi_lpss_create_device()
668 if (dev_desc->prv_size_override) in acpi_lpss_create_device()
669 pdata->mmio_size = dev_desc->prv_size_override; in acpi_lpss_create_device()
688 pdata->dev_desc = dev_desc; in acpi_lpss_create_device()
690 if (dev_desc->setup) in acpi_lpss_create_device()
691 dev_desc->setup(pdata); in acpi_lpss_create_device()
693 if (dev_desc->flags & LPSS_CLK) { in acpi_lpss_create_device()
710 pdev = acpi_create_platform_device(adev, dev_desc->properties); in acpi_lpss_create_device()
726 return readl(pdata->mmio_base + pdata->dev_desc->prv_offset + reg); in __lpss_reg_read()
732 writel(val, pdata->mmio_base + pdata->dev_desc->prv_offset + reg); in __lpss_reg_write()
895 if (pdata->dev_desc->flags & LPSS_NO_D3_DELAY) in acpi_lpss_d3_to_d0_delay()
918 if (pdata->dev_desc->flags & (LPSS_SAVE_CTX | LPSS_SAVE_CTX_ONCE)) in acpi_lpss_activate()
922 if (pdata->dev_desc->flags & LPSS_SAVE_CTX_ONCE) in acpi_lpss_activate()
1034 if (pdata->dev_desc->flags & LPSS_SAVE_CTX) in acpi_lpss_suspend()
1069 if (pdata->dev_desc->flags & (LPSS_SAVE_CTX | LPSS_SAVE_CTX_ONCE)) in acpi_lpss_resume()
1091 if (pdata->dev_desc->resume_from_noirq) in acpi_lpss_suspend_late()
1102 if (pdata->dev_desc->resume_from_noirq) { in acpi_lpss_suspend_noirq()
1129 if (pdata->dev_desc->resume_from_noirq) in acpi_lpss_resume_early()
1151 if (!pdata->dev_desc->resume_from_noirq) in acpi_lpss_resume_noirq()
1175 if (pdata->dev_desc->resume_from_noirq) in acpi_lpss_restore_early()
1190 if (!pdata->dev_desc->resume_from_noirq) in acpi_lpss_restore_noirq()
1211 if (pdata->dev_desc->resume_from_noirq) in acpi_lpss_poweroff_late()
1224 if (pdata->dev_desc->resume_from_noirq) { in acpi_lpss_poweroff_noirq()
1300 pdata->mmio_size < pdata->dev_desc->prv_offset + LPSS_LTR_SIZE) { in acpi_lpss_platform_notify()
1315 if (pdata->dev_desc->flags & LPSS_LTR) in acpi_lpss_platform_notify()
1320 if (pdata->dev_desc->flags & LPSS_LTR) in acpi_lpss_platform_notify()
1339 if (!pdata || !pdata->mmio_base || !(pdata->dev_desc->flags & LPSS_LTR)) in acpi_lpss_bind()
1342 if (pdata->mmio_size >= pdata->dev_desc->prv_offset + LPSS_LTR_SIZE) in acpi_lpss_bind()