Lines Matching refs:port_mask

207 DEFINE_ALE_FIELD1(port_mask,		66)
403 int port_mask) in cpsw_ale_flush_mcast() argument
409 if ((mask & port_mask) == 0) in cpsw_ale_flush_mcast()
411 mask &= ~port_mask; in cpsw_ale_flush_mcast()
421 int cpsw_ale_flush_multicast(struct cpsw_ale *ale, int port_mask, int vid) in cpsw_ale_flush_multicast() argument
448 cpsw_ale_flush_mcast(ale, ale_entry, port_mask); in cpsw_ale_flush_multicast()
508 int cpsw_ale_add_mcast(struct cpsw_ale *ale, const u8 *addr, int port_mask, in cpsw_ale_add_mcast() argument
526 port_mask |= mask; in cpsw_ale_add_mcast()
527 cpsw_ale_set_port_mask(ale_entry, port_mask, in cpsw_ale_add_mcast()
541 int cpsw_ale_del_mcast(struct cpsw_ale *ale, const u8 *addr, int port_mask, in cpsw_ale_del_mcast() argument
554 if (port_mask) { in cpsw_ale_del_mcast()
557 mcast_members &= ~port_mask; in cpsw_ale_del_mcast()
599 int cpsw_ale_add_vlan(struct cpsw_ale *ale, u16 vid, int port_mask, int untag, in cpsw_ale_add_vlan() argument
626 ALE_ENT_VID_MEMBER_LIST, port_mask); in cpsw_ale_add_vlan()
640 u16 vid, int port_mask) in cpsw_ale_vlan_del_modify_int() argument
647 members &= ~port_mask; in cpsw_ale_vlan_del_modify_int()
679 int cpsw_ale_vlan_del_modify(struct cpsw_ale *ale, u16 vid, int port_mask) in cpsw_ale_vlan_del_modify() argument
690 cpsw_ale_vlan_del_modify_int(ale, ale_entry, vid, port_mask); in cpsw_ale_vlan_del_modify()
696 int cpsw_ale_del_vlan(struct cpsw_ale *ale, u16 vid, int port_mask) in cpsw_ale_del_vlan() argument
714 members &= ~port_mask; in cpsw_ale_del_vlan()
716 if (!port_mask || !members) { in cpsw_ale_del_vlan()
721 port_mask &= ~ALE_PORT_HOST; in cpsw_ale_del_vlan()
722 cpsw_ale_vlan_del_modify_int(ale, ale_entry, vid, port_mask); in cpsw_ale_del_vlan()
730 int cpsw_ale_vlan_add_modify(struct cpsw_ale *ale, u16 vid, int port_mask, in cpsw_ale_vlan_add_modify() argument
752 vlan_members |= port_mask; in cpsw_ale_vlan_add_modify()
753 untag_members = (untag_members & ~port_mask) | untag_mask; in cpsw_ale_vlan_add_modify()
754 reg_mcast_members = (reg_mcast_members & ~port_mask) | reg_mask; in cpsw_ale_vlan_add_modify()
755 unreg_mcast_members = (unreg_mcast_members & ~port_mask) | unreg_mask; in cpsw_ale_vlan_add_modify()