Lines Matching refs:port
27 struct hsr_port *port, *master; in hsr_netdev_notify() local
33 port = hsr_port_get_rtnl(dev); in hsr_netdev_notify()
34 if (port == NULL) { in hsr_netdev_notify()
38 port = hsr_port_get_hsr(hsr, HSR_PT_MASTER); in hsr_netdev_notify()
39 if (port == NULL) { in hsr_netdev_notify()
44 hsr = port->hsr; in hsr_netdev_notify()
54 if (port->type == HSR_PT_MASTER) { in hsr_netdev_notify()
64 if (port->type == HSR_PT_SLAVE_A) { in hsr_netdev_notify()
70 port = hsr_port_get_hsr(hsr, HSR_PT_SLAVE_B); in hsr_netdev_notify()
73 port ? in hsr_netdev_notify()
74 port->dev->dev_addr : in hsr_netdev_notify()
81 if (port->type == HSR_PT_MASTER) in hsr_netdev_notify()
83 mtu_max = hsr_get_max_mtu(port->hsr); in hsr_netdev_notify()
84 master = hsr_port_get_hsr(port->hsr, HSR_PT_MASTER); in hsr_netdev_notify()
88 hsr_del_port(port); in hsr_netdev_notify()
103 struct hsr_port *port; in hsr_port_get_hsr() local
105 hsr_for_each_port(hsr, port) in hsr_port_get_hsr()
106 if (port->type == pt) in hsr_port_get_hsr()
107 return port; in hsr_port_get_hsr()