• Home
  • Raw
  • Download

Lines Matching refs:mac

53 int spl2sw_mac_addr_add(struct spl2sw_mac *mac)  in spl2sw_mac_addr_add()  argument
55 struct spl2sw_common *comm = mac->comm; in spl2sw_mac_addr_add()
60 writel((mac->mac_addr[0] << 0) + (mac->mac_addr[1] << 8), in spl2sw_mac_addr_add()
62 writel((mac->mac_addr[2] << 0) + (mac->mac_addr[3] << 8) + in spl2sw_mac_addr_add()
63 (mac->mac_addr[4] << 16) + (mac->mac_addr[5] << 24), in spl2sw_mac_addr_add()
67 reg = MAC_W_CPU_PORT_0 | FIELD_PREP(MAC_W_VID, mac->vlan_id) | in spl2sw_mac_addr_add()
75 netdev_err(mac->ndev, "Failed to add address to table!\n"); in spl2sw_mac_addr_add()
79 netdev_dbg(mac->ndev, "mac_ad0 = %08x, mac_ad = %08x%04x\n", in spl2sw_mac_addr_add()
88 int spl2sw_mac_addr_del(struct spl2sw_mac *mac) in spl2sw_mac_addr_del() argument
90 struct spl2sw_common *comm = mac->comm; in spl2sw_mac_addr_del()
95 writel((mac->mac_addr[0] << 0) + (mac->mac_addr[1] << 8), in spl2sw_mac_addr_del()
97 writel((mac->mac_addr[2] << 0) + (mac->mac_addr[3] << 8) + in spl2sw_mac_addr_del()
98 (mac->mac_addr[4] << 16) + (mac->mac_addr[5] << 24), in spl2sw_mac_addr_del()
104 reg = MAC_W_LAN_PORT_0 | FIELD_PREP(MAC_W_VID, mac->vlan_id) | MAC_W_MAC_CMD; in spl2sw_mac_addr_del()
111 netdev_err(mac->ndev, "Failed to delete address from table!\n"); in spl2sw_mac_addr_del()
115 netdev_dbg(mac->ndev, "mac_ad0 = %08x, mac_ad = %08x%04x\n", in spl2sw_mac_addr_del()
218 void spl2sw_mac_rx_mode_set(struct spl2sw_mac *mac) in spl2sw_mac_rx_mode_set() argument
220 struct spl2sw_common *comm = mac->comm; in spl2sw_mac_rx_mode_set()
221 struct net_device *ndev = mac->ndev; in spl2sw_mac_rx_mode_set()
225 mask = FIELD_PREP(MAC_DIS_MC2CPU, mac->lan_port) | in spl2sw_mac_rx_mode_set()
226 FIELD_PREP(MAC_DIS_UN2CPU, mac->lan_port); in spl2sw_mac_rx_mode_set()
231 rx_mode = FIELD_PREP(MAC_DIS_MC2CPU, mac->lan_port) | in spl2sw_mac_rx_mode_set()
232 FIELD_PREP(MAC_DIS_UN2CPU, mac->lan_port); in spl2sw_mac_rx_mode_set()
236 rx_mode = FIELD_PREP(MAC_DIS_MC2CPU, mac->lan_port); in spl2sw_mac_rx_mode_set()