Home
last modified time | relevance | path

Searched refs:cmp (Results 1 – 25 of 66) sorted by relevance

123

/Zephyr-latest/lib/libc/minimal/source/stdlib/
Dqsort.c43 static inline int compare(struct qsort_comp *cmp, void *a, void *b) in compare() argument
45 if (cmp->has3) { in compare()
46 return cmp->comp3(a, b, cmp->arg); in compare()
49 return cmp->comp2(a, b); in compare()
52 static void sift_down(void *base, int start, int end, size_t size, struct qsort_comp *cmp) in sift_down() argument
62 if (compare(cmp, A(swap), A(child)) < 0) { in sift_down()
67 if (right(root) < end && compare(cmp, A(swap), A(right(root))) < 0) { in sift_down()
79 static void heapify(void *base, int nmemb, size_t size, struct qsort_comp *cmp) in heapify() argument
84 sift_down(base, start, nmemb, size, cmp); in heapify()
88 static void heap_sort(void *base, int nmemb, size_t size, struct qsort_comp *cmp) in heap_sort() argument
[all …]
Dbsearch.c23 int (*cmp)(const void *key, const void *element)) in bsearch()
34 result = cmp(key, pivot); in bsearch()
/Zephyr-latest/kernel/
Dpriority_queues.c15 int32_t cmp; in z_priq_rb_lessthan() local
20 cmp = z_sched_prio_cmp(thread_a, thread_b); in z_priq_rb_lessthan()
22 if (cmp > 0) { in z_priq_rb_lessthan()
24 } else if (cmp < 0) { in z_priq_rb_lessthan()
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/
Dcntr.c151 void cntr_cmp_set(uint8_t cmp, uint32_t value) in cntr_cmp_set() argument
170 nrf_grtc_sys_counter_compare_event_disable(NRF_GRTC, cmp); in cntr_cmp_set()
174 NRF_GRTC->CC[cmp].CCL = stale; in cntr_cmp_set()
177 nrf_grtc_task_trigger(NRF_GRTC, (NRF_GRTC_TASK_CAPTURE_0 + (cmp * sizeof(uint32_t)))); in cntr_cmp_set()
181 cntr_l = NRF_GRTC->CC[cmp].CCL; in cntr_cmp_set()
185 cntr_h = NRF_GRTC->CC[cmp].CCH; in cntr_cmp_set()
195 nrf_grtc_sys_counter_cc_set(NRF_GRTC, cmp, in cntr_cmp_set()
199 nrf_grtc_sys_counter_compare_event_enable(NRF_GRTC, cmp); in cntr_cmp_set()
202 nrf_rtc_cc_set(NRF_RTC, cmp, value); in cntr_cmp_set()
/Zephyr-latest/soc/nxp/mcx/mcxw/
Dmcxw71_platform_init.S27 cmp r0, r1
38 cmp r0, r1
45 cmp r0, r1
52 cmp r0, r1
/Zephyr-latest/arch/arm64/core/
Dearly_mem_funcs.S30 cmp x2, #8
40 cmp x2, #7
64 cmp x2, #8
70 cmp x2, #7
Dswitch.S148 cmp x1, #0x07 /*Access to SIMD or floating-point */
156 cmp x1, #0x15 /* 0x15 = SVC */
162 cmp x1, #_SVC_CALL_RUNTIME_EXCEPT
166 cmp x1, #_SVC_CALL_SYSTEM_CALL
171 cmp x1, #_SVC_CALL_IRQ_OFFLOAD
Duserspace.S34 cmp x0, x1
77 cmp x0, x1
108 cmp x8, x9
Disr_wrapper.S72 cmp x0, 1019
74 cmp x0, 1023
82 cmp x0, x1
Dreset.S166 cmp x5, #CONFIG_MP_MAX_NUM_CPUS
173 cmp x3, x1
181 cmp x1, x2
209 cmp x0, x9
Dmacro_priv.inc36 cmp \xreg2, \xreg0
39 cmp \xreg1, #CONFIG_MP_MAX_NUM_CPUS
/Zephyr-latest/arch/arm/core/cortex_a_r/
Disr_wrapper.S59 cmp r0, #MODE_USR
115 cmp r0, #0
167 cmp r0, #0
204 cmp r0, r1
256 cmp r0, #1
280 cmp r0, #0
305 cmp r0, r1
341 cmp r0, #0
364 cmp r0, #0
Dexc_exit.S52 cmp r1, #MODE_USR
74 cmp r1, #0
81 cmp r0, #0
146 cmp r0, #1
152 cmp r0, r1
214 cmp r1, #1
218 cmp r0, #0
Dcpu_idle.S30 cmp r0, #0
94 cmp r0, #0
Dswap_helper.S86 cmp r0, #0
214 cmp r0, #MODE_USR
267 cmp r0, #0
314 cmp r1, #_SVC_CALL_SYSTEM_CALL
318 cmp r1, #_SVC_CALL_CONTEXT_SWITCH
321 cmp r1, #_SVC_CALL_RUNTIME_EXCEPT
396 cmp r6, ip
Dswitch.S125 cmp r1, #_SVC_CALL_RUNTIME_EXCEPT
129 cmp r1, #_SVC_CALL_IRQ_OFFLOAD
139 cmp r3, #1
/Zephyr-latest/include/zephyr/arch/arm64/
Dmacro.inc14 cmp \xreg, 0xc
16 cmp \xreg, 0x8
18 cmp \xreg, 0x4
/Zephyr-latest/subsys/logging/
Dlog_cache.h27 log_cache_cmp_func_t cmp; member
33 log_cache_cmp_func_t cmp; member
Dlog_cache.c45 cache->cmp = config->cmp; in log_cache_init()
62 if (cache->cmp(entry->id, id)) { in log_cache_get()
/Zephyr-latest/drivers/watchdog/
Dwdt_sifive.c191 int cmp, scaler; in wdt_sifive_install_timeout() local
205 cmp = wdt_sifive_convtime(cfg->window.max, WDOG_CLK, &scaler); in wdt_sifive_install_timeout()
206 if (cmp < 0 || WDOGCMP_MAX < cmp) { in wdt_sifive_install_timeout()
235 wdt->wdogcmp0 = cmp; in wdt_sifive_install_timeout()
/Zephyr-latest/soc/nxp/lpc/lpc54xxx/gcc/
Dstartup_LPC54114_cm4.S56 cmp r3, r2 /* Core ID matches M4 identifier */
81 cmp r2, #0 /* Slave boot address = 0 (not set up)? */
/Zephyr-latest/soc/nxp/s32/s32k3/
Ds32k3xx_startup.S33 cmp r2, 0x0
36 cmp r2, 0x0
/Zephyr-latest/subsys/bluetooth/controller/hal/
Dcntr.h14 void cntr_cmp_set(uint8_t cmp, uint32_t value);
/Zephyr-latest/samples/sensor/adc_cmp_npcx/boards/
Dnpcx9m6f_evb.overlay9 compatible = "nuvoton,adc-cmp";
/Zephyr-latest/arch/sparc/core/
Dinterrupt_trap.S48 cmp %g3, 1
187 cmp %o0, %o1
194 cmp %l5, 0
289 cmp %l6, %l7
298 cmp %l5, 1

123