Lines Matching refs:swp
24 struct qbman_swp *swp; member
48 struct qbman_swp *swp; /* portal used to issue VDQCR */ member
160 obj->swp = qbman_swp_init(&obj->swp_desc); in dpaa2_io_create()
162 if (!obj->swp) { in dpaa2_io_create()
174 qbman_swp_interrupt_set_trigger(obj->swp, in dpaa2_io_create()
176 qbman_swp_interrupt_clear_status(obj->swp, 0xffffffff); in dpaa2_io_create()
178 qbman_swp_push_set(obj->swp, 0, 1); in dpaa2_io_create()
230 struct qbman_swp *swp; in dpaa2_io_irq() local
235 swp = obj->swp; in dpaa2_io_irq()
236 status = qbman_swp_interrupt_read_status(swp); in dpaa2_io_irq()
240 dq = qbman_swp_dqrr_next(swp); in dpaa2_io_irq()
252 qbman_swp_dqrr_consume(swp, dq); in dpaa2_io_irq()
256 dq = qbman_swp_dqrr_next(swp); in dpaa2_io_irq()
259 qbman_swp_interrupt_clear_status(swp, status); in dpaa2_io_irq()
260 qbman_swp_interrupt_set_inhibit(swp, 0); in dpaa2_io_irq()
320 return qbman_swp_CDAN_set_context_enable(d->swp, in dpaa2_io_service_register()
344 qbman_swp_CDAN_disable(d->swp, (u16)ctx->id); in dpaa2_io_service_deregister()
378 err = qbman_swp_CDAN_enable(d->swp, (u16)ctx->id); in dpaa2_io_service_rearm()
380 err = qbman_swp_fq_schedule(d->swp, ctx->id); in dpaa2_io_service_rearm()
409 s->swp = d->swp; in dpaa2_io_service_pull_fq()
410 err = qbman_swp_pull(d->swp, &pd); in dpaa2_io_service_pull_fq()
412 s->swp = NULL; in dpaa2_io_service_pull_fq()
441 s->swp = d->swp; in dpaa2_io_service_pull_channel()
442 err = qbman_swp_pull(d->swp, &pd); in dpaa2_io_service_pull_channel()
444 s->swp = NULL; in dpaa2_io_service_pull_channel()
473 return qbman_swp_enqueue(d->swp, &ed, fd); in dpaa2_io_service_enqueue_fq()
503 return qbman_swp_enqueue_multiple(d->swp, &ed, fd, NULL, nb); in dpaa2_io_service_enqueue_multiple_fq()
542 ret = qbman_swp_enqueue_multiple_desc(d->swp, &ed[0], fd, nb); in dpaa2_io_service_enqueue_multiple_desc_fq()
574 return qbman_swp_enqueue(d->swp, &ed, fd); in dpaa2_io_service_enqueue_qd()
601 return qbman_swp_release(d->swp, &rd, buffers, num_buffers); in dpaa2_io_service_release()
629 err = qbman_swp_acquire(d->swp, bpid, buffers, num_buffers); in dpaa2_io_service_acquire()
726 match = qbman_result_has_new_result(s->swp, ret); in dpaa2_io_store_next()
769 struct qbman_swp *swp; in dpaa2_io_query_fq_count() local
777 swp = d->swp; in dpaa2_io_query_fq_count()
779 ret = qbman_fq_query_state(swp, fqid, &state); in dpaa2_io_query_fq_count()
802 struct qbman_swp *swp; in dpaa2_io_query_bp_count() local
810 swp = d->swp; in dpaa2_io_query_bp_count()
812 ret = qbman_bp_query(swp, bpid, &state); in dpaa2_io_query_bp_count()
830 struct qbman_swp *swp = d->swp; in dpaa2_io_set_irq_coalescing() local
832 return qbman_swp_set_irq_coalescing(swp, swp->dqrr.dqrr_size - 1, in dpaa2_io_set_irq_coalescing()
844 struct qbman_swp *swp = d->swp; in dpaa2_io_get_irq_coalescing() local
846 qbman_swp_get_irq_coalescing(swp, NULL, irq_holdoff); in dpaa2_io_get_irq_coalescing()
858 d->swp->use_adaptive_rx_coalesce = use_adaptive_rx_coalesce; in dpaa2_io_set_adaptive_coalescing()
871 return d->swp->use_adaptive_rx_coalesce; in dpaa2_io_get_adaptive_coalescing()
885 if (!d->swp->use_adaptive_rx_coalesce) in dpaa2_io_update_net_dim()