Home
last modified time | relevance | path

Searched refs:srrctl (Results 1 – 8 of 8) sorted by relevance

/openbmc/linux/drivers/net/ethernet/wangxun/libwx/
H A Dwx_hw.c1296 u32 srrctl; in wx_configure_srrctl() local
1298 srrctl = rd32(wx, WX_PX_RR_CFG(reg_idx)); in wx_configure_srrctl()
1299 srrctl &= ~(WX_PX_RR_CFG_RR_HDR_SZ | in wx_configure_srrctl()
1303 srrctl |= WX_RXBUFFER_256 << WX_PX_RR_CFG_BHDRSIZE_SHIFT; in wx_configure_srrctl()
1306 srrctl |= WX_RX_BUFSZ >> WX_PX_RR_CFG_BSIZEPKT_SHIFT; in wx_configure_srrctl()
1308 wr32(wx, WX_PX_RR_CFG(reg_idx), srrctl); in wx_configure_srrctl()
/openbmc/linux/drivers/net/ethernet/intel/igbvf/
H A Dnetdev.c1337 u32 srrctl = 0; in igbvf_setup_srrctl() local
1339 srrctl &= ~(E1000_SRRCTL_DESCTYPE_MASK | in igbvf_setup_srrctl()
1344 srrctl |= E1000_SRRCTL_DROP_EN; in igbvf_setup_srrctl()
1347 srrctl |= ALIGN(adapter->rx_buffer_len, 1024) >> in igbvf_setup_srrctl()
1352 srrctl |= E1000_SRRCTL_DESCTYPE_ADV_ONEBUF; in igbvf_setup_srrctl()
1355 srrctl |= adapter->rx_ps_hdr_size << in igbvf_setup_srrctl()
1357 srrctl |= E1000_SRRCTL_DESCTYPE_HDR_SPLIT_ALWAYS; in igbvf_setup_srrctl()
1360 ew32(SRRCTL(0), srrctl); in igbvf_setup_srrctl()
/openbmc/linux/drivers/net/ethernet/intel/fm10k/
H A Dfm10k_pci.c984 u32 srrctl = FM10K_SRRCTL_BUFFER_CHAINING_EN; in fm10k_configure_rx_ring() local
1015 srrctl |= FM10K_RX_BUFSZ >> FM10K_SRRCTL_BSIZEPKT_SHIFT; in fm10k_configure_rx_ring()
1018 srrctl |= FM10K_SRRCTL_LOOPBACK_SUPPRESS; in fm10k_configure_rx_ring()
1019 fm10k_write_reg(hw, FM10K_SRRCTL(reg_idx), srrctl); in fm10k_configure_rx_ring()
/openbmc/linux/drivers/net/ethernet/intel/ixgbevf/
H A Dixgbevf_main.c1771 u32 srrctl; in ixgbevf_configure_srrctl() local
1773 srrctl = IXGBE_SRRCTL_DROP_EN; in ixgbevf_configure_srrctl()
1775 srrctl |= IXGBEVF_RX_HDR_SIZE << IXGBE_SRRCTL_BSIZEHDRSIZE_SHIFT; in ixgbevf_configure_srrctl()
1777 srrctl |= IXGBEVF_RXBUFFER_3072 >> IXGBE_SRRCTL_BSIZEPKT_SHIFT; in ixgbevf_configure_srrctl()
1779 srrctl |= IXGBEVF_RXBUFFER_2048 >> IXGBE_SRRCTL_BSIZEPKT_SHIFT; in ixgbevf_configure_srrctl()
1780 srrctl |= IXGBE_SRRCTL_DESCTYPE_ADV_ONEBUF; in ixgbevf_configure_srrctl()
1782 IXGBE_WRITE_REG(hw, IXGBE_VFSRRCTL(index), srrctl); in ixgbevf_configure_srrctl()
/openbmc/linux/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_main.c3637 u32 srrctl = IXGBE_READ_REG(hw, IXGBE_SRRCTL(reg_idx)); in ixgbe_enable_rx_drop() local
3639 srrctl |= IXGBE_SRRCTL_DROP_EN; in ixgbe_enable_rx_drop()
3641 IXGBE_WRITE_REG(hw, IXGBE_SRRCTL(reg_idx), srrctl); in ixgbe_enable_rx_drop()
3649 u32 srrctl = IXGBE_READ_REG(hw, IXGBE_SRRCTL(reg_idx)); in ixgbe_disable_rx_drop() local
3651 srrctl &= ~IXGBE_SRRCTL_DROP_EN; in ixgbe_disable_rx_drop()
3653 IXGBE_WRITE_REG(hw, IXGBE_SRRCTL(reg_idx), srrctl); in ixgbe_disable_rx_drop()
3693 u32 srrctl; in ixgbe_configure_srrctl() local
3722 srrctl |= PAGE_SIZE >> IXGBE_SRRCTL_BSIZEPKT_SHIFT; in ixgbe_configure_srrctl()
3724 srrctl |= xsk_buf_len >> IXGBE_SRRCTL_BSIZEPKT_SHIFT; in ixgbe_configure_srrctl()
3732 srrctl |= IXGBE_SRRCTL_DESCTYPE_ADV_ONEBUF; in ixgbe_configure_srrctl()
[all …]
/openbmc/linux/drivers/net/ethernet/intel/igc/
H A Digc_main.c631 u32 srrctl = 0, rxdctl = 0; in igc_configure_rx_ring() local
677 srrctl = rd32(IGC_SRRCTL(reg_idx)); in igc_configure_rx_ring()
678 srrctl &= ~(IGC_SRRCTL_BSIZEPKT_MASK | IGC_SRRCTL_BSIZEHDR_MASK | in igc_configure_rx_ring()
680 srrctl |= IGC_SRRCTL_BSIZEHDR(IGC_RX_HDR_LEN); in igc_configure_rx_ring()
681 srrctl |= IGC_SRRCTL_BSIZEPKT(buf_size); in igc_configure_rx_ring()
682 srrctl |= IGC_SRRCTL_DESCTYPE_ADV_ONEBUF; in igc_configure_rx_ring()
684 wr32(IGC_SRRCTL(reg_idx), srrctl); in igc_configure_rx_ring()
/openbmc/linux/drivers/net/ethernet/intel/igb/
H A Digb_main.c4743 u32 srrctl = 0; in igb_setup_srrctl() local
4745 srrctl = IGB_RX_HDR_LEN << E1000_SRRCTL_BSIZEHDRSIZE_SHIFT; in igb_setup_srrctl()
4747 srrctl |= IGB_RXBUFFER_3072 >> E1000_SRRCTL_BSIZEPKT_SHIFT; in igb_setup_srrctl()
4749 srrctl |= IGB_RXBUFFER_2048 >> E1000_SRRCTL_BSIZEPKT_SHIFT; in igb_setup_srrctl()
4750 srrctl |= E1000_SRRCTL_DESCTYPE_ADV_ONEBUF; in igb_setup_srrctl()
4752 srrctl |= E1000_SRRCTL_TIMESTAMP; in igb_setup_srrctl()
4759 srrctl |= E1000_SRRCTL_DROP_EN; in igb_setup_srrctl()
4761 wr32(E1000_SRRCTL(reg_idx), srrctl); in igb_setup_srrctl()
/openbmc/qemu/hw/net/
H A Digb_core.c919 uint32_t srrctl = core->mac[E1000_SRRCTL(r->idx) >> 2]; in igb_rxbufsize() local
920 uint32_t bsizepkt = srrctl & E1000_SRRCTL_BSIZEPKT_MASK; in igb_rxbufsize()
943 uint32_t srrctl = core->mac[E1000_SRRCTL(r->idx) >> 2]; in igb_rxhdrbufsize() local
944 return (srrctl & E1000_SRRCTL_BSIZEHDRSIZE_MASK) >> in igb_rxhdrbufsize()