/Zephyr-latest/tests/bluetooth/bt_crypto_ccm/src/ |
D | test_bt_crypto_ccm.c | 27 struct test_data *p = input_packets[i]; in ZTEST() local 29 p->expected_output_len = p->input_len + p->mic_len; in ZTEST() 31 const uint8_t *aad = p->input; in ZTEST() 34 (uint8_t *)malloc(p->expected_output_len * sizeof(uint8_t)); in ZTEST() 36 memcpy(encrypted_data, p->input, p->input_len); in ZTEST() 38 err = bt_ccm_encrypt(p->key, p->nonce, &p->input[p->aad_len], in ZTEST() 39 p->input_len - p->aad_len, aad, p->aad_len, in ZTEST() 40 &encrypted_data[p->aad_len], p->mic_len); in ZTEST() 45 bt_hex(encrypted_data, p->expected_output_len), p->expected_output_len); in ZTEST() 47 bt_hex(p->expected_output, p->expected_output_len), p->expected_output_len); in ZTEST() [all …]
|
/Zephyr-latest/scripts/coccinelle/ |
D | semicolon.cocci | 16 position p; 20 default: ...;@p 24 position p; 29 case ...:;@p 35 case ...:;@p 42 case ...:;@p 49 position p != {r_default.p, r_case.p}; 55 S@p1;@p 59 p << r1.p; 62 if p[0].line != p1[0].line_end: [all …]
|
D | int_ms_to_timeout.cocci | 48 position p; 50 last_timeout@p(..., D) 60 position p != r_last_timeout_id.p; 62 last_timeout@p(..., 80 position p != r_last_timeout_id.p; 82 last_timeout@p(..., C) 88 p << r_last_timeout_const_report.p; 92 coccilib.report.print_report(p[0], msg); 106 position p; 108 last_timeout@p(..., [all …]
|
D | reserved_names.cocci | 15 position p; 21 struct t *v@p; 23 struct t v@p; 25 union t v@p; 27 T v@p; 29 T *v@p; 31 struct t *v@p = E; 33 struct t v@p = E; 35 union t v@p = E; 37 T v@p = E; [all …]
|
D | same_identifier.cocci | 15 position p; 19 struct t *v@p; 21 struct t v@p; 23 union t v@p; 29 p << common_case.p; 34 coccilib.report.print_report(p[0], msg) 39 position p; 42 T v@p; 44 T *v@p; 50 p << per_type.p; [all …]
|
D | boolean.cocci | 37 position p; 40 while (v@p) {...} 42 if (v@p) {...} 46 p << rule1.p; 50 coccilib.report.print_report(p[0], msg) 69 position p; 72 while (v@p) {...} 75 p << rule2.p; 79 coccilib.report.print_report(p[0], msg) 82 position p; [all …]
|
D | unsigned_suffix.cocci | 15 position p; 19 v = C@p 21 v == C@p 23 v != C@p 25 v <= C@p 27 v >= C@p 29 v += C@p 31 v -= C@p 33 v * C@p 35 v / C@p [all …]
|
D | unsigned_lesser_than_zero.cocci | 13 position p; 19 (\( v@p < 0 \| v@p <= 0 \)) 22 p << r_cmp.p; 26 coccilib.org.print_todo(p[0], msg) 29 p << r_cmp.p; 33 coccilib.report.print_report(p[0], msg)
|
/Zephyr-latest/drivers/ethernet/ |
D | eth_dwmac.c | 59 #define TXDESC_PHYS_H(idx) hi32(p->tx_descs_phys + (idx) * sizeof(struct dwmac_dma_desc)) 60 #define TXDESC_PHYS_L(idx) lo32(p->tx_descs_phys + (idx) * sizeof(struct dwmac_dma_desc)) 61 #define RXDESC_PHYS_H(idx) hi32(p->rx_descs_phys + (idx) * sizeof(struct dwmac_dma_desc)) 62 #define RXDESC_PHYS_L(idx) lo32(p->rx_descs_phys + (idx) * sizeof(struct dwmac_dma_desc)) 64 #define TXDESC_PHYS_H(idx) phys_hi32(&p->tx_descs[idx]) 65 #define TXDESC_PHYS_L(idx) phys_lo32(&p->tx_descs[idx]) 66 #define RXDESC_PHYS_H(idx) phys_hi32(&p->rx_descs[idx]) 67 #define RXDESC_PHYS_L(idx) phys_lo32(&p->rx_descs[idx]) 101 struct dwmac_priv *p = dev->data; in dwmac_caps() local 104 if (p->feature0 & MAC_HW_FEATURE0_GMIISEL) { in dwmac_caps() [all …]
|
D | eth_cyclonev.c | 38 struct eth_cyclonev_priv *p); 39 int eth_cyclonev_get_software_reset_status(uint32_t instance, struct eth_cyclonev_priv *p); 40 int eth_cyclonev_software_reset(uint32_t instance, struct eth_cyclonev_priv *p); 41 void eth_cyclonev_setup_rxdesc(struct eth_cyclonev_priv *p); 42 void eth_cyclonev_setup_txdesc(struct eth_cyclonev_priv *p); 47 struct eth_cyclonev_priv *p); 51 static void eth_cyclonev_receive(struct eth_cyclonev_priv *p); 52 static void eth_cyclonev_tx_release(struct eth_cyclonev_priv *p); 71 * /us/en/pdfs/literature/hb/cyclone-v/cv_54001.pdf p. 1252 119 struct eth_cyclonev_priv *p) in eth_cyclonev_set_mac_addr() argument [all …]
|
/Zephyr-latest/lib/libc/minimal/source/stdout/ |
D | sprintf.c | 18 static int sprintf_out(int c, struct emitter *p) in sprintf_out() argument 20 if (p->len > 1) { /* need to reserve a byte for EOS */ in sprintf_out() 21 *(p->ptr) = c; in sprintf_out() 22 p->ptr += 1; in sprintf_out() 23 p->len -= 1; in sprintf_out() 33 struct emitter p; in snprintf() local 41 p.ptr = str; in snprintf() 42 p.len = (int) len; in snprintf() 45 r = cbvprintf(sprintf_out, (void *) (&p), format, vargs); in snprintf() 48 *(p.ptr) = 0; in snprintf() [all …]
|
/Zephyr-latest/subsys/tracing/test/ |
D | tracing_string_format_test.c | 19 TRACING_STRING("%s: %p\n", __func__, thread); in sys_trace_k_thread_switched_out() 27 TRACING_STRING("%s: %p\n", __func__, thread); in sys_trace_k_thread_switched_in() 32 TRACING_STRING("%s: %p\n", __func__, thread); in sys_trace_k_thread_priority_set() 38 TRACING_STRING("%s: %p\n", __func__, thread); in sys_trace_k_thread_create() 43 TRACING_STRING("%s: %p\n", __func__, thread); in sys_trace_k_thread_start() 48 TRACING_STRING("%s: %p\n", __func__, thread); in sys_trace_k_thread_abort() 53 TRACING_STRING("%s: %p\n", __func__, thread); in sys_trace_k_thread_suspend() 58 TRACING_STRING("%s: %p\n", __func__, thread); in sys_trace_k_thread_resume() 63 TRACING_STRING("%s: %p\n", __func__, thread); in sys_trace_k_thread_resume_exit() 68 TRACING_STRING("%s: %p\n", __func__, thread); in sys_trace_k_thread_ready() [all …]
|
/Zephyr-latest/subsys/mgmt/osdp/src/ |
D | osdp.c | 49 static void osdp_handle_in_byte(struct osdp_device *p, uint8_t *buf, int len) in osdp_handle_in_byte() argument 51 if (p->wait_for_mark) { in osdp_handle_in_byte() 53 if (p->last_byte == 0xFF && buf[0] == 0x53) { in osdp_handle_in_byte() 55 ring_buf_put(&p->rx_buf, buf, 1); /* put last byte */ in osdp_handle_in_byte() 57 ring_buf_put(&p->rx_buf, buf, len); /* put rest */ in osdp_handle_in_byte() 58 p->wait_for_mark = 0; /* Mark found. Clear flag */ in osdp_handle_in_byte() 60 p->last_byte = buf[0]; in osdp_handle_in_byte() 63 ring_buf_put(&p->rx_buf, buf, len); in osdp_handle_in_byte() 70 struct osdp_device *p = user_data; in osdp_uart_isr() local 77 osdp_handle_in_byte(p, buf, len); in osdp_uart_isr() [all …]
|
/Zephyr-latest/scripts/pylib/twister/ |
D | expr_parser.py | 109 def p_expr_or(p): argument 111 p[0] = ("or", p[1], p[3]) 113 def p_expr_and(p): argument 115 p[0] = ("and", p[1], p[3]) 117 def p_expr_not(p): argument 119 p[0] = ("not", p[2]) 121 def p_expr_parens(p): argument 123 p[0] = p[2] 125 def p_expr_eval(p): argument 134 p[0] = (p[2], p[1], p[3]) [all …]
|
/Zephyr-latest/tests/bluetooth/controller/common/src/ |
D | helper_pdu.c | 112 struct pdu_data_llctrl_min_used_chans_ind *p = param; in helper_pdu_encode_min_used_chans_ind() local 118 pdu->llctrl.min_used_chans_ind.phys = p->phys; in helper_pdu_encode_min_used_chans_ind() 119 pdu->llctrl.min_used_chans_ind.min_used_chans = p->min_used_chans; in helper_pdu_encode_min_used_chans_ind() 124 struct pdu_data_llctrl_version_ind *p = param; in helper_pdu_encode_version_ind() local 130 pdu->llctrl.version_ind.version_number = p->version_number; in helper_pdu_encode_version_ind() 131 pdu->llctrl.version_ind.company_id = p->company_id; in helper_pdu_encode_version_ind() 132 pdu->llctrl.version_ind.sub_version_number = p->sub_version_number; in helper_pdu_encode_version_ind() 137 struct pdu_data_llctrl_enc_req *p = param; in helper_pdu_encode_enc_req() local 143 memcpy(pdu->llctrl.enc_req.rand, p->rand, sizeof(pdu->llctrl.enc_req.rand)); in helper_pdu_encode_enc_req() 144 memcpy(pdu->llctrl.enc_req.ediv, p->ediv, sizeof(pdu->llctrl.enc_req.ediv)); in helper_pdu_encode_enc_req() [all …]
|
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/ |
D | ull_llcp_pdu.c | 103 struct pdu_data_llctrl_unknown_rsp *p; in llcp_ntf_encode_unknown_rsp() local 108 p = &pdu->llctrl.unknown_rsp; in llcp_ntf_encode_unknown_rsp() 109 p->type = ctx->unknown_response.type; in llcp_ntf_encode_unknown_rsp() 134 struct pdu_data_llctrl_feature_req *p; in llcp_pdu_encode_feature_req() local 146 p = &pdu->llctrl.feature_req; in llcp_pdu_encode_feature_req() 147 sys_put_le64(ll_feat_get(), p->features); in llcp_pdu_encode_feature_req() 152 struct pdu_data_llctrl_feature_rsp *p; in llcp_pdu_encode_feature_rsp() local 159 p = &pdu->llctrl.feature_rsp; in llcp_pdu_encode_feature_rsp() 167 sys_put_le64(feature_rsp, p->features); in llcp_pdu_encode_feature_rsp() 172 struct pdu_data_llctrl_feature_rsp *p; in llcp_ntf_encode_feature_rsp() local [all …]
|
/Zephyr-latest/tests/benchmarks/latency_measure/ |
D | testcase.yaml | 22 regex: "(?P<metric>.*) - (?P<description>.*):(?P<cycles>.*) cycles ,(?P<nanoseconds>.*) ns" 38 regex: "(?P<metric>.*) - (?P<description>.*):(?P<cycles>.*) cycles ,(?P<nanoseconds>.*) ns" 56 regex: "(?P<metric>.*) - (?P<description>.*):(?P<cycles>.*) cycles ,(?P<nanoseconds>.*) ns" 78 regex: "(?P<metric>.*) - (?P<description>.*):(?P<cycles>.*) cycles ,(?P<nanoseconds>.*) ns"
|
/Zephyr-latest/subsys/logging/ |
D | log_output_syst.c | 56 struct stp_writer_data *p, mipi_syst_u8 n) in stp_write_putNibble() argument 58 p->current |= (n << 4); in stp_write_putNibble() 59 p->byteDone = !p->byteDone; in stp_write_putNibble() 61 if (p->byteDone) { in stp_write_putNibble() 62 out_func(p->current, systh->systh_platform.log_output); in stp_write_putNibble() 63 p->current = 0; in stp_write_putNibble() 65 p->current >>= 4; in stp_write_putNibble() 70 struct stp_writer_data *p) in stp_write_flush() argument 72 if (!p->byteDone) { in stp_write_flush() 73 stp_write_putNibble(systh, p, 0); in stp_write_flush() [all …]
|
/Zephyr-latest/samples/net/dsa/src/ |
D | dsa_lldp.c | 39 uint8_t *p = &buffer[sizeof(struct net_eth_hdr)]; in dsa_lldp_send() local 40 uint8_t *pb = p; in dsa_lldp_send() 62 dsa_buf_write_be16((LLDP_TLV_CHASSIS_ID << 9) | (ETH_ALEN + 1), &p); in dsa_lldp_send() 63 *p++ = 4; /* subtype */ in dsa_lldp_send() 64 memcpy(p, net_if_get_link_addr(iface)->addr, ETH_ALEN); in dsa_lldp_send() 65 p += ETH_ALEN; in dsa_lldp_send() 68 dsa_buf_write_be16((LLDP_TLV_PORT_ID << 9) | (ETH_ALEN + 1), &p); in dsa_lldp_send() 69 *p++ = 3; /* subtype */ in dsa_lldp_send() 70 memcpy(p, net_if_get_link_addr(iface)->addr, ETH_ALEN); in dsa_lldp_send() 71 p += ETH_ALEN; in dsa_lldp_send() [all …]
|
/Zephyr-latest/tests/kernel/pipe/pipe_api/src/ |
D | test_pipe_fail.c | 17 static void put_fail(struct k_pipe *p) in put_fail() argument 21 zassert_false(k_pipe_put(p, data, PIPE_LEN, &wt_byte, in put_fail() 24 zassert_equal(k_pipe_put(p, data, PIPE_LEN, &wt_byte, in put_fail() 28 zassert_equal(k_pipe_put(p, data, PIPE_LEN, &wt_byte, in put_fail() 31 zassert_equal(k_pipe_put(p, data, PIPE_LEN, &wt_byte, in put_fail() 55 struct k_pipe *p = k_object_alloc(K_OBJ_PIPE); in ZTEST_USER() local 57 zassert_true(p != NULL); in ZTEST_USER() 58 zassert_false(k_pipe_alloc_init(p, PIPE_LEN)); in ZTEST_USER() 60 zassert_equal(k_pipe_read_avail(p), 0); in ZTEST_USER() 62 zassert_equal(k_pipe_write_avail(p), PIPE_LEN); in ZTEST_USER() [all …]
|
/Zephyr-latest/tests/kernel/mem_heap/k_heap_api/src/ |
D | test_kheap_api.c | 27 char *p = (char *)k_heap_alloc(&k_heap_test, ALLOC_SIZE_1, K_NO_WAIT); in tIsr_kheap_alloc_nowait() local 29 zassert_not_null(p, "k_heap_alloc operation failed"); in tIsr_kheap_alloc_nowait() 30 k_heap_free(&k_heap_test, p); in tIsr_kheap_alloc_nowait() 35 char *p; in thread_alloc_heap() local 39 p = (char *)k_heap_alloc(&k_heap_test, ALLOC_SIZE_2, K_NO_WAIT); in thread_alloc_heap() 41 zassert_is_null(p, "k_heap_alloc should fail but did not"); in thread_alloc_heap() 43 p = (char *)k_heap_alloc(&k_heap_test, ALLOC_SIZE_2, timeout); in thread_alloc_heap() 45 zassert_not_null(p, "k_heap_alloc failed to allocate memory"); in thread_alloc_heap() 47 k_heap_free(&k_heap_test, p); in thread_alloc_heap() 52 char *p; in thread_alloc_heap_null() local [all …]
|
/Zephyr-latest/subsys/tracing/sysview/ |
D | SYSVIEW_Zephyr.txt | 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 56 53 k_queue_peek_head q=%I | Returns %p 57 54 k_queue_peek_tail q=%I | Returns %p [all …]
|
/Zephyr-latest/include/zephyr/sys/ |
D | cbprintf_internal.h | 213 * @return Number of %p format specifiers in the string. 216 ((sizeof(fmt) >= 2 && fmt[0] == '%' && fmt[1] == 'p') ? 1 : 0) + \ 217 ((sizeof(fmt) >= 3 && fmt[0] != '%' && fmt[1] == '%' && fmt[2] == 'p') ? 1 : 0) + \ 218 ((sizeof(fmt) >= 4 && fmt[1] != '%' && fmt[2] == '%' && fmt[3] == 'p') ? 1 : 0) + \ 219 ((sizeof(fmt) >= 5 && fmt[2] != '%' && fmt[3] == '%' && fmt[4] == 'p') ? 1 : 0) + \ 220 ((sizeof(fmt) >= 6 && fmt[3] != '%' && fmt[4] == '%' && fmt[5] == 'p') ? 1 : 0) + \ 221 ((sizeof(fmt) >= 7 && fmt[4] != '%' && fmt[5] == '%' && fmt[6] == 'p') ? 1 : 0) + \ 222 ((sizeof(fmt) >= 8 && fmt[5] != '%' && fmt[6] == '%' && fmt[7] == 'p') ? 1 : 0) + \ 223 ((sizeof(fmt) >= 9 && fmt[6] != '%' && fmt[7] == '%' && fmt[8] == 'p') ? 1 : 0) + \ 224 ((sizeof(fmt) >= 10 && fmt[7] != '%' && fmt[8] == '%' && fmt[9] == 'p') ? 1 : 0) + \ [all …]
|
/Zephyr-latest/tests/lib/heap_align/src/ |
D | main.c | 26 void *p, *q, *r, *s; in check_heap_align() local 28 p = sys_heap_alloc(h, prefix); in check_heap_align() 29 zassert_true(prefix == 0 || p != NULL, "prefix allocation failed"); in check_heap_align() 46 sys_heap_free(h, p); in check_heap_align() 53 p = sys_heap_alloc(h, heap_end - heap_start); in check_heap_align() 54 zassert_true(p != NULL, "heap not empty"); in check_heap_align() 57 sys_heap_free(h, p); in check_heap_align() 63 void *p, *q; in ZTEST() local 67 p = sys_heap_alloc(&heap, 1); in ZTEST() 68 zassert_true(p != NULL, "initial alloc failed"); in ZTEST() [all …]
|
/Zephyr-latest/soc/nxp/s32/common/ |
D | mc_me.c | 40 /* Partition p Process Configuration Register */ 41 #define MC_ME_PRTN_PCONF(p) (0x100 + 0x200 * (p)) argument 44 /* Partition p Process Update Register */ 45 #define MC_ME_PRTN_PUPD(p) (0x104 + 0x200 * (p)) argument 48 /* Partition p Status Register */ 49 #define MC_ME_PRTN_STAT(p) (0x108 + 0x200 * (p)) argument 52 /* Partition p COFB c Clock Status Register */ 53 #define MC_ME_PRTN_COFB_STAT(p, c) (0x110 + 0x200 * (p) + 0x4 * (c)) argument 54 /* Partition p COFB c Clock Enable Register */ 55 #define MC_ME_PRTN_COFB_CLKEN(p, c) (0x130 + 0x200 * (p) + 0x4 * (c)) argument [all …]
|