Home
last modified time | relevance | path

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

/drivers/net/ethernet/intel/igbvf/
Dnetdev.c1330 u32 srrctl = 0; in igbvf_setup_srrctl() local
1332 srrctl &= ~(E1000_SRRCTL_DESCTYPE_MASK | in igbvf_setup_srrctl()
1337 srrctl |= E1000_SRRCTL_DROP_EN; in igbvf_setup_srrctl()
1340 srrctl |= ALIGN(adapter->rx_buffer_len, 1024) >> in igbvf_setup_srrctl()
1345 srrctl |= E1000_SRRCTL_DESCTYPE_ADV_ONEBUF; in igbvf_setup_srrctl()
1348 srrctl |= adapter->rx_ps_hdr_size << in igbvf_setup_srrctl()
1350 srrctl |= E1000_SRRCTL_DESCTYPE_HDR_SPLIT_ALWAYS; in igbvf_setup_srrctl()
1353 ew32(SRRCTL(0), srrctl); in igbvf_setup_srrctl()
/drivers/net/ethernet/intel/fm10k/
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()
/drivers/net/ethernet/intel/ixgbevf/
Dixgbevf_main.c1763 u32 srrctl; in ixgbevf_configure_srrctl() local
1765 srrctl = IXGBE_SRRCTL_DROP_EN; in ixgbevf_configure_srrctl()
1767 srrctl |= IXGBEVF_RX_HDR_SIZE << IXGBE_SRRCTL_BSIZEHDRSIZE_SHIFT; in ixgbevf_configure_srrctl()
1769 srrctl |= IXGBEVF_RXBUFFER_3072 >> IXGBE_SRRCTL_BSIZEPKT_SHIFT; in ixgbevf_configure_srrctl()
1771 srrctl |= IXGBEVF_RXBUFFER_2048 >> IXGBE_SRRCTL_BSIZEPKT_SHIFT; in ixgbevf_configure_srrctl()
1772 srrctl |= IXGBE_SRRCTL_DESCTYPE_ADV_ONEBUF; in ixgbevf_configure_srrctl()
1774 IXGBE_WRITE_REG(hw, IXGBE_VFSRRCTL(index), srrctl); in ixgbevf_configure_srrctl()
/drivers/net/ethernet/intel/igc/
Digc_main.c526 u32 srrctl = 0, rxdctl = 0; in igc_configure_rx_ring() local
549 srrctl = IGC_RX_HDR_LEN << IGC_SRRCTL_BSIZEHDRSIZE_SHIFT; in igc_configure_rx_ring()
551 srrctl |= IGC_RXBUFFER_3072 >> IGC_SRRCTL_BSIZEPKT_SHIFT; in igc_configure_rx_ring()
553 srrctl |= IGC_RXBUFFER_2048 >> IGC_SRRCTL_BSIZEPKT_SHIFT; in igc_configure_rx_ring()
554 srrctl |= IGC_SRRCTL_DESCTYPE_ADV_ONEBUF; in igc_configure_rx_ring()
556 wr32(IGC_SRRCTL(reg_idx), srrctl); in igc_configure_rx_ring()
/drivers/net/ethernet/intel/ixgbe/
Dixgbe_main.c3655 u32 srrctl = IXGBE_READ_REG(hw, IXGBE_SRRCTL(reg_idx)); in ixgbe_enable_rx_drop() local
3657 srrctl |= IXGBE_SRRCTL_DROP_EN; in ixgbe_enable_rx_drop()
3659 IXGBE_WRITE_REG(hw, IXGBE_SRRCTL(reg_idx), srrctl); in ixgbe_enable_rx_drop()
3667 u32 srrctl = IXGBE_READ_REG(hw, IXGBE_SRRCTL(reg_idx)); in ixgbe_disable_rx_drop() local
3669 srrctl &= ~IXGBE_SRRCTL_DROP_EN; in ixgbe_disable_rx_drop()
3671 IXGBE_WRITE_REG(hw, IXGBE_SRRCTL(reg_idx), srrctl); in ixgbe_disable_rx_drop()
3711 u32 srrctl; in ixgbe_configure_srrctl() local
3725 srrctl = IXGBE_RX_HDR_SIZE << IXGBE_SRRCTL_BSIZEHDRSIZE_SHIFT; in ixgbe_configure_srrctl()
3741 srrctl |= PAGE_SIZE >> IXGBE_SRRCTL_BSIZEPKT_SHIFT; in ixgbe_configure_srrctl()
3743 srrctl |= xsk_buf_len >> IXGBE_SRRCTL_BSIZEPKT_SHIFT; in ixgbe_configure_srrctl()
[all …]
/drivers/net/ethernet/intel/igb/
Digb_main.c4482 u32 srrctl = 0, rxdctl = 0; in igb_configure_rx_ring() local
4500 srrctl = IGB_RX_HDR_LEN << E1000_SRRCTL_BSIZEHDRSIZE_SHIFT; in igb_configure_rx_ring()
4502 srrctl |= IGB_RXBUFFER_3072 >> E1000_SRRCTL_BSIZEPKT_SHIFT; in igb_configure_rx_ring()
4504 srrctl |= IGB_RXBUFFER_2048 >> E1000_SRRCTL_BSIZEPKT_SHIFT; in igb_configure_rx_ring()
4505 srrctl |= E1000_SRRCTL_DESCTYPE_ADV_ONEBUF; in igb_configure_rx_ring()
4507 srrctl |= E1000_SRRCTL_TIMESTAMP; in igb_configure_rx_ring()
4510 srrctl |= E1000_SRRCTL_DROP_EN; in igb_configure_rx_ring()
4512 wr32(E1000_SRRCTL(reg_idx), srrctl); in igb_configure_rx_ring()