Lines Matching refs:fq
661 napi_enable(ðsw->fq[i].napi); in dpaa2_switch_enable_ctrl_if_napi()
677 napi_disable(ðsw->fq[i].napi); in dpaa2_switch_disable_ctrl_if_napi()
2375 static void dpaa2_switch_tx_conf(struct dpaa2_switch_fq *fq, in dpaa2_switch_tx_conf() argument
2378 dpaa2_switch_free_fd(fq->ethsw, fd); in dpaa2_switch_tx_conf()
2381 static void dpaa2_switch_rx(struct dpaa2_switch_fq *fq, in dpaa2_switch_rx() argument
2384 struct ethsw_core *ethsw = fq->ethsw; in dpaa2_switch_rx()
2468 ethsw->fq[i].fqid = ctrl_if_attr.rx_fqid; in dpaa2_switch_setup_fqs()
2469 ethsw->fq[i].ethsw = ethsw; in dpaa2_switch_setup_fqs()
2470 ethsw->fq[i++].type = DPSW_QUEUE_RX; in dpaa2_switch_setup_fqs()
2472 ethsw->fq[i].fqid = ctrl_if_attr.tx_err_conf_fqid; in dpaa2_switch_setup_fqs()
2473 ethsw->fq[i].ethsw = ethsw; in dpaa2_switch_setup_fqs()
2474 ethsw->fq[i++].type = DPSW_QUEUE_TX_ERR_CONF; in dpaa2_switch_setup_fqs()
2701 ethsw->fq[i].store = in dpaa2_switch_alloc_rings()
2704 if (!ethsw->fq[i].store) { in dpaa2_switch_alloc_rings()
2707 dpaa2_io_store_destroy(ethsw->fq[i].store); in dpaa2_switch_alloc_rings()
2720 dpaa2_io_store_destroy(ethsw->fq[i].store); in dpaa2_switch_destroy_rings()
2723 static int dpaa2_switch_pull_fq(struct dpaa2_switch_fq *fq) in dpaa2_switch_pull_fq() argument
2731 err = dpaa2_io_service_pull_fq(NULL, fq->fqid, fq->store); in dpaa2_switch_pull_fq()
2736 dev_err(fq->ethsw->dev, "dpaa2_io_service_pull err %d", err); in dpaa2_switch_pull_fq()
2742 static int dpaa2_switch_store_consume(struct dpaa2_switch_fq *fq) in dpaa2_switch_store_consume() argument
2744 struct ethsw_core *ethsw = fq->ethsw; in dpaa2_switch_store_consume()
2751 dq = dpaa2_io_store_next(fq->store, &is_last); in dpaa2_switch_store_consume()
2761 if (fq->type == DPSW_QUEUE_RX) in dpaa2_switch_store_consume()
2762 dpaa2_switch_rx(fq, dpaa2_dq_fd(dq)); in dpaa2_switch_store_consume()
2764 dpaa2_switch_tx_conf(fq, dpaa2_dq_fd(dq)); in dpaa2_switch_store_consume()
2776 struct dpaa2_switch_fq *fq; in dpaa2_switch_poll() local
2779 fq = container_of(napi, struct dpaa2_switch_fq, napi); in dpaa2_switch_poll()
2782 err = dpaa2_switch_pull_fq(fq); in dpaa2_switch_poll()
2787 dpaa2_switch_refill_bp(fq->ethsw); in dpaa2_switch_poll()
2789 store_cleaned = dpaa2_switch_store_consume(fq); in dpaa2_switch_poll()
2804 err = dpaa2_io_service_rearm(NULL, &fq->nctx); in dpaa2_switch_poll()
2816 struct dpaa2_switch_fq *fq; in dpaa2_switch_fqdan_cb() local
2818 fq = container_of(nctx, struct dpaa2_switch_fq, nctx); in dpaa2_switch_fqdan_cb()
2820 napi_schedule(&fq->napi); in dpaa2_switch_fqdan_cb()
2830 nctx = ðsw->fq[i].nctx; in dpaa2_switch_setup_dpio()
2837 nctx->id = ethsw->fq[i].fqid; in dpaa2_switch_setup_dpio()
2855 ethsw->fq[i].type, in dpaa2_switch_setup_dpio()
2867 dpaa2_io_service_deregister(NULL, ðsw->fq[j].nctx, in dpaa2_switch_setup_dpio()
2878 dpaa2_io_service_deregister(NULL, ðsw->fq[i].nctx, in dpaa2_switch_free_dpio()
3372 ðsw->fq[i].napi, dpaa2_switch_poll, in dpaa2_switch_probe()