/kernel/linux/linux-5.10/include/linux/platform_data/ |
H A D | spi-s3c64xx.h | 33 * @num_cs: Number of CS this controller emulates. 38 int num_cs; member 48 * @num_cs: Number of elements in the 'cs' array. 54 int num_cs); 56 int num_cs); 58 int num_cs);
|
H A D | spi-omap2-mcspi.h | 11 unsigned short num_cs; member
|
/kernel/linux/linux-5.10/drivers/spi/ |
H A D | spi-dw-pci.c | 29 u16 num_cs; member 65 .num_cs = 5, 71 .num_cs = 2, 77 .num_cs = 2, 117 dws->num_cs = desc->num_cs; in spi_pci_probe()
|
H A D | spi-dw-mmio.c | 233 int num_cs; in dw_spi_mmio_probe() local 284 num_cs = 4; in dw_spi_mmio_probe() 286 device_property_read_u32(&pdev->dev, "num-cs", &num_cs); in dw_spi_mmio_probe() 288 dws->num_cs = num_cs; in dw_spi_mmio_probe()
|
H A D | spi-bcm63xx-hsspi.c | 344 u32 reg, rate, num_cs = HSSPI_SPI_MAX_CS; in bcm63xx_hsspi_probe() local 415 of_property_read_u32(dev->of_node, "num-cs", &num_cs); in bcm63xx_hsspi_probe() 416 if (num_cs > 8) { in bcm63xx_hsspi_probe() 418 num_cs); in bcm63xx_hsspi_probe() 419 num_cs = HSSPI_SPI_MAX_CS; in bcm63xx_hsspi_probe() 421 master->num_chipselect = num_cs; in bcm63xx_hsspi_probe()
|
H A D | spi-xilinx.c | 394 int ret, num_cs = 0, bits_per_word; in xilinx_spi_probe() local 401 num_cs = pdata->num_chipselect; in xilinx_spi_probe() 405 &num_cs); in xilinx_spi_probe() 413 if (!num_cs) { in xilinx_spi_probe() 419 if (num_cs > XILINX_SPI_MAX_CS) { in xilinx_spi_probe() 448 master->num_chipselect = num_cs; in xilinx_spi_probe()
|
H A D | spi-fsl-espi.c | 672 unsigned int irq, unsigned int num_cs) in fsl_espi_probe() 693 master->num_chipselect = num_cs; in fsl_espi_probe() 753 u32 num_cs; in of_fsl_espi_get_chipselects() local 756 ret = of_property_read_u32(np, "fsl,espi-num-chipselects", &num_cs); in of_fsl_espi_get_chipselects() 762 return num_cs; in of_fsl_espi_get_chipselects() 770 unsigned int irq, num_cs; in of_fsl_espi_probe() local 778 num_cs = of_fsl_espi_get_chipselects(dev); in of_fsl_espi_probe() 779 if (!num_cs) in of_fsl_espi_probe() 790 return fsl_espi_probe(dev, &mem, irq, num_cs); in of_fsl_espi_probe() 671 fsl_espi_probe(struct device *dev, struct resource *mem, unsigned int irq, unsigned int num_cs) fsl_espi_probe() argument
|
H A D | spi-bcm63xx.c | 496 u32 num_cs = BCM63XX_SPI_MAX_CS; in bcm63xx_spi_probe() local 507 of_property_read_u32(dev->of_node, "num-cs", &num_cs); in bcm63xx_spi_probe() 508 if (num_cs > BCM63XX_SPI_MAX_CS) { in bcm63xx_spi_probe() 510 num_cs); in bcm63xx_spi_probe() 511 num_cs = BCM63XX_SPI_MAX_CS; in bcm63xx_spi_probe() 571 master->num_chipselect = num_cs; in bcm63xx_spi_probe()
|
H A D | spi-zynq-qspi.c | 163 * @num_cs: Number of connected CS (to enable dual memories if needed) 181 static void zynq_qspi_init_hw(struct zynq_qspi *xqspi, unsigned int num_cs) in zynq_qspi_init_hw() argument 191 if (num_cs > 1) in zynq_qspi_init_hw() 638 u32 num_cs; in zynq_qspi_probe() local 695 &num_cs); in zynq_qspi_probe() 698 } else if (num_cs > ZYNQ_QSPI_MAX_NUM_CS) { in zynq_qspi_probe() 703 ctlr->num_chipselect = num_cs; in zynq_qspi_probe()
|
H A D | spi-sifive.c | 295 int ret, irq, num_cs; in sifive_spi_probe() local 363 num_cs = ilog2(cs_bits) + 1; in sifive_spi_probe() 364 if (num_cs > SIFIVE_SPI_MAX_CS) { in sifive_spi_probe() 373 master->num_chipselect = num_cs; in sifive_spi_probe()
|
/kernel/linux/linux-6.6/drivers/spi/ |
H A D | spi-dw-pci.c | 29 u16 num_cs; member 65 .num_cs = 5, 71 .num_cs = 2, 77 .num_cs = 2, 117 dws->num_cs = desc->num_cs; in dw_spi_pci_probe()
|
H A D | spi-xilinx.c | 395 int ret, num_cs = 0, bits_per_word; in xilinx_spi_probe() local 403 num_cs = pdata->num_chipselect; in xilinx_spi_probe() 408 &num_cs); in xilinx_spi_probe() 416 if (!num_cs) { in xilinx_spi_probe() 422 if (num_cs > XILINX_SPI_MAX_CS) { in xilinx_spi_probe() 448 master->num_chipselect = num_cs; in xilinx_spi_probe()
|
H A D | spi-fsl-espi.c | 665 unsigned int irq, unsigned int num_cs) in fsl_espi_probe() 686 host->num_chipselect = num_cs; in fsl_espi_probe() 746 u32 num_cs; in of_fsl_espi_get_chipselects() local 749 ret = of_property_read_u32(np, "fsl,espi-num-chipselects", &num_cs); in of_fsl_espi_get_chipselects() 755 return num_cs; in of_fsl_espi_get_chipselects() 763 unsigned int irq, num_cs; in of_fsl_espi_probe() local 771 num_cs = of_fsl_espi_get_chipselects(dev); in of_fsl_espi_probe() 772 if (!num_cs) in of_fsl_espi_probe() 783 return fsl_espi_probe(dev, &mem, irq, num_cs); in of_fsl_espi_probe() 664 fsl_espi_probe(struct device *dev, struct resource *mem, unsigned int irq, unsigned int num_cs) fsl_espi_probe() argument
|
H A D | spi-dw-mmio.c | 323 int num_cs; in dw_spi_mmio_probe() local 376 num_cs = 4; in dw_spi_mmio_probe() 378 device_property_read_u32(&pdev->dev, "num-cs", &num_cs); in dw_spi_mmio_probe() 380 dws->num_cs = num_cs; in dw_spi_mmio_probe()
|
H A D | spi-zynq-qspi.c | 163 * @num_cs: Number of connected CS (to enable dual memories if needed) 181 static void zynq_qspi_init_hw(struct zynq_qspi *xqspi, unsigned int num_cs) in zynq_qspi_init_hw() argument 191 if (num_cs > 1) in zynq_qspi_init_hw() 638 u32 num_cs; in zynq_qspi_probe() local 695 &num_cs); in zynq_qspi_probe() 698 } else if (num_cs > ZYNQ_QSPI_MAX_NUM_CS) { in zynq_qspi_probe() 703 ctlr->num_chipselect = num_cs; in zynq_qspi_probe()
|
H A D | spi-bcm63xx.c | 486 u32 num_cs = BCM63XX_SPI_MAX_CS; in bcm63xx_spi_probe() local 497 of_property_read_u32(dev->of_node, "num-cs", &num_cs); in bcm63xx_spi_probe() 498 if (num_cs > BCM63XX_SPI_MAX_CS) { in bcm63xx_spi_probe() 500 num_cs); in bcm63xx_spi_probe() 501 num_cs = BCM63XX_SPI_MAX_CS; in bcm63xx_spi_probe() 560 host->num_chipselect = num_cs; in bcm63xx_spi_probe()
|
H A D | spi-bcmbca-hsspi.c | 442 u32 reg, rate, num_cs = HSSPI_SPI_MAX_CS; in bcmbca_hsspi_probe() local 514 of_property_read_u32(dev->of_node, "num-cs", &num_cs); in bcmbca_hsspi_probe() 515 if (num_cs > 8) { in bcmbca_hsspi_probe() 517 num_cs); in bcmbca_hsspi_probe() 518 num_cs = HSSPI_SPI_MAX_CS; in bcmbca_hsspi_probe() 520 host->num_chipselect = num_cs; in bcmbca_hsspi_probe()
|
H A D | spi-sn-f-ospi.c | 606 u32 num_cs = OSPI_NUM_CS; in f_ospi_probe() local 618 of_property_read_u32(dev->of_node, "num-cs", &num_cs); in f_ospi_probe() 619 if (num_cs > OSPI_NUM_CS) { in f_ospi_probe() 620 dev_err(dev, "num-cs too large: %d\n", num_cs); in f_ospi_probe() 623 ctlr->num_chipselect = num_cs; in f_ospi_probe()
|
/kernel/linux/linux-6.6/include/linux/platform_data/ |
H A D | spi-s3c64xx.h | 31 * @num_cs: Number of CS this controller emulates. 37 int num_cs; member 47 * @num_cs: Number of elements in the 'cs' array. 52 extern void s3c64xx_spi0_set_platdata(int src_clk_nr, int num_cs);
|
H A D | spi-omap2-mcspi.h | 11 unsigned short num_cs; member
|
/kernel/linux/linux-5.10/arch/arm/mach-s3c/ |
H A D | devs.c | 1111 int num_cs) in s3c64xx_spi0_set_platdata() 1116 if (!num_cs || src_clk_nr < 0) { in s3c64xx_spi0_set_platdata() 1121 pd.num_cs = num_cs; in s3c64xx_spi0_set_platdata() 1147 int num_cs) in s3c64xx_spi1_set_platdata() 1152 if (!num_cs || src_clk_nr < 0) { in s3c64xx_spi1_set_platdata() 1157 pd.num_cs = num_cs; in s3c64xx_spi1_set_platdata() 1183 int num_cs) in s3c64xx_spi2_set_platdata() 1188 if (!num_cs || src_clk_n in s3c64xx_spi2_set_platdata() 1110 s3c64xx_spi0_set_platdata(int (*cfg_gpio)(void), int src_clk_nr, int num_cs) s3c64xx_spi0_set_platdata() argument 1146 s3c64xx_spi1_set_platdata(int (*cfg_gpio)(void), int src_clk_nr, int num_cs) s3c64xx_spi1_set_platdata() argument 1182 s3c64xx_spi2_set_platdata(int (*cfg_gpio)(void), int src_clk_nr, int num_cs) s3c64xx_spi2_set_platdata() argument [all...] |
/kernel/linux/linux-5.10/drivers/memory/ |
H A D | ti-aemif.c | 116 * @num_cs: number of assigned chip-selects 124 u8 num_cs; member 279 if (aemif->num_cs >= NUM_CS) { in of_aemif_parse_abus_config() 284 data = &aemif->cs_data[aemif->num_cs]; in of_aemif_parse_abus_config() 288 aemif_get_hw_params(pdev, aemif->num_cs++); in of_aemif_parse_abus_config() 387 for (i = 0; i < pdata->num_abus_data; i++, aemif->num_cs++) { in aemif_probe() 393 for (i = 0; i < aemif->num_cs; i++) { in aemif_probe()
|
/kernel/linux/linux-6.6/drivers/memory/ |
H A D | ti-aemif.c | 116 * @num_cs: number of assigned chip-selects 124 u8 num_cs; member 279 if (aemif->num_cs >= NUM_CS) { in of_aemif_parse_abus_config() 284 data = &aemif->cs_data[aemif->num_cs]; in of_aemif_parse_abus_config() 288 aemif_get_hw_params(pdev, aemif->num_cs++); in of_aemif_parse_abus_config() 385 for (i = 0; i < pdata->num_abus_data; i++, aemif->num_cs++) { in aemif_probe() 391 for (i = 0; i < aemif->num_cs; i++) { in aemif_probe()
|
/kernel/linux/linux-6.6/arch/arm/mach-s3c/ |
H A D | devs.c | 384 void __init s3c64xx_spi0_set_platdata(int src_clk_nr, int num_cs) in s3c64xx_spi0_set_platdata() argument 389 if (!num_cs || src_clk_nr < 0) { in s3c64xx_spi0_set_platdata() 394 pd.num_cs = num_cs; in s3c64xx_spi0_set_platdata()
|
/kernel/linux/linux-5.10/include/linux/spi/ |
H A D | s3c24xx.h | 14 unsigned int num_cs; /* total chipselects */ member
|