Lines Matching refs:devlink

24 struct devlink;
104 struct devlink *devlink; member
125 struct devlink *devlink; member
483 int (*get)(struct devlink *devlink, u32 id,
485 int (*set)(struct devlink *devlink, u32 id,
488 int (*validate)(struct devlink *devlink, u32 id,
676 int (*snapshot)(struct devlink *devlink,
680 int (*read)(struct devlink *devlink,
1278 int (*reload_down)(struct devlink *devlink, bool netns_change,
1282 int (*reload_up)(struct devlink *devlink, enum devlink_reload_action action,
1285 int (*sb_pool_get)(struct devlink *devlink, unsigned int sb_index,
1288 int (*sb_pool_set)(struct devlink *devlink, unsigned int sb_index,
1309 int (*sb_occ_snapshot)(struct devlink *devlink,
1311 int (*sb_occ_max_clear)(struct devlink *devlink,
1322 int (*eswitch_mode_get)(struct devlink *devlink, u16 *p_mode);
1323 int (*eswitch_mode_set)(struct devlink *devlink, u16 mode,
1325 int (*eswitch_inline_mode_get)(struct devlink *devlink, u8 *p_inline_mode);
1326 int (*eswitch_inline_mode_set)(struct devlink *devlink, u8 inline_mode,
1328 int (*eswitch_encap_mode_get)(struct devlink *devlink,
1330 int (*eswitch_encap_mode_set)(struct devlink *devlink,
1333 int (*info_get)(struct devlink *devlink, struct devlink_info_req *req,
1342 int (*flash_update)(struct devlink *devlink,
1353 int (*trap_init)(struct devlink *devlink,
1361 void (*trap_fini)(struct devlink *devlink,
1366 int (*trap_action_set)(struct devlink *devlink,
1376 int (*trap_group_init)(struct devlink *devlink,
1384 int (*trap_group_set)(struct devlink *devlink,
1394 int (*trap_group_action_set)(struct devlink *devlink,
1405 int (*trap_drop_counter_get)(struct devlink *devlink,
1414 int (*trap_policer_init)(struct devlink *devlink,
1422 void (*trap_policer_fini)(struct devlink *devlink,
1427 int (*trap_policer_set)(struct devlink *devlink,
1437 int (*trap_policer_counter_get)(struct devlink *devlink,
1456 int (*port_new)(struct devlink *devlink,
1500 bool (*selftest_check)(struct devlink *devlink, unsigned int id,
1511 (*selftest_run)(struct devlink *devlink, unsigned int id,
1515 void *devlink_priv(struct devlink *devlink);
1516 struct devlink *priv_to_devlink(void *priv);
1517 struct device *devlink_to_dev(const struct devlink *devlink);
1520 void devl_lock(struct devlink *devlink);
1521 int devl_trylock(struct devlink *devlink);
1522 void devl_unlock(struct devlink *devlink);
1523 void devl_assert_locked(struct devlink *devlink);
1524 bool devl_lock_is_held(struct devlink *devlink);
1528 struct net *devlink_net(const struct devlink *devlink);
1534 struct devlink *devlink_alloc_ns(const struct devlink_ops *ops,
1537 static inline struct devlink *devlink_alloc(const struct devlink_ops *ops, in devlink_alloc()
1544 int devl_register(struct devlink *devlink);
1545 void devl_unregister(struct devlink *devlink);
1546 void devlink_register(struct devlink *devlink);
1547 void devlink_unregister(struct devlink *devlink);
1548 void devlink_free(struct devlink *devlink);
1621 int (*port_split)(struct devlink *devlink, struct devlink_port *port,
1623 int (*port_unsplit)(struct devlink *devlink, struct devlink_port *port,
1627 int (*port_del)(struct devlink *devlink, struct devlink_port *port,
1673 void devlink_port_init(struct devlink *devlink,
1677 int devl_port_register_with_ops(struct devlink *devlink,
1682 static inline int devl_port_register(struct devlink *devlink, in devl_port_register() argument
1686 return devl_port_register_with_ops(devlink, devlink_port, in devl_port_register()
1690 int devlink_port_register_with_ops(struct devlink *devlink,
1695 static inline int devlink_port_register(struct devlink *devlink, in devlink_port_register() argument
1699 return devlink_port_register_with_ops(devlink, devlink_port, in devlink_port_register()
1719 struct devlink *fn_devlink);
1721 devl_rate_node_create(struct devlink *devlink, void *priv, char *node_name,
1727 void devl_rate_nodes_destroy(struct devlink *devlink);
1731 devl_linecard_create(struct devlink *devlink, unsigned int linecard_index,
1741 struct devlink *nested_devlink);
1742 int devl_sb_register(struct devlink *devlink, unsigned int sb_index,
1746 int devlink_sb_register(struct devlink *devlink, unsigned int sb_index,
1750 void devl_sb_unregister(struct devlink *devlink, unsigned int sb_index);
1751 void devlink_sb_unregister(struct devlink *devlink, unsigned int sb_index);
1752 int devl_dpipe_table_register(struct devlink *devlink,
1756 void devl_dpipe_table_unregister(struct devlink *devlink,
1758 void devl_dpipe_headers_register(struct devlink *devlink,
1760 void devl_dpipe_headers_unregister(struct devlink *devlink);
1761 bool devlink_dpipe_table_counter_enabled(struct devlink *devlink,
1776 int devl_resource_register(struct devlink *devlink,
1782 int devlink_resource_register(struct devlink *devlink,
1788 void devl_resources_unregister(struct devlink *devlink);
1789 void devlink_resources_unregister(struct devlink *devlink);
1790 int devl_resource_size_get(struct devlink *devlink,
1793 int devl_dpipe_table_resource_set(struct devlink *devlink,
1796 void devl_resource_occ_get_register(struct devlink *devlink,
1800 void devlink_resource_occ_get_register(struct devlink *devlink,
1804 void devl_resource_occ_get_unregister(struct devlink *devlink,
1807 void devlink_resource_occ_get_unregister(struct devlink *devlink,
1809 int devl_params_register(struct devlink *devlink,
1812 int devlink_params_register(struct devlink *devlink,
1815 void devl_params_unregister(struct devlink *devlink,
1818 void devlink_params_unregister(struct devlink *devlink,
1821 int devl_param_driverinit_value_get(struct devlink *devlink, u32 param_id,
1823 void devl_param_driverinit_value_set(struct devlink *devlink, u32 param_id,
1825 void devl_param_value_changed(struct devlink *devlink, u32 param_id);
1826 struct devlink_region *devl_region_create(struct devlink *devlink,
1831 devlink_region_create(struct devlink *devlink,
1840 int devlink_region_snapshot_id_get(struct devlink *devlink, u32 *id);
1841 void devlink_region_snapshot_id_put(struct devlink *devlink, u32 id);
1916 devl_health_reporter_create(struct devlink *devlink,
1921 devlink_health_reporter_create(struct devlink *devlink,
1941 int devl_nested_devlink_set(struct devlink *devlink,
1942 struct devlink *nested_devlink);
1943 bool devlink_is_reload_failed(const struct devlink *devlink);
1944 void devlink_remote_reload_actions_performed(struct devlink *devlink,
1948 void devlink_flash_update_status_notify(struct devlink *devlink,
1953 void devlink_flash_update_timeout_notify(struct devlink *devlink,
1958 int devl_traps_register(struct devlink *devlink,
1961 int devlink_traps_register(struct devlink *devlink,
1964 void devl_traps_unregister(struct devlink *devlink,
1967 void devlink_traps_unregister(struct devlink *devlink,
1970 void devlink_trap_report(struct devlink *devlink, struct sk_buff *skb,
1974 int devl_trap_groups_register(struct devlink *devlink,
1977 int devlink_trap_groups_register(struct devlink *devlink,
1980 void devl_trap_groups_unregister(struct devlink *devlink,
1983 void devlink_trap_groups_unregister(struct devlink *devlink,
1987 devl_trap_policers_register(struct devlink *devlink,
1991 devl_trap_policers_unregister(struct devlink *devlink,
1997 struct devlink *__must_check devlink_try_get(struct devlink *devlink);
1998 void devlink_put(struct devlink *devlink);
2000 void devlink_compat_running_version(struct devlink *devlink,
2002 int devlink_compat_flash_update(struct devlink *devlink, const char *file_name);
2013 static inline struct devlink *devlink_try_get(struct devlink *devlink) in devlink_try_get() argument
2018 static inline void devlink_put(struct devlink *devlink) in devlink_put() argument
2023 devlink_compat_running_version(struct devlink *devlink, char *buf, size_t len) in devlink_compat_running_version() argument
2028 devlink_compat_flash_update(struct devlink *devlink, const char *file_name) in devlink_compat_flash_update() argument