Lines Matching refs:mirror_entry
587 struct dpaa2_switch_mirror_entry *mirror_entry; in dpaa2_switch_cls_flower_replace_mirror() local
636 mirror_entry = kzalloc(sizeof(*mirror_entry), GFP_KERNEL); in dpaa2_switch_cls_flower_replace_mirror()
637 if (!mirror_entry) in dpaa2_switch_cls_flower_replace_mirror()
640 mirror_entry->cfg.filter = DPSW_REFLECTION_FILTER_INGRESS_VLAN; in dpaa2_switch_cls_flower_replace_mirror()
641 mirror_entry->cfg.vlan_id = vlan; in dpaa2_switch_cls_flower_replace_mirror()
642 mirror_entry->cookie = cls->cookie; in dpaa2_switch_cls_flower_replace_mirror()
644 return dpaa2_switch_block_add_mirror(block, mirror_entry, if_id, in dpaa2_switch_cls_flower_replace_mirror()
677 struct dpaa2_switch_mirror_entry *mirror_entry; in dpaa2_switch_cls_flower_destroy() local
687 mirror_entry = dpaa2_switch_mirror_find_entry_by_cookie(block, in dpaa2_switch_cls_flower_destroy()
689 if (mirror_entry) in dpaa2_switch_cls_flower_destroy()
691 mirror_entry); in dpaa2_switch_cls_flower_destroy()
741 struct dpaa2_switch_mirror_entry *mirror_entry; in dpaa2_switch_cls_matchall_replace_mirror() local
783 mirror_entry = kzalloc(sizeof(*mirror_entry), GFP_KERNEL); in dpaa2_switch_cls_matchall_replace_mirror()
784 if (!mirror_entry) in dpaa2_switch_cls_matchall_replace_mirror()
787 mirror_entry->cfg.filter = DPSW_REFLECTION_FILTER_INGRESS_ALL; in dpaa2_switch_cls_matchall_replace_mirror()
788 mirror_entry->cookie = cls->cookie; in dpaa2_switch_cls_matchall_replace_mirror()
790 return dpaa2_switch_block_add_mirror(block, mirror_entry, if_id, in dpaa2_switch_cls_matchall_replace_mirror()
873 struct dpaa2_switch_mirror_entry *mirror_entry; in dpaa2_switch_cls_matchall_destroy() local
884 mirror_entry = dpaa2_switch_mirror_find_entry_by_cookie(block, in dpaa2_switch_cls_matchall_destroy()
886 if (mirror_entry) in dpaa2_switch_cls_matchall_destroy()
888 mirror_entry); in dpaa2_switch_cls_matchall_destroy()