Searched refs:hsr_dev (Results 1 – 8 of 8) sorted by relevance
/net/hsr/ |
D | hsr_device.c | 74 static void hsr_check_announce(struct net_device *hsr_dev, in hsr_check_announce() argument 79 hsr = netdev_priv(hsr_dev); in hsr_check_announce() 81 if (hsr_dev->operstate == IF_OPER_UP && old_operstate != IF_OPER_UP) { in hsr_check_announce() 88 if (hsr_dev->operstate != IF_OPER_UP && old_operstate == IF_OPER_UP) in hsr_check_announce() 482 int hsr_dev_finalize(struct net_device *hsr_dev, struct net_device *slave[2], in hsr_dev_finalize() argument 490 hsr = netdev_priv(hsr_dev); in hsr_dev_finalize() 496 eth_hw_addr_set(hsr_dev, slave[0]->dev_addr); in hsr_dev_finalize() 510 res = hsr_create_self_node(hsr, hsr_dev->dev_addr, in hsr_dev_finalize() 529 netif_carrier_off(hsr_dev); in hsr_dev_finalize() 531 res = hsr_add_port(hsr, hsr_dev, HSR_PT_MASTER, extack); in hsr_dev_finalize() [all …]
|
D | hsr_netlink.c | 275 struct net_device *hsr_dev; in hsr_get_node_status() local 301 hsr_dev = dev_get_by_index_rcu(genl_info_net(info), in hsr_get_node_status() 303 if (!hsr_dev) in hsr_get_node_status() 305 if (!is_hsr_master(hsr_dev)) in hsr_get_node_status() 323 res = nla_put_u32(skb_out, HSR_A_IFINDEX, hsr_dev->ifindex); in hsr_get_node_status() 327 hsr = netdev_priv(hsr_dev); in hsr_get_node_status() 410 struct net_device *hsr_dev; in hsr_get_node_list() local 427 hsr_dev = dev_get_by_index_rcu(genl_info_net(info), in hsr_get_node_list() 429 if (!hsr_dev) in hsr_get_node_list() 431 if (!is_hsr_master(hsr_dev)) in hsr_get_node_list() [all …]
|
D | hsr_slave.c | 130 struct net_device *hsr_dev; in hsr_portdev_setup() local 139 hsr_dev = master->dev; in hsr_portdev_setup() 141 res = netdev_upper_dev_link(dev, hsr_dev, extack); in hsr_portdev_setup() 153 netdev_upper_dev_unlink(dev, hsr_dev); in hsr_portdev_setup()
|
D | hsr_debugfs.c | 85 void hsr_debugfs_init(struct hsr_priv *priv, struct net_device *hsr_dev) in hsr_debugfs_init() argument 89 de = debugfs_create_dir(hsr_dev->name, hsr_debugfs_root_dir); in hsr_debugfs_init()
|
D | hsr_main.h | 283 void hsr_debugfs_init(struct hsr_priv *priv, struct net_device *hsr_dev); 292 struct net_device *hsr_dev) in hsr_debugfs_init() argument
|
D | hsr_device.h | 18 int hsr_dev_finalize(struct net_device *hsr_dev, struct net_device *slave[2],
|
/net/dsa/ |
D | tag_xrs700x.c | 20 if (dp->hsr_dev) in xrs700x_xmit() 21 dsa_hsr_foreach_port(partner, dp->ds, dp->hsr_dev) in xrs700x_xmit()
|
D | port.c | 1324 dp->hsr_dev = hsr; in dsa_port_hsr_join() 1328 dp->hsr_dev = NULL; in dsa_port_hsr_join() 1342 dp->hsr_dev = NULL; in dsa_port_hsr_leave()
|