Home
last modified time | relevance | path

Searched refs:q (Results 1 – 25 of 276) sorted by relevance

12345678910>>...12

/Zephyr-latest/tests/bluetooth/host/cs/bt_le_cs_parse_pct/src/
Dmain.c33 {.input = {0x00, 0x00, 0x00}, .output = {.i = 0, .q = 0}}, in ZTEST()
34 {.input = {0xFF, 0xFF, 0xFF}, .output = {.i = -1, .q = -1}}, in ZTEST()
35 {.input = {0xFF, 0x00, 0xFF}, .output = {.i = 255, .q = -16}}, in ZTEST()
36 {.input = {0xFF, 0x00, 0x00}, .output = {.i = 255, .q = 0}}, in ZTEST()
37 {.input = {0x00, 0xFF, 0x00}, .output = {.i = -256, .q = 15}}, in ZTEST()
38 {.input = {0x00, 0x00, 0xFF}, .output = {.i = 0, .q = -16}}, in ZTEST()
39 {.input = {0x00, 0x08, 0x80}, .output = {.i = -2048, .q = -2048}}, in ZTEST()
40 {.input = {0xFF, 0xF7, 0x7F}, .output = {.i = 2047, .q = 2047}}, in ZTEST()
43 {.input = {0xEF, 0xCD, 0xAB}, .output = {.i = -529, .q = -1348}}, in ZTEST()
44 {.input = {0x30, 0x75, 0x44}, .output = {.i = 1328, .q = 1095}}, in ZTEST()
[all …]
/Zephyr-latest/drivers/ethernet/
Deth_ivshmem_queue.c27 static int tx_clean_used(struct eth_ivshmem_queue *q);
28 static int get_rx_avail_desc_idx(struct eth_ivshmem_queue *q, uint16_t *avail_desc_idx);
31 struct eth_ivshmem_queue *q, uintptr_t tx_shmem, in eth_ivshmem_queue_init() argument
34 memset(q, 0, sizeof(*q)); in eth_ivshmem_queue_init()
44 q->desc_max_len = vring_desc_len; in eth_ivshmem_queue_init()
45 q->vring_data_max_len = shmem_section_size - vring_header_size; in eth_ivshmem_queue_init()
46 q->vring_header_size = vring_header_size; in eth_ivshmem_queue_init()
47 q->tx.shmem = (void *)tx_shmem; in eth_ivshmem_queue_init()
48 q->rx.shmem = (void *)rx_shmem; in eth_ivshmem_queue_init()
51 vring_init(&q->tx.vring, vring_desc_len, q->tx.shmem, ETH_IVSHMEM_VRING_ALIGNMENT); in eth_ivshmem_queue_init()
[all …]
Deth_ivshmem_priv.h43 struct eth_ivshmem_queue *q, uintptr_t tx_shmem,
45 void eth_ivshmem_queue_reset(struct eth_ivshmem_queue *q);
46 int eth_ivshmem_queue_tx_get_buff(struct eth_ivshmem_queue *q, void **data, size_t len);
47 int eth_ivshmem_queue_tx_commit_buff(struct eth_ivshmem_queue *q);
48 int eth_ivshmem_queue_rx(struct eth_ivshmem_queue *q, const void **data, size_t *len);
49 int eth_ivshmem_queue_rx_complete(struct eth_ivshmem_queue *q);
/Zephyr-latest/tests/subsys/dsp/print_format/src/
Dmain.c22 q31_t q = (q31_t)0x0f5c28f0; /* 0.119999997 */ in ZTEST() local
24 snprintf(buffer, 256, "%" PRIq(6), PRIq_arg(q, 6, 0)); in ZTEST()
27 snprintf(buffer, 256, "%" PRIq(6), PRIq_arg(q, 6, 1)); in ZTEST()
30 snprintf(buffer, 256, "%" PRIq(6), PRIq_arg(q, 6, -2)); in ZTEST()
33 snprintf(buffer, 256, "%" PRIq(4), PRIq_arg(q, 4, 0)); in ZTEST()
36 snprintf(buffer, 256, "%" PRIq(4), PRIq_arg(q, 4, 1)); in ZTEST()
39 snprintf(buffer, 256, "%" PRIq(4), PRIq_arg(q, 4, -2)); in ZTEST()
46 q31_t q = (q31_t)0x83d70a00; /* -0.970000029 */ in ZTEST() local
48 snprintf(buffer, 256, "%" PRIq(6), PRIq_arg(q, 6, 0)); in ZTEST()
51 snprintf(buffer, 256, "%" PRIq(6), PRIq_arg(q, 6, 1)); in ZTEST()
[all …]
/Zephyr-latest/include/zephyr/dsp/
Dprint_format.h32 static inline int64_t ___PRIq_arg_shift(int64_t q, int shift) in ___PRIq_arg_shift() argument
35 return llabs(q) >> -shift; in ___PRIq_arg_shift()
37 return llabs(q) << shift; in ___PRIq_arg_shift()
45 #define __PRIq_arg_shift(q, shift) ___PRIq_arg_shift(q, ((shift) + (8 * (4 - (int)sizeof(q))))) argument
46 #define __PRIq_arg_get(q, shift, h, l) FIELD_GET(GENMASK64(h, l), __PRIq_arg_shift(q, shift)) argument
47 #define __PRIq_arg_get_int(q, shift) __PRIq_arg_get(q, shift, 63, 31) argument
48 #define __PRIq_arg_get_frac(q, precision, shift) \ argument
49 ((__PRIq_arg_get(q, shift, 30, 0) * __CONSTPOW(1, precision)) / INT32_MAX)
58 #define PRIq_arg(q, precision, shift) \ argument
59 ((q) < 0 ? "-" : ""), (uint32_t)__PRIq_arg_get_int(q, shift), \
[all …]
/Zephyr-latest/tests/kernel/msgq/msgq_api/src/
Dtest_msgq_fail.c12 static void put_fail(struct k_msgq *q) in put_fail() argument
14 int ret = k_msgq_put(q, (void *)&data[0], K_NO_WAIT); in put_fail()
17 ret = k_msgq_put(q, (void *)&data[0], K_NO_WAIT); in put_fail()
20 ret = k_msgq_put(q, (void *)&data[1], K_NO_WAIT); in put_fail()
23 ret = k_msgq_put(q, (void *)&data[0], TIMEOUT); in put_fail()
26 k_msgq_purge(q); in put_fail()
29 static void get_fail(struct k_msgq *q) in get_fail() argument
34 int ret = k_msgq_get(q, &rx_data, K_NO_WAIT); in get_fail()
38 ret = k_msgq_get(q, &rx_data, TIMEOUT); in get_fail()
64 struct k_msgq *q; in ZTEST_USER() local
[all …]
Dtest_msgq_attrs.c13 static void attrs_get(struct k_msgq *q) in attrs_get() argument
18 k_msgq_get_attrs(q, &attrs); in attrs_get()
23 ret = k_msgq_put(q, (void *)&send_buf[i], K_NO_WAIT); in attrs_get()
27 k_msgq_get_attrs(q, &attrs); in attrs_get()
31 ret = k_msgq_get(q, (void *)&rec_buf[i], K_NO_WAIT); in attrs_get()
35 k_msgq_get_attrs(q, &attrs); in attrs_get()
64 struct k_msgq *q; in ZTEST_USER() local
66 q = k_object_alloc(K_OBJ_MSGQ); in ZTEST_USER()
67 zassert_not_null(q, "couldn't alloc message queue"); in ZTEST_USER()
68 zassert_false(k_msgq_alloc_init(q, MSG_SIZE, MSGQ_LEN)); in ZTEST_USER()
[all …]
Dtest_msgq_purge.c22 static void purge_when_put(struct k_msgq *q) in purge_when_put() argument
28 ret = k_msgq_put(q, (void *)&data[i], K_NO_WAIT); in purge_when_put()
33 tThread_entry, q, NULL, NULL, in purge_when_put()
38 k_msgq_purge(q); in purge_when_put()
42 ret = k_msgq_put(q, (void *)&data[i], K_NO_WAIT); in purge_when_put()
72 struct k_msgq *q; in ZTEST_USER() local
74 q = k_object_alloc(K_OBJ_MSGQ); in ZTEST_USER()
75 zassert_not_null(q, "couldn't alloc message queue"); in ZTEST_USER()
76 zassert_false(k_msgq_alloc_init(q, MSG_SIZE, MSGQ_LEN)); in ZTEST_USER()
78 purge_when_put(q); in ZTEST_USER()
Dtest_msgq_contexts.c297 struct k_msgq *q; in ZTEST_USER() local
300 q = k_object_alloc(K_OBJ_MSGQ); in ZTEST_USER()
301 zassert_not_null(q, "couldn't alloc message queue"); in ZTEST_USER()
302 zassert_false(k_msgq_alloc_init(q, MSG_SIZE, MSGQ_LEN)); in ZTEST_USER()
306 msgq_thread(q); in ZTEST_USER()
315 struct k_msgq *q; in ZTEST_USER() local
318 q = k_object_alloc(K_OBJ_MSGQ); in ZTEST_USER()
319 zassert_not_null(q, "couldn't alloc message queue"); in ZTEST_USER()
320 zassert_false(k_msgq_alloc_init(q, MSG_SIZE, 1)); in ZTEST_USER()
324 msgq_thread_overflow(q); in ZTEST_USER()
/Zephyr-latest/tests/kernel/queue/src/
Dtest_queue_user.c30 struct k_queue *q = p1; in child_thread_get() local
33 zassert_false(k_queue_is_empty(q)); in child_thread_get()
34 qd = k_queue_peek_head(q); in child_thread_get()
36 qd = k_queue_peek_tail(q); in child_thread_get()
41 qd = k_queue_get(q, K_FOREVER); in child_thread_get()
51 zassert_true(k_queue_is_empty(q)); in child_thread_get()
54 qd = k_queue_get(q, K_FOREVER); in child_thread_get()
79 struct k_queue *q; in ZTEST() local
86 q = k_object_alloc(K_OBJ_QUEUE); in ZTEST()
87 zassert_not_null(q, "no memory for allocated queue object"); in ZTEST()
[all …]
Dtest_queue_fail.c257 struct k_queue *q; in ZTEST_USER() local
259 q = k_object_alloc(K_OBJ_QUEUE); in ZTEST_USER()
260 zassert_not_null(q, "no memory for allocated queue object"); in ZTEST_USER()
261 k_queue_init(q); in ZTEST_USER()
264 k_queue_cancel_wait(q); in ZTEST_USER()
/Zephyr-latest/include/zephyr/sys/
Dmpsc_lockfree.h113 static inline void mpsc_init(struct mpsc *q) in mpsc_init() argument
115 mpsc_ptr_set(q->head, &q->stub); in mpsc_init()
116 q->tail = &q->stub; in mpsc_init()
117 mpsc_ptr_set(q->stub.next, NULL); in mpsc_init()
126 static ALWAYS_INLINE void mpsc_push(struct mpsc *q, struct mpsc_node *n) in mpsc_push() argument
134 prev = (struct mpsc_node *)mpsc_ptr_set_get(q->head, n); in mpsc_push()
145 static inline struct mpsc_node *mpsc_pop(struct mpsc *q) in mpsc_pop() argument
148 struct mpsc_node *tail = q->tail; in mpsc_pop()
152 if (tail == &q->stub) { in mpsc_pop()
157 q->tail = next; in mpsc_pop()
[all …]
/Zephyr-latest/tests/lib/heap_align/src/
Dmain.c26 void *p, *q, *r, *s; in check_heap_align() local
31 q = sys_heap_aligned_alloc(h, align, size); in check_heap_align()
32 zassert_true(q != NULL, "first aligned allocation failed"); in check_heap_align()
33 zassert_true((((uintptr_t)q) & (align - 1)) == 0, "block not aligned"); in check_heap_align()
47 sys_heap_free(h, q); in check_heap_align()
55 q = sys_heap_alloc(h, 1); in check_heap_align()
56 zassert_true(q == NULL, "heap not full"); in check_heap_align()
63 void *p, *q; in ZTEST() local
93 q = sys_heap_aligned_alloc(&heap, 16, 17); in ZTEST()
95 memset(q, 0, 17); in ZTEST()
[all …]
/Zephyr-latest/tests/kernel/context/
DREADME.txt100 thread (q order: 2, t/o: 500) is running
101 got thread (q order: 2, t/o: 500) as expected
102 thread (q order: 3, t/o: 750) is running
103 got thread (q order: 3, t/o: 750) as expected
104 thread (q order: 0, t/o: 1000) is running
105 got thread (q order: 0, t/o: 1000) as expected
106 thread (q order: 6, t/o: 1250) is running
107 got thread (q order: 6, t/o: 1250) as expected
108 thread (q order: 1, t/o: 1500) is running
109 got thread (q order: 1, t/o: 1500) as expected
[all …]
/Zephyr-latest/tests/drivers/spi/spi_loopback/boards/
Dnucleo_h723zg.overlay7 /* Set div-q to get test clk freq into acceptable SPI freq range */
9 /delete-property/ div-q;
10 div-q = <8>;
Dnucleo_h743zi.overlay7 /* Set div-q to get test clk freq into acceptable SPI freq range */
9 /delete-property/ div-q;
10 div-q = <8>;
Dnucleo_h745zi_q_stm32h745xx_m4.overlay7 /* Set div-q to get test clk freq into acceptable SPI freq range */
9 /delete-property/ div-q;
10 div-q = <8>;
Dnucleo_h745zi_q_stm32h745xx_m7.overlay7 /* Set div-q to get test clk freq into acceptable SPI freq range */
9 /delete-property/ div-q;
10 div-q = <8>;
Dnucleo_h753zi.overlay7 /* Set div-q to get test clk freq into acceptable SPI freq range */
9 /delete-property/ div-q;
10 div-q = <8>;
/Zephyr-latest/tests/drivers/clock_control/stm32_clock_configuration/stm32h7_devices/boards/
Dspi1_pllq_2_d1ppre_4.overlay12 /* With this particular div-q and d1ppre values
19 /delete-property/ div-q;
20 div-q = <2>;
Dspi1_pllq_1_d1ppre_1.overlay13 /delete-property/ div-q;
14 div-q = <1>;
/Zephyr-latest/drivers/sensor/
Ddefault_rtio_sensor.c149 q31_t *q = (q31_t *)(buf + compute_header_size(num_output_samples)); in sensor_submit_fallback_sync() local
215 q[q_idx] = q[q_idx] >> (new_shift - header->shift); in sensor_submit_fallback_sync()
234 (void *)&q[prev_computed_value_idx]); in sensor_submit_fallback_sync()
235 q[sample_idx + sample] = q[prev_computed_value_idx]; in sensor_submit_fallback_sync()
243 q[sample_idx + sample] = in sensor_submit_fallback_sync()
249 (int)(sample_idx + sample), (void *)&q[sample_idx + sample], in sensor_submit_fallback_sync()
250 q[sample_idx + sample], header->shift); in sensor_submit_fallback_sync()
470 const q31_t *q = (const q31_t *)(buffer + compute_header_size(header->num_channels)); in decode() local
487 count = decode_three_axis(header, q, data_out, SENSOR_CHAN_ACCEL_X, in decode()
495 count = decode_three_axis(header, q, data_out, SENSOR_CHAN_GYRO_X, in decode()
[all …]
/Zephyr-latest/tests/drivers/spi/spi_loopback/
Doverlay-stm32-spi-16bits.overlay7 /* Set div-q to get test clk freq into acceptable SPI freq range */
9 /delete-property/ div-q;
10 div-q = <8>;
/Zephyr-latest/subsys/rtio/
Drtio_init.c21 mpsc_push(&sqe_pool->free_q, &sqe_pool->pool[i].q); in rtio_init()
27 mpsc_push(&cqe_pool->free_q, &cqe_pool->pool[i].q); in rtio_init()
/Zephyr-latest/subsys/tracing/sysview/
DSYSVIEW_Zephyr.txt46 43 k_queue_init q=%I
47 44 k_queue_append q=%I, data=%p | Returns (void)(%ErrCodePosix)
48 45 k_queue_alloc_append q=%I, data=%p | Returns %ErrCodePosix
49 46 k_queue_prepend q=%I, data=%p | Returns (void)(%ErrCodePosix)
50 47 k_queue_alloc_prepend q=%I, data=%p | Returns %ErrCodePosix
51 48 k_queue_insert q=%I, data=%p | Returns (void)(%ErrCodePosix)
52 49 k_queue_append_list q=%I, head=%p, tail=%p | Returns %ErrCodePosix
53 50 k_queue_get q=%I, Timeout=%TimeOut | Returns %p
54 51 k_queue_remove q=%I, data=%p | Returns &Bool
55 52 k_queue_cancel_wait q=%I
[all …]

12345678910>>...12