Lines Matching defs:atmel_spi
254 struct atmel_spi {
320 static bool atmel_spi_is_v2(struct atmel_spi *as)
331 static void atmel_spi_send_dummy(struct atmel_spi *as, struct spi_device *spi, int chip_select)
385 static void cs_activate(struct atmel_spi *as, struct spi_device *spi)
457 static void cs_deactivate(struct atmel_spi *as, struct spi_device *spi)
482 static void atmel_spi_lock(struct atmel_spi *as) __acquires(&as->lock)
487 static void atmel_spi_unlock(struct atmel_spi *as) __releases(&as->lock)
497 static inline bool atmel_spi_use_dma(struct atmel_spi *as,
507 struct atmel_spi *as = spi_controller_get_devdata(host);
517 static int atmel_spi_dma_slave_config(struct atmel_spi *as, u8 bits_per_word)
575 struct atmel_spi *as)
642 struct atmel_spi *as = spi_controller_get_devdata(host);
658 struct atmel_spi *as = spi_controller_get_devdata(host);
690 struct atmel_spi *as = spi_controller_get_devdata(host);
760 struct atmel_spi *as = spi_controller_get_devdata(host);
775 struct atmel_spi *as = spi_controller_get_devdata(host);
876 static int atmel_spi_set_xfer_speed(struct atmel_spi *as,
931 struct atmel_spi *as = spi_controller_get_devdata(host);
997 atmel_spi_dma_map_xfer(struct atmel_spi *as, struct spi_transfer *xfer)
1039 static void atmel_spi_disable_pdc_transfer(struct atmel_spi *as)
1045 atmel_spi_pump_single_data(struct atmel_spi *as, struct spi_transfer *xfer)
1069 atmel_spi_pump_fifo_data(struct atmel_spi *as, struct spi_transfer *xfer)
1109 atmel_spi_pump_pio_data(struct atmel_spi *as, struct spi_transfer *xfer)
1124 struct atmel_spi *as = spi_controller_get_devdata(host);
1182 struct atmel_spi *as = spi_controller_get_devdata(host);
1215 static int atmel_word_delay_csr(struct spi_device *spi, struct atmel_spi *as)
1233 static void initialize_native_cs_for_gpio(struct atmel_spi *as)
1263 struct atmel_spi *as;
1338 struct atmel_spi *as = spi_controller_get_devdata(spi->controller);
1357 struct atmel_spi *as;
1481 static inline unsigned int atmel_get_version(struct atmel_spi *as)
1486 static void atmel_get_caps(struct atmel_spi *as)
1498 static void atmel_spi_init(struct atmel_spi *as)
1526 struct atmel_spi *as;
1680 struct atmel_spi *as = spi_controller_get_devdata(host);
1713 struct atmel_spi *as = spi_controller_get_devdata(host);
1724 struct atmel_spi *as = spi_controller_get_devdata(host);
1750 struct atmel_spi *as = spi_controller_get_devdata(host);
1786 .name = "atmel_spi",
1798 MODULE_ALIAS("platform:atmel_spi");