Searched refs:dump_ctx (Results 1 – 7 of 7) sorted by relevance
/linux-6.6.21/net/devlink/ |
D | dpipe.c | 465 int devlink_dpipe_entry_ctx_prepare(struct devlink_dpipe_dump_ctx *dump_ctx) in devlink_dpipe_entry_ctx_prepare() argument 470 err = devlink_dpipe_send_and_alloc_skb(&dump_ctx->skb, in devlink_dpipe_entry_ctx_prepare() 471 dump_ctx->info); in devlink_dpipe_entry_ctx_prepare() 475 dump_ctx->hdr = genlmsg_put(dump_ctx->skb, in devlink_dpipe_entry_ctx_prepare() 476 dump_ctx->info->snd_portid, in devlink_dpipe_entry_ctx_prepare() 477 dump_ctx->info->snd_seq, in devlink_dpipe_entry_ctx_prepare() 479 dump_ctx->cmd); in devlink_dpipe_entry_ctx_prepare() 480 if (!dump_ctx->hdr) in devlink_dpipe_entry_ctx_prepare() 483 devlink = dump_ctx->info->user_ptr[0]; in devlink_dpipe_entry_ctx_prepare() 484 if (devlink_nl_put_handle(dump_ctx->skb, devlink)) in devlink_dpipe_entry_ctx_prepare() [all …]
|
/linux-6.6.21/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum_dpipe.c | 193 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 …]
|
/linux-6.6.21/drivers/net/wireguard/ |
D | netlink.c | 96 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()
|
/linux-6.6.21/drivers/net/ethernet/marvell/octeontx2/af/ |
D | rvu.h | 50 struct dump_ctx { struct 74 struct dump_ctx npa_aura_ctx; argument 75 struct dump_ctx npa_pool_ctx; 76 struct dump_ctx nix_cq_ctx; 77 struct dump_ctx nix_rq_ctx; 78 struct dump_ctx nix_sq_ctx;
|
/linux-6.6.21/drivers/net/dsa/ |
D | lan9303-core.c | 658 struct port_fdb_dump_ctx *dump_ctx = ctx; in alr_loop_cb_fdb_port_dump() local 662 if ((BIT(dump_ctx->port) & portmap) == 0) in alr_loop_cb_fdb_port_dump() 667 return dump_ctx->cb(mac, 0, is_static, dump_ctx->data); in alr_loop_cb_fdb_port_dump() 1212 struct port_fdb_dump_ctx dump_ctx = { in lan9303_port_fdb_dump() local 1219 return lan9303_alr_loop(chip, alr_loop_cb_fdb_port_dump, &dump_ctx); in lan9303_port_fdb_dump()
|
/linux-6.6.21/include/net/ |
D | devlink.h | 372 struct devlink_dpipe_dump_ctx *dump_ctx); 1743 int devlink_dpipe_entry_ctx_prepare(struct devlink_dpipe_dump_ctx *dump_ctx); 1744 int devlink_dpipe_entry_ctx_append(struct devlink_dpipe_dump_ctx *dump_ctx, 1746 int devlink_dpipe_entry_ctx_close(struct devlink_dpipe_dump_ctx *dump_ctx);
|
/linux-6.6.21/net/netfilter/ |
D | nf_tables_api.c | 5727 struct nft_set_dump_ctx *dump_ctx = cb->data; in nf_tables_dump_set() local 5745 if (dump_ctx->ctx.family != NFPROTO_UNSPEC && in nf_tables_dump_set() 5746 dump_ctx->ctx.family != table->family) in nf_tables_dump_set() 5749 if (table != dump_ctx->ctx.table) in nf_tables_dump_set() 5753 if (set == dump_ctx->set) { in nf_tables_dump_set() 5795 set->ops->walk(&dump_ctx->ctx, set, &args.iter); in nf_tables_dump_set() 5824 struct nft_set_dump_ctx *dump_ctx = cb->data; in nf_tables_dump_set_start() local 5826 cb->data = kmemdup(dump_ctx, sizeof(*dump_ctx), GFP_ATOMIC); in nf_tables_dump_set_start() 6061 struct nft_set_dump_ctx dump_ctx = { in nf_tables_getsetelem() local 6066 c.data = &dump_ctx; in nf_tables_getsetelem()
|