Lines Matching refs:can_sleep
1550 if (gc->irq.parent_handler && gc->can_sleep) { in gpiochip_add_irqchip()
2038 might_sleep_if(gc->can_sleep); in gpiod_free_commit()
2665 int gpiod_get_array_value_complex(bool raw, bool can_sleep, in gpiod_get_array_value_complex() argument
2681 if (!can_sleep) in gpiod_get_array_value_complex()
2682 WARN_ON(array_info->chip->can_sleep); in gpiod_get_array_value_complex()
2712 gfp_t flags = can_sleep ? GFP_KERNEL : GFP_ATOMIC; in gpiod_get_array_value_complex()
2727 if (!can_sleep) in gpiod_get_array_value_complex()
2728 WARN_ON(gc->can_sleep); in gpiod_get_array_value_complex()
2792 WARN_ON(desc->gdev->chip->can_sleep); in gpiod_get_raw_value()
2813 WARN_ON(desc->gdev->chip->can_sleep); in gpiod_get_value()
2962 int gpiod_set_array_value_complex(bool raw, bool can_sleep, in gpiod_set_array_value_complex() argument
2978 if (!can_sleep) in gpiod_set_array_value_complex()
2979 WARN_ON(array_info->chip->can_sleep); in gpiod_set_array_value_complex()
3006 gfp_t flags = can_sleep ? GFP_KERNEL : GFP_ATOMIC; in gpiod_set_array_value_complex()
3021 if (!can_sleep) in gpiod_set_array_value_complex()
3022 WARN_ON(gc->can_sleep); in gpiod_set_array_value_complex()
3086 WARN_ON(desc->gdev->chip->can_sleep); in gpiod_set_raw_value()
3127 WARN_ON(desc->gdev->chip->can_sleep); in gpiod_set_value()
3191 return desc->gdev->chip->can_sleep; in gpiod_cansleep()
3281 if (!gc->can_sleep && gc->get_direction) { in gpiochip_lock_as_irq()
4569 if (gc->can_sleep) in gpiolib_seq_show()