sg_wa             480 drivers/crypto/ccp/ccp-dev.h 	struct ccp_sg_workarea sg_wa;
sg_wa             249 drivers/crypto/ccp/ccp-ops.c 	ccp_sg_free(&data->sg_wa);
sg_wa             261 drivers/crypto/ccp/ccp-ops.c 	ret = ccp_init_sg_workarea(&data->sg_wa, cmd_q->ccp->dev, sg, sg_len,
sg_wa             280 drivers/crypto/ccp/ccp-ops.c 	struct ccp_sg_workarea *sg_wa = &data->sg_wa;
sg_wa             288 drivers/crypto/ccp/ccp-ops.c 	if (!sg_wa->sg)
sg_wa             295 drivers/crypto/ccp/ccp-ops.c 	nbytes = min_t(u64, sg_wa->bytes_left, dm_wa->length);
sg_wa             296 drivers/crypto/ccp/ccp-ops.c 	scatterwalk_map_and_copy(dm_wa->address, sg_wa->sg, sg_wa->sg_used,
sg_wa             301 drivers/crypto/ccp/ccp-ops.c 	while (sg_wa->bytes_left && (buf_count < dm_wa->length)) {
sg_wa             302 drivers/crypto/ccp/ccp-ops.c 		nbytes = min(sg_wa->sg->length - sg_wa->sg_used,
sg_wa             304 drivers/crypto/ccp/ccp-ops.c 		nbytes = min_t(u64, sg_wa->bytes_left, nbytes);
sg_wa             307 drivers/crypto/ccp/ccp-ops.c 		ccp_update_sg_workarea(sg_wa, nbytes);
sg_wa             334 drivers/crypto/ccp/ccp-ops.c 	sg_src_len = sg_dma_len(src->sg_wa.sg) - src->sg_wa.sg_used;
sg_wa             335 drivers/crypto/ccp/ccp-ops.c 	sg_src_len = min_t(u64, src->sg_wa.bytes_left, sg_src_len);
sg_wa             338 drivers/crypto/ccp/ccp-ops.c 		sg_dst_len = sg_dma_len(dst->sg_wa.sg) - dst->sg_wa.sg_used;
sg_wa             339 drivers/crypto/ccp/ccp-ops.c 		sg_dst_len = min_t(u64, src->sg_wa.bytes_left, sg_dst_len);
sg_wa             368 drivers/crypto/ccp/ccp-ops.c 		op->src.u.dma.address = sg_dma_address(src->sg_wa.sg);
sg_wa             369 drivers/crypto/ccp/ccp-ops.c 		op->src.u.dma.offset = src->sg_wa.sg_used;
sg_wa             372 drivers/crypto/ccp/ccp-ops.c 		ccp_update_sg_workarea(&src->sg_wa, op->src.u.dma.length);
sg_wa             389 drivers/crypto/ccp/ccp-ops.c 			op->dst.u.dma.address = sg_dma_address(dst->sg_wa.sg);
sg_wa             390 drivers/crypto/ccp/ccp-ops.c 			op->dst.u.dma.offset = dst->sg_wa.sg_used;
sg_wa             405 drivers/crypto/ccp/ccp-ops.c 			ccp_update_sg_workarea(&dst->sg_wa,
sg_wa             551 drivers/crypto/ccp/ccp-ops.c 	while (src.sg_wa.bytes_left) {
sg_wa             553 drivers/crypto/ccp/ccp-ops.c 		if (aes->cmac_final && !src.sg_wa.bytes_left) {
sg_wa             740 drivers/crypto/ccp/ccp-ops.c 		while (aad.sg_wa.bytes_left) {
sg_wa             780 drivers/crypto/ccp/ccp-ops.c 		while (src.sg_wa.bytes_left) {
sg_wa             782 drivers/crypto/ccp/ccp-ops.c 			if (!src.sg_wa.bytes_left) {
sg_wa            1018 drivers/crypto/ccp/ccp-ops.c 	while (src.sg_wa.bytes_left) {
sg_wa            1020 drivers/crypto/ccp/ccp-ops.c 		if (!src.sg_wa.bytes_left) {
sg_wa            1228 drivers/crypto/ccp/ccp-ops.c 	while (src.sg_wa.bytes_left) {
sg_wa            1230 drivers/crypto/ccp/ccp-ops.c 		if (!src.sg_wa.bytes_left)
sg_wa            1418 drivers/crypto/ccp/ccp-ops.c 	while (src.sg_wa.bytes_left) {
sg_wa            1420 drivers/crypto/ccp/ccp-ops.c 		if (!src.sg_wa.bytes_left) {
sg_wa            1681 drivers/crypto/ccp/ccp-ops.c 		while (src.sg_wa.bytes_left) {
sg_wa            1683 drivers/crypto/ccp/ccp-ops.c 			if (sha->final && !src.sg_wa.bytes_left)
sg_wa            2027 drivers/crypto/ccp/ccp-ops.c 	dst.sg_wa.sg_used = 0;
sg_wa            2028 drivers/crypto/ccp/ccp-ops.c 	for (i = 1; i <= src.sg_wa.dma_count; i++) {
sg_wa            2029 drivers/crypto/ccp/ccp-ops.c 		if (!dst.sg_wa.sg ||
sg_wa            2030 drivers/crypto/ccp/ccp-ops.c 		    (dst.sg_wa.sg->length < src.sg_wa.sg->length)) {
sg_wa            2035 drivers/crypto/ccp/ccp-ops.c 		if (i == src.sg_wa.dma_count) {
sg_wa            2041 drivers/crypto/ccp/ccp-ops.c 		op.src.u.dma.address = sg_dma_address(src.sg_wa.sg);
sg_wa            2043 drivers/crypto/ccp/ccp-ops.c 		op.src.u.dma.length = sg_dma_len(src.sg_wa.sg);
sg_wa            2046 drivers/crypto/ccp/ccp-ops.c 		op.dst.u.dma.address = sg_dma_address(dst.sg_wa.sg);
sg_wa            2047 drivers/crypto/ccp/ccp-ops.c 		op.dst.u.dma.offset = dst.sg_wa.sg_used;
sg_wa            2056 drivers/crypto/ccp/ccp-ops.c 		dst.sg_wa.sg_used += src.sg_wa.sg->length;
sg_wa            2057 drivers/crypto/ccp/ccp-ops.c 		if (dst.sg_wa.sg_used == dst.sg_wa.sg->length) {
sg_wa            2058 drivers/crypto/ccp/ccp-ops.c 			dst.sg_wa.sg = sg_next(dst.sg_wa.sg);
sg_wa            2059 drivers/crypto/ccp/ccp-ops.c 			dst.sg_wa.sg_used = 0;
sg_wa            2061 drivers/crypto/ccp/ccp-ops.c 		src.sg_wa.sg = sg_next(src.sg_wa.sg);