Home
last modified time | relevance | path

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

1234567

/linux/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/drivers/spi/
A 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()
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()
246 reg |= BIT(spi->chip_select); in bcm63xx_hsspi_setup()
248 reg &= ~BIT(spi->chip_select); in bcm63xx_hsspi_setup()
253 bs->cs_polarity |= BIT(spi->chip_select); in bcm63xx_hsspi_setup()
255 bs->cs_polarity &= ~BIT(spi->chip_select); in bcm63xx_hsspi_setup()
286 dummy_cs = !spi->chip_select; in bcm63xx_hsspi_transfer_one()
[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()
807 int chip_select; in atmel_spi_set_xfer_speed() local
812 chip_select = spi->chip_select; in atmel_spi_set_xfer_speed()
1192 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.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()
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-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-imx.c532 ctrl |= MX51_ECSPI_CTRL_CS(spi->chip_select); in mx51_ecspi_prepare_message()
553 cfg &= ~MX51_ECSPI_CONFIG_SBBCTRL(spi->chip_select); in mx51_ecspi_prepare_message()
555 cfg |= MX51_ECSPI_CONFIG_SBBCTRL(spi->chip_select); in mx51_ecspi_prepare_message()
558 cfg |= MX51_ECSPI_CONFIG_SCLKPHA(spi->chip_select); in mx51_ecspi_prepare_message()
560 cfg &= ~MX51_ECSPI_CONFIG_SCLKPHA(spi->chip_select); in mx51_ecspi_prepare_message()
563 cfg |= MX51_ECSPI_CONFIG_SCLKPOL(spi->chip_select); in mx51_ecspi_prepare_message()
564 cfg |= MX51_ECSPI_CONFIG_SCLKCTL(spi->chip_select); in mx51_ecspi_prepare_message()
571 cfg |= MX51_ECSPI_CONFIG_SSBPOL(spi->chip_select); in mx51_ecspi_prepare_message()
573 cfg &= ~MX51_ECSPI_CONFIG_SSBPOL(spi->chip_select); in mx51_ecspi_prepare_message()
755 reg |= (spi->chip_select) << in mx31_prepare_transfer()
[all …]
A 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()
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()
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()
A Dspi.c574 spi->chip_select); in spi_dev_set_name()
583 spi->chip_select == new_spi->chip_select) in spi_dev_check()
608 spi->chip_select); in __spi_add_device()
664 if (spi->chip_select >= ctlr->num_chipselect) { in spi_add_device()
731 proxy->chip_select = chip->chip_select; in spi_new_device()
2181 spi->chip_select = value; in of_spi_parse_dt()
2280 u8 chip_select) in spi_new_ancillary_device() argument
2295 ancillary->chip_select = chip_select; in spi_new_ancillary_device()
2323 u8 chip_select; member
2388 lookup->chip_select = cs; in acpi_spi_add_resource()
[all …]
A Dspi-omap2-mcspi.c383 struct omap2_mcspi_dma *mcspi_dma = &mcspi->dma_channels[spi->chip_select]; in omap2_mcspi_rx_callback()
395 struct omap2_mcspi_dma *mcspi_dma = &mcspi->dma_channels[spi->chip_select]; in omap2_mcspi_tx_callback()
412 mcspi_dma = &mcspi->dma_channels[spi->chip_select]; in omap2_mcspi_tx_dma()
450 mcspi_dma = &mcspi->dma_channels[spi->chip_select]; in omap2_mcspi_rx_dma()
595 mcspi_dma = &mcspi->dma_channels[spi->chip_select]; in omap2_mcspi_txrx_dma()
1060 cs->base = mcspi->base + spi->chip_select * 0x14; in omap2_mcspi_setup()
1061 cs->phys = mcspi->phys + spi->chip_select * 0x14; in omap2_mcspi_setup()
1141 mcspi_dma = mcspi->dma_channels + spi->chip_select; in omap2_mcspi_transfer_one()
1288 &mcspi->dma_channels[spi->chip_select]; in omap2_mcspi_can_dma()
1306 &mcspi->dma_channels[spi->chip_select]; in omap2_mcspi_max_xfer_size()
/linux/arch/arm/mach-pxa/
A Dicontrol.c86 .chip_select = 0,
95 .chip_select = 1,
104 .chip_select = 0,
113 .chip_select = 1,
/linux/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/arch/arm/mach-s3c/
A Dmach-crag6410-module.c49 .chip_select = 0,
62 .chip_select = 0,
241 .chip_select = 1,
274 .chip_select = 1,
297 .chip_select = 1,
/linux/arch/arm/mach-ep93xx/
A Dvision_ep9307.c225 .chip_select = 0,
232 .chip_select = 1,
239 .chip_select = 2,
/linux/arch/mips/txx9/generic/
A Dspi_eeprom.c29 .chip_select = chipid, in spi_eeprom_register()
65 read_param->chipid != spi->chip_select) in early_seeprom_probe()
/linux/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/arch/powerpc/platforms/83xx/
A Dmpc832x_rdb.c146 pr_debug("%s %d %d\n", __func__, spi->chip_select, on); in mpc83xx_spi_cs_control()
156 .chip_select = 0,
/linux/drivers/mmc/core/
A Ddebugfs.c85 switch (ios->chip_select) { in mmc_ios_show()
99 seq_printf(s, "chip select:\t%u (%s)\n", ios->chip_select, str); in mmc_ios_show()
/linux/arch/arm/mach-omap1/
A Dboard-nokia770.c130 .chip_select = 3,
137 .chip_select = 0,
/linux/drivers/staging/greybus/
A Dspilib.c240 request->chip_select = dev->chip_select; in gb_spi_operation_create()
451 request.chip_select = cs; in gb_spi_setup_device()
475 spi_board.chip_select = cs; in gb_spi_setup_device()

Completed in 49 milliseconds

1234567