Searched refs:nr_sgd (Results 1 – 6 of 6) sorted by relevance
/linux/drivers/crypto/allwinner/sun8i-ce/ |
H A D | sun8i-ce-cipher.c | 136 int nr_sgd = 0; in sun8i_ce_cipher_prepare() local 221 nr_sgd = nr_sgs; in sun8i_ce_cipher_prepare() 229 nr_sgd = dma_map_sg(ce->dev, areq->dst, nd, DMA_FROM_DEVICE); in sun8i_ce_cipher_prepare() 230 if (nr_sgd <= 0 || nr_sgd > MAX_SG) { in sun8i_ce_cipher_prepare() 231 dev_err(ce->dev, "Invalid sg number %d\n", nr_sgd); in sun8i_ce_cipher_prepare() 253 for_each_sg(areq->dst, sg, nr_sgd, i) { in sun8i_ce_cipher_prepare() 269 rctx->nr_sgd = nr_sgd; in sun8i_ce_cipher_prepare() 314 int nr_sgd = rctx->nr_sgd; in sun8i_ce_cipher_unprepare() local 327 dma_unmap_sg(ce->dev, areq->dst, nr_sgd, DMA_FROM_DEVICE); in sun8i_ce_cipher_unprepare()
|
H A D | sun8i-ce.h | 275 int nr_sgd; member
|
/linux/drivers/crypto/gemini/ |
H A D | sl3516-ce-cipher.c | 139 int nr_sgd = 0; in sl3516_ce_cipher() local 161 nr_sgd = nr_sgs; in sl3516_ce_cipher() 170 nr_sgd = dma_map_sg(ce->dev, areq->dst, sg_nents(areq->dst), in sl3516_ce_cipher() 172 if (nr_sgd <= 0 || nr_sgd > MAXDESC) { in sl3516_ce_cipher() 173 dev_err(ce->dev, "Invalid sg number %d\n", nr_sgd); in sl3516_ce_cipher() 204 while (i < nr_sgd && sg && len) { in sl3516_ce_cipher() 246 rctx->nr_sgd = nr_sgd; in sl3516_ce_cipher()
|
H A D | sl3516-ce.h | 288 int nr_sgd; member
|
/linux/drivers/crypto/amlogic/ |
H A D | amlogic-gxl-cipher.c | 97 int nr_sgs, nr_sgd; in meson_cipher() local 185 nr_sgd = nr_sgs; in meson_cipher() 194 nr_sgd = dma_map_sg(mc->dev, areq->dst, sg_nents(areq->dst), in meson_cipher() 196 if (!nr_sgd || nr_sgd > MAXDESC - 3) { in meson_cipher() 197 dev_err(mc->dev, "Invalid SG count %d\n", nr_sgd); in meson_cipher()
|
/linux/drivers/crypto/allwinner/sun8i-ss/ |
H A D | sun8i-ss-cipher.c | 195 int nr_sgd = 0; in sun8i_ss_cipher() local 237 nr_sgd = nr_sgs; in sun8i_ss_cipher() 245 nr_sgd = dma_map_sg(ss->dev, areq->dst, nsgd, DMA_FROM_DEVICE); in sun8i_ss_cipher() 246 if (nr_sgd <= 0 || nr_sgd > 8) { in sun8i_ss_cipher() 247 dev_err(ss->dev, "Invalid sg number %d\n", nr_sgd); in sun8i_ss_cipher() 278 while (i < nr_sgd && sg && len) { in sun8i_ss_cipher()
|