Home
last modified time | relevance | path

Searched full:p (Results 1 – 25 of 1310) sorted by relevance

12345678910>>...53

/Zephyr-Core-3.5.0/tests/bluetooth/bt_crypto_ccm/src/
Dtest_bt_crypto_ccm.c27 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-Core-3.5.0/scripts/coccinelle/
Dsemicolon.cocci16 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 …]
Dint_ms_to_timeout.cocci48 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 …]
Dreserved_names.cocci15 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 …]
Dsame_identifier.cocci15 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 …]
Dboolean.cocci37 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 …]
Dunsigned_suffix.cocci15 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 …]
Dunsigned_lesser_than_zero.cocci13 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-Core-3.5.0/drivers/ethernet/
Deth_dwmac.c59 #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 …]
Deth_cyclonev.c38 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-Core-3.5.0/lib/libc/minimal/source/stdout/
Dsprintf.c18 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-Core-3.5.0/subsys/tracing/test/
Dtracing_string_format_test.c19 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-Core-3.5.0/subsys/mgmt/osdp/src/
Dosdp.c49 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-Core-3.5.0/scripts/pylib/twister/
Dexpr_parser.py109 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-Core-3.5.0/tests/bluetooth/controller/common/src/
Dhelper_pdu.c112 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-Core-3.5.0/subsys/bluetooth/controller/ll_sw/
Dull_llcp_pdu.c97 struct pdu_data_llctrl_unknown_rsp *p; in llcp_ntf_encode_unknown_rsp() local
102 p = &pdu->llctrl.unknown_rsp; in llcp_ntf_encode_unknown_rsp()
103 p->type = ctx->unknown_response.type; in llcp_ntf_encode_unknown_rsp()
128 struct pdu_data_llctrl_feature_req *p; in llcp_pdu_encode_feature_req() local
140 p = &pdu->llctrl.feature_req; in llcp_pdu_encode_feature_req()
141 sys_put_le64(ll_feat_get(), p->features); in llcp_pdu_encode_feature_req()
146 struct pdu_data_llctrl_feature_rsp *p; in llcp_pdu_encode_feature_rsp() local
153 p = &pdu->llctrl.feature_rsp; in llcp_pdu_encode_feature_rsp()
161 sys_put_le64(feature_rsp, p->features); in llcp_pdu_encode_feature_rsp()
166 struct pdu_data_llctrl_feature_rsp *p; in llcp_ntf_encode_feature_rsp() local
[all …]
/Zephyr-Core-3.5.0/subsys/logging/
Dlog_output_syst.c56 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-Core-3.5.0/samples/net/dsa/src/
Ddsa_lldp.c39 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-Core-3.5.0/tests/kernel/pipe/pipe_api/src/
Dtest_pipe_fail.c17 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-Core-3.5.0/subsys/tracing/sysview/
DSYSVIEW_Zephyr.txt47 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-Core-3.5.0/tests/kernel/mem_heap/k_heap_api/src/
Dtest_kheap_api.c25 char *p = (char *)k_heap_alloc(&k_heap_test, ALLOC_SIZE_1, K_NO_WAIT); in tIsr_kheap_alloc_nowait() local
27 zassert_not_null(p, "k_heap_alloc operation failed"); in tIsr_kheap_alloc_nowait()
28 k_heap_free(&k_heap_test, p); in tIsr_kheap_alloc_nowait()
33 char *p; in thread_alloc_heap() local
37 p = (char *)k_heap_alloc(&k_heap_test, ALLOC_SIZE_2, K_NO_WAIT); in thread_alloc_heap()
39 zassert_is_null(p, "k_heap_alloc should fail but did not"); in thread_alloc_heap()
41 p = (char *)k_heap_alloc(&k_heap_test, ALLOC_SIZE_2, timeout); in thread_alloc_heap()
43 zassert_not_null(p, "k_heap_alloc failed to allocate memory"); in thread_alloc_heap()
45 k_heap_free(&k_heap_test, p); in thread_alloc_heap()
50 char *p; in thread_alloc_heap_null() local
[all …]
/Zephyr-Core-3.5.0/subsys/net/lib/mqtt_sn/
Dmqtt_sn.c74 LOG_DBG("Client %p state (%d) -> (%d)", client, prev_state, state); in mqtt_sn_set_state()
88 static int encode_and_send(struct mqtt_sn_client *client, struct mqtt_sn_param *p) in encode_and_send() argument
92 err = mqtt_sn_encode_msg(&client->tx, p); in encode_and_send()
322 struct mqtt_sn_param p = {.type = MQTT_SN_MSG_TYPE_SUBSCRIBE}; in mqtt_sn_do_subscribe() local
333 p.params.subscribe.msg_id = topic->con.msg_id; in mqtt_sn_do_subscribe()
334 p.params.subscribe.qos = topic->qos; in mqtt_sn_do_subscribe()
335 p.params.subscribe.topic_type = topic->type; in mqtt_sn_do_subscribe()
336 p.params.subscribe.dup = dup; in mqtt_sn_do_subscribe()
339 p.params.subscribe.topic.topic_name.data = topic->name; in mqtt_sn_do_subscribe()
340 p.params.subscribe.topic.topic_name.size = topic->namelen; in mqtt_sn_do_subscribe()
[all …]
/Zephyr-Core-3.5.0/include/zephyr/sys/
Dutil.h44 /** @brief Cast @p x, a pointer, to an unsigned integer. */
46 /** @brief Cast @p x, an unsigned integer, to a <tt>void*</tt>. */
48 /** @brief Cast @p x, a pointer, to a signed integer. */
50 /** @brief Cast @p x, a signed integer, to a <tt>void*</tt>. */
64 * @brief Create a contiguous bitmask starting at bit position @p l
65 * and ending at position @p h.
71 * @brief Create a contiguous 64-bit bitmask starting at bit position @p l
72 * and ending at position @p h.
77 /** @brief Extract the Least Significant Bit from @p value. */
81 * @brief Extract a bitfield element from @p value corresponding to
[all …]
/Zephyr-Core-3.5.0/samples/drivers/memc/src/
Dmain.c15 void dump_memory(uint8_t *p, uint32_t size) in dump_memory() argument
21 p[i], p[i+1], p[i+2], p[i+3], in dump_memory()
22 p[i+4], p[i+5], p[i+6], p[i+7]); in dump_memory()
24 p[i+8], p[i+9], p[i+10], p[i+11], in dump_memory()
25 p[i+12], p[i+13], p[i+14], p[i+15]); in dump_memory()
33 printk("%02x ", p[i]); in dump_memory()
/Zephyr-Core-3.5.0/tests/lib/heap_align/src/
Dmain.c26 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 …]

12345678910>>...53