portal 97 drivers/bus/fsl-mc/mc-sys.c static inline void mc_write_command(struct fsl_mc_command __iomem *portal, portal 109 drivers/bus/fsl-mc/mc-sys.c writeq_relaxed(le64_to_cpu(cmd->params[i]), &portal->params[i]); portal 112 drivers/bus/fsl-mc/mc-sys.c writeq(le64_to_cpu(cmd->header), &portal->header); portal 125 drivers/bus/fsl-mc/mc-sys.c *portal, portal 132 drivers/bus/fsl-mc/mc-sys.c resp->header = cpu_to_le64(readq_relaxed(&portal->header)); portal 145 drivers/bus/fsl-mc/mc-sys.c cpu_to_le64(readq_relaxed(&portal->params[i])); portal 780 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c struct qman_portal *portal; portal 784 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c portal = qman_get_affine_portal(cpu); portal 785 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c qman_p_static_dequeue_add(portal, pool); portal 2214 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c struct qman_portal *portal) portal 2218 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c qman_p_irqsource_remove(portal, QM_PIRQ_DQRI); portal 2220 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c percpu_priv->np.p = portal; portal 2228 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c static enum qman_cb_dqrr_result rx_error_dqrr(struct qman_portal *portal, portal 2246 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c if (dpaa_eth_napi_schedule(percpu_priv, portal)) portal 2255 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c static enum qman_cb_dqrr_result rx_default_dqrr(struct qman_portal *portal, portal 2289 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c if (unlikely(dpaa_eth_napi_schedule(percpu_priv, portal))) portal 2375 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c static enum qman_cb_dqrr_result conf_error_dqrr(struct qman_portal *portal, portal 2388 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c if (dpaa_eth_napi_schedule(percpu_priv, portal)) portal 2396 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c static enum qman_cb_dqrr_result conf_dflt_dqrr(struct qman_portal *portal, portal 2412 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c if (dpaa_eth_napi_schedule(percpu_priv, portal)) portal 2420 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c static void egress_ern(struct qman_portal *portal, portal 535 drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c struct qman_portal *portal; portal 539 drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c portal = qman_get_affine_portal(smp_processor_id()); portal 540 drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c qman_portal_get_iperiod(portal, &period); portal 541 drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c qman_dqrr_get_ithresh(portal, &thresh); portal 555 drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c struct qman_portal *portal; portal 567 drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c portal = qman_get_affine_portal(smp_processor_id()); portal 568 drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c qman_portal_get_iperiod(portal, &prev_period); portal 569 drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c qman_dqrr_get_ithresh(portal, &prev_thresh); portal 573 drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c portal = qman_get_affine_portal(cpu); portal 574 drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c res = qman_portal_set_iperiod(portal, period); portal 577 drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c res = qman_dqrr_set_ithresh(portal, thresh); portal 579 drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c qman_portal_set_iperiod(portal, prev_period); portal 592 drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c portal = qman_get_affine_portal(cpu); portal 594 drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c qman_portal_set_iperiod(portal, prev_period); portal 595 drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c qman_dqrr_set_ithresh(portal, prev_thresh); portal 249 drivers/soc/fsl/qbman/bman.c struct bman_portal *portal; portal 258 drivers/soc/fsl/qbman/bman.c struct bm_portal *portal = &p->p; portal 260 drivers/soc/fsl/qbman/bman.c u32 is = bm_in(portal, BM_REG_ISR) & p->irq_sources; portal 266 drivers/soc/fsl/qbman/bman.c bm_out(portal, BM_REG_ISR, clear); portal 304 drivers/soc/fsl/qbman/bman.c static int bm_rcr_get_avail(struct bm_portal *portal) portal 306 drivers/soc/fsl/qbman/bman.c struct bm_rcr *rcr = &portal->rcr; portal 311 drivers/soc/fsl/qbman/bman.c static int bm_rcr_get_fill(struct bm_portal *portal) portal 313 drivers/soc/fsl/qbman/bman.c struct bm_rcr *rcr = &portal->rcr; portal 318 drivers/soc/fsl/qbman/bman.c static void bm_rcr_set_ithresh(struct bm_portal *portal, u8 ithresh) portal 320 drivers/soc/fsl/qbman/bman.c struct bm_rcr *rcr = &portal->rcr; portal 323 drivers/soc/fsl/qbman/bman.c bm_out(portal, BM_REG_RCR_ITR, ithresh); portal 326 drivers/soc/fsl/qbman/bman.c static void bm_rcr_cce_prefetch(struct bm_portal *portal) portal 328 drivers/soc/fsl/qbman/bman.c __maybe_unused struct bm_rcr *rcr = &portal->rcr; portal 331 drivers/soc/fsl/qbman/bman.c bm_cl_touch_ro(portal, BM_CL_RCR_CI_CENA); portal 334 drivers/soc/fsl/qbman/bman.c static u8 bm_rcr_cce_update(struct bm_portal *portal) portal 336 drivers/soc/fsl/qbman/bman.c struct bm_rcr *rcr = &portal->rcr; portal 340 drivers/soc/fsl/qbman/bman.c rcr->ci = bm_ce_in(portal, BM_CL_RCR_CI_CENA) & (BM_RCR_SIZE - 1); portal 341 drivers/soc/fsl/qbman/bman.c bm_cl_invalidate(portal, BM_CL_RCR_CI_CENA); portal 347 drivers/soc/fsl/qbman/bman.c static inline struct bm_rcr_entry *bm_rcr_start(struct bm_portal *portal) portal 349 drivers/soc/fsl/qbman/bman.c struct bm_rcr *rcr = &portal->rcr; portal 361 drivers/soc/fsl/qbman/bman.c static inline void bm_rcr_pvb_commit(struct bm_portal *portal, u8 myverb) portal 363 drivers/soc/fsl/qbman/bman.c struct bm_rcr *rcr = &portal->rcr; portal 380 drivers/soc/fsl/qbman/bman.c static int bm_rcr_init(struct bm_portal *portal, enum bm_rcr_pmode pmode, portal 383 drivers/soc/fsl/qbman/bman.c struct bm_rcr *rcr = &portal->rcr; portal 387 drivers/soc/fsl/qbman/bman.c rcr->ring = portal->addr.ce + BM_CL_RCR; portal 388 drivers/soc/fsl/qbman/bman.c rcr->ci = bm_in(portal, BM_REG_RCR_CI_CINH) & (BM_RCR_SIZE - 1); portal 389 drivers/soc/fsl/qbman/bman.c pi = bm_in(portal, BM_REG_RCR_PI_CINH) & (BM_RCR_SIZE - 1); portal 391 drivers/soc/fsl/qbman/bman.c rcr->vbit = (bm_in(portal, BM_REG_RCR_PI_CINH) & BM_RCR_SIZE) ? portal 395 drivers/soc/fsl/qbman/bman.c rcr->ithresh = bm_in(portal, BM_REG_RCR_ITR); portal 401 drivers/soc/fsl/qbman/bman.c cfg = (bm_in(portal, BM_REG_CFG) & 0xffffffe0) portal 403 drivers/soc/fsl/qbman/bman.c bm_out(portal, BM_REG_CFG, cfg); portal 407 drivers/soc/fsl/qbman/bman.c static void bm_rcr_finish(struct bm_portal *portal) portal 410 drivers/soc/fsl/qbman/bman.c struct bm_rcr *rcr = &portal->rcr; portal 415 drivers/soc/fsl/qbman/bman.c i = bm_in(portal, BM_REG_RCR_PI_CINH) & (BM_RCR_SIZE - 1); portal 419 drivers/soc/fsl/qbman/bman.c i = bm_in(portal, BM_REG_RCR_CI_CINH) & (BM_RCR_SIZE - 1); portal 428 drivers/soc/fsl/qbman/bman.c static int bm_mc_init(struct bm_portal *portal) portal 430 drivers/soc/fsl/qbman/bman.c struct bm_mc *mc = &portal->mc; portal 432 drivers/soc/fsl/qbman/bman.c mc->cr = portal->addr.ce + BM_CL_CR; portal 433 drivers/soc/fsl/qbman/bman.c mc->rr = portal->addr.ce + BM_CL_RR0; portal 443 drivers/soc/fsl/qbman/bman.c static void bm_mc_finish(struct bm_portal *portal) portal 446 drivers/soc/fsl/qbman/bman.c struct bm_mc *mc = &portal->mc; portal 454 drivers/soc/fsl/qbman/bman.c static inline struct bm_mc_command *bm_mc_start(struct bm_portal *portal) portal 456 drivers/soc/fsl/qbman/bman.c struct bm_mc *mc = &portal->mc; portal 466 drivers/soc/fsl/qbman/bman.c static inline void bm_mc_commit(struct bm_portal *portal, u8 myverb) portal 468 drivers/soc/fsl/qbman/bman.c struct bm_mc *mc = &portal->mc; portal 481 drivers/soc/fsl/qbman/bman.c static inline union bm_mc_result *bm_mc_result(struct bm_portal *portal) portal 483 drivers/soc/fsl/qbman/bman.c struct bm_mc *mc = &portal->mc; portal 504 drivers/soc/fsl/qbman/bman.c static inline int bm_mc_result_timeout(struct bm_portal *portal, portal 510 drivers/soc/fsl/qbman/bman.c *mcr = bm_mc_result(portal); portal 520 drivers/soc/fsl/qbman/bman.c static void bm_isr_bscn_disable(struct bm_portal *portal) portal 522 drivers/soc/fsl/qbman/bman.c bm_out(portal, BM_REG_SCN(0), 0); portal 523 drivers/soc/fsl/qbman/bman.c bm_out(portal, BM_REG_SCN(1), 0); portal 526 drivers/soc/fsl/qbman/bman.c static int bman_create_portal(struct bman_portal *portal, portal 532 drivers/soc/fsl/qbman/bman.c p = &portal->p; portal 557 drivers/soc/fsl/qbman/bman.c portal->irq_sources = 0; portal 560 drivers/soc/fsl/qbman/bman.c snprintf(portal->irqname, MAX_IRQNAME, IRQNAME, c->cpu); portal 561 drivers/soc/fsl/qbman/bman.c if (request_irq(c->irq, portal_isr, 0, portal->irqname, portal)) { portal 576 drivers/soc/fsl/qbman/bman.c portal->config = c; portal 585 drivers/soc/fsl/qbman/bman.c free_irq(c->irq, portal); portal 596 drivers/soc/fsl/qbman/bman.c struct bman_portal *portal; portal 599 drivers/soc/fsl/qbman/bman.c portal = &per_cpu(bman_affine_portal, c->cpu); portal 600 drivers/soc/fsl/qbman/bman.c err = bman_create_portal(portal, c); portal 608 drivers/soc/fsl/qbman/bman.c return portal; portal 817 drivers/soc/fsl/qbman/bman.c bman_get_bm_portal_config(const struct bman_portal *portal) portal 819 drivers/soc/fsl/qbman/bman.c return portal->config; portal 78 drivers/soc/fsl/qbman/bman_priv.h bman_get_bm_portal_config(const struct bman_portal *portal); portal 421 drivers/soc/fsl/qbman/qman.c static inline int qm_eqcr_init(struct qm_portal *portal, portal 426 drivers/soc/fsl/qbman/qman.c struct qm_eqcr *eqcr = &portal->eqcr; portal 430 drivers/soc/fsl/qbman/qman.c eqcr->ring = portal->addr.ce + QM_CL_EQCR; portal 431 drivers/soc/fsl/qbman/qman.c eqcr->ci = qm_in(portal, QM_REG_EQCR_CI_CINH) & (QM_EQCR_SIZE - 1); portal 432 drivers/soc/fsl/qbman/qman.c qm_cl_invalidate(portal, QM_CL_EQCR_CI_CENA); portal 433 drivers/soc/fsl/qbman/qman.c pi = qm_in(portal, QM_REG_EQCR_PI_CINH) & (QM_EQCR_SIZE - 1); portal 435 drivers/soc/fsl/qbman/qman.c eqcr->vbit = (qm_in(portal, QM_REG_EQCR_PI_CINH) & QM_EQCR_SIZE) ? portal 439 drivers/soc/fsl/qbman/qman.c eqcr->ithresh = qm_in(portal, QM_REG_EQCR_ITR); portal 444 drivers/soc/fsl/qbman/qman.c cfg = (qm_in(portal, QM_REG_CFG) & 0x00ffffff) | portal 448 drivers/soc/fsl/qbman/qman.c qm_out(portal, QM_REG_CFG, cfg); portal 452 drivers/soc/fsl/qbman/qman.c static inline unsigned int qm_eqcr_get_ci_stashing(struct qm_portal *portal) portal 454 drivers/soc/fsl/qbman/qman.c return (qm_in(portal, QM_REG_CFG) >> 28) & 0x7; portal 457 drivers/soc/fsl/qbman/qman.c static inline void qm_eqcr_finish(struct qm_portal *portal) portal 459 drivers/soc/fsl/qbman/qman.c struct qm_eqcr *eqcr = &portal->eqcr; portal 460 drivers/soc/fsl/qbman/qman.c u8 pi = qm_in(portal, QM_REG_EQCR_PI_CINH) & (QM_EQCR_SIZE - 1); portal 461 drivers/soc/fsl/qbman/qman.c u8 ci = qm_in(portal, QM_REG_EQCR_CI_CINH) & (QM_EQCR_SIZE - 1); portal 473 drivers/soc/fsl/qbman/qman.c *portal) portal 475 drivers/soc/fsl/qbman/qman.c struct qm_eqcr *eqcr = &portal->eqcr; portal 489 drivers/soc/fsl/qbman/qman.c *portal) portal 491 drivers/soc/fsl/qbman/qman.c struct qm_eqcr *eqcr = &portal->eqcr; portal 497 drivers/soc/fsl/qbman/qman.c eqcr->ci = qm_ce_in(portal, QM_CL_EQCR_CI_CENA) & portal 518 drivers/soc/fsl/qbman/qman.c static inline void qm_eqcr_pvb_commit(struct qm_portal *portal, u8 myverb) portal 520 drivers/soc/fsl/qbman/qman.c struct qm_eqcr *eqcr = &portal->eqcr; portal 536 drivers/soc/fsl/qbman/qman.c static inline void qm_eqcr_cce_prefetch(struct qm_portal *portal) portal 538 drivers/soc/fsl/qbman/qman.c qm_cl_touch_ro(portal, QM_CL_EQCR_CI_CENA); portal 541 drivers/soc/fsl/qbman/qman.c static inline u8 qm_eqcr_cce_update(struct qm_portal *portal) portal 543 drivers/soc/fsl/qbman/qman.c struct qm_eqcr *eqcr = &portal->eqcr; portal 546 drivers/soc/fsl/qbman/qman.c eqcr->ci = qm_ce_in(portal, QM_CL_EQCR_CI_CENA) & (QM_EQCR_SIZE - 1); portal 547 drivers/soc/fsl/qbman/qman.c qm_cl_invalidate(portal, QM_CL_EQCR_CI_CENA); portal 553 drivers/soc/fsl/qbman/qman.c static inline void qm_eqcr_set_ithresh(struct qm_portal *portal, u8 ithresh) portal 555 drivers/soc/fsl/qbman/qman.c struct qm_eqcr *eqcr = &portal->eqcr; portal 558 drivers/soc/fsl/qbman/qman.c qm_out(portal, QM_REG_EQCR_ITR, ithresh); portal 561 drivers/soc/fsl/qbman/qman.c static inline u8 qm_eqcr_get_avail(struct qm_portal *portal) portal 563 drivers/soc/fsl/qbman/qman.c struct qm_eqcr *eqcr = &portal->eqcr; portal 568 drivers/soc/fsl/qbman/qman.c static inline u8 qm_eqcr_get_fill(struct qm_portal *portal) portal 570 drivers/soc/fsl/qbman/qman.c struct qm_eqcr *eqcr = &portal->eqcr; portal 600 drivers/soc/fsl/qbman/qman.c static inline void qm_dqrr_set_maxfill(struct qm_portal *portal, u8 mf) portal 602 drivers/soc/fsl/qbman/qman.c qm_out(portal, QM_REG_CFG, (qm_in(portal, QM_REG_CFG) & 0xff0fffff) | portal 606 drivers/soc/fsl/qbman/qman.c static inline int qm_dqrr_init(struct qm_portal *portal, portal 612 drivers/soc/fsl/qbman/qman.c struct qm_dqrr *dqrr = &portal->dqrr; portal 616 drivers/soc/fsl/qbman/qman.c qm_out(portal, QM_REG_DQRR_SDQCR, 0); portal 617 drivers/soc/fsl/qbman/qman.c qm_out(portal, QM_REG_DQRR_VDQCR, 0); portal 618 drivers/soc/fsl/qbman/qman.c qm_out(portal, QM_REG_DQRR_PDQCR, 0); portal 619 drivers/soc/fsl/qbman/qman.c dqrr->ring = portal->addr.ce + QM_CL_DQRR; portal 620 drivers/soc/fsl/qbman/qman.c dqrr->pi = qm_in(portal, QM_REG_DQRR_PI_CINH) & (QM_DQRR_SIZE - 1); portal 621 drivers/soc/fsl/qbman/qman.c dqrr->ci = qm_in(portal, QM_REG_DQRR_CI_CINH) & (QM_DQRR_SIZE - 1); portal 624 drivers/soc/fsl/qbman/qman.c dqrr->vbit = (qm_in(portal, QM_REG_DQRR_PI_CINH) & QM_DQRR_SIZE) ? portal 626 drivers/soc/fsl/qbman/qman.c dqrr->ithresh = qm_in(portal, QM_REG_DQRR_ITR); portal 635 drivers/soc/fsl/qbman/qman.c cfg = (qm_in(portal, QM_REG_CFG) & 0xff000f00) | portal 642 drivers/soc/fsl/qbman/qman.c qm_out(portal, QM_REG_CFG, cfg); portal 643 drivers/soc/fsl/qbman/qman.c qm_dqrr_set_maxfill(portal, max_fill); portal 647 drivers/soc/fsl/qbman/qman.c static inline void qm_dqrr_finish(struct qm_portal *portal) portal 650 drivers/soc/fsl/qbman/qman.c struct qm_dqrr *dqrr = &portal->dqrr; portal 659 drivers/soc/fsl/qbman/qman.c struct qm_portal *portal) portal 661 drivers/soc/fsl/qbman/qman.c struct qm_dqrr *dqrr = &portal->dqrr; portal 668 drivers/soc/fsl/qbman/qman.c static inline u8 qm_dqrr_next(struct qm_portal *portal) portal 670 drivers/soc/fsl/qbman/qman.c struct qm_dqrr *dqrr = &portal->dqrr; portal 677 drivers/soc/fsl/qbman/qman.c static inline void qm_dqrr_pvb_update(struct qm_portal *portal) portal 679 drivers/soc/fsl/qbman/qman.c struct qm_dqrr *dqrr = &portal->dqrr; portal 698 drivers/soc/fsl/qbman/qman.c static inline void qm_dqrr_cdc_consume_1ptr(struct qm_portal *portal, portal 702 drivers/soc/fsl/qbman/qman.c __maybe_unused struct qm_dqrr *dqrr = &portal->dqrr; portal 708 drivers/soc/fsl/qbman/qman.c qm_out(portal, QM_REG_DQRR_DCAP, (0 << 8) | /* DQRR_DCAP::S */ portal 713 drivers/soc/fsl/qbman/qman.c static inline void qm_dqrr_cdc_consume_n(struct qm_portal *portal, u32 bitmask) portal 715 drivers/soc/fsl/qbman/qman.c __maybe_unused struct qm_dqrr *dqrr = &portal->dqrr; portal 718 drivers/soc/fsl/qbman/qman.c qm_out(portal, QM_REG_DQRR_DCAP, (1 << 8) | /* DQRR_DCAP::S */ portal 722 drivers/soc/fsl/qbman/qman.c static inline void qm_dqrr_sdqcr_set(struct qm_portal *portal, u32 sdqcr) portal 724 drivers/soc/fsl/qbman/qman.c qm_out(portal, QM_REG_DQRR_SDQCR, sdqcr); portal 727 drivers/soc/fsl/qbman/qman.c static inline void qm_dqrr_vdqcr_set(struct qm_portal *portal, u32 vdqcr) portal 729 drivers/soc/fsl/qbman/qman.c qm_out(portal, QM_REG_DQRR_VDQCR, vdqcr); portal 732 drivers/soc/fsl/qbman/qman.c static inline int qm_dqrr_set_ithresh(struct qm_portal *portal, u8 ithresh) portal 738 drivers/soc/fsl/qbman/qman.c qm_out(portal, QM_REG_DQRR_ITR, ithresh); portal 767 drivers/soc/fsl/qbman/qman.c static inline int qm_mr_init(struct qm_portal *portal, enum qm_mr_pmode pmode, portal 770 drivers/soc/fsl/qbman/qman.c struct qm_mr *mr = &portal->mr; portal 773 drivers/soc/fsl/qbman/qman.c mr->ring = portal->addr.ce + QM_CL_MR; portal 774 drivers/soc/fsl/qbman/qman.c mr->pi = qm_in(portal, QM_REG_MR_PI_CINH) & (QM_MR_SIZE - 1); portal 775 drivers/soc/fsl/qbman/qman.c mr->ci = qm_in(portal, QM_REG_MR_CI_CINH) & (QM_MR_SIZE - 1); portal 778 drivers/soc/fsl/qbman/qman.c mr->vbit = (qm_in(portal, QM_REG_MR_PI_CINH) & QM_MR_SIZE) portal 780 drivers/soc/fsl/qbman/qman.c mr->ithresh = qm_in(portal, QM_REG_MR_ITR); portal 785 drivers/soc/fsl/qbman/qman.c cfg = (qm_in(portal, QM_REG_CFG) & 0xfffff0ff) | portal 787 drivers/soc/fsl/qbman/qman.c qm_out(portal, QM_REG_CFG, cfg); portal 791 drivers/soc/fsl/qbman/qman.c static inline void qm_mr_finish(struct qm_portal *portal) portal 793 drivers/soc/fsl/qbman/qman.c struct qm_mr *mr = &portal->mr; portal 799 drivers/soc/fsl/qbman/qman.c static inline const union qm_mr_entry *qm_mr_current(struct qm_portal *portal) portal 801 drivers/soc/fsl/qbman/qman.c struct qm_mr *mr = &portal->mr; portal 808 drivers/soc/fsl/qbman/qman.c static inline int qm_mr_next(struct qm_portal *portal) portal 810 drivers/soc/fsl/qbman/qman.c struct qm_mr *mr = &portal->mr; portal 817 drivers/soc/fsl/qbman/qman.c static inline void qm_mr_pvb_update(struct qm_portal *portal) portal 819 drivers/soc/fsl/qbman/qman.c struct qm_mr *mr = &portal->mr; portal 834 drivers/soc/fsl/qbman/qman.c static inline void qm_mr_cci_consume(struct qm_portal *portal, u8 num) portal 836 drivers/soc/fsl/qbman/qman.c struct qm_mr *mr = &portal->mr; portal 840 drivers/soc/fsl/qbman/qman.c qm_out(portal, QM_REG_MR_CI_CINH, mr->ci); portal 843 drivers/soc/fsl/qbman/qman.c static inline void qm_mr_cci_consume_to_current(struct qm_portal *portal) portal 845 drivers/soc/fsl/qbman/qman.c struct qm_mr *mr = &portal->mr; portal 849 drivers/soc/fsl/qbman/qman.c qm_out(portal, QM_REG_MR_CI_CINH, mr->ci); portal 852 drivers/soc/fsl/qbman/qman.c static inline void qm_mr_set_ithresh(struct qm_portal *portal, u8 ithresh) portal 854 drivers/soc/fsl/qbman/qman.c qm_out(portal, QM_REG_MR_ITR, ithresh); portal 859 drivers/soc/fsl/qbman/qman.c static inline int qm_mc_init(struct qm_portal *portal) portal 862 drivers/soc/fsl/qbman/qman.c struct qm_mc *mc = &portal->mc; portal 864 drivers/soc/fsl/qbman/qman.c mc->cr = portal->addr.ce + QM_CL_CR; portal 865 drivers/soc/fsl/qbman/qman.c mc->rr = portal->addr.ce + QM_CL_RR0; portal 886 drivers/soc/fsl/qbman/qman.c static inline void qm_mc_finish(struct qm_portal *portal) portal 889 drivers/soc/fsl/qbman/qman.c struct qm_mc *mc = &portal->mc; portal 897 drivers/soc/fsl/qbman/qman.c static inline union qm_mc_command *qm_mc_start(struct qm_portal *portal) portal 899 drivers/soc/fsl/qbman/qman.c struct qm_mc *mc = &portal->mc; portal 909 drivers/soc/fsl/qbman/qman.c static inline void qm_mc_commit(struct qm_portal *portal, u8 myverb) portal 911 drivers/soc/fsl/qbman/qman.c struct qm_mc *mc = &portal->mc; portal 924 drivers/soc/fsl/qbman/qman.c static inline union qm_mc_result *qm_mc_result(struct qm_portal *portal) portal 926 drivers/soc/fsl/qbman/qman.c struct qm_mc *mc = &portal->mc; portal 947 drivers/soc/fsl/qbman/qman.c static inline int qm_mc_result_timeout(struct qm_portal *portal, portal 953 drivers/soc/fsl/qbman/qman.c *mcr = qm_mc_result(portal); portal 1037 drivers/soc/fsl/qbman/qman.c int qman_dqrr_set_ithresh(struct qman_portal *portal, u8 ithresh) portal 1041 drivers/soc/fsl/qbman/qman.c if (!portal) portal 1044 drivers/soc/fsl/qbman/qman.c res = qm_dqrr_set_ithresh(&portal->p, ithresh); portal 1048 drivers/soc/fsl/qbman/qman.c portal->p.dqrr.ithresh = ithresh; portal 1054 drivers/soc/fsl/qbman/qman.c void qman_dqrr_get_ithresh(struct qman_portal *portal, u8 *ithresh) portal 1056 drivers/soc/fsl/qbman/qman.c if (portal && ithresh) portal 1057 drivers/soc/fsl/qbman/qman.c *ithresh = qm_in(&portal->p, QM_REG_DQRR_ITR); portal 1061 drivers/soc/fsl/qbman/qman.c void qman_portal_get_iperiod(struct qman_portal *portal, u32 *iperiod) portal 1063 drivers/soc/fsl/qbman/qman.c if (portal && iperiod) portal 1064 drivers/soc/fsl/qbman/qman.c *iperiod = qm_in(&portal->p, QM_REG_ITPR); portal 1068 drivers/soc/fsl/qbman/qman.c int qman_portal_set_iperiod(struct qman_portal *portal, u32 iperiod) portal 1070 drivers/soc/fsl/qbman/qman.c if (!portal || iperiod > QMAN_ITP_MAX) portal 1073 drivers/soc/fsl/qbman/qman.c qm_out(&portal->p, QM_REG_ITPR, iperiod); portal 1228 drivers/soc/fsl/qbman/qman.c static int qman_create_portal(struct qman_portal *portal, portal 1236 drivers/soc/fsl/qbman/qman.c p = &portal->p; portal 1240 drivers/soc/fsl/qbman/qman.c portal->use_eqcr_ci_stashing = ((qman_ip_rev >= QMAN_REV30) ? 1 : 0); portal 1242 drivers/soc/fsl/qbman/qman.c portal->use_eqcr_ci_stashing = 0; portal 1257 drivers/soc/fsl/qbman/qman.c portal->use_eqcr_ci_stashing ? 3 : 0, 1)) { portal 1278 drivers/soc/fsl/qbman/qman.c portal->cgrs = kmalloc_array(2, sizeof(*cgrs), GFP_KERNEL); portal 1279 drivers/soc/fsl/qbman/qman.c if (!portal->cgrs) portal 1282 drivers/soc/fsl/qbman/qman.c qman_cgrs_init(&portal->cgrs[1]); portal 1284 drivers/soc/fsl/qbman/qman.c portal->cgrs[0] = *cgrs; portal 1287 drivers/soc/fsl/qbman/qman.c qman_cgrs_fill(&portal->cgrs[0]); portal 1288 drivers/soc/fsl/qbman/qman.c INIT_LIST_HEAD(&portal->cgr_cbs); portal 1289 drivers/soc/fsl/qbman/qman.c spin_lock_init(&portal->cgr_lock); portal 1290 drivers/soc/fsl/qbman/qman.c INIT_WORK(&portal->congestion_work, qm_congestion_task); portal 1291 drivers/soc/fsl/qbman/qman.c INIT_WORK(&portal->mr_work, qm_mr_process_task); portal 1292 drivers/soc/fsl/qbman/qman.c portal->bits = 0; portal 1293 drivers/soc/fsl/qbman/qman.c portal->sdqcr = QM_SDQCR_SOURCE_CHANNELS | QM_SDQCR_COUNT_UPTO3 | portal 1298 drivers/soc/fsl/qbman/qman.c portal->irq_sources = 0; portal 1300 drivers/soc/fsl/qbman/qman.c snprintf(portal->irqname, MAX_IRQNAME, IRQNAME, c->cpu); portal 1302 drivers/soc/fsl/qbman/qman.c if (request_irq(c->irq, portal_isr, 0, portal->irqname, portal)) { portal 1333 drivers/soc/fsl/qbman/qman.c portal->config = c; portal 1339 drivers/soc/fsl/qbman/qman.c qm_dqrr_sdqcr_set(p, portal->sdqcr); portal 1345 drivers/soc/fsl/qbman/qman.c free_irq(c->irq, portal); portal 1347 drivers/soc/fsl/qbman/qman.c kfree(portal->cgrs); portal 1363 drivers/soc/fsl/qbman/qman.c struct qman_portal *portal; portal 1366 drivers/soc/fsl/qbman/qman.c portal = &per_cpu(qman_affine_portal, c->cpu); portal 1367 drivers/soc/fsl/qbman/qman.c err = qman_create_portal(portal, c, cgrs); portal 1374 drivers/soc/fsl/qbman/qman.c affine_portals[c->cpu] = portal; portal 1377 drivers/soc/fsl/qbman/qman.c return portal; portal 1736 drivers/soc/fsl/qbman/qman.c struct qman_portal *portal = get_affine_portal(); portal 1738 drivers/soc/fsl/qbman/qman.c cpu = portal->config->cpu; portal 2828 drivers/soc/fsl/qbman/qman.c struct qman_portal *portal) portal 2830 drivers/soc/fsl/qbman/qman.c return portal->config; portal 299 drivers/soc/fsl/qbman/qman_ccsr.c static void qm_set_dc(enum qm_dc_portal portal, int ed, u8 sernd) portal 301 drivers/soc/fsl/qbman/qman_ccsr.c DPAA_ASSERT(!ed || portal == qm_dc_portal_fman0 || portal 302 drivers/soc/fsl/qbman/qman_ccsr.c portal == qm_dc_portal_fman1); portal 304 drivers/soc/fsl/qbman/qman_ccsr.c qm_ccsr_out(REG_DCP_CFG(portal), portal 307 drivers/soc/fsl/qbman/qman_ccsr.c qm_ccsr_out(REG_DCP_CFG(portal), portal 274 drivers/soc/fsl/qbman/qman_priv.h struct qman_portal *portal); portal 276 drivers/soc/fsl/qbman/qman_test_stash.c static enum qman_cb_dqrr_result normal_dqrr(struct qman_portal *portal, portal 294 drivers/soc/fsl/qbman/qman_test_stash.c static enum qman_cb_dqrr_result special_dqrr(struct qman_portal *portal,