Lines Matching refs:api
225 const struct espi_saf_driver_api *api = in z_impl_espi_saf_config() local
226 (const struct espi_saf_driver_api *)dev->api; in z_impl_espi_saf_config()
228 return api->config(dev, cfg); in z_impl_espi_saf_config()
253 const struct espi_saf_driver_api *api = in z_impl_espi_saf_set_protection_regions() local
254 (const struct espi_saf_driver_api *)dev->api; in z_impl_espi_saf_set_protection_regions()
256 return api->set_protection_regions(dev, pr); in z_impl_espi_saf_set_protection_regions()
275 const struct espi_saf_driver_api *api = in z_impl_espi_saf_activate() local
276 (const struct espi_saf_driver_api *)dev->api; in z_impl_espi_saf_activate()
278 return api->activate(dev); in z_impl_espi_saf_activate()
296 const struct espi_saf_driver_api *api = in z_impl_espi_saf_get_channel_status() local
297 (const struct espi_saf_driver_api *)dev->api; in z_impl_espi_saf_get_channel_status()
299 return api->get_channel_status(dev); in z_impl_espi_saf_get_channel_status()
321 const struct espi_saf_driver_api *api = in z_impl_espi_saf_flash_read() local
322 (const struct espi_saf_driver_api *)dev->api; in z_impl_espi_saf_flash_read()
324 if (!api->flash_read) { in z_impl_espi_saf_flash_read()
328 return api->flash_read(dev, pckt); in z_impl_espi_saf_flash_read()
350 const struct espi_saf_driver_api *api = in z_impl_espi_saf_flash_write() local
351 (const struct espi_saf_driver_api *)dev->api; in z_impl_espi_saf_flash_write()
353 if (!api->flash_write) { in z_impl_espi_saf_flash_write()
357 return api->flash_write(dev, pckt); in z_impl_espi_saf_flash_write()
379 const struct espi_saf_driver_api *api = in z_impl_espi_saf_flash_erase() local
380 (const struct espi_saf_driver_api *)dev->api; in z_impl_espi_saf_flash_erase()
382 if (!api->flash_erase) { in z_impl_espi_saf_flash_erase()
386 return api->flash_erase(dev, pckt); in z_impl_espi_saf_flash_erase()
408 const struct espi_saf_driver_api *api = in z_impl_espi_saf_flash_unsuccess() local
409 (const struct espi_saf_driver_api *)dev->api; in z_impl_espi_saf_flash_unsuccess()
411 if (!api->flash_unsuccess) { in z_impl_espi_saf_flash_unsuccess()
415 return api->flash_unsuccess(dev, pckt); in z_impl_espi_saf_flash_unsuccess()
514 const struct espi_saf_driver_api *api = in espi_saf_add_callback() local
515 (const struct espi_saf_driver_api *)dev->api; in espi_saf_add_callback()
517 if (!api->manage_callback) { in espi_saf_add_callback()
521 return api->manage_callback(dev, callback, true); in espi_saf_add_callback()
543 const struct espi_saf_driver_api *api = in espi_saf_remove_callback() local
544 (const struct espi_saf_driver_api *)dev->api; in espi_saf_remove_callback()
546 if (!api->manage_callback) { in espi_saf_remove_callback()
550 return api->manage_callback(dev, callback, false); in espi_saf_remove_callback()