/Zephyr-Core-3.4.0/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-Core-3.4.0/drivers/ethernet/ |
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); 119 struct eth_cyclonev_priv *p) in eth_cyclonev_set_mac_addr() argument 135 sys_write32(tmpreg, EMAC_GMAC_MAC_ADDR_HIGH_ADDR(p->base_addr, n)); in eth_cyclonev_set_mac_addr() [all …]
|
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 | phy_cyclonev.c | 83 uint16_t phy_value, struct eth_cyclonev_priv *p); 85 uint16_t *rdval, struct eth_cyclonev_priv *p); 87 uint16_t phy_value, struct eth_cyclonev_priv *p); 89 uint16_t *rdval, struct eth_cyclonev_priv *p); 90 int alt_eth_phy_config(uint16_t instance, struct eth_cyclonev_priv *p); 91 int alt_eth_phy_reset(uint16_t instance, struct eth_cyclonev_priv *p); 93 uint16_t instance, struct eth_cyclonev_priv *p); 96 uint16_t phy_value, struct eth_cyclonev_priv *p) in alt_eth_phy_write_register() argument 122 sys_write32(phy_value & 0xffff, EMAC_GMAC_GMII_DATA_ADDR(p->base_addr)); in alt_eth_phy_write_register() 124 sys_write32(tmpreg & 0xffff, EMAC_GMAC_GMII_ADDR_ADDR(p->base_addr)); in alt_eth_phy_write_register() [all …]
|
/Zephyr-Core-3.4.0/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-Core-3.4.0/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-Core-3.4.0/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-Core-3.4.0/tests/kernel/mem_heap/k_heap_api/src/ |
D | test_kheap_api.c | 25 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.4.0/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 | 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 | 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 | 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 | 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 …]
|
/Zephyr-Core-3.4.0/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-Core-3.4.0/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-Core-3.4.0/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-Core-3.4.0/subsys/bluetooth/controller/ll_sw/ |
D | ull_llcp_pdu.c | 96 struct pdu_data_llctrl_unknown_rsp *p; in llcp_ntf_encode_unknown_rsp() local 101 p = &pdu->llctrl.unknown_rsp; in llcp_ntf_encode_unknown_rsp() 102 p->type = ctx->unknown_response.type; in llcp_ntf_encode_unknown_rsp() 127 struct pdu_data_llctrl_feature_req *p; in llcp_pdu_encode_feature_req() local 139 p = &pdu->llctrl.feature_req; in llcp_pdu_encode_feature_req() 140 sys_put_le64(ll_feat_get(), p->features); in llcp_pdu_encode_feature_req() 145 struct pdu_data_llctrl_feature_rsp *p; in llcp_pdu_encode_feature_rsp() local 152 p = &pdu->llctrl.feature_rsp; in llcp_pdu_encode_feature_rsp() 160 sys_put_le64(feature_rsp, p->features); in llcp_pdu_encode_feature_rsp() 165 struct pdu_data_llctrl_feature_rsp *p; in llcp_ntf_encode_feature_rsp() local [all …]
|
/Zephyr-Core-3.4.0/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-Core-3.4.0/samples/drivers/memc/src/ |
D | main.c | 15 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.4.0/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-Core-3.4.0/lib/os/ |
D | base64.c | 65 uint8_t *p; in base64_encode() local 88 for (i = 0, p = dst; i < n; i += 3) { in base64_encode() 93 *p++ = base64_enc_map[(C1 >> 2) & 0x3F]; in base64_encode() 94 *p++ = base64_enc_map[(((C1 & 3) << 4) + (C2 >> 4)) & 0x3F]; in base64_encode() 95 *p++ = base64_enc_map[(((C2 & 15) << 2) + (C3 >> 6)) & 0x3F]; in base64_encode() 96 *p++ = base64_enc_map[C3 & 0x3F]; in base64_encode() 103 *p++ = base64_enc_map[(C1 >> 2) & 0x3F]; in base64_encode() 104 *p++ = base64_enc_map[(((C1 & 3) << 4) + (C2 >> 4)) & 0x3F]; in base64_encode() 107 *p++ = base64_enc_map[((C2 & 15) << 2) & 0x3F]; in base64_encode() 109 *p++ = '='; in base64_encode() [all …]
|
/Zephyr-Core-3.4.0/subsys/net/lib/mqtt_sn/ |
D | mqtt_sn.c | 89 static int encode_and_send(struct mqtt_sn_client *client, struct mqtt_sn_param *p) in encode_and_send() argument 93 err = mqtt_sn_encode_msg(&client->tx, p); in encode_and_send() 347 struct mqtt_sn_param p = {.type = MQTT_SN_MSG_TYPE_SUBSCRIBE}; in mqtt_sn_do_subscribe() local 358 p.params.subscribe.msg_id = topic->con.msg_id; in mqtt_sn_do_subscribe() 359 p.params.subscribe.qos = topic->qos; in mqtt_sn_do_subscribe() 360 p.params.subscribe.topic_type = topic->type; in mqtt_sn_do_subscribe() 361 p.params.subscribe.dup = dup; in mqtt_sn_do_subscribe() 364 p.params.subscribe.topic.topic_name.data = topic->name; in mqtt_sn_do_subscribe() 365 p.params.subscribe.topic.topic_name.size = topic->namelen; in mqtt_sn_do_subscribe() 369 p.params.subscribe.topic.topic_id = topic->topic_id; in mqtt_sn_do_subscribe() [all …]
|
/Zephyr-Core-3.4.0/include/zephyr/usb/ |
D | usb_device.h | 54 #define USBD_DEVICE_DESCR_DEFINE(p) \ argument 55 static __in_section(usb, descriptor_##p, 0) __used __aligned(1) 56 #define USBD_CLASS_DESCR_DEFINE(p, instance) \ argument 57 static __in_section(usb, descriptor_##p.1, instance) __used __aligned(1) 58 #define USBD_MISC_DESCR_DEFINE(p) \ argument 59 static __in_section(usb, descriptor_##p, 2) __used __aligned(1) 60 #define USBD_USER_DESCR_DEFINE(p) \ argument 61 static __in_section(usb, descriptor_##p, 3) __used __aligned(1) 62 #define USBD_STRING_DESCR_DEFINE(p) \ argument 63 static __in_section(usb, descriptor_##p, 4) __used __aligned(1) [all …]
|
/Zephyr-Core-3.4.0/include/zephyr/dt-bindings/pinctrl/ |
D | mchp-xec-pinctrl.h | 66 #define MCHP_XEC_PINMUX_PORT(p) \ argument 67 (((p) >> MCHP_XEC_PINMUX_PORT_POS) & MCHP_XEC_PINMUX_PORT_MSK) 69 #define MCHP_XEC_PINMUX_PIN(p) \ argument 70 (((p) >> MCHP_XEC_PINMUX_PIN_POS) & MCHP_XEC_PINMUX_PIN_MSK) 72 #define MCHP_XEC_PINMUX_FUNC(p) \ argument 73 (((p) >> MCHP_XEC_PINMUX_FUNC_POS) & MCHP_XEC_PINMUX_FUNC_MSK) 75 #define MEC_XEC_PINMUX_PORT_PIN(p) \ argument 76 ((p) & ((MCHP_XEC_PINMUX_PORT_MSK << MCHP_XEC_PINMUX_PORT_POS) | \
|