| /Linux-v5.4/include/trace/events/ |
| D | spi.h | 53 __field( int, chip_select ) 59 __entry->chip_select = msg->spi->chip_select; 64 (int)__entry->chip_select, 92 __field( int, chip_select ) 100 __entry->chip_select = msg->spi->chip_select; 107 (int)__entry->chip_select, 130 __field( int, chip_select ) 143 __entry->chip_select = msg->spi->chip_select; 157 __entry->bus_num, __entry->chip_select,
|
| /Linux-v5.4/drivers/spi/ |
| D | spi-bcm63xx-hsspi.c | 131 unsigned int profile = spi->chip_select; in bcm63xx_hsspi_set_clk() 158 unsigned int chip_select = spi->chip_select; in bcm63xx_hsspi_do_txrx() local 166 bcm63xx_hsspi_set_cs(bs, spi->chip_select, true); in bcm63xx_hsspi_do_txrx() 184 bs->regs + HSSPI_PROFILE_MODE_CTRL_REG(chip_select)); in bcm63xx_hsspi_do_txrx() 202 __raw_writel(!chip_select << PINGPONG_CMD_SS_SHIFT | in bcm63xx_hsspi_do_txrx() 203 chip_select << PINGPONG_CMD_PROFILE_SHIFT | in bcm63xx_hsspi_do_txrx() 229 HSSPI_PROFILE_SIGNAL_CTRL_REG(spi->chip_select)); in bcm63xx_hsspi_setup() 236 HSSPI_PROFILE_SIGNAL_CTRL_REG(spi->chip_select)); in bcm63xx_hsspi_setup() 244 reg |= BIT(spi->chip_select); in bcm63xx_hsspi_setup() 246 reg &= ~BIT(spi->chip_select); in bcm63xx_hsspi_setup() [all …]
|
| D | spi-cavium.c | 60 if (spi->chip_select < 4) in octeon_spi_do_transfer() 61 p->cs_enax |= 1ull << (12 + spi->chip_select); in octeon_spi_do_transfer() 81 mpi_tx.s.csid = spi->chip_select; in octeon_spi_do_transfer() 106 mpi_tx.s.csid = spi->chip_select; in octeon_spi_do_transfer()
|
| D | spi-coldfire-qspi.c | 108 static void mcfqspi_cs_select(struct mcfqspi *mcfqspi, u8 chip_select, in mcfqspi_cs_select() argument 111 mcfqspi->cs_control->select(mcfqspi->cs_control, chip_select, cs_high); in mcfqspi_cs_select() 114 static void mcfqspi_cs_deselect(struct mcfqspi *mcfqspi, u8 chip_select, in mcfqspi_cs_deselect() argument 117 mcfqspi->cs_control->deselect(mcfqspi->cs_control, chip_select, cs_high); in mcfqspi_cs_deselect() 293 mcfqspi_cs_select(mcfqspi, spi->chip_select, cs_high); in mcfqspi_set_cs() 295 mcfqspi_cs_deselect(mcfqspi, spi->chip_select, cs_high); in mcfqspi_set_cs() 327 spi->chip_select, spi->mode & SPI_CS_HIGH); in mcfqspi_setup() 331 spi->bits_per_word, spi->chip_select, in mcfqspi_setup()
|
| D | spi-npcm-fiu.c | 272 struct npcm_fiu_chip *chip = &fiu->chip[desc->mem->spi->chip_select]; in npcm_fiu_direct_read() 299 struct npcm_fiu_chip *chip = &fiu->chip[desc->mem->spi->chip_select]; in npcm_fiu_direct_write() 328 (mem->spi->chip_select << in npcm_fiu_uma_read() 382 (mem->spi->chip_select << in npcm_fiu_uma_write() 435 (mem->spi->chip_select << in npcm_fiu_manualwrite() 529 struct npcm_fiu_chip *chip = &fiu->chip[mem->spi->chip_select]; in npcm_fiu_exec_op() 589 struct npcm_fiu_chip *chip = &fiu->chip[desc->mem->spi->chip_select]; in npcm_fiu_dirmap_create() 608 desc->mem->spi->chip_select)), in npcm_fiu_dirmap_create() 649 chip = &fiu->chip[spi->chip_select]; in npcm_fiu_setup() 651 chip->chipselect = spi->chip_select; in npcm_fiu_setup()
|
| D | spi-bcm2835.c | 143 u8 chip_select; member 630 bs->clear_rx_cs[bs->chip_select]); in bcm2835_spi_dma_tx_done() 702 bs->chip_select = spi->chip_select; in bcm2835_spi_prepare_sg() 806 cookie = dmaengine_submit(bs->clear_rx_desc[spi->chip_select]); in bcm2835_spi_transfer_one_dma() 1073 u32 cs = bs->prepare_cs[spi->chip_select]; in bcm2835_spi_transfer_one() 1151 bcm2835_wr(bs, BCM2835_SPI_CS, bs->prepare_cs[spi->chip_select]); in bcm2835_spi_prepare_message() 1196 bs->prepare_cs[spi->chip_select] = cs; in bcm2835_spi_setup() 1203 bs->clear_rx_cs[spi->chip_select] = cs | in bcm2835_spi_setup() 1224 if (spi->chip_select > 1) { in bcm2835_spi_setup() 1260 spi->cs_gpiod = gpiochip_request_own_desc(chip, 8 - spi->chip_select, in bcm2835_spi_setup() [all …]
|
| D | spi-sh-sci.c | 110 if (sp->info->chip_select) in sh_sci_spi_chipselect() 111 (sp->info->chip_select)(sp->info, dev->chip_select, value); in sh_sci_spi_chipselect()
|
| D | spi-omap2-mcspi.c | 374 struct omap2_mcspi_dma *mcspi_dma = &mcspi->dma_channels[spi->chip_select]; in omap2_mcspi_rx_callback() 386 struct omap2_mcspi_dma *mcspi_dma = &mcspi->dma_channels[spi->chip_select]; in omap2_mcspi_tx_callback() 402 mcspi_dma = &mcspi->dma_channels[spi->chip_select]; in omap2_mcspi_tx_dma() 444 mcspi_dma = &mcspi->dma_channels[spi->chip_select]; in omap2_mcspi_rx_dma() 597 mcspi_dma = &mcspi->dma_channels[spi->chip_select]; in omap2_mcspi_txrx_dma() 996 mcspi_dma = mcspi->dma_channels + spi->chip_select; in omap2_mcspi_request_dma() 1030 mcspi_dma = &mcspi->dma_channels[spi->chip_select]; in omap2_mcspi_setup() 1036 cs->base = mcspi->base + spi->chip_select * 0x14; in omap2_mcspi_setup() 1037 cs->phys = mcspi->phys + spi->chip_select * 0x14; in omap2_mcspi_setup() 1093 if (spi->chip_select < spi->master->num_chipselect) { in omap2_mcspi_cleanup() [all …]
|
| D | spi-omap-uwire.c | 185 if (value == BITBANG_CS_INACTIVE || old_cs != spi->chip_select) { in uwire_chipselect() 199 w = spi->chip_select << 10; in uwire_chipselect() 216 w = spi->chip_select << 10; in uwire_txrx() 414 omap_uwire_configure_mode(spi->chip_select, flags); in uwire_setup_transfer()
|
| D | spi-imx.c | 518 ctrl |= MX51_ECSPI_CTRL_CS(spi->chip_select); in mx51_ecspi_prepare_message() 539 cfg &= ~MX51_ECSPI_CONFIG_SBBCTRL(spi->chip_select); in mx51_ecspi_prepare_message() 541 cfg |= MX51_ECSPI_CONFIG_SBBCTRL(spi->chip_select); in mx51_ecspi_prepare_message() 544 cfg |= MX51_ECSPI_CONFIG_SCLKPHA(spi->chip_select); in mx51_ecspi_prepare_message() 546 cfg &= ~MX51_ECSPI_CONFIG_SCLKPHA(spi->chip_select); in mx51_ecspi_prepare_message() 549 cfg |= MX51_ECSPI_CONFIG_SCLKPOL(spi->chip_select); in mx51_ecspi_prepare_message() 550 cfg |= MX51_ECSPI_CONFIG_SCLKCTL(spi->chip_select); in mx51_ecspi_prepare_message() 552 cfg &= ~MX51_ECSPI_CONFIG_SCLKPOL(spi->chip_select); in mx51_ecspi_prepare_message() 553 cfg &= ~MX51_ECSPI_CONFIG_SCLKCTL(spi->chip_select); in mx51_ecspi_prepare_message() 557 cfg |= MX51_ECSPI_CONFIG_SSBPOL(spi->chip_select); in mx51_ecspi_prepare_message() [all …]
|
| D | spi-img-spfi.c | 421 val |= msg->spi->chip_select << SPFI_PORT_STATE_DEV_SEL_SHIFT; in img_spfi_prepare() 423 val |= SPFI_PORT_STATE_CK_PHASE(msg->spi->chip_select); in img_spfi_prepare() 425 val &= ~SPFI_PORT_STATE_CK_PHASE(msg->spi->chip_select); in img_spfi_prepare() 427 val |= SPFI_PORT_STATE_CK_POL(msg->spi->chip_select); in img_spfi_prepare() 429 val &= ~SPFI_PORT_STATE_CK_POL(msg->spi->chip_select); in img_spfi_prepare() 506 val = spfi_readl(spfi, SPFI_DEVICE_PARAMETER(spi->chip_select)); in img_spfi_config() 510 spfi_writel(spfi, val, SPFI_DEVICE_PARAMETER(spi->chip_select)); in img_spfi_config()
|
| D | spi-atmel.c | 358 spi_writel(as, CSR0 + 4 * spi->chip_select, asd->csr); in cs_activate() 365 SPI_BF(PCS, ~(0x01 << spi->chip_select)) in cs_activate() 371 SPI_BF(PCS, ~(0x01 << spi->chip_select)) in cs_activate() 393 mr = SPI_BFINS(PCS, ~(1 << spi->chip_select), mr); in cs_activate() 394 if (as->use_cs_gpios && spi->chip_select != 0) in cs_activate() 411 if (~SPI_BFEXT(PCS, mr) & (1 << spi->chip_select)) { in cs_deactivate() 420 else if (atmel_spi_is_v2(as) || spi->chip_select != 0) in cs_deactivate() 875 csr = spi_readl(as, CSR0 + 4 * spi->chip_select); in atmel_spi_set_xfer_speed() 877 spi_writel(as, CSR0 + 4 * spi->chip_select, csr); in atmel_spi_set_xfer_speed() 1187 && spi->chip_select == 0 in atmel_spi_setup() [all …]
|
| D | spi-ti-qspi.c | 487 MEM_CS_EN(spi->chip_select)); in ti_qspi_enable_memory_map() 524 QSPI_SPI_SETUP_REG(spi->chip_select)); in ti_qspi_setup_mmap_read() 593 qspi->dc |= QSPI_CKPHA(spi->chip_select); in ti_qspi_start_transfer_one() 595 qspi->dc |= QSPI_CKPOL(spi->chip_select); in ti_qspi_start_transfer_one() 597 qspi->dc |= QSPI_CSPOL(spi->chip_select); in ti_qspi_start_transfer_one() 606 qspi->cmd |= QSPI_EN_CS(spi->chip_select); in ti_qspi_start_transfer_one()
|
| D | spi-jcore.c | 71 u32 csbit = 1U << (2 * spi->chip_select); in jcore_spi_chipsel() 73 dev_dbg(hw->master->dev.parent, "chipselect %d\n", spi->chip_select); in jcore_spi_chipsel()
|
| /Linux-v5.4/arch/arm/mach-pxa/ |
| D | icontrol.c | 81 .chip_select = 0, 90 .chip_select = 1, 99 .chip_select = 0, 108 .chip_select = 1,
|
| /Linux-v5.4/drivers/mtd/nand/raw/ |
| D | ndfc.c | 36 int chip_select; member 50 ccr |= NDFC_CCR_BS(chip + ndfc->chip_select); in ndfc_select_chip() 207 ndfc->chip_select = cs; in ndfc_probe() 219 ccr = NDFC_CCR_BS(ndfc->chip_select); in ndfc_probe() 231 int offset = NDFC_BCFG0 + (ndfc->chip_select << 2); in ndfc_probe()
|
| /Linux-v5.4/arch/arm/mach-s3c64xx/ |
| D | mach-crag6410-module.c | 49 .chip_select = 0, 62 .chip_select = 0, 241 .chip_select = 1, 274 .chip_select = 1, 297 .chip_select = 1,
|
| /Linux-v5.4/arch/arm/mach-ep93xx/ |
| D | vision_ep9307.c | 225 .chip_select = 0, 232 .chip_select = 1, 239 .chip_select = 2,
|
| /Linux-v5.4/arch/mips/txx9/generic/ |
| D | spi_eeprom.c | 29 .chip_select = chipid, in spi_eeprom_register() 65 read_param->chipid != spi->chip_select) in early_seeprom_probe()
|
| /Linux-v5.4/arch/m68k/coldfire/ |
| D | device.c | 278 u8 chip_select, bool cs_high) in mcf_cs_select() argument 280 switch (chip_select) { in mcf_cs_select() 299 u8 chip_select, bool cs_high) in mcf_cs_deselect() argument 301 switch (chip_select) { in mcf_cs_deselect()
|
| /Linux-v5.4/drivers/staging/kpc2000/ |
| D | kpc2000_spi.c | 63 .chip_select = 0, 70 .chip_select = 1, 280 sc.bitfield.cs = spidev->chip_select; in kp_spi_setup() 376 sc.bitfield.cs = spidev->chip_select; in kp_spi_transfer_one_message()
|
| /Linux-v5.4/arch/sh/include/asm/ |
| D | spi.h | 11 void (*chip_select)(struct sh_spi_info *spi, int cs, int state); member
|
| /Linux-v5.4/arch/powerpc/platforms/83xx/ |
| D | mpc832x_rdb.c | 147 pr_debug("%s %d %d\n", __func__, spi->chip_select, on); in mpc83xx_spi_cs_control() 157 .chip_select = 0,
|
| /Linux-v5.4/drivers/mmc/core/ |
| D | debugfs.c | 84 switch (ios->chip_select) { in mmc_ios_show() 98 seq_printf(s, "chip select:\t%u (%s)\n", ios->chip_select, str); in mmc_ios_show()
|
| /Linux-v5.4/arch/arm/mach-omap1/ |
| D | board-nokia770.c | 130 .chip_select = 3, 137 .chip_select = 0,
|