/Zephyr-latest/tests/lib/heap_align/src/ |
D | main.c | 24 size_t prefix, size_t align, size_t size) in check_heap_align() argument 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() 44 prefix, align, size); in check_heap_align() 78 for (size_t prefix = 0; prefix <= align; prefix += 8) { in ZTEST() local 80 check_heap_align(&heap, prefix, align, size); in ZTEST()
|
/Zephyr-latest/subsys/net/ip/ |
D | ipv6_pe.c | 91 static bool ipv6_pe_use_this_prefix(const struct in6_addr *prefix) in ipv6_pe_use_this_prefix() argument 106 if (net_ipv6_addr_cmp(prefix, &ipv6_pe_filter[i])) { in ipv6_pe_use_this_prefix() 130 ARG_UNUSED(prefix); in ipv6_pe_use_this_prefix() 137 const struct in6_addr *prefix) in ipv6_pe_prefix_already_exists() argument 149 (uint8_t *)prefix, 64)) { in ipv6_pe_prefix_already_exists() 159 const struct in6_addr *prefix) in ipv6_pe_prefix_remove() argument 169 (uint8_t *)prefix, 64)) { in ipv6_pe_prefix_remove() 180 const struct in6_addr *prefix, in ipv6_pe_prefix_update_lifetimes() argument 192 (uint8_t *)prefix, 64))) { in ipv6_pe_prefix_update_lifetimes() 220 const struct in6_addr *prefix, in gen_temporary_iid() argument [all …]
|
D | ipv6.c | 864 const struct in6_addr *prefix, in gen_stable_iid() argument 878 struct in6_addr prefix; in gen_stable_iid() member 886 if (prefix == NULL) { in gen_stable_iid() 891 memcpy(&buf.prefix, prefix, sizeof(struct in6_addr)); in gen_stable_iid() 950 const struct in6_addr *prefix, in net_ipv6_addr_generate_iid() argument 967 if (prefix == NULL) { in net_ipv6_addr_generate_iid() 970 UNALIGNED_PUT(UNALIGNED_GET(&prefix->s6_addr32[0]), in net_ipv6_addr_generate_iid() 972 UNALIGNED_PUT(UNALIGNED_GET(&prefix->s6_addr32[1]), in net_ipv6_addr_generate_iid() 984 if (prefix == NULL) { in net_ipv6_addr_generate_iid() 988 UNALIGNED_PUT(UNALIGNED_GET(&prefix->s6_addr32[0]), &tmp_addr.s6_addr32[0]); in net_ipv6_addr_generate_iid() [all …]
|
D | net_if.c | 2492 net_sprint_ipv6_addr(&ifprefix->prefix), in prefix_lifetime_expired() 2503 remove_prefix_addresses(ifprefix->iface, ipv6, &ifprefix->prefix, in prefix_lifetime_expired() 2509 net_ipaddr_copy(&info.addr, &ifprefix->prefix); in prefix_lifetime_expired() 2529 net_sprint_ipv6_addr(&ifprefix->prefix), in prefix_timer_remove() 2605 struct in6_addr *prefix, in ipv6_prefix_find() argument 2614 ARRAY_FOR_EACH(ipv6->prefix, i) { in ipv6_prefix_find() 2615 if (!ipv6->prefix[i].is_used) { in ipv6_prefix_find() 2619 if (net_ipv6_addr_cmp(prefix, &ipv6->prefix[i].prefix) && in ipv6_prefix_find() 2620 prefix_len == ipv6->prefix[i].len) { in ipv6_prefix_find() 2621 return &ipv6->prefix[i]; in ipv6_prefix_find() [all …]
|
D | ipv6.h | 588 void net_ipv6_pe_start(struct net_if *iface, const struct in6_addr *prefix, 593 const struct in6_addr *prefix, in net_ipv6_pe_start() argument 598 ARG_UNUSED(prefix); in net_ipv6_pe_start() 643 typedef void (*net_ipv6_pe_filter_cb_t)(struct in6_addr *prefix,
|
D | icmpv6.h | 61 uint8_t prefix[NET_IPV6_ADDR_SIZE]; member 69 uint8_t prefix[NET_IPV6_ADDR_SIZE]; member
|
/Zephyr-latest/subsys/net/lib/lwm2m/ |
D | lwm2m_obj_gateway.c | 47 char prefix[CONFIG_LWM2M_GATEWAY_PREFIX_MAX_STR_SIZE]; member 80 length = strlen(device_table[i].prefix); in prefix_validation_cb() 82 if (strncmp(device_table[i].prefix, data, length) == 0) { in prefix_validation_cb() 122 snprintk(device_table[index].prefix, CONFIG_LWM2M_GATEWAY_PREFIX_MAX_STR_SIZE, in lwm2m_gw_create() 137 true, device_table[index].prefix, CONFIG_LWM2M_GATEWAY_PREFIX_MAX_STR_SIZE, in lwm2m_gw_create() 138 strlen(device_table[index].prefix) + 1, NULL, NULL, prefix_validation_cb, in lwm2m_gw_create() 168 char *prefix = device_table[index].prefix; in lwm2m_gw_handle_req() local 169 size_t prefix_len = strlen(prefix); in lwm2m_gw_handle_req() 174 if (strncmp(options[0].value, prefix, prefix_len) != 0) { in lwm2m_gw_handle_req()
|
/Zephyr-latest/lib/os/ |
D | cbprintf_nano.c | 81 char *prefix, *data; in z_cbvprintf_impl() local 102 prefix = ""; in z_cbvprintf_impl() 237 prefix = "-"; in z_cbvprintf_impl() 240 prefix = " "; in z_cbvprintf_impl() 243 prefix = "+"; in z_cbvprintf_impl() 286 prefix = (*fmt & 0x20) ? "0x" : "0X"; in z_cbvprintf_impl() 341 while (*prefix) { in z_cbvprintf_impl() 342 OUTC(*prefix++); in z_cbvprintf_impl()
|
/Zephyr-latest/subsys/net/lib/shell/ |
D | ipv6.c | 60 static void ipv6_pe_filter_cb(struct in6_addr *prefix, bool is_denylist, in ipv6_pe_filter_cb() argument 68 net_addr_ntop(AF_INET6, prefix, ipaddr, sizeof(ipaddr) - 1); in ipv6_pe_filter_cb() 112 struct net_if_ipv6_prefix *prefix; in address_lifetime_cb() local 118 prefix = net_if_ipv6_prefix_get(iface, in address_lifetime_cb() 120 if (prefix) { in address_lifetime_cb() 121 prefix_len = prefix->len; in address_lifetime_cb() 342 struct in6_addr prefix; in cmd_net_ip6_pe() local 397 ret = net_addr_pton(AF_INET6, argv[arg], &prefix); in cmd_net_ip6_pe() 408 ret = net_ipv6_pe_add_filter(&prefix, !do_allowlisting); in cmd_net_ip6_pe() 410 ret = net_ipv6_pe_del_filter(&prefix); in cmd_net_ip6_pe() [all …]
|
D | route.c | 120 struct in6_addr prefix = {0}; in cmd_net_ip6_route_add() local 139 if (net_addr_pton(AF_INET6, argv[2], &prefix)) { in cmd_net_ip6_route_add() 149 route = net_route_add(iface, &prefix, NET_IPV6_DEFAULT_PREFIX_LEN, in cmd_net_ip6_route_add() 171 struct in6_addr prefix = { 0 }; in cmd_net_ip6_route_del() local 188 if (net_addr_pton(AF_INET6, argv[2], &prefix)) { in cmd_net_ip6_route_del() 193 route = net_route_lookup(iface, &prefix); in cmd_net_ip6_route_del()
|
D | iface.c | 161 struct net_if_ipv6_prefix *prefix; in iface_cb() local 403 ARRAY_FOR_EACH(ipv6->prefix, i) { in iface_cb() 404 prefix = &ipv6->prefix[i]; in iface_cb() 406 if (!prefix->is_used) { in iface_cb() 411 net_sprint_ipv6_addr(&prefix->prefix), in iface_cb() 412 prefix->len, prefix->is_infinite ? " infinite" : ""); in iface_cb() 464 net_sprint_ipv6_addr(&iface->config.dhcpv6.prefix)); in iface_cb()
|
/Zephyr-latest/scripts/build/ |
D | gen_kobject_placeholders.py | 30 def write_define(out_fp, prefix, name, value): argument 48 prefix = one_sect['define_prefix'] 50 write_define(out_fp, prefix, 'ALIGN', align) 51 write_define(out_fp, prefix, 'SZ', size)
|
D | gen_isr_tables_parser_carrays.py | 69 prefix = self.__config.endian_prefix() 72 intlist_header_fmt = prefix + "II" 83 intlist_entry_fmt = prefix + "iiQQ" 85 intlist_entry_fmt = prefix + "iiII"
|
/Zephyr-latest/subsys/retention/ |
D | retention.c | 26 #define INST_HAS_PREFIX(n) COND_CODE_1(DT_INST_NODE_HAS_PROP(n, prefix), (1), (0)) || 58 uint8_t prefix[]; member 200 if (memcmp(&config->prefix[pos], buffer, read_size) != 0) { in retention_is_valid() 316 rc = retained_mem_write(config->parent, config->offset, (void *)config->prefix, in retention_write() 414 .reserved_size = (COND_CODE_1(DT_INST_NODE_HAS_PROP(inst, prefix), \ 415 (DT_INST_PROP_LEN(inst, prefix)), (0)) + \ 417 .prefix_len = COND_CODE_1(DT_INST_NODE_HAS_PROP(inst, prefix), \ 418 (DT_INST_PROP_LEN(inst, prefix)), (0)), \ 419 .prefix = DT_INST_PROP_OR(inst, prefix, {0}), \
|
/Zephyr-latest/subsys/net/lib/http/ |
D | http_hpack.c | 414 uint8_t prefix; in http_hpack_decode_header() local 425 prefix = *buf; in http_hpack_decode_header() 427 if ((prefix & HPACK_PREFIX_INDEXED_MASK) == HPACK_PREFIX_INDEXED) { in http_hpack_decode_header() 429 } else if ((prefix & HPACK_PREFIX_LITERAL_INDEXING_MASK) == in http_hpack_decode_header() 432 } else if (((prefix & HPACK_PREFIX_LITERAL_NO_INDEXING_MASK) == in http_hpack_decode_header() 434 ((prefix & HPACK_PREFIX_LITERAL_NEVER_INDEXED_MASK) == in http_hpack_decode_header() 437 } else if ((prefix & HPACK_PREFIX_DYNAMIC_TABLE_SIZE_MASK) == in http_hpack_decode_header() 448 uint8_t prefix, uint8_t n) in hpack_integer_encode() argument 459 *buf = prefix | (uint8_t)value; in hpack_integer_encode() 464 *buf++ = prefix | limit; in hpack_integer_encode() [all …]
|
/Zephyr-latest/subsys/bluetooth/host/classic/ |
D | at.c | 66 static bool str_has_prefix(const char *str, const char *prefix) in str_has_prefix() argument 68 if (strncmp(str, prefix, strlen(prefix)) != 0) { in str_has_prefix() 337 const char *prefix, parse_val_t func, in at_cmd_start() argument 340 if (!str_has_prefix(at->buf, prefix)) { in at_cmd_start() 360 const char *prefix, parse_val_t func, in at_cmd_get_value() argument 369 const char *prefix, parse_val_t func, in at_cmd_process_value() argument 381 const char *prefix, parse_val_t func, in at_cmd_state_end_lf() argument 405 const char *prefix, parse_val_t func, in at_parse_cmd_input() argument 415 ret = cmd_parser_cb[at->cmd_state](at, buf, prefix, func, type); in at_parse_cmd_input()
|
D | at.h | 88 const char *prefix, parse_val_t func, 111 const char *prefix, parse_val_t func,
|
/Zephyr-latest/soc/atmel/sam0/common/ |
D | adc_fixup_sam0.h | 77 #define ADC_SAM0_CALIB(prefix, val) \ argument 79 (((*(uint32_t *)UTIL_CAT(UTIL_CAT(UTIL_CAT(prefix, FUSES_), val), _ADDR)) \ 80 >> UTIL_CAT(UTIL_CAT(UTIL_CAT(prefix, FUSES_), val), _Pos)) \ 81 & UTIL_CAT(UTIL_CAT(UTIL_CAT(prefix, FUSES_), val), _Msk)) \
|
/Zephyr-latest/tests/net/dhcpv6/src/ |
D | main.c | 89 memcpy(&test_ctx.iface->config.dhcpv6.prefix, &test_prefix, in set_test_addr_on_iface() 90 sizeof(test_ctx.iface->config.dhcpv6.prefix)); in set_test_addr_on_iface() 98 memset(&test_ctx.iface->config.dhcpv6.prefix, 0, in clear_test_addr_on_iface() 99 sizeof(test_ctx.iface->config.dhcpv6.prefix)); in clear_test_addr_on_iface() 359 struct in6_addr *prefix, uint8_t prefix_len) in verify_dhcpv6_ia_pd() argument 371 if (prefix == NULL) { in verify_dhcpv6_ia_pd() 384 zassert_mem_equal(&ia_pd.iaprefix.prefix, prefix, in verify_dhcpv6_ia_pd() 385 sizeof(ia_pd.iaprefix.prefix), "Incorrect prefix"); in verify_dhcpv6_ia_pd() 659 .iaprefix.prefix = test_prefix, in set_advertise_options() 761 .iaprefix.prefix = test_prefix, in set_reply_options() [all …]
|
/Zephyr-latest/doc/develop/toolchains/ |
D | other_x_compilers.rst | 35 - Set ``CROSS_COMPILE`` to the common path prefix which your 54 directory and have a common file name prefix. The ``CROSS_COMPILE`` variable 55 is set to the directory concatenated with the file name prefix. In the Debian 58 the common prefix is ``/usr/bin/arm-none-eabi-`` (including the trailing dash,
|
/Zephyr-latest/doc/build/dts/ |
D | bindings-upstream.rst | 111 should have a vendor prefix. 115 prefix. 118 invent a vendor prefix. Vendor prefixes are not mandatory parts of compatible 124 file unless you also include users of the new prefix. This means at least a 125 binding and a devicetree using the vendor prefix, and should ideally include 139 the vendor prefix. See :ref:`dt_vendor_zephyr` for examples. 218 The ``zephyr,`` prefix 221 You must add this prefix to property names in the following cases: 227 Zephyr-specific extensions are marked as such with the prefix. 235 long as they use this prefix to show that they are Zephyr specific. [all …]
|
/Zephyr-latest/subsys/net/lib/zperf/ |
D | zperf_common.c | 53 struct net_if_ipv6_prefix *prefix; in zperf_get_ipv6_addr() local 76 prefix = net_if_ipv6_prefix_add(net_if_get_default(), in zperf_get_ipv6_addr() 79 if (!prefix) { in zperf_get_ipv6_addr()
|
/Zephyr-latest/drivers/led_strip/ |
D | apa102.c | 59 uint8_t prefix = 0xE0 | 31; in apa102_update_rgb() local 67 *p++ = prefix; in apa102_update_rgb()
|
/Zephyr-latest/subsys/shell/ |
D | shell_utils.c | 500 const char *prefix, in shell_device_internal() argument 512 && ((prefix == NULL) in shell_device_internal() 513 || (strncmp(prefix, dev->name, in shell_device_internal() 514 strlen(prefix)) == 0)) in shell_device_internal() 534 const char *prefix) in shell_device_lookup() argument 536 return shell_device_internal(idx, prefix, NULL); in shell_device_lookup()
|
/Zephyr-latest/drivers/serial/ |
D | uart_nrfx_uarte2.c | 26 #define INSTANCE_INT_DRIVEN(periph, prefix, i, _) \ argument 27 IS_ENABLED(CONFIG_UART_##prefix##i##_INTERRUPT_DRIVEN) 29 #define INSTANCE_ASYNC(periph, prefix, i, _) \ argument 30 IS_ENABLED(CONFIG_UART_##prefix##i##_ASYNC) 32 #define INSTANCE_POLLING(periph, prefix, id, _) \ argument 33 UTIL_AND(CONFIG_HAS_HW_NRF_UARTE##prefix##id, \ 34 UTIL_AND(COND_CODE_1(CONFIG_UART_##prefix##id##_INTERRUPT_DRIVEN, (0), (1)), \ 35 COND_CODE_1(CONFIG_UART_##prefix##id##_ASYNC, (0), (1)))) 37 #define INSTANCE_ENHANCED_POLL_OUT(periph, prefix, i, _) \ argument 38 IS_ENABLED(CONFIG_UART_##prefix##i##_ENHANCED_POLL_OUT) [all …]
|