Home
last modified time | relevance | path

Searched refs:rbuf (Results 1 – 16 of 16) sorted by relevance

/Zephyr-latest/subsys/storage/flash_map/
Dflash_map_integrity.c45 fac->rbuf == NULL || fac->clen == 0 || fac->rblen == 0) { in flash_area_check_int_sha256()
72 fac->rbuf, to_read); in flash_area_check_int_sha256()
78 rc = psa_hash_update(&hash_ctx, fac->rbuf, to_read); in flash_area_check_int_sha256()
80 rc = mbedtls_sha256_update(&hash_ctx, fac->rbuf, to_read); in flash_area_check_int_sha256()
/Zephyr-latest/tests/drivers/disk/disk_access/src/
Dmain.c176 static int write_sector_checked(uint8_t *wbuf, uint8_t *rbuf, in write_sector_checked() argument
191 memset(rbuf, 0, num_sectors * disk_sector_size); in write_sector_checked()
192 rc = read_sector(rbuf, start, num_sectors); in write_sector_checked()
197 zassert_mem_equal(wbuf, rbuf, num_sectors * disk_sector_size, in write_sector_checked()
205 static void test_sector_write(uint8_t *wbuf, uint8_t *rbuf, uint32_t num_sectors) in test_sector_write() argument
211 rc = write_sector_checked(wbuf, rbuf, 0, num_sectors); in test_sector_write()
220 rc = write_sector_checked(wbuf, rbuf, sector, num_sectors); in test_sector_write()
223 rc = write_sector_checked(wbuf, rbuf, disk_sector_count - 1, num_sectors); in test_sector_write()
/Zephyr-latest/tests/lib/ringbuffer/src/
Dmain.c940 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-latest/tests/lib/spsc_pbuf/src/
Dmain.c29 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-latest/include/zephyr/sd/
Dmmc.h54 int mmc_read_blocks(struct sd_card *card, uint8_t *rbuf,
Dsdmmc.h54 int sdmmc_read_blocks(struct sd_card *card, uint8_t *rbuf,
/Zephyr-latest/subsys/sd/
Dsd_ops.h50 int card_read_blocks(struct sd_card *card, uint8_t *rbuf,
Dsd_ops.c491 static int card_read(struct sd_card *card, uint8_t *rbuf, uint32_t start_block, uint32_t num_blocks) in card_read() argument
523 data.data = rbuf; in card_read()
544 int card_read_blocks(struct sd_card *card, uint8_t *rbuf, uint32_t start_block, uint32_t num_blocks) in card_read_blocks() argument
569 if ((((uintptr_t)rbuf) & (CONFIG_SDHC_BUFFER_ALIGNMENT - 1)) != 0) { in card_read_blocks()
580 buf_offset = rbuf; in card_read_blocks()
597 ret = card_read(card, rbuf, start_block, num_blocks); in card_read_blocks()
Dmmc.c61 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()
Dsdmmc.c785 int sdmmc_read_blocks(struct sd_card *card, uint8_t *rbuf, uint32_t start_block, in sdmmc_read_blocks() argument
788 return card_read_blocks(card, rbuf, start_block, num_blocks); in sdmmc_read_blocks()
/Zephyr-latest/drivers/espi/
Dhost_subs_npcx.c508 struct ring_buf *rbuf = &data->port80_ring_buf; in host_port80_work_handler() local
513 while (!ring_buf_is_empty(rbuf)) { in host_port80_work_handler()
517 ring_buf_get(rbuf, &dp80_buf.offset_code[0], sizeof(dp80_buf.offset_code)); in host_port80_work_handler()
520 if (ring_buf_is_empty(rbuf)) { in host_port80_work_handler()
527 ring_buf_peek(rbuf, &dp80_buf.offset_code[0], sizeof(dp80_buf.offset_code)); in host_port80_work_handler()
550 struct ring_buf *rbuf = &host_sub_data.port80_ring_buf; in host_port80_isr() local
556 ring_buf_put(rbuf, &dp80_buf.offset_code[0], sizeof(dp80_buf.offset_code)); in host_port80_isr()
/Zephyr-latest/drivers/input/
Dinput_xpt2046.c33 uint8_t rbuf[9]; member
131 const struct spi_buf rxb = {.buf = data->rbuf, .len = sizeof(data->rbuf)}; in xpt2046_work_handler()
/Zephyr-latest/tests/subsys/storage/flash_map/src/
Dmain_sha.c125 fac.rbuf = buffer; in ZTEST()
/Zephyr-latest/subsys/dfu/img_util/
Dflash_img.c174 fac.rbuf = ctx->buf; in flash_img_check()
/Zephyr-latest/include/zephyr/storage/
Dflash_map.h94 uint8_t *rbuf; /** Temporary read buffer */ member
/Zephyr-latest/drivers/flash/
Dflash_ite_it8xxx2.c169 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()