Home
last modified time | relevance | path

Searched +full:max +full:- +full:read +full:- +full:sz (Results 1 – 8 of 8) sorted by relevance

/Zephyr-latest/dts/bindings/espi/
Dnuvoton,npcx-espi-taf.yaml2 # SPDX-License-Identifier: Apache-2.0
10 compatible = "nuvoton,npcx-espi-taf";
13 mapped-addr = <0x68000000>;
14 max-read-sz = "NPCX_ESPI_TAF_MAX_READ_REQ_64B";
15 erase-sz = "NPCX_ESPI_TAF_ERASE_BLOCK_SIZE_4KB";
17 #address-cells = <1>;
18 #size-cells = <1>;
22 compatible: "nuvoton,npcx-espi-taf"
24 include: [espi-controller.yaml, pinctrl-device.yaml]
27 mapped-addr:
[all …]
/Zephyr-latest/samples/net/sockets/echo_async_select/src/
Dsocket_echo_select.c4 * SPDX-License-Identifier: Apache-2.0
21 /* Generic read()/write() is available in POSIX config, so use it. */
22 #define READ(fd, buf, sz) read(fd, buf, sz) macro
23 #define WRITE(fd, buf, sz) write(fd, buf, sz) argument
32 /* Generic read()/write() are not defined, so use socket-specific recv(). */
33 #define READ(fd, buf, sz) recv(fd, buf, sz, 0) macro
34 #define WRITE(fd, buf, sz) send(fd, buf, sz, 0) argument
38 /* For Zephyr, keep max number of fd's in sync with max poll() capacity */
63 if (fl == -1) { in setblocking()
74 if (fl == -1) { in setblocking()
[all …]
/Zephyr-latest/tests/posix/fs/src/
Dtest_fs_file.c4 * SPDX-License-Identifier: Apache-2.0
13 int file = -1;
40 file = -1; in test_file_write()
48 file = -1; in test_file_write()
56 file = -1; in test_file_write()
68 size_t sz = strlen(test_str); in test_file_read() local
74 file = -1; in test_file_read()
78 brw = read(file, read_buff, sz); in test_file_read()
82 file = -1; in test_file_read()
89 TC_PRINT("Error - Data read does not match data written\n"); in test_file_read()
[all …]
/Zephyr-latest/tests/subsys/fs/fs_api/src/
Dtest_fs_dir_file.c5 * SPDX-License-Identifier: Apache-2.0
166 zassert_equal(ret, -EBUSY, "Re-mount using same data should have failed"); in test_mount()
242 zassert_not_equal(ret, 0, "Get volume info by no-exist path"); in ZTEST()
246 zassert_equal(ret, -ENOTSUP, "fs has no statvfs functionality"); in ZTEST()
330 TC_PRINT("Double-open using occupied fs_dir_t object\n"); in test_opendir()
332 zassert_equal(ret, -EBUSY, "Expected -EBUSY, got %d", ret); in test_opendir()
337 TC_PRINT("Double-open using occupied fs_dir_t object\n"); in test_opendir()
339 zassert_equal(ret, -EBUSY, "Expected -EBUSY, got %d", ret); in test_opendir()
341 mock_opendir_result(-EIO); in test_opendir()
345 zassert_equal(ret, -EIO, "FS error not transferred\n"); in test_opendir()
[all …]
/Zephyr-latest/drivers/wifi/eswifi/
Deswifi_socket.c4 * SPDX-License-Identifier: Apache-2.0
30 return -EPFNOSUPPORT; in eswifi_socket_type_from_zephyr()
42 LOG_DBG("Stopping socket %d", socket->index); in __stop_socket()
43 if (socket->state != ESWIFI_SOCKET_STATE_CONNECTED) { in __stop_socket()
47 socket->state = ESWIFI_SOCKET_STATE_NONE; in __stop_socket()
48 return eswifi_at_cmd(eswifi, socket->is_server ? cmd_srv : cmd_cli); in __stop_socket()
58 /* Set max read size */ in __read_data()
62 LOG_ERR("Unable to set read size"); in __read_data()
63 return -EIO; in __read_data()
71 return -EIO; in __read_data()
[all …]
/Zephyr-latest/subsys/llext/
Dshell.c4 * SPDX-License-Identifier: Apache-2.0
50 return -ENOENT; in cmd_llext_list_symbols()
53 shell_print(sh, "Extension: %s symbols", m->name); in cmd_llext_list_symbols()
55 for (elf_word i = 0; i < m->sym_tab.sym_cnt; i++) { in cmd_llext_list_symbols()
56 shell_print(sh, "| %16s | %p |", m->sym_tab.syms[i].name, in cmd_llext_list_symbols()
57 m->sym_tab.syms[i].addr); in cmd_llext_list_symbols()
73 if (cmd->tgt == cmd->idx) { in llext_shell_name_cb()
74 cmd->ext = ext; in llext_shell_name_cb()
78 cmd->idx++; in llext_shell_name_cb()
89 entry->syntax = cmd.ext ? cmd.ext->name : NULL; in llext_name_get()
[all …]
/Zephyr-latest/kernel/
Dthread.c2 * Copyright (c) 2010-2014 Wind River Systems, Inc.
4 * SPDX-License-Identifier: Apache-2.0
85 arch_current_thread()->custom_data = value; in z_impl_k_thread_custom_data_set()
98 return arch_current_thread()->custom_data; in z_impl_k_thread_custom_data_get()
126 return thread->base.prio; in z_impl_k_thread_priority_get()
145 strncpy(thread->name, str, CONFIG_THREAD_MAX_NAME_LEN - 1); in z_impl_k_thread_name_set()
146 thread->name[CONFIG_THREAD_MAX_NAME_LEN - 1] = '\0'; in z_impl_k_thread_name_set()
159 SYS_PORT_TRACING_OBJ_FUNC(k_thread, name_set, thread, -ENOSYS); in z_impl_k_thread_name_set()
161 return -ENOSYS; in z_impl_k_thread_name_set()
173 return -EINVAL; in z_vrfy_k_thread_name_set()
[all …]
/Zephyr-latest/include/zephyr/arch/
Darch_interface.h4 * SPDX-License-Identifier: Apache-2.0
8 * @defgroup arch-interface Architecture Interface
13 * call architecture-specific API so will have the prototypes for the
14 * architecture-specific APIs here. Architecture APIs that aren't used in this
17 * The set of architecture-specific APIs used internally by public macros and
53 * @defgroup arch-timing Architecture timing APIs
54 * @ingroup arch-interface
82 * through the full 64 bit space, wrapping at 2^64-1. Hardware with
92 * @addtogroup arch-threads
126 * buffer, defined as the area usable for thread stack context and thread-
[all …]