/device/google/dragon/recovery/updater/ |
D | update_fw.cpp | 31 int check_compatible_keys(struct flash_device *img, struct flash_device *spi) in check_compatible_keys() argument 35 uint8_t *spi_rootkey = gbb_get_rootkey(spi, &spi_size); in check_compatible_keys() 83 static int update_recovery_fw(struct flash_device *spi, struct flash_device *ec, in update_recovery_fw() argument 92 if (!check_compatible_keys(img, spi)) in update_recovery_fw() 95 ra = update_partition(img, spi, "RW_SECTION_A"); in update_recovery_fw() 96 rb = update_partition(img, spi, "RW_SECTION_B"); in update_recovery_fw() 97 rs = update_partition(img, spi, "RW_SHARED"); in update_recovery_fw() 115 static int update_rw_fw(struct flash_device *spi, struct flash_device *img, in update_rw_fw() argument 125 if (!check_compatible_keys(img, spi)) in update_rw_fw() 128 res = update_partition(img, spi, rw_name); in update_rw_fw() [all …]
|
D | recovery_ui.cpp | 51 struct flash_device *spi = flash_open("spi", NULL); in PostWipeData() local 53 if (spi == NULL) in PostWipeData() 57 vbnv_set_flag(spi, "dev_boot_fastboot_full_cap", 0x1); in PostWipeData() 58 vbnv_set_flag(spi, "recovery_reason", 0xC3); in PostWipeData() 60 vbnv_set_flag(spi, "dev_boot_fastboot_full_cap", 0x0); in PostWipeData() 61 vbnv_set_flag(spi, "recovery_reason", 0xC3); in PostWipeData() 64 flash_close(spi); in PostWipeData()
|
D | fwtool.cpp | 34 static void *spi; variable 39 if (!spi) in get_spi() 40 spi = flash_open("spi", NULL); in get_spi() 42 return spi; in get_spi() 92 struct flash_device* dev = reinterpret_cast<struct flash_device*>(spi); in cmd_flash_fmap() 153 if (vbnv_get_flag(reinterpret_cast<struct flash_device*>(spi), argv[1], &val) == 0) in cmd_vbnv_read() 172 vbnv_set_flag(reinterpret_cast<struct flash_device*>(spi), argv[1], val); in cmd_vbnv_write() 208 struct flash_device* dev = reinterpret_cast<struct flash_device*>(spi); in sync_slots() 288 vbnv_set_flag(reinterpret_cast<struct flash_device*>(spi), "boot_result", in cmd_mark_boot() 290 vbnv_set_flag(reinterpret_cast<struct flash_device*>(spi), "try_count", 0); in cmd_mark_boot() [all …]
|
D | vboot_interface.c | 404 int vbnv_readwrite(struct flash_device *spi, const vbnv_param_t *param, in vbnv_readwrite() argument 423 nvram = fmap_read_section(spi, "RW_NVRAM", &size, &offset); in vbnv_readwrite() 464 else if (flash_erase(spi, offset, size)) { in vbnv_readwrite() 479 if (flash_write(spi, offset, dummy, VB_NVDATA_SIZE)) { in vbnv_readwrite() 493 int vbnv_set_flag(struct flash_device *spi, const char *param, uint8_t value) in vbnv_set_flag() argument 499 return vbnv_readwrite(spi, ¶m_table[i], in vbnv_set_flag() 510 int vbnv_get_flag(struct flash_device *spi, const char *param, uint8_t *value) in vbnv_get_flag() argument 515 return vbnv_readwrite(spi, ¶m_table[i], value, 0); in vbnv_get_flag()
|
D | vboot_interface.h | 54 int vbnv_set_flag(struct flash_device *spi, const char *param, uint8_t value); 55 int vbnv_get_flag(struct flash_device *spi, const char *param, uint8_t *value);
|
/device/google/contexthub/firmware/src/platform/stm32f4xx/ |
D | bl.c | 835 static void blSpiLoaderDrainRxFifo(struct StmSpi *spi) in blSpiLoaderDrainRxFifo() argument 837 (void)spi->DR; in blSpiLoaderDrainRxFifo() 838 while (!(spi->SR & 1)); in blSpiLoaderDrainRxFifo() 839 (void)spi->DR; in blSpiLoaderDrainRxFifo() 842 static uint8_t blSpiLoaderTxRxByte(struct StmSpi *spi, uint32_t val) in blSpiLoaderTxRxByte() argument 844 while (!(spi->SR & 2)); in blSpiLoaderTxRxByte() 845 spi->DR = val; in blSpiLoaderTxRxByte() 846 while (!(spi->SR & 1)); in blSpiLoaderTxRxByte() 847 return spi->DR; in blSpiLoaderTxRxByte() 850 static void blSpiLoaderTxBytes(struct StmSpi *spi, const void *data, uint32_t len) in blSpiLoaderTxBytes() argument [all …]
|
/device/google/contexthub/util/stm32_flash/ |
D | Android.mk | 26 spi.c \
|
/device/huawei/angler/sepolicy/ |
D | ueventd.te | 6 #read and write /sys/bus/spi/devices/spi12.0/spi_prepare
|
D | fingerprintd.te | 6 # write /sys/bus/spi/devices/spi12.0/spi_prepare
|
/device/google/contexthub/firmware/misc/platform/linux/ |
D | Makefile | 27 src/platform/$(PLATFORM)/spi.c \
|
/device/google/contexthub/ |
D | CodingStandard.txt | 7 1. File names shall be camel case and descriptive. Keep them short too. Eg: spi.h is better than 48 23. commit messages shall begin with module they touch and a colon, eg "spi: fix spi-dma on stm64"
|
/device/google/contexthub/firmware/misc/variant/nucleo/ |
D | Makefile | 29 SRCS_os += src/variant/$(VARIANT)/spi.c
|
/device/google/contexthub/firmware/misc/variant/lunchbox/ |
D | Makefile | 29 SRCS_os += links/variant/src/spi.c
|
/device/google/contexthub/firmware/misc/platform/stm32f4xx/ |
D | Makefile | 47 src/platform/$(PLATFORM)/spi.c \
|
/device/lge/bullhead/ |
D | init.bullhead.rc | 30 write /sys/bus/spi/drivers/fpc1020/spi1.2/clk_enable 0 116 chown system system /sys/bus/spi/drivers/fpc1020/spi1.2/clk_enable 117 chown system system /sys/bus/spi/drivers/fpc1020/spi1.2/wakeup_enable 118 chown system system /sys/bus/spi/drivers/fpc1020/spi1.2/irq
|
/device/google/contexthub/firmware/ |
D | Makefile | 70 SRCS_os += src/printf.c src/timer.c src/seos.c src/heap.c src/slab.c src/spi.c src/trylock.c
|