Home
last modified time | relevance | path

Searched refs:p (Results 1 – 25 of 354) sorted by relevance

12345678910>>...15

/Zephyr-Core-2.7.6/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-2.7.6/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-2.7.6/subsys/mgmt/osdp/src/
Dosdp.c51 static void osdp_handle_in_byte(struct osdp_device *p, uint8_t *buf, int len) in osdp_handle_in_byte() argument
53 if (p->wait_for_mark) { in osdp_handle_in_byte()
55 if (p->last_byte == 0xFF && buf[0] == 0x53) { in osdp_handle_in_byte()
57 ring_buf_put(&p->rx_buf, buf, 1); /* put last byte */ in osdp_handle_in_byte()
59 ring_buf_put(&p->rx_buf, buf, len); /* put rest */ in osdp_handle_in_byte()
60 p->wait_for_mark = 0; /* Mark found. Clear flag */ in osdp_handle_in_byte()
62 p->last_byte = buf[0]; in osdp_handle_in_byte()
65 ring_buf_put(&p->rx_buf, buf, len); in osdp_handle_in_byte()
72 struct osdp_device *p = user_data; in osdp_uart_isr() local
79 osdp_handle_in_byte(p, buf, len); in osdp_uart_isr()
[all …]
Dosdp_common.h18 #define ISSET_FLAG(p, f) (((p)->flags & (f)) == (f)) argument
19 #define SET_FLAG(p, f) ((p)->flags |= (f)) argument
20 #define CLEAR_FLAG(p, f) ((p)->flags &= ~(f)) argument
28 #define TO_OSDP(p) ((struct osdp *)p) argument
29 #define TO_CP(p) (((struct osdp *)(p))->cp) argument
30 #define TO_PD(p, i) (((struct osdp *)(p))->pd + i) argument
31 #define TO_CTX(p) ((struct osdp *)p->__parent) argument
33 #define GET_CURRENT_PD(p) (TO_CP(p)->current_pd) argument
34 #define SET_CURRENT_PD(p, i) \ argument
36 TO_CP(p)->current_pd = TO_PD(p, i); \
[all …]
/Zephyr-Core-2.7.6/boards/riscv/hifive1/
Dpinmux.c15 const struct device *p = DEVICE_DT_GET(DT_NODELABEL(pinctrl)); in hifive1_pinmux_init() local
17 __ASSERT_NO_MSG(device_is_ready(p)); in hifive1_pinmux_init()
20 pinmux_pin_set(p, 16, SIFIVE_PINMUX_IOF0); in hifive1_pinmux_init()
23 pinmux_pin_set(p, 17, SIFIVE_PINMUX_IOF0); in hifive1_pinmux_init()
26 pinmux_pin_set(p, 2, SIFIVE_PINMUX_IOF0); /* CS0 */ in hifive1_pinmux_init()
27 pinmux_pin_set(p, 3, SIFIVE_PINMUX_IOF0); /* MOSI */ in hifive1_pinmux_init()
28 pinmux_pin_set(p, 4, SIFIVE_PINMUX_IOF0); /* MISO */ in hifive1_pinmux_init()
29 pinmux_pin_set(p, 5, SIFIVE_PINMUX_IOF0); /* SCK */ in hifive1_pinmux_init()
30 pinmux_pin_set(p, 9, SIFIVE_PINMUX_IOF0); /* CS2 */ in hifive1_pinmux_init()
31 pinmux_pin_set(p, 10, SIFIVE_PINMUX_IOF0); /* CS3 */ in hifive1_pinmux_init()
[all …]
/Zephyr-Core-2.7.6/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 test_pipe_user_put_fail() local
57 zassert_true(p != NULL, NULL); in test_pipe_user_put_fail()
58 zassert_false(k_pipe_alloc_init(p, PIPE_LEN), NULL); in test_pipe_user_put_fail()
60 zassert_equal(k_pipe_read_avail(p), 0, NULL); in test_pipe_user_put_fail()
62 zassert_equal(k_pipe_write_avail(p), PIPE_LEN, NULL); in test_pipe_user_put_fail()
[all …]
/Zephyr-Core-2.7.6/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 …]
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 …]
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 …]
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 …]
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 …]
Dnoderef.cocci54 position p;
59 *x = <+... sizeof@p(x) ...+>
61 *f(...,(T)(x),...,sizeof@p(x),...)
63 *f(...,sizeof@p(x),...,(T)(x),...)
65 *f(...,(T)(x),...,i*sizeof@p(x),...)
67 *f(...,i*sizeof@p(x),...,(T)(x),...)
71 p << r.p;
74 cocci.print_main("application of sizeof to pointer",p)
77 p << r.p;
81 coccilib.report.print_report(p[0],msg)
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-2.7.6/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-2.7.6/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()
35 char *p = (char *)k_heap_alloc(&k_heap_test, ALLOC_SIZE_2, timeout); in thread_alloc_heap() local
37 zassert_not_null(p, "k_heap_alloc operation failed"); in thread_alloc_heap()
38 k_heap_free(&k_heap_test, p); in thread_alloc_heap()
92 char *p = (char *)k_heap_alloc(&k_heap_test, ALLOC_SIZE_1, timeout); in test_k_heap_alloc() local
94 zassert_not_null(p, "k_heap_alloc operation failed"); in test_k_heap_alloc()
97 p[i] = '0'; in test_k_heap_alloc()
99 k_heap_free(&k_heap_test, p); in test_k_heap_alloc()
[all …]
/Zephyr-Core-2.7.6/subsys/logging/
Dlog_output_syst.c49 struct stp_writer_data *p, mipi_syst_u8 n) in stp_write_putNibble() argument
51 p->current |= (n << 4); in stp_write_putNibble()
52 p->byteDone = !p->byteDone; in stp_write_putNibble()
54 if (p->byteDone) { in stp_write_putNibble()
55 out_func(p->current, systh->systh_platform.log_output); in stp_write_putNibble()
56 p->current = 0; in stp_write_putNibble()
58 p->current >>= 4; in stp_write_putNibble()
63 struct stp_writer_data *p) in stp_write_flush() argument
65 if (!p->byteDone) { in stp_write_flush()
66 stp_write_putNibble(systh, p, 0); in stp_write_flush()
[all …]
/Zephyr-Core-2.7.6/boards/riscv/hifive1_revb/
Dpinmux.c15 const struct device *p = DEVICE_DT_GET(DT_NODELABEL(pinctrl)); in hifive1_revb_pinmux_init() local
17 __ASSERT_NO_MSG(device_is_ready(p)); in hifive1_revb_pinmux_init()
22 pinmux_pin_set(p, 16, SIFIVE_PINMUX_IOF0); in hifive1_revb_pinmux_init()
24 pinmux_pin_set(p, 17, SIFIVE_PINMUX_IOF0); in hifive1_revb_pinmux_init()
30 pinmux_pin_set(p, 2, SIFIVE_PINMUX_IOF0); /* SS0 */ in hifive1_revb_pinmux_init()
31 pinmux_pin_set(p, 3, SIFIVE_PINMUX_IOF0); /* MOSI */ in hifive1_revb_pinmux_init()
32 pinmux_pin_set(p, 4, SIFIVE_PINMUX_IOF0); /* MISO */ in hifive1_revb_pinmux_init()
33 pinmux_pin_set(p, 5, SIFIVE_PINMUX_IOF0); /* SCK */ in hifive1_revb_pinmux_init()
34 pinmux_pin_set(p, 9, SIFIVE_PINMUX_IOF0); /* SS2 */ in hifive1_revb_pinmux_init()
35 pinmux_pin_set(p, 10, SIFIVE_PINMUX_IOF0); /* SS3 */ in hifive1_revb_pinmux_init()
[all …]
/Zephyr-Core-2.7.6/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 test_aligned_alloc() local
67 p = sys_heap_alloc(&heap, 1); in test_aligned_alloc()
68 zassert_true(p != NULL, "initial alloc failed"); in test_aligned_alloc()
[all …]
/Zephyr-Core-2.7.6/lib/os/
Dbase64.c65 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-2.7.6/subsys/tracing/sysview/
DSYSVIEW_Zephyr.txt48 44 k_queue_append q=%I, data=%p | Returns (void)(%ErrCodePosix)
49 45 k_queue_alloc_append q=%I, data=%p | Returns %ErrCodePosix
50 46 k_queue_prepend q=%I, data=%p | Returns (void)(%ErrCodePosix)
51 47 k_queue_alloc_prepend q=%I, data=%p | Returns %ErrCodePosix
52 48 k_queue_insert q=%I, data=%p | Returns (void)(%ErrCodePosix)
53 49 k_queue_append_list q=%I, head=%p, tail=%p | Returns %ErrCodePosix
54 50 k_queue_get q=%I, Timeout=%TimeOut | Returns %p
55 51 k_queue_remove q=%I, data=%p | Returns &Bool
57 53 k_queue_peek_head q=%I | Returns %p
58 54 k_queue_peek_tail q=%I | Returns %p
[all …]
/Zephyr-Core-2.7.6/include/usb/
Dusb_device.h53 #define USBD_DEVICE_DESCR_DEFINE(p) \ argument
54 static __in_section(usb, descriptor_##p, 0) __used __aligned(1)
55 #define USBD_CLASS_DESCR_DEFINE(p, instance) \ argument
56 static __in_section(usb, descriptor_##p.1, instance) __used __aligned(1)
57 #define USBD_MISC_DESCR_DEFINE(p) \ argument
58 static __in_section(usb, descriptor_##p, 2) __used __aligned(1)
59 #define USBD_USER_DESCR_DEFINE(p) \ argument
60 static __in_section(usb, descriptor_##p, 3) __used __aligned(1)
61 #define USBD_STRING_DESCR_DEFINE(p) \ argument
62 static __in_section(usb, descriptor_##p, 4) __used __aligned(1)
[all …]
/Zephyr-Core-2.7.6/samples/net/sockets/big_http_download/src/
Dbig_http_download.c131 void print_hex(const unsigned char *p, int len) in print_hex() argument
134 printf("%02x", *p++); in print_hex()
243 char *p; in main() local
258 p = download_url + SSTRLEN("http://"); in main()
264 p = download_url + SSTRLEN("https://"); in main()
275 host = p; in main()
276 while (*p && *p != ':' && *p != '/') { in main()
277 p++; in main()
281 if (*p == ':') { in main()
282 *p++ = 0; in main()
[all …]
/Zephyr-Core-2.7.6/samples/net/sockets/coap_client/src/
Dcoap-client.c133 const char * const *p; in send_simple_coap_request() local
151 for (p = test_path; p && *p; p++) { in send_simple_coap_request()
153 *p, strlen(*p)); in send_simple_coap_request()
315 const char * const *p; in send_large_coap_request() local
338 for (p = large_path; p && *p; p++) { in send_large_coap_request()
340 *p, strlen(*p)); in send_large_coap_request()
478 const char * const *p; in send_obs_coap_request() local
502 for (p = obs_path; p && *p; p++) { in send_obs_coap_request()
504 *p, strlen(*p)); in send_obs_coap_request()
524 const char * const *p; in send_obs_reset_coap_request() local
[all …]
/Zephyr-Core-2.7.6/subsys/bluetooth/controller/ll_sw/nordic/lll/
Dlll_adv.c61 static int prepare_cb(struct lll_prepare_param *p);
258 struct pdu_adv *p; in lll_adv_data_init() local
260 p = mem_acquire(&mem_pdu.free); in lll_adv_data_init()
261 if (!p) { in lll_adv_data_init()
265 p->len = 0U; in lll_adv_data_init()
266 pdu->pdu[0] = (void *)p; in lll_adv_data_init()
298 void *p; in lll_adv_data_release() local
301 p = pdu->pdu[last]; in lll_adv_data_release()
303 mem_release(p, &mem_pdu.free); in lll_adv_data_release()
309 p = pdu->pdu[last]; in lll_adv_data_release()
[all …]

12345678910>>...15