• Home
  • Raw
  • Download

Lines Matching refs:skb

82 static int crypto_report_cipher(struct sk_buff *skb, struct crypto_alg *alg)  in crypto_report_cipher()  argument
92 if (nla_put(skb, CRYPTOCFGA_REPORT_CIPHER, in crypto_report_cipher()
101 static int crypto_report_comp(struct sk_buff *skb, struct crypto_alg *alg) in crypto_report_comp() argument
106 if (nla_put(skb, CRYPTOCFGA_REPORT_COMPRESS, in crypto_report_comp()
115 static int crypto_report_akcipher(struct sk_buff *skb, struct crypto_alg *alg) in crypto_report_akcipher() argument
121 if (nla_put(skb, CRYPTOCFGA_REPORT_AKCIPHER, in crypto_report_akcipher()
130 static int crypto_report_kpp(struct sk_buff *skb, struct crypto_alg *alg) in crypto_report_kpp() argument
136 if (nla_put(skb, CRYPTOCFGA_REPORT_KPP, in crypto_report_kpp()
146 struct crypto_user_alg *ualg, struct sk_buff *skb) in crypto_report_one() argument
159 if (nla_put_u32(skb, CRYPTOCFGA_PRIORITY_VAL, alg->cra_priority)) in crypto_report_one()
165 if (nla_put(skb, CRYPTOCFGA_REPORT_LARVAL, in crypto_report_one()
172 if (alg->cra_type->report(skb, alg)) in crypto_report_one()
180 if (crypto_report_cipher(skb, alg)) in crypto_report_one()
185 if (crypto_report_comp(skb, alg)) in crypto_report_one()
191 if (crypto_report_akcipher(skb, alg)) in crypto_report_one()
196 if (crypto_report_kpp(skb, alg)) in crypto_report_one()
212 struct sk_buff *skb = info->out_skb; in crypto_report_alg() local
217 nlh = nlmsg_put(skb, NETLINK_CB(in_skb).portid, info->nlmsg_seq, in crypto_report_alg()
226 err = crypto_report_one(alg, ualg, skb); in crypto_report_alg()
228 nlmsg_cancel(skb, nlh); in crypto_report_alg()
232 nlmsg_end(skb, nlh); in crypto_report_alg()
243 struct sk_buff *skb; in crypto_report() local
255 skb = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_ATOMIC); in crypto_report()
256 if (!skb) in crypto_report()
260 info.out_skb = skb; in crypto_report()
272 return nlmsg_unicast(crypto_nlsk, skb, NETLINK_CB(in_skb).portid); in crypto_report()
275 static int crypto_dump_report(struct sk_buff *skb, struct netlink_callback *cb) in crypto_dump_report() argument
286 info.in_skb = cb->skb; in crypto_dump_report()
287 info.out_skb = skb; in crypto_dump_report()
298 return skb->len; in crypto_dump_report()
308 static int crypto_update_alg(struct sk_buff *skb, struct nlmsghdr *nlh, in crypto_update_alg() argument
316 if (!netlink_capable(skb, CAP_NET_ADMIN)) in crypto_update_alg()
344 static int crypto_del_alg(struct sk_buff *skb, struct nlmsghdr *nlh, in crypto_del_alg() argument
351 if (!netlink_capable(skb, CAP_NET_ADMIN)) in crypto_del_alg()
381 static int crypto_add_alg(struct sk_buff *skb, struct nlmsghdr *nlh, in crypto_add_alg() argument
390 if (!netlink_capable(skb, CAP_NET_ADMIN)) in crypto_add_alg()
429 static int crypto_del_rng(struct sk_buff *skb, struct nlmsghdr *nlh, in crypto_del_rng() argument
432 if (!netlink_capable(skb, CAP_NET_ADMIN)) in crypto_del_rng()
467 static int crypto_user_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh) in crypto_user_rcv_msg() argument
498 err = netlink_dump_start(crypto_nlsk, skb, nlh, &c); in crypto_user_rcv_msg()
513 return link->doit(skb, nlh, attrs); in crypto_user_rcv_msg()
516 static void crypto_netlink_rcv(struct sk_buff *skb) in crypto_netlink_rcv() argument
519 netlink_rcv_skb(skb, &crypto_user_rcv_msg); in crypto_netlink_rcv()