Lines Matching refs:test_bit
344 if (test_bit(FLAG_REQUESTED, &chip->desc[id].flags)) in gpiochip_remove()
861 if (chip && test_bit(FLAG_REQUESTED, &desc->flags)) { in __gpiod_free()
911 if (test_bit(FLAG_REQUESTED, &desc->flags) == 0) in gpiochip_is_requested()
1013 if (test_bit(FLAG_USED_AS_IRQ, &desc->flags)) { in _gpiod_direction_output_raw()
1021 if (value && test_bit(FLAG_OPEN_DRAIN, &desc->flags)) in _gpiod_direction_output_raw()
1025 if (!value && test_bit(FLAG_OPEN_SOURCE, &desc->flags)) in _gpiod_direction_output_raw()
1083 if (test_bit(FLAG_ACTIVE_LOW, &desc->flags)) in gpiod_direction_output()
1126 return test_bit(FLAG_ACTIVE_LOW, &desc->flags); in gpiod_is_active_low()
1204 if (test_bit(FLAG_ACTIVE_LOW, &desc->flags)) in gpiod_get_value()
1271 if (test_bit(FLAG_OPEN_DRAIN, &desc->flags)) in _gpiod_set_raw_value()
1273 else if (test_bit(FLAG_OPEN_SOURCE, &desc->flags)) in _gpiod_set_raw_value()
1304 chip->set(chip, i, test_bit(i, bits)); in gpio_chip_set_multiple()
1332 if (!raw && test_bit(FLAG_ACTIVE_LOW, &desc->flags)) in gpiod_set_array_priv()
1339 if (test_bit(FLAG_OPEN_DRAIN, &desc->flags)) { in gpiod_set_array_priv()
1341 } else if (test_bit(FLAG_OPEN_SOURCE, &desc->flags)) { in gpiod_set_array_priv()
1399 if (test_bit(FLAG_ACTIVE_LOW, &desc->flags)) in gpiod_set_value()
1493 if (test_bit(FLAG_IS_OUT, &chip->desc[offset].flags)) { in gpiochip_lock_as_irq()
1558 if (test_bit(FLAG_ACTIVE_LOW, &desc->flags)) in gpiod_get_value_cansleep()
1600 if (test_bit(FLAG_ACTIVE_LOW, &desc->flags)) in gpiod_set_value_cansleep()
2155 if (test_bit(FLAG_IS_HOGGED, &chip->desc[id].flags)) in gpiochip_free_hogs()
2264 if (!test_bit(FLAG_REQUESTED, &gdesc->flags)) in gpiolib_dbg_show()
2268 is_out = test_bit(FLAG_IS_OUT, &gdesc->flags); in gpiolib_dbg_show()
2269 is_irq = test_bit(FLAG_USED_AS_IRQ, &gdesc->flags); in gpiolib_dbg_show()