Home
last modified time | relevance | path

Searched refs:dump_ctx (Results 1 – 7 of 7) sorted by relevance

/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_dpipe.c193 struct devlink_dpipe_dump_ctx *dump_ctx) in mlxsw_sp_dpipe_table_erif_entries_dump() argument
217 err = devlink_dpipe_entry_ctx_prepare(dump_ctx); in mlxsw_sp_dpipe_table_erif_entries_dump()
230 err = devlink_dpipe_entry_ctx_append(dump_ctx, &entry); in mlxsw_sp_dpipe_table_erif_entries_dump()
242 devlink_dpipe_entry_ctx_close(dump_ctx); in mlxsw_sp_dpipe_table_erif_entries_dump()
540 struct devlink_dpipe_dump_ctx *dump_ctx, in mlxsw_sp_dpipe_table_host_entries_get() argument
554 err = devlink_dpipe_entry_ctx_prepare(dump_ctx); in mlxsw_sp_dpipe_table_host_entries_get()
584 err = devlink_dpipe_entry_ctx_append(dump_ctx, entry); in mlxsw_sp_dpipe_table_host_entries_get()
602 devlink_dpipe_entry_ctx_close(dump_ctx); in mlxsw_sp_dpipe_table_host_entries_get()
618 struct devlink_dpipe_dump_ctx *dump_ctx, in mlxsw_sp_dpipe_table_host_entries_dump() argument
642 counters_enabled, dump_ctx, in mlxsw_sp_dpipe_table_host_entries_dump()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/octeontx2/af/
Drvu.h39 struct dump_ctx { struct
53 struct dump_ctx npa_aura_ctx; argument
54 struct dump_ctx npa_pool_ctx;
55 struct dump_ctx nix_cq_ctx;
56 struct dump_ctx nix_rq_ctx;
57 struct dump_ctx nix_sq_ctx;
/kernel/linux/linux-5.10/drivers/net/wireguard/
Dnetlink.c96 struct dump_ctx { struct
103 #define DUMP_CTX(cb) ((struct dump_ctx *)(cb)->args) argument
106 get_peer(struct wg_peer *peer, struct sk_buff *skb, struct dump_ctx *ctx) in get_peer()
213 struct dump_ctx *ctx = DUMP_CTX(cb); in wg_get_device_dump()
306 struct dump_ctx *ctx = DUMP_CTX(cb); in wg_get_device_done()
/kernel/linux/linux-5.10/drivers/net/dsa/
Dlan9303-core.c638 struct port_fdb_dump_ctx *dump_ctx = ctx; in alr_loop_cb_fdb_port_dump() local
642 if ((BIT(dump_ctx->port) & portmap) == 0) in alr_loop_cb_fdb_port_dump()
647 return dump_ctx->cb(mac, 0, is_static, dump_ctx->data); in alr_loop_cb_fdb_port_dump()
1214 struct port_fdb_dump_ctx dump_ctx = { in lan9303_port_fdb_dump() local
1221 return lan9303_alr_loop(chip, alr_loop_cb_fdb_port_dump, &dump_ctx); in lan9303_port_fdb_dump()
/kernel/linux/linux-5.10/include/net/
Ddevlink.h310 struct devlink_dpipe_dump_ctx *dump_ctx);
1420 int devlink_dpipe_entry_ctx_prepare(struct devlink_dpipe_dump_ctx *dump_ctx);
1421 int devlink_dpipe_entry_ctx_append(struct devlink_dpipe_dump_ctx *dump_ctx,
1423 int devlink_dpipe_entry_ctx_close(struct devlink_dpipe_dump_ctx *dump_ctx);
/kernel/linux/linux-5.10/net/core/
Ddevlink.c2454 int devlink_dpipe_entry_ctx_prepare(struct devlink_dpipe_dump_ctx *dump_ctx) in devlink_dpipe_entry_ctx_prepare() argument
2459 err = devlink_dpipe_send_and_alloc_skb(&dump_ctx->skb, in devlink_dpipe_entry_ctx_prepare()
2460 dump_ctx->info); in devlink_dpipe_entry_ctx_prepare()
2464 dump_ctx->hdr = genlmsg_put(dump_ctx->skb, in devlink_dpipe_entry_ctx_prepare()
2465 dump_ctx->info->snd_portid, in devlink_dpipe_entry_ctx_prepare()
2466 dump_ctx->info->snd_seq, in devlink_dpipe_entry_ctx_prepare()
2468 dump_ctx->cmd); in devlink_dpipe_entry_ctx_prepare()
2469 if (!dump_ctx->hdr) in devlink_dpipe_entry_ctx_prepare()
2472 devlink = dump_ctx->info->user_ptr[0]; in devlink_dpipe_entry_ctx_prepare()
2473 if (devlink_nl_put_handle(dump_ctx->skb, devlink)) in devlink_dpipe_entry_ctx_prepare()
[all …]
/kernel/linux/linux-5.10/net/netfilter/
Dnf_tables_api.c4740 struct nft_set_dump_ctx *dump_ctx = cb->data; in nf_tables_dump_set() local
4753 if (dump_ctx->ctx.family != NFPROTO_UNSPEC && in nf_tables_dump_set()
4754 dump_ctx->ctx.family != table->family) in nf_tables_dump_set()
4757 if (table != dump_ctx->ctx.table) in nf_tables_dump_set()
4761 if (set == dump_ctx->set) { in nf_tables_dump_set()
4799 set->ops->walk(&dump_ctx->ctx, set, &args.iter); in nf_tables_dump_set()
4820 struct nft_set_dump_ctx *dump_ctx = cb->data; in nf_tables_dump_set_start() local
4822 cb->data = kmemdup(dump_ctx, sizeof(*dump_ctx), GFP_ATOMIC); in nf_tables_dump_set_start()
5005 struct nft_set_dump_ctx dump_ctx = { in nf_tables_getsetelem() local
5010 c.data = &dump_ctx; in nf_tables_getsetelem()