Searched refs:filter_no (Results 1 – 3 of 3) sorted by relevance
/linux-6.6.21/drivers/net/ethernet/stmicro/stmmac/ |
D | dwxgmac2_core.c | 1312 static int dwxgmac2_filter_read(struct mac_device_info *hw, u32 filter_no, in dwxgmac2_filter_read() argument 1323 value = ((filter_no << XGMAC_IDDR_FNUM) | reg) << XGMAC_IDDR_SHIFT; in dwxgmac2_filter_read() 1335 static int dwxgmac2_filter_write(struct mac_device_info *hw, u32 filter_no, in dwxgmac2_filter_write() argument 1348 value = ((filter_no << XGMAC_IDDR_FNUM) | reg) << XGMAC_IDDR_SHIFT; in dwxgmac2_filter_write() 1355 static int dwxgmac2_config_l3_filter(struct mac_device_info *hw, u32 filter_no, in dwxgmac2_config_l3_filter() argument 1367 ret = dwxgmac2_filter_read(hw, filter_no, XGMAC_L3L4_CTRL, &value); in dwxgmac2_config_l3_filter() 1398 ret = dwxgmac2_filter_write(hw, filter_no, XGMAC_L3L4_CTRL, value); in dwxgmac2_config_l3_filter() 1403 ret = dwxgmac2_filter_write(hw, filter_no, XGMAC_L3_ADDR0, match); in dwxgmac2_config_l3_filter() 1407 ret = dwxgmac2_filter_write(hw, filter_no, XGMAC_L3_ADDR1, match); in dwxgmac2_config_l3_filter() 1413 return dwxgmac2_filter_write(hw, filter_no, XGMAC_L3L4_CTRL, 0); in dwxgmac2_config_l3_filter() [all …]
|
D | dwmac4_core.c | 1037 static int dwmac4_config_l3_filter(struct mac_device_info *hw, u32 filter_no, in dwmac4_config_l3_filter() argument 1048 value = readl(ioaddr + GMAC_L3L4_CTRL(filter_no)); in dwmac4_config_l3_filter() 1077 writel(value, ioaddr + GMAC_L3L4_CTRL(filter_no)); in dwmac4_config_l3_filter() 1080 writel(match, ioaddr + GMAC_L3_ADDR0(filter_no)); in dwmac4_config_l3_filter() 1082 writel(match, ioaddr + GMAC_L3_ADDR1(filter_no)); in dwmac4_config_l3_filter() 1086 writel(0, ioaddr + GMAC_L3L4_CTRL(filter_no)); in dwmac4_config_l3_filter() 1091 static int dwmac4_config_l4_filter(struct mac_device_info *hw, u32 filter_no, in dwmac4_config_l4_filter() argument 1102 value = readl(ioaddr + GMAC_L3L4_CTRL(filter_no)); in dwmac4_config_l4_filter() 1121 writel(value, ioaddr + GMAC_L3L4_CTRL(filter_no)); in dwmac4_config_l4_filter() 1129 writel(value, ioaddr + GMAC_L4_ADDR(filter_no)); in dwmac4_config_l4_filter() [all …]
|
D | hwif.h | 404 int (*config_l3_filter)(struct mac_device_info *hw, u32 filter_no, 407 int (*config_l4_filter)(struct mac_device_info *hw, u32 filter_no,
|