Searched refs:spi_controller (Results 1 - 25 of 152) sorted by relevance

1234567

/linux-master/drivers/spi/
H A Dinternals.h20 void spi_flush_queue(struct spi_controller *ctrl);
23 int spi_map_buf(struct spi_controller *ctlr, struct device *dev,
26 void spi_unmap_buf(struct spi_controller *ctlr, struct device *dev,
29 static inline int spi_map_buf(struct spi_controller *ctlr, struct device *dev,
36 static inline void spi_unmap_buf(struct spi_controller *ctlr,
H A Dspi-loongson.h30 struct spi_controller;
33 struct spi_controller *controller;
H A Dspi.c148 struct spi_controller *ctlr = container_of(dev, \
149 struct spi_controller, dev); \
315 struct spi_controller *ctlr)
545 * spi_controller list, and their matching process also used
567 struct spi_device *spi_alloc_device(struct spi_controller *ctlr)
669 struct spi_controller *ctlr = spi->controller;
758 struct spi_controller *ctlr = spi->controller;
793 struct spi_device *spi_new_device(struct spi_controller *ctlr,
881 static void spi_match_controller_to_boardinfo(struct spi_controller *ctlr,
929 struct spi_controller *ctl
[all...]
H A Dspi-clps711x.c36 static int spi_clps711x_prepare_message(struct spi_controller *host,
48 static int spi_clps711x_transfer_one(struct spi_controller *host,
71 struct spi_controller *host = dev_id;
95 struct spi_controller *host;
H A Dspi-ep93xx.c112 static int ep93xx_spi_calc_divisors(struct spi_controller *host,
146 static int ep93xx_spi_chip_setup(struct spi_controller *host,
179 static void ep93xx_do_write(struct spi_controller *host)
197 static void ep93xx_do_read(struct spi_controller *host)
226 static int ep93xx_spi_read_write(struct spi_controller *host)
272 ep93xx_spi_dma_prepare(struct spi_controller *host,
376 static void ep93xx_spi_dma_finish(struct spi_controller *host,
396 struct spi_controller *host = callback_param;
404 static int ep93xx_spi_dma_transfer(struct spi_controller *host)
439 struct spi_controller *hos
[all...]
H A Dspi-at91-usart.c105 struct spi_controller *ctlr = data;
113 static bool at91_usart_spi_can_dma(struct spi_controller *ctrl,
122 static int at91_usart_spi_configure_dma(struct spi_controller *ctlr,
185 static void at91_usart_spi_release_dma(struct spi_controller *ctlr)
193 static void at91_usart_spi_stop_dma(struct spi_controller *ctlr)
201 static int at91_usart_spi_dma_transfer(struct spi_controller *ctlr,
321 struct spi_controller *controller = dev_id;
383 static int at91_usart_spi_transfer_one(struct spi_controller *ctlr,
429 static int at91_usart_spi_prepare_message(struct spi_controller *ctlr,
443 static int at91_usart_spi_unprepare_message(struct spi_controller *ctl
[all...]
H A Dspi-cavium-octeon.c22 struct spi_controller *host;
74 struct spi_controller *host = platform_get_drvdata(pdev);
H A Dspi-ljca.c71 struct spi_controller *controller;
193 static int ljca_spi_transfer_one(struct spi_controller *controller,
222 struct spi_controller *controller;
253 struct spi_controller *controller = auxiliary_get_drvdata(auxdev);
262 struct spi_controller *controller = dev_get_drvdata(dev);
269 struct spi_controller *controller = dev_get_drvdata(dev);
H A Dspi-bcm2835aux.c234 struct spi_controller *host = dev_id;
260 static int __bcm2835aux_spi_transfer_one_irq(struct spi_controller *host,
275 static int bcm2835aux_spi_transfer_one_irq(struct spi_controller *host,
300 static int bcm2835aux_spi_transfer_one_poll(struct spi_controller *host,
340 static int bcm2835aux_spi_transfer_one(struct spi_controller *host,
401 static int bcm2835aux_spi_prepare_message(struct spi_controller *host,
425 static int bcm2835aux_spi_unprepare_message(struct spi_controller *host,
435 static void bcm2835aux_spi_handle_err(struct spi_controller *host,
476 struct spi_controller *host;
558 struct spi_controller *hos
[all...]
H A Dspi-meson-spifc.c76 struct spi_controller *host;
245 static int meson_spifc_transfer_one(struct spi_controller *host,
287 struct spi_controller *host;
360 struct spi_controller *host = dev_get_drvdata(dev);
376 struct spi_controller *host = dev_get_drvdata(dev);
399 struct spi_controller *host = dev_get_drvdata(dev);
409 struct spi_controller *host = dev_get_drvdata(dev);
H A Dspi-sunplus-sp7021.c79 struct spi_controller *ctlr;
111 static int sp7021_spi_target_abort(struct spi_controller *ctlr)
241 static void sp7021_prep_transfer(struct spi_controller *ctlr, struct spi_device *spi)
251 static int sp7021_spi_controller_prepare_message(struct spi_controller *ctlr,
284 static void sp7021_spi_setup_clk(struct spi_controller *ctlr, struct spi_transfer *xfer)
298 static int sp7021_spi_host_transfer_one(struct spi_controller *ctlr, struct spi_device *spi,
362 static int sp7021_spi_target_transfer_one(struct spi_controller *ctlr, struct spi_device *spi,
406 struct spi_controller *ctlr;
509 struct spi_controller *ctlr = dev_get_drvdata(&pdev->dev);
518 struct spi_controller *ctl
[all...]
H A Dspi-bcm2835.c127 struct spi_controller *ctlr;
410 static int bcm2835_spi_transfer_one_irq(struct spi_controller *ctlr,
485 static void bcm2835_spi_transfer_prologue(struct spi_controller *ctlr,
609 struct spi_controller *ctlr = data;
637 struct spi_controller *ctlr = data;
671 static int bcm2835_spi_prepare_sg(struct spi_controller *ctlr,
770 static int bcm2835_spi_transfer_one_dma(struct spi_controller *ctlr,
852 static bool bcm2835_spi_can_dma(struct spi_controller *ctlr,
864 static void bcm2835_dma_release(struct spi_controller *ctlr,
890 static int bcm2835_dma_init(struct spi_controller *ctl
[all...]
H A Dspi-mux.c89 struct spi_controller *ctlr = spi_get_drvdata(priv->spi);
99 static int spi_mux_transfer_one_message(struct spi_controller *ctlr,
128 struct spi_controller *ctlr;
H A Dspi-cadence.c357 struct spi_controller *ctlr = dev_id;
406 static int cdns_prepare_message(struct spi_controller *ctlr,
416 * @ctlr: Pointer to spi_controller structure
427 static int cdns_transfer_one(struct spi_controller *ctlr,
462 * @ctlr: Pointer to the spi_controller structure which provides
469 static int cdns_prepare_transfer_hardware(struct spi_controller *ctlr)
480 * @ctlr: Pointer to the spi_controller structure which provides
488 static int cdns_unprepare_transfer_hardware(struct spi_controller *ctlr)
530 * @ctlr: Pointer to the spi_controller structure
536 static int cdns_target_abort(struct spi_controller *ctl
[all...]
H A Dspi-loongson-core.c147 static int loongson_spi_prepare_message(struct spi_controller *ctlr, struct spi_message *m)
158 static int loongson_spi_transfer_one(struct spi_controller *ctrl, struct spi_device *spi,
170 static int loongson_spi_unprepare_message(struct spi_controller *ctrl, struct spi_message *m)
197 struct spi_controller *controller;
235 struct spi_controller *controller;
255 struct spi_controller *controller;
H A Dspi-pxa2xx.h19 struct spi_controller;
29 struct spi_controller *controller;
H A Dspi-cavium-thunderx.c23 struct spi_controller *host;
88 struct spi_controller *host = pci_get_drvdata(pdev);
H A Dspi-hisi-kunpeng.c165 struct spi_controller *host;
167 host = container_of(hs->dev, struct spi_controller, dev);
292 static u32 hisi_calc_effective_speed(struct spi_controller *host,
337 struct spi_controller *host = dev_id;
374 static int hisi_spi_transfer_one(struct spi_controller *host,
410 static void hisi_spi_handle_err(struct spi_controller *host,
453 struct spi_controller *host;
526 struct spi_controller *host = platform_get_drvdata(pdev);
H A Dspi-slave-mt27xx.c129 static int mtk_spi_slave_prepare_message(struct spi_controller *ctlr,
162 static int mtk_spi_slave_fifo_transfer(struct spi_controller *ctlr,
199 static int mtk_spi_slave_dma_transfer(struct spi_controller *ctlr,
282 static int mtk_spi_slave_transfer_one(struct spi_controller *ctlr,
317 static int mtk_slave_abort(struct spi_controller *ctlr)
329 struct spi_controller *ctlr = dev_id;
386 struct spi_controller *ctlr;
485 struct spi_controller *ctlr = dev_get_drvdata(dev);
501 struct spi_controller *ctlr = dev_get_drvdata(dev);
524 struct spi_controller *ctl
[all...]
H A Dspi-rpc-if.c133 struct spi_controller *ctlr;
178 struct spi_controller *ctlr = platform_get_drvdata(pdev);
187 struct spi_controller *ctlr = dev_get_drvdata(dev);
194 struct spi_controller *ctlr = dev_get_drvdata(dev);
H A Dspi-ar934x.c45 struct spi_controller *ctlr;
78 static int ar934x_spi_transfer_one_message(struct spi_controller *ctlr,
167 struct spi_controller *ctlr;
214 struct spi_controller *ctlr;
/linux-master/include/linux/spi/
H A Dspi.h29 struct spi_controller;
186 struct spi_controller *controller;
391 * struct spi_controller - interface to SPI master or slave controller
393 * @list: link with the global spi_controller list
517 * @pcpu_statistics: statistics for the spi_controller
547 struct spi_controller { struct
674 /* Called on release() to free memory provided by spi_controller */
684 bool (*can_dma)(struct spi_controller *ctlr,
720 int (*prepare_transfer_hardware)(struct spi_controller *ctlr);
721 int (*transfer_one_message)(struct spi_controller *ctl
[all...]
H A Daltera.h49 extern void altera_spi_init_host(struct spi_controller *host);
H A Dspi_bitbang.h13 struct spi_controller *ctlr;
/linux-master/include/trace/events/
H A Dspi.h11 DECLARE_EVENT_CLASS(spi_controller,
13 TP_PROTO(struct spi_controller *controller),
29 DEFINE_EVENT(spi_controller, spi_controller_idle,
31 TP_PROTO(struct spi_controller *controller),
37 DEFINE_EVENT(spi_controller, spi_controller_busy,
39 TP_PROTO(struct spi_controller *controller),

Completed in 333 milliseconds

1234567