Lines Matching refs:in_buf
393 static int crypto_smartbond_set_in_out_buf(uint8_t *in_buf, uint8_t *out_buf, int len) in crypto_smartbond_set_in_out_buf() argument
395 if (in_buf == NULL) { in crypto_smartbond_set_in_out_buf()
403 uint32_t phy_addr = black_orca_phy_addr((uint32_t)in_buf); in crypto_smartbond_set_in_out_buf()
513 if (pkt->in_buf == NULL || pkt->out_buf == NULL) { in crypto_smartbond_cipher_ecb_handler()
532 ret = crypto_smartbond_set_in_out_buf(pkt->in_buf, pkt->out_buf, pkt->in_len); in crypto_smartbond_cipher_ecb_handler()
579 if (pkt->in_buf == NULL || pkt->out_buf == NULL) { in crypto_smartbond_cipher_cbc_handler()
609 ret = crypto_smartbond_set_in_out_buf(pkt->in_buf, in crypto_smartbond_cipher_cbc_handler()
612 ret = crypto_smartbond_set_in_out_buf(pkt->in_buf + offset, in crypto_smartbond_cipher_cbc_handler()
664 if (pkt->in_buf == NULL || pkt->out_buf == NULL) { in crypto_smartbond_cipher_ctr_handler()
685 ret = crypto_smartbond_set_in_out_buf(pkt->in_buf, pkt->out_buf, pkt->in_len); in crypto_smartbond_cipher_ctr_handler()
724 if (pkt->in_buf == NULL || (pkt->out_buf == NULL)) { in crypto_smartbond_hash_handler()
756 ret = crypto_smartbond_set_in_out_buf(pkt->in_buf, pkt->out_buf, pkt->in_len); in crypto_smartbond_hash_handler()
759 ret = crypto_smartbond_set_in_out_buf(pkt->in_buf, NULL, pkt->in_len); in crypto_smartbond_hash_handler()