Lines Matching refs:sparx5

116 			err = sparx5_serdes_set(port->sparx5, port, &port->conf);  in sparx5_port_open()
149 err = sparx5_serdes_set(port->sparx5, port, &port->conf); in sparx5_port_stop()
161 struct sparx5 *sparx5 = port->sparx5; in sparx5_set_rx_mode() local
163 if (!test_bit(port->portno, sparx5->bridge_mask)) in sparx5_set_rx_mode()
183 struct sparx5 *sparx5 = port->sparx5; in sparx5_set_mac_address() local
190 sparx5_mact_forget(sparx5, dev->dev_addr, port->pvid); in sparx5_set_mac_address()
193 sparx5_mact_learn(sparx5, PGID_CPU, addr->sa_data, port->pvid); in sparx5_set_mac_address()
205 struct sparx5 *sparx5 = sparx5_port->sparx5; in sparx5_get_port_parent_id() local
207 ppid->id_len = sizeof(sparx5->base_mac); in sparx5_get_port_parent_id()
208 memcpy(&ppid->id, &sparx5->base_mac, ppid->id_len); in sparx5_get_port_parent_id()
217 struct sparx5 *sparx5 = sparx5_port->sparx5; in sparx5_port_hwtstamp_get() local
219 if (!sparx5->ptp) in sparx5_port_hwtstamp_get()
232 struct sparx5 *sparx5 = sparx5_port->sparx5; in sparx5_port_hwtstamp_set() local
234 if (!sparx5->ptp) in sparx5_port_hwtstamp_set()
261 struct net_device *sparx5_create_netdev(struct sparx5 *sparx5, u32 portno) in sparx5_create_netdev() argument
266 ndev = devm_alloc_etherdev_mqs(sparx5->dev, sizeof(struct sparx5_port), in sparx5_create_netdev()
274 SET_NETDEV_DEV(ndev, sparx5->dev); in sparx5_create_netdev()
277 spx5_port->sparx5 = sparx5; in sparx5_create_netdev()
283 eth_hw_addr_gen(ndev, sparx5->base_mac, portno + 1); in sparx5_create_netdev()
288 int sparx5_register_netdevs(struct sparx5 *sparx5) in sparx5_register_netdevs() argument
294 if (sparx5->ports[portno]) { in sparx5_register_netdevs()
295 err = register_netdev(sparx5->ports[portno]->ndev); in sparx5_register_netdevs()
297 dev_err(sparx5->dev, in sparx5_register_netdevs()
302 sparx5_port_inj_timer_setup(sparx5->ports[portno]); in sparx5_register_netdevs()
307 void sparx5_destroy_netdevs(struct sparx5 *sparx5) in sparx5_destroy_netdevs() argument
313 port = sparx5->ports[portno]; in sparx5_destroy_netdevs()
326 void sparx5_unregister_netdevs(struct sparx5 *sparx5) in sparx5_unregister_netdevs() argument
331 if (sparx5->ports[portno]) in sparx5_unregister_netdevs()
332 unregister_netdev(sparx5->ports[portno]->ndev); in sparx5_unregister_netdevs()