Lines Matching full:guard
175 CLASS(gpio_chip_guard, guard)(desc); in gpio_sysfs_request_irq()
176 if (!guard.gc) in gpio_sysfs_request_irq()
203 ret = gpiochip_lock_as_irq(guard.gc, gpio_chip_hwgpio(desc)); in gpio_sysfs_request_irq()
217 gpiochip_unlock_as_irq(guard.gc, gpio_chip_hwgpio(desc)); in gpio_sysfs_request_irq()
233 CLASS(gpio_chip_guard, guard)(desc); in gpio_sysfs_free_irq()
234 if (!guard.gc) in gpio_sysfs_free_irq()
239 gpiochip_unlock_as_irq(guard.gc, gpio_chip_hwgpio(desc)); in gpio_sysfs_free_irq()
470 CLASS(gpio_chip_guard, guard)(desc); in export_store()
471 if (!guard.gc) in export_store()
475 if (!gpiochip_line_is_valid(guard.gc, offset)) { in export_store()
593 CLASS(gpio_chip_guard, guard)(desc); in gpiod_export()
594 if (!guard.gc) in gpiod_export()
624 if (guard.gc->direction_input && guard.gc->direction_output) in gpiod_export()
630 if (guard.gc->names && guard.gc->names[offset]) in gpiod_export()
631 ioname = guard.gc->names[offset]; in gpiod_export()
760 guard(srcu)(&gdev->srcu); in gpiochip_sysfs_register()
804 guard(srcu)(&gdev->srcu); in gpiochip_sysfs_unregister()