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()
331 devlink_health_reporter_get_from_attrs(struct devlink *devlink, in devlink_health_reporter_get_from_attrs() argument
341 devlink_port = devlink_port_get_from_attrs(devlink, attrs); in devlink_health_reporter_get_from_attrs()
343 return devlink_health_reporter_find_by_name(devlink, in devlink_health_reporter_get_from_attrs()
351 devlink_health_reporter_get_from_info(struct devlink *devlink, in devlink_health_reporter_get_from_info() argument
354 return devlink_health_reporter_get_from_attrs(devlink, info->attrs); in devlink_health_reporter_get_from_info()
360 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_health_reporter_get_doit() local
365 reporter = devlink_health_reporter_get_from_info(devlink, info); in devlink_nl_health_reporter_get_doit()
386 struct devlink *devlink, in devlink_nl_health_reporter_get_dump_one() argument
408 list_for_each_entry(reporter, &devlink->reporter_list, list) { in devlink_nl_health_reporter_get_dump_one()
425 xa_for_each_range(&devlink->ports, port_index, port, in devlink_nl_health_reporter_get_dump_one()
458 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_health_reporter_set_doit() local
461 reporter = devlink_health_reporter_get_from_info(devlink, info); in devlink_nl_health_reporter_set_doit()
492 struct devlink *devlink = reporter->devlink; in devlink_recover_notify() local
498 ASSERT_DEVLINK_REGISTERED(devlink); in devlink_recover_notify()
500 if (!devlink_nl_notify_need(devlink)) in devlink_recover_notify()
513 devlink_nl_obj_desc_init(&desc, devlink); in devlink_recover_notify()
516 devlink_nl_notify_send_desc(devlink, msg, &desc); in devlink_recover_notify()
601 struct devlink *devlink = reporter->devlink; in devlink_health_report() local
607 trace_devlink_health_report(devlink, reporter->ops->name, msg); in devlink_health_report()
620 trace_devlink_health_recover_aborted(devlink, in devlink_health_report()
629 devl_lock(devlink); in devlink_health_report()
632 devl_unlock(devlink); in devlink_health_report()
638 devl_lock(devlink); in devlink_health_report()
640 devl_unlock(devlink); in devlink_health_report()
658 trace_devlink_health_reporter_state_update(reporter->devlink, in devlink_health_reporter_state_update()
667 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_health_reporter_recover_doit() local
670 reporter = devlink_health_reporter_get_from_info(devlink, info); in devlink_nl_health_reporter_recover_doit()
1120 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_health_reporter_diagnose_doit() local
1125 reporter = devlink_health_reporter_get_from_info(devlink, info); in devlink_nl_health_reporter_diagnose_doit()
1158 struct devlink *devlink; in devlink_health_reporter_get_from_cb_lock() local
1160 devlink = devlink_get_from_attrs_lock(sock_net(cb->skb->sk), attrs, in devlink_health_reporter_get_from_cb_lock()
1162 if (IS_ERR(devlink)) in devlink_health_reporter_get_from_cb_lock()
1165 reporter = devlink_health_reporter_get_from_attrs(devlink, attrs); in devlink_health_reporter_get_from_cb_lock()
1167 devl_unlock(devlink); in devlink_health_reporter_get_from_cb_lock()
1168 devlink_put(devlink); in devlink_health_reporter_get_from_cb_lock()
1178 struct devlink *devlink; in devlink_nl_health_reporter_dump_get_dumpit() local
1185 devlink = reporter->devlink; in devlink_nl_health_reporter_dump_get_dumpit()
1187 devl_unlock(devlink); in devlink_nl_health_reporter_dump_get_dumpit()
1188 devlink_put(devlink); in devlink_nl_health_reporter_dump_get_dumpit()
1207 devl_unlock(devlink); in devlink_nl_health_reporter_dump_get_dumpit()
1208 devlink_put(devlink); in devlink_nl_health_reporter_dump_get_dumpit()
1215 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_health_reporter_dump_clear_doit() local
1218 reporter = devlink_health_reporter_get_from_info(devlink, info); in devlink_nl_health_reporter_dump_clear_doit()
1232 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_health_reporter_test_doit() local
1235 reporter = devlink_health_reporter_get_from_info(devlink, info); in devlink_nl_health_reporter_test_doit()