/drivers/hdf_core/framework/model/storage/src/mtd/ |
D | mtd_spi_common.c | 15 struct SpiFlash *spi = NULL; in SpiFlashDumpDefualt() local 23 spi = CONTAINER_OF(mtdDevice, struct SpiFlash, mtd); in SpiFlashDumpDefualt() 24 HDF_LOGD("SpiFlashDumpDefualt: cs = %u, addrCycle = %u!", spi->cs, spi->addrCycle); in SpiFlashDumpDefualt() 26 cfg = &spi->readCfg; in SpiFlashDumpDefualt() 29 cfg = &spi->writeCfg; in SpiFlashDumpDefualt() 32 cfg = &spi->eraseCfg; in SpiFlashDumpDefualt() 37 int32_t SpiFlashAdd(struct SpiFlash *spi) in SpiFlashAdd() argument 39 if (spi == NULL || spi->mtd.ops == NULL) { in SpiFlashAdd() 43 if (spi->mtd.ops->dump == NULL) { in SpiFlashAdd() 44 spi->mtd.ops->dump = SpiFlashDumpDefualt; in SpiFlashAdd() [all …]
|
/drivers/hdf_core/framework/model/storage/include/mtd/ |
D | mtd_spi_common.h | 56 int32_t (*waitReady)(struct SpiFlash *spi); 57 int32_t (*writeEnable)(struct SpiFlash *spi); 58 int32_t (*qeEnable)(struct SpiFlash *spi); 59 int32_t (*entry4Addr)(struct SpiFlash *spi, int enable); 100 int32_t SpiFlashWaitReady(struct SpiFlash *spi); 109 int32_t SpiFlashWriteEnable(struct SpiFlash *spi); 118 int32_t SpiFlashQeEnable(struct SpiFlash *spi); 127 int32_t SpiFlashEntry4Addr(struct SpiFlash *spi, int enable); 138 int32_t SpiFlashAdd(struct SpiFlash *spi); 147 void SpiFlashDel(struct SpiFlash *spi);
|
/drivers/peripheral/sensor/chipset/ppg/ |
D | ppg_cs1262_spi.c | 70 __func__, busCfg->spiCfg.spi.maxSpeedHz, busCfg->spiCfg.spi.mode, in Cs1262InitSpi() 71 busCfg->spiCfg.spi.transferMode, busCfg->spiCfg.spi.bitsPerWord); in Cs1262InitSpi() 73 ret = SpiSetCfg(busCfg->spiCfg.handle, &busCfg->spiCfg.spi); in Cs1262InitSpi() 105 .speed = g_busCfg->spiCfg.spi.maxSpeedHz, in Cs1262ReadFifoReg() 113 .speed = g_busCfg->spiCfg.spi.maxSpeedHz in Cs1262ReadFifoReg() 151 .speed = g_busCfg->spiCfg.spi.maxSpeedHz in Cs1262ReadRegs() 159 .speed = g_busCfg->spiCfg.spi.maxSpeedHz in Cs1262ReadRegs() 205 .speed = g_busCfg->spiCfg.spi.maxSpeedHz in Cs1262WriteRegs() 213 .speed = g_busCfg->spiCfg.spi.maxSpeedHz in Cs1262WriteRegs() 240 .speed = g_busCfg->spiCfg.spi.maxSpeedHz in Cs1262WriteData()
|
/drivers/hdf_core/adapter/khdf/linux/platform/spi/ |
D | Makefile | 17 obj-y += $(HDF_PLATFORM_FRAMEWORKS_ROOT)/src/spi/spi_core.o \ 18 $(HDF_PLATFORM_FRAMEWORKS_ROOT)/src/spi/spi_if.o \
|
D | spi_adapter.c | 283 struct SpiDev *spi = NULL; in SpiFindDeviceFromBus() local 304 spi = SpiFindDeviceByCsNum(cntlr, cntlr->curCs); in SpiFindDeviceFromBus() 305 if (spi == NULL) { in SpiFindDeviceFromBus() 306 spi = SpiDevCreat(cntlr); in SpiFindDeviceFromBus() 308 if (spi == NULL) { in SpiFindDeviceFromBus() 312 SpiDevInit(spi, spidev); in SpiFindDeviceFromBus() 376 struct spi_device *spi, struct spi_transfer *xfer) in SpiAdapterTransferOneDummy() argument 379 (void)spi; in SpiAdapterTransferOneDummy()
|
/drivers/hdf_core/adapter/khdf/linux/test/ |
D | Kconfig | 20 bool "Enable imx8mm spi test" 24 Answer Y to enable imx8mm spi test.
|
/drivers/hdf_core/adapter/khdf/linux/ |
D | README_zh.md | 40 │ ├── spi #spi接口
|
D | README.md | 40 │ ├── spi # SPI APIs
|
/drivers/hdf_core/adapter/khdf/linux/platform/ |
D | Makefile | 23 obj-$(CONFIG_DRIVERS_HDF_PLATFORM_SPI) += spi/
|
D | Kconfig | 84 bool "Enable HDF platform spi driver" 88 Answer Y to enable HDF platform spi driver.
|
D | platform.mk | 29 -I$(srctree)/drivers/hdf/framework/support/platform/include/spi \
|
/drivers/hdf_core/adapter/platform/ |
D | BUILD.gn | 16 "spi",
|
/drivers/hdf_core/adapter/uhdf2/platform/ |
D | BUILD.gn | 30 "$hdf_framework_path/support/platform/include/spi", 45 "$HDF_FRAMEWORKS/support/platform/src/spi/spi_if_u.c",
|
/drivers/hdf_core/adapter/khdf/uniproton/platform/ |
D | BUILD.gn | 97 "$HDF_FRAMEWORKS_PATH/support/platform/src/spi/spi_core.c", 98 "$HDF_FRAMEWORKS_PATH/support/platform/src/spi/spi_if.c", 149 include_dirs += [ "$HDF_FRAMEWORKS_PATH/support/platform/include/spi" ]
|
D | Kconfig | 122 bool "Enable HDF platform spi driver" 126 Answer Y to enable HDF platform spi driver.
|
/drivers/hdf_core/framework/model/input/driver/ |
D | input_config_parser.c | 144 ret = parser->GetUint8(busNode, "busNum", &bus->spi.busNum, 0); in ParseBus() 146 ret = parser->GetUint16(busNode, "clkGpio", &bus->spi.clkGpio, 0); in ParseBus() 148 ret = parser->GetUint16(busNode, "csGpio", &bus->spi.csGpio, 0); in ParseBus() 150 ret = parser->GetUint16(busNode, "misoGpio", &bus->spi.misoGpio, 0); in ParseBus() 152 ret = parser->GetUint16(busNode, "mosiGpio", &bus->spi.mosiGpio, 0); in ParseBus()
|
D | input_config.h | 48 BoardSpiCfg spi; member
|
/drivers/hdf_core/framework/model/sensor/driver/include/ |
D | sensor_platform_if.h | 75 struct SpiCfg spi; member
|
/drivers/hdf_core/adapter/uhdf/platform/ |
D | BUILD.gn | 38 "$hdf_framework_path/support/platform/include/spi", 69 "$hdf_framework_path/support/platform/src/spi/spi_if_u.c",
|
/drivers/hdf_core/adapter/khdf/liteos_m/platform/ |
D | BUILD.gn | 99 "$HDF_FRAMEWORKS_PATH/support/platform/src/spi/spi_core.c", 100 "$HDF_FRAMEWORKS_PATH/support/platform/src/spi/spi_if.c", 151 include_dirs += [ "$HDF_FRAMEWORKS_PATH/support/platform/include/spi" ]
|
/drivers/hdf_core/framework/model/sensor/driver/common/src/ |
D | sensor_config_parser.c | 221 ret = SpiSetCfg(busCfg->spiCfg.handle, &busCfg->spiCfg.spi); in GetSensorSpiHandle() 370 ret = parser->GetUint32(spiBusNode, "maxSpeedHz", &busConfig->spiCfg.spi.maxSpeedHz, 0); in ParseSensorSpiBus() 372 ret = parser->GetUint16(spiBusNode, "mode", &busConfig->spiCfg.spi.mode, 0); in ParseSensorSpiBus() 374 ret = parser->GetUint8(spiBusNode, "transferMode", &busConfig->spiCfg.spi.transferMode, 0); in ParseSensorSpiBus() 376 ret = parser->GetUint8(spiBusNode, "bitsPerWord", &busConfig->spiCfg.spi.bitsPerWord, 0); in ParseSensorSpiBus()
|
/drivers/peripheral/input/uinput/include/ |
D | uinput_config_parser.h | 55 BoardSpiCfg spi; member
|
/drivers/hdf_core/adapter/khdf/liteos/platform/ |
D | BUILD.gn | 120 "$HDF_FRAMEWORKS_PATH/support/platform/src/spi/spi_core.c", 121 "$HDF_FRAMEWORKS_PATH/support/platform/src/spi/spi_if.c", 257 "$HDF_FRAMEWORKS_PATH/support/platform/include/spi",
|
D | Makefile | 99 LOCAL_SRCS += $(HDF_FRAMEWORKS)/support/platform/src/spi/spi_if.c \ 100 $(HDF_FRAMEWORKS)/support/platform/src/spi/spi_core.c
|
/drivers/hdf_core/adapter/khdf/liteos_m/ |
D | Kconfig | 140 bool "Enable HDF platform spi driver" 144 Answer Y to enable HDF platform spi driver.
|