Lines Matching full:api

17  * API template to check if the BBRAM is invalid.
24 * API template to check for standby power failure.
31 * API template to check for V CC1 power failure.
38 * API template to check the size of the BBRAM
45 * API template to read from BBRAM.
53 * API template to write to BBRAM.
82 const struct bbram_driver_api *api = in z_impl_bbram_check_invalid() local
83 (const struct bbram_driver_api *)dev->api; in z_impl_bbram_check_invalid()
85 if (!api->check_invalid) { in z_impl_bbram_check_invalid()
89 return api->check_invalid(dev); in z_impl_bbram_check_invalid()
105 const struct bbram_driver_api *api = in z_impl_bbram_check_standby_power() local
106 (const struct bbram_driver_api *)dev->api; in z_impl_bbram_check_standby_power()
108 if (!api->check_standby_power) { in z_impl_bbram_check_standby_power()
112 return api->check_standby_power(dev); in z_impl_bbram_check_standby_power()
129 const struct bbram_driver_api *api = in z_impl_bbram_check_power() local
130 (const struct bbram_driver_api *)dev->api; in z_impl_bbram_check_power()
132 if (!api->check_power) { in z_impl_bbram_check_power()
136 return api->check_power(dev); in z_impl_bbram_check_power()
150 const struct bbram_driver_api *api = in z_impl_bbram_get_size() local
151 (const struct bbram_driver_api *)dev->api; in z_impl_bbram_get_size()
153 if (!api->get_size) { in z_impl_bbram_get_size()
157 return api->get_size(dev, size); in z_impl_bbram_get_size()
175 const struct bbram_driver_api *api = in z_impl_bbram_read() local
176 (const struct bbram_driver_api *)dev->api; in z_impl_bbram_read()
178 if (!api->read) { in z_impl_bbram_read()
182 return api->read(dev, offset, size, data); in z_impl_bbram_read()
200 const struct bbram_driver_api *api = in z_impl_bbram_write() local
201 (const struct bbram_driver_api *)dev->api; in z_impl_bbram_write()
203 if (!api->write) { in z_impl_bbram_write()
207 return api->write(dev, offset, size, data); in z_impl_bbram_write()