Lines Matching refs:qcaspi_devs
898 struct net_device *qcaspi_devs = NULL; in qca_spi_probe() local
956 qcaspi_devs = alloc_etherdev(sizeof(struct qcaspi)); in qca_spi_probe()
957 if (!qcaspi_devs) in qca_spi_probe()
960 qcaspi_netdev_setup(qcaspi_devs); in qca_spi_probe()
961 SET_NETDEV_DEV(qcaspi_devs, &spi->dev); in qca_spi_probe()
963 qca = netdev_priv(qcaspi_devs); in qca_spi_probe()
965 free_netdev(qcaspi_devs); in qca_spi_probe()
969 qca->net_dev = qcaspi_devs; in qca_spi_probe()
973 spi_set_drvdata(spi, qcaspi_devs); in qca_spi_probe()
980 free_netdev(qcaspi_devs); in qca_spi_probe()
1000 free_netdev(qcaspi_devs); in qca_spi_probe()
1005 if (register_netdev(qcaspi_devs)) { in qca_spi_probe()
1007 qcaspi_devs->name); in qca_spi_probe()
1008 free_netdev(qcaspi_devs); in qca_spi_probe()
1020 struct net_device *qcaspi_devs = spi_get_drvdata(spi); in qca_spi_remove() local
1021 struct qcaspi *qca = netdev_priv(qcaspi_devs); in qca_spi_remove()
1025 unregister_netdev(qcaspi_devs); in qca_spi_remove()
1026 free_netdev(qcaspi_devs); in qca_spi_remove()