Lines Matching full:api
27 * @brief API template to check if the BBRAM is invalid.
35 * @brief API template to check for standby power failure.
43 * @brief API template to check for V CC1 power failure.
51 * @brief API template to check the size of the BBRAM
59 * @brief API template to read from BBRAM.
68 * @brief API template to write to BBRAM.
97 const struct bbram_driver_api *api = in z_impl_bbram_check_invalid() local
98 (const struct bbram_driver_api *)dev->api; in z_impl_bbram_check_invalid()
100 if (!api->check_invalid) { in z_impl_bbram_check_invalid()
104 return api->check_invalid(dev); in z_impl_bbram_check_invalid()
119 const struct bbram_driver_api *api = in z_impl_bbram_check_standby_power() local
120 (const struct bbram_driver_api *)dev->api; in z_impl_bbram_check_standby_power()
122 if (!api->check_standby_power) { in z_impl_bbram_check_standby_power()
126 return api->check_standby_power(dev); in z_impl_bbram_check_standby_power()
142 const struct bbram_driver_api *api = in z_impl_bbram_check_power() local
143 (const struct bbram_driver_api *)dev->api; in z_impl_bbram_check_power()
145 if (!api->check_power) { in z_impl_bbram_check_power()
149 return api->check_power(dev); in z_impl_bbram_check_power()
163 const struct bbram_driver_api *api = in z_impl_bbram_get_size() local
164 (const struct bbram_driver_api *)dev->api; in z_impl_bbram_get_size()
166 if (!api->get_size) { in z_impl_bbram_get_size()
170 return api->get_size(dev, size); in z_impl_bbram_get_size()
188 const struct bbram_driver_api *api = in z_impl_bbram_read() local
189 (const struct bbram_driver_api *)dev->api; in z_impl_bbram_read()
191 if (!api->read) { in z_impl_bbram_read()
195 return api->read(dev, offset, size, data); in z_impl_bbram_read()
213 const struct bbram_driver_api *api = in z_impl_bbram_write() local
214 (const struct bbram_driver_api *)dev->api; in z_impl_bbram_write()
216 if (!api->write) { in z_impl_bbram_write()
220 return api->write(dev, offset, size, data); in z_impl_bbram_write()