Lines Matching refs:opts
144 dpaa_poll_queue_default_config(struct qm_mcc_initfq *opts) in dpaa_poll_queue_default_config() argument
146 memset(opts, 0, sizeof(struct qm_mcc_initfq)); in dpaa_poll_queue_default_config()
147 opts->we_mask = QM_INITFQ_WE_FQCTRL | QM_INITFQ_WE_CONTEXTA; in dpaa_poll_queue_default_config()
148 opts->fqd.fq_ctrl = QM_FQCTRL_AVOIDBLOCK | QM_FQCTRL_CTXASTASHING | in dpaa_poll_queue_default_config()
150 opts->fqd.context_a.stashing.exclusive = 0; in dpaa_poll_queue_default_config()
152 opts->fqd.context_a.stashing.annotation_cl = in dpaa_poll_queue_default_config()
154 opts->fqd.context_a.stashing.data_cl = DPAA_IF_RX_DATA_STASH; in dpaa_poll_queue_default_config()
155 opts->fqd.context_a.stashing.context_cl = DPAA_IF_RX_CONTEXT_STASH; in dpaa_poll_queue_default_config()
929 struct qm_mcc_initfq opts = {0}; in dpaa_eth_rx_queue_setup() local
1034 opts.we_mask = QM_INITFQ_WE_FQCTRL | QM_INITFQ_WE_CONTEXTA; in dpaa_eth_rx_queue_setup()
1035 opts.fqd.fq_ctrl = QM_FQCTRL_AVOIDBLOCK | in dpaa_eth_rx_queue_setup()
1038 opts.fqd.context_a.stashing.exclusive = 0; in dpaa_eth_rx_queue_setup()
1043 opts.fqd.context_a.stashing.annotation_cl = in dpaa_eth_rx_queue_setup()
1045 opts.fqd.context_a.stashing.data_cl = DPAA_IF_RX_DATA_STASH; in dpaa_eth_rx_queue_setup()
1046 opts.fqd.context_a.stashing.context_cl = in dpaa_eth_rx_queue_setup()
1051 opts.we_mask = opts.we_mask | QM_INITFQ_WE_DESTWQ; in dpaa_eth_rx_queue_setup()
1052 opts.fqd.dest.channel = rxq->ch_id; in dpaa_eth_rx_queue_setup()
1053 opts.fqd.dest.wq = DPAA_IF_RX_PRIORITY; in dpaa_eth_rx_queue_setup()
1058 opts.we_mask |= QM_INITFQ_WE_CGID; in dpaa_eth_rx_queue_setup()
1059 opts.fqd.cgid = dpaa_intf->cgr_rx[queue_idx].cgrid; in dpaa_eth_rx_queue_setup()
1060 opts.fqd.fq_ctrl |= QM_FQCTRL_CGE; in dpaa_eth_rx_queue_setup()
1062 ret = qman_init_fq(rxq, flags, &opts); in dpaa_eth_rx_queue_setup()
1140 struct qm_mcc_initfq opts = {0}; in dpaa_eth_eventq_attach() local
1148 dpaa_poll_queue_default_config(&opts); in dpaa_eth_eventq_attach()
1152 opts.fqd.fq_ctrl |= QM_FQCTRL_HOLDACTIVE; in dpaa_eth_eventq_attach()
1156 opts.fqd.fq_ctrl &= (~QM_FQCTRL_AVOIDBLOCK); in dpaa_eth_eventq_attach()
1163 opts.fqd.fq_ctrl |= QM_FQCTRL_AVOIDBLOCK; in dpaa_eth_eventq_attach()
1168 opts.we_mask = opts.we_mask | QM_INITFQ_WE_DESTWQ; in dpaa_eth_eventq_attach()
1169 opts.fqd.dest.channel = ch_id; in dpaa_eth_eventq_attach()
1170 opts.fqd.dest.wq = queue_conf->ev.priority; in dpaa_eth_eventq_attach()
1173 opts.we_mask |= QM_INITFQ_WE_CGID; in dpaa_eth_eventq_attach()
1174 opts.fqd.cgid = dpaa_intf->cgr_rx[eth_rx_queue_id].cgrid; in dpaa_eth_eventq_attach()
1175 opts.fqd.fq_ctrl |= QM_FQCTRL_CGE; in dpaa_eth_eventq_attach()
1180 ret = qman_init_fq(rxq, flags, &opts); in dpaa_eth_eventq_attach()
1198 struct qm_mcc_initfq opts; in dpaa_eth_eventq_detach() local
1204 dpaa_poll_queue_default_config(&opts); in dpaa_eth_eventq_detach()
1207 opts.we_mask |= QM_INITFQ_WE_CGID; in dpaa_eth_eventq_detach()
1208 opts.fqd.cgid = dpaa_intf->cgr_rx[eth_rx_queue_id].cgrid; in dpaa_eth_eventq_detach()
1209 opts.fqd.fq_ctrl |= QM_FQCTRL_CGE; in dpaa_eth_eventq_detach()
1212 ret = qman_init_fq(rxq, flags, &opts); in dpaa_eth_eventq_detach()
1660 struct qm_mcc_initfq opts = {0}; in dpaa_rx_queue_init() local
1691 dpaa_poll_queue_default_config(&opts); in dpaa_rx_queue_init()
1705 opts.we_mask |= QM_INITFQ_WE_CGID; in dpaa_rx_queue_init()
1706 opts.fqd.cgid = cgr_rx->cgrid; in dpaa_rx_queue_init()
1707 opts.fqd.fq_ctrl |= QM_FQCTRL_CGE; in dpaa_rx_queue_init()
1710 ret = qman_init_fq(fq, 0, &opts); in dpaa_rx_queue_init()
1721 struct qm_mcc_initfq opts = {0}; in dpaa_tx_queue_init() local
1739 opts.we_mask = QM_INITFQ_WE_DESTWQ | QM_INITFQ_WE_FQCTRL | in dpaa_tx_queue_init()
1741 opts.fqd.dest.channel = fman_intf->tx_channel_id; in dpaa_tx_queue_init()
1742 opts.fqd.dest.wq = DPAA_IF_TX_PRIORITY; in dpaa_tx_queue_init()
1743 opts.fqd.fq_ctrl = QM_FQCTRL_PREFERINCACHE; in dpaa_tx_queue_init()
1744 opts.fqd.context_b = 0; in dpaa_tx_queue_init()
1746 opts.fqd.context_a.hi = 0x80000000 | fman_dealloc_bufs_mask_hi; in dpaa_tx_queue_init()
1747 opts.fqd.context_a.lo = 0 | fman_dealloc_bufs_mask_lo; in dpaa_tx_queue_init()
1763 opts.we_mask |= QM_INITFQ_WE_CGID; in dpaa_tx_queue_init()
1764 opts.fqd.cgid = cgr_tx->cgrid; in dpaa_tx_queue_init()
1765 opts.fqd.fq_ctrl |= QM_FQCTRL_CGE; in dpaa_tx_queue_init()
1770 ret = qman_init_fq(fq, QMAN_INITFQ_FLAG_SCHED, &opts); in dpaa_tx_queue_init()
1780 struct qm_mcc_initfq opts = {0}; in dpaa_debug_queue_init() local
1799 opts.we_mask = QM_INITFQ_WE_DESTWQ | QM_INITFQ_WE_FQCTRL; in dpaa_debug_queue_init()
1800 opts.fqd.dest.wq = DPAA_IF_DEBUG_PRIORITY; in dpaa_debug_queue_init()
1801 ret = qman_init_fq(fq, 0, &opts); in dpaa_debug_queue_init()