Lines Matching full:partner
567 struct dsa_port *partner = NULL, *dp; in xrs700x_hsr_join() local
596 partner = dp; in xrs700x_hsr_join()
604 if (!partner) in xrs700x_hsr_join()
607 regmap_fields_write(priv->ps_forward, partner->index, in xrs700x_hsr_join()
611 regmap_write(priv->regmap, XRS_HSR_CFG(partner->index), in xrs700x_hsr_join()
621 val &= ~BIT(partner->index); in xrs700x_hsr_join()
626 regmap_write(priv->regmap, XRS_PORT_FWD_MASK(partner->index), val); in xrs700x_hsr_join()
629 regmap_fields_write(priv->ps_forward, partner->index, in xrs700x_hsr_join()
638 ret = xrs700x_port_add_hsrsup_ipf(ds, partner->index, fwd ? port : -1); in xrs700x_hsr_join()
642 ret = xrs700x_port_add_hsrsup_ipf(ds, port, fwd ? partner->index : -1); in xrs700x_hsr_join()
647 XRS_ETH_ADDR_CFG(partner->index, 1), 1, 1); in xrs700x_hsr_join()
651 hsr_pair[1] = partner->index; in xrs700x_hsr_join()
663 struct dsa_port *partner = NULL, *dp; in xrs700x_hsr_leave() local
671 partner = dp; in xrs700x_hsr_leave()
676 if (!partner) in xrs700x_hsr_leave()
679 regmap_fields_write(priv->ps_forward, partner->index, in xrs700x_hsr_leave()
683 regmap_write(priv->regmap, XRS_HSR_CFG(partner->index), 0); in xrs700x_hsr_leave()
689 regmap_write(priv->regmap, XRS_PORT_FWD_MASK(partner->index), val); in xrs700x_hsr_leave()
692 regmap_fields_write(priv->ps_forward, partner->index, in xrs700x_hsr_leave()
701 XRS_ETH_ADDR_CFG(partner->index, 1), 1, 0); in xrs700x_hsr_leave()
705 hsr_pair[1] = partner->index; in xrs700x_hsr_leave()