Lines Matching defs:buffer
107 u8 buffer[SHA_BUFFER_LEN + SHA512_BLOCK_SIZE] __aligned(sizeof(u32));
312 * Check if count <= 0 because the buffer is full or
325 scatterwalk_map_and_copy(ctx->buffer + ctx->bufcnt, ctx->sg,
385 *(ctx->buffer + ctx->bufcnt) = 0x80;
386 memset(ctx->buffer + ctx->bufcnt + 1, 0, padlen-1);
387 memcpy(ctx->buffer + ctx->bufcnt + padlen, bits, 16);
395 *(ctx->buffer + ctx->bufcnt) = 0x80;
396 memset(ctx->buffer + ctx->bufcnt + 1, 0, padlen-1);
397 memcpy(ctx->buffer + ctx->bufcnt + padlen, &bits[1], 8);
566 const u32 *buffer = (const u32 *)buf;
586 atmel_sha_write(dd, SHA_REG_DIN(count), buffer[count]);
713 return atmel_sha_xmit_cpu(dd, ctx->buffer, bufcnt, 1);
720 ctx->dma_addr = dma_map_single(dd->dev, ctx->buffer,
811 ctx->dma_addr = dma_map_single(dd->dev, ctx->buffer,
914 err = atmel_sha_xmit_cpu(dd, ctx->buffer, count, 1);
1505 const u32 *words = (const u32 *)ctx->buffer;
1524 * Fill ctx->buffer now with the next data to be written into
1531 scatterwalk_map_and_copy(ctx->buffer, ctx->sg,
1577 scatterwalk_map_and_copy(ctx->buffer, ctx->sg,
1613 u8 buffer[SHA512_BLOCK_SIZE];
1634 if (keylen > sizeof(hkey->buffer)) {
1640 memcpy(hkey->buffer, key, keylen);
1656 *key = (hkey->keydup) ? hkey->keydup : hkey->buffer;