Lines Matching refs:c_ivin
302 res->c_ivin = dma_alloc_coherent(dev, SEC_TOTAL_IV_SZ, in sec_alloc_civ_resource()
304 if (!res->c_ivin) in sec_alloc_civ_resource()
309 res[i].c_ivin = res->c_ivin + i * SEC_IV_SIZE; in sec_alloc_civ_resource()
317 if (res->c_ivin) in sec_free_civ_resource()
319 res->c_ivin, res->c_ivin_dma); in sec_free_civ_resource()
931 c_req->c_ivin = res->pbuf + SEC_PBUF_IV_OFFSET; in sec_cipher_map()
944 c_req->c_ivin = res->c_ivin; in sec_cipher_map()
1223 memcpy(c_req->c_ivin, sk_req->iv, ctx->c_ctx.ivsize); in sec_skcipher_copy_iv()
1429 cl = c_req->c_ivin[0] + 1; in set_aead_auth_iv()
1430 c_req->c_ivin[ctx->c_ctx.ivsize - cl] = 0x00; in set_aead_auth_iv()
1431 memset(&c_req->c_ivin[ctx->c_ctx.ivsize - cl], 0, cl); in set_aead_auth_iv()
1432 c_req->c_ivin[ctx->c_ctx.ivsize - IV_LAST_BYTE1] = IV_CTR_INIT; in set_aead_auth_iv()
1435 flage |= c_req->c_ivin[0] & IV_CL_MASK; in set_aead_auth_iv()
1443 memcpy(a_req->a_ivin, c_req->c_ivin, ctx->c_ctx.ivsize); in set_aead_auth_iv()
1469 memcpy(c_req->c_ivin, aead_req->iv, ctx->c_ctx.ivsize); in sec_aead_set_iv()
1484 memcpy(a_req->a_ivin, c_req->c_ivin, SEC_AIV_SIZE); in sec_aead_set_iv()
1751 memcpy(req->c_req.sk_req->iv, c_req->c_ivin, in sec_process()
1754 memcpy(req->aead_req.aead_req->iv, c_req->c_ivin, in sec_process()