Lines Matching refs:api
100 const struct edac_driver_api *api = in edac_inject_set_param1() local
101 (const struct edac_driver_api *)dev->api; in edac_inject_set_param1()
103 if (api->inject_set_param1 == NULL) { in edac_inject_set_param1()
107 return api->inject_set_param1(dev, value); in edac_inject_set_param1()
124 const struct edac_driver_api *api = in edac_inject_get_param1() local
125 (const struct edac_driver_api *)dev->api; in edac_inject_get_param1()
127 if (api->inject_get_param1 == NULL) { in edac_inject_get_param1()
131 return api->inject_get_param1(dev, value); in edac_inject_get_param1()
149 const struct edac_driver_api *api = in edac_inject_set_param2() local
150 (const struct edac_driver_api *)dev->api; in edac_inject_set_param2()
152 if (api->inject_set_param2 == NULL) { in edac_inject_set_param2()
156 return api->inject_set_param2(dev, value); in edac_inject_set_param2()
171 const struct edac_driver_api *api = in edac_inject_get_param2() local
172 (const struct edac_driver_api *)dev->api; in edac_inject_get_param2()
174 if (api->inject_get_param2 == NULL) { in edac_inject_get_param2()
178 return api->inject_get_param2(dev, value); in edac_inject_get_param2()
195 const struct edac_driver_api *api = in edac_inject_set_error_type() local
196 (const struct edac_driver_api *)dev->api; in edac_inject_set_error_type()
198 if (api->inject_set_error_type == NULL) { in edac_inject_set_error_type()
202 return api->inject_set_error_type(dev, error_type); in edac_inject_set_error_type()
219 const struct edac_driver_api *api = in edac_inject_get_error_type() local
220 (const struct edac_driver_api *)dev->api; in edac_inject_get_error_type()
222 if (api->inject_get_error_type == NULL) { in edac_inject_get_error_type()
226 return api->inject_get_error_type(dev, error_type); in edac_inject_get_error_type()
241 const struct edac_driver_api *api = in edac_inject_error_trigger() local
242 (const struct edac_driver_api *)dev->api; in edac_inject_error_trigger()
244 if (api->inject_error_trigger == NULL) { in edac_inject_error_trigger()
248 return api->inject_error_trigger(dev); in edac_inject_error_trigger()
274 const struct edac_driver_api *api = in edac_ecc_error_log_get() local
275 (const struct edac_driver_api *)dev->api; in edac_ecc_error_log_get()
277 if (api->ecc_error_log_get == NULL) { in edac_ecc_error_log_get()
281 return api->ecc_error_log_get(dev, value); in edac_ecc_error_log_get()
296 const struct edac_driver_api *api = in edac_ecc_error_log_clear() local
297 (const struct edac_driver_api *)dev->api; in edac_ecc_error_log_clear()
299 if (api->ecc_error_log_clear == NULL) { in edac_ecc_error_log_clear()
303 return api->ecc_error_log_clear(dev); in edac_ecc_error_log_clear()
320 const struct edac_driver_api *api = in edac_parity_error_log_get() local
321 (const struct edac_driver_api *)dev->api; in edac_parity_error_log_get()
323 if (api->parity_error_log_get == NULL) { in edac_parity_error_log_get()
327 return api->parity_error_log_get(dev, value); in edac_parity_error_log_get()
342 const struct edac_driver_api *api = in edac_parity_error_log_clear() local
343 (const struct edac_driver_api *)dev->api; in edac_parity_error_log_clear()
345 if (api->parity_error_log_clear == NULL) { in edac_parity_error_log_clear()
349 return api->parity_error_log_clear(dev); in edac_parity_error_log_clear()
362 const struct edac_driver_api *api = in edac_errors_cor_get() local
363 (const struct edac_driver_api *)dev->api; in edac_errors_cor_get()
365 if (api->errors_cor_get == NULL) { in edac_errors_cor_get()
369 return api->errors_cor_get(dev); in edac_errors_cor_get()
382 const struct edac_driver_api *api = in edac_errors_uc_get() local
383 (const struct edac_driver_api *)dev->api; in edac_errors_uc_get()
385 if (api->errors_uc_get == NULL) { in edac_errors_uc_get()
389 return api->errors_uc_get(dev); in edac_errors_uc_get()
406 const struct edac_driver_api *api = (const struct edac_driver_api *)dev->api; in edac_notify_callback_set() local
408 if (api->notify_cb_set == NULL) { in edac_notify_callback_set()
412 return api->notify_cb_set(dev, cb); in edac_notify_callback_set()