/drivers/net/ethernet/pensando/ionic/ |
D | ionic_ethtool.c | 449 u32 rx_coal, rx_dim; in ionic_set_coalesce() local 471 rx_coal = ionic_coal_usec_to_hw(lif->ionic, coalesce->rx_coalesce_usecs); in ionic_set_coalesce() 472 if (!rx_coal && coalesce->rx_coalesce_usecs) in ionic_set_coalesce() 473 rx_coal = 1; in ionic_set_coalesce() 478 if (rx_coal > IONIC_INTR_CTRL_COAL_MAX || in ionic_set_coalesce() 484 lif->rx_coalesce_hw = rx_coal; in ionic_set_coalesce() 494 rx_dim = rx_coal; in ionic_set_coalesce()
|
/drivers/net/ethernet/hisilicon/hns3/ |
D | hns3_ethtool.c | 1223 struct hns3_enet_coalesce *rx_coal = &priv->rx_coal; in hns3_get_coalesce() local 1230 cmd->use_adaptive_rx_coalesce = rx_coal->adapt_enable; in hns3_get_coalesce() 1233 cmd->rx_coalesce_usecs = rx_coal->int_gl; in hns3_get_coalesce() 1239 cmd->rx_max_coalesced_frames = rx_coal->int_ql; in hns3_get_coalesce() 1413 struct hns3_enet_coalesce *rx_coal = &priv->rx_coal; in hns3_set_coalesce() local 1431 rx_coal->adapt_enable = cmd->use_adaptive_rx_coalesce; in hns3_set_coalesce() 1434 rx_coal->int_gl = cmd->rx_coalesce_usecs; in hns3_set_coalesce() 1437 rx_coal->int_ql = cmd->rx_max_coalesced_frames; in hns3_set_coalesce()
|
D | hns3_enet.c | 558 struct hns3_enet_coalesce *rx_coal = &tqp_vector->rx_group.coal; in hns3_vector_coalesce_init() local 560 struct hns3_enet_coalesce *prx_coal = &priv->rx_coal; in hns3_vector_coalesce_init() 563 rx_coal->adapt_enable = prx_coal->adapt_enable; in hns3_vector_coalesce_init() 566 rx_coal->int_gl = prx_coal->int_gl; in hns3_vector_coalesce_init() 568 rx_coal->flow_level = prx_coal->flow_level; in hns3_vector_coalesce_init() 576 rx_coal->unit_1us = 1; in hns3_vector_coalesce_init() 581 rx_coal->ql_enable = 1; in hns3_vector_coalesce_init() 583 rx_coal->int_ql_max = ae_dev->dev_specs.int_ql_max; in hns3_vector_coalesce_init() 585 rx_coal->int_ql = prx_coal->int_ql; in hns3_vector_coalesce_init() 594 struct hns3_enet_coalesce *rx_coal = &tqp_vector->rx_group.coal; in hns3_vector_coalesce_init_hw() local [all …]
|
D | hns3_enet.h | 583 struct hns3_enet_coalesce rx_coal; member
|
/drivers/net/ethernet/qlogic/qede/ |
D | qede_ethtool.c | 773 u16 rx_coal, tx_coal, i, rc = 0; in qede_get_coalesce() local 776 rx_coal = QED_DEFAULT_RX_USECS; in qede_get_coalesce() 792 rc = edev->ops->get_coalesce(edev->cdev, &rx_coal, rx_handle); in qede_get_coalesce() 822 coal->rx_coalesce_usecs = rx_coal; in qede_get_coalesce() 2206 u16 rx_coal, tx_coal; in qede_get_per_coalesce() local 2209 rx_coal = QED_DEFAULT_RX_USECS; in qede_get_per_coalesce() 2231 rc = edev->ops->get_coalesce(edev->cdev, &rx_coal, in qede_get_per_coalesce() 2250 coal->rx_coalesce_usecs = rx_coal; in qede_get_per_coalesce()
|
/drivers/net/ethernet/qlogic/qed/ |
D | qed_vf.c | 1411 u16 rx_coal, u16 tx_coal, struct qed_queue_cid *p_cid) in qed_vf_pf_set_coalesce() argument 1421 req->rx_coal = rx_coal; in qed_vf_pf_set_coalesce() 1428 rx_coal, tx_coal, req->qid); in qed_vf_pf_set_coalesce() 1442 if (rx_coal) in qed_vf_pf_set_coalesce() 1443 p_hwfn->cdev->rx_coalesce_usecs = rx_coal; in qed_vf_pf_set_coalesce()
|
D | qed_dev_api.h | 483 qed_set_queue_coalesce(u16 rx_coal, u16 tx_coal, void *p_handle);
|
D | qed_sriov.h | 195 u16 rx_coal; member
|
D | qed_vf.h | 480 u16 rx_coal; member 704 u16 rx_coal,
|
D | qed_sriov.c | 3490 u16 rx_coal, tx_coal; in qed_iov_vf_pf_set_coalesce() local 3496 rx_coal = req->rx_coal; in qed_iov_vf_pf_set_coalesce() 3501 QED_IOV_VALIDATE_Q_ENABLE) && rx_coal) { in qed_iov_vf_pf_set_coalesce() 3519 vf->abs_vf_id, rx_coal, tx_coal, qid); in qed_iov_vf_pf_set_coalesce() 3521 if (rx_coal) { in qed_iov_vf_pf_set_coalesce() 3524 rc = qed_set_rxq_coalesce(p_hwfn, p_ptt, rx_coal, p_cid); in qed_iov_vf_pf_set_coalesce() 3532 vf->rx_coal = rx_coal; in qed_iov_vf_pf_set_coalesce()
|
D | qed_dev.c | 4850 int qed_set_queue_coalesce(u16 rx_coal, u16 tx_coal, void *p_handle) in qed_set_queue_coalesce() argument 4860 return qed_vf_pf_set_coalesce(p_hwfn, rx_coal, tx_coal, p_cid); in qed_set_queue_coalesce() 4866 if (rx_coal) { in qed_set_queue_coalesce() 4867 rc = qed_set_rxq_coalesce(p_hwfn, p_ptt, rx_coal, p_cid); in qed_set_queue_coalesce() 4870 p_hwfn->cdev->rx_coalesce_usecs = rx_coal; in qed_set_queue_coalesce()
|
D | qed_main.c | 2809 static int qed_set_coalesce(struct qed_dev *cdev, u16 rx_coal, u16 tx_coal, in qed_set_coalesce() argument 2812 return qed_set_queue_coalesce(rx_coal, tx_coal, handle); in qed_set_coalesce()
|
/drivers/net/ethernet/cisco/enic/ |
D | enic_main.c | 1460 struct enic_rx_coal *rx_coal = &enic->rx_coalesce_setting; in enic_calc_int_moderation() local 1493 rx_coal->small_pkt_range_start : in enic_calc_int_moderation() 1494 rx_coal->large_pkt_range_start; in enic_calc_int_moderation() 1495 timer = range_start + ((rx_coal->range_end - range_start) * in enic_calc_int_moderation() 1826 struct enic_rx_coal *rx_coal = &enic->rx_coalesce_setting; in enic_set_rx_coal_setting() local 1840 rx_coal->small_pkt_range_start = mod_range[index].small_pkt_range_start; in enic_set_rx_coal_setting() 1841 rx_coal->large_pkt_range_start = mod_range[index].large_pkt_range_start; in enic_set_rx_coal_setting() 1842 rx_coal->range_end = ENIC_RX_COALESCE_RANGE_END; in enic_set_rx_coal_setting() 1849 rx_coal->use_adaptive_rx_coalesce = 1; in enic_set_rx_coal_setting()
|
/drivers/net/ethernet/tehuti/ |
D | tehuti.c | 2193 int rx_coal; in bdx_set_coalesce() local 2199 rx_coal = ecoal->rx_coalesce_usecs / INT_COAL_MULT; in bdx_set_coalesce() 2212 if ((rx_coal > 0x7FFF) || (tx_coal > 0x7FFF) || in bdx_set_coalesce() 2216 rdintcm = INT_REG_VAL(rx_coal, GET_INT_COAL_RC(priv->rdintcm), in bdx_set_coalesce()
|
/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt.c | 3612 cpr->rx_ring_coal.coal_ticks = bp->rx_coal.coal_ticks; in bnxt_init_cp_rings() 3613 cpr->rx_ring_coal.coal_bufs = bp->rx_coal.coal_bufs; in bnxt_init_cp_rings() 3622 cpr2->rx_ring_coal.coal_ticks = bp->rx_coal.coal_ticks; in bnxt_init_cp_rings() 3623 cpr2->rx_ring_coal.coal_bufs = bp->rx_coal.coal_bufs; in bnxt_init_cp_rings() 6619 memcpy(&coal, &bp->rx_coal, sizeof(struct bnxt_coal)); in bnxt_hwrm_set_ring_coal() 6654 bnxt_hwrm_set_coal_params(bp, &bp->rx_coal, req_rx); in bnxt_hwrm_set_coal() 6689 hw_coal = &bp->rx_coal; in bnxt_hwrm_set_coal() 11903 coal = &bp->rx_coal; in bnxt_init_dflt_coal()
|
D | bnxt.h | 1933 struct bnxt_coal rx_coal; member
|
D | bnxt_ethtool.c | 63 hw_coal = &bp->rx_coal; in bnxt_get_coalesce() 102 hw_coal = &bp->rx_coal; in bnxt_set_coalesce()
|