Lines Matching refs:pic32_spi_priv
59 struct pic32_spi_priv { struct
78 void (*rx_fifo)(struct pic32_spi_priv *); argument
79 void (*tx_fifo)(struct pic32_spi_priv *); argument
82 static inline void pic32_spi_enable(struct pic32_spi_priv *priv) in pic32_spi_enable()
87 static inline void pic32_spi_disable(struct pic32_spi_priv *priv) in pic32_spi_disable()
92 static inline u32 pic32_spi_rx_fifo_level(struct pic32_spi_priv *priv) in pic32_spi_rx_fifo_level()
99 static inline u32 pic32_spi_tx_fifo_level(struct pic32_spi_priv *priv) in pic32_spi_tx_fifo_level()
107 static u32 pic32_tx_max(struct pic32_spi_priv *priv, int n_bytes) in pic32_tx_max()
120 static u32 pic32_rx_max(struct pic32_spi_priv *priv, int n_bytes) in pic32_rx_max()
128 static void pic32_spi_rx_##__name(struct pic32_spi_priv *priv) \
141 static void pic32_spi_tx_##__name(struct pic32_spi_priv *priv) \
158 static int pic32_spi_set_word_size(struct pic32_spi_priv *priv, in pic32_spi_set_word_size()
199 struct pic32_spi_priv *priv = dev_get_priv(slave->parent); in pic32_spi_claim_bus()
209 struct pic32_spi_priv *priv = dev_get_priv(slave->parent); in pic32_spi_release_bus()
217 static void spi_cs_activate(struct pic32_spi_priv *priv) in spi_cs_activate()
225 static void spi_cs_deactivate(struct pic32_spi_priv *priv) in spi_cs_deactivate()
239 struct pic32_spi_priv *priv; in pic32_spi_xfer()
292 struct pic32_spi_priv *priv = dev_get_priv(bus); in pic32_spi_set_speed()
309 struct pic32_spi_priv *priv = dev_get_priv(bus); in pic32_spi_set_mode()
339 struct pic32_spi_priv *priv = dev_get_priv(slave->parent); in pic32_spi_set_wordlen()
344 static void pic32_spi_hw_init(struct pic32_spi_priv *priv) in pic32_spi_hw_init()
377 struct pic32_spi_priv *priv = dev_get_priv(bus); in pic32_spi_probe()
445 .priv_auto_alloc_size = sizeof(struct pic32_spi_priv),