/openbmc/linux/drivers/spi/ |
H A D | spi-bcmbca-hsspi.c | 196 unsigned int profile = spi_get_chipselect(spi, 0); in bcmbca_hsspi_set_clk() 254 unsigned int chip_select = spi_get_chipselect(spi, 0); in bcmbca_hsspi_do_txrx() 315 if (bcmbca_hsspi_wait_cmd(bs, spi_get_chipselect(spi, 0))) in bcmbca_hsspi_do_txrx() 335 HSSPI_PROFILE_SIGNAL_CTRL_REG(spi_get_chipselect(spi, 0))); in bcmbca_hsspi_setup() 342 HSSPI_PROFILE_SIGNAL_CTRL_REG(spi_get_chipselect(spi, 0))); in bcmbca_hsspi_setup() 348 reg |= BIT(spi_get_chipselect(spi, 0)); in bcmbca_hsspi_setup() 350 reg &= ~BIT(spi_get_chipselect(spi, 0)); in bcmbca_hsspi_setup() 354 bs->cs_polarity |= BIT(spi_get_chipselect(spi, 0)); in bcmbca_hsspi_setup() 356 bs->cs_polarity &= ~BIT(spi_get_chipselect(spi, 0)); in bcmbca_hsspi_setup() 359 reg &= ~BIT(spi_get_chipselect(spi, 0) + SPIM_CTRL_CS_OVERRIDE_VAL_SHIFT); in bcmbca_hsspi_setup() [all …]
|
H A D | spi-bcm63xx-hsspi.c | 352 unsigned int chip_select = spi_get_chipselect(spi, 0); in bcm63xx_hsspi_do_prepend_txrx() 444 unsigned int profile = spi_get_chipselect(spi, 0); in bcm63xx_hsspi_set_clk() 471 unsigned int chip_select = spi_get_chipselect(spi, 0); in bcm63xx_hsspi_do_txrx() 481 bcm63xx_hsspi_set_cs(bs, spi_get_chipselect(spi, 0), true); in bcm63xx_hsspi_do_txrx() 548 HSSPI_PROFILE_SIGNAL_CTRL_REG(spi_get_chipselect(spi, 0))); in bcm63xx_hsspi_setup() 555 HSSPI_PROFILE_SIGNAL_CTRL_REG(spi_get_chipselect(spi, 0))); in bcm63xx_hsspi_setup() 563 reg |= BIT(spi_get_chipselect(spi, 0)); in bcm63xx_hsspi_setup() 565 reg &= ~BIT(spi_get_chipselect(spi, 0)); in bcm63xx_hsspi_setup() 570 bs->cs_polarity |= BIT(spi_get_chipselect(spi, 0)); in bcm63xx_hsspi_setup() 572 bs->cs_polarity &= ~BIT(spi_get_chipselect(spi, 0)); in bcm63xx_hsspi_setup() [all …]
|
H A D | spi-mux.c | 54 ret = mux_control_select(priv->mux, spi_get_chipselect(spi, 0)); in spi_mux_select() 58 if (priv->current_cs == spi_get_chipselect(spi, 0)) in spi_mux_select() 62 spi_get_chipselect(spi, 0)); in spi_mux_select() 69 priv->current_cs = spi_get_chipselect(spi, 0); in spi_mux_select()
|
H A D | spi-cavium.c | 60 if (spi_get_chipselect(spi, 0) < 4) in octeon_spi_do_transfer() 61 p->cs_enax |= 1ull << (12 + spi_get_chipselect(spi, 0)); in octeon_spi_do_transfer() 81 mpi_tx.s.csid = spi_get_chipselect(spi, 0); in octeon_spi_do_transfer() 106 mpi_tx.s.csid = spi_get_chipselect(spi, 0); in octeon_spi_do_transfer()
|
H A D | spi-npcm-fiu.c | 291 struct npcm_fiu_chip *chip = &fiu->chip[spi_get_chipselect(desc->mem->spi, 0)]; in npcm_fiu_direct_read() 318 struct npcm_fiu_chip *chip = &fiu->chip[spi_get_chipselect(desc->mem->spi, 0)]; in npcm_fiu_direct_write() 347 (spi_get_chipselect(mem->spi, 0) << in npcm_fiu_uma_read() 402 (spi_get_chipselect(mem->spi, 0) << in npcm_fiu_uma_write() 455 (spi_get_chipselect(mem->spi, 0) << in npcm_fiu_manualwrite() 549 struct npcm_fiu_chip *chip = &fiu->chip[spi_get_chipselect(mem->spi, 0)]; in npcm_fiu_exec_op() 609 struct npcm_fiu_chip *chip = &fiu->chip[spi_get_chipselect(desc->mem->spi, 0)]; in npcm_fiu_dirmap_create() 628 spi_get_chipselect(desc->mem->spi, 0))), in npcm_fiu_dirmap_create() 673 chip = &fiu->chip[spi_get_chipselect(spi, 0)]; in npcm_fiu_setup() 675 chip->chipselect = spi_get_chipselect(spi, 0); in npcm_fiu_setup()
|
H A D | spi-wpcm-fiu.c | 160 ret = wpcm_fiu_do_uma(fiu, spi_get_chipselect(mem->spi, 0), op->addr.nbytes == 3, in wpcm_fiu_normal_exec() 198 int cs = spi_get_chipselect(mem->spi, 0); in wpcm_fiu_4ba_exec() 243 int cs = spi_get_chipselect(mem->spi, 0); in wpcm_fiu_rdid_exec() 280 int cs = spi_get_chipselect(mem->spi, 0); in wpcm_fiu_dummy_exec() 378 int cs = spi_get_chipselect(desc->mem->spi, 0); in wpcm_fiu_dirmap_create() 402 int cs = spi_get_chipselect(desc->mem->spi, 0); in wpcm_fiu_direct_read()
|
H A D | spi-img-spfi.c | 416 val |= spi_get_chipselect(msg->spi, 0) << SPFI_PORT_STATE_DEV_SEL_SHIFT; in img_spfi_prepare() 418 val |= SPFI_PORT_STATE_CK_PHASE(spi_get_chipselect(msg->spi, 0)); in img_spfi_prepare() 420 val &= ~SPFI_PORT_STATE_CK_PHASE(spi_get_chipselect(msg->spi, 0)); in img_spfi_prepare() 422 val |= SPFI_PORT_STATE_CK_POL(spi_get_chipselect(msg->spi, 0)); in img_spfi_prepare() 424 val &= ~SPFI_PORT_STATE_CK_POL(spi_get_chipselect(msg->spi, 0)); in img_spfi_prepare() 453 val = spfi_readl(spfi, SPFI_DEVICE_PARAMETER(spi_get_chipselect(spi, 0))); in img_spfi_config() 457 spfi_writel(spfi, val, SPFI_DEVICE_PARAMETER(spi_get_chipselect(spi, 0))); in img_spfi_config()
|
H A D | spi-dw-mmio.c | 82 u32 cs = spi_get_chipselect(spi, 0); in dw_spi_mscc_set_cs() 155 u8 cs = spi_get_chipselect(spi, 0); in dw_spi_sparx5_set_cs() 285 cs = spi_get_chipselect(spi, 0); in dw_spi_elba_set_cs() 287 dw_spi_elba_override_cs(syscon, spi_get_chipselect(spi, 0), enable); in dw_spi_elba_set_cs()
|
H A D | spi-omap-uwire.c | 182 if (value == BITBANG_CS_INACTIVE || old_cs != spi_get_chipselect(spi, 0)) { in uwire_chipselect() 196 w = spi_get_chipselect(spi, 0) << 10; in uwire_chipselect() 213 w = spi_get_chipselect(spi, 0) << 10; in uwire_txrx() 411 omap_uwire_configure_mode(spi_get_chipselect(spi, 0), flags); in uwire_setup_transfer()
|
H A D | spi-rockchip.c | 249 if (cs_asserted == rs->cs_asserted[spi_get_chipselect(spi, 0)]) in rockchip_spi_set_cs() 260 BIT(spi_get_chipselect(spi, 0))); in rockchip_spi_set_cs() 266 BIT(spi_get_chipselect(spi, 0))); in rockchip_spi_set_cs() 272 rs->cs_asserted[spi_get_chipselect(spi, 0)] = cs_asserted; in rockchip_spi_set_cs() 546 cr0 |= BIT(spi_get_chipselect(spi, 0)) << CR0_SOI_OFFSET; in rockchip_spi_config() 740 if (spi->mode & SPI_CS_HIGH && spi_get_chipselect(spi, 0) <= 1) in rockchip_spi_setup() 741 cr0 |= BIT(spi_get_chipselect(spi, 0)) << CR0_SOI_OFFSET; in rockchip_spi_setup() 742 else if (spi_get_chipselect(spi, 0) <= 1) in rockchip_spi_setup() 743 cr0 &= ~(BIT(spi_get_chipselect(spi, 0)) << CR0_SOI_OFFSET); in rockchip_spi_setup()
|
H A D | spi-ti-qspi.c | 535 MEM_CS_EN(spi_get_chipselect(spi, 0))); in ti_qspi_enable_memory_map() 538 qspi->current_cs = spi_get_chipselect(spi, 0); in ti_qspi_enable_memory_map() 574 QSPI_SPI_SETUP_REG(spi_get_chipselect(spi, 0))); in ti_qspi_setup_mmap_read() 625 if (!qspi->mmap_enabled || qspi->current_cs != spi_get_chipselect(mem->spi, 0)) { in ti_qspi_exec_mem_op() 675 qspi->dc |= QSPI_CKPHA(spi_get_chipselect(spi, 0)); in ti_qspi_start_transfer_one() 677 qspi->dc |= QSPI_CKPOL(spi_get_chipselect(spi, 0)); in ti_qspi_start_transfer_one() 679 qspi->dc |= QSPI_CSPOL(spi_get_chipselect(spi, 0)); in ti_qspi_start_transfer_one() 688 qspi->cmd |= QSPI_EN_CS(spi_get_chipselect(spi, 0)); in ti_qspi_start_transfer_one()
|
H A D | spi-loongson-core.c | 32 unsigned char mask = (BIT(4) | BIT(0)) << spi_get_chipselect(spi, 0); in loongson_spi_set_cs() 33 unsigned char val = en ? mask : (BIT(0) << spi_get_chipselect(spi, 0)); in loongson_spi_set_cs() 97 if (spi_get_chipselect(spi, 0) >= spi->controller->num_chipselect) in loongson_spi_setup()
|
H A D | spi-omap2-mcspi.c | 384 struct omap2_mcspi_dma *mcspi_dma = &mcspi->dma_channels[spi_get_chipselect(spi, 0)]; in omap2_mcspi_rx_callback() 396 struct omap2_mcspi_dma *mcspi_dma = &mcspi->dma_channels[spi_get_chipselect(spi, 0)]; in omap2_mcspi_tx_callback() 413 mcspi_dma = &mcspi->dma_channels[spi_get_chipselect(spi, 0)]; in omap2_mcspi_tx_dma() 451 mcspi_dma = &mcspi->dma_channels[spi_get_chipselect(spi, 0)]; in omap2_mcspi_rx_dma() 596 mcspi_dma = &mcspi->dma_channels[spi_get_chipselect(spi, 0)]; in omap2_mcspi_txrx_dma() 1068 cs->base = mcspi->base + spi_get_chipselect(spi, 0) * 0x14; in omap2_mcspi_setup() 1069 cs->phys = mcspi->phys + spi_get_chipselect(spi, 0) * 0x14; in omap2_mcspi_setup() 1148 mcspi_dma = mcspi->dma_channels + spi_get_chipselect(spi, 0); in omap2_mcspi_transfer_one() 1295 &mcspi->dma_channels[spi_get_chipselect(spi, 0)]; in omap2_mcspi_can_dma() 1313 &mcspi->dma_channels[spi_get_chipselect(spi, 0)]; in omap2_mcspi_max_xfer_size()
|
H A D | spi-coldfire-qspi.c | 293 mcfqspi_cs_select(mcfqspi, spi_get_chipselect(spi, 0), cs_high); in mcfqspi_set_cs() 295 mcfqspi_cs_deselect(mcfqspi, spi_get_chipselect(spi, 0), cs_high); in mcfqspi_set_cs() 327 spi_get_chipselect(spi, 0), spi->mode & SPI_CS_HIGH); in mcfqspi_setup() 331 spi->bits_per_word, spi_get_chipselect(spi, 0), in mcfqspi_setup()
|
H A D | spi-jcore.c | 71 u32 csbit = 1U << (2 * spi_get_chipselect(spi, 0)); in jcore_spi_chipsel() 73 dev_dbg(hw->host->dev.parent, "chipselect %d\n", spi_get_chipselect(spi, 0)); in jcore_spi_chipsel()
|
H A D | spi-sifive.c | 138 spi->cs_inactive &= ~BIT(spi_get_chipselect(device, 0)); in sifive_spi_prepare_message() 140 spi->cs_inactive |= BIT(spi_get_chipselect(device, 0)); in sifive_spi_prepare_message() 144 sifive_spi_write(spi, SIFIVE_SPI_REG_CSID, spi_get_chipselect(device, 0)); in sifive_spi_prepare_message()
|
H A D | spi-xilinx.c | 216 cs ^= BIT(spi_get_chipselect(spi, 0)); in xilinx_spi_chipselect() 231 xspi->cs_inactive &= ~BIT(spi_get_chipselect(spi, 0)); in xilinx_spi_setup_transfer() 233 xspi->cs_inactive |= BIT(spi_get_chipselect(spi, 0)); in xilinx_spi_setup_transfer()
|
H A D | spi-ath79.c | 74 u32 cs_bit = AR71XX_SPI_IOC_CS(spi_get_chipselect(spi, 0)); in ath79_spi_chipselect() 143 if (spi_get_chipselect(mem->spi, 0) || spi_get_csgpiod(mem->spi, 0)) in ath79_exec_mem_op()
|
H A D | spi-davinci.c | 201 u8 chip_sel = spi_get_chipselect(spi, 0); in davinci_spi_chipselect() 295 dspi->bytes_per_word[spi_get_chipselect(spi, 0)] = 1; in davinci_spi_setup_transfer() 299 dspi->bytes_per_word[spi_get_chipselect(spi, 0)] = 2; in davinci_spi_setup_transfer() 421 set_io_bits(dspi->base + SPIPC0, 1 << spi_get_chipselect(spi, 0)); in davinci_spi_setup() 581 data_type = dspi->bytes_per_word[spi_get_chipselect(spi, 0)]; in davinci_spi_bufs()
|
H A D | spi-tegra114.c | 745 spi_get_chipselect(spi, 0), in tegra_spi_set_hw_cs_timing() 758 SPI_SET_CS_ACTIVE_BETWEEN_PACKETS(spi_cs_timing, spi_get_chipselect(spi, 0), in tegra_spi_set_hw_cs_timing() 760 SPI_SET_CYCLES_BETWEEN_PACKETS(spi_cs_timing, spi_get_chipselect(spi, 0), in tegra_spi_set_hw_cs_timing() 844 if (tspi->last_used_cs != spi_get_chipselect(spi, 0)) { in tegra_spi_setup_transfer_one() 853 tspi->last_used_cs = spi_get_chipselect(spi, 0); in tegra_spi_setup_transfer_one() 894 command1 |= SPI_CS_SEL(spi_get_chipselect(spi, 0)); in tegra_spi_start_transfer_one() 983 val &= ~SPI_CS_POL_INACTIVE(spi_get_chipselect(spi, 0)); in tegra_spi_setup() 985 val |= SPI_CS_POL_INACTIVE(spi_get_chipselect(spi, 0)); in tegra_spi_setup()
|
H A D | spi-mxic.c | 309 HC_CFG_TYPE(spi_get_chipselect(spi, 0), HC_CFG_TYPE_SPI_NOR) | in mxic_spi_prep_hc_cfg() 310 HC_CFG_SLV_ACT(spi_get_chipselect(spi, 0)) | HC_CFG_IDLE_SIO_LVL(1); in mxic_spi_prep_hc_cfg() 408 LMODE_SLV_ACT(spi_get_chipselect(desc->mem->spi, 0)) | in mxic_spi_mem_dirmap_read() 452 LMODE_SLV_ACT(spi_get_chipselect(desc->mem->spi, 0)) | in mxic_spi_mem_dirmap_write() 527 mxic->regs + SS_CTRL(spi_get_chipselect(mem->spi, 0))); in mxic_spi_mem_exec_op()
|
H A D | spi-aspeed-smc.c | 301 struct aspeed_spi_chip *chip = &aspi->chips[spi_get_chipselect(mem->spi, 0)]; in do_aspeed_spi_exec_op() 383 spi_get_chipselect(mem->spi, 0)); in aspeed_spi_get_name() 559 struct aspeed_spi_chip *chip = &aspi->chips[spi_get_chipselect(desc->mem->spi, 0)]; in aspeed_spi_dirmap_create() 626 struct aspeed_spi_chip *chip = &aspi->chips[spi_get_chipselect(desc->mem->spi, 0)]; in aspeed_spi_dirmap_read() 676 unsigned int cs = spi_get_chipselect(spi, 0); in aspeed_spi_setup() 703 unsigned int cs = spi_get_chipselect(spi, 0); in aspeed_spi_cleanup()
|
H A D | spi-microchip-core.c | 257 reg &= ~BIT(spi_get_chipselect(spi, 0)); in mchp_corespi_set_cs() 258 reg |= !disable << spi_get_chipselect(spi, 0); in mchp_corespi_set_cs() 285 reg |= BIT(spi_get_chipselect(spi, 0)); in mchp_corespi_setup()
|
/openbmc/linux/include/trace/events/ |
H A D | spi.h | 60 __entry->chip_select = spi_get_chipselect(spi, 0); 91 __entry->chip_select = spi_get_chipselect(spi, 0); 116 __entry->chip_select = spi_get_chipselect(msg->spi, 0); 157 __entry->chip_select = spi_get_chipselect(msg->spi, 0); 200 __entry->chip_select = spi_get_chipselect(msg->spi, 0);
|
/openbmc/linux/sound/pci/hda/ |
H A D | cs35l41_hda_spi.c | 28 return cs35l41_hda_probe(&spi->dev, device_name, spi_get_chipselect(spi, 0), spi->irq, in cs35l41_hda_spi_probe()
|