Lines Matching refs:test_bit
420 if (test_bit(FLAG_REQUESTED, &desc->flags)) in gpiochip_remove()
982 if (chip && test_bit(FLAG_REQUESTED, &desc->flags)) { in __gpiod_free()
1032 if (test_bit(FLAG_REQUESTED, &desc->flags) == 0) in gpiochip_is_requested()
1134 if (test_bit(FLAG_USED_AS_IRQ, &desc->flags)) { in _gpiod_direction_output_raw()
1142 if (value && test_bit(FLAG_OPEN_DRAIN, &desc->flags)) in _gpiod_direction_output_raw()
1146 if (!value && test_bit(FLAG_OPEN_SOURCE, &desc->flags)) in _gpiod_direction_output_raw()
1204 if (test_bit(FLAG_ACTIVE_LOW, &desc->flags)) in gpiod_direction_output()
1247 return test_bit(FLAG_ACTIVE_LOW, &desc->flags); in gpiod_is_active_low()
1335 if (test_bit(FLAG_ACTIVE_LOW, &desc->flags)) in gpiod_get_value()
1402 if (test_bit(FLAG_OPEN_DRAIN, &desc->flags)) in _gpiod_set_raw_value()
1404 else if (test_bit(FLAG_OPEN_SOURCE, &desc->flags)) in _gpiod_set_raw_value()
1435 chip->set(chip, i, test_bit(i, bits)); in gpio_chip_set_multiple()
1462 if (!raw && test_bit(FLAG_ACTIVE_LOW, &desc->flags)) in gpiod_set_array_value_priv()
1469 if (test_bit(FLAG_OPEN_DRAIN, &desc->flags)) { in gpiod_set_array_value_priv()
1471 } else if (test_bit(FLAG_OPEN_SOURCE, &desc->flags)) { in gpiod_set_array_value_priv()
1527 if (test_bit(FLAG_ACTIVE_LOW, &desc->flags)) in gpiod_set_value()
1623 if (test_bit(FLAG_IS_OUT, &chip->desc[offset].flags)) { in gpiochip_lock_as_irq()
1691 if (test_bit(FLAG_ACTIVE_LOW, &desc->flags)) in gpiod_get_value_cansleep()
1733 if (test_bit(FLAG_ACTIVE_LOW, &desc->flags)) in gpiod_set_value_cansleep()
2332 if (test_bit(FLAG_IS_HOGGED, &chip->desc[id].flags)) in gpiochip_free_hogs()
2441 if (!test_bit(FLAG_REQUESTED, &gdesc->flags)) { in gpiolib_dbg_show()
2450 is_out = test_bit(FLAG_IS_OUT, &gdesc->flags); in gpiolib_dbg_show()
2451 is_irq = test_bit(FLAG_USED_AS_IRQ, &gdesc->flags); in gpiolib_dbg_show()