Lines Matching refs:dump
760 struct ocelot_dump_ctx *dump = data;
761 u32 portid = NETLINK_CB(dump->cb->skb).portid;
762 u32 seq = dump->cb->nlh->nlmsg_seq;
766 if (dump->idx < dump->cb->args[2])
769 nlh = nlmsg_put(dump->skb, portid, seq, RTM_NEWNEIGH,
780 ndm->ndm_ifindex = dump->dev->ifindex;
783 if (nla_put(dump->skb, NDA_LLADDR, ETH_ALEN, addr))
786 if (vid && nla_put_u16(dump->skb, NDA_VLAN, vid))
789 nlmsg_end(dump->skb, nlh);
792 dump->idx++;
796 nlmsg_cancel(dump->skb, nlh);
807 struct ocelot_dump_ctx dump = {
816 ret = ocelot_fdb_dump(ocelot, port, ocelot_port_fdb_do_dump, &dump);
818 *idx = dump.idx;