Lines Matching refs:devlink

59 	struct devlink *devlink;  member
93 devlink_health_reporter_find_by_name(struct devlink *devlink, in devlink_health_reporter_find_by_name() argument
96 return __devlink_health_reporter_find_by_name(&devlink->reporter_list, in devlink_health_reporter_find_by_name()
109 __devlink_health_reporter_create(struct devlink *devlink, in __devlink_health_reporter_create() argument
124 reporter->devlink = devlink; in __devlink_health_reporter_create()
147 devl_assert_locked(port->devlink); in devl_port_health_reporter_create()
153 reporter = __devlink_health_reporter_create(port->devlink, ops, in devl_port_health_reporter_create()
170 struct devlink *devlink = port->devlink; in devlink_port_health_reporter_create() local
172 devl_lock(devlink); in devlink_port_health_reporter_create()
175 devl_unlock(devlink); in devlink_port_health_reporter_create()
189 devl_health_reporter_create(struct devlink *devlink, in devl_health_reporter_create() argument
195 devl_assert_locked(devlink); in devl_health_reporter_create()
197 if (devlink_health_reporter_find_by_name(devlink, ops->name)) in devl_health_reporter_create()
200 reporter = __devlink_health_reporter_create(devlink, ops, in devl_health_reporter_create()
205 list_add_tail(&reporter->list, &devlink->reporter_list); in devl_health_reporter_create()
211 devlink_health_reporter_create(struct devlink *devlink, in devlink_health_reporter_create() argument
217 devl_lock(devlink); in devlink_health_reporter_create()
218 reporter = devl_health_reporter_create(devlink, ops, in devlink_health_reporter_create()
220 devl_unlock(devlink); in devlink_health_reporter_create()
241 devl_assert_locked(reporter->devlink); in devl_health_reporter_destroy()
251 struct devlink *devlink = reporter->devlink; in devlink_health_reporter_destroy() local
253 devl_lock(devlink); in devlink_health_reporter_destroy()
255 devl_unlock(devlink); in devlink_health_reporter_destroy()
265 struct devlink *devlink = reporter->devlink; in devlink_nl_health_reporter_fill() local
273 if (devlink_nl_put_handle(msg, devlink)) in devlink_nl_health_reporter_fill()
329 devlink_health_reporter_get_from_attrs(struct devlink *devlink, in devlink_health_reporter_get_from_attrs() argument
339 devlink_port = devlink_port_get_from_attrs(devlink, attrs); in devlink_health_reporter_get_from_attrs()
341 return devlink_health_reporter_find_by_name(devlink, in devlink_health_reporter_get_from_attrs()
349 devlink_health_reporter_get_from_info(struct devlink *devlink, in devlink_health_reporter_get_from_info() argument
352 return devlink_health_reporter_get_from_attrs(devlink, info->attrs); in devlink_health_reporter_get_from_info()
358 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_health_reporter_get_doit() local
363 reporter = devlink_health_reporter_get_from_info(devlink, info); in devlink_nl_health_reporter_get_doit()
384 struct devlink *devlink, in devlink_nl_health_reporter_get_dump_one() argument
406 list_for_each_entry(reporter, &devlink->reporter_list, list) { in devlink_nl_health_reporter_get_dump_one()
423 xa_for_each_range(&devlink->ports, port_index, port, in devlink_nl_health_reporter_get_dump_one()
456 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_health_reporter_set_doit() local
459 reporter = devlink_health_reporter_get_from_info(devlink, info); in devlink_nl_health_reporter_set_doit()
490 struct devlink *devlink = reporter->devlink; in devlink_recover_notify() local
496 ASSERT_DEVLINK_REGISTERED(devlink); in devlink_recover_notify()
498 if (!devlink_nl_notify_need(devlink)) in devlink_recover_notify()
511 devlink_nl_obj_desc_init(&desc, devlink); in devlink_recover_notify()
514 devlink_nl_notify_send_desc(devlink, msg, &desc); in devlink_recover_notify()
599 struct devlink *devlink = reporter->devlink; in devlink_health_report() local
605 trace_devlink_health_report(devlink, reporter->ops->name, msg); in devlink_health_report()
618 trace_devlink_health_recover_aborted(devlink, in devlink_health_report()
627 devl_lock(devlink); in devlink_health_report()
630 devl_unlock(devlink); in devlink_health_report()
636 devl_lock(devlink); in devlink_health_report()
638 devl_unlock(devlink); in devlink_health_report()
656 trace_devlink_health_reporter_state_update(reporter->devlink, in devlink_health_reporter_state_update()
665 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_health_reporter_recover_doit() local
668 reporter = devlink_health_reporter_get_from_info(devlink, info); in devlink_nl_health_reporter_recover_doit()
1117 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_health_reporter_diagnose_doit() local
1122 reporter = devlink_health_reporter_get_from_info(devlink, info); in devlink_nl_health_reporter_diagnose_doit()
1155 struct devlink *devlink; in devlink_health_reporter_get_from_cb_lock() local
1157 devlink = devlink_get_from_attrs_lock(sock_net(cb->skb->sk), attrs, in devlink_health_reporter_get_from_cb_lock()
1159 if (IS_ERR(devlink)) in devlink_health_reporter_get_from_cb_lock()
1162 reporter = devlink_health_reporter_get_from_attrs(devlink, attrs); in devlink_health_reporter_get_from_cb_lock()
1164 devl_unlock(devlink); in devlink_health_reporter_get_from_cb_lock()
1165 devlink_put(devlink); in devlink_health_reporter_get_from_cb_lock()
1175 struct devlink *devlink; in devlink_nl_health_reporter_dump_get_dumpit() local
1182 devlink = reporter->devlink; in devlink_nl_health_reporter_dump_get_dumpit()
1184 devl_unlock(devlink); in devlink_nl_health_reporter_dump_get_dumpit()
1185 devlink_put(devlink); in devlink_nl_health_reporter_dump_get_dumpit()
1204 devl_unlock(devlink); in devlink_nl_health_reporter_dump_get_dumpit()
1205 devlink_put(devlink); in devlink_nl_health_reporter_dump_get_dumpit()
1212 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_health_reporter_dump_clear_doit() local
1215 reporter = devlink_health_reporter_get_from_info(devlink, info); in devlink_nl_health_reporter_dump_clear_doit()
1229 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_health_reporter_test_doit() local
1232 reporter = devlink_health_reporter_get_from_info(devlink, info); in devlink_nl_health_reporter_test_doit()