Lines Matching full:api

9  * @brief EDAC API header file
20 * @defgroup edac EDAC API
44 * @brief EDAC driver API
46 * This is the mandatory API any EDAC driver needs to expose.
49 /* Error Injection API is disabled by default */
58 /* Error Logging API */
64 /* Error stats API */
68 /* Notification callback API */
98 const struct edac_driver_api *api = in edac_inject_set_param1() local
99 (const struct edac_driver_api *)dev->api; in edac_inject_set_param1()
101 if (api->inject_set_param1 == NULL) { in edac_inject_set_param1()
105 return api->inject_set_param1(dev, value); in edac_inject_set_param1()
122 const struct edac_driver_api *api = in edac_inject_get_param1() local
123 (const struct edac_driver_api *)dev->api; in edac_inject_get_param1()
125 if (api->inject_get_param1 == NULL) { in edac_inject_get_param1()
129 return api->inject_get_param1(dev, value); in edac_inject_get_param1()
147 const struct edac_driver_api *api = in edac_inject_set_param2() local
148 (const struct edac_driver_api *)dev->api; in edac_inject_set_param2()
150 if (api->inject_set_param2 == NULL) { in edac_inject_set_param2()
154 return api->inject_set_param2(dev, value); in edac_inject_set_param2()
169 const struct edac_driver_api *api = in edac_inject_get_param2() local
170 (const struct edac_driver_api *)dev->api; in edac_inject_get_param2()
172 if (api->inject_get_param2 == NULL) { in edac_inject_get_param2()
176 return api->inject_get_param2(dev, value); in edac_inject_get_param2()
193 const struct edac_driver_api *api = in edac_inject_set_error_type() local
194 (const struct edac_driver_api *)dev->api; in edac_inject_set_error_type()
196 if (api->inject_set_error_type == NULL) { in edac_inject_set_error_type()
200 return api->inject_set_error_type(dev, error_type); in edac_inject_set_error_type()
217 const struct edac_driver_api *api = in edac_inject_get_error_type() local
218 (const struct edac_driver_api *)dev->api; in edac_inject_get_error_type()
220 if (api->inject_get_error_type == NULL) { in edac_inject_get_error_type()
224 return api->inject_get_error_type(dev, error_type); in edac_inject_get_error_type()
239 const struct edac_driver_api *api = in edac_inject_error_trigger() local
240 (const struct edac_driver_api *)dev->api; in edac_inject_error_trigger()
242 if (api->inject_error_trigger == NULL) { in edac_inject_error_trigger()
246 return api->inject_error_trigger(dev); in edac_inject_error_trigger()
272 const struct edac_driver_api *api = in edac_ecc_error_log_get() local
273 (const struct edac_driver_api *)dev->api; in edac_ecc_error_log_get()
275 if (api->ecc_error_log_get == NULL) { in edac_ecc_error_log_get()
279 return api->ecc_error_log_get(dev, value); in edac_ecc_error_log_get()
294 const struct edac_driver_api *api = in edac_ecc_error_log_clear() local
295 (const struct edac_driver_api *)dev->api; in edac_ecc_error_log_clear()
297 if (api->ecc_error_log_clear == NULL) { in edac_ecc_error_log_clear()
301 return api->ecc_error_log_clear(dev); in edac_ecc_error_log_clear()
318 const struct edac_driver_api *api = in edac_parity_error_log_get() local
319 (const struct edac_driver_api *)dev->api; in edac_parity_error_log_get()
321 if (api->parity_error_log_get == NULL) { in edac_parity_error_log_get()
325 return api->parity_error_log_get(dev, value); in edac_parity_error_log_get()
340 const struct edac_driver_api *api = in edac_parity_error_log_clear() local
341 (const struct edac_driver_api *)dev->api; in edac_parity_error_log_clear()
343 if (api->parity_error_log_clear == NULL) { in edac_parity_error_log_clear()
347 return api->parity_error_log_clear(dev); in edac_parity_error_log_clear()
360 const struct edac_driver_api *api = in edac_errors_cor_get() local
361 (const struct edac_driver_api *)dev->api; in edac_errors_cor_get()
363 if (api->errors_cor_get == NULL) { in edac_errors_cor_get()
367 return api->errors_cor_get(dev); in edac_errors_cor_get()
380 const struct edac_driver_api *api = in edac_errors_uc_get() local
381 (const struct edac_driver_api *)dev->api; in edac_errors_uc_get()
383 if (api->errors_uc_get == NULL) { in edac_errors_uc_get()
387 return api->errors_uc_get(dev); in edac_errors_uc_get()
404 const struct edac_driver_api *api = (const struct edac_driver_api *)dev->api; in edac_notify_callback_set() local
406 if (api->notify_cb_set == NULL) { in edac_notify_callback_set()
410 return api->notify_cb_set(dev, cb); in edac_notify_callback_set()
416 /** @} */ /* End of EDAC API */