Lines Matching refs:opts

146 dpaa_poll_queue_default_config(struct qm_mcc_initfq *opts)  in dpaa_poll_queue_default_config()  argument
148 memset(opts, 0, sizeof(struct qm_mcc_initfq)); in dpaa_poll_queue_default_config()
149 opts->we_mask = QM_INITFQ_WE_FQCTRL | QM_INITFQ_WE_CONTEXTA; in dpaa_poll_queue_default_config()
150 opts->fqd.fq_ctrl = QM_FQCTRL_AVOIDBLOCK | QM_FQCTRL_CTXASTASHING | in dpaa_poll_queue_default_config()
152 opts->fqd.context_a.stashing.exclusive = 0; in dpaa_poll_queue_default_config()
154 opts->fqd.context_a.stashing.annotation_cl = in dpaa_poll_queue_default_config()
156 opts->fqd.context_a.stashing.data_cl = DPAA_IF_RX_DATA_STASH; in dpaa_poll_queue_default_config()
157 opts->fqd.context_a.stashing.context_cl = DPAA_IF_RX_CONTEXT_STASH; in dpaa_poll_queue_default_config()
928 struct qm_mcc_initfq opts = {0}; in dpaa_eth_rx_queue_setup() local
1038 opts.we_mask = QM_INITFQ_WE_FQCTRL | QM_INITFQ_WE_CONTEXTA; in dpaa_eth_rx_queue_setup()
1039 opts.fqd.fq_ctrl = QM_FQCTRL_AVOIDBLOCK | in dpaa_eth_rx_queue_setup()
1042 opts.fqd.context_a.stashing.exclusive = 0; in dpaa_eth_rx_queue_setup()
1047 opts.fqd.context_a.stashing.annotation_cl = in dpaa_eth_rx_queue_setup()
1049 opts.fqd.context_a.stashing.data_cl = DPAA_IF_RX_DATA_STASH; in dpaa_eth_rx_queue_setup()
1050 opts.fqd.context_a.stashing.context_cl = in dpaa_eth_rx_queue_setup()
1055 opts.we_mask = opts.we_mask | QM_INITFQ_WE_DESTWQ; in dpaa_eth_rx_queue_setup()
1056 opts.fqd.dest.channel = rxq->ch_id; in dpaa_eth_rx_queue_setup()
1057 opts.fqd.dest.wq = DPAA_IF_RX_PRIORITY; in dpaa_eth_rx_queue_setup()
1062 opts.we_mask |= QM_INITFQ_WE_CGID; in dpaa_eth_rx_queue_setup()
1063 opts.fqd.cgid = dpaa_intf->cgr_rx[queue_idx].cgrid; in dpaa_eth_rx_queue_setup()
1064 opts.fqd.fq_ctrl |= QM_FQCTRL_CGE; in dpaa_eth_rx_queue_setup()
1066 ret = qman_init_fq(rxq, flags, &opts); in dpaa_eth_rx_queue_setup()
1156 struct qm_mcc_initfq opts = {0}; in dpaa_eth_eventq_attach() local
1164 dpaa_poll_queue_default_config(&opts); in dpaa_eth_eventq_attach()
1168 opts.fqd.fq_ctrl |= QM_FQCTRL_HOLDACTIVE; in dpaa_eth_eventq_attach()
1172 opts.fqd.fq_ctrl &= (~QM_FQCTRL_AVOIDBLOCK); in dpaa_eth_eventq_attach()
1179 opts.fqd.fq_ctrl |= QM_FQCTRL_AVOIDBLOCK; in dpaa_eth_eventq_attach()
1184 opts.we_mask = opts.we_mask | QM_INITFQ_WE_DESTWQ; in dpaa_eth_eventq_attach()
1185 opts.fqd.dest.channel = ch_id; in dpaa_eth_eventq_attach()
1186 opts.fqd.dest.wq = queue_conf->ev.priority; in dpaa_eth_eventq_attach()
1189 opts.we_mask |= QM_INITFQ_WE_CGID; in dpaa_eth_eventq_attach()
1190 opts.fqd.cgid = dpaa_intf->cgr_rx[eth_rx_queue_id].cgrid; in dpaa_eth_eventq_attach()
1191 opts.fqd.fq_ctrl |= QM_FQCTRL_CGE; in dpaa_eth_eventq_attach()
1196 ret = qman_init_fq(rxq, flags, &opts); in dpaa_eth_eventq_attach()
1214 struct qm_mcc_initfq opts = {0}; in dpaa_eth_eventq_detach() local
1222 ret = qman_init_fq(rxq, flags, &opts); in dpaa_eth_eventq_detach()
1663 struct qm_mcc_initfq opts = {0}; in dpaa_rx_queue_init() local
1694 dpaa_poll_queue_default_config(&opts); in dpaa_rx_queue_init()
1708 opts.we_mask |= QM_INITFQ_WE_CGID; in dpaa_rx_queue_init()
1709 opts.fqd.cgid = cgr_rx->cgrid; in dpaa_rx_queue_init()
1710 opts.fqd.fq_ctrl |= QM_FQCTRL_CGE; in dpaa_rx_queue_init()
1713 ret = qman_init_fq(fq, 0, &opts); in dpaa_rx_queue_init()
1724 struct qm_mcc_initfq opts = {0}; in dpaa_tx_queue_init() local
1742 opts.we_mask = QM_INITFQ_WE_DESTWQ | QM_INITFQ_WE_FQCTRL | in dpaa_tx_queue_init()
1744 opts.fqd.dest.channel = fman_intf->tx_channel_id; in dpaa_tx_queue_init()
1745 opts.fqd.dest.wq = DPAA_IF_TX_PRIORITY; in dpaa_tx_queue_init()
1746 opts.fqd.fq_ctrl = QM_FQCTRL_PREFERINCACHE; in dpaa_tx_queue_init()
1747 opts.fqd.context_b = 0; in dpaa_tx_queue_init()
1749 opts.fqd.context_a.hi = 0x80000000 | fman_dealloc_bufs_mask_hi; in dpaa_tx_queue_init()
1750 opts.fqd.context_a.lo = 0 | fman_dealloc_bufs_mask_lo; in dpaa_tx_queue_init()
1753 opts.fqd.context_a.hi |= 0x04000000; in dpaa_tx_queue_init()
1770 opts.we_mask |= QM_INITFQ_WE_CGID; in dpaa_tx_queue_init()
1771 opts.fqd.cgid = cgr_tx->cgrid; in dpaa_tx_queue_init()
1772 opts.fqd.fq_ctrl |= QM_FQCTRL_CGE; in dpaa_tx_queue_init()
1777 ret = qman_init_fq(fq, QMAN_INITFQ_FLAG_SCHED, &opts); in dpaa_tx_queue_init()
1787 struct qm_mcc_initfq opts = {0}; in dpaa_debug_queue_init() local
1806 opts.we_mask = QM_INITFQ_WE_DESTWQ | QM_INITFQ_WE_FQCTRL; in dpaa_debug_queue_init()
1807 opts.fqd.dest.wq = DPAA_IF_DEBUG_PRIORITY; in dpaa_debug_queue_init()
1808 ret = qman_init_fq(fq, 0, &opts); in dpaa_debug_queue_init()