Home
last modified time | relevance | path

Searched refs:tfd (Results 1 – 25 of 105) sorted by relevance

12345

/external/ltp/testcases/kernel/syscalls/timerfd/
Dtimerfd01.c55 static void settime(int tfd, struct tst_its *tmr, int tflags, in settime() argument
63 if (tv->tfd_settime(tfd, tflags, tst_its_get(tmr), NULL)) in settime()
67 static void waittmr(int tfd, unsigned int exp_ticks) in waittmr() argument
72 pfd.fd = tfd; in waittmr()
83 SAFE_READ(0, tfd, &ticks, sizeof(ticks)); in waittmr()
96 int tfd; in run() local
104 tfd = SAFE_TIMERFD_CREATE(clks->id, 0); in run()
107 settime(tfd, &tmr, 0, 100 * 1000, 0); in run()
108 waittmr(tfd, 1); in run()
112 settime(tfd, &tmr, TFD_TIMER_ABSTIME, tnow + 100 * 1000, 0); in run()
[all …]
/external/crosvm/base/src/windows/
Dtimer.rs201 let mut tfd = Timer::new().expect("failed to create Timer"); in one_shot() localVariable
207 tfd.reset(dur, None).expect("failed to arm timer"); in one_shot()
209 tfd.wait(None).expect("unable to wait for timer"); in one_shot()
220 let mut tfd = Timer::new().expect("failed to create Timer"); in one_shot_cloned() localVariable
222 let mut cloned_tfd = tfd.try_clone().expect("failed to clone timer"); in one_shot_cloned()
229 tfd.reset(dur, None).expect("failed to arm timer"); in one_shot_cloned()
245 let mut tfd = Timer::new().expect("failed to create Timer"); in repeating() localVariable
258 tfd.reset(dur, Some(interval)).expect("failed to arm timer"); in repeating()
260 tfd.wait(None).expect("unable to wait for timer"); in repeating()
263 tfd.wait(None).expect("unable to wait for timer"); in repeating()
[all …]
/external/tensorflow/tensorflow/compiler/mlir/tfrt/runtime_fallback/
Druntime_fallback_combine.cc38 : public mlir::OpRewritePattern<mlir::tfd::ConvertTftToDhtOp> {
43 : mlir::OpRewritePattern<mlir::tfd::ConvertTftToDhtOp>(context, in SimplifyDoubleConversion()
50 mlir::tfd::ConvertTftToDhtOp op, in matchAndRewrite()
55 mlir::tfd::MoveDhtToTftOp move_input_op_0 = in matchAndRewrite()
56 llvm::dyn_cast_or_null<mlir::tfd::MoveDhtToTftOp>( in matchAndRewrite()
58 mlir::tfd::MoveDhtToTftOp move_input_op_1 = in matchAndRewrite()
59 llvm::dyn_cast_or_null<mlir::tfd::MoveDhtToTftOp>( in matchAndRewrite()
77 void mlir::tfd::ConvertTftToDhtOp::getCanonicalizationPatterns( in getCanonicalizationPatterns()
Druntime_fallback_ops.td28 def TfTensorType : OpaqueType<"tfd", "tf_tensor", "!tfd.tf_tensor type">;
35 let name = "tfd";
44 let cppNamespace = "::mlir::tfd";
58 The "tfd.init_eager_context" operation takes an input chain, creates and
62 %c1 = "tfd.init_eager_context"(%c0): (!tfrt.chain) -> !tfrt.chain
72 The "tfd.delegate_kernel" operation takes an input chain, and arbitrary
93 %out_c, %out_tensor = "tfd.delegate_kernel"(
98 } : (!tfrt.chain, !tfd.tf_tensor, !tfd.tf_tensor) -> (
99 !tfrt.chain, !tfd.tf_tensor)
109 The "tfd.print_tft" operation prints the input TF tensor. It takes an input
[all …]
/external/crosvm/base/src/unix/
Dtimerfd.rs236 let tfd = TimerFd::new().expect("failed to create timerfd"); in one_shot() localVariable
240 tfd.reset(dur, None).expect("failed to arm timer"); in one_shot()
242 let count = tfd.wait().expect("unable to wait for timer"); in one_shot()
250 let tfd = TimerFd::new().expect("failed to create timerfd"); in repeating() localVariable
254 tfd.reset(dur, Some(interval)).expect("failed to arm timer"); in repeating()
258 let count = tfd.wait().expect("unable to wait for timer"); in repeating()
265 let mut tfd = FakeTimerFd::new(clock.clone()); in fake_one_shot() localVariable
268 tfd.reset(dur, None).expect("failed to arm timer"); in fake_one_shot()
272 let count = tfd.wait().expect("unable to wait for timer"); in fake_one_shot()
280 let mut tfd = FakeTimerFd::new(clock.clone()); in fake_repeating() localVariable
[all …]
/external/crosvm/common/sys_util/src/
Dtimerfd.rs236 let tfd = TimerFd::new().expect("failed to create timerfd"); in one_shot() localVariable
240 tfd.reset(dur, None).expect("failed to arm timer"); in one_shot()
242 let count = tfd.wait().expect("unable to wait for timer"); in one_shot()
250 let tfd = TimerFd::new().expect("failed to create timerfd"); in repeating() localVariable
254 tfd.reset(dur, Some(interval)).expect("failed to arm timer"); in repeating()
258 let count = tfd.wait().expect("unable to wait for timer"); in repeating()
265 let mut tfd = FakeTimerFd::new(clock.clone()); in fake_one_shot() localVariable
268 tfd.reset(dur, None).expect("failed to arm timer"); in fake_one_shot()
272 let count = tfd.wait().expect("unable to wait for timer"); in fake_one_shot()
280 let mut tfd = FakeTimerFd::new(clock.clone()); in fake_repeating() localVariable
[all …]
/external/crosvm/common/cros_async/src/
Dtimer.rs42 let tfd = TimerFd::new().map_err(Error::TimerFd)?; in sleep() localVariable
43 tfd.reset(dur, None).map_err(Error::TimerFd)?; in sleep()
44 let t = TimerAsync::new(tfd, ex).map_err(Error::TimerAsync)?; in sleep()
71 let tfd = TimerFd::new().expect("failed to create timerfd"); in one_shot() localVariable
75 tfd.reset(dur, None).expect("failed to arm timer"); in one_shot()
77 let t = TimerAsync::new_uring(tfd, ex).unwrap(); in one_shot()
91 let tfd = TimerFd::new().expect("failed to create timerfd"); in one_shot_fd() localVariable
95 tfd.reset(dur, None).expect("failed to arm timer"); in one_shot_fd()
97 let t = TimerAsync::new_poll(tfd, ex).unwrap(); in one_shot_fd()
/external/crosvm/cros_async/src/
Dtimer.rs42 let tfd = TimerFd::new().map_err(Error::TimerFd)?; in sleep() localVariable
43 tfd.reset(dur, None).map_err(Error::TimerFd)?; in sleep()
44 let t = TimerAsync::new(tfd, ex).map_err(Error::TimerAsync)?; in sleep()
71 let tfd = TimerFd::new().expect("failed to create timerfd"); in one_shot() localVariable
75 tfd.reset(dur, None).expect("failed to arm timer"); in one_shot()
77 let t = TimerAsync::new_uring(tfd, ex).unwrap(); in one_shot()
91 let tfd = TimerFd::new().expect("failed to create timerfd"); in one_shot_fd() localVariable
95 tfd.reset(dur, None).expect("failed to arm timer"); in one_shot_fd()
97 let t = TimerAsync::new_poll(tfd, ex).unwrap(); in one_shot_fd()
/external/toybox/toys/pending/
Dsyslogd.c238 struct logfile *tfd; in open_logfiles() local
240 for (tfd = TT.lfiles; tfd; tfd = tfd->next) { in open_logfiles()
244 if (*tfd->filename == '@') { // network in open_logfiles()
247 tmpfile = xstrdup(tfd->filename + 1); in open_logfiles()
254 error_exit("bad port in %s", tfd->filename); in open_logfiles()
264 memcpy(&tfd->saddr, info->ai_addr, info->ai_addrlen); in open_logfiles()
267 tfd->logfd = xsocket(AF_INET, SOCK_DGRAM, IPPROTO_UDP); in open_logfiles()
269 } else tfd->logfd = open(tfd->filename, O_CREAT | O_WRONLY | O_APPEND, 0666); in open_logfiles()
270 if (tfd->logfd < 0) { in open_logfiles()
271 tfd->filename = "/dev/console"; in open_logfiles()
[all …]
/external/tensorflow/tensorflow/core/tfrt/eager/backends/cpu/
Dcpu_registration.cc44 tensorflow::tfd::CreateRuntimeFallbackOpHandler(core_runtime, in RegisterCpuOpHandler()
53 tensorflow::tfd::RuntimeFallbackTensor::kTensorType, in RegisterCpuOpHandler()
56 tensorflow::tfd::RuntimeFallbackTensor::kTensorType, in RegisterCpuOpHandler()
59 tensorflow::tfd::RuntimeFallbackTensor::kTensorType, in RegisterCpuOpHandler()
/external/curl/docs/examples/
Dephiperfifo.c83 int tfd; /* timer filedescriptor */ member
167 timerfd_settime(g->tfd, /*flags=*/0, &its, NULL); in multi_timer_cb()
214 timerfd_settime(g->tfd, 0, &its, NULL); in event_cb()
225 err = read(g->tfd, &count, sizeof(uint64_t)); in timer_cb()
233 fprintf(MSG_OUT, "EAGAIN on tfd %d\n", g->tfd); in timer_cb()
482 g.tfd = timerfd_create(CLOCK_MONOTONIC, TFD_NONBLOCK | TFD_CLOEXEC); in main()
483 if(g.tfd == -1) { in main()
491 timerfd_settime(g.tfd, 0, &its, NULL); in main()
494 ev.data.fd = g.tfd; in main()
495 epoll_ctl(g.epfd, EPOLL_CTL_ADD, g.tfd, &ev); in main()
[all …]
/external/tensorflow/tensorflow/core/tfrt/eager/
Dfunction_cache.h49 std::unique_ptr<tensorflow::tfd::OpKernelRunnerTable> runner_table) { in CreateFunctionState()
59 tensorflow::tfd::OpKernelRunnerTable* GetRunnerTable() { in GetRunnerTable()
67 std::unique_ptr<tensorflow::tfd::OpKernelRunnerTable> runner_table) in FunctionState()
81 std::unique_ptr<tensorflow::tfd::OpKernelRunnerTable> runner_table_;
96 tensorflow::tfd::OpKernelRunnerTable*, RCReference<RequestContext>*)>
Dtfrt_context.cc36 tensorflow::tfd::EagerContextResource* eager_context_resource = in TfrtContext()
38 .GetOrCreateResource<tensorflow::tfd::EagerContextResource>( in TfrtContext()
39 tensorflow::tfd::kEagerContextResourceName, opts, in TfrtContext()
78 tensorflow::tfd::CreateRuntimeFallbackOpHandler(corert_.get(), ""); in TfrtContext()
Dc_api_tfrt.cc297 assert(llvm::isa<tensorflow::tfd::RuntimeFallbackTensor>(tensor_.get())); in Type()
298 return tensor_.get<tensorflow::tfd::RuntimeFallbackTensor>() in Type()
381 assert(async_tensor->IsType<tensorflow::tfd::RuntimeFallbackTensor>()); in DataType()
382 return async_tensor->get<tensorflow::tfd::RuntimeFallbackTensor>() in DataType()
491 tensorflow::tfd::CopyShtToTfTensor(tensor_av->get<StringHostTensor>()); in Resolve()
738 tensorflow::tfd::OwnedTensorHandle tf_tensor_handle{ in CreateLocalHandle()
743 tensorflow::tfd::CreateRuntimeFallbackTensorFromTfTensorHandle( in CreateLocalHandle()
751 tensorflow::tfd::RuntimeFallbackTensor>( in CreateLocalHandle()
779 tensorflow::tfd::RuntimeFallbackTensor>( in CreateLocalHandle()
780 host, tensorflow::tfd::CopyRefDHTToRuntimeFallbackTensor( in CreateLocalHandle()
[all …]
/external/tensorflow/tensorflow/core/runtime_fallback/runtime/
Dkernel_utils.cc25 namespace tfd { namespace
84 tensorflow::tfd::EagerContextResource* eager_context_resource = in GetEagerContext()
86 ->GetOrCreateResource<tensorflow::tfd::EagerContextResource>( in GetEagerContext()
87 tensorflow::tfd::kEagerContextResourceName); in GetEagerContext()
/external/tensorflow/tensorflow/core/tfrt/runtime/
Druntime.cc90 tensorflow::tfd::CreateRuntimeFallbackOpHandler( in InitializeOpHandlers()
96 auto fallback_op_handler = tensorflow::tfd::CreateKernelFallbackOpHandler( in InitializeOpHandlers()
112 tensorflow::tfd::RuntimeFallbackTensor::kTensorType, in InitializeOpHandlers()
115 tensorflow::tfd::RuntimeFallbackTensor::kTensorType, in InitializeOpHandlers()
118 tensorflow::tfd::RuntimeFallbackTensor::kTensorType, in InitializeOpHandlers()
/external/grpc-grpc/test/core/iomgr/
Dpollset_set_test.cc105 void on_readable(void* tfd, grpc_error* error) { in on_readable() argument
106 (static_cast<test_fd*>(tfd))->is_on_readable_called = true; in on_readable()
109 static void reset_test_fd(test_fd* tfd) { in reset_test_fd() argument
110 tfd->is_on_readable_called = false; in reset_test_fd()
112 GRPC_CLOSURE_INIT(&tfd->on_readable, on_readable, tfd, in reset_test_fd()
114 grpc_fd_notify_on_read(tfd->fd, &tfd->on_readable); in reset_test_fd()
/external/ltp/testcases/kernel/syscalls/recvmsg/
Drecvmsg01.c253 int tfd; in setup() local
258 tfd = mkstemp(tmpsunpath); in setup()
259 close(tfd); in setup()
496 int tfd; in sender() local
499 tfd = mkstemp(tmpfn); in sender()
500 if (tfd < 0) in sender()
511 *(int *)CMSG_DATA(control) = tfd; in sender()
524 (void)close(tfd); in sender()
/external/tensorflow/tensorflow/core/runtime_fallback/conversion/
Dconversion.cc29 namespace tfd { namespace
37 ->GetResource<tensorflow::tfd::EagerContextResource>( in ConvertKernelFallbackToRuntimeFallbackTensor()
38 tensorflow::tfd::kEagerContextResourceName); in ConvertKernelFallbackToRuntimeFallbackTensor()
/external/tensorflow/tensorflow/core/runtime_fallback/runtime/gpu/
Dconversion_function.cc42 namespace tfd { namespace
120 auto platform = tensorflow::tfd::GetTfrtGpuPlatform(tf_tensor_handle); in ConvertRuntimeFallbackTensorToDenseGpuTensor()
196 tensorflow::tfd::EagerContextResource* eager_context_resource = in ConvertDenseGpuTensorToRuntimeFallbackTensor()
198 ->GetOrCreateResource<tensorflow::tfd::EagerContextResource>( in ConvertDenseGpuTensorToRuntimeFallbackTensor()
199 tensorflow::tfd::kEagerContextResourceName); in ConvertDenseGpuTensorToRuntimeFallbackTensor()
/external/perfetto/src/base/
Dperiodic_task.cc39 base::ScopedPlatformHandle tfd( in CreateTimerFd() local
53 if (timerfd_settime(*tfd, 0, &its, nullptr) < 0) in CreateTimerFd()
55 return tfd; in CreateTimerFd()
/external/tensorflow/tensorflow/core/runtime_fallback/kernel/
Dkernel_fallback_kernels.cc63 bool work_enqueued = tfd::KernelFallbackExecute( in TFDForwardKernel()
65 tfd::KernelFallbackOutputType::TENSOR); in TFDForwardKernel()
98 auto op_handler_ptr = tensorflow::tfd::CreateKernelFallbackOpHandler( in CreateKernelFallbackOpHandlerKernel()
/external/tensorflow/tensorflow/core/runtime_fallback/util/
Dfallback_test_util.cc23 namespace tfd { namespace
34 tensorflow::tfd::kEagerContextResourceName); in CreateFallbackTestExecutionContext()
Dtensor_util.h32 namespace tfd {
58 auto dtype = tfd::GetTfrtDtype(tf_tensor.dtype()); in GetTensorMetadata()
/external/strace/
Dkcmp.c35 uint32_t tfd; member
86 PRINT_FIELD_PIDFD(", ", slot, tfd, tcp, pid2); in SYS_FUNC()

12345