Lines Matching refs:debounce_period_us
715 usecs_to_jiffies(READ_ONCE(line->desc->debounce_period_us))); in process_hw_ts()
856 usecs_to_jiffies(READ_ONCE(line->desc->debounce_period_us))); in debounce_irq_handler()
930 static int debounce_setup(struct line *line, unsigned int debounce_period_us) in debounce_setup() argument
936 ret = gpiod_set_debounce(line->desc, debounce_period_us); in debounce_setup()
938 WRITE_ONCE(line->desc->debounce_period_us, debounce_period_us); in debounce_setup()
944 if (debounce_period_us) { in debounce_setup()
997 return lc->attrs[i].attr.debounce_period_us; in gpio_v2_line_config_debounce_period()
1018 WRITE_ONCE(line->desc->debounce_period_us, 0); in edge_detector_stop()
1026 u32 debounce_period_us; in edge_detector_setup() local
1039 debounce_period_us = gpio_v2_line_config_debounce_period(lc, line_idx); in edge_detector_setup()
1040 ret = debounce_setup(line, debounce_period_us); in edge_detector_setup()
1043 WRITE_ONCE(line->desc->debounce_period_us, debounce_period_us); in edge_detector_setup()
1081 unsigned int debounce_period_us = in edge_detector_update() local
1085 (READ_ONCE(line->desc->debounce_period_us) == debounce_period_us)) in edge_detector_update()
1089 if (debounce_period_us && READ_ONCE(line->sw_debounced)) { in edge_detector_update()
1090 WRITE_ONCE(line->desc->debounce_period_us, debounce_period_us); in edge_detector_update()
1097 (!debounce_period_us && READ_ONCE(line->sw_debounced))) in edge_detector_update()
2240 u32 debounce_period_us; in gpio_desc_to_lineinfo() local
2308 debounce_period_us = READ_ONCE(desc->debounce_period_us); in gpio_desc_to_lineinfo()
2309 if (debounce_period_us) { in gpio_desc_to_lineinfo()
2311 info->attrs[num_attrs].debounce_period_us = debounce_period_us; in gpio_desc_to_lineinfo()