/Zephyr-latest/lib/libc/arcmwdt/ |
D | libc-hooks.c | 42 int z_impl_zephyr_write_stdout(const void *buffer, int nbytes) in z_impl_zephyr_write_stdout() argument 47 for (i = 0; i < nbytes; i++) { in z_impl_zephyr_write_stdout() 53 return nbytes; in z_impl_zephyr_write_stdout() 57 static inline int z_vrfy_zephyr_write_stdout(const void *buf, int nbytes) in z_vrfy_zephyr_write_stdout() argument 59 K_OOPS(K_SYSCALL_MEMORY_READ(buf, nbytes)); in z_vrfy_zephyr_write_stdout() 60 return z_impl_zephyr_write_stdout(buf, nbytes); in z_vrfy_zephyr_write_stdout() 66 int _write(int fd, const char *buf, unsigned int nbytes) in _write() argument 70 return zephyr_write_stdout(buf, nbytes); in _write()
|
/Zephyr-latest/lib/libc/newlib/ |
D | libc-hooks.c | 27 int _read(int fd, void *buf, int nbytes); 28 int _write(int fd, const void *buf, int nbytes); 179 int z_impl_zephyr_read_stdin(char *buf, int nbytes) in z_impl_zephyr_read_stdin() argument 183 for (i = 0; i < nbytes; i++) { in z_impl_zephyr_read_stdin() 194 static inline int z_vrfy_zephyr_read_stdin(char *buf, int nbytes) in z_vrfy_zephyr_read_stdin() argument 196 K_OOPS(K_SYSCALL_MEMORY_WRITE(buf, nbytes)); in z_vrfy_zephyr_read_stdin() 197 return z_impl_zephyr_read_stdin((char *)buf, nbytes); in z_vrfy_zephyr_read_stdin() 202 int z_impl_zephyr_write_stdout(const void *buffer, int nbytes) in z_impl_zephyr_write_stdout() argument 207 for (i = 0; i < nbytes; i++) { in z_impl_zephyr_write_stdout() 213 return nbytes; in z_impl_zephyr_write_stdout() [all …]
|
/Zephyr-latest/include/zephyr/sys/ |
D | libc-hooks.h | 29 __syscall int zephyr_read_stdin(char *buf, int nbytes); 31 __syscall int zephyr_write_stdout(const void *buf, int nbytes);
|
/Zephyr-latest/include/zephyr/fs/ |
D | fs_sys.h | 45 ssize_t (*read)(struct fs_file_t *filp, void *dest, size_t nbytes); 55 const void *src, size_t nbytes);
|
/Zephyr-latest/subsys/fs/ext2/ |
D | ext2_impl.h | 188 size_t nbytes); 202 uint32_t offset, size_t nbytes);
|
D | ext2_ops.c | 135 static ssize_t ext2_read(struct fs_file_t *filp, void *dest, size_t nbytes) in ext2_read() argument 143 ssize_t r = ext2_inode_read(f->f_inode, dest, f->f_off, nbytes); in ext2_read() 152 static ssize_t ext2_write(struct fs_file_t *filp, const void *src, size_t nbytes) in ext2_write() argument 164 ssize_t r = ext2_inode_write(f->f_inode, src, f->f_off, nbytes); in ext2_write()
|
D | ext2_impl.c | 609 ssize_t ext2_inode_read(struct ext2_inode *inode, void *buf, uint32_t offset, size_t nbytes) in ext2_inode_read() argument 614 size_t nbytes_to_read = nbytes; in ext2_inode_read() 616 while (read < nbytes && offset < inode->i_size) { in ext2_inode_read() 643 ssize_t ext2_inode_write(struct ext2_inode *inode, const void *buf, uint32_t offset, size_t nbytes) in ext2_inode_write() argument 649 while (written < nbytes) { in ext2_inode_write() 654 inode->i_id, block, offset, offset + nbytes, inode->i_size); in ext2_inode_write() 661 size_t to_write = MIN(nbytes, block_size - block_off); in ext2_inode_write()
|
/Zephyr-latest/tests/boards/mec172xevb_assy6906/qspi/src/ |
D | main.c | 95 uint32_t nbytes; in spi_clocks_to_bytes() local 98 nbytes = spi_clocks / 2U; in spi_clocks_to_bytes() 100 nbytes = spi_clocks / 4U; in spi_clocks_to_bytes() 102 nbytes = spi_clocks / 8U; in spi_clocks_to_bytes() 105 return nbytes; in spi_clocks_to_bytes()
|
/Zephyr-latest/drivers/can/ |
D | can_shell.c | 88 uint8_t nbytes = can_dlc_to_bytes(frame->dlc); in can_shell_print_frame() local 121 nbytes); in can_shell_print_frame() 127 for (i = 0; i < nbytes; i++) { in can_shell_print_frame() 731 int nbytes; in cmd_can_send() local 792 nbytes = argc - argidx; in cmd_can_send() 793 if (nbytes > ARRAY_SIZE(frame.data)) { in cmd_can_send() 794 shell_error(sh, "excessive amount of data (%d bytes)", nbytes); in cmd_can_send() 798 frame.dlc = can_bytes_to_dlc(nbytes); in cmd_can_send() 801 for (i = 0; i < nbytes; i++) { in cmd_can_send()
|
/Zephyr-latest/drivers/flash/ |
D | flash_stm32h7x.c | 458 const uint8_t nbytes = FLASH_NB_32BITWORD_IN_FLASHWORD * 4; local 459 uint8_t unaligned_datas[nbytes]; 461 for (i = 0; i < len && i + nbytes <= len; i += nbytes, offset += nbytes) {
|
/Zephyr-latest/drivers/modem/ |
D | simcom-sim7080.c | 1610 int nbytes = atoi(argv[0]); in MODEM_CMD_DEFINE() local 1614 if (nbytes == 0) { in MODEM_CMD_DEFINE() 1625 if (net_buf_frags_len(data->rx_buf) <= nbytes + bytes_to_skip) { in MODEM_CMD_DEFINE() 1630 bytes_to_skip, nbytes); in MODEM_CMD_DEFINE() 1631 if (out_len != nbytes) { in MODEM_CMD_DEFINE() 1634 data->rx_buf = net_buf_skip(data->rx_buf, nbytes + bytes_to_skip); in MODEM_CMD_DEFINE() 1636 mdata.ftp.nread = nbytes; in MODEM_CMD_DEFINE()
|
/Zephyr-latest/subsys/net/lib/sockets/ |
D | socketpair.c | 967 int *nbytes; in spair_ioctl() local 969 nbytes = va_arg(args, int *); in spair_ioctl() 970 *nbytes = spair_read_avail(spair); in spair_ioctl()
|
/Zephyr-latest/lib/os/ |
D | fdtable.c | 538 int z_impl_zephyr_write_stdout(const char *buf, int nbytes);
|