Lines Matching refs:work

44  * This header file defines the work queue entry (wqe) data structure.
74 * HW decode / err_code in work queue entry
132 /* lower err_code = first-level descriptor of the work */
190 /* lower err_code = first-level descriptor of the work */
249 /* lower err_code = first-level descriptor of the work */
315 /* lower err_code = first-level descriptor of the work */
370 /* lower err_code = first-level descriptor of the work */
425 /* lower err_code = first-level descriptor of the work */
444 * May be written/read by HW before the work queue
494 * the group that the work queue entry will be scheduled to
514 * the group that the work queue entry will be scheduled to
559 * needed to fill the work queue entry to 128 bytes
570 * If desired, SW can make the work Q entry any length. For the
578 static inline int cvmx_wqe_get_port(cvmx_wqe_t *work)
583 port = work->word2.s_cn68xx.port;
585 port = work->word1.cn38xx.ipprt;
590 static inline void cvmx_wqe_set_port(cvmx_wqe_t *work, int port)
593 port = work->word2.s_cn68xx.port = port;
595 port = work->word1.cn38xx.ipprt = port;
598 static inline int cvmx_wqe_get_grp(cvmx_wqe_t *work)
603 grp = work->word1.cn68xx.grp;
605 grp = work->word1.cn38xx.grp;
610 static inline void cvmx_wqe_set_grp(cvmx_wqe_t *work, int grp)
613 work->word1.cn68xx.grp = grp;
615 work->word1.cn38xx.grp = grp;
618 static inline int cvmx_wqe_get_qos(cvmx_wqe_t *work)
623 qos = work->word1.cn68xx.qos;
625 qos = work->word1.cn38xx.qos;
630 static inline void cvmx_wqe_set_qos(cvmx_wqe_t *work, int qos)
633 work->word1.cn68xx.qos = qos;
635 work->word1.cn38xx.qos = qos;
638 static inline int cvmx_wqe_get_len(cvmx_wqe_t *work)
643 len = work->word1.cn68xx.len;
645 len = work->word1.cn38xx.len;
650 static inline void cvmx_wqe_set_len(cvmx_wqe_t *work, int len)
653 work->word1.cn68xx.len = len;
655 work->word1.cn38xx.len = len;
658 static inline uint32_t cvmx_wqe_get_tag(cvmx_wqe_t *work)
660 return work->word1.s.tag;
663 static inline void cvmx_wqe_set_tag(cvmx_wqe_t *work, uint32_t tag)
665 work->word1.s.tag = tag;
668 static inline int cvmx_wqe_get_tt(cvmx_wqe_t *work)
670 return work->word1.s.tag_type;
673 static inline void cvmx_wqe_set_tt(cvmx_wqe_t *work, int tt)
677 work->word1.cn68xx.tag_type = (cvmx_pow_tag_type_t)tt;
678 work->word1.cn68xx.zero_2 = 0;
682 work->word1.cn38xx.tag_type = (cvmx_pow_tag_type_t)tt;
683 work->word1.cn38xx.zero_2 = 0;
687 static inline int cvmx_wqe_get_unused8(cvmx_wqe_t *work)
692 len = work->word0.pip.cn68xx.unused1;
694 len = work->word0.pip.cn38xx.unused;
699 static inline void cvmx_wqe_set_unused8(cvmx_wqe_t *work, int v)
702 work->word0.pip.cn68xx.unused1 = v;
704 work->word0.pip.cn38xx.unused = v;