Home
last modified time | relevance | path

Searched refs:rx_en (Results 1 – 19 of 19) sorted by relevance

/linux-6.1.9/drivers/net/ethernet/hisilicon/hns/
Dhns_dsaf_mac.h371 void (*mac_pausefrm_cfg)(void *mac_drv, u32 rx_en, u32 tx_en);
374 int (*set_pause_enable)(void *mac_drv, u32 rx_en, u32 tx_en);
375 void (*get_pause_enable)(void *mac_drv, u32 *rx_en, u32 *tx_en);
439 void hns_mac_get_pauseparam(struct hns_mac_cb *mac_cb, u32 *rx_en, u32 *tx_en);
441 int hns_mac_set_pauseparam(struct hns_mac_cb *mac_cb, u32 rx_en, u32 tx_en);
Dhns_ae_adapt.c473 u32 *auto_neg, u32 *rx_en, u32 *tx_en) in hns_ae_get_pauseparam() argument
480 hns_mac_get_pauseparam(mac_cb, rx_en, tx_en); in hns_ae_get_pauseparam()
484 hns_dsaf_get_rx_mac_pause_en(dsaf_dev, mac_cb->mac_id, rx_en); in hns_ae_get_pauseparam()
496 u32 autoneg, u32 rx_en, u32 tx_en) in hns_ae_set_pauseparam() argument
509 mac_cb->mac_id, rx_en); in hns_ae_set_pauseparam()
512 rx_en = 0; in hns_ae_set_pauseparam()
514 return hns_mac_set_pauseparam(mac_cb, rx_en, tx_en); in hns_ae_set_pauseparam()
Dhns_dsaf_mac.c566 void hns_mac_get_pauseparam(struct hns_mac_cb *mac_cb, u32 *rx_en, u32 *tx_en) in hns_mac_get_pauseparam() argument
571 mac_ctrl_drv->get_pause_enable(mac_ctrl_drv, rx_en, tx_en); in hns_mac_get_pauseparam()
573 *rx_en = 0; in hns_mac_get_pauseparam()
606 int hns_mac_set_pauseparam(struct hns_mac_cb *mac_cb, u32 rx_en, u32 tx_en) in hns_mac_set_pauseparam() argument
612 if (is_ver1 && (tx_en || rx_en)) { in hns_mac_set_pauseparam()
619 mac_ctrl_drv->mac_pausefrm_cfg(mac_ctrl_drv, rx_en, tx_en); in hns_mac_set_pauseparam()
Dhns_dsaf_xgmac.c248 static void hns_xgmac_pausefrm_cfg(void *mac_drv, u32 rx_en, u32 tx_en) in hns_xgmac_pausefrm_cfg() argument
254 dsaf_set_bit(origin, XGMAC_PAUSE_CTL_RX_B, !!rx_en); in hns_xgmac_pausefrm_cfg()
456 static void hns_xgmac_get_pausefrm_cfg(void *mac_drv, u32 *rx_en, u32 *tx_en) in hns_xgmac_get_pausefrm_cfg() argument
462 *rx_en = dsaf_get_bit(pause_ctrl, XGMAC_PAUSE_CTL_RX_B); in hns_xgmac_get_pausefrm_cfg()
Dhnae.h485 u32 *auto_neg, u32 *rx_en, u32 *tx_en);
487 u32 auto_neg, u32 rx_en, u32 tx_en);
Dhns_dsaf_main.c1173 int mac_id, int tx_en, int rx_en) in hns_dsaf_set_pfc_pause() argument
1176 if (!tx_en || !rx_en) in hns_dsaf_set_pfc_pause()
1183 DSAF_PFC_PAUSE_RX_EN_B, !!rx_en); in hns_dsaf_set_pfc_pause()
/linux-6.1.9/drivers/net/ethernet/chelsio/cxgb4vf/
Dt4vf_common.h395 int t4vf_enable_vi(struct adapter *adapter, unsigned int viid, bool rx_en,
397 int t4vf_enable_pi(struct adapter *adapter, struct port_info *pi, bool rx_en,
Dt4vf_hw.c1396 bool rx_en, bool tx_en) in t4vf_enable_vi() argument
1405 cmd.ien_to_len16 = cpu_to_be32(FW_VI_ENABLE_CMD_IEN_V(rx_en) | in t4vf_enable_vi()
1424 bool rx_en, bool tx_en) in t4vf_enable_pi() argument
1426 int ret = t4vf_enable_vi(adapter, pi->viid, rx_en, tx_en); in t4vf_enable_pi()
1431 rx_en && tx_en && pi->link_cfg.link_ok); in t4vf_enable_pi()
/linux-6.1.9/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_tm.c1553 bool tx_en, rx_en; in hclge_mac_pause_setup_hw() local
1558 rx_en = false; in hclge_mac_pause_setup_hw()
1562 rx_en = true; in hclge_mac_pause_setup_hw()
1566 rx_en = false; in hclge_mac_pause_setup_hw()
1570 rx_en = true; in hclge_mac_pause_setup_hw()
1574 rx_en = false; in hclge_mac_pause_setup_hw()
1578 rx_en = true; in hclge_mac_pause_setup_hw()
1581 return hclge_mac_pause_en_cfg(hdev, tx_en, rx_en); in hclge_mac_pause_setup_hw()
Dhclge_main.c3198 bool rx_en, tx_en; in hclge_update_pause_advertising() local
3202 rx_en = true; in hclge_update_pause_advertising()
3206 rx_en = false; in hclge_update_pause_advertising()
3210 rx_en = true; in hclge_update_pause_advertising()
3214 rx_en = false; in hclge_update_pause_advertising()
3219 linkmode_set_pause(mac->advertising, tx_en, rx_en); in hclge_update_pause_advertising()
10891 static void hclge_set_flowctrl_adv(struct hclge_dev *hdev, u32 rx_en, u32 tx_en) in hclge_set_flowctrl_adv() argument
10898 phy_set_asym_pause(phydev, rx_en, tx_en); in hclge_set_flowctrl_adv()
10901 static int hclge_cfg_pauseparam(struct hclge_dev *hdev, u32 rx_en, u32 tx_en) in hclge_cfg_pauseparam() argument
10908 ret = hclge_mac_pause_en_cfg(hdev, tx_en, rx_en); in hclge_cfg_pauseparam()
[all …]
/linux-6.1.9/drivers/net/ethernet/ti/
Dcpsw_priv.c38 writel_relaxed(0xFF, &cpsw->wr_regs->rx_en); in cpsw_intr_enable()
46 writel_relaxed(0, &cpsw->wr_regs->rx_en); in cpsw_intr_disable()
105 writel(0, &cpsw->wr_regs->rx_en); in cpsw_rx_interrupt()
205 writel(0xff, &cpsw->wr_regs->rx_en); in cpsw_rx_mq_poll()
219 writel(0xff, &cpsw->wr_regs->rx_en); in cpsw_rx_poll()
Dcpsw_priv.h148 u32 rx_en; member
/linux-6.1.9/arch/mips/include/asm/octeon/
Dcvmx-agl-defs.h302 uint64_t rx_en:1; member
312 uint64_t rx_en:1;
327 uint64_t rx_en:1; member
337 uint64_t rx_en:1;
/linux-6.1.9/drivers/net/ethernet/hisilicon/hns3/
Dhnae3.h604 u32 *auto_neg, u32 *rx_en, u32 *tx_en);
606 u32 auto_neg, u32 rx_en, u32 tx_en);
/linux-6.1.9/drivers/net/ethernet/cavium/thunder/
Dthunder_bgx.c509 bool tx_en, rx_en; in bgx_sgmii_change_link_state() local
513 rx_en = cmr_cfg & CMR_PKT_RX_EN; in bgx_sgmii_change_link_state()
584 cmr_cfg |= (rx_en ? CMR_PKT_RX_EN : 0) | (tx_en ? CMR_PKT_TX_EN : 0); in bgx_sgmii_change_link_state()
/linux-6.1.9/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4.h2029 unsigned int viid, bool rx_en, bool tx_en, bool dcb_en);
2032 bool rx_en, bool tx_en, bool dcb_en);
2034 bool rx_en, bool tx_en);
Dt4_hw.c8224 unsigned int viid, bool rx_en, bool tx_en, bool dcb_en) in t4_enable_vi_params() argument
8232 c.ien_to_len16 = cpu_to_be32(FW_VI_ENABLE_CMD_IEN_V(rx_en) | in t4_enable_vi_params()
8250 bool rx_en, bool tx_en) in t4_enable_vi() argument
8252 return t4_enable_vi_params(adap, mbox, viid, rx_en, tx_en, 0); in t4_enable_vi()
8272 bool rx_en, bool tx_en, bool dcb_en) in t4_enable_pi_params() argument
8275 rx_en, tx_en, dcb_en); in t4_enable_pi_params()
8279 rx_en && tx_en && pi->link_cfg.link_ok); in t4_enable_pi_params()
/linux-6.1.9/drivers/net/ethernet/cavium/octeon/
Docteon_mgmt.c806 prtx_cfg.s.rx_en = 0; in octeon_mgmt_disable_link()
828 prtx_cfg.s.rx_en = 1; in octeon_mgmt_enable_link()
/linux-6.1.9/drivers/net/ethernet/broadcom/
Dbcm63xx_enet.c764 static void bcm_enet_set_flow(struct bcm_enet_priv *priv, int rx_en, int tx_en) in bcm_enet_set_flow() argument
770 if (rx_en) in bcm_enet_set_flow()