Lines Matching refs:is_sec1
47 unsigned int len, bool is_sec1) in to_talitos_ptr() argument
50 if (is_sec1) { in to_talitos_ptr()
59 struct talitos_ptr *src_ptr, bool is_sec1) in copy_talitos_ptr() argument
62 if (is_sec1) { in copy_talitos_ptr()
71 bool is_sec1) in from_talitos_ptr_len() argument
73 if (is_sec1) in from_talitos_ptr_len()
80 bool is_sec1) in to_talitos_ptr_ext_set() argument
82 if (!is_sec1) in to_talitos_ptr_ext_set()
86 static void to_talitos_ptr_ext_or(struct talitos_ptr *ptr, u8 val, bool is_sec1) in to_talitos_ptr_ext_or() argument
88 if (!is_sec1) in to_talitos_ptr_ext_or()
103 bool is_sec1 = has_ftr_sec1(priv); in __map_single_talitos_ptr() local
105 to_talitos_ptr(ptr, dma_addr, len, is_sec1); in __map_single_talitos_ptr()
133 bool is_sec1 = has_ftr_sec1(priv); in unmap_single_talitos_ptr() local
136 from_talitos_ptr_len(ptr, is_sec1), dir); in unmap_single_talitos_ptr()
143 bool is_sec1 = has_ftr_sec1(priv); in reset_channel() local
145 if (is_sec1) { in reset_channel()
170 if (is_sec1) in reset_channel()
186 bool is_sec1 = has_ftr_sec1(priv); in reset_device() local
187 u32 mcr = is_sec1 ? TALITOS1_MCR_SWR : TALITOS2_MCR_SWR; in reset_device()
215 bool is_sec1 = has_ftr_sec1(priv); in init_device() local
239 if (is_sec1) { in init_device()
279 bool is_sec1 = has_ftr_sec1(priv); in talitos_submit() local
293 if (is_sec1) { in talitos_submit()
324 static __be32 get_request_hdr(struct talitos_request *request, bool is_sec1) in get_request_hdr() argument
328 if (!is_sec1) in get_request_hdr()
348 bool is_sec1 = has_ftr_sec1(priv); in flush_channel() local
360 hdr = get_request_hdr(request, is_sec1); in flush_channel()
586 bool is_sec1 = has_ftr_sec1(priv); in talitos_error() local
587 int reset_ch = is_sec1 ? 1 : 0; /* only SEC2 supports continuation */ in talitos_error()
591 if (is_sec1) { in talitos_error()
617 dev_err(dev, is_sec1 ? "pointer not complete error\n" in talitos_error()
620 dev_err(dev, is_sec1 ? "parity error\n" in talitos_error()
625 dev_err(dev, is_sec1 ? "static assignment error\n" in talitos_error()
629 if (!is_sec1) { in talitos_error()
658 if (reset_dev || (is_sec1 && isr & ~TALITOS1_ISR_4CHERR) || in talitos_error()
659 (!is_sec1 && isr & ~TALITOS2_ISR_4CHERR) || isr_lo) { in talitos_error()
660 if (is_sec1 && (isr_lo & TALITOS1_ISR_TEA_ERR)) in talitos_error()
966 bool is_sec1 = has_ftr_sec1(priv); in talitos_sg_unmap() local
970 if (is_sec1 && dst && dst_nents > 1) { in talitos_sg_unmap()
977 if (src_nents == 1 || !is_sec1) in talitos_sg_unmap()
980 if (dst && (dst_nents == 1 || !is_sec1)) in talitos_sg_unmap()
982 } else if (src_nents == 1 || !is_sec1) { in talitos_sg_unmap()
1151 bool is_sec1 = has_ftr_sec1(priv); in talitos_sg_map_ext() local
1155 to_talitos_ptr(ptr, 0, 0, is_sec1); in talitos_sg_map_ext()
1158 to_talitos_ptr_ext_set(ptr, elen, is_sec1); in talitos_sg_map_ext()
1160 to_talitos_ptr(ptr, sg_dma_address(src) + offset, aligned_len, is_sec1); in talitos_sg_map_ext()
1163 if (is_sec1) { in talitos_sg_map_ext()
1164 to_talitos_ptr(ptr, edesc->dma_link_tbl + offset, aligned_len, is_sec1); in talitos_sg_map_ext()
1171 copy_talitos_ptr(ptr, &edesc->link_tbl[tbl_off], is_sec1); in talitos_sg_map_ext()
1175 tbl_off * sizeof(struct talitos_ptr), aligned_len, is_sec1); in talitos_sg_map_ext()
1176 to_talitos_ptr_ext_or(ptr, DESC_PTR_LNKTBL_JUMP, is_sec1); in talitos_sg_map_ext()
1211 bool is_sec1 = has_ftr_sec1(priv); in ipsec_esp() local
1218 to_talitos_ptr(&desc->ptr[0], ctx->dma_key, ctx->authkeylen, is_sec1); in ipsec_esp()
1221 if (is_sec1 && sg_count > 1) in ipsec_esp()
1239 to_talitos_ptr(civ_ptr, edesc->iv_dma, ivsize, is_sec1); in ipsec_esp()
1243 ctx->enckeylen, is_sec1); in ipsec_esp()
1266 if (!is_sec1 || sg_count == 1) in ipsec_esp()
1283 to_talitos_ptr_ext_set(tbl_ptr - 1, 0, is_sec1); in ipsec_esp()
1284 to_talitos_ptr_ext_set(tbl_ptr, DESC_PTR_LNKTBL_RET, is_sec1); in ipsec_esp()
1287 to_talitos_ptr(tbl_ptr, dma_icv, authsize, is_sec1); in ipsec_esp()
1288 to_talitos_ptr_ext_or(&desc->ptr[5], authsize, is_sec1); in ipsec_esp()
1291 to_talitos_ptr(&desc->ptr[6], dma_icv, authsize, is_sec1); in ipsec_esp()
1337 bool is_sec1 = has_ftr_sec1(priv); in talitos_edesc_alloc() local
1338 int max_len = is_sec1 ? TALITOS1_MAX_DATA_LEN : TALITOS2_MAX_DATA_LEN; in talitos_edesc_alloc()
1379 if (is_sec1) in talitos_edesc_alloc()
1392 if (is_sec1 && !dst) in talitos_edesc_alloc()
1581 bool is_sec1 = has_ftr_sec1(priv); in common_nonsnoop() local
1588 to_talitos_ptr(&desc->ptr[1], edesc->iv_dma, ivsize, is_sec1); in common_nonsnoop()
1591 to_talitos_ptr(&desc->ptr[2], ctx->dma_key, ctx->keylen, is_sec1); in common_nonsnoop()
1594 if (is_sec1 && sg_count > 1) in common_nonsnoop()
1612 if (!is_sec1 || sg_count == 1) in common_nonsnoop()
1707 bool is_sec1 = has_ftr_sec1(priv); in common_nonsnoop_hash_unmap() local
1724 if (from_talitos_ptr_len(&desc->ptr[1], is_sec1)) in common_nonsnoop_hash_unmap()
1731 if (is_sec1 && req_ctx->nbuf) in common_nonsnoop_hash_unmap()
1800 bool is_sec1 = has_ftr_sec1(priv); in common_nonsnoop_hash() local
1819 is_sec1); in common_nonsnoop_hash()
1821 if (is_sec1 && req_ctx->nbuf) in common_nonsnoop_hash()
1825 if (is_sec1 && sg_count > 1) in common_nonsnoop_hash()
1833 if (is_sec1 && req_ctx->nbuf) { in common_nonsnoop_hash()
1859 if (is_sec1 && from_talitos_ptr_len(&desc->ptr[3], true) == 0) in common_nonsnoop_hash()
1862 if (is_sec1 && req_ctx->nbuf && length) { in common_nonsnoop_hash()
1877 is_sec1); in common_nonsnoop_hash()
1883 copy_talitos_ptr(&desc2->ptr[2], &desc->ptr[2], is_sec1); in common_nonsnoop_hash()
1888 copy_talitos_ptr(&desc2->ptr[5], &desc->ptr[5], is_sec1); in common_nonsnoop_hash()
1919 bool is_sec1 = has_ftr_sec1(priv); in ahash_edesc_alloc() local
1921 if (is_sec1) in ahash_edesc_alloc()
1995 bool is_sec1 = has_ftr_sec1(priv); in ahash_process_req() local
2027 if (!is_sec1 && req_ctx->nbuf) { in ahash_process_req()
2034 } else if (is_sec1 && req_ctx->nbuf && req_ctx->nbuf < blocksize) { in ahash_process_req()
3280 bool is_sec1 = has_ftr_sec1(priv); in talitos_probe_irq() local
3287 if (is_sec1) { in talitos_probe_irq()