Lines Matching defs:fd
41 laptop_panel_update(LibHalContext *ctx, const char *udi, int fd)
52 if ((ioctl(fd, ACPI_DRV_IOC_INFO, &inf) < 0) ||
79 lid_update(LibHalContext *ctx, const char *udi, int fd)
98 if (ioctl(fd, ACPI_DRV_IOC_LID_STATUS, &lid_state) < 0) {
120 if (ioctl(fd, ACPI_DRV_IOC_LID_UPDATE, &lid_state) < 0) {
142 ac_adapter_present(LibHalContext *ctx, const char *udi, int fd)
149 if (ioctl(fd, ACPI_DRV_IOC_POWER_STATUS, &pow) < 0) {
267 battery_last_full(LibHalChangeSet *cs, int fd)
272 if (ioctl(fd, ACPI_DRV_IOC_INFO, &bif) < 0) {
280 battery_dynamic_update(LibHalContext *ctx, const char *udi, int fd)
299 if (ioctl(fd, ACPI_DRV_IOC_STATUS, &bst) < 0) {
417 battery_last_full(cs, fd);
445 battery_static_update(LibHalContext *ctx, const char *udi, int fd)
461 if (ioctl(fd, ACPI_DRV_IOC_INFO, &bif) < 0) {
559 battery_update(LibHalContext *ctx, const char *udi, int fd)
573 if (ioctl(fd, ACPI_DRV_IOC_STATUS, &bst) < 0) {
603 battery_static_update(ctx, udi, fd);
605 battery_dynamic_update(ctx, udi, fd);
618 int fd;
631 if ((fd = open_device(ctx,
636 fd);
637 close(fd);
648 ac_adapter_update(LibHalContext *ctx, const char *udi, int fd)
670 ac_adapter_present(ctx, udi, fd);
684 int fd;
693 if ((fd = open_device(ctx, ac_adapter_devices[i]))
697 ac_adapter_present(ctx, ac_adapter_devices[i], fd);
698 close(fd);