Home
last modified time | relevance | path

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

123456

/linux-6.3-rc2/include/trace/events/
A 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,
116 __entry->chip_select = msg->spi->chip_select;
121 (int)__entry->chip_select,
157 __entry->chip_select = msg->spi->chip_select;
164 (int)__entry->chip_select,
[all …]
/linux-6.3-rc2/drivers/spi/
A Dspi-bcmbca-hsspi.c196 unsigned int profile = spi->chip_select; in bcmbca_hsspi_set_clk()
254 unsigned int chip_select = spi->chip_select; in bcmbca_hsspi_do_txrx() local
306 bcmbca_hsspi_set_cs(bs, chip_select, true); in bcmbca_hsspi_do_txrx()
310 reg = chip_select << PINGPONG_CMD_SS_SHIFT | in bcmbca_hsspi_do_txrx()
311 chip_select << PINGPONG_CMD_PROFILE_SHIFT | in bcmbca_hsspi_do_txrx()
315 if (bcmbca_hsspi_wait_cmd(bs, spi->chip_select)) in bcmbca_hsspi_do_txrx()
348 reg |= BIT(spi->chip_select); in bcmbca_hsspi_setup()
350 reg &= ~BIT(spi->chip_select); in bcmbca_hsspi_setup()
354 bs->cs_polarity |= BIT(spi->chip_select); in bcmbca_hsspi_setup()
356 bs->cs_polarity &= ~BIT(spi->chip_select); in bcmbca_hsspi_setup()
[all …]
A Dspi-bcm63xx-hsspi.c352 unsigned int chip_select = spi->chip_select; in bcm63xx_hsspi_do_prepend_txrx() local
411 reg = chip_select << PINGPONG_CMD_SS_SHIFT | in bcm63xx_hsspi_do_prepend_txrx()
412 chip_select << PINGPONG_CMD_PROFILE_SHIFT | in bcm63xx_hsspi_do_prepend_txrx()
444 unsigned int profile = spi->chip_select; in bcm63xx_hsspi_set_clk()
471 unsigned int chip_select = spi->chip_select; in bcm63xx_hsspi_do_txrx() local
523 reg = !chip_select << PINGPONG_CMD_SS_SHIFT | in bcm63xx_hsspi_do_txrx()
563 reg |= BIT(spi->chip_select); in bcm63xx_hsspi_setup()
565 reg &= ~BIT(spi->chip_select); in bcm63xx_hsspi_setup()
570 bs->cs_polarity |= BIT(spi->chip_select); in bcm63xx_hsspi_setup()
572 bs->cs_polarity &= ~BIT(spi->chip_select); in bcm63xx_hsspi_setup()
[all …]
A 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()
343 SPI_BF(PCS, ~(0x01 << chip_select)) 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()
801 int chip_select; in atmel_spi_set_xfer_speed() local
806 chip_select = spi->chip_select; in atmel_spi_set_xfer_speed()
1186 int chip_select; in atmel_spi_setup() local
[all …]
A 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()
A 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()
A 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()
A 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()
A Dspi-npcm-fiu.c291 struct npcm_fiu_chip *chip = &fiu->chip[desc->mem->spi->chip_select]; in npcm_fiu_direct_read()
318 struct npcm_fiu_chip *chip = &fiu->chip[desc->mem->spi->chip_select]; in npcm_fiu_direct_write()
347 (mem->spi->chip_select << in npcm_fiu_uma_read()
401 (mem->spi->chip_select << in npcm_fiu_uma_write()
454 (mem->spi->chip_select << in npcm_fiu_manualwrite()
548 struct npcm_fiu_chip *chip = &fiu->chip[mem->spi->chip_select]; in npcm_fiu_exec_op()
608 struct npcm_fiu_chip *chip = &fiu->chip[desc->mem->spi->chip_select]; in npcm_fiu_dirmap_create()
627 desc->mem->spi->chip_select)), in npcm_fiu_dirmap_create()
672 chip = &fiu->chip[spi->chip_select]; in npcm_fiu_setup()
674 chip->chipselect = spi->chip_select; in npcm_fiu_setup()
A 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()
A Dspi-wpcm-fiu.c161 ret = wpcm_fiu_do_uma(fiu, mem->spi->chip_select, op->addr.nbytes == 3, in wpcm_fiu_normal_exec()
199 int cs = mem->spi->chip_select; in wpcm_fiu_4ba_exec()
244 int cs = mem->spi->chip_select; in wpcm_fiu_rdid_exec()
281 int cs = mem->spi->chip_select; in wpcm_fiu_dummy_exec()
379 int cs = desc->mem->spi->chip_select; in wpcm_fiu_dirmap_create()
403 int cs = desc->mem->spi->chip_select; in wpcm_fiu_direct_read()
A 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()
A 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()
A Dspi-amd.c139 static inline void amd_spi_clear_chip(struct amd_spi *amd_spi, u8 chip_select) in amd_spi_clear_chip() argument
141 amd_spi_writereg8(amd_spi, AMD_SPI_ALT_CS_REG, chip_select & ~AMD_SPI_ALT_CS_MASK); in amd_spi_clear_chip()
350 amd_spi_clear_chip(amd_spi, message->spi->chip_select); in amd_spi_fifo_xfer()
367 amd_spi_select_chip(amd_spi, spi->chip_select); in amd_spi_master_transfer()
A 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()
A 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()
676 qspi->dc |= QSPI_CKPHA(spi->chip_select); in ti_qspi_start_transfer_one()
678 qspi->dc |= QSPI_CKPOL(spi->chip_select); in ti_qspi_start_transfer_one()
680 qspi->dc |= QSPI_CSPOL(spi->chip_select); in ti_qspi_start_transfer_one()
689 qspi->cmd |= QSPI_EN_CS(spi->chip_select); in ti_qspi_start_transfer_one()
A Dspi-imx.c531 ctrl |= MX51_ECSPI_CTRL_CS(spi->chip_select); in mx51_ecspi_prepare_message()
552 cfg &= ~MX51_ECSPI_CONFIG_SBBCTRL(spi->chip_select); in mx51_ecspi_prepare_message()
554 cfg |= MX51_ECSPI_CONFIG_SBBCTRL(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()
565 cfg |= MX51_ECSPI_CONFIG_SSBPOL(spi->chip_select); in mx51_ecspi_prepare_message()
567 cfg &= ~MX51_ECSPI_CONFIG_SSBPOL(spi->chip_select); in mx51_ecspi_prepare_message()
617 cfg |= MX51_ECSPI_CONFIG_SCLKPHA(spi->chip_select); in mx51_configure_cpha()
772 reg |= (spi->chip_select) << in mx31_prepare_transfer()
[all …]
/linux-6.3-rc2/drivers/mtd/nand/raw/
A 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-6.3-rc2/arch/arm/mach-s3c/
A Dmach-crag6410-module.c45 .chip_select = 0,
57 .chip_select = 0,
231 .chip_select = 1,
263 .chip_select = 1,
285 .chip_select = 1,
/linux-6.3-rc2/arch/arm/mach-ep93xx/
A Dvision_ep9307.c225 .chip_select = 0,
232 .chip_select = 1,
239 .chip_select = 2,
/linux-6.3-rc2/arch/m68k/coldfire/
A 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-6.3-rc2/include/linux/platform_data/
A Dbrcmnand.h6 int chip_select; member
/linux-6.3-rc2/arch/sh/include/asm/
A Dspi.h11 void (*chip_select)(struct sh_spi_info *spi, int cs, int state); member
/linux-6.3-rc2/arch/powerpc/platforms/83xx/
A Dmpc832x_rdb.c147 pr_debug("%s %d %d\n", __func__, spi->chip_select, on); in mpc83xx_spi_cs_control()
157 .chip_select = 0,
/linux-6.3-rc2/arch/arm/mach-omap1/
A Dboard-nokia770.c128 .chip_select = 3,
135 .chip_select = 0,

Completed in 70 milliseconds

123456