Lines Matching refs:spi
352 struct spi_device *spi = to_spi_device(hcd->self.controller); in spi_rd8() local
369 spi_sync(spi, &msg); in spi_rd8()
377 struct spi_device *spi = to_spi_device(hcd->self.controller); in spi_wr8() local
395 spi_sync(spi, &msg); in spi_wr8()
401 struct spi_device *spi = to_spi_device(hcd->self.controller); in spi_rd_buf() local
421 spi_sync(spi, &msg); in spi_rd_buf()
427 struct spi_device *spi = to_spi_device(hcd->self.controller); in spi_wr_buf() local
448 spi_sync(spi, &msg); in spi_wr_buf()
556 struct spi_device *spi = to_spi_device(hcd->self.controller); in max3421_transfer_out() local
581 dev_err(&spi->dev, in max3421_transfer_out()
662 struct spi_device *spi = to_spi_device(hcd->self.controller); in max3421_select_and_start_urb() local
703 dev_dbg(&spi->dev, "%s: URB %p unlinked=%d", in max3421_select_and_start_urb()
798 struct spi_device *spi = to_spi_device(hcd->self.controller); in max3421_check_unlink() local
815 dev_dbg(&spi->dev, "%s: URB %p unlinked=%d", in max3421_check_unlink()
881 struct spi_device *spi = to_spi_device(hcd->self.controller); in max3421_handle_error() local
912 dev_dbg(&spi->dev, "%s: unexpected error HRSL=0x%02x", in max3421_handle_error()
940 dev_dbg(&spi->dev, "%s: unexpected error HRSL=0x%02x", in max3421_handle_error()
946 dev_dbg(&spi->dev, "%s: unexpected error HRSL=0x%02x", in max3421_handle_error()
973 struct spi_device *spi = to_spi_device(hcd->self.controller); in max3421_transfer_in_done() local
990 dev_err(&spi->dev, in max3421_transfer_in_done()
1168 struct spi_device *spi = to_spi_device(hcd->self.controller); in max3421_irq_handler() local
1175 disable_irq_nosync(spi->irq); in max3421_irq_handler()
1321 struct spi_device *spi = to_spi_device(hcd->self.controller); in max3421_reset_hcd() local
1335 dev_err(&spi->dev, in max3421_reset_hcd()
1400 struct spi_device *spi = to_spi_device(hcd->self.controller); in max3421_spi_thread() local
1413 dev_err(&spi->dev, "bad rev 0x%02x", max3421_hcd->rev); in max3421_spi_thread()
1416 dev_info(&spi->dev, "rev 0x%x, SPI clk %dHz, bpw %u, irq %d\n", in max3421_spi_thread()
1417 max3421_hcd->rev, spi->max_speed_hz, spi->bits_per_word, in max3421_spi_thread()
1418 spi->irq); in max3421_spi_thread()
1431 enable_irq(spi->irq); in max3421_spi_thread()
1473 dev_info(&spi->dev, "SPI thread exiting"); in max3421_spi_thread()
1527 struct spi_device *spi = to_spi_device(hcd->self.controller); in max3421_urb_enqueue() local
1537 dev_err(&spi->dev, in max3421_urb_enqueue()
1699 struct spi_device *spi = to_spi_device(hcd->self.controller); in max3421_hub_control() local
1707 pdata = spi->dev.platform_data; in max3421_hub_control()
1841 max3421_probe(struct spi_device *spi) in max3421_probe() argument
1847 if (spi_setup(spi) < 0) { in max3421_probe()
1848 dev_err(&spi->dev, "Unable to setup SPI bus"); in max3421_probe()
1852 hcd = usb_create_hcd(&max3421_hcd_desc, &spi->dev, in max3421_probe()
1853 dev_name(&spi->dev)); in max3421_probe()
1855 dev_err(&spi->dev, "failed to create HCD structure\n"); in max3421_probe()
1866 dev_err(&spi->dev, "failed to kmalloc tx buffer\n"); in max3421_probe()
1871 dev_err(&spi->dev, "failed to kmalloc rx buffer\n"); in max3421_probe()
1878 dev_err(&spi->dev, in max3421_probe()
1885 dev_err(&spi->dev, "failed to add HCD\n"); in max3421_probe()
1889 retval = request_irq(spi->irq, max3421_irq_handler, in max3421_probe()
1892 dev_err(&spi->dev, "failed to request irq %d\n", spi->irq); in max3421_probe()
1909 max3421_remove(struct spi_device *spi) in max3421_remove() argument
1918 if (hcd->self.controller == &spi->dev) in max3421_remove()
1922 dev_err(&spi->dev, "no MAX3421 HCD found for SPI device %p\n", in max3421_remove()
1923 spi); in max3421_remove()
1936 free_irq(spi->irq, hcd); in max3421_remove()