Lines Matching refs:data_len

92 	uint32_t data_len = TEST_DATA_MAX;  in test_cipher_item_virt()  local
102 if (posix_memalign((void *)&plain, page_size, data_len) || !plain) { in test_cipher_item_virt()
103 E_TRACE("plain malloc %uByte error!\n", data_len); in test_cipher_item_virt()
107 if (posix_memalign((void *)&cipher_soft, page_size, data_len) || !cipher_soft) { in test_cipher_item_virt()
108 E_TRACE("cipher_soft malloc %uByte error!\n", data_len); in test_cipher_item_virt()
112 if (posix_memalign((void *)&cipher_hard, page_size, data_len) || !cipher_hard) { in test_cipher_item_virt()
113 E_TRACE("cipher_hard malloc %uByte error!\n", data_len); in test_cipher_item_virt()
117 test_get_rng(plain, data_len); in test_cipher_item_virt()
119 memset(cipher_soft, 0x00, data_len); in test_cipher_item_virt()
120 memset(cipher_hard, 0x00, data_len); in test_cipher_item_virt()
169 data_len = TEST_DATA_MAX - 3; in test_cipher_item_virt()
171 data_len = TEST_DATA_MAX; in test_cipher_item_virt()
174 loop_nbytes = data_len; in test_cipher_item_virt()
200 plain, data_len, cipher_soft); in test_cipher_item_virt()
207 if (memcmp(cipher_hard, cipher_soft, data_len) != 0) { in test_cipher_item_virt()
247 uint32_t data_len = TEST_DATA_MAX; in test_cipher_item_fd() local
254 plain = rk_crypto_mem_alloc(data_len); in test_cipher_item_fd()
256 E_TRACE("plain malloc %uByte error!\n", data_len); in test_cipher_item_fd()
260 cipher_soft = rk_crypto_mem_alloc(data_len); in test_cipher_item_fd()
262 E_TRACE("cipher_soft malloc %uByte error!\n", data_len); in test_cipher_item_fd()
266 cipher_hard = rk_crypto_mem_alloc(data_len); in test_cipher_item_fd()
268 E_TRACE("cipher_hard malloc %uByte error!\n", data_len); in test_cipher_item_fd()
272 test_get_rng(plain->vaddr, data_len); in test_cipher_item_fd()
320 data_len = TEST_DATA_MAX - 7; in test_cipher_item_fd()
322 data_len = TEST_DATA_MAX; in test_cipher_item_fd()
325 cipher_hard->dma_fd, data_len); in test_cipher_item_fd()
337 plain->vaddr, data_len, cipher_soft->vaddr); in test_cipher_item_fd()
344 if (memcmp(cipher_hard->vaddr, cipher_soft->vaddr, data_len) != 0) { in test_cipher_item_fd()