Lines Matching refs:buflen
128 size_t buflen; member
183 void *buf, size_t buflen, size_t total, int out) in atmel_aes_sg_copy() argument
187 while (buflen && total) { in atmel_aes_sg_copy()
189 count = min(count, buflen); in atmel_aes_sg_copy()
197 buflen -= count; in atmel_aes_sg_copy()
462 dd->buf_in, dd->buflen, dd->total, 0); in atmel_aes_crypt_dma_start()
625 dd->buf_out, dd->buflen, dd->dma_size, 1); in atmel_aes_crypt_dma_stop()
643 dd->buflen = PAGE_SIZE; in atmel_aes_buff_init()
644 dd->buflen &= ~(AES_BLOCK_SIZE - 1); in atmel_aes_buff_init()
653 dd->buflen, DMA_TO_DEVICE); in atmel_aes_buff_init()
655 dev_err(dd->dev, "dma %d bytes error\n", dd->buflen); in atmel_aes_buff_init()
661 dd->buflen, DMA_FROM_DEVICE); in atmel_aes_buff_init()
663 dev_err(dd->dev, "dma %d bytes error\n", dd->buflen); in atmel_aes_buff_init()
671 dma_unmap_single(dd->dev, dd->dma_addr_in, dd->buflen, in atmel_aes_buff_init()
684 dma_unmap_single(dd->dev, dd->dma_addr_out, dd->buflen, in atmel_aes_buff_cleanup()
686 dma_unmap_single(dd->dev, dd->dma_addr_in, dd->buflen, in atmel_aes_buff_cleanup()