Home
last modified time | relevance | path

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

12

/drivers/spi/
A Dspi-atmel.c386 int chip_select; in cs_activate() local
390 chip_select = as->native_cs_for_gpio; in cs_activate()
392 chip_select = spi_get_chipselect(spi, 0); in cs_activate()
402 SPI_BF(PCS, ~(0x01 << chip_select)) in cs_activate()
408 SPI_BF(PCS, ~(0x01 << chip_select)) in cs_activate()
456 int chip_select; in cs_deactivate() local
460 chip_select = as->native_cs_for_gpio; in cs_deactivate()
879 int chip_select; in atmel_spi_set_xfer_speed() local
882 chip_select = as->native_cs_for_gpio; in atmel_spi_set_xfer_speed()
1262 int chip_select; in atmel_spi_setup() local
[all …]
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_get_chipselect(spi, 0); 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-bcm63xx-hsspi.c352 unsigned int chip_select = spi_get_chipselect(spi, 0); in bcm63xx_hsspi_do_prepend_txrx() local
394 bs->regs + HSSPI_PROFILE_MODE_CTRL_REG(chip_select)); in bcm63xx_hsspi_do_prepend_txrx()
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()
471 unsigned int chip_select = spi_get_chipselect(spi, 0); in bcm63xx_hsspi_do_txrx() local
504 bs->regs + HSSPI_PROFILE_MODE_CTRL_REG(chip_select)); in bcm63xx_hsspi_do_txrx()
523 reg = !chip_select << PINGPONG_CMD_SS_SHIFT | in bcm63xx_hsspi_do_txrx()
524 chip_select << PINGPONG_CMD_PROFILE_SHIFT | in bcm63xx_hsspi_do_txrx()
A Dspi-bcmbca-hsspi.c254 unsigned int chip_select = spi_get_chipselect(spi, 0); in bcmbca_hsspi_do_txrx() local
285 bs->regs + HSSPI_PROFILE_MODE_CTRL_REG(chip_select)); in bcmbca_hsspi_do_txrx()
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()
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()
A Dspi-sh-sci.c110 if (sp->info->chip_select) in sh_sci_spi_chipselect()
111 (sp->info->chip_select)(sp->info, spi_get_chipselect(dev, 0), value); in sh_sci_spi_chipselect()
A Dspi-fsl-lpspi.c91 u8 chip_select; member
279 temp |= (fsl_lpspi->config.chip_select & 0x3) << 24; in fsl_lpspi_set_cmd()
457 fsl_lpspi->config.chip_select = 1; in fsl_lpspi_setup_transfer()
459 fsl_lpspi->config.chip_select = spi_get_chipselect(spi, 0); in fsl_lpspi_setup_transfer()
A Dspi-altera-dfl.c173 board_info.chip_select = 0; in dfl_spi_altera_probe()
A Dspi-lm70llp.c257 pp->info.chip_select = 0; in spi_lm70llp_attach()
A Dspi-butterfly.c264 pp->info[0].chip_select = 1; in butterfly_attach()
A Dspi.c629 static inline bool is_valid_cs(s8 chip_select) in is_valid_cs() argument
631 return chip_select != SPI_INVALID_CS; in is_valid_cs()
824 spi_set_chipselect(proxy, 0, chip->chip_select); in spi_new_device()
2567 u8 chip_select) in spi_new_ancillary_device() argument
2584 spi_set_chipselect(ancillary, 0, chip_select); in spi_new_ancillary_device()
2619 u8 chip_select; member
2745 lookup->chip_select = cs; in acpi_spi_add_resource()
2747 lookup->chip_select = sb->device_selection; in acpi_spi_add_resource()
2832 spi_set_chipselect(spi, 0, lookup.chip_select); in acpi_spi_device_alloc()
A Dspi-cadence-quadspi.c1166 unsigned int chip_select = f_pdata->cs; in cqspi_chipselect() local
1181 chip_select = 0xF & ~(1 << chip_select); in cqspi_chipselect()
1186 reg |= (chip_select & CQSPI_REG_CONFIG_CHIPSELECT_MASK) in cqspi_chipselect()
A Dspi-amd.c179 static inline void amd_spi_clear_chip(struct amd_spi *amd_spi, u8 chip_select) in amd_spi_clear_chip() argument
181 amd_spi_writereg8(amd_spi, AMD_SPI_ALT_CS_REG, chip_select & ~AMD_SPI_ALT_CS_MASK); in amd_spi_clear_chip()
/drivers/mtd/nand/raw/
A 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()
A Dmeson_nand.c152 u32 chip_select; member
272 nfc->param.chip_select = meson_chip->sels[chip] ? NAND_CE1 : NAND_CE0; in meson_nfc_select_chip()
273 nfc->param.rb_select = nfc->param.chip_select; in meson_nfc_select_chip()
296 writel(nfc->param.chip_select | NFC_CMD_IDLE | (time & 0x3ff), in meson_nfc_cmd_idle()
500 | nfc->param.chip_select | nfc->timing.tbers_max; in meson_nfc_wait_rb_pin()
700 u32 cs = nfc->param.chip_select; in meson_nfc_rw_cmd_prepare_and_execute()
774 cmd = nfc->param.chip_select | NFC_CMD_CLE | NAND_CMD_PAGEPROG; in meson_nfc_write_page_sub()
1053 cmd = nfc->param.chip_select | NFC_CMD_CLE; in meson_nfc_exec_op()
1061 cmd = nfc->param.chip_select | NFC_CMD_ALE; in meson_nfc_exec_op()
/drivers/mmc/core/
A Ddebugfs.c88 switch (ios->chip_select) { in mmc_ios_show()
102 seq_printf(s, "chip select:\t%u (%s)\n", ios->chip_select, str); in mmc_ios_show()
A Dcore.c900 ios->power_mode, ios->chip_select, ios->vdd, in mmc_set_ios()
911 host->ios.chip_select = mode; in mmc_set_chip_select()
993 host->ios.chip_select = MMC_CS_HIGH; in mmc_set_initial_state()
995 host->ios.chip_select = MMC_CS_DONTCARE; in mmc_set_initial_state()
/drivers/staging/greybus/
A Dspilib.c240 request->chip_select = spi_get_chipselect(dev, 0); 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()
/drivers/misc/eeprom/
A Ddigsy_mtc_eeprom.c74 .chip_select = 0,
/drivers/bcma/
A Ddriver_chipcommon_nflash.c50 cc->nflash.brcmnand_info.chip_select = ffs(reg) - 1; in bcma_nflash_init()
/drivers/edac/
A Damd64_edac.h293 struct chip_select { struct
349 struct chip_select csels[NUM_CONTROLLERS];
/drivers/mfd/
A Dtimberdale.c122 .chip_select = 2,
132 .chip_select = 1,
/drivers/media/pci/netup_unidvb/
A Dnetup_unidvb_spi.c64 .chip_select = 0,
/drivers/net/wireless/rsi/
A Drsi_91x_sdio.c186 host->ios.chip_select = MMC_CS_DONTCARE; in rsi_reset_card()
210 host->ios.chip_select = MMC_CS_HIGH; in rsi_reset_card()
218 host->ios.chip_select = MMC_CS_DONTCARE; in rsi_reset_card()
/drivers/misc/keba/
A Dcp500.c230 .chip_select = 0,
236 .chip_select = 1,

Completed in 80 milliseconds

12