Lines Matching full:guard

366 	CLASS(gpio_chip_guard, guard)(desc);  in gpiod_get_direction()
367 if (!guard.gc) in gpiod_get_direction()
381 if (!guard.gc->get_direction) in gpiod_get_direction()
384 ret = guard.gc->get_direction(guard.gc, offset); in gpiod_get_direction()
468 guard(srcu)(&gpio_devices_srcu); in gpio_name_to_desc()
472 guard(srcu)(&gdev->srcu); in gpio_name_to_desc()
817 guard(srcu)(&gpio_devices_srcu); in gpiochip_setup_devs()
1193 guard(srcu)(&gpio_devices_srcu); in gpio_device_find()
1200 guard(srcu)(&gdev->srcu); in gpio_device_find()
2280 CLASS(gpio_chip_guard, guard)(desc); in gpiod_request_commit()
2281 if (!guard.gc) in gpiod_request_commit()
2291 if (guard.gc->request) { in gpiod_request_commit()
2293 if (gpiochip_line_is_valid(guard.gc, offset)) in gpiod_request_commit()
2294 ret = guard.gc->request(guard.gc, offset); in gpiod_request_commit()
2301 if (guard.gc->get_direction) in gpiod_request_commit()
2372 CLASS(gpio_chip_guard, guard)(desc); in gpiod_free_commit()
2376 if (guard.gc && test_bit(FLAG_REQUESTED, &flags)) { in gpiod_free_commit()
2377 if (guard.gc->free) in gpiod_free_commit()
2378 guard.gc->free(guard.gc, gpio_chip_hwgpio(desc)); in gpiod_free_commit()
2433 guard(srcu)(&desc->gdev->desc_srcu); in gpiochip_dup_line_label()
2538 CLASS(gpio_chip_guard, guard)(desc); in gpio_set_config_with_argument()
2539 if (!guard.gc) in gpio_set_config_with_argument()
2543 return gpio_do_set_config(guard.gc, gpio_chip_hwgpio(desc), config); in gpio_set_config_with_argument()
2639 CLASS(gpio_chip_guard, guard)(desc); in gpiod_direction_input()
2640 if (!guard.gc) in gpiod_direction_input()
2648 if (!guard.gc->get && guard.gc->direction_input) { in gpiod_direction_input()
2661 if (guard.gc->direction_input) { in gpiod_direction_input()
2662 ret = guard.gc->direction_input(guard.gc, in gpiod_direction_input()
2664 } else if (guard.gc->get_direction && in gpiod_direction_input()
2665 (guard.gc->get_direction(guard.gc, in gpiod_direction_input()
2687 CLASS(gpio_chip_guard, guard)(desc); in gpiod_direction_output_raw_commit()
2688 if (!guard.gc) in gpiod_direction_output_raw_commit()
2696 if (!guard.gc->set && !guard.gc->direction_output) { in gpiod_direction_output_raw_commit()
2703 if (guard.gc->direction_output) { in gpiod_direction_output_raw_commit()
2704 ret = guard.gc->direction_output(guard.gc, in gpiod_direction_output_raw_commit()
2708 if (guard.gc->get_direction && in gpiod_direction_output_raw_commit()
2709 guard.gc->get_direction(guard.gc, gpio_chip_hwgpio(desc))) { in gpiod_direction_output_raw_commit()
2719 guard.gc->set(guard.gc, gpio_chip_hwgpio(desc), val); in gpiod_direction_output_raw_commit()
2841 CLASS(gpio_chip_guard, guard)(desc); in gpiod_enable_hw_timestamp_ns()
2842 if (!guard.gc) in gpiod_enable_hw_timestamp_ns()
2845 if (!guard.gc->en_hw_timestamp) { in gpiod_enable_hw_timestamp_ns()
2850 ret = guard.gc->en_hw_timestamp(guard.gc, in gpiod_enable_hw_timestamp_ns()
2874 CLASS(gpio_chip_guard, guard)(desc); in gpiod_disable_hw_timestamp_ns()
2875 if (!guard.gc) in gpiod_disable_hw_timestamp_ns()
2878 if (!guard.gc->dis_hw_timestamp) { in gpiod_disable_hw_timestamp_ns()
2883 ret = guard.gc->dis_hw_timestamp(guard.gc, gpio_chip_hwgpio(desc), in gpiod_disable_hw_timestamp_ns()
2905 CLASS(gpio_chip_guard, guard)(desc); in gpiod_set_config()
2906 if (!guard.gc) in gpiod_set_config()
2909 return gpio_do_set_config(guard.gc, gpio_chip_hwgpio(desc), config); in gpiod_set_config()
3015 guard(srcu)(&gdev->srcu); in gpiod_get_raw_value_commit()
3049 guard(srcu)(&gdev->srcu); in gpio_device_chip_cmp()
3096 CLASS(gpio_chip_guard, guard)(desc_array[i]); in gpiod_get_array_value_complex()
3097 if (!guard.gc) in gpiod_get_array_value_complex()
3100 if (likely(guard.gc->ngpio <= FASTPATH_NGPIO)) { in gpiod_get_array_value_complex()
3106 mask = bitmap_alloc(guard.gc->ngpio, flags); in gpiod_get_array_value_complex()
3110 bits = bitmap_alloc(guard.gc->ngpio, flags); in gpiod_get_array_value_complex()
3117 bitmap_zero(mask, guard.gc->ngpio); in gpiod_get_array_value_complex()
3120 WARN_ON(guard.gc->can_sleep); in gpiod_get_array_value_complex()
3135 gpio_device_chip_cmp(desc_array[i]->gdev, guard.gc)); in gpiod_get_array_value_complex()
3137 ret = gpio_chip_get_multiple(guard.gc, mask, bits); in gpiod_get_array_value_complex()
3287 CLASS(gpio_chip_guard, guard)(desc); in gpio_set_open_drain_value_commit()
3288 if (!guard.gc) in gpio_set_open_drain_value_commit()
3292 ret = guard.gc->direction_input(guard.gc, offset); in gpio_set_open_drain_value_commit()
3294 ret = guard.gc->direction_output(guard.gc, offset, 0); in gpio_set_open_drain_value_commit()
3314 CLASS(gpio_chip_guard, guard)(desc); in gpio_set_open_source_value_commit()
3315 if (!guard.gc) in gpio_set_open_source_value_commit()
3319 ret = guard.gc->direction_output(guard.gc, offset, 1); in gpio_set_open_source_value_commit()
3323 ret = guard.gc->direction_input(guard.gc, offset); in gpio_set_open_source_value_commit()
3334 CLASS(gpio_chip_guard, guard)(desc); in gpiod_set_raw_value_commit()
3335 if (!guard.gc) in gpiod_set_raw_value_commit()
3339 guard.gc->set(guard.gc, gpio_chip_hwgpio(desc), value); in gpiod_set_raw_value_commit()
3405 CLASS(gpio_chip_guard, guard)(desc_array[i]); in gpiod_set_array_value_complex()
3406 if (!guard.gc) in gpiod_set_array_value_complex()
3409 if (likely(guard.gc->ngpio <= FASTPATH_NGPIO)) { in gpiod_set_array_value_complex()
3415 mask = bitmap_alloc(guard.gc->ngpio, flags); in gpiod_set_array_value_complex()
3419 bits = bitmap_alloc(guard.gc->ngpio, flags); in gpiod_set_array_value_complex()
3426 bitmap_zero(mask, guard.gc->ngpio); in gpiod_set_array_value_complex()
3429 WARN_ON(guard.gc->can_sleep); in gpiod_set_array_value_complex()
3465 gpio_device_chip_cmp(desc_array[i]->gdev, guard.gc)); in gpiod_set_array_value_complex()
3468 gpio_chip_set_multiple(guard.gc, mask, bits); in gpiod_set_array_value_complex()
3649 guard(srcu)(&gdev->srcu); in gpiod_to_irq()
4154 guard(mutex)(&gpio_lookup_lock); in gpiod_find()
4587 CLASS(gpio_chip_guard, guard)(desc); in gpiod_hog()
4588 if (!guard.gc) in gpiod_hog()
4596 local_desc = gpiochip_request_own_desc(guard.gc, hwnum, name, in gpiod_hog()
4883 guard(srcu)(&gdev->srcu); in gpiolib_dbg_show()
4892 guard(srcu)(&desc->gdev->desc_srcu); in gpiolib_dbg_show()
4970 guard(srcu)(&gdev->srcu); in gpiolib_seq_show()