Searched refs:ltr_mode (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/drivers/acpi/
H A Dacpi_lpss.c482 u32 ltr_mode = 0; lpss_ltr_mode_show() local
486 ret = lpss_reg_read(dev, LPSS_GENERAL, &ltr_mode); lpss_ltr_mode_show()
490 outstr = (ltr_mode & LPSS_GENERAL_LTR_MODE_SW) ? "sw" : "auto"; lpss_ltr_mode_show()
496 static DEVICE_ATTR(ltr_mode, S_IRUSR, lpss_ltr_mode_show, NULL);
513 u32 ltr_mode, ltr_val; acpi_lpss_set_ltr() local
515 ltr_mode = __lpss_reg_read(pdata, LPSS_GENERAL); acpi_lpss_set_ltr()
517 if (ltr_mode & LPSS_GENERAL_LTR_MODE_SW) { acpi_lpss_set_ltr()
518 ltr_mode &= ~LPSS_GENERAL_LTR_MODE_SW; acpi_lpss_set_ltr()
519 __lpss_reg_write(ltr_mode, pdata, LPSS_GENERAL); acpi_lpss_set_ltr()
535 if (!(ltr_mode & LPSS_GENERAL_LTR_MODE_SW)) { acpi_lpss_set_ltr()
536 ltr_mode |= LPSS_GENERAL_LTR_MODE_SW; acpi_lpss_set_ltr()
537 __lpss_reg_write(ltr_mode, pdata, LPSS_GENERAL); acpi_lpss_set_ltr()

Completed in 35 milliseconds