Lines Matching +full:- +full:optional
4 * SPDX-License-Identifier: Apache-2.0
80 * @name Optional interfaces
83 * EDAC Optional Interfaces
94 * @retval -ENOSYS if the optional interface is not implemented
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()
104 return -ENOSYS; in edac_inject_set_param1()
107 return api->inject_set_param1(dev, value); in edac_inject_set_param1()
118 * @retval -ENOSYS if the optional interface is not implemented
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()
128 return -ENOSYS; in edac_inject_get_param1()
131 return api->inject_get_param1(dev, value); in edac_inject_get_param1()
143 * @retval -ENOSYS if the optional interface is not implemented
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()
153 return -ENOSYS; in edac_inject_set_param2()
156 return api->inject_set_param2(dev, value); in edac_inject_set_param2()
165 * @retval -ENOSYS if the optional interface is not implemented
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()
175 return -ENOSYS; in edac_inject_get_param2()
178 return api->inject_get_param2(dev, value); in edac_inject_get_param2()
189 * @retval -ENOSYS if the optional interface is not implemented
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()
199 return -ENOSYS; in edac_inject_set_error_type()
202 return api->inject_set_error_type(dev, error_type); in edac_inject_set_error_type()
213 * @retval -ENOSYS if the optional interface is not implemented
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()
223 return -ENOSYS; in edac_inject_get_error_type()
226 return api->inject_get_error_type(dev, error_type); in edac_inject_get_error_type()
236 * @retval -ENOSYS if the optional interface is not implemented
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()
245 return -ENOSYS; in edac_inject_error_trigger()
248 return api->inject_error_trigger(dev); in edac_inject_error_trigger()
251 /** @} */ /* End of EDAC Optional Interfaces */
269 * @retval -ENOSYS if the mandatory interface is not implemented
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()
278 return -ENOSYS; in edac_ecc_error_log_get()
281 return api->ecc_error_log_get(dev, value); in edac_ecc_error_log_get()
292 * @retval -ENOSYS if the mandatory interface is not implemented
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()
300 return -ENOSYS; in edac_ecc_error_log_clear()
303 return api->ecc_error_log_clear(dev); in edac_ecc_error_log_clear()
315 * @retval -ENOSYS if the mandatory interface is not implemented
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()
324 return -ENOSYS; in edac_parity_error_log_get()
327 return api->parity_error_log_get(dev, value); in edac_parity_error_log_get()
338 * @retval -ENOSYS if the mandatory interface is not implemented
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()
346 return -ENOSYS; in edac_parity_error_log_clear()
349 return api->parity_error_log_clear(dev); in edac_parity_error_log_clear()
358 * @retval -ENOSYS if the mandatory interface is not implemented
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()
366 return -ENOSYS; in edac_errors_cor_get()
369 return api->errors_cor_get(dev); in edac_errors_cor_get()
378 * @retval -ENOSYS if the mandatory interface is not implemented
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()
386 return -ENOSYS; in edac_errors_uc_get()
389 return api->errors_uc_get(dev); in edac_errors_uc_get()
401 * @retval -ENOSYS if the mandatory interface is not implemented
406 const struct edac_driver_api *api = (const struct edac_driver_api *)dev->api; in edac_notify_callback_set()
408 if (api->notify_cb_set == NULL) { in edac_notify_callback_set()
409 return -ENOSYS; in edac_notify_callback_set()
412 return api->notify_cb_set(dev, cb); in edac_notify_callback_set()