Home
last modified time | relevance | path

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

1234567

/linux-5.19.10/include/trace/events/
Dspi.h51 __field(int, chip_select)
60 __entry->chip_select = spi->chip_select;
68 __entry->bus_num, __entry->chip_select,
84 __field(int, chip_select)
91 __entry->chip_select = spi->chip_select;
97 __entry->bus_num, __entry->chip_select,
110 __field( int, chip_select )
116 __entry->chip_select = msg->spi->chip_select;
121 (int)__entry->chip_select,
149 __field( int, chip_select )
[all …]
/linux-5.19.10/drivers/spi/
Dspi-bcm63xx-hsspi.c133 unsigned int profile = spi->chip_select; in bcm63xx_hsspi_set_clk()
160 unsigned int chip_select = spi->chip_select; in bcm63xx_hsspi_do_txrx() local
168 bcm63xx_hsspi_set_cs(bs, spi->chip_select, true); in bcm63xx_hsspi_do_txrx()
186 bs->regs + HSSPI_PROFILE_MODE_CTRL_REG(chip_select)); in bcm63xx_hsspi_do_txrx()
204 __raw_writel(!chip_select << PINGPONG_CMD_SS_SHIFT | in bcm63xx_hsspi_do_txrx()
205 chip_select << PINGPONG_CMD_PROFILE_SHIFT | in bcm63xx_hsspi_do_txrx()
231 HSSPI_PROFILE_SIGNAL_CTRL_REG(spi->chip_select)); in bcm63xx_hsspi_setup()
238 HSSPI_PROFILE_SIGNAL_CTRL_REG(spi->chip_select)); in bcm63xx_hsspi_setup()
246 reg |= BIT(spi->chip_select); in bcm63xx_hsspi_setup()
248 reg &= ~BIT(spi->chip_select); in bcm63xx_hsspi_setup()
[all …]
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()
369 mr = SPI_BFINS(PCS, ~(1 << chip_select), mr); in cs_activate()
378 int chip_select; in cs_deactivate() local
382 chip_select = as->native_cs_for_gpio; in cs_deactivate()
384 chip_select = spi->chip_select; in cs_deactivate()
[all …]
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-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-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-hisi-sfc-v3xx.c275 u8 chip_select) in hisi_sfc_v3xx_start_bus() argument
306 chip_select << HISI_SFC_V3XX_CMD_CFG_CS_SEL_OFF | in hisi_sfc_v3xx_start_bus()
319 u8 chip_select) in hisi_sfc_v3xx_generic_exec_op() argument
332 ret = hisi_sfc_v3xx_start_bus(host, op, chip_select); in hisi_sfc_v3xx_generic_exec_op()
364 u8 chip_select = spi->chip_select; in hisi_sfc_v3xx_exec_op() local
368 return hisi_sfc_v3xx_generic_exec_op(host, op, chip_select); in hisi_sfc_v3xx_exec_op()
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-amd.c95 static inline void amd_spi_clear_chip(struct amd_spi *amd_spi, u8 chip_select) in amd_spi_clear_chip() argument
97 amd_spi_writereg8(amd_spi, AMD_SPI_ALT_CS_REG, chip_select & ~AMD_SPI_ALT_CS_MASK); in amd_spi_clear_chip()
246 amd_spi_clear_chip(amd_spi, message->spi->chip_select); in amd_spi_fifo_xfer()
263 amd_spi_select_chip(amd_spi, spi->chip_select); in amd_spi_master_transfer()
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.c182 if (value == BITBANG_CS_INACTIVE || old_cs != spi->chip_select) { in uwire_chipselect()
196 w = spi->chip_select << 10; in uwire_chipselect()
213 w = spi->chip_select << 10; in uwire_txrx()
411 omap_uwire_configure_mode(spi->chip_select, flags); in uwire_setup_transfer()
Dspi-rockchip.c249 if (cs_asserted == rs->cs_asserted[spi->chip_select]) in rockchip_spi_set_cs()
259 ROCKCHIP_SPI_SET_BITS(rs->regs + ROCKCHIP_SPI_SER, BIT(spi->chip_select)); in rockchip_spi_set_cs()
264 ROCKCHIP_SPI_CLR_BITS(rs->regs + ROCKCHIP_SPI_SER, BIT(spi->chip_select)); in rockchip_spi_set_cs()
270 rs->cs_asserted[spi->chip_select] = cs_asserted; in rockchip_spi_set_cs()
544 cr0 |= BIT(spi->chip_select) << CR0_SOI_OFFSET; in rockchip_spi_config()
738 if (spi->mode & SPI_CS_HIGH && spi->chip_select <= 1) in rockchip_spi_setup()
739 cr0 |= BIT(spi->chip_select) << CR0_SOI_OFFSET; in rockchip_spi_setup()
740 else if (spi->chip_select <= 1) in rockchip_spi_setup()
741 cr0 &= ~(BIT(spi->chip_select) << CR0_SOI_OFFSET); in rockchip_spi_setup()
Dspi-ti-qspi.c536 MEM_CS_EN(spi->chip_select)); in ti_qspi_enable_memory_map()
539 qspi->current_cs = spi->chip_select; in ti_qspi_enable_memory_map()
575 QSPI_SPI_SETUP_REG(spi->chip_select)); in ti_qspi_setup_mmap_read()
626 if (!qspi->mmap_enabled || qspi->current_cs != mem->spi->chip_select) in ti_qspi_exec_mem_op()
674 qspi->dc |= QSPI_CKPHA(spi->chip_select); in ti_qspi_start_transfer_one()
676 qspi->dc |= QSPI_CKPOL(spi->chip_select); in ti_qspi_start_transfer_one()
678 qspi->dc |= QSPI_CSPOL(spi->chip_select); in ti_qspi_start_transfer_one()
687 qspi->cmd |= QSPI_EN_CS(spi->chip_select); in ti_qspi_start_transfer_one()
Dspi.c545 spi->chip_select); in spi_dev_set_name()
554 spi->chip_select == new_spi->chip_select) in spi_dev_check()
579 spi->chip_select); in __spi_add_device()
590 spi->cs_gpiod = ctlr->cs_gpiods[spi->chip_select]; in __spi_add_device()
633 if (spi->chip_select >= ctlr->num_chipselect) { in spi_add_device()
634 dev_err(dev, "cs%d >= max %d\n", spi->chip_select, in spi_add_device()
655 if (spi->chip_select >= ctlr->num_chipselect) { in spi_add_device_locked()
656 dev_err(dev, "cs%d >= max %d\n", spi->chip_select, in spi_add_device_locked()
702 proxy->chip_select = chip->chip_select; in spi_new_device()
911 if (!force && ((enable && spi->controller->last_cs == spi->chip_select) || in spi_set_cs()
[all …]
Dspi-imx.c538 ctrl |= MX51_ECSPI_CTRL_CS(spi->chip_select); in mx51_ecspi_prepare_message()
559 cfg &= ~MX51_ECSPI_CONFIG_SBBCTRL(spi->chip_select); in mx51_ecspi_prepare_message()
561 cfg |= MX51_ECSPI_CONFIG_SBBCTRL(spi->chip_select); in mx51_ecspi_prepare_message()
564 cfg |= MX51_ECSPI_CONFIG_SCLKPOL(spi->chip_select); in mx51_ecspi_prepare_message()
565 cfg |= MX51_ECSPI_CONFIG_SCLKCTL(spi->chip_select); in mx51_ecspi_prepare_message()
567 cfg &= ~MX51_ECSPI_CONFIG_SCLKPOL(spi->chip_select); in mx51_ecspi_prepare_message()
568 cfg &= ~MX51_ECSPI_CONFIG_SCLKCTL(spi->chip_select); in mx51_ecspi_prepare_message()
572 cfg |= MX51_ECSPI_CONFIG_SSBPOL(spi->chip_select); in mx51_ecspi_prepare_message()
574 cfg &= ~MX51_ECSPI_CONFIG_SSBPOL(spi->chip_select); in mx51_ecspi_prepare_message()
624 cfg |= MX51_ECSPI_CONFIG_SCLKPHA(spi->chip_select); in mx51_configure_cpha()
[all …]
/linux-5.19.10/arch/arm/mach-pxa/
Dicontrol.c82 .chip_select = 0,
91 .chip_select = 1,
100 .chip_select = 0,
109 .chip_select = 1,
/linux-5.19.10/drivers/mtd/nand/raw/
Dndfc.c35 int chip_select; member
49 ccr |= NDFC_CCR_BS(chip + ndfc->chip_select); in ndfc_select_chip()
206 ndfc->chip_select = cs; in ndfc_probe()
218 ccr = NDFC_CCR_BS(ndfc->chip_select); in ndfc_probe()
230 int offset = NDFC_BCFG0 + (ndfc->chip_select << 2); in ndfc_probe()
/linux-5.19.10/arch/arm/mach-s3c/
Dmach-crag6410-module.c45 .chip_select = 0,
57 .chip_select = 0,
231 .chip_select = 1,
263 .chip_select = 1,
285 .chip_select = 1,
/linux-5.19.10/arch/arm/mach-ep93xx/
Dvision_ep9307.c225 .chip_select = 0,
232 .chip_select = 1,
239 .chip_select = 2,
/linux-5.19.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-5.19.10/include/linux/platform_data/
Dbrcmnand.h6 int chip_select; member
/linux-5.19.10/arch/sh/include/asm/
Dspi.h11 void (*chip_select)(struct sh_spi_info *spi, int cs, int state); member
/linux-5.19.10/arch/powerpc/platforms/83xx/
Dmpc832x_rdb.c147 pr_debug("%s %d %d\n", __func__, spi->chip_select, on); in mpc83xx_spi_cs_control()
157 .chip_select = 0,
/linux-5.19.10/arch/arm/mach-omap1/
Dboard-nokia770.c128 .chip_select = 3,
135 .chip_select = 0,

1234567