Lines Matching refs:pic32_spi

95 struct pic32_spi {  struct
119 void (*rx_fifo)(struct pic32_spi *); argument
120 void (*tx_fifo)(struct pic32_spi *); argument
123 static inline void pic32_spi_enable(struct pic32_spi *pic32s) in pic32_spi_enable()
128 static inline void pic32_spi_disable(struct pic32_spi *pic32s) in pic32_spi_disable()
136 static void pic32_spi_set_clk_rate(struct pic32_spi *pic32s, u32 spi_ck) in pic32_spi_set_clk_rate()
146 static inline u32 pic32_rx_fifo_level(struct pic32_spi *pic32s) in pic32_rx_fifo_level()
153 static inline u32 pic32_tx_fifo_level(struct pic32_spi *pic32s) in pic32_tx_fifo_level()
161 static u32 pic32_tx_max(struct pic32_spi *pic32s, int n_bytes) in pic32_tx_max()
182 static u32 pic32_rx_max(struct pic32_spi *pic32s, int n_bytes) in pic32_rx_max()
190 static void pic32_spi_rx_##__name(struct pic32_spi *pic32s) \
202 static void pic32_spi_tx_##__name(struct pic32_spi *pic32s) \
219 static void pic32_err_stop(struct pic32_spi *pic32s, const char *msg) in pic32_err_stop()
235 struct pic32_spi *pic32s = dev_id; in pic32_spi_fault_irq()
263 struct pic32_spi *pic32s = dev_id; in pic32_spi_rx_irq()
282 struct pic32_spi *pic32s = dev_id; in pic32_spi_tx_irq()
295 struct pic32_spi *pic32s = data; in pic32_spi_dma_rx_notify()
300 static int pic32_spi_dma_transfer(struct pic32_spi *pic32s, in pic32_spi_dma_transfer()
357 static int pic32_spi_dma_config(struct pic32_spi *pic32s, u32 dma_width) in pic32_spi_dma_config()
388 static int pic32_spi_set_word_size(struct pic32_spi *pic32s, u8 bits_per_word) in pic32_spi_set_word_size()
435 struct pic32_spi *pic32s = spi_controller_get_devdata(host); in pic32_spi_prepare_hardware()
445 struct pic32_spi *pic32s = spi_controller_get_devdata(host); in pic32_spi_prepare_message()
488 struct pic32_spi *pic32s = spi_controller_get_devdata(host); in pic32_spi_can_dma()
499 struct pic32_spi *pic32s; in pic32_spi_one_transfer()
572 struct pic32_spi *pic32s = spi_controller_get_devdata(host); in pic32_spi_unprepare_hardware()
606 static int pic32_spi_dma_prep(struct pic32_spi *pic32s, struct device *dev) in pic32_spi_dma_prep()
655 static void pic32_spi_dma_unprep(struct pic32_spi *pic32s) in pic32_spi_dma_unprep()
668 static void pic32_spi_hw_init(struct pic32_spi *pic32s) in pic32_spi_hw_init()
708 struct pic32_spi *pic32s) in pic32_spi_hw_probe()
752 struct pic32_spi *pic32s; in pic32_spi_probe()
843 struct pic32_spi *pic32s; in pic32_spi_remove()