| .. | .. |
|---|
| 547 | 547 | * |
|---|
| 548 | 548 | * must be 8-byte aligned |
|---|
| 549 | 549 | */ |
|---|
| 550 | | -typedef struct { |
|---|
| 550 | +struct cvmx_wqe { |
|---|
| 551 | 551 | |
|---|
| 552 | 552 | /***************************************************************** |
|---|
| 553 | 553 | * WORD 0 |
|---|
| .. | .. |
|---|
| 593 | 593 | * |
|---|
| 594 | 594 | */ |
|---|
| 595 | 595 | |
|---|
| 596 | | -} CVMX_CACHE_LINE_ALIGNED cvmx_wqe_t; |
|---|
| 596 | +} CVMX_CACHE_LINE_ALIGNED; |
|---|
| 597 | 597 | |
|---|
| 598 | | -static inline int cvmx_wqe_get_port(cvmx_wqe_t *work) |
|---|
| 598 | +static inline int cvmx_wqe_get_port(struct cvmx_wqe *work) |
|---|
| 599 | 599 | { |
|---|
| 600 | 600 | int port; |
|---|
| 601 | 601 | |
|---|
| .. | .. |
|---|
| 607 | 607 | return port; |
|---|
| 608 | 608 | } |
|---|
| 609 | 609 | |
|---|
| 610 | | -static inline void cvmx_wqe_set_port(cvmx_wqe_t *work, int port) |
|---|
| 610 | +static inline void cvmx_wqe_set_port(struct cvmx_wqe *work, int port) |
|---|
| 611 | 611 | { |
|---|
| 612 | 612 | if (octeon_has_feature(OCTEON_FEATURE_CN68XX_WQE)) |
|---|
| 613 | 613 | work->word2.s_cn68xx.port = port; |
|---|
| .. | .. |
|---|
| 615 | 615 | work->word1.cn38xx.ipprt = port; |
|---|
| 616 | 616 | } |
|---|
| 617 | 617 | |
|---|
| 618 | | -static inline int cvmx_wqe_get_grp(cvmx_wqe_t *work) |
|---|
| 618 | +static inline int cvmx_wqe_get_grp(struct cvmx_wqe *work) |
|---|
| 619 | 619 | { |
|---|
| 620 | 620 | int grp; |
|---|
| 621 | 621 | |
|---|
| .. | .. |
|---|
| 627 | 627 | return grp; |
|---|
| 628 | 628 | } |
|---|
| 629 | 629 | |
|---|
| 630 | | -static inline void cvmx_wqe_set_grp(cvmx_wqe_t *work, int grp) |
|---|
| 630 | +static inline void cvmx_wqe_set_grp(struct cvmx_wqe *work, int grp) |
|---|
| 631 | 631 | { |
|---|
| 632 | 632 | if (octeon_has_feature(OCTEON_FEATURE_CN68XX_WQE)) |
|---|
| 633 | 633 | work->word1.cn68xx.grp = grp; |
|---|
| .. | .. |
|---|
| 635 | 635 | work->word1.cn38xx.grp = grp; |
|---|
| 636 | 636 | } |
|---|
| 637 | 637 | |
|---|
| 638 | | -static inline int cvmx_wqe_get_qos(cvmx_wqe_t *work) |
|---|
| 638 | +static inline int cvmx_wqe_get_qos(struct cvmx_wqe *work) |
|---|
| 639 | 639 | { |
|---|
| 640 | 640 | int qos; |
|---|
| 641 | 641 | |
|---|
| .. | .. |
|---|
| 647 | 647 | return qos; |
|---|
| 648 | 648 | } |
|---|
| 649 | 649 | |
|---|
| 650 | | -static inline void cvmx_wqe_set_qos(cvmx_wqe_t *work, int qos) |
|---|
| 650 | +static inline void cvmx_wqe_set_qos(struct cvmx_wqe *work, int qos) |
|---|
| 651 | 651 | { |
|---|
| 652 | 652 | if (octeon_has_feature(OCTEON_FEATURE_CN68XX_WQE)) |
|---|
| 653 | 653 | work->word1.cn68xx.qos = qos; |
|---|