/Zephyr-latest/tests/subsys/fs/ext2/src/ |
D | testfs_dirops.c | 19 struct fs_dirent stat; in ZTEST() local 40 zassert_equal(fs_stat("/sml/dir1", &stat), 0, "Stat dir1 failed"); in ZTEST() 41 zassert_equal(stat.type, FS_DIR_ENTRY_DIR, "Wrong type"); in ZTEST() 42 zassert_equal(stat.size, 0, "Wrong directory size"); in ZTEST() 43 zassert_mem_equal(stat.name, "dir1", 5, "Wrong directory name"); in ZTEST() 45 zassert_equal(fs_stat("/sml/dir2", &stat), 0, "Stat dir2 failed"); in ZTEST() 46 zassert_equal(stat.type, FS_DIR_ENTRY_DIR, "Wrong type"); in ZTEST() 47 zassert_equal(stat.size, 0, "Wrong directory size"); in ZTEST() 48 zassert_mem_equal(stat.name, "dir2", 5, "Wrong directory name"); in ZTEST() 59 zassert_equal(fs_stat("/sml/file1", &stat), 0, "Stat file1 failed"); in ZTEST() [all …]
|
/Zephyr-latest/subsys/bluetooth/mesh/ |
D | statistic.c | 12 static struct bt_mesh_statistic stat; variable 16 memcpy(st, &stat, sizeof(struct bt_mesh_statistic)); in bt_mesh_stat_get() 21 memset(&stat, 0, sizeof(struct bt_mesh_statistic)); in bt_mesh_stat_reset() 27 stat.tx_local_planned++; in bt_mesh_stat_planned_count() 29 stat.tx_adv_relay_planned++; in bt_mesh_stat_planned_count() 31 stat.tx_friend_planned++; in bt_mesh_stat_planned_count() 38 stat.tx_local_succeeded++; in bt_mesh_stat_succeeded_count() 40 stat.tx_adv_relay_succeeded++; in bt_mesh_stat_succeeded_count() 42 stat.tx_friend_succeeded++; in bt_mesh_stat_succeeded_count() 50 stat.rx_adv++; in bt_mesh_stat_rx() [all …]
|
/Zephyr-latest/subsys/fs/ |
D | fuse_fs_access.c | 84 static int fuse_fs_access_getattr(const char *path, struct stat *stat) in fuse_fs_access_getattr() argument 89 stat->st_dev = 0; in fuse_fs_access_getattr() 90 stat->st_ino = 0; in fuse_fs_access_getattr() 91 stat->st_nlink = 0; in fuse_fs_access_getattr() 92 stat->st_uid = getuid(); in fuse_fs_access_getattr() 93 stat->st_gid = getgid(); in fuse_fs_access_getattr() 94 stat->st_rdev = 0; in fuse_fs_access_getattr() 95 stat->st_blksize = 0; in fuse_fs_access_getattr() 96 stat->st_blocks = 0; in fuse_fs_access_getattr() 97 stat->st_atime = 0; in fuse_fs_access_getattr() [all …]
|
/Zephyr-latest/tests/subsys/fs/littlefs/src/ |
D | test_lfs_basic.c | 50 struct fs_statvfs stat; in clean_statvfs() local 54 zassert_equal(fs_statvfs(mp->mnt_point, &stat), 0, in clean_statvfs() 59 stat.f_bsize, stat.f_frsize, stat.f_blocks, stat.f_bfree); in clean_statvfs() 60 zassert_equal(stat.f_bsize, 16, in clean_statvfs() 62 zassert_equal(stat.f_frsize, 4096, in clean_statvfs() 64 zassert_equal(stat.f_blocks, 16, in clean_statvfs() 66 zassert_equal(stat.f_bfree, stat.f_blocks - 2U, in clean_statvfs() 75 struct fs_statvfs stat; in check_medium() local 83 zassert_equal(fs_statvfs(mp->mnt_point, &stat), 0, in check_medium() 88 stat.f_bsize, stat.f_frsize, stat.f_blocks, stat.f_bfree); in check_medium() [all …]
|
/Zephyr-latest/tests/subsys/fs/common/ |
D | test_fs_basic.c | 38 struct fs_dirent stat; in create_write_hello() local 40 zassert_equal(fs_stat(path.path, &stat), in create_write_hello() 44 zassert_equal(stat.type, FS_DIR_ENTRY_FILE, in create_write_hello() 46 zassert_str_equal(stat.name, HELLO, "stat new hello not hello"); in create_write_hello() 47 zassert_equal(stat.size, 0, in create_write_hello() 54 zassert_equal(fs_stat(path.path, &stat), in create_write_hello() 58 zassert_equal(stat.type, FS_DIR_ENTRY_FILE, in create_write_hello() 60 zassert_str_equal(stat.name, HELLO, "stat written hello not hello"); in create_write_hello() 67 zassert_equal(stat.size, 0, in create_write_hello() 74 zassert_equal(fs_stat(path.path, &stat), in create_write_hello() [all …]
|
D | test_fs_dirops.c | 59 struct fs_dirent stat; in check_mkdir() local 61 zassert_equal(fs_stat(fpath.path, &stat), 0, in check_mkdir() 83 struct fs_statvfs stat; in build_layout() local 87 zassert_equal(fs_statvfs(mp->mnt_point, &stat), 0, in build_layout() 91 stat.f_bsize, stat.f_frsize, stat.f_blocks, stat.f_bfree); in build_layout() 101 zassert_equal(fs_statvfs(mp->mnt_point, &stat), 0, in build_layout() 105 stat.f_bsize, stat.f_frsize, stat.f_blocks, stat.f_bfree); in build_layout() 153 struct fs_dirent stat; in check_rename() local 232 zassert_equal(fs_stat(from, &stat), in check_rename() 247 zassert_equal(fs_stat(from, &stat), in check_rename() [all …]
|
D | test_fs_util.c | 371 struct fs_dirent stat; in testfs_bcmd_verify_layout() local 373 rc = fs_readdir(&dir, &stat); in testfs_bcmd_verify_layout() 380 if (stat.name[0] == '\0') { in testfs_bcmd_verify_layout() 386 cp = testfs_bcmd_find(&stat, scp, ecp); in testfs_bcmd_verify_layout() 388 bool dotdir = ((stat.type == FS_DIR_ENTRY_DIR) in testfs_bcmd_verify_layout() 389 && ((strcmp(stat.name, ".") == 0) in testfs_bcmd_verify_layout() 390 || (strcmp(stat.name, "..") == 0))); in testfs_bcmd_verify_layout() 393 stat.name, in testfs_bcmd_verify_layout() 394 (stat.type == FS_DIR_ENTRY_FILE) ? "" : "/", in testfs_bcmd_verify_layout() 398 stat.size); in testfs_bcmd_verify_layout() [all …]
|
/Zephyr-latest/tests/subsys/fs/fat_fs_api/src/ |
D | test_fat_fs.c | 11 struct fs_statvfs stat; in test_statvfs() local 15 res = fs_statvfs(FATFS_MNTP, &stat); in test_statvfs() 22 TC_PRINT("Optimal transfer block size = %lu\n", stat.f_bsize); in test_statvfs() 23 TC_PRINT("Allocation unit size = %lu\n", stat.f_frsize); in test_statvfs() 24 TC_PRINT("Volume size in f_frsize units = %lu\n", stat.f_blocks); in test_statvfs() 25 TC_PRINT("Free space in f_frsize units = %lu\n", stat.f_bfree); in test_statvfs()
|
/Zephyr-latest/drivers/dma/ |
D | dma_nxp_edma.h | 212 struct dma_status stat; member 364 if (bytes > chan->stat.pending_length) { in edma_chan_cyclic_consume() 368 chan->stat.read_position = in edma_chan_cyclic_consume() 369 (chan->stat.read_position + bytes) % chan->bsize; in edma_chan_cyclic_consume() 371 if (chan->stat.read_position > chan->stat.write_position) { in edma_chan_cyclic_consume() 372 chan->stat.free = chan->stat.read_position - in edma_chan_cyclic_consume() 373 chan->stat.write_position; in edma_chan_cyclic_consume() 374 } else if (chan->stat.read_position == chan->stat.write_position) { in edma_chan_cyclic_consume() 375 chan->stat.free = chan->bsize; in edma_chan_cyclic_consume() 377 chan->stat.free = chan->bsize - in edma_chan_cyclic_consume() [all …]
|
D | dma_nxp_sdma.c | 40 struct dma_status stat; member 56 chan_data->stat.read_position = 0; in dma_nxp_sdma_init_stat() 57 chan_data->stat.write_position = 0; in dma_nxp_sdma_init_stat() 62 chan_data->stat.pending_length = chan_data->capacity; in dma_nxp_sdma_init_stat() 63 chan_data->stat.free = 0; in dma_nxp_sdma_init_stat() 67 chan_data->stat.pending_length = 0; in dma_nxp_sdma_init_stat() 68 chan_data->stat.free = chan_data->capacity; in dma_nxp_sdma_init_stat() 79 if (bytes > chan_data->stat.pending_length) in dma_nxp_sdma_consume() 82 chan_data->stat.read_position += bytes; in dma_nxp_sdma_consume() 83 chan_data->stat.read_position %= chan_data->capacity; in dma_nxp_sdma_consume() [all …]
|
D | dma_intel_lpss.c | 89 struct dma_status *stat) in dma_intel_lpss_get_status() argument 109 stat->busy = false; in dma_intel_lpss_get_status() 110 stat->pending_length = chan_data->ptr_data.buffer_bytes; in dma_intel_lpss_get_status() 113 stat->busy = true; in dma_intel_lpss_get_status() 116 stat->pending_length = 0; in dma_intel_lpss_get_status() 118 stat->pending_length = chan_data->ptr_data.buffer_bytes; in dma_intel_lpss_get_status() 120 stat->pending_length = in dma_intel_lpss_get_status()
|
D | dma_nxp_edma.c | 253 chan->stat.read_position = 0; in edma_config() 254 chan->stat.write_position = 0; in edma_config() 263 chan->stat.free = 0; in edma_config() 264 chan->stat.pending_length = chan->bsize; in edma_config() 268 chan->stat.pending_length = 0; in edma_config() 269 chan->stat.free = chan->bsize; in edma_config() 351 struct dma_status *stat) in edma_get_status() argument 370 stat->free = chan->stat.free; in edma_get_status() 371 stat->pending_length = chan->stat.pending_length; in edma_get_status() 383 stat->free = chan->bsize; in edma_get_status() [all …]
|
D | dma_sam0.c | 360 struct dma_status *stat) in dma_sam0_get_status() argument 365 if (channel >= DMAC_CH_NUM || stat == NULL) { in dma_sam0_get_status() 372 stat->busy = true; in dma_sam0_get_status() 373 stat->pending_length = (act & DMAC_ACTIVE_BTCNT_Msk) >> in dma_sam0_get_status() 376 stat->busy = false; in dma_sam0_get_status() 377 stat->pending_length = data->descriptors_wb[channel].BTCNT.reg; in dma_sam0_get_status() 384 stat->pending_length *= 2U; in dma_sam0_get_status() 387 stat->pending_length *= 4U; in dma_sam0_get_status()
|
/Zephyr-latest/tests/subsys/fs/fat_fs_dual_drive/src/ |
D | test_fat_fs.c | 17 struct fs_statvfs stat; in test_statvfs() local 21 res = fs_statvfs(path, &stat); in test_statvfs() 27 TC_PRINT("Optimal transfer block size = %lu\n", stat.f_bsize); in test_statvfs() 28 TC_PRINT("Allocation unit size = %lu\n", stat.f_frsize); in test_statvfs() 29 TC_PRINT("Volume size in f_frsize units = %lu\n", stat.f_blocks); in test_statvfs() 30 TC_PRINT("Free space in f_frsize units = %lu\n", stat.f_bfree); in test_statvfs()
|
/Zephyr-latest/samples/boards/phytec/reel_board/mesh_badge/src/ |
D | reel_board.c | 166 static struct stat { struct 189 struct stat *stat = &stats[i]; in add_hello() argument 191 if (!stat->addr) { in add_hello() 192 stat->addr = addr; in add_hello() 193 strncpy(stat->name, name, sizeof(stat->name) - 1); in add_hello() 194 stat->hello_count = 1U; in add_hello() 199 if (stat->addr == addr) { in add_hello() 201 strncpy(stat->name, name, sizeof(stat->name) - 1); in add_hello() 203 if (stat->hello_count < 0xffff) { in add_hello() 204 stat->hello_count++; in add_hello() [all …]
|
/Zephyr-latest/tests/posix/fs/src/ |
D | test_fs_stat.c | 71 struct stat buf; in ZTEST() 73 zassert_equal(0, stat(TEST_FILE, &buf)); in ZTEST() 77 zassert_equal(0, stat(TEST_DIR_FILE, &buf)); in ZTEST() 81 zassert_not_equal(0, stat(TEST_ROOT "foo.txt", &buf)); in ZTEST() 82 zassert_not_equal(0, stat("", &buf)); in ZTEST() 84 zassert_equal(0, stat(TEST_EMPTY_FILE, &buf)); in ZTEST() 98 struct stat buf; in ZTEST() 100 zassert_equal(0, stat(TEST_DIR, &buf)); in ZTEST() 106 zassert_not_equal(0, stat(TEST_ROOT, &buf)); in ZTEST()
|
/Zephyr-latest/subsys/net/lib/zperf/ |
D | zperf_udp_receiver.c | 56 struct zperf_server_hdr *stat, in build_reply() argument 67 stat_hdr->flags = htonl(stat->flags); in build_reply() 68 stat_hdr->total_len1 = htonl(stat->total_len1); in build_reply() 69 stat_hdr->total_len2 = htonl(stat->total_len2); in build_reply() 70 stat_hdr->stop_sec = htonl(stat->stop_sec); in build_reply() 71 stat_hdr->stop_usec = htonl(stat->stop_usec); in build_reply() 72 stat_hdr->error_cnt = htonl(stat->error_cnt); in build_reply() 73 stat_hdr->outorder_cnt = htonl(stat->outorder_cnt); in build_reply() 74 stat_hdr->datagrams = htonl(stat->datagrams); in build_reply() 75 stat_hdr->jitter1 = htonl(stat->jitter1); in build_reply() [all …]
|
D | zperf_udp_uploader.c | 27 struct zperf_server_hdr *stat; in zperf_upload_decode_stat() local 34 stat = (struct zperf_server_hdr *) in zperf_upload_decode_stat() 37 results->nb_packets_rcvd = ntohl(UNALIGNED_GET(&stat->datagrams)); in zperf_upload_decode_stat() 38 results->nb_packets_lost = ntohl(UNALIGNED_GET(&stat->error_cnt)); in zperf_upload_decode_stat() 40 ntohl(UNALIGNED_GET(&stat->outorder_cnt)); in zperf_upload_decode_stat() 41 results->total_len = (((uint64_t)ntohl(UNALIGNED_GET(&stat->total_len1))) << 32) + in zperf_upload_decode_stat() 42 ntohl(UNALIGNED_GET(&stat->total_len2)); in zperf_upload_decode_stat() 43 results->time_in_us = ntohl(UNALIGNED_GET(&stat->stop_usec)) + in zperf_upload_decode_stat() 44 ntohl(UNALIGNED_GET(&stat->stop_sec)) * USEC_PER_SEC; in zperf_upload_decode_stat() 45 results->jitter_in_us = ntohl(UNALIGNED_GET(&stat->jitter2)) + in zperf_upload_decode_stat() [all …]
|
/Zephyr-latest/subsys/mgmt/mcumgr/grp/stat_mgmt/ |
D | Kconfig | 26 int "Maximum stat group name length" 30 Limits the maximum stat group name length in MCUmgr requests, in bytes. 31 For stat group names. a buffer of this size gets allocated on the stack 32 during handling of all stat read commands. If a stat group's name 34 a stat show command. 35 For stat names s_name and snm_name, this is the maximum length when
|
/Zephyr-latest/include/zephyr/posix/sys/ |
D | stat.h | 54 #define stat64 stat 57 struct stat { 199 int fstat(int __fd, struct stat *__sbuf); 202 int stat(const char *__restrict __path, struct stat *__restrict __sbuf); 206 int lstat(const char *__restrict __path, struct stat *__restrict __buf); 212 int fstatat(int __fd, const char *__restrict __path, struct stat *__restrict __buf, int __flag); 227 int _fstat(int __fd, struct stat *__sbuf); 228 int _stat(const char *__restrict __path, struct stat *__restrict __sbuf);
|
/Zephyr-latest/drivers/usb/udc/ |
D | udc_kinetis.c | 140 bd_idx = USB_EP_GET_IDX(cfg->addr) * 4U + (cfg->stat.odd ^ opposite); in usbfsotg_get_ebd() 205 usbfsotg_bd_set_ctrl(bd, len, data_ptr, cfg->stat.data1); in usbfsotg_xfer_continue() 241 if (priv->busy[cfg->stat.odd]) { in usbfsotg_ctrl_feed_start() 248 priv->out_buf[cfg->stat.odd] = buf; in usbfsotg_ctrl_feed_start() 249 priv->busy[cfg->stat.odd] = true; in usbfsotg_ctrl_feed_start() 250 usbfsotg_bd_set_ctrl(bd, length, net_buf_tail(buf), cfg->stat.data1); in usbfsotg_ctrl_feed_start() 251 LOG_DBG("ep0 %p|odd: %u|d: %u", buf, cfg->stat.odd, cfg->stat.data1); in usbfsotg_ctrl_feed_start() 265 if (priv->busy[!cfg->stat.odd]) { in usbfsotg_ctrl_feed_start_next() 272 priv->out_buf[!cfg->stat.odd] = buf; in usbfsotg_ctrl_feed_start_next() 273 priv->busy[!cfg->stat.odd] = true; in usbfsotg_ctrl_feed_start_next() [all …]
|
/Zephyr-latest/scripts/tests/build/ |
D | test_subfolder_list.py | 86 st_info = os.stat(OUT_FILE) 90 st_info2 = os.stat(OUT_FILE) 96 st_info = os.stat(OUT_FILE) 98 st_info2 = os.stat(OUT_FILE) 119 st_info = os.stat(trigger_file)
|
/Zephyr-latest/drivers/spi/ |
D | spi_grlib_spimctrl.c | 20 uint32_t stat; member 166 if ((regs->stat & STAT_DONE) == 0) { in spim_isr() 170 regs->stat = STAT_DONE; in spim_isr() 199 while (regs->stat & STAT_BUSY) { in init() 202 regs->stat = STAT_DONE; in init()
|
/Zephyr-latest/drivers/i2c/ |
D | i2c_gd32.c | 233 uint32_t stat; in i2c_gd32_event_isr() local 235 stat = I2C_STAT0(cfg->reg); in i2c_gd32_event_isr() 237 if (stat & I2C_STAT0_SBSEND) { in i2c_gd32_event_isr() 243 } else if (stat & I2C_STAT0_ADD10SEND) { in i2c_gd32_event_isr() 245 } else if (stat & I2C_STAT0_ADDSEND) { in i2c_gd32_event_isr() 251 } else if (stat & I2C_STAT0_BTC) { in i2c_gd32_event_isr() 253 } else if (stat & I2C_STAT0_RBNE) { in i2c_gd32_event_isr() 255 } else if (stat & I2C_STAT0_TBE) { in i2c_gd32_event_isr() 264 uint32_t stat; in i2c_gd32_error_isr() local 266 stat = I2C_STAT0(cfg->reg); in i2c_gd32_error_isr() [all …]
|
/Zephyr-latest/include/zephyr/posix/ |
D | unistd.h | 45 int stat(const char *path, struct stat *buf);
|