Home
last modified time | relevance | path

Searched +full:- +full:p (Results 1 – 25 of 1060) sorted by relevance

12345678910>>...43

/Zephyr-latest/tests/bluetooth/bt_crypto_ccm/src/
Dtest_bt_crypto_ccm.c2 * SPDX-License-Identifier: Apache-2.0
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()
[all …]
/Zephyr-latest/scripts/coccinelle/
Dsemicolon.cocci8 // Options: --no-includes --include-headers
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;
[all …]
Dint_ms_to_timeout.cocci1 // Copyright (c) 2019-2020 Nordic Semiconductor ASA
2 // SPDX-License-Identifier: Apache-2.0
14 // Options: --include-headers
48 position p;
50 last_timeout@p(..., D)
60 position p != r_last_timeout_id.p;
62 last_timeout@p(...,
64 - 0
67 - -1
70 - C
[all …]
Dreserved_names.cocci2 // https://gitlab.com/MISRA/MISRA-C/MISRA-C-2012/Example-Suite/-/blob/master/R_21_02.c
7 // SPDX-License-Identifier: Apache-2.0
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;
[all …]
Dsame_identifier.cocci2 // https://gitlab.com/MISRA/MISRA-C/MISRA-C-2012/Example-Suite/-/blob/master/R_05_07.c
7 // SPDX-License-Identifier: Apache-2.0
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;
[all …]
Dboolean.cocci2 // https://gitlab.com/MISRA/MISRA-C/MISRA-C-2012/Example-Suite/-/blob/master/R_14_04.c
7 // SPDX-License-Identifier: Apache-2.0
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;
[all …]
Dunsigned_suffix.cocci5 // SPDX-License-Identifier: Apache-2.0
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
[all …]
/Zephyr-latest/drivers/ethernet/
Deth_dwmac.c6 * SPDX-License-Identifier: Apache-2.0
27 * This driver references network data fragments with a zero-copy approach.
30 * and subsequent fragments have to be buswidth-aligned anyway.
38 /* size of pre-allocated packet fragments */
51 #define DEC_WRAP(idx, size) ({ idx = (idx + size - 1) % size; })
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])
[all …]
Deth_cyclonev.c2 * SPDX-License-Identifier: Apache-2.0
5 * 3504-0 Universal 10/100/1000 Ethernet MAC (DWC_gmac)
9 * https://github.com/altera-opensource/intel-socfpga-hwlib
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);
[all …]
Dphy_cyclonev.c4 * SPDX-License-Identifier: Apache-2.0
8 * downloads/en/DeviceDoc/KSZ9021RL-RN-Data-Sheet-DS00003050A.pdf)
51 #define PHY_AUTOCAP BIT(3) /* Auto-negotiation capability */
55 /* Auto-Negotiation Advertisement */
64 /* 1000Base-T Control */
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);
[all …]
/Zephyr-latest/lib/libc/minimal/source/stdout/
Dsprintf.c4 * Copyright (c) 1997-2010, 2013-2014 Wind River Systems, Inc.
6 * SPDX-License-Identifier: Apache-2.0
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()
[all …]
/Zephyr-latest/subsys/mgmt/osdp/src/
Dosdp.c4 * SPDX-License-Identifier: Apache-2.0
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
[all …]
/Zephyr-latest/tests/bluetooth/controller/common/src/
Dhelper_pdu.c5 * SPDX-License-Identifier: Apache-2.0
47 zassert_mem_equal(_s._f, _p->_f, sizeof(_p->_f), _t "\nCalled at %s:%d\n", file, line);
51 pdu->ll_id = PDU_DATA_LLID_CTRL; in helper_pdu_encode_ping_req()
52 pdu->len = offsetof(struct pdu_data_llctrl, ping_req) + in helper_pdu_encode_ping_req()
54 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_PING_REQ; in helper_pdu_encode_ping_req()
59 pdu->ll_id = PDU_DATA_LLID_CTRL; in helper_pdu_encode_ping_rsp()
60 pdu->len = offsetof(struct pdu_data_llctrl, ping_rsp) + in helper_pdu_encode_ping_rsp()
62 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_PING_RSP; in helper_pdu_encode_ping_rsp()
69 pdu->ll_id = PDU_DATA_LLID_CTRL; in helper_pdu_encode_feature_req()
70 pdu->len = offsetof(struct pdu_data_llctrl, feature_req) + in helper_pdu_encode_feature_req()
[all …]
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/
Dull_llcp_pdu.c4 * SPDX-License-Identifier: Apache-2.0
71 pdu->ll_id = PDU_DATA_LLID_CTRL; in llcp_pdu_encode_ping_req()
72 pdu->len = PDU_DATA_LLCTRL_LEN(ping_req); in llcp_pdu_encode_ping_req()
73 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_PING_REQ; in llcp_pdu_encode_ping_req()
78 pdu->ll_id = PDU_DATA_LLID_CTRL; in llcp_pdu_encode_ping_rsp()
79 pdu->len = PDU_DATA_LLCTRL_LEN(ping_rsp); in llcp_pdu_encode_ping_rsp()
80 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_PING_RSP; in llcp_pdu_encode_ping_rsp()
89 pdu->ll_id = PDU_DATA_LLID_CTRL; in llcp_pdu_encode_unknown_rsp()
90 pdu->len = PDU_DATA_LLCTRL_LEN(unknown_rsp); in llcp_pdu_encode_unknown_rsp()
91 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_UNKNOWN_RSP; in llcp_pdu_encode_unknown_rsp()
[all …]
/Zephyr-latest/scripts/pylib/twister/
Dexpr_parser.py5 # SPDX-License-Identifier: Apache-2.0
51 r"0x[0-9a-fA-F]+"
63 t.value = t.value[1:-1]
91 r"[A-Za-z_][0-9A-Za-z_]*"
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])
[all …]
/Zephyr-latest/tests/benchmarks/latency_measure/
Dtestcase.yaml3 - arch
5 - kernel
6 - benchmark
11 - qemu_cortex_m0
12 - m2gl025_miv
16 - qemu_x86
17 - qemu_arc/qemu_arc_em
18 - qemu_riscv64/qemu_virt_riscv64/smp
22 regex: "(?P<metric>.*) - (?P<description>.*):(?P<cycles>.*) cycles ,(?P<nanoseconds>.*) ns"
24 - "PROJECT EXECUTION SUCCESSFUL"
[all …]
/Zephyr-latest/subsys/logging/
Dlog_output_syst.c4 * SPDX-License-Identifier: Apache-2.0
34 static const char pattern[] = "SYS-T RAW DATA: ";
42 out_ctx->buf[out_ctx->control_block->offset] = (uint8_t)c; in out_func()
43 out_ctx->control_block->offset++; in out_func()
45 __ASSERT_NO_MSG(out_ctx->control_block->offset <= out_ctx->size); in out_func()
47 if (out_ctx->control_block->offset == out_ctx->size) { in out_func()
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()
[all …]
/Zephyr-latest/samples/net/dsa/src/
Ddsa_lldp.c4 * SPDX-License-Identifier: Apache-2.0
39 uint8_t *p = &buffer[sizeof(struct net_eth_hdr)]; in dsa_lldp_send() local
40 uint8_t *pb = p; in dsa_lldp_send()
42 lan = ctx->dsa_port_idx; in dsa_lldp_send()
49 memcpy(eth_hdr->src.addr, net_if_get_link_addr(iface)->addr, ETH_ALEN); in dsa_lldp_send()
50 eth_hdr->dst.addr[0] = MCAST_DEST_MAC0; in dsa_lldp_send()
51 eth_hdr->dst.addr[1] = MCAST_DEST_MAC1; in dsa_lldp_send()
52 eth_hdr->dst.addr[2] = MCAST_DEST_MAC2; in dsa_lldp_send()
53 eth_hdr->dst.addr[3] = MCAST_DEST_MAC3; in dsa_lldp_send()
54 eth_hdr->dst.addr[4] = MCAST_DEST_MAC4; in dsa_lldp_send()
[all …]
/Zephyr-latest/subsys/tracing/test/
Dtracing_string_format_test.c4 * SPDX-License-Identifier: Apache-2.0
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()
[all …]
/Zephyr-latest/tests/kernel/pipe/pipe_api/src/
Dtest_pipe_fail.c4 * SPDX-License-Identifier: Apache-2.0
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()
23 /**TESTPOINT: pipe put returns -EIO*/ in put_fail()
24 zassert_equal(k_pipe_put(p, data, PIPE_LEN, &wt_byte, in put_fail()
25 1, K_NO_WAIT), -EIO, NULL); in put_fail()
27 /**TESTPOINT: pipe put returns -EAGAIN*/ in put_fail()
28 zassert_equal(k_pipe_put(p, data, PIPE_LEN, &wt_byte, in put_fail()
29 1, TIMEOUT), -EAGAIN, NULL); in put_fail()
31 zassert_equal(k_pipe_put(p, data, PIPE_LEN, &wt_byte, in put_fail()
[all …]
/Zephyr-latest/subsys/tracing/sysview/
DSYSVIEW_Zephyr.txt12-1=EPERM -2=ENOENT -3=ESRCH -4=EINTR -5=EIO -6=ENXIO …
13 NamedType ErrCodeMath *=%i 0=ESUCCESS -37=EDOM -38=ERANGE
14-40=EDESTADDRREQ -41=EPROTOTYPE -42=ENOPROTOOPT -43=EPROTONOSUPPORT -44=ESOCKTNOSUPPORT -45=EOPNO…
15-51=ENETUNREACH -52=ENETRESET -53=ECONNABORTED -54=ECONNRESET -55=ENOBUFS -56=EISCO…
16 NamedType ErrCodeNetIO *=%i 0=ESUCCESS -68=EINPROGRESS -69=EALREADY -11=EWOULDBLOCK -71=ENOSYS
17 …*=%i 0=ESUCCESS -74=ENOSR -75=ENOSTR -76=EPROTO -77=EBADMSG -78=ENODATA …
18 NamedType ErrCodeMsg *=%i 0=ESUCCESS -11=EAGAIN -80=ENOMSG
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)
[all …]
/Zephyr-latest/tests/kernel/mem_heap/k_heap_api/src/
Dtest_kheap_api.c4 * SPDX-License-Identifier: Apache-2.0
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()
[all …]
/Zephyr-latest/tests/lib/heap_align/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
20 * are returned low-address to high, and that freed blocks are merged
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()
33 zassert_true((((uintptr_t)q) & (align - 1)) == 0, "block not aligned"); in check_heap_align()
37 zassert_true((((uintptr_t)r) & (align - 1)) == 0, "block not aligned"); in check_heap_align()
42 s = sys_heap_alloc(h, (heap_end - (uint8_t *)r) - size - 8); 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()
[all …]
/Zephyr-latest/include/zephyr/sys/
Dhash_map.h4 * SPDX-License-Identifier: Apache-2.0
36 * @note The allocator @p _alloc is used for allocating internal Hashmap
37 * entries and does not interact with any user-provided keys or values.
45 * @param ... Variant-specific details for @p _config_type.
64 * @note The allocator @p _alloc is used for allocating internal Hashmap
65 * entries and does not interact with any user-provided keys or values.
73 * @param ... Variant-specific details for @p _config_type.
143 * @param cookie User-specified variable
150 for (map->api->iter(map, &it); sys_hashmap_iterator_has_next(&it);) { in sys_hashmap_foreach()
163 * @param cookie User-specified variable
[all …]
/Zephyr-latest/scripts/pylib/pytest-twister-harness/
DREADME.rst6 ------------
11 ``-p twister_harness.plugin`` argument.
15 -----
19 .. code-block:: sh
24 ./scripts/twister -p native_sim -p qemu_x86 -T samples/subsys/testsuite/pytest/shell
27 …./scripts/twister -p nrf52840dk/nrf52840 --device-testing --device-serial /dev/ttyACM0 -T samples/…
31 .. code-block:: sh
33 export PYTHONPATH=${ZEPHYR_BASE}/scripts/pylib/pytest-twister-harness/src:${PYTHONPATH}
38 west build -p -b native_sim -- -DCONFIG_NATIVE_UART_0_ON_STDINOUT=y
39 pytest --twister-harness --device-type=native --build-dir=build -p twister_harness.plugin
[all …]

12345678910>>...43