Searched refs:clk (Results 1 - 25 of 38) sorted by relevance

12

/fuchsia/zircon/third_party/ulib/musl/pthread/
H A Dpthread_condattr_setclock.c3 int pthread_condattr_setclock(pthread_condattr_t* a, clockid_t clk) { argument
4 if (clk < 0 || clk - 2U < 2)
7 a->__attr |= clk;
H A Dpthread_attr_get.c32 int pthread_condattr_getclock(const pthread_condattr_t* restrict a, clockid_t* restrict clk) { argument
33 *clk = a->__attr & 0x7fffffff;
/fuchsia/zircon/system/ulib/ddk/include/ddk/protocol/
H A Dclk.h22 static inline zx_status_t clk_enable(clk_protocol_t * clk, const uint32_t index) { argument
23 return clk->ops->enable(clk->ctx, index);
26 static inline zx_status_t clk_disable(clk_protocol_t * clk, const uint32_t index) { argument
27 return clk->ops->disable(clk->ctx, index);
/fuchsia/zircon/third_party/ulib/musl/src/time/
H A Dclock_settime.c4 int clock_settime(clockid_t clk, const struct timespec* ts) { argument
H A Dclock_getres.c4 int clock_getres(clockid_t clk, struct timespec* ts) { argument
H A Dclock_getcpuclockid.c5 int clock_getcpuclockid(pid_t pid, clockid_t* clk) { argument
H A Dclock_nanosleep.c4 int clock_nanosleep(clockid_t clk, int flags, const struct timespec* req, struct timespec* rem) { argument
H A Dclock_gettime.c11 int __clock_gettime(clockid_t clk, struct timespec* ts) { argument
13 switch (clk) {
/fuchsia/zircon/third_party/ulib/musl/src/thread/
H A D__timedwait.c7 int __timedwait(atomic_int* futex, int val, clockid_t clk, const struct timespec* at) { argument
11 int ret = __timespec_to_deadline(at, clk, &deadline);
/fuchsia/zircon/system/dev/clk/amlogic-clk/
H A Daml-clk.h7 #include "aml-clk-blocks.h"
12 #include <ddktl/protocol/clk.h>
17 #include <zircon/device/clk.h>
38 zx_status_t ClkEnable(uint32_t clk);
39 zx_status_t ClkDisable(uint32_t clk);
42 zx_status_t ClkMeasure(uint32_t clk, clk_freq_info_t* info);
55 zx_status_t ClkToggle(uint32_t clk, const bool enable);
59 zx_status_t ClkMeasureUtil(uint32_t clk, uint32_t* clk_freq);
H A Drules.mk12 $(LOCAL_DIR)/aml-clk.cpp \
13 $(LOCAL_DIR)/aml-clk.c \
H A Daml-clk.cpp5 #include "aml-clk.h"
31 zxlogf(ERROR, "aml-clk: could not map periph mmio: %d\n", status);
53 zxlogf(ERROR, "aml-clk: could not map periph mmio: %d\n", status);
81 zxlogf(ERROR, "aml-clk: pdev_get_device_info failed\n");
148 zxlogf(ERROR, "aml-clk: Unsupported SOC DID %u\n", info.pid);
155 zxlogf(ERROR, "aml-clk: failed to get ZX_PROTOCOL_PLATFORM_BUS, "
186 zxlogf(ERROR, "aml-clk: Could not create clock device: %d\n", status);
195 zx_status_t AmlClock::ClkToggle(uint32_t clk, const bool enable) { argument
196 if (clk >= gates_.size()) {
200 const meson_clk_gate_t* gate = &gates_[clk];
214 ClkEnable(uint32_t clk) argument
222 ClkDisable(uint32_t clk) argument
235 ClkMeasureUtil(uint32_t clk, uint32_t* clk_freq) argument
274 ClkMeasure(uint32_t clk, clk_freq_info_t* info) argument
[all...]
H A Daml-g12a-blocks.h7 #include "aml-clk-blocks.h"
8 #include <soc/aml-meson/g12a-clk.h>
42 // Indexes here, correspond to actual clk mux
43 // values written to measure respective clk.
/fuchsia/zircon/system/dev/clk/hisi-lib/
H A Dhisi-clk.c17 #include <ddk/protocol/clk.h>
22 #include <dev/clk/hisi-lib/hisi.h>
46 clk_protocol_t clk; member in struct:hisi_clk
116 static zx_status_t hisi_clk_enable(void* ctx, uint32_t clk) { argument
117 return hisi_clk_toggle(ctx, clk, true);
120 static zx_status_t hisi_clk_disable(void* ctx, uint32_t clk) { argument
121 return hisi_clk_toggle(ctx, clk, false);
130 hisi_clk_t* clk = ctx; local
131 mmio_buffer_release(&clk->peri_crg_mmio);
132 mmio_buffer_release(&clk
[all...]
H A Drules.mk12 $(LOCAL_DIR)/hisi-clk.c
/fuchsia/zircon/system/uapp/clock/
H A Dclkctl.c14 #include <zircon/device/clk.h>
91 int measure_clk(const char* path, uint32_t idx, bool clk) { argument
105 if (clk) {
128 bool clk = false; local
145 clk = true;
168 err = measure_clk(path, idx, clk);
/fuchsia/zircon/third_party/ulib/musl/src/internal/
H A Dtime_conversion.h19 clockid_t clk, zx_time_t* deadline) {
24 if (__clock_gettime(clk, &to))
18 __timespec_to_deadline(const struct timespec* timespec, clockid_t clk, zx_time_t* deadline) argument
/fuchsia/zircon/system/dev/clk/hisi3660/
H A Drules.mk12 $(LOCAL_DIR)/hisi3660-clk.c \
15 system/dev/clk/hisi-lib \
/fuchsia/zircon/system/dev/board/gauss/
H A Dgauss-pcie.c15 #include <soc/aml-meson/axg-clk.h>
59 .clk = CLK_AXG_CLK81,
62 .clk = CLK_AXG_PCIE_A,
65 .clk = CLK_CML0_EN,
/fuchsia/zircon/system/dev/board/astro/
H A Dastro-thermal.c11 #include <soc/aml-meson/g12a-clk.h>
50 .clk = CLK_SYS_PLL_DIV16,
53 .clk = CLK_SYS_CPU_CLK_DIV16,
H A Drules.mk25 $(LOCAL_DIR)/astro-clk.c \
/fuchsia/zircon/system/dev/pci/amlogic-pcie/
H A Daml-pcie-device.h10 #include <ddk/protocol/clk.h>
H A Drules.mk12 $(LOCAL_DIR)/aml-pcie-clk.cpp \
/fuchsia/zircon/system/dev/board/vim/
H A Drules.mk27 $(LOCAL_DIR)/vim-clk.c \
/fuchsia/zircon/system/dev/thermal/aml-thermal-s905d2g/
H A Daml-cpufreq.h10 #include <ddktl/protocol/clk.h>

Completed in 120 milliseconds

12