Lines Matching refs:sec4_sg_ptr
26 static inline void dma_to_sec4_sg_one(struct sec4_sg_entry *sec4_sg_ptr, in dma_to_sec4_sg_one() argument
30 dma_to_qm_sg_one((struct dpaa2_sg_entry *)sec4_sg_ptr, dma, len, in dma_to_sec4_sg_one()
33 sec4_sg_ptr->ptr = cpu_to_caam_dma64(dma); in dma_to_sec4_sg_one()
34 sec4_sg_ptr->len = cpu_to_caam32(len); in dma_to_sec4_sg_one()
35 sec4_sg_ptr->bpid_offset = cpu_to_caam32(offset & in dma_to_sec4_sg_one()
40 sec4_sg_ptr, sizeof(struct sec4_sg_entry), 1); in dma_to_sec4_sg_one()
49 struct sec4_sg_entry *sec4_sg_ptr, u16 offset) in sg_to_sec4_sg() argument
56 dma_to_sec4_sg_one(sec4_sg_ptr, sg_dma_address(sg), ent_len, in sg_to_sec4_sg()
58 sec4_sg_ptr++; in sg_to_sec4_sg()
62 return sec4_sg_ptr - 1; in sg_to_sec4_sg()
65 static inline void sg_to_sec4_set_last(struct sec4_sg_entry *sec4_sg_ptr) in sg_to_sec4_set_last() argument
68 dpaa2_sg_set_final((struct dpaa2_sg_entry *)sec4_sg_ptr, true); in sg_to_sec4_set_last()
70 sec4_sg_ptr->len |= cpu_to_caam32(SEC4_SG_LEN_FIN); in sg_to_sec4_set_last()
78 struct sec4_sg_entry *sec4_sg_ptr, in sg_to_sec4_sg_last() argument
81 sec4_sg_ptr = sg_to_sec4_sg(sg, len, sec4_sg_ptr, offset); in sg_to_sec4_sg_last()
82 sg_to_sec4_set_last(sec4_sg_ptr); in sg_to_sec4_sg_last()