Lines Matching refs:dev
17 typedef void (*edac_notify_callback_f)(const struct device *dev, void *data);
42 int (*inject_set_param1)(const struct device *dev, uint64_t value);
43 int (*inject_get_param1)(const struct device *dev, uint64_t *value);
44 int (*inject_set_param2)(const struct device *dev, uint64_t value);
45 int (*inject_get_param2)(const struct device *dev, uint64_t *value);
46 int (*inject_set_error_type)(const struct device *dev, uint32_t value);
47 int (*inject_get_error_type)(const struct device *dev, uint32_t *value);
48 int (*inject_error_trigger)(const struct device *dev);
51 int (*ecc_error_log_get)(const struct device *dev, uint64_t *value);
52 int (*ecc_error_log_clear)(const struct device *dev);
53 int (*parity_error_log_get)(const struct device *dev, uint64_t *value);
54 int (*parity_error_log_clear)(const struct device *dev);
57 int (*errors_cor_get)(const struct device *dev);
58 int (*errors_uc_get)(const struct device *dev);
61 int (*notify_cb_set)(const struct device *dev,
78 static inline int edac_inject_set_param1(const struct device *dev, in edac_inject_set_param1() argument
82 (const struct edac_driver_api *)dev->api; in edac_inject_set_param1()
88 return api->inject_set_param1(dev, value); in edac_inject_set_param1()
102 static inline int edac_inject_get_param1(const struct device *dev, in edac_inject_get_param1() argument
106 (const struct edac_driver_api *)dev->api; in edac_inject_get_param1()
112 return api->inject_get_param1(dev, value); in edac_inject_get_param1()
127 static inline int edac_inject_set_param2(const struct device *dev, in edac_inject_set_param2() argument
131 (const struct edac_driver_api *)dev->api; in edac_inject_set_param2()
137 return api->inject_set_param2(dev, value); in edac_inject_set_param2()
149 static inline int edac_inject_get_param2(const struct device *dev, in edac_inject_get_param2() argument
153 (const struct edac_driver_api *)dev->api; in edac_inject_get_param2()
159 return api->inject_get_param2(dev, value); in edac_inject_get_param2()
173 static inline int edac_inject_set_error_type(const struct device *dev, in edac_inject_set_error_type() argument
177 (const struct edac_driver_api *)dev->api; in edac_inject_set_error_type()
183 return api->inject_set_error_type(dev, error_type); in edac_inject_set_error_type()
197 static inline int edac_inject_get_error_type(const struct device *dev, in edac_inject_get_error_type() argument
201 (const struct edac_driver_api *)dev->api; in edac_inject_get_error_type()
207 return api->inject_get_error_type(dev, error_type); in edac_inject_get_error_type()
220 static inline int edac_inject_error_trigger(const struct device *dev) in edac_inject_error_trigger() argument
223 (const struct edac_driver_api *)dev->api; in edac_inject_error_trigger()
229 return api->inject_error_trigger(dev); in edac_inject_error_trigger()
245 static inline int edac_ecc_error_log_get(const struct device *dev, in edac_ecc_error_log_get() argument
249 (const struct edac_driver_api *)dev->api; in edac_ecc_error_log_get()
255 return api->ecc_error_log_get(dev, value); in edac_ecc_error_log_get()
268 static inline int edac_ecc_error_log_clear(const struct device *dev) in edac_ecc_error_log_clear() argument
271 (const struct edac_driver_api *)dev->api; in edac_ecc_error_log_clear()
277 return api->ecc_error_log_clear(dev); in edac_ecc_error_log_clear()
291 static inline int edac_parity_error_log_get(const struct device *dev, in edac_parity_error_log_get() argument
295 (const struct edac_driver_api *)dev->api; in edac_parity_error_log_get()
301 return api->parity_error_log_get(dev, value); in edac_parity_error_log_get()
314 static inline int edac_parity_error_log_clear(const struct device *dev) in edac_parity_error_log_clear() argument
317 (const struct edac_driver_api *)dev->api; in edac_parity_error_log_clear()
323 return api->parity_error_log_clear(dev); in edac_parity_error_log_clear()
334 static inline int edac_errors_cor_get(const struct device *dev) in edac_errors_cor_get() argument
337 (const struct edac_driver_api *)dev->api; in edac_errors_cor_get()
343 return api->errors_cor_get(dev); in edac_errors_cor_get()
354 static inline int edac_errors_uc_get(const struct device *dev) in edac_errors_uc_get() argument
357 (const struct edac_driver_api *)dev->api; in edac_errors_uc_get()
363 return api->errors_uc_get(dev); in edac_errors_uc_get()
377 static inline int edac_notify_callback_set(const struct device *dev, in edac_notify_callback_set() argument
380 const struct edac_driver_api *api = dev->api; in edac_notify_callback_set()
386 return api->notify_cb_set(dev, cb); in edac_notify_callback_set()