Home
last modified time | relevance | path

Searched refs:devlink (Results 1 – 25 of 237) sorted by relevance

12345678910

/linux-6.12.1/net/devlink/
Dcore.c19 static struct devlink *devlinks_xa_get(unsigned long index) in devlinks_xa_get()
21 struct devlink *devlink; in devlinks_xa_get() local
24 devlink = xa_find(&devlinks, &index, index, DEVLINK_REGISTERED); in devlinks_xa_get()
25 if (!devlink || !devlink_try_get(devlink)) in devlinks_xa_get()
26 devlink = NULL; in devlinks_xa_get()
28 return devlink; in devlinks_xa_get()
74 struct devlink *devlink; in devlink_rel_nested_in_notify_work() local
76 devlink = devlinks_xa_get(rel->nested_in.devlink_index); in devlink_rel_nested_in_notify_work()
77 if (!devlink) in devlink_rel_nested_in_notify_work()
79 if (!devl_trylock(devlink)) { in devlink_rel_nested_in_notify_work()
[all …]
Ddevl_internal.h33 struct devlink { struct
89 #define devlinks_xa_for_each_registered_get(net, index, devlink) \ argument
90 for (index = 0; (devlink = devlinks_xa_find_get(net, &index)); index++)
92 struct devlink *devlinks_xa_find_get(struct net *net, unsigned long *indexp);
94 static inline bool __devl_is_registered(struct devlink *devlink) in __devl_is_registered() argument
96 return xa_get_mark(&devlinks, devlink->index, DEVLINK_REGISTERED); in __devl_is_registered()
99 static inline bool devl_is_registered(struct devlink *devlink) in devl_is_registered() argument
101 devl_assert_locked(devlink); in devl_is_registered()
102 return __devl_is_registered(devlink); in devl_is_registered()
105 static inline void devl_dev_lock(struct devlink *devlink, bool dev_lock) in devl_dev_lock() argument
[all …]
Ddev.c47 devlink_reload_action_is_supported(struct devlink *devlink, enum devlink_reload_action action) in devlink_reload_action_is_supported() argument
49 return test_bit(action, &devlink->ops->reload_actions); in devlink_reload_action_is_supported()
53 devlink_reload_limit_is_supported(struct devlink *devlink, enum devlink_reload_limit limit) in devlink_reload_limit_is_supported() argument
55 return test_bit(limit, &devlink->ops->reload_limits); in devlink_reload_limit_is_supported()
79 devlink_reload_stats_put(struct sk_buff *msg, struct devlink *devlink, bool is_remote) in devlink_reload_stats_put() argument
95 !devlink_reload_action_is_supported(devlink, i)) || in devlink_reload_stats_put()
115 !devlink_reload_limit_is_supported(devlink, j)) || in devlink_reload_stats_put()
121 value = devlink->stats.reload_stats[stat_idx]; in devlink_reload_stats_put()
123 value = devlink->stats.remote_reload_stats[stat_idx]; in devlink_reload_stats_put()
142 static int devlink_nl_nested_fill(struct sk_buff *msg, struct devlink *devlink) in devlink_nl_nested_fill() argument
[all …]
Dtrap.c73 devlink_trap_policer_item_lookup(struct devlink *devlink, u32 id) in devlink_trap_policer_item_lookup() argument
77 list_for_each_entry(policer_item, &devlink->trap_policer_list, list) { in devlink_trap_policer_item_lookup()
86 devlink_trap_item_lookup(struct devlink *devlink, const char *name) in devlink_trap_item_lookup() argument
90 list_for_each_entry(trap_item, &devlink->trap_list, list) { in devlink_trap_item_lookup()
99 devlink_trap_item_get_from_info(struct devlink *devlink, in devlink_trap_item_get_from_info() argument
108 return devlink_trap_item_lookup(devlink, nla_data(attr)); in devlink_trap_item_get_from_info()
211 static int devlink_trap_stats_put(struct sk_buff *msg, struct devlink *devlink, in devlink_trap_stats_put() argument
219 if (devlink->ops->trap_drop_counter_get) { in devlink_trap_stats_put()
220 err = devlink->ops->trap_drop_counter_get(devlink, in devlink_trap_stats_put()
233 if (devlink->ops->trap_drop_counter_get && in devlink_trap_stats_put()
[all …]
Dresource.c39 devlink_resource_find(struct devlink *devlink, in devlink_resource_find() argument
47 resource_list = &devlink->resource_list; in devlink_resource_find()
55 child_resource = devlink_resource_find(devlink, resource, in devlink_resource_find()
110 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_resource_set_doit() local
121 resource = devlink_resource_find(devlink, NULL, resource_id); in devlink_nl_resource_set_doit()
165 static int devlink_resource_put(struct devlink *devlink, struct sk_buff *skb, in devlink_resource_put() argument
203 if (devlink_resource_put(devlink, skb, child_resource)) in devlink_resource_put()
222 struct devlink *devlink = info->user_ptr[0]; in devlink_resource_fill() local
232 resource = list_first_entry(&devlink->resource_list, in devlink_resource_fill()
246 if (devlink_nl_put_handle(skb, devlink)) in devlink_resource_fill()
[all …]
Dsb.c24 static struct devlink_sb *devlink_sb_get_by_index(struct devlink *devlink, in devlink_sb_get_by_index() argument
29 list_for_each_entry(devlink_sb, &devlink->sb_list, list) { in devlink_sb_get_by_index()
36 static bool devlink_sb_index_exists(struct devlink *devlink, in devlink_sb_index_exists() argument
39 return devlink_sb_get_by_index(devlink, sb_index); in devlink_sb_index_exists()
42 static struct devlink_sb *devlink_sb_get_from_attrs(struct devlink *devlink, in devlink_sb_get_from_attrs() argument
49 devlink_sb = devlink_sb_get_by_index(devlink, sb_index); in devlink_sb_get_from_attrs()
57 static struct devlink_sb *devlink_sb_get_from_info(struct devlink *devlink, in devlink_sb_get_from_info() argument
60 return devlink_sb_get_from_attrs(devlink, info->attrs); in devlink_sb_get_from_info()
167 static int devlink_nl_sb_fill(struct sk_buff *msg, struct devlink *devlink, in devlink_nl_sb_fill() argument
178 if (devlink_nl_put_handle(msg, devlink)) in devlink_nl_sb_fill()
[all …]
Dregion.c10 struct devlink *devlink; member
35 devlink_region_get_by_name(struct devlink *devlink, const char *region_name) in devlink_region_get_by_name() argument
39 list_for_each_entry(region, &devlink->region_list, list) in devlink_region_get_by_name()
72 struct devlink *devlink, in devlink_nl_region_snapshot_id_put() argument
95 struct devlink *devlink, in devlink_nl_region_snapshots_id_put() argument
108 err = devlink_nl_region_snapshot_id_put(msg, devlink, snapshot); in devlink_nl_region_snapshots_id_put()
121 static int devlink_nl_region_fill(struct sk_buff *msg, struct devlink *devlink, in devlink_nl_region_fill() argument
133 err = devlink_nl_put_handle(msg, devlink); in devlink_nl_region_fill()
159 err = devlink_nl_region_snapshots_id_put(msg, devlink, region); in devlink_nl_region_fill()
176 struct devlink *devlink = region->devlink; in devlink_nl_region_notify_build() local
[all …]
Dparam.c150 static int devlink_param_get(struct devlink *devlink, in devlink_param_get() argument
156 return param->get(devlink, param->id, ctx); in devlink_param_get()
159 static int devlink_param_set(struct devlink *devlink, in devlink_param_set() argument
166 return param->set(devlink, param->id, ctx, extack); in devlink_param_set()
238 static int devlink_nl_param_fill(struct sk_buff *msg, struct devlink *devlink, in devlink_nl_param_fill() argument
268 err = devlink_param_get(devlink, param, &ctx); in devlink_nl_param_fill()
280 if (devlink_nl_put_handle(msg, devlink)) in devlink_nl_param_fill()
331 static void devlink_param_notify(struct devlink *devlink, in devlink_param_notify() argument
347 if (!devl_is_registered(devlink) || !devlink_nl_notify_need(devlink)) in devlink_param_notify()
353 err = devlink_nl_param_fill(msg, devlink, port_index, param_item, cmd, in devlink_param_notify()
[all …]
Drate.c22 devlink_rate_leaf_get_from_info(struct devlink *devlink, struct genl_info *info) in devlink_rate_leaf_get_from_info() argument
27 devlink_port = devlink_port_get_from_attrs(devlink, info->attrs); in devlink_rate_leaf_get_from_info()
35 devlink_rate_node_get_by_name(struct devlink *devlink, const char *node_name) in devlink_rate_node_get_by_name() argument
39 list_for_each_entry(devlink_rate, &devlink->rate_list, list) { in devlink_rate_node_get_by_name()
48 devlink_rate_node_get_from_attrs(struct devlink *devlink, struct nlattr **attrs) in devlink_rate_node_get_from_attrs() argument
61 return devlink_rate_node_get_by_name(devlink, rate_node_name); in devlink_rate_node_get_from_attrs()
65 devlink_rate_node_get_from_info(struct devlink *devlink, struct genl_info *info) in devlink_rate_node_get_from_info() argument
67 return devlink_rate_node_get_from_attrs(devlink, info->attrs); in devlink_rate_node_get_from_info()
71 devlink_rate_get_from_info(struct devlink *devlink, struct genl_info *info) in devlink_rate_get_from_info() argument
76 return devlink_rate_leaf_get_from_info(devlink, info); in devlink_rate_get_from_info()
[all …]
Dnetlink.c134 struct devlink *devlink, int attrtype) in devlink_nl_put_nested_handle() argument
142 if (devlink_nl_put_handle(msg, devlink)) in devlink_nl_put_nested_handle()
146 devl_net = read_pnet_rcu(&devlink->_net); in devlink_nl_put_nested_handle()
180 struct devlink *
184 struct devlink *devlink; in devlink_get_from_attrs_lock() local
195 devlinks_xa_for_each_registered_get(net, index, devlink) { in devlink_get_from_attrs_lock()
196 if (strcmp(devlink->dev->bus->name, busname) == 0 && in devlink_get_from_attrs_lock()
197 strcmp(dev_name(devlink->dev), devname) == 0) { in devlink_get_from_attrs_lock()
198 devl_dev_lock(devlink, dev_lock); in devlink_get_from_attrs_lock()
199 if (devl_is_registered(devlink)) in devlink_get_from_attrs_lock()
[all …]
Dlinecard.c11 struct devlink *devlink; member
29 devlink_linecard_get_by_index(struct devlink *devlink, in devlink_linecard_get_by_index() argument
34 list_for_each_entry(devlink_linecard, &devlink->linecard_list, list) { in devlink_linecard_get_by_index()
41 static bool devlink_linecard_index_exists(struct devlink *devlink, in devlink_linecard_index_exists() argument
44 return devlink_linecard_get_by_index(devlink, linecard_index); in devlink_linecard_index_exists()
48 devlink_linecard_get_from_attrs(struct devlink *devlink, struct nlattr **attrs) in devlink_linecard_get_from_attrs() argument
54 linecard = devlink_linecard_get_by_index(devlink, linecard_index); in devlink_linecard_get_from_attrs()
63 devlink_linecard_get_from_info(struct devlink *devlink, struct genl_info *info) in devlink_linecard_get_from_info() argument
65 return devlink_linecard_get_from_attrs(devlink, info->attrs); in devlink_linecard_get_from_info()
74 struct devlink *devlink, in devlink_nl_linecard_fill() argument
[all …]
Dhealth.c59 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()
[all …]
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/
Ddevlink.c14 static int mlx5_devlink_flash_update(struct devlink *devlink, in mlx5_devlink_flash_update() argument
18 struct mlx5_core_dev *dev = devlink_priv(devlink); in mlx5_devlink_flash_update()
41 mlx5_devlink_info_get(struct devlink *devlink, struct devlink_info_req *req, in mlx5_devlink_info_get() argument
44 struct mlx5_core_dev *dev = devlink_priv(devlink); in mlx5_devlink_info_get()
84 static int mlx5_devlink_reload_fw_activate(struct devlink *devlink, struct netlink_ext_ack *extack) in mlx5_devlink_reload_fw_activate() argument
86 struct mlx5_core_dev *dev = devlink_priv(devlink); in mlx5_devlink_reload_fw_activate()
115 static int mlx5_devlink_trigger_fw_live_patch(struct devlink *devlink, in mlx5_devlink_trigger_fw_live_patch() argument
118 struct mlx5_core_dev *dev = devlink_priv(devlink); in mlx5_devlink_trigger_fw_live_patch()
134 static int mlx5_devlink_reload_down(struct devlink *devlink, bool netns_change, in mlx5_devlink_reload_down() argument
139 struct mlx5_core_dev *dev = devlink_priv(devlink); in mlx5_devlink_reload_down()
[all …]
/linux-6.12.1/include/net/
Ddevlink.h24 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,
[all …]
/linux-6.12.1/include/trace/events/
Ddevlink.h5 #define TRACE_SYSTEM devlink
18 TP_PROTO(const struct devlink *devlink, bool incoming,
21 TP_ARGS(devlink, incoming, type, buf, len),
24 __string(bus_name, devlink_to_dev(devlink)->bus->name)
25 __string(dev_name, dev_name(devlink_to_dev(devlink)))
26 __string(driver_name, devlink_to_dev(devlink)->driver->name)
53 TP_PROTO(const struct devlink *devlink, int err, const char *msg),
55 TP_ARGS(devlink, err, msg),
58 __string(bus_name, devlink_to_dev(devlink)->bus->name)
59 __string(dev_name, dev_name(devlink_to_dev(devlink)))
[all …]
/linux-6.12.1/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_devlink.c8 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
[all …]
/linux-6.12.1/drivers/net/ethernet/hisilicon/hns3/hns3vf/
Dhclgevf_devlink.c8 static int hclgevf_devlink_info_get(struct devlink *devlink, in hclgevf_devlink_info_get() argument
13 struct hclgevf_devlink_priv *priv = devlink_priv(devlink); in hclgevf_devlink_info_get()
32 static int hclgevf_devlink_reload_down(struct devlink *devlink, in hclgevf_devlink_reload_down() argument
38 struct hclgevf_devlink_priv *priv = devlink_priv(devlink); in hclgevf_devlink_reload_down()
67 static int hclgevf_devlink_reload_up(struct devlink *devlink, in hclgevf_devlink_reload_up() argument
73 struct hclgevf_devlink_priv *priv = devlink_priv(devlink); in hclgevf_devlink_reload_up()
107 struct devlink *devlink; in hclgevf_devlink_init() local
109 devlink = in hclgevf_devlink_init()
112 if (!devlink) in hclgevf_devlink_init()
115 priv = devlink_priv(devlink); in hclgevf_devlink_init()
[all …]
/linux-6.12.1/drivers/net/netdevsim/
Ddev.c78 nsim_dev_take_snapshot(struct devlink *devlink, in nsim_dev_take_snapshot() argument
101 struct devlink *devlink; in nsim_dev_take_snapshot_write() local
106 devlink = priv_to_devlink(nsim_dev); in nsim_dev_take_snapshot_write()
108 err = nsim_dev_take_snapshot(devlink, NULL, NULL, &dummy_data); in nsim_dev_take_snapshot_write()
112 err = devlink_region_snapshot_id_get(devlink, &id); in nsim_dev_take_snapshot_write()
120 devlink_region_snapshot_id_put(devlink, id); in nsim_dev_take_snapshot_write()
429 static int nsim_dev_resources_register(struct devlink *devlink) in nsim_dev_resources_register() argument
439 err = devl_resource_register(devlink, "IPv4", (u64)-1, in nsim_dev_resources_register()
448 err = devl_resource_register(devlink, "fib", (u64)-1, in nsim_dev_resources_register()
456 err = devl_resource_register(devlink, "fib-rules", (u64)-1, in nsim_dev_resources_register()
[all …]
/linux-6.12.1/Documentation/networking/devlink/
Dindex.rst4 devlink is an API to expose device information and resources not directly
13 in devlink core, but don't allow registration of most sub-objects once
14 the main devlink object is itself registered. The newer ``devl_*`` APIs assume
15 the devlink instance lock is already held. Drivers can take the instance
16 lock by calling ``devl_lock()``. It is also held all callbacks of devlink
19 Drivers are encouraged to use the devlink instance lock for their own needs.
21 Drivers need to be cautious when taking devlink instance lock and
29 devlink instances created underneath. In that case, drivers should make
33 lock of both nested and parent instances at the same time, devlink
39 - ``devl_nested_devlink_set()`` - called to setup devlink -> nested
[all …]
/linux-6.12.1/tools/testing/selftests/net/forwarding/
Ddevlink_lib.sh11 DEVLINK_DEV=$(devlink port show "${NETIFS[p1]:-$NETIF_NO_CABLE}" -j \
25 devlink dev show $DEVLINK_DEV &> /dev/null
35 devlink help 2>&1 | grep resource &> /dev/null
41 devlink help 2>&1 | grep trap &> /dev/null
47 devlink dev help 2>&1 | grep info &> /dev/null
85 devlink -j resource show "$DEVLINK_DEV" | jq "$resource_name"
106 devlink resource set "$DEVLINK_DEV" path "$path" size "$new_size"
119 devlink dev reload "$DEVLINK_DEV" &> /dev/null
122 still_pending=$(devlink resource show "$DEVLINK_DEV" | \
142 devlink sb port pool show $port pool $pool -j \
[all …]
/linux-6.12.1/tools/testing/selftests/drivers/net/netdevsim/
Ddevlink.sh29 busywait "$timeout" wait_for_devlink devlink dev
43 devlink dev flash $DL_HANDLE file $DUMMYFILE
46 devlink dev flash $DL_HANDLE file $DUMMYFILE component fw.mgmt
49 devlink dev flash $DL_HANDLE file $DUMMYFILE overwrite settings
55 devlink dev flash $DL_HANDLE file $DUMMYFILE overwrite settings
58 devlink dev flash $DL_HANDLE file $DUMMYFILE overwrite identifiers
64 devlink dev flash $DL_HANDLE file $DUMMYFILE overwrite identifiers overwrite settings
70 devlink dev flash $DL_HANDLE file $DUMMYFILE
89 devlink dev param set $DL_HANDLE name $name cmode driverinit value $value
128 devlink dev reload $DL_HANDLE
[all …]
/linux-6.12.1/drivers/net/ethernet/qlogic/qed/
Dqed_devlink.c22 int qed_report_fatal_error(struct devlink *devlink, enum qed_hw_err_type err_type) in qed_report_fatal_error() argument
24 struct qed_devlink *qdl = devlink_priv(devlink); in qed_report_fatal_error()
98 void qed_fw_reporters_create(struct devlink *devlink) in qed_fw_reporters_create() argument
100 struct qed_devlink *dl = devlink_priv(devlink); in qed_fw_reporters_create()
102 dl->fw_reporter = devlink_health_reporter_create(devlink, &qed_fw_fatal_reporter_ops, in qed_fw_reporters_create()
111 void qed_fw_reporters_destroy(struct devlink *devlink) in qed_fw_reporters_destroy() argument
113 struct qed_devlink *dl = devlink_priv(devlink); in qed_fw_reporters_destroy()
122 static int qed_dl_param_get(struct devlink *dl, u32 id, in qed_dl_param_get()
134 static int qed_dl_param_set(struct devlink *dl, u32 id, in qed_dl_param_set()
154 static int qed_devlink_info_get(struct devlink *devlink, in qed_devlink_info_get() argument
[all …]
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/en/
Ddevlink.c14 struct devlink *devlink; in mlx5e_create_devlink() local
17 devlink = devlink_alloc_ns(&mlx5e_devlink_ops, sizeof(*mlx5e_dev), in mlx5e_create_devlink()
19 if (!devlink) in mlx5e_create_devlink()
22 err = devl_nested_devlink_set(priv_to_devlink(mdev), devlink); in mlx5e_create_devlink()
24 devlink_free(devlink); in mlx5e_create_devlink()
28 devlink_register(devlink); in mlx5e_create_devlink()
29 return devlink_priv(devlink); in mlx5e_create_devlink()
34 struct devlink *devlink = priv_to_devlink(mlx5e_dev); in mlx5e_destroy_devlink() local
36 devlink_unregister(devlink); in mlx5e_destroy_devlink()
37 devlink_free(devlink); in mlx5e_destroy_devlink()
[all …]
/linux-6.12.1/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_devlink.c10 static int otx2_dl_mcam_count_validate(struct devlink *devlink, u32 id, in otx2_dl_mcam_count_validate() argument
14 struct otx2_devlink *otx2_dl = devlink_priv(devlink); in otx2_dl_mcam_count_validate()
34 static int otx2_dl_mcam_count_set(struct devlink *devlink, u32 id, in otx2_dl_mcam_count_set() argument
38 struct otx2_devlink *otx2_dl = devlink_priv(devlink); in otx2_dl_mcam_count_set()
49 static int otx2_dl_mcam_count_get(struct devlink *devlink, u32 id, in otx2_dl_mcam_count_get() argument
52 struct otx2_devlink *otx2_dl = devlink_priv(devlink); in otx2_dl_mcam_count_get()
67 static int otx2_dl_ucast_flt_cnt_set(struct devlink *devlink, u32 id, in otx2_dl_ucast_flt_cnt_set() argument
71 struct otx2_devlink *otx2_dl = devlink_priv(devlink); in otx2_dl_ucast_flt_cnt_set()
85 static int otx2_dl_ucast_flt_cnt_get(struct devlink *devlink, u32 id, in otx2_dl_ucast_flt_cnt_get() argument
88 struct otx2_devlink *otx2_dl = devlink_priv(devlink); in otx2_dl_ucast_flt_cnt_get()
[all …]
/linux-6.12.1/drivers/net/wwan/iosm/
Diosm_ipc_coredump.c18 int ipc_coredump_collect(struct iosm_devlink *devlink, u8 **data, int entry, in ipc_coredump_collect() argument
29 remaining = devlink->cd_file_info[entry].actual_size; in ipc_coredump_collect()
30 ret = ipc_devlink_send_cmd(devlink, rpsi_cmd_coredump_get, entry); in ipc_coredump_collect()
32 dev_err(devlink->dev, "Send coredump_get cmd failed"); in ipc_coredump_collect()
38 ret = ipc_imem_sys_devlink_read(devlink, data_ptr + i, in ipc_coredump_collect()
41 dev_err(devlink->dev, "CD data read failed"); in ipc_coredump_collect()
64 int ipc_coredump_get_list(struct iosm_devlink *devlink, u16 cmd) in ipc_coredump_get_list() argument
78 ret = ipc_devlink_send_cmd(devlink, cmd, MAX_CD_LIST_SIZE); in ipc_coredump_get_list()
80 dev_err(devlink->dev, "rpsi_cmd_coredump_start failed"); in ipc_coredump_get_list()
84 ret = ipc_imem_sys_devlink_read(devlink, (u8 *)cd_table, in ipc_coredump_get_list()
[all …]

12345678910