Lines Matching full:api
10 * @brief Main header file for SYSCON (System Control) driver API.
33 * API template to get the base address of the syscon region.
40 * API template to read a single register.
47 * API template to write a single register.
54 * API template to get the size of the syscon register.
61 * @brief System Control (syscon) register driver API
77 * @retval -ENOSYS If the API or function isn't implemented.
83 const struct syscon_driver_api *api = (const struct syscon_driver_api *)dev->api; in z_impl_syscon_get_base() local
85 if ((api == NULL) || (api->get_base == NULL)) { in z_impl_syscon_get_base()
89 return api->get_base(dev, addr); in z_impl_syscon_get_base()
103 * @retval -ENOSYS If the API or function isn't implemented.
109 const struct syscon_driver_api *api = (const struct syscon_driver_api *)dev->api; in z_impl_syscon_read_reg() local
111 if ((api == NULL) || (api->read == NULL)) { in z_impl_syscon_read_reg()
115 return api->read(dev, reg, val); in z_impl_syscon_read_reg()
129 * @retval -ENOSYS If the API or function isn't implemented.
135 const struct syscon_driver_api *api = (const struct syscon_driver_api *)dev->api; in z_impl_syscon_write_reg() local
137 if ((api == NULL) || (api->write == NULL)) { in z_impl_syscon_write_reg()
141 return api->write(dev, reg, val); in z_impl_syscon_write_reg()
151 * @retval -ENOSYS If the API or function isn't implemented.
157 const struct syscon_driver_api *api = (const struct syscon_driver_api *)dev->api; in z_impl_syscon_get_size() local
159 if ((api == NULL) || (api->get_size == NULL)) { in z_impl_syscon_get_size()
163 return api->get_size(dev, size); in z_impl_syscon_get_size()