• Home
  • Raw
  • Download

Lines Matching refs:cb

226 void *ethnl_dump_put(struct sk_buff *skb, struct netlink_callback *cb, u8 cmd)  in ethnl_dump_put()  argument
228 return genlmsg_put(skb, NETLINK_CB(cb->skb).portid, cb->nlh->nlmsg_seq, in ethnl_dump_put()
288 static struct ethnl_dump_ctx *ethnl_dump_context(struct netlink_callback *cb) in ethnl_dump_context() argument
290 return (struct ethnl_dump_ctx *)cb->ctx; in ethnl_dump_context()
422 struct netlink_callback *cb) in ethnl_default_dump_one() argument
427 ehdr = genlmsg_put(skb, NETLINK_CB(cb->skb).portid, cb->nlh->nlmsg_seq, in ethnl_default_dump_one()
461 struct netlink_callback *cb) in ethnl_default_dumpit() argument
463 struct ethnl_dump_ctx *ctx = ethnl_dump_context(cb); in ethnl_default_dumpit()
479 cb->seq = seq; in ethnl_default_dumpit()
487 ret = ethnl_default_dump_one(skb, dev, ctx, cb); in ethnl_default_dumpit()
512 nl_dump_check_consistent(cb, nlmsg_hdr(skb)); in ethnl_default_dumpit()
518 static int ethnl_default_start(struct netlink_callback *cb) in ethnl_default_start() argument
520 const struct genl_dumpit_info *info = genl_dumpit_info(cb); in ethnl_default_start()
521 struct ethnl_dump_ctx *ctx = ethnl_dump_context(cb); in ethnl_default_start()
528 BUILD_BUG_ON(sizeof(*ctx) > sizeof(cb->ctx)); in ethnl_default_start()
530 ghdr = nlmsg_data(cb->nlh); in ethnl_default_start()
543 ret = ethnl_default_parse(req_info, info->attrs, sock_net(cb->skb->sk), in ethnl_default_start()
544 ops, cb->extack, false); in ethnl_default_start()
573 static int ethnl_default_done(struct netlink_callback *cb) in ethnl_default_done() argument
575 struct ethnl_dump_ctx *ctx = ethnl_dump_context(cb); in ethnl_default_done()