Home
last modified time | relevance | path

Searched refs:desc_hdr (Results 1 – 1 of 1) sorted by relevance

/include/linux/dma/
Dti-cppi5.h198 static inline u32 cppi5_desc_get_type(struct cppi5_desc_hdr_t *desc_hdr) in cppi5_desc_get_type() argument
200 return (desc_hdr->pkt_info0 & CPPI5_INFO0_HDESC_TYPE_MASK) >> in cppi5_desc_get_type()
210 static inline u32 cppi5_desc_get_errflags(struct cppi5_desc_hdr_t *desc_hdr) in cppi5_desc_get_errflags() argument
212 return (desc_hdr->pkt_info1 & CPPI5_INFO1_DESC_PKTERROR_MASK) >> in cppi5_desc_get_errflags()
224 static inline void cppi5_desc_get_pktids(struct cppi5_desc_hdr_t *desc_hdr, in cppi5_desc_get_pktids() argument
227 *pkt_id = (desc_hdr->pkt_info1 & CPPI5_INFO1_DESC_PKTID_MASK) >> in cppi5_desc_get_pktids()
229 *flow_id = (desc_hdr->pkt_info1 & CPPI5_INFO1_DESC_FLOWID_MASK) >> in cppi5_desc_get_pktids()
239 static inline void cppi5_desc_set_pktids(struct cppi5_desc_hdr_t *desc_hdr, in cppi5_desc_set_pktids() argument
242 desc_hdr->pkt_info1 &= ~(CPPI5_INFO1_DESC_PKTID_MASK | in cppi5_desc_set_pktids()
244 desc_hdr->pkt_info1 |= (pkt_id << CPPI5_INFO1_DESC_PKTID_SHIFT) & in cppi5_desc_set_pktids()
[all …]