Lines Matching refs:qm_sg_ptr
13 static inline void __dma_to_qm_sg(struct qm_sg_entry *qm_sg_ptr, dma_addr_t dma, in __dma_to_qm_sg() argument
16 qm_sg_entry_set64(qm_sg_ptr, dma); in __dma_to_qm_sg()
17 qm_sg_ptr->__reserved2 = 0; in __dma_to_qm_sg()
18 qm_sg_ptr->bpid = 0; in __dma_to_qm_sg()
19 qm_sg_ptr->offset = cpu_to_be16(offset & QM_SG_OFF_MASK); in __dma_to_qm_sg()
22 static inline void dma_to_qm_sg_one(struct qm_sg_entry *qm_sg_ptr, in dma_to_qm_sg_one() argument
25 __dma_to_qm_sg(qm_sg_ptr, dma, offset); in dma_to_qm_sg_one()
26 qm_sg_entry_set_len(qm_sg_ptr, len); in dma_to_qm_sg_one()
29 static inline void dma_to_qm_sg_one_last(struct qm_sg_entry *qm_sg_ptr, in dma_to_qm_sg_one_last() argument
32 __dma_to_qm_sg(qm_sg_ptr, dma, offset); in dma_to_qm_sg_one_last()
33 qm_sg_entry_set_f(qm_sg_ptr, len); in dma_to_qm_sg_one_last()
36 static inline void dma_to_qm_sg_one_ext(struct qm_sg_entry *qm_sg_ptr, in dma_to_qm_sg_one_ext() argument
39 __dma_to_qm_sg(qm_sg_ptr, dma, offset); in dma_to_qm_sg_one_ext()
40 qm_sg_ptr->cfg = cpu_to_be32(QM_SG_EXT | (len & QM_SG_LEN_MASK)); in dma_to_qm_sg_one_ext()
43 static inline void dma_to_qm_sg_one_last_ext(struct qm_sg_entry *qm_sg_ptr, in dma_to_qm_sg_one_last_ext() argument
47 __dma_to_qm_sg(qm_sg_ptr, dma, offset); in dma_to_qm_sg_one_last_ext()
48 qm_sg_ptr->cfg = cpu_to_be32(QM_SG_EXT | QM_SG_FIN | in dma_to_qm_sg_one_last_ext()
58 struct qm_sg_entry *qm_sg_ptr, u16 offset) in sg_to_qm_sg() argument
65 dma_to_qm_sg_one(qm_sg_ptr, sg_dma_address(sg), ent_len, in sg_to_qm_sg()
67 qm_sg_ptr++; in sg_to_qm_sg()
71 return qm_sg_ptr - 1; in sg_to_qm_sg()
79 struct qm_sg_entry *qm_sg_ptr, u16 offset) in sg_to_qm_sg_last() argument
81 qm_sg_ptr = sg_to_qm_sg(sg, len, qm_sg_ptr, offset); in sg_to_qm_sg_last()
82 qm_sg_entry_set_f(qm_sg_ptr, qm_sg_entry_get_len(qm_sg_ptr)); in sg_to_qm_sg_last()