Home
last modified time | relevance | path

Searched refs:spi_master (Results 1 – 25 of 99) sorted by relevance

1234

/Linux-v5.15/drivers/spi/
Dspi-amd.c44 static inline u8 amd_spi_readreg8(struct spi_master *master, int idx) in amd_spi_readreg8()
51 static inline void amd_spi_writereg8(struct spi_master *master, int idx, in amd_spi_writereg8()
59 static inline void amd_spi_setclear_reg8(struct spi_master *master, int idx, in amd_spi_setclear_reg8()
68 static inline u32 amd_spi_readreg32(struct spi_master *master, int idx) in amd_spi_readreg32()
75 static inline void amd_spi_writereg32(struct spi_master *master, int idx, in amd_spi_writereg32()
83 static inline void amd_spi_setclear_reg32(struct spi_master *master, int idx, in amd_spi_setclear_reg32()
92 static void amd_spi_select_chip(struct spi_master *master) in amd_spi_select_chip()
101 static void amd_spi_clear_fifo_ptr(struct spi_master *master) in amd_spi_clear_fifo_ptr()
107 static void amd_spi_set_opcode(struct spi_master *master, u8 cmd_opcode) in amd_spi_set_opcode()
113 static inline void amd_spi_set_rx_count(struct spi_master *master, in amd_spi_set_rx_count()
[all …]
Dspi-ep93xx.c112 static int ep93xx_spi_calc_divisors(struct spi_master *master, in ep93xx_spi_calc_divisors()
146 static int ep93xx_spi_chip_setup(struct spi_master *master, in ep93xx_spi_chip_setup()
179 static void ep93xx_do_write(struct spi_master *master) in ep93xx_do_write()
197 static void ep93xx_do_read(struct spi_master *master) in ep93xx_do_read()
226 static int ep93xx_spi_read_write(struct spi_master *master) in ep93xx_spi_read_write()
272 ep93xx_spi_dma_prepare(struct spi_master *master, in ep93xx_spi_dma_prepare()
376 static void ep93xx_spi_dma_finish(struct spi_master *master, in ep93xx_spi_dma_finish()
396 struct spi_master *master = callback_param; in ep93xx_spi_dma_callback()
404 static int ep93xx_spi_dma_transfer(struct spi_master *master) in ep93xx_spi_dma_transfer()
439 struct spi_master *master = dev_id; in ep93xx_spi_interrupt()
[all …]
Dspi-omap-100k.c80 static void spi100k_enable_clock(struct spi_master *master) in spi100k_enable_clock()
91 static void spi100k_disable_clock(struct spi_master *master) in spi100k_disable_clock()
102 static void spi100k_write_data(struct spi_master *master, int len, int data) in spi100k_write_data()
128 static int spi100k_read_data(struct spi_master *master, int len) in spi100k_read_data()
154 static void spi100k_open(struct spi_master *master) in spi100k_open()
288 static int omap1_spi100k_transfer_one_message(struct spi_master *master, in omap1_spi100k_transfer_one_message()
345 struct spi_master *master; in omap1_spi100k_probe()
425 struct spi_master *master = platform_get_drvdata(pdev); in omap1_spi100k_remove()
439 struct spi_master *master = dev_get_drvdata(dev); in omap1_spi100k_runtime_suspend()
450 struct spi_master *master = dev_get_drvdata(dev); in omap1_spi100k_runtime_resume()
Dspi-cadence.c343 struct spi_master *master = dev_id; in cdns_spi_irq()
391 static int cdns_prepare_message(struct spi_master *master, in cdns_prepare_message()
410 static int cdns_transfer_one(struct spi_master *master, in cdns_transfer_one()
438 static int cdns_prepare_transfer_hardware(struct spi_master *master) in cdns_prepare_transfer_hardware()
456 static int cdns_unprepare_transfer_hardware(struct spi_master *master) in cdns_unprepare_transfer_hardware()
476 struct spi_master *master; in cdns_spi_probe()
604 struct spi_master *master = platform_get_drvdata(pdev); in cdns_spi_remove()
630 struct spi_master *master = dev_get_drvdata(dev); in cdns_spi_suspend()
645 struct spi_master *master = dev_get_drvdata(dev); in cdns_spi_resume()
662 struct spi_master *master = dev_get_drvdata(dev); in cnds_runtime_resume()
[all …]
Dspi-img-spfi.c89 struct spi_master *master;
224 static int img_spfi_start_pio(struct spi_master *master, in img_spfi_start_pio()
306 static int img_spfi_start_dma(struct spi_master *master, in img_spfi_start_dma()
387 static void img_spfi_handle_err(struct spi_master *master, in img_spfi_handle_err()
408 static int img_spfi_prepare(struct spi_master *master, struct spi_message *msg) in img_spfi_prepare()
430 static int img_spfi_unprepare(struct spi_master *master, in img_spfi_unprepare()
440 static void img_spfi_config(struct spi_master *master, struct spi_device *spi, in img_spfi_config()
479 static int img_spfi_transfer_one(struct spi_master *master, in img_spfi_transfer_one()
502 static bool img_spfi_can_dma(struct spi_master *master, struct spi_device *spi, in img_spfi_can_dma()
527 struct spi_master *master; in img_spfi_probe()
[all …]
Dspi-bcm2835aux.c237 struct spi_master *master = dev_id; in bcm2835aux_spi_interrupt()
263 static int __bcm2835aux_spi_transfer_one_irq(struct spi_master *master, in __bcm2835aux_spi_transfer_one_irq()
278 static int bcm2835aux_spi_transfer_one_irq(struct spi_master *master, in bcm2835aux_spi_transfer_one_irq()
303 static int bcm2835aux_spi_transfer_one_poll(struct spi_master *master, in bcm2835aux_spi_transfer_one_poll()
343 static int bcm2835aux_spi_transfer_one(struct spi_master *master, in bcm2835aux_spi_transfer_one()
404 static int bcm2835aux_spi_prepare_message(struct spi_master *master, in bcm2835aux_spi_prepare_message()
428 static int bcm2835aux_spi_unprepare_message(struct spi_master *master, in bcm2835aux_spi_unprepare_message()
438 static void bcm2835aux_spi_handle_err(struct spi_master *master, in bcm2835aux_spi_handle_err()
492 struct spi_master *master; in bcm2835aux_spi_probe()
585 struct spi_master *master = platform_get_drvdata(pdev); in bcm2835aux_spi_remove()
Dspi-meson-spifc.c76 struct spi_master *master;
245 static int meson_spifc_transfer_one(struct spi_master *master, in meson_spifc_transfer_one()
287 struct spi_master *master; in meson_spifc_probe()
359 struct spi_master *master = platform_get_drvdata(pdev); in meson_spifc_remove()
372 struct spi_master *master = dev_get_drvdata(dev); in meson_spifc_suspend()
388 struct spi_master *master = dev_get_drvdata(dev); in meson_spifc_resume()
411 struct spi_master *master = dev_get_drvdata(dev); in meson_spifc_runtime_suspend()
421 struct spi_master *master = dev_get_drvdata(dev); in meson_spifc_runtime_resume()
Dspi-mt65xx.c278 static int mtk_spi_prepare_message(struct spi_master *master, in mtk_spi_prepare_message()
379 static void mtk_spi_prepare_transfer(struct spi_master *master, in mtk_spi_prepare_transfer()
412 static void mtk_spi_setup_packet(struct spi_master *master) in mtk_spi_setup_packet()
427 static void mtk_spi_enable_transfer(struct spi_master *master) in mtk_spi_enable_transfer()
452 static void mtk_spi_update_mdata_len(struct spi_master *master) in mtk_spi_update_mdata_len()
480 static void mtk_spi_setup_dma_addr(struct spi_master *master, in mtk_spi_setup_dma_addr()
506 static int mtk_spi_fifo_transfer(struct spi_master *master, in mtk_spi_fifo_transfer()
536 static int mtk_spi_dma_transfer(struct spi_master *master, in mtk_spi_dma_transfer()
581 static int mtk_spi_transfer_one(struct spi_master *master, in mtk_spi_transfer_one()
591 static bool mtk_spi_can_dma(struct spi_master *master, in mtk_spi_can_dma()
[all …]
Dspi-geni-qcom.c121 static void handle_fifo_timeout(struct spi_master *spi, in handle_fifo_timeout()
193 struct spi_master *spi = dev_get_drvdata(mas->dev); in spi_geni_set_cs()
297 struct spi_master *spi) in setup_fifo_params()
333 static int spi_geni_prepare_message(struct spi_master *spi, in spi_geni_prepare_message()
492 u16 mode, struct spi_master *spi) in setup_fifo_xfer()
559 static int spi_geni_transfer_one(struct spi_master *spi, in spi_geni_transfer_one()
578 struct spi_master *spi = data; in geni_spi_isr()
658 struct spi_master *spi; in spi_geni_probe()
753 struct spi_master *spi = platform_get_drvdata(pdev); in spi_geni_remove()
766 struct spi_master *spi = dev_get_drvdata(dev); in spi_geni_runtime_suspend()
[all …]
Dspi-clps711x.c35 static int spi_clps711x_prepare_message(struct spi_master *master, in spi_clps711x_prepare_message()
47 static int spi_clps711x_transfer_one(struct spi_master *master, in spi_clps711x_transfer_one()
70 struct spi_master *master = dev_id; in spi_clps711x_isr()
93 struct spi_master *master; in spi_clps711x_probe()
Dspi-atmel.c422 static bool atmel_spi_can_dma(struct spi_master *master, in atmel_spi_can_dma()
440 struct spi_master *master = platform_get_drvdata(as->pdev); in atmel_spi_dma_slave_config()
496 static int atmel_spi_configure_dma(struct spi_master *master, in atmel_spi_configure_dma()
541 static void atmel_spi_stop_dma(struct spi_master *master) in atmel_spi_stop_dma()
549 static void atmel_spi_release_dma(struct spi_master *master) in atmel_spi_release_dma()
564 struct spi_master *master = data; in dma_callback()
578 static void atmel_spi_next_xfer_single(struct spi_master *master, in atmel_spi_next_xfer_single()
610 static void atmel_spi_next_xfer_fifo(struct spi_master *master, in atmel_spi_next_xfer_fifo()
680 static void atmel_spi_next_xfer_pio(struct spi_master *master, in atmel_spi_next_xfer_pio()
694 static int atmel_spi_next_xfer_dma_submit(struct spi_master *master, in atmel_spi_next_xfer_dma_submit()
[all …]
Dspi-st-ssc4.c119 static int spi_st_transfer_one(struct spi_master *master, in spi_st_transfer_one()
300 struct spi_master *master; in spi_st_probe()
394 struct spi_master *master = platform_get_drvdata(pdev); in spi_st_remove()
409 struct spi_master *master = dev_get_drvdata(dev); in spi_st_runtime_suspend()
422 struct spi_master *master = dev_get_drvdata(dev); in spi_st_runtime_resume()
436 struct spi_master *master = dev_get_drvdata(dev); in spi_st_suspend()
448 struct spi_master *master = dev_get_drvdata(dev); in spi_st_resume()
Dspi-uniphier.c29 struct spi_master *master;
349 static bool uniphier_spi_can_dma(struct spi_master *master, in uniphier_spi_can_dma()
366 struct spi_master *master = data; in uniphier_spi_dma_rxcb()
378 struct spi_master *master = data; in uniphier_spi_dma_txcb()
388 static int uniphier_spi_transfer_one_dma(struct spi_master *master, in uniphier_spi_transfer_one_dma()
471 static int uniphier_spi_transfer_one_irq(struct spi_master *master, in uniphier_spi_transfer_one_irq()
498 static int uniphier_spi_transfer_one_poll(struct spi_master *master, in uniphier_spi_transfer_one_poll()
526 static int uniphier_spi_transfer_one(struct spi_master *master, in uniphier_spi_transfer_one()
556 static int uniphier_spi_prepare_transfer_hardware(struct spi_master *master) in uniphier_spi_prepare_transfer_hardware()
565 static int uniphier_spi_unprepare_transfer_hardware(struct spi_master *master) in uniphier_spi_unprepare_transfer_hardware()
[all …]
Dspi-qcom-qspi.c216 static void qcom_qspi_handle_err(struct spi_master *master, in qcom_qspi_handle_err()
260 static int qcom_qspi_transfer_one(struct spi_master *master, in qcom_qspi_transfer_one()
300 static int qcom_qspi_prepare_message(struct spi_master *master, in qcom_qspi_prepare_message()
459 struct spi_master *master; in qcom_qspi_probe()
557 struct spi_master *master = platform_get_drvdata(pdev); in qcom_qspi_remove()
569 struct spi_master *master = dev_get_drvdata(dev); in qcom_qspi_runtime_suspend()
589 struct spi_master *master = dev_get_drvdata(dev); in qcom_qspi_runtime_resume()
609 struct spi_master *master = dev_get_drvdata(dev); in qcom_qspi_suspend()
625 struct spi_master *master = dev_get_drvdata(dev); in qcom_qspi_resume()
Dspi-pic32.c103 struct spi_master *master;
303 struct spi_master *master = pic32s->master; in pic32_spi_dma_transfer()
360 struct spi_master *master = pic32s->master; in pic32_spi_dma_config()
435 static int pic32_spi_prepare_hardware(struct spi_master *master) in pic32_spi_prepare_hardware()
444 static int pic32_spi_prepare_message(struct spi_master *master, in pic32_spi_prepare_message()
486 static bool pic32_spi_can_dma(struct spi_master *master, in pic32_spi_can_dma()
497 static int pic32_spi_one_transfer(struct spi_master *master, in pic32_spi_one_transfer()
565 static int pic32_spi_unprepare_message(struct spi_master *master, in pic32_spi_unprepare_message()
572 static int pic32_spi_unprepare_hardware(struct spi_master *master) in pic32_spi_unprepare_hardware()
612 struct spi_master *master = pic32s->master; in pic32_spi_dma_prep()
[all …]
Dspi-armada-3700.c103 struct spi_master *master;
281 struct spi_master *master = a3700_spi->master; in a3700_spi_init()
318 struct spi_master *master = dev_id; in a3700_spi_interrupt()
568 static int a3700_spi_prepare_message(struct spi_master *master, in a3700_spi_prepare_message()
591 static int a3700_spi_transfer_one_fifo(struct spi_master *master, in a3700_spi_transfer_one_fifo()
740 static int a3700_spi_transfer_one_full_duplex(struct spi_master *master, in a3700_spi_transfer_one_full_duplex()
785 static int a3700_spi_transfer_one(struct spi_master *master, in a3700_spi_transfer_one()
797 static int a3700_spi_unprepare_message(struct spi_master *master, in a3700_spi_unprepare_message()
818 struct spi_master *master; in a3700_spi_probe()
913 struct spi_master *master = platform_get_drvdata(pdev); in a3700_spi_remove()
Dspi-npcm-pspi.c23 struct spi_master *master;
248 static int npcm_pspi_transfer_one(struct spi_master *master, in npcm_pspi_transfer_one()
269 static int npcm_pspi_prepare_transfer_hardware(struct spi_master *master) in npcm_pspi_prepare_transfer_hardware()
278 static int npcm_pspi_unprepare_transfer_hardware(struct spi_master *master) in npcm_pspi_unprepare_transfer_hardware()
343 struct spi_master *master; in npcm_pspi_probe()
435 struct spi_master *master = platform_get_drvdata(pdev); in npcm_pspi_remove()
Dspi-tegra20-sflash.c105 struct spi_master *master;
306 static int tegra_sflash_transfer_one_message(struct spi_master *master, in tegra_sflash_transfer_one_message()
419 struct spi_master *master; in tegra_sflash_probe()
526 struct spi_master *master = platform_get_drvdata(pdev); in tegra_sflash_remove()
541 struct spi_master *master = dev_get_drvdata(dev); in tegra_sflash_suspend()
548 struct spi_master *master = dev_get_drvdata(dev); in tegra_sflash_resume()
567 struct spi_master *master = dev_get_drvdata(dev); in tegra_sflash_runtime_suspend()
579 struct spi_master *master = dev_get_drvdata(dev); in tegra_sflash_runtime_resume()
Dspi-bitbang.c271 static int spi_bitbang_prepare_hardware(struct spi_master *spi) in spi_bitbang_prepare_hardware()
284 static int spi_bitbang_transfer_one(struct spi_master *master, in spi_bitbang_transfer_one()
311 static int spi_bitbang_unprepare_hardware(struct spi_master *spi) in spi_bitbang_unprepare_hardware()
344 struct spi_master *master = bitbang->master; in spi_bitbang_init()
425 struct spi_master *master = bitbang->master; in spi_bitbang_start()
Dspi-coldfire-qspi.c298 static int mcfqspi_transfer_one(struct spi_master *master, in mcfqspi_transfer_one()
340 struct spi_master *master; in mcfqspi_probe()
439 struct spi_master *master = platform_get_drvdata(pdev); in mcfqspi_remove()
455 struct spi_master *master = dev_get_drvdata(dev); in mcfqspi_suspend()
470 struct spi_master *master = dev_get_drvdata(dev); in mcfqspi_resume()
482 struct spi_master *master = dev_get_drvdata(dev); in mcfqspi_runtime_suspend()
492 struct spi_master *master = dev_get_drvdata(dev); in mcfqspi_runtime_resume()
Dspi-sun6i.c89 struct spi_master *master;
196 struct spi_master *master = sspi->master; in sun6i_spi_prepare_dma()
254 static int sun6i_spi_transfer_one(struct spi_master *master, in sun6i_spi_transfer_one()
488 struct spi_master *master = dev_get_drvdata(dev); in sun6i_spi_runtime_resume()
525 struct spi_master *master = dev_get_drvdata(dev); in sun6i_spi_runtime_suspend()
535 static bool sun6i_spi_can_dma(struct spi_master *master, in sun6i_spi_can_dma()
551 struct spi_master *master; in sun6i_spi_probe()
688 struct spi_master *master = platform_get_drvdata(pdev); in sun6i_spi_remove()
Dspi-omap2-mcspi.c120 struct spi_master *master;
144 static inline void mcspi_write_reg(struct spi_master *master, in mcspi_write_reg()
152 static inline u32 mcspi_read_reg(struct spi_master *master, int idx) in mcspi_read_reg()
270 static void omap2_mcspi_set_mode(struct spi_master *master) in omap2_mcspi_set_mode()
295 struct spi_master *master = spi->master; in omap2_mcspi_set_fifo()
1015 static void omap2_mcspi_release_dma(struct spi_master *master) in omap2_mcspi_release_dma()
1107 static int omap2_mcspi_slave_abort(struct spi_master *master) in omap2_mcspi_slave_abort()
1120 static int omap2_mcspi_transfer_one(struct spi_master *master, in omap2_mcspi_transfer_one()
1255 static int omap2_mcspi_prepare_message(struct spi_master *master, in omap2_mcspi_prepare_message()
1282 static bool omap2_mcspi_can_dma(struct spi_master *master, in omap2_mcspi_can_dma()
[all …]
Dspi-bcm63xx.c325 static int bcm63xx_spi_transfer_one(struct spi_master *master, in bcm63xx_spi_transfer_one()
408 struct spi_master *master = (struct spi_master *)dev_id; in bcm63xx_spi_interrupt()
492 struct spi_master *master; in bcm63xx_spi_probe()
621 struct spi_master *master = platform_get_drvdata(pdev); in bcm63xx_spi_remove()
636 struct spi_master *master = dev_get_drvdata(dev); in bcm63xx_spi_suspend()
648 struct spi_master *master = dev_get_drvdata(dev); in bcm63xx_spi_resume()
/Linux-v5.15/drivers/staging/greybus/
Dspilib.c45 static struct spi_master *get_master_from_spi(struct gb_spilib *spi) in get_master_from_spi()
327 static int gb_spi_transfer_one_message(struct spi_master *master, in gb_spi_transfer_one_message()
379 static int gb_spi_prepare_transfer_hardware(struct spi_master *master) in gb_spi_prepare_transfer_hardware()
386 static int gb_spi_unprepare_transfer_hardware(struct spi_master *master) in gb_spi_unprepare_transfer_hardware()
443 struct spi_master *master = get_master_from_spi(spi); in gb_spi_setup_device()
489 struct spi_master *master; in gb_spilib_master_init()
564 struct spi_master *master = gb_connection_get_data(connection); in gb_spilib_master_exit()
/Linux-v5.15/Documentation/ABI/testing/
Dsysfs-class-spi-eeprom1 What: /sys/class/spi_master/spi<bus>/spi<bus>.<dev>/fram
10 What: /sys/class/spi_master/spi<bus>/spi<bus>.<dev>/sernum

1234