• Home
  • Raw
  • Download

Lines Matching refs:skb

72 static int crypto_report_cipher(struct sk_buff *skb, struct crypto_alg *alg)  in crypto_report_cipher()  argument
84 return nla_put(skb, CRYPTOCFGA_REPORT_CIPHER, in crypto_report_cipher()
88 static int crypto_report_comp(struct sk_buff *skb, struct crypto_alg *alg) in crypto_report_comp() argument
96 return nla_put(skb, CRYPTOCFGA_REPORT_COMPRESS, sizeof(rcomp), &rcomp); in crypto_report_comp()
100 struct crypto_user_alg *ualg, struct sk_buff *skb) in crypto_report_one() argument
115 if (nla_put_u32(skb, CRYPTOCFGA_PRIORITY_VAL, alg->cra_priority)) in crypto_report_one()
122 if (nla_put(skb, CRYPTOCFGA_REPORT_LARVAL, sizeof(rl), &rl)) in crypto_report_one()
128 if (alg->cra_type->report(skb, alg)) in crypto_report_one()
136 if (crypto_report_cipher(skb, alg)) in crypto_report_one()
141 if (crypto_report_comp(skb, alg)) in crypto_report_one()
158 struct sk_buff *skb = info->out_skb; in crypto_report_alg() local
163 nlh = nlmsg_put(skb, NETLINK_CB(in_skb).portid, info->nlmsg_seq, in crypto_report_alg()
172 err = crypto_report_one(alg, ualg, skb); in crypto_report_alg()
174 nlmsg_cancel(skb, nlh); in crypto_report_alg()
178 nlmsg_end(skb, nlh); in crypto_report_alg()
190 struct sk_buff *skb; in crypto_report() local
202 skb = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); in crypto_report()
203 if (!skb) in crypto_report()
207 info.out_skb = skb; in crypto_report()
217 kfree_skb(skb); in crypto_report()
221 return nlmsg_unicast(net->crypto_nlsk, skb, NETLINK_CB(in_skb).portid); in crypto_report()
224 static int crypto_dump_report(struct sk_buff *skb, struct netlink_callback *cb) in crypto_dump_report() argument
232 info.in_skb = cb->skb; in crypto_dump_report()
233 info.out_skb = skb; in crypto_dump_report()
249 res = skb->len; in crypto_dump_report()
260 static int crypto_update_alg(struct sk_buff *skb, struct nlmsghdr *nlh, in crypto_update_alg() argument
268 if (!netlink_capable(skb, CAP_NET_ADMIN)) in crypto_update_alg()
296 static int crypto_del_alg(struct sk_buff *skb, struct nlmsghdr *nlh, in crypto_del_alg() argument
303 if (!netlink_capable(skb, CAP_NET_ADMIN)) in crypto_del_alg()
334 static int crypto_add_alg(struct sk_buff *skb, struct nlmsghdr *nlh, in crypto_add_alg() argument
343 if (!netlink_capable(skb, CAP_NET_ADMIN)) in crypto_add_alg()
382 static int crypto_del_rng(struct sk_buff *skb, struct nlmsghdr *nlh, in crypto_del_rng() argument
385 if (!netlink_capable(skb, CAP_NET_ADMIN)) in crypto_del_rng()
422 static int crypto_user_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh, in crypto_user_rcv_msg() argument
425 struct net *net = sock_net(skb->sk); in crypto_user_rcv_msg()
456 err = netlink_dump_start(net->crypto_nlsk, skb, nlh, &c); in crypto_user_rcv_msg()
470 return link->doit(skb, nlh, attrs); in crypto_user_rcv_msg()
473 static void crypto_netlink_rcv(struct sk_buff *skb) in crypto_netlink_rcv() argument
476 netlink_rcv_skb(skb, &crypto_user_rcv_msg); in crypto_netlink_rcv()