Lines Matching refs:can_sleep
1496 if (gc->irq.parent_handler && gc->can_sleep) { in gpiochip_add_irqchip()
1975 might_sleep_if(gc->can_sleep); in gpiod_free_commit()
2532 int gpiod_get_array_value_complex(bool raw, bool can_sleep, in gpiod_get_array_value_complex() argument
2548 if (!can_sleep) in gpiod_get_array_value_complex()
2549 WARN_ON(array_info->chip->can_sleep); in gpiod_get_array_value_complex()
2579 gfp_t flags = can_sleep ? GFP_KERNEL : GFP_ATOMIC; in gpiod_get_array_value_complex()
2594 if (!can_sleep) in gpiod_get_array_value_complex()
2595 WARN_ON(gc->can_sleep); in gpiod_get_array_value_complex()
2659 WARN_ON(desc->gdev->chip->can_sleep); in gpiod_get_raw_value()
2680 WARN_ON(desc->gdev->chip->can_sleep); in gpiod_get_value()
2829 int gpiod_set_array_value_complex(bool raw, bool can_sleep, in gpiod_set_array_value_complex() argument
2845 if (!can_sleep) in gpiod_set_array_value_complex()
2846 WARN_ON(array_info->chip->can_sleep); in gpiod_set_array_value_complex()
2873 gfp_t flags = can_sleep ? GFP_KERNEL : GFP_ATOMIC; in gpiod_set_array_value_complex()
2888 if (!can_sleep) in gpiod_set_array_value_complex()
2889 WARN_ON(gc->can_sleep); in gpiod_set_array_value_complex()
2953 WARN_ON(desc->gdev->chip->can_sleep); in gpiod_set_raw_value()
2994 WARN_ON(desc->gdev->chip->can_sleep); in gpiod_set_value()
3058 return desc->gdev->chip->can_sleep; in gpiod_cansleep()
3138 if (!gc->can_sleep && gc->get_direction) { in gpiochip_lock_as_irq()
4421 if (gc->can_sleep) in gpiolib_seq_show()