| /optee_os/lib/libmbedtls/mbedtls/library/ |
| H A D | net_sockets.c | 56 #define read(fd, buf, len) recv(fd, (char *) (buf), (int) (len), 0) argument 57 #define write(fd, buf, len) send(fd, (char *) (buf), (int) (len), 0) argument 58 #define close(fd) closesocket(fd) argument 125 static int check_fd(int fd, int for_select) in check_fd() argument 127 if (fd < 0) { in check_fd() 139 if (for_select && fd >= FD_SETSIZE) { in check_fd() 152 ctx->fd = -1; in mbedtls_net_init() 181 ctx->fd = (int) socket(cur->ai_family, cur->ai_socktype, in mbedtls_net_connect() 183 if (ctx->fd < 0) { in mbedtls_net_connect() 188 if (connect(ctx->fd, cur->ai_addr, MSVC_INT_CAST cur->ai_addrlen) == 0) { in mbedtls_net_connect() [all …]
|
| H A D | aes.c | 125 V(EC, AD, AD, 41), V(67, D4, D4, B3), V(FD, A2, A2, 5F), V(EA, AF, AF, 45), \ 127 V(C2, B7, B7, 75), V(1C, FD, FD, E1), V(AE, 93, 93, 3D), V(6A, 26, 26, 4C), \ 150 V(30, 10, 10, 20), V(1A, FF, FF, E5), V(0E, F3, F3, FD), V(6D, D2, D2, BF), \ 258 V(58, 68, 48, 70), V(19, FD, 45, 8F), V(87, 6C, DE, 94), V(B7, F8, 7B, 52), \ 272 V(FB, FF, 0E, FD), V(56, 38, 85, 0F), V(1E, D5, AE, 3D), V(27, 39, 2D, 36), \ 278 V(85, 19, F1, 57), V(4C, 07, 75, AF), V(BB, DD, 99, EE), V(FD, 60, 7F, A3), \ 305 V(EA, CD, F7, 53), V(5B, AA, FD, 5F), V(14, 6F, 3D, DF), V(86, DB, 44, 78), \
|
| /optee_os/core/tee/ |
| H A D | tee_fs_rpc.c | 50 int *fd) in operation_open_dfh() argument 76 *fd = op.params[2].u.value.a; in operation_open_dfh() 84 const struct tee_fs_dirfile_fileh *dfh, int *fd) in tee_fs_rpc_open_dfh() argument 86 return operation_open_dfh(id, OPTEE_RPC_FS_OPEN, dfh, fd); in tee_fs_rpc_open_dfh() 91 int *fd) in tee_fs_rpc_create_dfh() argument 93 return operation_open_dfh(id, OPTEE_RPC_FS_CREATE, dfh, fd); in tee_fs_rpc_create_dfh() 96 TEE_Result tee_fs_rpc_close(uint32_t id, int fd) in tee_fs_rpc_close() argument 100 [0] = THREAD_PARAM_VALUE(IN, OPTEE_RPC_FS_CLOSE, fd, 0), in tee_fs_rpc_close() 108 uint32_t id, int fd, tee_fs_off_t offset, in tee_fs_rpc_read_init() argument 125 [0] = THREAD_PARAM_VALUE(IN, OPTEE_RPC_FS_READ, fd, in tee_fs_rpc_read_init() [all …]
|
| H A D | tadb.c | 60 int fd; member 68 int fd; member 97 int *fd) in ta_operation_open() argument 118 *fd = params[2].u.value.a; in ta_operation_open() 424 &ta->fd); in tee_tadb_ta_create() 458 res = tee_fs_rpc_write_init(&op, OPTEE_RPC_CMD_FS, ta->fd, in tee_tadb_ta_write() 484 tee_fs_rpc_close(OPTEE_RPC_CMD_FS, ta->fd); in tee_tadb_ta_close_and_delete() 557 tee_fs_rpc_close(OPTEE_RPC_CMD_FS, ta->fd); in tee_tadb_ta_close_and_commit() 657 &ta->fd); in tee_tadb_ta_open() 711 params[0] = THREAD_PARAM_VALUE(IN, OPTEE_RPC_FS_READ, ta->fd, 0); in ta_load() [all …]
|
| H A D | tee_ree_fs.c | 35 int fd; member 239 return tee_fs_rpc_read_init(op, OPTEE_RPC_CMD_FS, fdp->fd, in ree_fs_rpc_read_init() 257 return tee_fs_rpc_write_init(op, OPTEE_RPC_CMD_FS, fdp->fd, in ree_fs_rpc_write_init() 297 res = tee_fs_rpc_truncate(OPTEE_RPC_CMD_FS, fdp->fd, in ree_fs_ftruncate_internal() 434 fdp->fd = -1; in ree_fs_open_primitive() 439 dfh, &fdp->fd); in ree_fs_open_primitive() 441 res = tee_fs_rpc_open_dfh(OPTEE_RPC_CMD_FS, dfh, &fdp->fd); in ree_fs_open_primitive() 458 if (fdp->fd != -1) in ree_fs_open_primitive() 459 tee_fs_rpc_close(OPTEE_RPC_CMD_FS, fdp->fd); in ree_fs_open_primitive() 480 tee_fs_rpc_close(OPTEE_RPC_CMD_FS, fdp->fd); in ree_fs_close_primitive()
|
| /optee_os/core/include/tee/ |
| H A D | tee_fs_rpc.h | 28 const struct tee_fs_dirfile_fileh *dfh, int *fd); 31 int *fd); 32 TEE_Result tee_fs_rpc_close(uint32_t id, int fd); 35 uint32_t id, int fd, tee_fs_off_t offset, 41 uint32_t id, int fd, tee_fs_off_t offset, 46 TEE_Result tee_fs_rpc_truncate(uint32_t id, int fd, size_t len);
|
| H A D | tadb.h | 32 TEE_Result (*open)(uint32_t file_number, int *fd); 33 TEE_Result (*create)(uint32_t file_number, int *fd); 34 void (*close)(int fd); 37 TEE_Result (*read_init)(struct tee_fs_rpc_operation *op, int fd, 42 TEE_Result (*write_init)(struct tee_fs_rpc_operation *op, int fd,
|
| /optee_os/core/drivers/ |
| H A D | semihosting_console.c | 16 * @fd - Handle of the file at @file_path when semihosting_console_init() is 21 int fd; member 45 if (sh_console_data.fd >= 0) in semihosting_console_fd_putc() 46 semihosting_write(sh_console_data.fd, &ch, 1); in semihosting_console_fd_putc() 59 sh_console_data.fd = in semihosting_console_init() 64 sh_console_data.fd = -1; in semihosting_console_init()
|
| /optee_os/core/kernel/ |
| H A D | semihosting.c | 119 * @param fd: a handle for a file previously opened 126 size_t semihosting_read(int fd, void *ptr, size_t len) in semihosting_read() argument 129 .param0 = fd, in semihosting_read() 139 * @param fd: a handle for a file previously opened 145 size_t semihosting_write(int fd, const void *ptr, size_t len) in semihosting_write() argument 148 .param0 = fd, in semihosting_write() 158 * @param fd: a handle for a file previously opened 162 int semihosting_close(int fd) in semihosting_close() argument 165 .param0 = fd, in semihosting_close()
|
| /optee_os/lib/libutils/isoc/ |
| H A D | fwrite.c | 12 int fd = 0; in fwrite() local 15 fd = 1; in fwrite() 17 fd = 2; in fwrite() 21 return write(fd, ptr, size * nmemb); in fwrite()
|
| H A D | write.c | 10 ssize_t write(int fd, const void *buf, size_t count) in write() argument 12 if (fd != 1 && fd != 2) in write()
|
| /optee_os/core/include/kernel/ |
| H A D | semihosting.h | 19 size_t semihosting_read(int fd, void *ptr, size_t len); 20 size_t semihosting_write(int fd, const void *ptr, size_t len); 21 int semihosting_close(int fd);
|
| /optee_os/lib/libutils/isoc/include/ |
| H A D | unistd.h | 14 /* @fd must be 1 or 2. Writes to the secure console. */ 15 ssize_t write(int fd, const void *buf, size_t count);
|
| /optee_os/core/lib/zlib/ |
| H A D | zutil.h | 148 # define fdopen(fd,mode) NULL /* No fdopen() */ argument 175 # define fdopen(fd,mode) NULL /* No fdopen() */ argument 180 # define fdopen(fd,mode) NULL /* No fdopen() */ argument 182 # define fdopen(fd,type) _fdopen(fd,type) argument
|
| H A D | gzguts.h | 179 int fd; /* file descriptor */ member 180 char *path; /* path or fd for error messages */
|
| H A D | zlib.h | 1343 ZEXTERN gzFile ZEXPORT gzdopen OF((int fd, const char *mode)); 1345 Associate a gzFile with the file descriptor fd. File descriptors are 1350 descriptor fd, just like fclose(fdopen(fd, mode)) closes the file descriptor 1351 fd. If you want to keep fd open, use fd = dup(fd_keep); gz = gzdopen(fd, 1353 gzdopen does not close fd if it fails. If you are using fileno() to get the 1361 provided, or '+' was provided), or if fd is -1. The file descriptor is not 1363 will not detect if fd is invalid (unless fd is -1).
|
| /optee_os/scripts/ |
| H A D | symbolize.py | 552 fd = sys.stdin.fileno() 553 isatty = os.isatty(fd) 555 old = termios.tcgetattr(fd) 556 new = termios.tcgetattr(fd) 560 termios.tcsetattr(fd, termios.TCSADRAIN, new) 566 termios.tcsetattr(fd, termios.TCSADRAIN, old)
|
| H A D | gen_stmm_hex.py | 17 help='The input StMM binary (BL32_AP_MM.fd)')
|
| /optee_os/lib/libmbedtls/mbedtls/include/mbedtls/ |
| H A D | net_sockets.h | 90 int fd; member
|
| /optee_os/core/arch/riscv/ |
| H A D | riscv.mk | 124 ISA_D = fd
|
| /optee_os/.github/workflows/ |
| H A D | ci.yml | 282 …d if=/dev/urandom of=BL32_AP_MM.fd bs=2621440 count=1 && _make PLATFORM=vexpress-qemu_armv8a CFG_S…
|
| /optee_os/lib/libmbedtls/mbedtls/ |
| H A D | ChangeLog | 166 and 'mbedtls_net_connect' to prevent possible double close fd 1673 X.509 parsing, and finally the field fd of mbedtls_net_context on
|