Lines Matching refs:rsgl
667 struct af_alg_rsgl *rsgl, *tmp; in af_alg_free_areq_sgls() local
672 list_for_each_entry_safe(rsgl, tmp, &areq->rsgl_list, list) { in af_alg_free_areq_sgls()
673 atomic_sub(rsgl->sg_num_bytes, &ctx->rcvused); in af_alg_free_areq_sgls()
674 af_alg_free_sg(&rsgl->sgl); in af_alg_free_areq_sgls()
675 list_del(&rsgl->list); in af_alg_free_areq_sgls()
676 if (rsgl != &areq->first_rsgl) in af_alg_free_areq_sgls()
677 sock_kfree_s(sk, rsgl, sizeof(*rsgl)); in af_alg_free_areq_sgls()
1145 struct af_alg_rsgl *rsgl; in af_alg_get_rsgl() local
1157 rsgl = &areq->first_rsgl; in af_alg_get_rsgl()
1159 rsgl = sock_kmalloc(sk, sizeof(*rsgl), GFP_KERNEL); in af_alg_get_rsgl()
1160 if (unlikely(!rsgl)) in af_alg_get_rsgl()
1164 rsgl->sgl.npages = 0; in af_alg_get_rsgl()
1165 list_add_tail(&rsgl->list, &areq->rsgl_list); in af_alg_get_rsgl()
1168 err = af_alg_make_sg(&rsgl->sgl, &msg->msg_iter, seglen); in af_alg_get_rsgl()
1170 rsgl->sg_num_bytes = 0; in af_alg_get_rsgl()
1176 af_alg_link_sg(&areq->last_rsgl->sgl, &rsgl->sgl); in af_alg_get_rsgl()
1178 areq->last_rsgl = rsgl; in af_alg_get_rsgl()
1181 rsgl->sg_num_bytes = err; in af_alg_get_rsgl()