Lines Matching refs:test_bit
49 if (!test_bit(FLAG_EXPORT, &desc->flags)) { in gpio_direction_show()
54 test_bit(FLAG_IS_OUT, &desc->flags) in gpio_direction_show()
70 if (!test_bit(FLAG_EXPORT, &desc->flags)) in gpio_direction_store()
96 if (!test_bit(FLAG_EXPORT, &desc->flags)) in gpio_value_show()
113 if (!test_bit(FLAG_EXPORT, &desc->flags)) in gpio_value_store()
115 else if (!test_bit(FLAG_IS_OUT, &desc->flags)) in gpio_value_store()
170 if (test_bit(FLAG_TRIG_FALL, &gpio_flags)) in gpio_setup_irq()
171 irq_flags |= test_bit(FLAG_ACTIVE_LOW, &desc->flags) ? in gpio_setup_irq()
173 if (test_bit(FLAG_TRIG_RISE, &gpio_flags)) in gpio_setup_irq()
174 irq_flags |= test_bit(FLAG_ACTIVE_LOW, &desc->flags) ? in gpio_setup_irq()
240 if (!test_bit(FLAG_EXPORT, &desc->flags)) in gpio_edge_show()
274 if (!test_bit(FLAG_EXPORT, &desc->flags)) in gpio_edge_store()
294 if (!!test_bit(FLAG_ACTIVE_LOW, &desc->flags) == !!value) in sysfs_set_active_low()
303 if (dev != NULL && (!!test_bit(FLAG_TRIG_RISE, &desc->flags) ^ in sysfs_set_active_low()
304 !!test_bit(FLAG_TRIG_FALL, &desc->flags))) { in sysfs_set_active_low()
322 if (!test_bit(FLAG_EXPORT, &desc->flags)) in gpio_active_low_show()
326 !!test_bit(FLAG_ACTIVE_LOW, &desc->flags)); in gpio_active_low_show()
341 if (!test_bit(FLAG_EXPORT, &desc->flags)) { in gpio_active_low_store()
365 bool show_direction = test_bit(FLAG_SYSFS_DIR, &desc->flags); in gpio_is_visible()
373 if (!show_direction && test_bit(FLAG_IS_OUT, &desc->flags)) in gpio_is_visible()
583 if (!test_bit(FLAG_REQUESTED, &desc->flags) || in gpiod_export()
584 test_bit(FLAG_EXPORT, &desc->flags)) { in gpiod_export()
588 test_bit(FLAG_REQUESTED, &desc->flags), in gpiod_export()
589 test_bit(FLAG_EXPORT, &desc->flags)); in gpiod_export()
653 if (test_bit(FLAG_EXPORT, &desc->flags)) { in gpiod_export_link()
699 if (test_bit(FLAG_EXPORT, &desc->flags)) { in gpiod_sysfs_set_active_low()
737 if (test_bit(FLAG_EXPORT, &desc->flags)) { in gpiod_unexport()