Home
last modified time | relevance | path

Searched refs:out_fd (Results 1 – 25 of 32) sorted by relevance

12

/OK3568_Linux_fs/kernel/arch/powerpc/boot/
H A Dmktree.c44 int in_fd, out_fd; in main() local
87 if ((out_fd = open(argv[2], (O_RDWR | O_CREAT | O_TRUNC), 0666)) < 0) { in main()
119 if (write(out_fd, &bt, sizeof(bt)) != sizeof(bt)) { in main()
132 if (write(out_fd, tmpbuf, sizeof(tmpbuf)) != sizeof(tmpbuf)) { in main()
141 if (lseek(out_fd, 0, SEEK_SET) < 0) { in main()
145 if (write(out_fd, &bt, sizeof(bt)) != sizeof(bt)) { in main()
/OK3568_Linux_fs/kernel/tools/virtio/virtio-trace/
H A Dtrace-agent-rw.c32 rw_ti->out_fd = -1; in rw_thread_info_new()
58 rw_ti->out_fd = open(out_path, O_WRONLY); in rw_thread_init()
59 if (rw_ti->out_fd == -1) { in rw_thread_init()
65 rw_ti->out_fd = STDOUT_FILENO; in rw_thread_init()
148 ret = splice(ts->write_pipe, NULL, ts->out_fd, NULL, in rw_thread_main()
H A Dtrace-agent.h38 int out_fd; member
H A Dtrace-agent.c248 close(s->rw_ti[i]->out_fd); in agent_info_free()
/OK3568_Linux_fs/kernel/tools/spi/
H A Dspidev_test.c121 int out_fd; in transfer() local
158 out_fd = open(output_file, O_WRONLY | O_CREAT | O_TRUNC, 0666); in transfer()
159 if (out_fd < 0) in transfer()
162 ret = write(out_fd, rx, len); in transfer()
166 close(out_fd); in transfer()
/OK3568_Linux_fs/kernel/drivers/gpu/arm/midgard/
H A Dmali_kbase_sync_file.c44 int kbase_sync_fence_stream_create(const char *name, int *const out_fd) in kbase_sync_fence_stream_create() argument
46 if (!out_fd) in kbase_sync_fence_stream_create()
49 *out_fd = anon_inode_getfd(name, &stream_fops, NULL, in kbase_sync_fence_stream_create()
51 if (*out_fd < 0) in kbase_sync_fence_stream_create()
H A Dmali_kbase_sync_android.c173 int kbase_sync_fence_stream_create(const char *name, int *const out_fd) in kbase_sync_fence_stream_create() argument
177 if (!out_fd) in kbase_sync_fence_stream_create()
184 *out_fd = anon_inode_getfd(name, &stream_fops, tl, O_RDONLY|O_CLOEXEC); in kbase_sync_fence_stream_create()
186 if (*out_fd < 0) { in kbase_sync_fence_stream_create()
H A Dmali_kbase_sync.h68 int kbase_sync_fence_stream_create(const char *name, int *const out_fd);
/OK3568_Linux_fs/kernel/drivers/gpu/arm/bifrost/
H A Dmali_kbase_sync_file.c45 int kbase_sync_fence_stream_create(const char *name, int *const out_fd) in kbase_sync_fence_stream_create() argument
47 if (!out_fd) in kbase_sync_fence_stream_create()
50 *out_fd = anon_inode_getfd(name, &stream_fops, NULL, in kbase_sync_fence_stream_create()
52 if (*out_fd < 0) in kbase_sync_fence_stream_create()
H A Dmali_kbase_sync.h68 int kbase_sync_fence_stream_create(const char *name, int *const out_fd);
/OK3568_Linux_fs/external/linux-rga/samples/im2d_slt/sources/
H A Ddrm_alloc.cpp251 int out_fd;
262 drm_buf = drm_buf_alloc(drm_fd,width,height,channel*8,&out_fd,&handle,&actual_size);
271 drm_buf_destroy(drm_fd,out_fd,handle,drm_buf,actual_size);
/OK3568_Linux_fs/external/linux-rga/samples/utils/allocator/
H A Ddrm_alloc.cpp250 int out_fd;
261 drm_buf = drm_buf_alloc(drm_fd,width,height,channel*8,&out_fd,&handle,&actual_size);
270 drm_buf_destroy(drm_fd,out_fd,handle,drm_buf,actual_size);
/OK3568_Linux_fs/external/security/librkcrypto/src/
H A Drkcrypto_otp_key.c326 int32_t in_fd, int32_t out_fd, uint32_t len) in rk_oem_otp_key_cipher() argument
338 RK_CRYPTO_CHECK_PARAM(out_fd < 0); in rk_oem_otp_key_cipher()
374 dst_mop.dma_fd = out_fd; in rk_oem_otp_key_cipher()
382 if (out_fd != in_fd) { in rk_oem_otp_key_cipher()
434 if (out_fd != in_fd) in rk_oem_otp_key_cipher()
H A Drkcrypto_core.c482 RK_RES rk_cipher_crypt(rk_handle handle, int in_fd, int out_fd, uint32_t len) in rk_cipher_crypt() argument
504 cryp.dst_fd = out_fd; in rk_cipher_crypt()
641 RK_RES rk_ae_crypt(rk_handle handle, int in_fd, int out_fd, uint32_t len, uint8_t *tag) in rk_ae_crypt() argument
681 op.dst_fd = out_fd; in rk_ae_crypt()
689 V_TRACE("in and out are %s address.", (in_fd == out_fd) ? "the same" : "different"); in rk_ae_crypt()
/OK3568_Linux_fs/kernel/fs/
H A Dread_write.c1186 static ssize_t do_sendfile(int out_fd, int in_fd, loff_t *ppos, in do_sendfile() argument
1223 out = fdget(out_fd); in do_sendfile()
1285 SYSCALL_DEFINE4(sendfile, int, out_fd, int, in_fd, off_t __user *, offset, size_t, count) in SYSCALL_DEFINE4() argument
1295 ret = do_sendfile(out_fd, in_fd, &pos, count, MAX_NON_LFS); in SYSCALL_DEFINE4()
1301 return do_sendfile(out_fd, in_fd, NULL, count, 0); in SYSCALL_DEFINE4()
1304 SYSCALL_DEFINE4(sendfile64, int, out_fd, int, in_fd, loff_t __user *, offset, size_t, count) in SYSCALL_DEFINE4() argument
1312 ret = do_sendfile(out_fd, in_fd, &pos, count, 0); in SYSCALL_DEFINE4()
1318 return do_sendfile(out_fd, in_fd, NULL, count, 0); in SYSCALL_DEFINE4()
1322 COMPAT_SYSCALL_DEFINE4(sendfile, int, out_fd, int, in_fd, in COMPAT_SYSCALL_DEFINE4() argument
1333 ret = do_sendfile(out_fd, in_fd, &pos, count, MAX_NON_LFS); in COMPAT_SYSCALL_DEFINE4()
[all …]
/OK3568_Linux_fs/kernel/arch/um/drivers/
H A Dharddog_user.c106 void stop_watchdog(int in_fd, int out_fd) in stop_watchdog() argument
109 close(out_fd); in stop_watchdog()
H A Dharddog_kern.c95 extern void stop_watchdog(int in_fd, int out_fd);
/OK3568_Linux_fs/external/security/librkcrypto/include/
H A Drkcrypto_core.h14 RK_RES rk_cipher_crypt(rk_handle handle, int in_fd, int out_fd, uint32_t len);
21 RK_RES rk_ae_crypt(rk_handle handle, int in_fd, int out_fd, uint32_t len, uint8_t *tag);
H A Drkcrypto_otp_key.h15 int32_t in_fd, int32_t out_fd, uint32_t len);
/OK3568_Linux_fs/kernel/tools/testing/selftests/exec/
H A Dexecveat.c143 int out_fd = open(dest, O_RDWR|O_CREAT|O_TRUNC, 0755); in exe_cp() local
147 sendfile(out_fd, in_fd, NULL, info.st_size); in exe_cp()
149 close(out_fd); in exe_cp()
/OK3568_Linux_fs/external/security/librkcrypto/test/
H A Dtest_throughput.c645 rk_crypto_mem *in_fd = NULL, *out_fd = NULL, *aad_fd = NULL; in test_ae_tp() local
695 out_fd = rk_crypto_mem_alloc(TEST_BLOCK_SIZE); in test_ae_tp()
696 if (!out_fd) { in test_ae_tp()
740 in_fd, out_fd, len, in test_ae_tp()
779 if (out_fd) in test_ae_tp()
780 rk_crypto_mem_free(out_fd); in test_ae_tp()
/OK3568_Linux_fs/yocto/poky/meta/recipes-devtools/mtd/mtd-utils/
H A Dadd-exclusion-to-mkfs-jffs2-git-2.patch17 static int out_fd = -1;
104 if (out_fd != -1) {
/OK3568_Linux_fs/kernel/include/linux/
H A Dcompat.h562 asmlinkage long compat_sys_sendfile(int out_fd, int in_fd,
564 asmlinkage long compat_sys_sendfile64(int out_fd, int in_fd,
/OK3568_Linux_fs/yocto/meta-openembedded/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-2.0.2/
H A D0002-Instead-of-doing-preprocessor-magic-just-output-off_.patch312 if (lseek(out_fd, pos, SEEK_SET) != pos)
316 if (write(out_fd, buf, c->leb_size) != c->leb_size)
/OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm32/host_include/openssl/
H A Dbio.h453 OPENSSL_EXPORT int BIO_get_fd(BIO *bio, int *out_fd);

12