/drivers/spi/ |
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()
|
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()
|
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()
|
D | spi-fsl-espi.c | 672 unsigned int irq, unsigned int num_cs) in fsl_espi_probe() argument 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()
|
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()
|
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()
|
D | spi-zynq-qspi.c | 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()
|
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()
|
D | spi-cadence.c | 478 u32 num_cs; in cdns_spi_probe() local 526 ret = of_property_read_u32(pdev->dev.of_node, "num-cs", &num_cs); in cdns_spi_probe() 530 master->num_chipselect = num_cs; in cdns_spi_probe()
|
D | spi-dw-bt1.c | 174 dws->num_cs = 4; in dw_spi_bt1_std_init() 234 dws->num_cs = 1; in dw_spi_bt1_sys_init()
|
D | spi-rockchip.c | 645 u32 rsd_nsecs, num_cs; in rockchip_spi_probe() local 753 if (of_property_read_u32(np, "num-cs", &num_cs)) in rockchip_spi_probe() 754 num_cs = 1; in rockchip_spi_probe() 755 ctlr->num_chipselect = num_cs; in rockchip_spi_probe()
|
D | spi-davinci.c | 816 unsigned int num_cs, intr_line = 0; in spi_davinci_get_pdata() local 836 num_cs = 1; in spi_davinci_get_pdata() 837 of_property_read_u32(node, "num-cs", &num_cs); in spi_davinci_get_pdata() 838 pdata->num_chipselect = num_cs; in spi_davinci_get_pdata()
|
D | spi-lantiq-ssc.c | 911 unsigned int num_cs; in lantiq_ssc_probe() local 963 num_cs = 8; in lantiq_ssc_probe() 964 of_property_read_u32(pdev->dev.of_node, "num-cs", &num_cs); in lantiq_ssc_probe() 974 master->num_chipselect = num_cs; in lantiq_ssc_probe()
|
D | spi-armada-3700.c | 820 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()
|
D | spi-pl022.c | 2128 int status = 0, i, num_cs; in pl022_probe() local 2141 num_cs = platform_info->num_chipselect; in pl022_probe() 2159 pl022->chipselects = devm_kcalloc(dev, num_cs, sizeof(int), in pl022_probe() 2171 master->num_chipselect = num_cs; in pl022_probe() 2181 for (i = 0; i < num_cs; i++) in pl022_probe() 2184 for (i = 0; i < num_cs; i++) in pl022_probe() 2187 for (i = 0; i < num_cs; i++) { in pl022_probe()
|
D | spi-qup.c | 1003 u32 max_freq, iomode, num_cs; in spi_qup_probe() local 1040 if (of_property_read_u32(dev->of_node, "num-cs", &num_cs) || in spi_qup_probe() 1041 num_cs > SPI_NUM_CHIPSELECTS) in spi_qup_probe() 1044 master->num_chipselect = num_cs; in spi_qup_probe()
|
D | spi-ti-qspi.c | 762 int ret = 0, num_cs, irq; in ti_qspi_probe() local 780 if (!of_property_read_u32(np, "num-cs", &num_cs)) in ti_qspi_probe() 781 master->num_chipselect = num_cs; in ti_qspi_probe()
|
D | spi-omap2-mcspi.c | 1445 u32 num_cs = 1; /* default number of chipselect */ in omap2_mcspi_probe() local 1448 of_property_read_u32(node, "ti,spi-num-cs", &num_cs); in omap2_mcspi_probe() 1449 master->num_chipselect = num_cs; in omap2_mcspi_probe() 1454 master->num_chipselect = pdata->num_cs; in omap2_mcspi_probe()
|
D | spi-dw.h | 158 u16 num_cs; /* supported slave numbers */ member
|
/drivers/memory/ |
D | ti-aemif.c | 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()
|
/drivers/net/ethernet/pasemi/ |
D | pasemi_mac.c | 350 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()
|
D | pasemi_mac.h | 66 int num_cs; member
|
/drivers/bus/ |
D | mvebu-mbus.c | 650 for (i = 0; i < mvebu_mbus_dram_info.num_cs; i++) { in mvebu_mbus_setup_cpu_target_nooverlap() 692 mvebu_mbus_dram_info_nooverlap.num_cs = cs_nooverlap; in mvebu_mbus_setup_cpu_target_nooverlap() 726 mvebu_mbus_dram_info.num_cs = cs; in mvebu_mbus_default_setup_cpu_target() 778 mvebu_mbus_dram_info.num_cs = cs; in mvebu_mbus_dove_setup_cpu_target() 964 for (i = 0; i < dram->num_cs; i++) { in mvebu_mbus_get_dram_win_info()
|
/drivers/usb/host/ |
D | xhci-mvebu.c | 35 for (win = 0; win < dram->num_cs; win++) { in xhci_mvebu_mbus_config()
|
/drivers/ata/ |
D | ahci_mvebu.c | 47 for (i = 0; i < dram->num_cs; i++) { in ahci_mvebu_mbus_config()
|