Home
last modified time | relevance | path

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

12345

/drivers/spi/
Dspi-pxa2xx-pci.c33 int num_chipselect; member
89 c->num_chipselect = 1; in lpss_spi_setup()
126 c->num_chipselect = 1; in mrfld_spi_setup()
132 c->num_chipselect = 4; in mrfld_spi_setup()
138 c->num_chipselect = 1; in mrfld_spi_setup()
166 .num_chipselect = -1,
205 .num_chipselect = 1,
251 spi_pdata.num_chipselect = (c->num_chipselect > 0) ? c->num_chipselect : dev->devfn; in pxa2xx_spi_pci_probe()
Dspi-altera-platform.c54 if (pdata->num_chipselect > ALTERA_SPI_MAX_CS) { in altera_spi_probe()
57 pdata->num_chipselect); in altera_spi_probe()
62 master->num_chipselect = pdata->num_chipselect; in altera_spi_probe()
66 master->num_chipselect = 16; in altera_spi_probe()
Dspi-gpio.c338 if (!pdata || !pdata->num_chipselect) in spi_gpio_probe_pdata()
345 master->num_chipselect = pdata->num_chipselect ?: 1; in spi_gpio_probe_pdata()
347 spi_gpio->cs_gpios = devm_kcalloc(dev, master->num_chipselect, in spi_gpio_probe_pdata()
353 for (i = 0; i < master->num_chipselect; i++) { in spi_gpio_probe_pdata()
Dspi-altera-dfl.c119 master->num_chipselect = FIELD_GET(NUM_CHIPSELECT, v); in config_spi_master()
150 master->num_chipselect, master->bits_per_word_mask, in dfl_spi_altera_probe()
Dspi-sh-sci.c141 sp->bitbang.master->num_chipselect = sp->info->num_chipselect; in sh_sci_spi_probe()
Dspi-sprd-adi.c520 u16 num_chipselect; in sprd_adi_probe() local
535 num_chipselect = of_get_child_count(np); in sprd_adi_probe()
583 ctlr->num_chipselect = num_chipselect; in sprd_adi_probe()
Dspi-zynq-qspi.c297 if (ctlr->num_chipselect > 1) { in zynq_qspi_chipselect()
697 ctlr->num_chipselect = 1; in zynq_qspi_probe()
703 ctlr->num_chipselect = num_cs; in zynq_qspi_probe()
714 zynq_qspi_init_hw(xqspi, ctlr->num_chipselect); in zynq_qspi_probe()
Dspi-sc18is602.c277 master->num_chipselect = 4; in sc18is602_probe()
281 master->num_chipselect = 2; in sc18is602_probe()
Dspi-cavium-octeon.c46 master->num_chipselect = 4; in octeon_spi_probe()
Dspi-davinci.c833 pdata->num_chipselect = num_cs; in spi_davinci_get_pdata()
890 pdata->num_chipselect, in davinci_spi_probe()
940 master->num_chipselect = pdata->num_chipselect; in davinci_spi_probe()
Dspi-sifive.c373 master->num_chipselect = num_cs; in sifive_spi_probe()
400 irq, master->num_chipselect); in sifive_spi_probe()
Dspi.c661 if (spi->chip_select >= ctlr->num_chipselect) { in spi_add_device()
663 ctlr->num_chipselect); in spi_add_device()
687 if (spi->chip_select >= ctlr->num_chipselect) { in spi_add_device_locked()
689 ctlr->num_chipselect); in spi_add_device_locked()
2603 ctlr->num_chipselect = 1; in __spi_alloc_controller()
2671 ctlr->num_chipselect = max_t(int, nb, ctlr->num_chipselect); in of_spi_get_gpio_numbers()
2679 cs = devm_kcalloc(&ctlr->dev, ctlr->num_chipselect, sizeof(int), in of_spi_get_gpio_numbers()
2686 for (i = 0; i < ctlr->num_chipselect; i++) in of_spi_get_gpio_numbers()
2721 ctlr->num_chipselect = max_t(int, nb, ctlr->num_chipselect); in spi_get_gpio_descs()
2723 cs = devm_kcalloc(dev, ctlr->num_chipselect, sizeof(*cs), in spi_get_gpio_descs()
[all …]
Dspi-cavium-thunderx.c68 master->num_chipselect = 4; in thunderx_spi_probe()
Dspi-rspi.c1241 ctlr->num_chipselect = num_cs; in rspi_parse_dt()
1286 if (rspi_pd && rspi_pd->num_chipselect) in rspi_probe()
1287 ctlr->num_chipselect = rspi_pd->num_chipselect; in rspi_probe()
1289 ctlr->num_chipselect = 2; /* default */ in rspi_probe()
Dspi-mt65xx.c857 if (mdata->pad_num != master->num_chipselect) { in mtk_spi_probe()
860 mdata->pad_num, master->num_chipselect); in mtk_spi_probe()
865 if (!master->cs_gpios && master->num_chipselect > 1) { in mtk_spi_probe()
873 for (i = 0; i < master->num_chipselect; i++) { in mtk_spi_probe()
Dspi-xilinx.c401 num_cs = pdata->num_chipselect; in xilinx_spi_probe()
448 master->num_chipselect = num_cs; in xilinx_spi_probe()
Dspi-omap2-mcspi.c1021 for (i = 0; i < master->num_chipselect; i++) { in omap2_mcspi_release_dma()
1465 master->num_chipselect = num_cs; in omap2_mcspi_probe()
1470 master->num_chipselect = pdata->num_cs; in omap2_mcspi_probe()
1492 mcspi->dma_channels = devm_kcalloc(&pdev->dev, master->num_chipselect, in omap2_mcspi_probe()
1500 for (i = 0; i < master->num_chipselect; i++) { in omap2_mcspi_probe()
Dspi-fsl-lib.c107 master->num_chipselect = pdata->max_chipselect; in mpc8xxx_spi_probe()
Dspi-mux.c161 ctlr->num_chipselect = mux_control_states(priv->mux); in spi_mux_probe()
Dspi-mpc52xx-psc.c385 master->num_chipselect = 255; in mpc52xx_psc_spi_do_probe()
390 master->num_chipselect = pdata->max_chipselect; in mpc52xx_psc_spi_do_probe()
Dspi-hisi-kunpeng.c487 &master->num_chipselect); in hisi_spi_probe()
489 master->num_chipselect = DEFAULT_NUM_CS; in hisi_spi_probe()
/drivers/staging/greybus/
Dspilib.c31 u8 num_chipselect; member
433 spi->num_chipselect = response.num_chipselect; in gb_spi_get_master_config()
512 master->num_chipselect = spi->num_chipselect; in gb_spilib_master_init()
539 for (i = 0; i < spi->num_chipselect; i++) { in gb_spilib_master_init()
/drivers/misc/eeprom/
Ddigsy_mtc_eeprom.c51 .num_chipselect = 1,
/drivers/video/fbdev/mmp/hw/
Dmmp_spi.c153 master->num_chipselect = 1; in lcd_spi_register()
/drivers/fpga/
Ddfl-n3000-nios.c430 pdata.num_chipselect = FIELD_GET(N3000_NS_PARAM_NUM_CS, v); in create_altera_spi_controller()
438 pdata.num_chipselect, pdata.bits_per_word_mask, in create_altera_spi_controller()

12345