Lines Matching refs:present
525 if (bp->dev.present == 0) { in acpi_drv_cbat_ioctl()
545 if (bp->dev.present == 0) { in acpi_drv_cbat_ioctl()
570 if (bp->dev.present) { in acpi_drv_cbat_ioctl()
949 devp->present = ac; in acpi_drv_get_psr()
952 devp->present = -1; in acpi_drv_get_psr()
982 devp->present = ((val & STA_FLAG_BATT_PRESENT) != 0); in acpi_drv_get_sta()
985 devp->present = -1; in acpi_drv_get_sta()
998 ASSERT(bp->dev.present != 0); in acpi_drv_update_bif()
1029 ASSERT(bp->dev.present != 0); in acpi_drv_update_bst()
1075 if (devp->present == -1) { in acpi_drv_dev_present()
1085 return (devp->present); in acpi_drv_dev_present()
1098 int old_present = p->present; in acpi_drv_update_present()
1103 p->present = -1; in acpi_drv_update_present()
1332 if (devp->present == 0) { in acpi_drv_cbat_notify()
1418 if (devp->present == 1) { in acpi_drv_cbat_notify()
1426 eval = devp->present; in acpi_drv_cbat_notify()
1472 old_present = devp->present; in acpi_drv_ac_notify()
1566 if (p->present) { in acpi_drv_obj_init()
1577 (p->present ? "present" : "absent")); in acpi_drv_obj_init()
1640 if (p->present) { in acpi_drv_obj_init()
1646 (p->present ? "on-line" : "off-line")); in acpi_drv_obj_init()