Lines Matching refs:fqd
399 static inline u64 qm_fqd_stashing_get64(const struct qm_fqd *fqd) in qm_fqd_stashing_get64() argument
401 return be64_to_cpu(fqd->context_a.opaque) & 0xffffffffffffULL; in qm_fqd_stashing_get64()
404 static inline dma_addr_t qm_fqd_stashing_addr(const struct qm_fqd *fqd) in qm_fqd_stashing_addr() argument
406 return be64_to_cpu(fqd->context_a.opaque) & 0xffffffffffffULL; in qm_fqd_stashing_addr()
409 static inline u64 qm_fqd_context_a_get64(const struct qm_fqd *fqd) in qm_fqd_context_a_get64() argument
411 return qm_fqd_stashing_get64(fqd); in qm_fqd_context_a_get64()
414 static inline void qm_fqd_stashing_set64(struct qm_fqd *fqd, u64 addr) in qm_fqd_stashing_set64() argument
416 fqd->context_a.context_hi = cpu_to_be16(upper_32_bits(addr)); in qm_fqd_stashing_set64()
417 fqd->context_a.context_lo = cpu_to_be32(lower_32_bits(addr)); in qm_fqd_stashing_set64()
420 static inline void qm_fqd_context_a_set64(struct qm_fqd *fqd, u64 addr) in qm_fqd_context_a_set64() argument
422 fqd->context_a.hi = cpu_to_be32(upper_32_bits(addr)); in qm_fqd_context_a_set64()
423 fqd->context_a.lo = cpu_to_be32(lower_32_bits(addr)); in qm_fqd_context_a_set64()
427 static inline int qm_fqd_set_taildrop(struct qm_fqd *fqd, u32 val, in qm_fqd_set_taildrop() argument
446 fqd->td = cpu_to_be16(td); in qm_fqd_set_taildrop()
450 static inline int qm_fqd_get_taildrop(const struct qm_fqd *fqd) in qm_fqd_get_taildrop() argument
452 int td = be16_to_cpu(fqd->td); in qm_fqd_get_taildrop()
458 static inline void qm_fqd_set_stashing(struct qm_fqd *fqd, u8 as, u8 ds, u8 cs) in qm_fqd_set_stashing() argument
460 struct qm_fqd_stashing *st = &fqd->context_a.stashing; in qm_fqd_set_stashing()
467 static inline u8 qm_fqd_get_stashing(const struct qm_fqd *fqd) in qm_fqd_get_stashing() argument
469 return fqd->context_a.stashing.cl; in qm_fqd_get_stashing()
472 static inline void qm_fqd_set_oac(struct qm_fqd *fqd, u8 val) in qm_fqd_set_oac() argument
474 fqd->oac_init.oac = val << QM_FQD_OAC_OFF; in qm_fqd_set_oac()
477 static inline void qm_fqd_set_oal(struct qm_fqd *fqd, s8 val) in qm_fqd_set_oal() argument
479 fqd->oac_init.oal = val; in qm_fqd_set_oal()
482 static inline void qm_fqd_set_destwq(struct qm_fqd *fqd, int ch, int wq) in qm_fqd_set_destwq() argument
484 fqd->dest_wq = cpu_to_be16((ch << QM_FQD_CHAN_OFF) | in qm_fqd_set_destwq()
488 static inline int qm_fqd_get_chan(const struct qm_fqd *fqd) in qm_fqd_get_chan() argument
490 return be16_to_cpu(fqd->dest_wq) >> QM_FQD_CHAN_OFF; in qm_fqd_get_chan()
493 static inline int qm_fqd_get_wq(const struct qm_fqd *fqd) in qm_fqd_get_wq() argument
495 return be16_to_cpu(fqd->dest_wq) & QM_FQD_WQ_MASK; in qm_fqd_get_wq()
607 struct qm_fqd fqd; /* the FQD fields go here */ member