Lines Matching refs:dev

43 typedef void (*edac_notify_callback_f)(const struct device *dev, void *data);
52 int (*inject_set_param1)(const struct device *dev, uint64_t value);
53 int (*inject_get_param1)(const struct device *dev, uint64_t *value);
54 int (*inject_set_param2)(const struct device *dev, uint64_t value);
55 int (*inject_get_param2)(const struct device *dev, uint64_t *value);
56 int (*inject_set_error_type)(const struct device *dev, uint32_t value);
57 int (*inject_get_error_type)(const struct device *dev, uint32_t *value);
58 int (*inject_error_trigger)(const struct device *dev);
61 int (*ecc_error_log_get)(const struct device *dev, uint64_t *value);
62 int (*ecc_error_log_clear)(const struct device *dev);
63 int (*parity_error_log_get)(const struct device *dev, uint64_t *value);
64 int (*parity_error_log_clear)(const struct device *dev);
67 int (*errors_cor_get)(const struct device *dev);
68 int (*errors_uc_get)(const struct device *dev);
71 int (*notify_cb_set)(const struct device *dev,
97 static inline int edac_inject_set_param1(const struct device *dev, in edac_inject_set_param1() argument
101 (const struct edac_driver_api *)dev->api; in edac_inject_set_param1()
107 return api->inject_set_param1(dev, value); in edac_inject_set_param1()
121 static inline int edac_inject_get_param1(const struct device *dev, in edac_inject_get_param1() argument
125 (const struct edac_driver_api *)dev->api; in edac_inject_get_param1()
131 return api->inject_get_param1(dev, value); in edac_inject_get_param1()
146 static inline int edac_inject_set_param2(const struct device *dev, in edac_inject_set_param2() argument
150 (const struct edac_driver_api *)dev->api; in edac_inject_set_param2()
156 return api->inject_set_param2(dev, value); in edac_inject_set_param2()
168 static inline int edac_inject_get_param2(const struct device *dev, in edac_inject_get_param2() argument
172 (const struct edac_driver_api *)dev->api; in edac_inject_get_param2()
178 return api->inject_get_param2(dev, value); in edac_inject_get_param2()
192 static inline int edac_inject_set_error_type(const struct device *dev, in edac_inject_set_error_type() argument
196 (const struct edac_driver_api *)dev->api; in edac_inject_set_error_type()
202 return api->inject_set_error_type(dev, error_type); in edac_inject_set_error_type()
216 static inline int edac_inject_get_error_type(const struct device *dev, in edac_inject_get_error_type() argument
220 (const struct edac_driver_api *)dev->api; in edac_inject_get_error_type()
226 return api->inject_get_error_type(dev, error_type); in edac_inject_get_error_type()
239 static inline int edac_inject_error_trigger(const struct device *dev) in edac_inject_error_trigger() argument
242 (const struct edac_driver_api *)dev->api; in edac_inject_error_trigger()
248 return api->inject_error_trigger(dev); in edac_inject_error_trigger()
271 static inline int edac_ecc_error_log_get(const struct device *dev, in edac_ecc_error_log_get() argument
275 (const struct edac_driver_api *)dev->api; in edac_ecc_error_log_get()
281 return api->ecc_error_log_get(dev, value); in edac_ecc_error_log_get()
294 static inline int edac_ecc_error_log_clear(const struct device *dev) in edac_ecc_error_log_clear() argument
297 (const struct edac_driver_api *)dev->api; in edac_ecc_error_log_clear()
303 return api->ecc_error_log_clear(dev); in edac_ecc_error_log_clear()
317 static inline int edac_parity_error_log_get(const struct device *dev, in edac_parity_error_log_get() argument
321 (const struct edac_driver_api *)dev->api; in edac_parity_error_log_get()
327 return api->parity_error_log_get(dev, value); in edac_parity_error_log_get()
340 static inline int edac_parity_error_log_clear(const struct device *dev) in edac_parity_error_log_clear() argument
343 (const struct edac_driver_api *)dev->api; in edac_parity_error_log_clear()
349 return api->parity_error_log_clear(dev); in edac_parity_error_log_clear()
360 static inline int edac_errors_cor_get(const struct device *dev) in edac_errors_cor_get() argument
363 (const struct edac_driver_api *)dev->api; in edac_errors_cor_get()
369 return api->errors_cor_get(dev); in edac_errors_cor_get()
380 static inline int edac_errors_uc_get(const struct device *dev) in edac_errors_uc_get() argument
383 (const struct edac_driver_api *)dev->api; in edac_errors_uc_get()
389 return api->errors_uc_get(dev); in edac_errors_uc_get()
403 static inline int edac_notify_callback_set(const struct device *dev, in edac_notify_callback_set() argument
406 const struct edac_driver_api *api = (const struct edac_driver_api *)dev->api; in edac_notify_callback_set()
412 return api->notify_cb_set(dev, cb); in edac_notify_callback_set()