Lines Matching defs:spi
61 #include <linux/spi/spi.h>
350 struct spi_device *spi = to_spi_device(hcd->self.controller);
367 spi_sync(spi, &msg);
375 struct spi_device *spi = to_spi_device(hcd->self.controller);
393 spi_sync(spi, &msg);
399 struct spi_device *spi = to_spi_device(hcd->self.controller);
419 spi_sync(spi, &msg);
425 struct spi_device *spi = to_spi_device(hcd->self.controller);
446 spi_sync(spi, &msg);
531 struct spi_device *spi = to_spi_device(hcd->self.controller);
556 dev_err(&spi->dev,
637 struct spi_device *spi = to_spi_device(hcd->self.controller);
678 dev_dbg(&spi->dev, "%s: URB %p unlinked=%d",
772 struct spi_device *spi = to_spi_device(hcd->self.controller);
786 dev_dbg(&spi->dev, "%s: URB %p unlinked=%d",
852 struct spi_device *spi = to_spi_device(hcd->self.controller);
883 dev_dbg(&spi->dev, "%s: unexpected error HRSL=0x%02x",
911 dev_dbg(&spi->dev, "%s: unexpected error HRSL=0x%02x",
917 dev_dbg(&spi->dev, "%s: unexpected error HRSL=0x%02x",
944 struct spi_device *spi = to_spi_device(hcd->self.controller);
961 dev_err(&spi->dev,
1139 struct spi_device *spi = to_spi_device(hcd->self.controller);
1146 disable_irq_nosync(spi->irq);
1289 struct spi_device *spi = to_spi_device(hcd->self.controller);
1303 dev_err(&spi->dev,
1378 struct spi_device *spi = to_spi_device(hcd->self.controller);
1391 dev_err(&spi->dev, "bad rev 0x%02x", max3421_hcd->rev);
1394 dev_info(&spi->dev, "rev 0x%x, SPI clk %dHz, bpw %u, irq %d\n",
1395 max3421_hcd->rev, spi->max_speed_hz, spi->bits_per_word,
1396 spi->irq);
1409 enable_irq(spi->irq);
1451 dev_info(&spi->dev, "SPI thread exiting");
1505 struct spi_device *spi = to_spi_device(hcd->self.controller);
1515 dev_err(&spi->dev,
1677 struct spi_device *spi = to_spi_device(hcd->self.controller);
1683 pdata = spi->dev.platform_data;
1824 max3421_probe(struct spi_device *spi)
1826 struct device *dev = &spi->dev;
1832 if (spi_setup(spi) < 0) {
1833 dev_err(&spi->dev, "Unable to setup SPI bus");
1837 if (!spi->irq) {
1843 pdata = devm_kzalloc(&spi->dev, sizeof(*pdata), GFP_KERNEL);
1852 spi->dev.platform_data = pdata;
1855 pdata = spi->dev.platform_data;
1857 dev_err(&spi->dev, "driver configuration data is not provided\n");
1862 dev_err(&spi->dev, "vbus active level value %d is out of range (0/1)\n", pdata->vbus_active_level);
1867 dev_err(&spi->dev, "vbus gpout value %d is out of range (1..8)\n", pdata->vbus_gpout);
1873 hcd = usb_create_hcd(&max3421_hcd_desc, &spi->dev,
1874 dev_name(&spi->dev));
1876 dev_err(&spi->dev, "failed to create HCD structure\n");
1882 spi_set_drvdata(spi, max3421_hcd);
1894 dev_err(&spi->dev,
1901 dev_err(&spi->dev, "failed to add HCD\n");
1905 retval = request_irq(spi->irq, max3421_irq_handler,
1908 dev_err(&spi->dev, "failed to request irq %d\n", spi->irq);
1915 devm_kfree(&spi->dev, pdata);
1916 spi->dev.platform_data = NULL;
1930 max3421_remove(struct spi_device *spi)
1936 max3421_hcd = spi_get_drvdata(spi);
1947 free_irq(spi->irq, hcd);