Home
last modified time | relevance | path

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

12345

/kernel/linux/linux-5.10/drivers/spi/
Dspi-amd.c45 static inline u8 amd_spi_readreg8(struct spi_master *master, int idx) in amd_spi_readreg8()
52 static inline void amd_spi_writereg8(struct spi_master *master, int idx, in amd_spi_writereg8()
60 static inline void amd_spi_setclear_reg8(struct spi_master *master, int idx, in amd_spi_setclear_reg8()
69 static inline u32 amd_spi_readreg32(struct spi_master *master, int idx) in amd_spi_readreg32()
76 static inline void amd_spi_writereg32(struct spi_master *master, int idx, in amd_spi_writereg32()
84 static inline void amd_spi_setclear_reg32(struct spi_master *master, int idx, in amd_spi_setclear_reg32()
93 static void amd_spi_select_chip(struct spi_master *master) in amd_spi_select_chip()
102 static void amd_spi_clear_fifo_ptr(struct spi_master *master) in amd_spi_clear_fifo_ptr()
108 static void amd_spi_set_opcode(struct spi_master *master, u8 cmd_opcode) in amd_spi_set_opcode()
114 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()
347 struct spi_master *master; in omap1_spi100k_probe()
428 struct spi_master *master = platform_get_drvdata(pdev); in omap1_spi100k_remove()
442 struct spi_master *master = dev_get_drvdata(dev); in omap1_spi100k_runtime_suspend()
453 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-mt65xx.c195 static int mtk_spi_prepare_message(struct spi_master *master, in mtk_spi_prepare_message()
287 static void mtk_spi_prepare_transfer(struct spi_master *master, in mtk_spi_prepare_transfer()
328 static void mtk_spi_setup_packet(struct spi_master *master) in mtk_spi_setup_packet()
343 static void mtk_spi_enable_transfer(struct spi_master *master) in mtk_spi_enable_transfer()
368 static void mtk_spi_update_mdata_len(struct spi_master *master) in mtk_spi_update_mdata_len()
396 static void mtk_spi_setup_dma_addr(struct spi_master *master, in mtk_spi_setup_dma_addr()
422 static int mtk_spi_fifo_transfer(struct spi_master *master, in mtk_spi_fifo_transfer()
452 static int mtk_spi_dma_transfer(struct spi_master *master, in mtk_spi_dma_transfer()
497 static int mtk_spi_transfer_one(struct spi_master *master, in mtk_spi_transfer_one()
507 static bool mtk_spi_can_dma(struct spi_master *master, in mtk_spi_can_dma()
[all …]
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()
360 struct spi_master *master = platform_get_drvdata(pdev); in meson_spifc_remove()
373 struct spi_master *master = dev_get_drvdata(dev); in meson_spifc_suspend()
389 struct spi_master *master = dev_get_drvdata(dev); in meson_spifc_resume()
412 struct spi_master *master = dev_get_drvdata(dev); in meson_spifc_runtime_suspend()
422 struct spi_master *master = dev_get_drvdata(dev); in meson_spifc_runtime_resume()
Dspi-atmel.c428 static bool atmel_spi_can_dma(struct spi_master *master, in atmel_spi_can_dma()
446 struct spi_master *master = platform_get_drvdata(as->pdev); in atmel_spi_dma_slave_config()
502 static int atmel_spi_configure_dma(struct spi_master *master, in atmel_spi_configure_dma()
551 static void atmel_spi_stop_dma(struct spi_master *master) in atmel_spi_stop_dma()
559 static void atmel_spi_release_dma(struct spi_master *master) in atmel_spi_release_dma()
574 struct spi_master *master = data; in dma_callback()
588 static void atmel_spi_next_xfer_single(struct spi_master *master, in atmel_spi_next_xfer_single()
620 static void atmel_spi_next_xfer_fifo(struct spi_master *master, in atmel_spi_next_xfer_fifo()
690 static void atmel_spi_next_xfer_pio(struct spi_master *master, in atmel_spi_next_xfer_pio()
704 static int atmel_spi_next_xfer_dma_submit(struct spi_master *master, in atmel_spi_next_xfer_dma_submit()
[all …]
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-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()
290 struct spi_master *spi) in setup_fifo_params()
326 static int spi_geni_prepare_message(struct spi_master *spi, in spi_geni_prepare_message()
485 u16 mode, struct spi_master *spi) in setup_fifo_xfer()
558 static int spi_geni_transfer_one(struct spi_master *spi, in spi_geni_transfer_one()
577 struct spi_master *spi = data; in geni_spi_isr()
657 struct spi_master *spi; in spi_geni_probe()
753 struct spi_master *spi = platform_get_drvdata(pdev); in spi_geni_remove()
768 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-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-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-qcom-qspi.c217 static void qcom_qspi_handle_err(struct spi_master *master, in qcom_qspi_handle_err()
261 static int qcom_qspi_transfer_one(struct spi_master *master, in qcom_qspi_transfer_one()
301 static int qcom_qspi_prepare_message(struct spi_master *master, in qcom_qspi_prepare_message()
460 struct spi_master *master; in qcom_qspi_probe()
563 struct spi_master *master = platform_get_drvdata(pdev); in qcom_qspi_remove()
578 struct spi_master *master = dev_get_drvdata(dev); in qcom_qspi_runtime_suspend()
598 struct spi_master *master = dev_get_drvdata(dev); in qcom_qspi_runtime_resume()
618 struct spi_master *master = dev_get_drvdata(dev); in qcom_qspi_suspend()
634 struct spi_master *master = dev_get_drvdata(dev); in qcom_qspi_resume()
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()
420 struct spi_master *master; in tegra_sflash_probe()
527 struct spi_master *master = platform_get_drvdata(pdev); in tegra_sflash_remove()
542 struct spi_master *master = dev_get_drvdata(dev); in tegra_sflash_suspend()
549 struct spi_master *master = dev_get_drvdata(dev); in tegra_sflash_resume()
568 struct spi_master *master = dev_get_drvdata(dev); in tegra_sflash_runtime_suspend()
580 struct spi_master *master = dev_get_drvdata(dev); in tegra_sflash_runtime_resume()
Dspi-bitbang.c268 static int spi_bitbang_prepare_hardware(struct spi_master *spi) in spi_bitbang_prepare_hardware()
281 static int spi_bitbang_transfer_one(struct spi_master *master, in spi_bitbang_transfer_one()
308 static int spi_bitbang_unprepare_hardware(struct spi_master *spi) in spi_bitbang_unprepare_hardware()
341 struct spi_master *master = bitbang->master; in spi_bitbang_init()
422 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-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()
617 struct spi_master *master = platform_get_drvdata(pdev); in bcm63xx_spi_remove()
632 struct spi_master *master = dev_get_drvdata(dev); in bcm63xx_spi_suspend()
644 struct spi_master *master = dev_get_drvdata(dev); in bcm63xx_spi_resume()
Dspi-qup.c389 static int spi_qup_prep_sg(struct spi_master *master, struct scatterlist *sgl, in spi_qup_prep_sg()
416 static void spi_qup_dma_terminate(struct spi_master *master, in spi_qup_dma_terminate()
449 struct spi_master *master = spi->master; in spi_qup_do_dma()
517 struct spi_master *master = spi->master; in spi_qup_do_pio()
845 static int spi_qup_transfer_one(struct spi_master *master, in spi_qup_transfer_one()
888 static bool spi_qup_can_dma(struct spi_master *master, struct spi_device *spi, in spi_qup_can_dma()
918 static void spi_qup_release_dma(struct spi_master *master) in spi_qup_release_dma()
926 static int spi_qup_init_dma(struct spi_master *master, resource_size_t base) in spi_qup_init_dma()
997 struct spi_master *master; in spi_qup_probe()
1175 struct spi_master *master = dev_get_drvdata(device); in spi_qup_pm_suspend_runtime()
[all …]
Dspi-dln2.c81 struct spi_master *master;
590 static int dln2_spi_prepare_message(struct spi_master *master, in dln2_spi_prepare_message()
651 static int dln2_spi_transfer_one(struct spi_master *master, in dln2_spi_transfer_one()
680 struct spi_master *master; in dln2_spi_probe()
783 struct spi_master *master = platform_get_drvdata(pdev); in dln2_spi_remove()
798 struct spi_master *master = dev_get_drvdata(dev); in dln2_spi_suspend()
826 struct spi_master *master = dev_get_drvdata(dev); in dln2_spi_resume()
846 struct spi_master *master = dev_get_drvdata(dev); in dln2_spi_runtime_suspend()
854 struct spi_master *master = dev_get_drvdata(dev); in dln2_spi_runtime_resume()
/kernel/linux/linux-5.10/drivers/staging/greybus/
Dspilib.c45 static struct spi_master *get_master_from_spi(struct gb_spilib *spi) in get_master_from_spi()
323 static int gb_spi_transfer_one_message(struct spi_master *master, in gb_spi_transfer_one_message()
375 static int gb_spi_prepare_transfer_hardware(struct spi_master *master) in gb_spi_prepare_transfer_hardware()
382 static int gb_spi_unprepare_transfer_hardware(struct spi_master *master) in gb_spi_unprepare_transfer_hardware()
439 struct spi_master *master = get_master_from_spi(spi); in gb_spi_setup_device()
485 struct spi_master *master; in gb_spilib_master_init()
560 struct spi_master *master = gb_connection_get_data(connection); in gb_spilib_master_exit()

12345