Lines Matching refs:devlink
8 static int hclge_devlink_scc_info_get(struct devlink *devlink, in hclge_devlink_scc_info_get() argument
11 struct hclge_devlink_priv *priv = devlink_priv(devlink); in hclge_devlink_scc_info_get()
36 static int hclge_devlink_info_get(struct devlink *devlink, in hclge_devlink_info_get() argument
41 struct hclge_devlink_priv *priv = devlink_priv(devlink); in hclge_devlink_info_get()
65 ret = hclge_devlink_scc_info_get(devlink, req); in hclge_devlink_info_get()
70 static int hclge_devlink_reload_down(struct devlink *devlink, bool netns_change, in hclge_devlink_reload_down() argument
75 struct hclge_devlink_priv *priv = devlink_priv(devlink); in hclge_devlink_reload_down()
104 static int hclge_devlink_reload_up(struct devlink *devlink, in hclge_devlink_reload_up() argument
110 struct hclge_devlink_priv *priv = devlink_priv(devlink); in hclge_devlink_reload_up()
144 struct devlink *devlink; in hclge_devlink_init() local
146 devlink = devlink_alloc(&hclge_devlink_ops, in hclge_devlink_init()
148 if (!devlink) in hclge_devlink_init()
151 priv = devlink_priv(devlink); in hclge_devlink_init()
153 hdev->devlink = devlink; in hclge_devlink_init()
155 devlink_register(devlink); in hclge_devlink_init()
161 struct devlink *devlink = hdev->devlink; in hclge_devlink_uninit() local
163 devlink_unregister(devlink); in hclge_devlink_uninit()
165 devlink_free(devlink); in hclge_devlink_uninit()