Home
last modified time | relevance | path

Searched refs:chip_select (Results 1 – 25 of 155) sorted by relevance

1234567

/Linux-v5.10/include/trace/events/
Dspi.h53 __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.10/drivers/spi/
Dspi-bcm63xx-hsspi.c132 unsigned int profile = spi->chip_select; in bcm63xx_hsspi_set_clk()
159 unsigned int chip_select = spi->chip_select; in bcm63xx_hsspi_do_txrx() local
167 bcm63xx_hsspi_set_cs(bs, spi->chip_select, true); in bcm63xx_hsspi_do_txrx()
185 bs->regs + HSSPI_PROFILE_MODE_CTRL_REG(chip_select)); in bcm63xx_hsspi_do_txrx()
203 __raw_writel(!chip_select << PINGPONG_CMD_SS_SHIFT | in bcm63xx_hsspi_do_txrx()
204 chip_select << PINGPONG_CMD_PROFILE_SHIFT | in bcm63xx_hsspi_do_txrx()
230 HSSPI_PROFILE_SIGNAL_CTRL_REG(spi->chip_select)); in bcm63xx_hsspi_setup()
237 HSSPI_PROFILE_SIGNAL_CTRL_REG(spi->chip_select)); in bcm63xx_hsspi_setup()
245 reg |= BIT(spi->chip_select); in bcm63xx_hsspi_setup()
247 reg &= ~BIT(spi->chip_select); in bcm63xx_hsspi_setup()
[all …]
Dspi-amd.c41 u8 chip_select; member
95 u8 chip_select = amd_spi->chip_select; in amd_spi_select_chip() local
97 amd_spi_setclear_reg8(master, AMD_SPI_ALT_CS_REG, chip_select, in amd_spi_select_chip()
236 amd_spi->chip_select = spi->chip_select; in amd_spi_master_transfer()
Dspi-mux.c54 ret = mux_control_select(priv->mux, spi->chip_select); in spi_mux_select()
58 if (priv->current_cs == spi->chip_select) in spi_mux_select()
62 spi->chip_select); in spi_mux_select()
69 priv->current_cs = spi->chip_select; in spi_mux_select()
Dspi-atmel.c327 int chip_select; in cs_activate() local
331 chip_select = as->native_cs_for_gpio; in cs_activate()
333 chip_select = spi->chip_select; in cs_activate()
336 spi_writel(as, CSR0 + 4 * chip_select, asd->csr); in cs_activate()
343 SPI_BF(PCS, ~(0x01 << chip_select)) in cs_activate()
349 SPI_BF(PCS, ~(0x01 << chip_select)) in cs_activate()
371 mr = SPI_BFINS(PCS, ~(1 << chip_select), mr); in cs_activate()
382 int chip_select; in cs_deactivate() local
386 chip_select = as->native_cs_for_gpio; in cs_deactivate()
388 chip_select = spi->chip_select; in cs_deactivate()
[all …]
Dspi-cavium.c60 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()
Dspi-hisi-sfc-v3xx.c264 u8 chip_select) in hisi_sfc_v3xx_start_bus() argument
295 chip_select << HISI_SFC_V3XX_CMD_CFG_CS_SEL_OFF | in hisi_sfc_v3xx_start_bus()
308 u8 chip_select) in hisi_sfc_v3xx_generic_exec_op() argument
321 ret = hisi_sfc_v3xx_start_bus(host, op, chip_select); in hisi_sfc_v3xx_generic_exec_op()
352 u8 chip_select = spi->chip_select; in hisi_sfc_v3xx_exec_op() local
356 return hisi_sfc_v3xx_generic_exec_op(host, op, chip_select); in hisi_sfc_v3xx_exec_op()
Dspi-coldfire-qspi.c108 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()
Dspi-npcm-fiu.c272 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()
Dspi-bcm2835.c145 u8 chip_select; member
628 bs->clear_rx_cs[bs->chip_select]); in bcm2835_spi_dma_tx_done()
700 bs->chip_select = spi->chip_select; in bcm2835_spi_prepare_sg()
804 cookie = dmaengine_submit(bs->clear_rx_desc[spi->chip_select]); in bcm2835_spi_transfer_one_dma()
1087 u32 cs = bs->prepare_cs[spi->chip_select]; in bcm2835_spi_transfer_one()
1165 bcm2835_wr(bs, BCM2835_SPI_CS, bs->prepare_cs[spi->chip_select]); in bcm2835_spi_prepare_message()
1209 bs->prepare_cs[spi->chip_select] = cs; in bcm2835_spi_setup()
1216 bs->clear_rx_cs[spi->chip_select] = cs | in bcm2835_spi_setup()
1237 if (spi->chip_select > 1) { in bcm2835_spi_setup()
1261 spi->cs_gpiod = gpiochip_request_own_desc(chip, 8 - spi->chip_select, in bcm2835_spi_setup()
[all …]
Dspi-sh-sci.c110 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()
Dspi-img-spfi.c416 val |= msg->spi->chip_select << SPFI_PORT_STATE_DEV_SEL_SHIFT; in img_spfi_prepare()
418 val |= SPFI_PORT_STATE_CK_PHASE(msg->spi->chip_select); in img_spfi_prepare()
420 val &= ~SPFI_PORT_STATE_CK_PHASE(msg->spi->chip_select); in img_spfi_prepare()
422 val |= SPFI_PORT_STATE_CK_POL(msg->spi->chip_select); in img_spfi_prepare()
424 val &= ~SPFI_PORT_STATE_CK_POL(msg->spi->chip_select); in img_spfi_prepare()
453 val = spfi_readl(spfi, SPFI_DEVICE_PARAMETER(spi->chip_select)); in img_spfi_config()
457 spfi_writel(spfi, val, SPFI_DEVICE_PARAMETER(spi->chip_select)); in img_spfi_config()
Dspi-omap-uwire.c185 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()
Dspi-ti-qspi.c535 MEM_CS_EN(spi->chip_select)); in ti_qspi_enable_memory_map()
538 qspi->current_cs = spi->chip_select; in ti_qspi_enable_memory_map()
574 QSPI_SPI_SETUP_REG(spi->chip_select)); in ti_qspi_setup_mmap_read()
625 if (!qspi->mmap_enabled || qspi->current_cs != mem->spi->chip_select) in ti_qspi_exec_mem_op()
673 qspi->dc |= QSPI_CKPHA(spi->chip_select); in ti_qspi_start_transfer_one()
675 qspi->dc |= QSPI_CKPOL(spi->chip_select); in ti_qspi_start_transfer_one()
677 qspi->dc |= QSPI_CSPOL(spi->chip_select); in ti_qspi_start_transfer_one()
686 qspi->cmd |= QSPI_EN_CS(spi->chip_select); in ti_qspi_start_transfer_one()
Dspi-imx.c526 ctrl |= MX51_ECSPI_CTRL_CS(spi->chip_select); in mx51_ecspi_prepare_message()
547 cfg &= ~MX51_ECSPI_CONFIG_SBBCTRL(spi->chip_select); in mx51_ecspi_prepare_message()
549 cfg |= MX51_ECSPI_CONFIG_SBBCTRL(spi->chip_select); in mx51_ecspi_prepare_message()
552 cfg |= MX51_ECSPI_CONFIG_SCLKPHA(spi->chip_select); in mx51_ecspi_prepare_message()
554 cfg &= ~MX51_ECSPI_CONFIG_SCLKPHA(spi->chip_select); in mx51_ecspi_prepare_message()
557 cfg |= MX51_ECSPI_CONFIG_SCLKPOL(spi->chip_select); in mx51_ecspi_prepare_message()
558 cfg |= MX51_ECSPI_CONFIG_SCLKCTL(spi->chip_select); in mx51_ecspi_prepare_message()
560 cfg &= ~MX51_ECSPI_CONFIG_SCLKPOL(spi->chip_select); in mx51_ecspi_prepare_message()
561 cfg &= ~MX51_ECSPI_CONFIG_SCLKCTL(spi->chip_select); in mx51_ecspi_prepare_message()
565 cfg |= MX51_ECSPI_CONFIG_SSBPOL(spi->chip_select); in mx51_ecspi_prepare_message()
[all …]
/Linux-v5.10/arch/arm/mach-pxa/
Dicontrol.c82 .chip_select = 0,
91 .chip_select = 1,
100 .chip_select = 0,
109 .chip_select = 1,
/Linux-v5.10/drivers/mtd/nand/raw/
Dndfc.c36 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.10/arch/arm/mach-s3c/
Dmach-crag6410-module.c49 .chip_select = 0,
62 .chip_select = 0,
241 .chip_select = 1,
274 .chip_select = 1,
297 .chip_select = 1,
/Linux-v5.10/arch/arm/mach-ep93xx/
Dvision_ep9307.c225 .chip_select = 0,
232 .chip_select = 1,
239 .chip_select = 2,
/Linux-v5.10/arch/mips/txx9/generic/
Dspi_eeprom.c29 .chip_select = chipid, in spi_eeprom_register()
65 read_param->chipid != spi->chip_select) in early_seeprom_probe()
/Linux-v5.10/arch/m68k/coldfire/
Ddevice.c279 u8 chip_select, bool cs_high) in mcf_cs_select() argument
281 switch (chip_select) { in mcf_cs_select()
300 u8 chip_select, bool cs_high) in mcf_cs_deselect() argument
302 switch (chip_select) { in mcf_cs_deselect()
/Linux-v5.10/drivers/staging/kpc2000/
Dkpc2000_spi.c64 .chip_select = 0,
71 .chip_select = 1,
278 sc.bitfield.cs = spidev->chip_select; in kp_spi_setup()
374 sc.bitfield.cs = spidev->chip_select; in kp_spi_transfer_one_message()
/Linux-v5.10/arch/sh/include/asm/
Dspi.h11 void (*chip_select)(struct sh_spi_info *spi, int cs, int state); member
/Linux-v5.10/arch/powerpc/platforms/83xx/
Dmpc832x_rdb.c146 pr_debug("%s %d %d\n", __func__, spi->chip_select, on); in mpc83xx_spi_cs_control()
156 .chip_select = 0,
/Linux-v5.10/drivers/mmc/core/
Ddebugfs.c84 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()

1234567