Lines Matching refs:sg
105 struct scatterlist *sg, in tls_push_sg() argument
115 size = sg->length - offset; in tls_push_sg()
116 offset += sg->offset; in tls_push_sg()
120 if (sg_is_last(sg)) in tls_push_sg()
125 p = sg_page(sg); in tls_push_sg()
136 offset -= sg->offset; in tls_push_sg()
138 ctx->partially_sent_record = (void *)sg; in tls_push_sg()
144 sk_mem_uncharge(sk, sg->length); in tls_push_sg()
145 sg = sg_next(sg); in tls_push_sg()
146 if (!sg) in tls_push_sg()
149 offset = sg->offset; in tls_push_sg()
150 size = sg->length; in tls_push_sg()
206 struct scatterlist *sg; in tls_push_partial_record() local
209 sg = ctx->partially_sent_record; in tls_push_partial_record()
213 return tls_push_sg(sk, ctx, sg, offset, flags); in tls_push_partial_record()
218 struct scatterlist *sg; in tls_free_partial_record() local
220 for (sg = ctx->partially_sent_record; sg; sg = sg_next(sg)) { in tls_free_partial_record()
221 put_page(sg_page(sg)); in tls_free_partial_record()
222 sk_mem_uncharge(sk, sg->length); in tls_free_partial_record()