Home
last modified time | relevance | path

Searched refs:clock_id (Results 1 – 20 of 20) sorted by relevance

/Zephyr-latest/drivers/clock_control/
Dclock_control_npcm.c138 uint32_t clock_id; member
143 {.clock_id = NPCM_CLOCK_PWM_I, .bus = NPCM_CLOCK_BUS_LFCLK},
144 {.clock_id = NPCM_CLOCK_PWM_J, .bus = NPCM_CLOCK_BUS_LFCLK},
145 {.clock_id = NPCM_CLOCK_I3CI, .bus = NPCM_CLOCK_BUS_APB3},
146 {.clock_id = NPCM_CLOCK_UART3, .bus = NPCM_CLOCK_BUS_APB2},
147 {.clock_id = NPCM_CLOCK_UART2, .bus = NPCM_CLOCK_BUS_APB2},
149 {.clock_id = NPCM_CLOCK_FIU, .bus = NPCM_CLOCK_BUS_FIU},
150 {.clock_id = NPCM_CLOCK_USB20, .bus = NPCM_CLOCK_BUS_USB20_CLK},
151 {.clock_id = NPCM_CLOCK_UART, .bus = NPCM_CLOCK_BUS_APB2},
153 {.clock_id = NPCM_CLOCK_PWM_A, .bus = NPCM_CLOCK_BUS_LFCLK},
[all …]
Dclock_control_smartbond.c416 uint32_t clock_id) in smartbond_clock_control_on_by_ord() argument
418 enum smartbond_clock clk = smartbond_dt_ord_to_clock(clock_id); in smartbond_clock_control_on_by_ord()
424 uint32_t clock_id) in smartbond_clock_control_off_by_ord() argument
426 enum smartbond_clock clk = smartbond_dt_ord_to_clock(clock_id); in smartbond_clock_control_off_by_ord()
/Zephyr-latest/lib/posix/options/
Dclock.c33 int z_impl___posix_clock_get_base(clockid_t clock_id, struct timespec *base) in z_impl___posix_clock_get_base() argument
35 switch (clock_id) { in z_impl___posix_clock_get_base()
56 int z_vrfy___posix_clock_get_base(clockid_t clock_id, struct timespec *ts) in z_vrfy___posix_clock_get_base() argument
59 return z_impl___posix_clock_get_base(clock_id, ts); in z_vrfy___posix_clock_get_base()
64 int clock_gettime(clockid_t clock_id, struct timespec *ts) in clock_gettime() argument
68 switch (clock_id) { in clock_gettime()
75 (void)__posix_clock_get_base(clock_id, &base); in clock_gettime()
101 int clock_getres(clockid_t clock_id, struct timespec *res) in clock_getres() argument
107 if (!(clock_id == CLOCK_MONOTONIC || clock_id == CLOCK_REALTIME || in clock_getres()
108 clock_id == CLOCK_PROCESS_CPUTIME_ID)) { in clock_getres()
[all …]
Dcond.c242 clockid_t *ZRESTRICT clock_id) in pthread_condattr_getclock() argument
244 *clock_id = att->clock; in pthread_condattr_getclock()
249 int pthread_condattr_setclock(pthread_condattr_t *att, clockid_t clock_id) in pthread_condattr_setclock() argument
251 if (clock_id != CLOCK_REALTIME && clock_id != CLOCK_MONOTONIC) { in pthread_condattr_setclock()
255 att->clock = clock_id; in pthread_condattr_setclock()
Dposix_clock.h15 __syscall int __posix_clock_get_base(clockid_t clock_id, struct timespec *ts);
/Zephyr-latest/tests/posix/common/src/
Dcond.c52 clockid_t clock_id; in ZTEST() local
57 zassert_ok(pthread_condattr_getclock(&att, &clock_id), "pthread_condattr_getclock failed"); in ZTEST()
58 zassert_equal(clock_id, CLOCK_MONOTONIC, "clock attribute not set correctly"); in ZTEST()
63 zassert_ok(pthread_condattr_getclock(&att, &clock_id), "pthread_condattr_setclock failed"); in ZTEST()
64 zassert_equal(clock_id, CLOCK_REALTIME, "clock attribute not set correctly"); in ZTEST()
Dnanosleep.c17 static inline int select_nanosleep(int selection, clockid_t clock_id, int flags, in select_nanosleep() argument
23 return clock_nanosleep(clock_id, flags, rqtp, rmtp); in select_nanosleep()
35 static void common_errors(int selection, clockid_t clock_id, int flags) in common_errors() argument
43 zassert_equal(select_nanosleep(selection, clock_id, flags, NULL, NULL), -1); in common_errors()
48 zassert_equal(select_nanosleep(selection, clock_id, flags, NULL, &rem), -1); in common_errors()
57 zassert_equal(select_nanosleep(selection, clock_id, flags, &req, NULL), -1); in common_errors()
62 zassert_equal(select_nanosleep(selection, clock_id, flags, &req, NULL), -1); in common_errors()
67 zassert_equal(select_nanosleep(selection, clock_id, flags, &req, NULL), -1); in common_errors()
73 zassert_equal(select_nanosleep(selection, clock_id, flags, &req, NULL), -1); in common_errors()
83 zassert_equal(select_nanosleep(selection, clock_id, flags, &req, NULL), 0); in common_errors()
[all …]
Dclock.c220 clockid_t clock_id = CLOCK_INVALID; in ZTEST() local
222 ret = clock_getcpuclockid((pid_t)0, &clock_id); in ZTEST()
224 zassert_equal(clock_id, CLOCK_PROCESS_CPUTIME_ID, "POSIX clock_getcpuclock id failed"); in ZTEST()
226 ret = clock_getcpuclockid((pid_t)2482, &clock_id); in ZTEST()
240 clockid_t clock_id; in ZTEST() member
262 ret = clock_getres(arg->clock_id, arg->res); in ZTEST()
Dtimer.c33 void test_timer(clockid_t clock_id, int sigev_notify) in test_timer() argument
46 zassert_ok(timer_create(clock_id, &sig, &timerid)); in test_timer()
62 clock_gettime(clock_id, &ts); in test_timer()
64 clock_gettime(clock_id, &te); in test_timer()
/Zephyr-latest/include/zephyr/posix/
Dtime.h93 int clock_gettime(clockid_t clock_id, struct timespec *ts);
94 int clock_getres(clockid_t clock_id, struct timespec *ts);
95 int clock_settime(clockid_t clock_id, const struct timespec *ts);
96 int clock_getcpuclockid(pid_t pid, clockid_t *clock_id);
106 int clock_nanosleep(clockid_t clock_id, int flags,
Dpthread.h133 clockid_t *ZRESTRICT clock_id);
142 int pthread_condattr_setclock(pthread_condattr_t *att, clockid_t clock_id);
/Zephyr-latest/include/zephyr/drivers/clock_control/
Datmel_sam_pmc.h20 #define SAM_DT_CLOCK_PMC_CFG(clock_id, node_id) \ argument
22 .clock_type = DT_CLOCKS_CELL_BY_IDX(node_id, clock_id, clock_type), \
23 .peripheral_id = DT_CLOCKS_CELL_BY_IDX(node_id, clock_id, peripheral_id)\
/Zephyr-latest/include/zephyr/usb/class/
Dusbd_uac2.h142 uint32_t (*get_sample_rate)(const struct device *dev, uint8_t clock_id,
159 int (*set_sample_rate)(const struct device *dev, uint8_t clock_id,
/Zephyr-latest/subsys/net/lib/ptp/
Dclock.c61 static int clock_generate_id(ptp_clk_id *clock_id, struct net_if *iface) in clock_generate_id() argument
66 clock_id->id[0] = addr->addr[0]; in clock_generate_id()
67 clock_id->id[1] = addr->addr[1]; in clock_generate_id()
68 clock_id->id[2] = addr->addr[2]; in clock_generate_id()
69 clock_id->id[3] = 0xFF; in clock_generate_id()
70 clock_id->id[4] = 0xFE; in clock_generate_id()
71 clock_id->id[5] = addr->addr[3]; in clock_generate_id()
72 clock_id->id[6] = addr->addr[4]; in clock_generate_id()
73 clock_id->id[7] = addr->addr[5]; in clock_generate_id()
79 static const char *clock_id_str(ptp_clk_id *clock_id) in clock_id_str() argument
[all …]
/Zephyr-latest/drivers/serial/
Duart_wch_usart.c21 uint8_t clock_id; member
34 clock_control_subsys_t clock_sys = (clock_control_subsys_t *)(uintptr_t)config->clock_id; in usart_wch_init()
133 .clock_id = DT_INST_CLOCKS_CELL(idx, id), \
Duart_pl011.c59 clock_control_subsys_t clock_id; member
489 clock_control_on(config->clock_dev, config->clock_id); in pl011_init()
490 clock_control_get_rate(config->clock_dev, config->clock_id, &data->clk_freq); in pl011_init()
603 .clock_id = (clock_control_subsys_t)DT_INST_CLOCKS_CELL(n, \
Duart_renesas_ra.c31 const struct clock_control_ra_subsys_cfg clock_id; member
393 ret = clock_control_on(config->clock_dev, (clock_control_subsys_t)&config->clock_id); in uart_ra_init()
398 ret = clock_control_get_rate(config->clock_dev, (clock_control_subsys_t)&config->clock_id, in uart_ra_init()
663 .clock_id = \
/Zephyr-latest/drivers/gpio/
Dwch_gpio_ch32v00x.c21 uint8_t clock_id; member
122 clock_control_on(config->clock_dev, (clock_control_subsys_t *)(uintptr_t)config->clock_id); in gpio_ch32v00x_init()
135 .clock_id = DT_INST_CLOCKS_CELL(idx, id), \
/Zephyr-latest/drivers/pwm/
Dpwm_mcux_ctimer.c45 clock_control_subsys_t clock_id; member
203 err = clock_control_get_rate(config->clock_control, config->clock_id, (uint32_t *)cycles); in mcux_ctimer_pwm_get_cycles_per_sec()
269 .clock_id = (clock_control_subsys_t)(DT_INST_CLOCKS_CELL(n, name)), \
/Zephyr-latest/subsys/usb/device_next/class/
Dusbd_uac2.c588 const uint32_t clock_id = CONTROL_ENTITY_ID(setup); in get_clock_source_request() local
599 count = clock_frequencies(c_data, clock_id, &frequencies); in get_clock_source_request()
612 hz = ctx->ops->get_sample_rate(dev, clock_id, in get_clock_source_request()
638 const uint32_t clock_id = CONTROL_ENTITY_ID(setup); in set_clock_source_request() local
649 count = clock_frequencies(c_data, clock_id, &frequencies); in set_clock_source_request()
674 err = ctx->ops->set_sample_rate(dev, clock_id, hz, in set_clock_source_request()