Lines Matching refs:port
23 struct hsr_port *port; in hsr_slave_empty() local
25 hsr_for_each_port(hsr, port) in hsr_slave_empty()
26 if (port->type != HSR_PT_MASTER) in hsr_slave_empty()
34 struct hsr_port *port, *master; in hsr_netdev_notify() local
42 port = hsr_port_get_rtnl(dev); in hsr_netdev_notify()
43 if (!port) { in hsr_netdev_notify()
47 port = hsr_port_get_hsr(hsr, HSR_PT_MASTER); in hsr_netdev_notify()
48 if (!port) { in hsr_netdev_notify()
53 hsr = port->hsr; in hsr_netdev_notify()
67 if (port->type == HSR_PT_MASTER) { in hsr_netdev_notify()
77 if (port->type == HSR_PT_SLAVE_A) { in hsr_netdev_notify()
84 port = hsr_port_get_hsr(hsr, HSR_PT_SLAVE_B); in hsr_netdev_notify()
87 port ? in hsr_netdev_notify()
88 port->dev->dev_addr : in hsr_netdev_notify()
95 if (port->type == HSR_PT_MASTER) in hsr_netdev_notify()
97 mtu_max = hsr_get_max_mtu(port->hsr); in hsr_netdev_notify()
98 master = hsr_port_get_hsr(port->hsr, HSR_PT_MASTER); in hsr_netdev_notify()
103 master = hsr_port_get_hsr(port->hsr, HSR_PT_MASTER); in hsr_netdev_notify()
104 hsr_del_port(port); in hsr_netdev_notify()
126 struct hsr_port *port; in hsr_port_get_hsr() local
128 hsr_for_each_port(hsr, port) in hsr_port_get_hsr()
129 if (port->type == pt) in hsr_port_get_hsr()
130 return port; in hsr_port_get_hsr()