Lines Matching refs:devlink
58 struct devlink *devlink; member
92 devlink_health_reporter_find_by_name(struct devlink *devlink, in devlink_health_reporter_find_by_name() argument
95 return __devlink_health_reporter_find_by_name(&devlink->reporter_list, in devlink_health_reporter_find_by_name()
108 __devlink_health_reporter_create(struct devlink *devlink, in __devlink_health_reporter_create() argument
123 reporter->devlink = devlink; in __devlink_health_reporter_create()
146 devl_assert_locked(port->devlink); in devl_port_health_reporter_create()
152 reporter = __devlink_health_reporter_create(port->devlink, ops, in devl_port_health_reporter_create()
169 struct devlink *devlink = port->devlink; in devlink_port_health_reporter_create() local
171 devl_lock(devlink); in devlink_port_health_reporter_create()
174 devl_unlock(devlink); in devlink_port_health_reporter_create()
188 devl_health_reporter_create(struct devlink *devlink, in devl_health_reporter_create() argument
194 devl_assert_locked(devlink); in devl_health_reporter_create()
196 if (devlink_health_reporter_find_by_name(devlink, ops->name)) in devl_health_reporter_create()
199 reporter = __devlink_health_reporter_create(devlink, ops, in devl_health_reporter_create()
204 list_add_tail(&reporter->list, &devlink->reporter_list); in devl_health_reporter_create()
210 devlink_health_reporter_create(struct devlink *devlink, in devlink_health_reporter_create() argument
216 devl_lock(devlink); in devlink_health_reporter_create()
217 reporter = devl_health_reporter_create(devlink, ops, in devlink_health_reporter_create()
219 devl_unlock(devlink); in devlink_health_reporter_create()
240 devl_assert_locked(reporter->devlink); in devl_health_reporter_destroy()
250 struct devlink *devlink = reporter->devlink; in devlink_health_reporter_destroy() local
252 devl_lock(devlink); in devlink_health_reporter_destroy()
254 devl_unlock(devlink); in devlink_health_reporter_destroy()
264 struct devlink *devlink = reporter->devlink; in devlink_nl_health_reporter_fill() local
272 if (devlink_nl_put_handle(msg, devlink)) in devlink_nl_health_reporter_fill()
330 devlink_health_reporter_get_from_attrs(struct devlink *devlink, in devlink_health_reporter_get_from_attrs() argument
340 devlink_port = devlink_port_get_from_attrs(devlink, attrs); in devlink_health_reporter_get_from_attrs()
342 return devlink_health_reporter_find_by_name(devlink, in devlink_health_reporter_get_from_attrs()
350 devlink_health_reporter_get_from_info(struct devlink *devlink, in devlink_health_reporter_get_from_info() argument
353 return devlink_health_reporter_get_from_attrs(devlink, info->attrs); in devlink_health_reporter_get_from_info()
359 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_health_reporter_get_doit() local
364 reporter = devlink_health_reporter_get_from_info(devlink, info); in devlink_nl_health_reporter_get_doit()
385 struct devlink *devlink, in devlink_nl_health_reporter_get_dump_one() argument
407 list_for_each_entry(reporter, &devlink->reporter_list, list) { in devlink_nl_health_reporter_get_dump_one()
424 xa_for_each_range(&devlink->ports, port_index, port, in devlink_nl_health_reporter_get_dump_one()
457 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_cmd_health_reporter_set_doit() local
460 reporter = devlink_health_reporter_get_from_info(devlink, info); in devlink_nl_cmd_health_reporter_set_doit()
491 struct devlink *devlink = reporter->devlink; in devlink_recover_notify() local
496 ASSERT_DEVLINK_REGISTERED(devlink); in devlink_recover_notify()
508 genlmsg_multicast_netns(&devlink_nl_family, devlink_net(devlink), msg, in devlink_recover_notify()
597 struct devlink *devlink = reporter->devlink; in devlink_health_report() local
603 trace_devlink_health_report(devlink, reporter->ops->name, msg); in devlink_health_report()
616 trace_devlink_health_recover_aborted(devlink, in devlink_health_report()
625 devl_lock(devlink); in devlink_health_report()
628 devl_unlock(devlink); in devlink_health_report()
634 devl_lock(devlink); in devlink_health_report()
636 devl_unlock(devlink); in devlink_health_report()
654 trace_devlink_health_reporter_state_update(reporter->devlink, in devlink_health_reporter_state_update()
663 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_cmd_health_reporter_recover_doit() local
666 reporter = devlink_health_reporter_get_from_info(devlink, info); in devlink_nl_cmd_health_reporter_recover_doit()
1225 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_cmd_health_reporter_diagnose_doit() local
1230 reporter = devlink_health_reporter_get_from_info(devlink, info); in devlink_nl_cmd_health_reporter_diagnose_doit()
1267 struct devlink *devlink; in devlink_health_reporter_get_from_cb_lock() local
1269 devlink = devlink_get_from_attrs_lock(sock_net(cb->skb->sk), attrs); in devlink_health_reporter_get_from_cb_lock()
1270 if (IS_ERR(devlink)) in devlink_health_reporter_get_from_cb_lock()
1273 reporter = devlink_health_reporter_get_from_attrs(devlink, attrs); in devlink_health_reporter_get_from_cb_lock()
1275 devl_unlock(devlink); in devlink_health_reporter_get_from_cb_lock()
1276 devlink_put(devlink); in devlink_health_reporter_get_from_cb_lock()
1286 struct devlink *devlink; in devlink_nl_cmd_health_reporter_dump_get_dumpit() local
1293 devlink = reporter->devlink; in devlink_nl_cmd_health_reporter_dump_get_dumpit()
1295 devl_unlock(devlink); in devlink_nl_cmd_health_reporter_dump_get_dumpit()
1296 devlink_put(devlink); in devlink_nl_cmd_health_reporter_dump_get_dumpit()
1315 devl_unlock(devlink); in devlink_nl_cmd_health_reporter_dump_get_dumpit()
1316 devlink_put(devlink); in devlink_nl_cmd_health_reporter_dump_get_dumpit()
1323 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_cmd_health_reporter_dump_clear_doit() local
1326 reporter = devlink_health_reporter_get_from_info(devlink, info); in devlink_nl_cmd_health_reporter_dump_clear_doit()
1340 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_cmd_health_reporter_test_doit() local
1343 reporter = devlink_health_reporter_get_from_info(devlink, info); in devlink_nl_cmd_health_reporter_test_doit()