Lines Matching refs:port_mask
221 DEFINE_ALE_FIELD1(port_mask, 66)
417 int port_mask) in cpsw_ale_flush_mcast() argument
423 if ((mask & port_mask) == 0) in cpsw_ale_flush_mcast()
425 mask &= ~port_mask; in cpsw_ale_flush_mcast()
435 int cpsw_ale_flush_multicast(struct cpsw_ale *ale, int port_mask, int vid) in cpsw_ale_flush_multicast() argument
462 cpsw_ale_flush_mcast(ale, ale_entry, port_mask); in cpsw_ale_flush_multicast()
522 int cpsw_ale_add_mcast(struct cpsw_ale *ale, const u8 *addr, int port_mask, in cpsw_ale_add_mcast() argument
540 port_mask |= mask; in cpsw_ale_add_mcast()
541 cpsw_ale_set_port_mask(ale_entry, port_mask, in cpsw_ale_add_mcast()
555 int cpsw_ale_del_mcast(struct cpsw_ale *ale, const u8 *addr, int port_mask, in cpsw_ale_del_mcast() argument
568 if (port_mask) { in cpsw_ale_del_mcast()
571 mcast_members &= ~port_mask; in cpsw_ale_del_mcast()
613 int cpsw_ale_add_vlan(struct cpsw_ale *ale, u16 vid, int port_mask, int untag, in cpsw_ale_add_vlan() argument
640 ALE_ENT_VID_MEMBER_LIST, port_mask); in cpsw_ale_add_vlan()
654 u16 vid, int port_mask) in cpsw_ale_vlan_del_modify_int() argument
661 members &= ~port_mask; in cpsw_ale_vlan_del_modify_int()
693 int cpsw_ale_vlan_del_modify(struct cpsw_ale *ale, u16 vid, int port_mask) in cpsw_ale_vlan_del_modify() argument
704 cpsw_ale_vlan_del_modify_int(ale, ale_entry, vid, port_mask); in cpsw_ale_vlan_del_modify()
710 int cpsw_ale_del_vlan(struct cpsw_ale *ale, u16 vid, int port_mask) in cpsw_ale_del_vlan() argument
728 members &= ~port_mask; in cpsw_ale_del_vlan()
730 if (!port_mask || !members) { in cpsw_ale_del_vlan()
735 port_mask &= ~ALE_PORT_HOST; in cpsw_ale_del_vlan()
736 cpsw_ale_vlan_del_modify_int(ale, ale_entry, vid, port_mask); in cpsw_ale_del_vlan()
744 int cpsw_ale_vlan_add_modify(struct cpsw_ale *ale, u16 vid, int port_mask, in cpsw_ale_vlan_add_modify() argument
766 vlan_members |= port_mask; in cpsw_ale_vlan_add_modify()
767 untag_members = (untag_members & ~port_mask) | untag_mask; in cpsw_ale_vlan_add_modify()
768 reg_mcast_members = (reg_mcast_members & ~port_mask) | reg_mask; in cpsw_ale_vlan_add_modify()
769 unreg_mcast_members = (unreg_mcast_members & ~port_mask) | unreg_mask; in cpsw_ale_vlan_add_modify()