/linux/include/trace/events/ |
H A D | spi.h | 51 __field(int, chip_select) 60 __entry->chip_select = spi_get_chipselect(spi, 0); 68 __entry->bus_num, __entry->chip_select, 84 __field(int, chip_select) 91 __entry->chip_select = spi_get_chipselect(spi, 0); 97 __entry->bus_num, __entry->chip_select, 110 __field( int, chip_select ) 116 __entry->chip_select = spi_get_chipselect(msg->spi, 0); 121 (int)__entry->chip_select, 149 __field( int, chip_select ) [all …]
|
/linux/drivers/spi/ |
H A D | spi-atmel.c | 328 static void atmel_spi_send_dummy(struct atmel_spi *as, struct spi_device *spi, int chip_select) in atmel_spi_send_dummy() argument 338 csr = spi_readl(as, CSR0 + 4 * chip_select); in atmel_spi_send_dummy() 340 spi_writel(as, CSR0 + 4 * chip_select, csr); in atmel_spi_send_dummy() 386 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() 395 spi_writel(as, CSR0 + 4 * chip_select, asd->csr); in cs_activate() 402 SPI_BF(PCS, ~(0x01 << chip_select)) in cs_activate() 408 SPI_BF(PCS, ~(0x01 << chip_select)) in cs_activate() 428 atmel_spi_send_dummy(as, spi, chip_select); in cs_activate() [all …]
|
H A D | spi-hisi-sfc-v3xx.c | 275 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()
|
H A D | spi-bcm63xx-hsspi.c | 352 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()
|
H A D | spi-bcmbca-hsspi.c | 254 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()
|
H A D | spi-coldfire-qspi.c | 108 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()
|
H A D | spi-sh-sci.c | 110 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()
|
H A D | spi-fsl-lpspi.c | 91 u8 chip_select; member 279 temp |= (fsl_lpspi->config.chip_select & 0x3) << 24; in fsl_lpspi_set_cmd() 453 fsl_lpspi->config.chip_select = 1; in fsl_lpspi_setup_transfer() 455 fsl_lpspi->config.chip_select = spi_get_chipselect(spi, 0); in fsl_lpspi_setup_transfer()
|
/linux/drivers/mtd/nand/raw/ |
H A D | ndfc.c | 36 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/arch/m68k/coldfire/ |
H A D | device.c | 279 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()
|
H A D | stmark2.c | 50 .chip_select = 1,
|
/linux/include/linux/spi/ |
H A D | spi.h | 137 * @chip_select: Array of physical chipselect, spi->chipselect[i] gives 188 u8 chip_select[SPI_CS_CNT_MAX]; member 292 return spi->chip_select[idx]; in spi_get_chipselect() 297 spi->chip_select[idx] = chipselect; in spi_set_chipselect() 370 extern struct spi_device *spi_new_ancillary_device(struct spi_device *spi, u8 chip_select); 451 * @last_cs: the last chip_select that is recorded by set_cs, -1 on non chip 1591 * @chip_select: Initializes spi_device.chip_select; depends on how 1633 * chip_select reflects how this chip is wired to that master; 1637 u16 chip_select; 1647 u16 chip_select; global() member [all...] |
/linux/include/linux/platform_data/ |
H A D | brcmnand.h | 6 int chip_select; member
|
/linux/arch/sh/include/asm/ |
H A D | spi.h | 11 void (*chip_select)(struct sh_spi_info *spi, int cs, int state); member
|
/linux/arch/arm/mach-omap1/ |
H A D | board-nokia770.c | 155 .chip_select = 3, 163 .chip_select = 0,
|
H A D | board-palmte.c | 181 .chip_select = 0, /* As opposed to 3 */
|
/linux/arch/arm/mach-ep93xx/ |
H A D | ts72xx.c | 258 .chip_select = 0, 313 .chip_select = 0,
|
/linux/arch/arm/mach-dove/ |
H A D | cm-a510.c | 48 .chip_select = 0,
|
/linux/drivers/bcma/ |
H A D | driver_chipcommon_nflash.c | 50 cc->nflash.brcmnand_info.chip_select = ffs(reg) - 1; in bcma_nflash_init()
|
/linux/drivers/misc/eeprom/ |
H A D | digsy_mtc_eeprom.c | 74 .chip_select = 0,
|
/linux/drivers/mmc/core/ |
H A D | debugfs.c | 88 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()
|
/linux/drivers/staging/greybus/ |
H A D | spilib.c | 240 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()
|
/linux/arch/mips/alchemy/devboards/ |
H A D | db1550.c | 109 .chip_select = 0, 117 .chip_select = 1,
|
/linux/drivers/edac/ |
H A D | amd64_edac.h | 293 struct chip_select { struct 349 struct chip_select csels[NUM_CONTROLLERS];
|
/linux/arch/arm/mach-pxa/ |
H A D | spitz.c | 589 .chip_select = 0, 596 .chip_select = 1, 603 .chip_select = 2,
|