Lines Matching refs:bbuf
787 struct artpec6_crypto_bounce_buffer *bbuf = kzalloc(alloc_size, flags); in artpec6_crypto_alloc_bounce() local
789 if (!bbuf) in artpec6_crypto_alloc_bounce()
792 base = bbuf + 1; in artpec6_crypto_alloc_bounce()
793 bbuf->buf = PTR_ALIGN(base, ARTPEC_CACHE_LINE_MAX); in artpec6_crypto_alloc_bounce()
794 return bbuf; in artpec6_crypto_alloc_bounce()
800 struct artpec6_crypto_bounce_buffer *bbuf; in setup_bounce_buffer_in() local
803 bbuf = artpec6_crypto_alloc_bounce(common->gfp_flags); in setup_bounce_buffer_in()
804 if (!bbuf) in setup_bounce_buffer_in()
807 bbuf->length = size; in setup_bounce_buffer_in()
808 bbuf->sg = walk->sg; in setup_bounce_buffer_in()
809 bbuf->offset = walk->offset; in setup_bounce_buffer_in()
811 ret = artpec6_crypto_setup_in_descr(common, bbuf->buf, size, false); in setup_bounce_buffer_in()
813 kfree(bbuf); in setup_bounce_buffer_in()
818 list_add_tail(&bbuf->list, &common->dma->bounce_buffers); in setup_bounce_buffer_in()