Home
last modified time | relevance | path

Searched refs:spi_addr (Results 1 – 3 of 3) sorted by relevance

/Zephyr-Core-3.7.0/samples/boards/mec172xevb_assy6906/qmspi_ldma/src/
Dmain.c119 static int spi_flash_format_addr(uint32_t spi_addr, size_t addrsz, uint8_t *buf, size_t bufsz) in spi_flash_format_addr() argument
126 buf[i] = spi_addr >> ((addrsz - i - 1u) * 8); in spi_flash_format_addr()
231 struct spi_address *spi_addr, uint8_t *data, size_t datasz, in spi_flash_read_fd_sync() argument
244 if (spi_addr) { in spi_flash_read_fd_sync()
245 if (spi_addr->byte_len > 4) { in spi_flash_read_fd_sync()
248 err = spi_flash_format_addr(spi_addr->addr, spi_addr->byte_len, in spi_flash_read_fd_sync()
253 param_len += spi_addr->byte_len; in spi_flash_read_fd_sync()
286 struct spi_config *spi_cfg_data, struct spi_address *spi_addr, in spi_flash_read_hd_sync() argument
294 || !spi_addr || (spi_addr->byte_len > 4)) { in spi_flash_read_hd_sync()
299 err = spi_flash_format_addr(spi_addr->addr, spi_addr->byte_len, in spi_flash_read_hd_sync()
[all …]
/Zephyr-Core-3.7.0/samples/drivers/espi/src/
Dmain.c536 static int saf_read(uint32_t spi_addr, uint8_t *dest, int len) in saf_read() argument
545 saf_pkt.flash_addr = spi_addr; in saf_read()
561 __func__, rc, chunk_len, spi_addr); in saf_read()
578 static int saf_erase_block(uint32_t spi_addr, enum saf_erase_size ersz) in saf_erase_block() argument
586 spi_addr &= ~(4096U - 1U); in saf_erase_block()
590 spi_addr &= ~((32U * 1024U) - 1U); in saf_erase_block()
594 spi_addr &= ~((64U * 1024U) - 1U); in saf_erase_block()
600 saf_pkt.flash_addr = spi_addr; in saf_erase_block()
614 static int saf_page_prog(uint32_t spi_addr, const uint8_t *src, int progsz) in saf_page_prog() argument
627 saf_pkt.flash_addr = spi_addr; in saf_page_prog()
[all …]
/Zephyr-Core-3.7.0/tests/boards/mec172xevb_assy6906/qspi/src/
Dmain.c110 uint32_t spi_addr, size_t addrsz) in spi_flash_address_format() argument
117 dest[i] = (uint8_t)((spi_addr >> ((addrsz - (i + 1U)) * 8U)) & 0xffU); in spi_flash_address_format()