Home
last modified time | relevance | path

Searched refs:num_cs (Results 1 – 25 of 50) sorted by relevance

12

/linux-6.1.9/drivers/spi/
Dspi-dw-pci.c29 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()
Dspi-dw-mmio.c248 int num_cs; in dw_spi_mmio_probe() local
299 num_cs = 4; in dw_spi_mmio_probe()
301 device_property_read_u32(&pdev->dev, "num-cs", &num_cs); in dw_spi_mmio_probe()
303 dws->num_cs = num_cs; in dw_spi_mmio_probe()
Dspi-xilinx.c394 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()
446 master->num_chipselect = num_cs; in xilinx_spi_probe()
Dspi-bcm63xx-hsspi.c338 u32 reg, rate, num_cs = HSSPI_SPI_MAX_CS; in bcm63xx_hsspi_probe() local
409 of_property_read_u32(dev->of_node, "num-cs", &num_cs); in bcm63xx_hsspi_probe()
410 if (num_cs > 8) { in bcm63xx_hsspi_probe()
412 num_cs); in bcm63xx_hsspi_probe()
413 num_cs = HSSPI_SPI_MAX_CS; in bcm63xx_hsspi_probe()
415 master->num_chipselect = num_cs; in bcm63xx_hsspi_probe()
Dspi-fsl-espi.c665 unsigned int irq, unsigned int num_cs) in fsl_espi_probe() argument
686 master->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()
Dspi-bcm63xx.c496 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()
Dspi-zynq-qspi.c181 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()
Dspi-sifive.c295 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()
Dspi-ingenic.c387 int num_cs, ret; in spi_ingenic_probe() local
423 if (device_property_read_u32(dev, "num-cs", &num_cs)) in spi_ingenic_probe()
424 num_cs = pdata->max_native_cs; in spi_ingenic_probe()
441 ctlr->num_chipselect = num_cs; in spi_ingenic_probe()
Dspi-microchip-core.c513 u32 num_cs; in mchp_corespi_probe() local
523 if (of_property_read_u32(pdev->dev.of_node, "num-cs", &num_cs)) in mchp_corespi_probe()
524 num_cs = MAX_CS; in mchp_corespi_probe()
526 master->num_chipselect = num_cs; in mchp_corespi_probe()
Dspi-dw-bt1.c174 dws->num_cs = 4; in dw_spi_bt1_std_init()
234 dws->num_cs = 1; in dw_spi_bt1_sys_init()
Dspi-cadence.c502 u32 num_cs; in cdns_spi_probe() local
550 ret = of_property_read_u32(pdev->dev.of_node, "num-cs", &num_cs); in cdns_spi_probe()
554 master->num_chipselect = num_cs; in cdns_spi_probe()
Dspi-davinci.c816 unsigned int num_cs, intr_line = 0; in spi_davinci_get_pdata() local
831 num_cs = 1; in spi_davinci_get_pdata()
832 of_property_read_u32(node, "num-cs", &num_cs); in spi_davinci_get_pdata()
833 pdata->num_chipselect = num_cs; in spi_davinci_get_pdata()
Dspi-zynqmp-gqspi.c1109 u32 num_cs; in zynqmp_qspi_probe() local
1187 ret = of_property_read_u32(np, "num-cs", &num_cs); in zynqmp_qspi_probe()
1190 } else if (num_cs > GQSPI_MAX_NUM_CS) { in zynqmp_qspi_probe()
1196 ctlr->num_chipselect = num_cs; in zynqmp_qspi_probe()
Dspi-lantiq-ssc.c910 unsigned int num_cs; in lantiq_ssc_probe() local
957 num_cs = 8; in lantiq_ssc_probe()
958 of_property_read_u32(pdev->dev.of_node, "num-cs", &num_cs); in lantiq_ssc_probe()
968 master->num_chipselect = num_cs; in lantiq_ssc_probe()
Dspi-armada-3700.c820 u32 num_cs = 0; in a3700_spi_probe() local
830 if (of_property_read_u32(of_node, "num-cs", &num_cs)) { in a3700_spi_probe()
839 master->num_chipselect = num_cs; in a3700_spi_probe()
/linux-6.1.9/include/linux/platform_data/
Dspi-s3c64xx.h36 int num_cs; member
50 extern void s3c64xx_spi0_set_platdata(int src_clk_nr, int num_cs);
Dspi-omap2-mcspi.h11 unsigned short num_cs; member
/linux-6.1.9/drivers/memory/
Dti-aemif.c124 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()
/linux-6.1.9/include/linux/spi/
Ds3c24xx.h13 unsigned int num_cs; /* total chipselects */ member
/linux-6.1.9/drivers/usb/host/
Dxhci-mvebu.c34 for (win = 0; win < dram->num_cs; win++) { in xhci_mvebu_mbus_config()
/linux-6.1.9/include/linux/
Dmbus.h30 int num_cs; member
/linux-6.1.9/arch/arm/mach-s3c/
Ddevs.c1110 void __init s3c64xx_spi0_set_platdata(int src_clk_nr, int num_cs) in s3c64xx_spi0_set_platdata() argument
1115 if (!num_cs || src_clk_nr < 0) { in s3c64xx_spi0_set_platdata()
1120 pd.num_cs = num_cs; in s3c64xx_spi0_set_platdata()
/linux-6.1.9/drivers/net/ethernet/pasemi/
Dpasemi_mac.c351 mac->num_cs++; in pasemi_mac_setup_csrings()
1089 if (dev->mtu > 1500 && !mac->num_cs) { in pasemi_mac_open()
1091 if (!mac->num_cs) { in pasemi_mac_open()
1326 for (i = 0; i < mac->num_cs; i++) { in pasemi_mac_close()
1331 mac->num_cs = 0; in pasemi_mac_close()
1497 if (mac->num_cs && skb->ip_summed == CHECKSUM_PARTIAL && skb->len > 1540) { in pasemi_mac_start_tx()
1499 mac->last_cs = (mac->last_cs + 1) % mac->num_cs; in pasemi_mac_start_tx()
1626 if (new_mtu > PE_DEF_MTU && !mac->num_cs) { in pasemi_mac_change_mtu()
1628 if (!mac->num_cs) { in pasemi_mac_change_mtu()
/linux-6.1.9/drivers/bus/
Dmvebu-mbus.c625 for (i = 0; i < mvebu_mbus_dram_info.num_cs; i++) { in mvebu_mbus_setup_cpu_target_nooverlap()
667 mvebu_mbus_dram_info_nooverlap.num_cs = cs_nooverlap; in mvebu_mbus_setup_cpu_target_nooverlap()
701 mvebu_mbus_dram_info.num_cs = cs; in mvebu_mbus_default_setup_cpu_target()
753 mvebu_mbus_dram_info.num_cs = cs; in mvebu_mbus_dove_setup_cpu_target()
944 for (i = 0; i < dram->num_cs; i++) { in mvebu_mbus_get_dram_win_info()

12