Lines Matching refs:lantiq_ssc_spi
153 struct lantiq_ssc_spi;
156 int (*cfg_irq)(struct platform_device *pdev, struct lantiq_ssc_spi *spi);
165 struct lantiq_ssc_spi { struct
189 static u32 lantiq_ssc_readl(const struct lantiq_ssc_spi *spi, u32 reg) in lantiq_ssc_readl() argument
194 static void lantiq_ssc_writel(const struct lantiq_ssc_spi *spi, u32 val, in lantiq_ssc_writel()
200 static void lantiq_ssc_maskl(const struct lantiq_ssc_spi *spi, u32 clr, in lantiq_ssc_maskl()
210 static unsigned int tx_fifo_level(const struct lantiq_ssc_spi *spi) in tx_fifo_level()
218 static unsigned int rx_fifo_level(const struct lantiq_ssc_spi *spi) in rx_fifo_level()
226 static unsigned int tx_fifo_free(const struct lantiq_ssc_spi *spi) in tx_fifo_free()
231 static void rx_fifo_reset(const struct lantiq_ssc_spi *spi) in rx_fifo_reset()
239 static void tx_fifo_reset(const struct lantiq_ssc_spi *spi) in tx_fifo_reset()
247 static void rx_fifo_flush(const struct lantiq_ssc_spi *spi) in rx_fifo_flush()
252 static void tx_fifo_flush(const struct lantiq_ssc_spi *spi) in tx_fifo_flush()
257 static void hw_enter_config_mode(const struct lantiq_ssc_spi *spi) in hw_enter_config_mode()
262 static void hw_enter_active_mode(const struct lantiq_ssc_spi *spi) in hw_enter_active_mode()
267 static void hw_setup_speed_hz(const struct lantiq_ssc_spi *spi, in hw_setup_speed_hz()
296 static void hw_setup_bits_per_word(const struct lantiq_ssc_spi *spi, in hw_setup_bits_per_word()
307 static void hw_setup_clock_mode(const struct lantiq_ssc_spi *spi, in hw_setup_clock_mode()
345 static void lantiq_ssc_hw_init(const struct lantiq_ssc_spi *spi) in lantiq_ssc_hw_init()
391 struct lantiq_ssc_spi *spi = spi_controller_get_devdata(host); in lantiq_ssc_setup()
422 struct lantiq_ssc_spi *spi = spi_controller_get_devdata(host); in lantiq_ssc_prepare_message()
431 static void hw_setup_transfer(struct lantiq_ssc_spi *spi, in hw_setup_transfer()
467 struct lantiq_ssc_spi *spi = spi_controller_get_devdata(host); in lantiq_ssc_unprepare_message()
478 static void tx_fifo_write(struct lantiq_ssc_spi *spi) in tx_fifo_write()
519 static void rx_fifo_read_full_duplex(struct lantiq_ssc_spi *spi) in rx_fifo_read_full_duplex()
565 static void rx_fifo_read_half_duplex(struct lantiq_ssc_spi *spi) in rx_fifo_read_half_duplex()
607 static void rx_request(struct lantiq_ssc_spi *spi) in rx_request()
626 struct lantiq_ssc_spi *spi = data; in lantiq_ssc_xmit_interrupt()
667 struct lantiq_ssc_spi *spi = data; in lantiq_ssc_err_interrupt()
706 struct lantiq_ssc_spi *spi = data; in intel_lgm_ssc_isr()
722 static int transfer_start(struct lantiq_ssc_spi *spi, struct spi_device *spidev, in transfer_start()
761 struct lantiq_ssc_spi *spi; in lantiq_ssc_bussy_work()
790 struct lantiq_ssc_spi *spi = spi_controller_get_devdata(host); in lantiq_ssc_handle_err()
799 struct lantiq_ssc_spi *spi = spi_controller_get_devdata(spidev->controller); in lantiq_ssc_set_cs()
815 struct lantiq_ssc_spi *spi = spi_controller_get_devdata(host); in lantiq_ssc_transfer_one()
822 static int intel_lgm_cfg_irq(struct platform_device *pdev, struct lantiq_ssc_spi *spi) in intel_lgm_cfg_irq()
833 static int lantiq_cfg_irq(struct platform_device *pdev, struct lantiq_ssc_spi *spi) in lantiq_cfg_irq()
908 struct lantiq_ssc_spi *spi; in lantiq_ssc_probe()
916 host = spi_alloc_host(dev, sizeof(struct lantiq_ssc_spi)); in lantiq_ssc_probe()
1023 struct lantiq_ssc_spi *spi = platform_get_drvdata(pdev); in lantiq_ssc_remove()