Lines Matching defs:areq
741 * @areq: Request holding the TX and RX SGL
743 static void af_alg_free_areq_sgls(struct af_alg_async_req *areq)
745 struct sock *sk = areq->sk;
753 list_for_each_entry_safe(rsgl, tmp, &areq->rsgl_list, list) {
757 if (rsgl != &areq->first_rsgl)
761 tsgl = areq->tsgl;
763 for_each_sg(tsgl, sg, areq->tsgl_entries, i) {
769 sock_kfree_s(sk, tsgl, areq->tsgl_entries * sizeof(*tsgl));
1073 * @areq: Request holding the TX and RX SGL
1075 void af_alg_free_resources(struct af_alg_async_req *areq)
1077 struct sock *sk = areq->sk;
1080 af_alg_free_areq_sgls(areq);
1081 sock_kfree_s(sk, areq, areq->areqlen);
1126 struct af_alg_async_req *areq;
1132 areq = sock_kmalloc(sk, areqlen, GFP_KERNEL);
1133 if (unlikely(!areq))
1136 memset(areq, 0, areqlen);
1140 areq->areqlen = areqlen;
1141 areq->sk = sk;
1142 areq->first_rsgl.sgl.sgt.sgl = areq->first_rsgl.sgl.sgl;
1143 INIT_LIST_HEAD(&areq->rsgl_list);
1145 return areq;
1156 * @areq: instance of the cryptographic request that will hold the RX SGL
1162 struct af_alg_async_req *areq, size_t maxsize,
1183 if (list_empty(&areq->rsgl_list)) {
1184 rsgl = &areq->first_rsgl;
1196 list_add_tail(&rsgl->list, &areq->rsgl_list);
1209 if (areq->last_rsgl)
1210 af_alg_link_sg(&areq->last_rsgl->sgl, &rsgl->sgl);
1212 areq->last_rsgl = rsgl;