/Zephyr-Core-3.5.0/tests/drivers/disk/disk_access/src/ |
D | main.c | 122 static int write_sector_checked(uint8_t *wbuf, uint8_t *rbuf, in write_sector_checked() argument 137 memset(rbuf, 0, num_sectors * disk_sector_size); in write_sector_checked() 138 rc = read_sector(rbuf, start, num_sectors); in write_sector_checked() 143 zassert_mem_equal(wbuf, rbuf, num_sectors * disk_sector_size, in write_sector_checked() 151 static void test_sector_write(uint8_t *wbuf, uint8_t *rbuf, uint32_t num_sectors) in test_sector_write() argument 157 rc = write_sector_checked(wbuf, rbuf, 0, num_sectors); in test_sector_write() 166 rc = write_sector_checked(wbuf, rbuf, sector, num_sectors); in test_sector_write() 169 rc = write_sector_checked(wbuf, rbuf, disk_sector_count - 1, num_sectors); in test_sector_write()
|
/Zephyr-Core-3.5.0/subsys/storage/flash_map/ |
D | flash_map_integrity.c | 47 fac->rbuf == NULL || fac->clen == 0 || fac->rblen == 0) { in flash_area_check_int_sha256() 82 fac->rbuf, to_read); in flash_area_check_int_sha256() 93 fac->rbuf, in flash_area_check_int_sha256() 98 if (mbedtls_md_update(&mbed_hash_ctx, fac->rbuf, to_read) != 0) { in flash_area_check_int_sha256()
|
/Zephyr-Core-3.5.0/tests/lib/ringbuffer/src/ |
D | main.c | 940 static struct ring_buf rbuf; in ZTEST() local 947 ring_buf_init(&rbuf, sizeof(buf), buf); in ZTEST() 952 ring_buf_put(&rbuf, indata, 1); in ZTEST() 953 ring_buf_get(&rbuf, outdata, 1); in ZTEST() 959 ring_buf_reset(&rbuf); in ZTEST() 962 ring_buf_put(&rbuf, indata, 4); in ZTEST() 963 ring_buf_get(&rbuf, outdata, 4); in ZTEST() 969 ring_buf_reset(&rbuf); in ZTEST() 972 ring_buf_put_claim(&rbuf, &ptr, 1); in ZTEST() 973 ring_buf_put_finish(&rbuf, 1); in ZTEST() [all …]
|
/Zephyr-Core-3.5.0/tests/lib/spsc_pbuf/src/ |
D | main.c | 29 static uint8_t rbuf[198]; in test_spsc_pbuf_flags() local 45 rlen = spsc_pbuf_write(ib, rbuf, 0); in test_spsc_pbuf_flags() 47 rlen = spsc_pbuf_write(ib, rbuf, SPSC_PBUF_MAX_LEN); in test_spsc_pbuf_flags() 51 rlen = spsc_pbuf_write(ib, rbuf, sizeof(rbuf)); in test_spsc_pbuf_flags() 55 rlen = spsc_pbuf_read(ib, rbuf, sizeof(rbuf)); in test_spsc_pbuf_flags() 62 rlen = spsc_pbuf_read(ib, rbuf, sizeof(rbuf)); in test_spsc_pbuf_flags() 83 rlen = spsc_pbuf_read(ib, rbuf, 0); in test_spsc_pbuf_flags() 88 wlen = spsc_pbuf_read(ib, rbuf, sizeof(rbuf)); in test_spsc_pbuf_flags() 101 rlen = spsc_pbuf_read(ib, rbuf, sizeof(rbuf)); in test_spsc_pbuf_flags()
|
/Zephyr-Core-3.5.0/include/zephyr/sd/ |
D | sdmmc.h | 54 int sdmmc_read_blocks(struct sd_card *card, uint8_t *rbuf,
|
D | mmc.h | 54 int mmc_read_blocks(struct sd_card *card, uint8_t *rbuf,
|
/Zephyr-Core-3.5.0/subsys/sd/ |
D | sd_ops.h | 50 int card_read_blocks(struct sd_card *card, uint8_t *rbuf,
|
D | sd_ops.c | 475 static int card_read(struct sd_card *card, uint8_t *rbuf, uint32_t start_block, uint32_t num_blocks) in card_read() argument 507 data.data = rbuf; in card_read() 529 int card_read_blocks(struct sd_card *card, uint8_t *rbuf, uint32_t start_block, uint32_t num_blocks) in card_read_blocks() argument 554 if ((((uintptr_t)rbuf) & (CONFIG_SDHC_BUFFER_ALIGNMENT - 1)) != 0) { in card_read_blocks() 565 buf_offset = rbuf; in card_read_blocks() 582 ret = card_read(card, rbuf, start_block, num_blocks); in card_read_blocks()
|
D | mmc.c | 61 inline int mmc_read_blocks(struct sd_card *card, uint8_t *rbuf, uint32_t start_block, in mmc_read_blocks() argument 64 return card_read_blocks(card, rbuf, start_block, num_blocks); in mmc_read_blocks()
|
D | sdmmc.c | 738 int sdmmc_read_blocks(struct sd_card *card, uint8_t *rbuf, in sdmmc_read_blocks() argument 741 return card_read_blocks(card, rbuf, start_block, num_blocks); in sdmmc_read_blocks()
|
/Zephyr-Core-3.5.0/drivers/espi/ |
D | host_subs_npcx.c | 495 struct ring_buf *rbuf = &data->port80_ring_buf; in host_port80_work_handler() local 500 while (!ring_buf_is_empty(rbuf)) { in host_port80_work_handler() 504 ring_buf_get(rbuf, &dp80_buf.offset_code[0], sizeof(dp80_buf.offset_code)); in host_port80_work_handler() 507 if (ring_buf_is_empty(rbuf)) { in host_port80_work_handler() 514 ring_buf_peek(rbuf, &dp80_buf.offset_code[0], sizeof(dp80_buf.offset_code)); in host_port80_work_handler() 537 struct ring_buf *rbuf = &host_sub_data.port80_ring_buf; in host_port80_isr() local 543 ring_buf_put(rbuf, &dp80_buf.offset_code[0], sizeof(dp80_buf.offset_code)); in host_port80_isr()
|
/Zephyr-Core-3.5.0/drivers/input/ |
D | input_xpt2046.c | 33 uint8_t rbuf[9]; member 131 const struct spi_buf rxb = {.buf = data->rbuf, .len = sizeof(data->rbuf)}; in xpt2046_work_handler()
|
/Zephyr-Core-3.5.0/include/zephyr/storage/ |
D | flash_map.h | 97 uint8_t *rbuf; /** Temporary read buffer */ member
|
/Zephyr-Core-3.5.0/subsys/dfu/img_util/ |
D | flash_img.c | 122 fac.rbuf = ctx->buf; in flash_img_check()
|
/Zephyr-Core-3.5.0/drivers/flash/ |
D | flash_ite_it8xxx2.c | 169 void __soc_ram_code ramcode_flash_transaction(int wlen, uint8_t *wbuf, int rlen, uint8_t *rbuf, in ramcode_flash_transaction() argument 183 rbuf[i] = flash_regs->SMFI_ECINDDR; in ramcode_flash_transaction()
|
/Zephyr-Core-3.5.0/tests/subsys/storage/flash_map/src/ |
D | main.c | 159 fac.rbuf = buffer; in ZTEST()
|