Lines Matching refs:buf_count
500 static bool bad_buf_count(unsigned buf_count, unsigned max_entry_count) in bad_buf_count() argument
505 return ((buf_count & (buf_count - 1)) || buf_count > max_buf_count); in bad_buf_count()
535 unsigned buf_count = req->u.init_evq.buf_count; in efx_vfdi_init_evq() local
541 bad_buf_count(buf_count, EFX_MAX_VF_EVQ_SIZE)) { in efx_vfdi_init_evq()
545 vf->pci_name, vf_evq, buf_count); in efx_vfdi_init_evq()
549 efx_siena_sriov_bufs(efx, buftbl, req->u.init_evq.addr, buf_count); in efx_vfdi_init_evq()
558 FRF_AZ_EVQ_SIZE, __ffs(buf_count), in efx_vfdi_init_evq()
564 buf_count * sizeof(u64)); in efx_vfdi_init_evq()
565 vf->evq0_count = buf_count; in efx_vfdi_init_evq()
577 unsigned buf_count = req->u.init_rxq.buf_count; in efx_vfdi_init_rxq() local
584 bad_buf_count(buf_count, EFX_MAX_DMAQ_SIZE)) { in efx_vfdi_init_rxq()
589 vf_evq, buf_count); in efx_vfdi_init_rxq()
594 efx_siena_sriov_bufs(efx, buftbl, req->u.init_rxq.addr, buf_count); in efx_vfdi_init_rxq()
601 FRF_AZ_RX_DESCQ_SIZE, __ffs(buf_count), in efx_vfdi_init_rxq()
618 unsigned buf_count = req->u.init_txq.buf_count; in efx_vfdi_init_txq() local
625 bad_buf_count(buf_count, EFX_MAX_DMAQ_SIZE)) { in efx_vfdi_init_txq()
630 vf_evq, buf_count); in efx_vfdi_init_txq()
638 efx_siena_sriov_bufs(efx, buftbl, req->u.init_txq.addr, buf_count); in efx_vfdi_init_txq()
650 FRF_AZ_TX_DESCQ_SIZE, __ffs(buf_count), in efx_vfdi_init_txq()