Home
last modified time | relevance | path

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

1234

/Zephyr-4.3.0/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-4.3.0/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-4.3.0/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-4.3.0/soc/nxp/mcx/mcxw/mcxw7xx/
Dmcxw71_platform_init.S27 cmp r0, r1
38 cmp r0, r1
45 cmp r0, r1
52 cmp r0, r1
Dmcxw72_platform_init.S30 cmp r0, r1
41 cmp r0, r1
48 cmp r0, r1
55 cmp r0, r1
/Zephyr-4.3.0/arch/arm64/core/
Dearly_mem_funcs.S30 cmp x2, #8
40 cmp x2, #7
64 cmp x2, #8
70 cmp x2, #7
Dswitch.S155 cmp x1, #0x07 /*Access to SIMD or floating-point */
158 cmp x1, #0x19 /*Trapped access to SVE functionality */
170 cmp x1, #0x15 /* 0x15 = SVC */
176 cmp x1, #_SVC_CALL_RUNTIME_EXCEPT
180 cmp x1, #_SVC_CALL_SYSTEM_CALL
185 cmp x1, #_SVC_CALL_IRQ_OFFLOAD
Duserspace.S34 cmp x0, x1
77 cmp x0, x1
108 cmp x8, x9
Disr_wrapper.S80 cmp x0, 1019
82 cmp x0, 1023
90 cmp x0, x1
Dreset.S167 cmp x5, #DT_CHILD_NUM_STATUS_OKAY(DT_PATH(cpus))
174 cmp x3, x1
182 cmp x1, x2
210 cmp x0, x9
/Zephyr-4.3.0/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-4.3.0/lib/min_heap/
Dmin_heap.c29 if (heap->cmp(curr, par) >= 0) { in heapify_up()
58 if (heap->cmp(elem_left, elem_index) < 0) { in heapify_down()
66 if (heap->cmp(elem_right, elem_smallest) < 0) { in heapify_down()
83 size_t elem_size, min_heap_cmp_t cmp) in min_heap_init() argument
88 heap->cmp = cmp; in min_heap_init()
/Zephyr-4.3.0/include/zephyr/sys/
Dmin_heap.h65 min_heap_cmp_t cmp; member
83 .cmp = (cmp_func)}
101 .cmp = (cmp_func) \
121 size_t elem_size, min_heap_cmp_t cmp);
/Zephyr-4.3.0/tests/drivers/comparator/gpio_loopback/boards/
Dfrdm_mcxc242.overlay11 test-comp = &cmp;
20 &cmp {
/Zephyr-4.3.0/include/zephyr/arch/arm64/
Dmacro.inc14 cmp \xreg, 0xc
16 cmp \xreg, 0x8
18 cmp \xreg, 0x4
/Zephyr-4.3.0/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-4.3.0/arch/rx/core/
Dreset.S39 cmp #0, r3
103 cmp r1,r2
106 cmp #-1, r4
108 cmp #0, r4
/Zephyr-4.3.0/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-4.3.0/subsys/bluetooth/controller/hal/
Dcntr.h14 void cntr_cmp_set(uint8_t cmp, uint32_t value);

1234