Home
last modified time | relevance | path

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

/Zephyr-Core-3.5.0/tests/drivers/disk/disk_access/src/
Dmain.c122 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/
Dflash_map_integrity.c47 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/
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-Core-3.5.0/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-Core-3.5.0/include/zephyr/sd/
Dsdmmc.h54 int sdmmc_read_blocks(struct sd_card *card, uint8_t *rbuf,
Dmmc.h54 int mmc_read_blocks(struct sd_card *card, uint8_t *rbuf,
/Zephyr-Core-3.5.0/subsys/sd/
Dsd_ops.h50 int card_read_blocks(struct sd_card *card, uint8_t *rbuf,
Dsd_ops.c475 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()
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.c738 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/
Dhost_subs_npcx.c495 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/
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-Core-3.5.0/include/zephyr/storage/
Dflash_map.h97 uint8_t *rbuf; /** Temporary read buffer */ member
/Zephyr-Core-3.5.0/subsys/dfu/img_util/
Dflash_img.c122 fac.rbuf = ctx->buf; in flash_img_check()
/Zephyr-Core-3.5.0/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()
/Zephyr-Core-3.5.0/tests/subsys/storage/flash_map/src/
Dmain.c159 fac.rbuf = buffer; in ZTEST()