/Zephyr-Core-2.7.6/scripts/coccinelle/ |
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 | 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 | 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)
|
D | noderef.cocci | 54 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)
|
D | ms_timeout.cocci | 45 position p; 47 fn@p(..., 60 p << report_fn_l1.p; 63 coccilib.report.print_report(p[0], msg); 101 position p; 103 fn@p(..., 116 p << report_fn_l2.p; 119 coccilib.report.print_report(p[0], msg); 159 position p; 161 fn@p(..., [all …]
|
/Zephyr-Core-2.7.6/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-2.7.6/subsys/mgmt/osdp/src/ |
D | osdp.c | 51 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 …]
|
/Zephyr-Core-2.7.6/subsys/tracing/test/ |
D | tracing_string_format_test.c | 16 TRACING_STRING("%s: %p\n", __func__, thread); in sys_trace_k_thread_switched_out() 24 TRACING_STRING("%s: %p\n", __func__, thread); in sys_trace_k_thread_switched_in() 29 TRACING_STRING("%s: %p\n", __func__, thread); in sys_trace_k_thread_priority_set() 35 TRACING_STRING("%s: %p\n", __func__, thread); in sys_trace_k_thread_create() 40 TRACING_STRING("%s: %p\n", __func__, thread); in sys_trace_k_thread_start() 45 TRACING_STRING("%s: %p\n", __func__, thread); in sys_trace_k_thread_abort() 50 TRACING_STRING("%s: %p\n", __func__, thread); in sys_trace_k_thread_suspend() 55 TRACING_STRING("%s: %p\n", __func__, thread); in sys_trace_k_thread_resume() 60 TRACING_STRING("%s: %p\n", __func__, thread); in sys_trace_k_thread_ready() 65 TRACING_STRING("%s: %p\n", __func__, thread); in sys_trace_k_thread_sched_ready() [all …]
|
/Zephyr-Core-2.7.6/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-2.7.6/boards/riscv/hifive1/ |
D | pinmux.c | 15 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/subsys/logging/ |
D | log_output_syst.c | 49 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/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-2.7.6/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 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/boards/riscv/hifive1_revb/ |
D | pinmux.c | 15 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/subsys/tracing/sysview/ |
D | SYSVIEW_Zephyr.txt | 48 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/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() 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/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 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/include/sys/ |
D | util_macro.h | 41 * @brief Unsigned integer with bit position @p n set (signed in 48 /** @brief 64-bit unsigned integer with bit position @p _n set. */ 54 * The argument @p var is a variable whose value is written to as a 59 * @param set if 0, clears @p bit in @p var; any other value sets @p bit 66 * or 0 if @p n is 0. 72 * or 0 if @p n is 0. 83 * the preprocessor. It is often used with a @p CONFIG_FOO macro which 95 * for @p do_something_with_foo even when @p CONFIG_FOO is undefined. 98 * @return 1 if @p config_macro is defined to 1, 0 otherwise (including 99 * if @p config_macro is not defined) [all …]
|
D | util.h | 39 /** @brief Cast @p x, a pointer, to an unsigned integer. */ 41 /** @brief Cast @p x, an unsigned integer, to a <tt>void*</tt>. */ 43 /** @brief Cast @p x, a pointer, to a signed integer. */ 45 /** @brief Cast @p x, a signed integer, to a <tt>void*</tt>. */ 56 * @brief Create a contiguous bitmask starting at bit position @p l 57 * and ending at position @p h. 62 /** @brief 0 if @p cond is true-ish; causes a compile error otherwise. */ 92 * @brief Zero if @p array has an array type, a compile error otherwise 102 * @brief Number of elements in the given @p array 104 * In C++, due to language limitations, this will accept as @p array [all …]
|
/Zephyr-Core-2.7.6/subsys/net/lib/dns/ |
D | dns_sd.h | 53 * @param size array of sizes for each buffer in @p label 54 * @param[inout] n number of elements in @p label and @p size 56 * @return on success, number of bytes read from @p query 67 * This function zero-initializes @p record and populates the appropriate 68 * fields so that @p record may be subsequently passed to @ref dns_sd_rec_match. 81 * @param service_size the size of @p service 83 * @param proto_size the size of @p proto 85 * @param domain_size the size of @p domain 96 * @brief See if the DNS SD @p filter matches the @p record 98 * The fields in @p filter should be populated with filter elements to [all …]
|
/Zephyr-Core-2.7.6/scripts/release/ |
D | list_backports.py | 24 -P 45074 -P 45868 -P 44918 -P 41234 -P 41174 \ 30 -p 43381 \ 72 parser.add_argument('-p', '--include-pull', dest='includes', 75 parser.add_argument('-P', '--exclude-pull', dest='excludes', 140 for p in unfiltered_pulls: 141 if not p.merged: 145 if p.closed_at < start_date or p.closed_at >= end_date + timedelta(1): 149 if p.number in excludes: 153 pulls.append(p) 169 p = repo.get_pull(i) [all …]
|