Lines Matching full:spec
313 * const struct gpio_dt_spec spec = GPIO_DT_SPEC_GET_BY_IDX(DT_NODELABEL(n),
315 * // Initializes 'spec' to:
831 * @param spec GPIO specification from devicetree
833 * @retval true if the GPIO spec is ready for use.
834 * @retval false if the GPIO spec is not ready for use.
836 static inline bool gpio_is_ready_dt(const struct gpio_dt_spec *spec) in gpio_is_ready_dt() argument
839 return device_is_ready(spec->port); in gpio_is_ready_dt()
943 * gpio_pin_interrupt_configure(spec->port, spec->pin, flags);
945 * The <tt>spec->dt_flags</tt> value is not used.
947 * @param spec GPIO specification from devicetree
951 static inline int gpio_pin_interrupt_configure_dt(const struct gpio_dt_spec *spec, in gpio_pin_interrupt_configure_dt() argument
954 return gpio_pin_interrupt_configure(spec->port, spec->pin, flags); in gpio_pin_interrupt_configure_dt()
1038 * gpio_pin_configure(spec->port, spec->pin, spec->dt_flags | extra_flags);
1040 * @param spec GPIO specification from devicetree
1044 static inline int gpio_pin_configure_dt(const struct gpio_dt_spec *spec, in gpio_pin_configure_dt() argument
1047 return gpio_pin_configure(spec->port, in gpio_pin_configure_dt()
1048 spec->pin, in gpio_pin_configure_dt()
1049 spec->dt_flags | extra_flags); in gpio_pin_configure_dt()
1128 * gpio_pin_is_input(spec->port, spec->pin);
1130 * @param spec GPIO specification from devicetree.
1134 static inline int gpio_pin_is_input_dt(const struct gpio_dt_spec *spec) in gpio_pin_is_input_dt() argument
1136 return gpio_pin_is_input(spec->port, spec->pin); in gpio_pin_is_input_dt()
1173 * gpio_pin_is_output(spec->port, spec->pin);
1175 * @param spec GPIO specification from devicetree.
1179 static inline int gpio_pin_is_output_dt(const struct gpio_dt_spec *spec) in gpio_pin_is_output_dt() argument
1181 return gpio_pin_is_output(spec->port, spec->pin); in gpio_pin_is_output_dt()
1229 * gpio_pin_get_config(spec->port, spec->pin, flags);
1231 * @param spec GPIO specification from devicetree
1236 static inline int gpio_pin_get_config_dt(const struct gpio_dt_spec *spec, in gpio_pin_get_config_dt() argument
1239 return gpio_pin_get_config(spec->port, spec->pin, flags); in gpio_pin_get_config_dt()
1603 * gpio_pin_get(spec->port, spec->pin);
1605 * @param spec GPIO specification from devicetree
1608 static inline int gpio_pin_get_dt(const struct gpio_dt_spec *spec) in gpio_pin_get_dt() argument
1610 return gpio_pin_get(spec->port, spec->pin); in gpio_pin_get_dt()
1691 * gpio_pin_set(spec->port, spec->pin, value);
1693 * @param spec GPIO specification from devicetree
1697 static inline int gpio_pin_set_dt(const struct gpio_dt_spec *spec, int value) in gpio_pin_set_dt() argument
1699 return gpio_pin_set(spec->port, spec->pin, value); in gpio_pin_set_dt()
1728 * gpio_pin_toggle(spec->port, spec->pin);
1730 * @param spec GPIO specification from devicetree
1733 static inline int gpio_pin_toggle_dt(const struct gpio_dt_spec *spec) in gpio_pin_toggle_dt() argument
1735 return gpio_pin_toggle(spec->port, spec->pin); in gpio_pin_toggle_dt()
1797 * gpio_add_callback(spec->port, callback);
1799 * @param spec GPIO specification from devicetree.
1803 static inline int gpio_add_callback_dt(const struct gpio_dt_spec *spec, in gpio_add_callback_dt() argument
1806 return gpio_add_callback(spec->port, callback); in gpio_add_callback_dt()
1851 * gpio_remove_callback(spec->port, callback);
1853 * @param spec GPIO specification from devicetree.
1857 static inline int gpio_remove_callback_dt(const struct gpio_dt_spec *spec, in gpio_remove_callback_dt() argument
1860 return gpio_remove_callback(spec->port, callback); in gpio_remove_callback_dt()