Home
last modified time | relevance | path

Searched refs:prefix (Results 1 – 25 of 166) sorted by relevance

1234567

/Zephyr-Core-3.7.0/tests/lib/heap_align/src/
Dmain.c24 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-Core-3.7.0/subsys/net/ip/
Dipv6_pe.c91 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 …]
Dnet_if.c2309 net_sprint_ipv6_addr(&ifprefix->prefix), in prefix_lifetime_expired()
2320 remove_prefix_addresses(ifprefix->iface, ipv6, &ifprefix->prefix, in prefix_lifetime_expired()
2326 net_ipaddr_copy(&info.addr, &ifprefix->prefix); in prefix_lifetime_expired()
2346 net_sprint_ipv6_addr(&ifprefix->prefix), in prefix_timer_remove()
2422 struct in6_addr *prefix, in ipv6_prefix_find() argument
2431 ARRAY_FOR_EACH(ipv6->prefix, i) { in ipv6_prefix_find()
2432 if (!ipv6->prefix[i].is_used) { in ipv6_prefix_find()
2436 if (net_ipv6_addr_cmp(prefix, &ipv6->prefix[i].prefix) && in ipv6_prefix_find()
2437 prefix_len == ipv6->prefix[i].len) { in ipv6_prefix_find()
2438 return &ipv6->prefix[i]; in ipv6_prefix_find()
[all …]
Dipv6.h630 void net_ipv6_pe_start(struct net_if *iface, const struct in6_addr *prefix,
635 const struct in6_addr *prefix, in net_ipv6_pe_start() argument
640 ARG_UNUSED(prefix); in net_ipv6_pe_start()
685 typedef void (*net_ipv6_pe_filter_cb_t)(struct in6_addr *prefix,
Dipv6_nbr.c2156 struct net_if_ipv6_prefix *prefix; in handle_prefix_onlink() local
2158 prefix = net_if_ipv6_prefix_lookup(net_pkt_iface(pkt), in handle_prefix_onlink()
2159 (struct in6_addr *)prefix_info->prefix, in handle_prefix_onlink()
2161 if (!prefix) { in handle_prefix_onlink()
2166 prefix = net_if_ipv6_prefix_add(net_pkt_iface(pkt), in handle_prefix_onlink()
2167 (struct in6_addr *)prefix_info->prefix, in handle_prefix_onlink()
2170 if (prefix) { in handle_prefix_onlink()
2174 net_sprint_ipv6_addr(&prefix_info->prefix), in handle_prefix_onlink()
2180 net_sprint_ipv6_addr(&prefix_info->prefix), in handle_prefix_onlink()
2194 net_sprint_ipv6_addr(&prefix_info->prefix), in handle_prefix_onlink()
[all …]
/Zephyr-Core-3.7.0/subsys/net/lib/lwm2m/
Dlwm2m_obj_gateway.c47 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-Core-3.7.0/subsys/net/lib/shell/
Dipv6.c60 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()
102 struct net_if_ipv6_prefix *prefix; in address_lifetime_cb() local
115 prefix = net_if_ipv6_prefix_get(iface, in address_lifetime_cb()
117 if (prefix) { in address_lifetime_cb()
118 prefix_len = prefix->len; in address_lifetime_cb()
332 struct in6_addr prefix; in cmd_net_ip6_pe() local
387 ret = net_addr_pton(AF_INET6, argv[arg], &prefix); in cmd_net_ip6_pe()
398 ret = net_ipv6_pe_add_filter(&prefix, !do_allowlisting); in cmd_net_ip6_pe()
400 ret = net_ipv6_pe_del_filter(&prefix); in cmd_net_ip6_pe()
[all …]
Droute.c120 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()
Diface.c160 struct net_if_ipv6_prefix *prefix; in iface_cb() local
399 ARRAY_FOR_EACH(ipv6->prefix, i) { in iface_cb()
400 prefix = &ipv6->prefix[i]; in iface_cb()
402 if (!prefix->is_used) { in iface_cb()
407 net_sprint_ipv6_addr(&prefix->prefix), in iface_cb()
408 prefix->len, prefix->is_infinite ? " infinite" : ""); in iface_cb()
/Zephyr-Core-3.7.0/lib/os/
Dcbprintf_nano.c81 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-Core-3.7.0/scripts/build/
Dgen_kobject_placeholders.py30 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)
Dgen_isr_tables_parser_carrays.py69 prefix = self.__config.endian_prefix()
72 intlist_header_fmt = prefix + "II"
83 intlist_entry_fmt = prefix + "iiQQ"
85 intlist_entry_fmt = prefix + "iiII"
/Zephyr-Core-3.7.0/subsys/retention/
Dretention.c26 #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-Core-3.7.0/subsys/net/lib/http/
Dhttp_hpack.c414 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-Core-3.7.0/subsys/bluetooth/host/classic/
Dat.c66 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()
Dat.h88 const char *prefix, parse_val_t func,
111 const char *prefix, parse_val_t func,
/Zephyr-Core-3.7.0/soc/atmel/sam0/common/
Dadc_fixup_sam0.h77 #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-Core-3.7.0/tests/net/dhcpv6/src/
Dmain.c89 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-Core-3.7.0/doc/build/dts/
Dbindings-upstream.rst105 should have a vendor prefix.
109 prefix.
112 invent a vendor prefix. Vendor prefixes are not mandatory parts of compatible
118 file unless you also include users of the new prefix. This means at least a
119 binding and a devicetree using the vendor prefix, and should ideally include
133 the vendor prefix. See :ref:`dt_vendor_zephyr` for examples.
212 The ``zephyr,`` prefix
215 You must add this prefix to property names in the following cases:
221 Zephyr-specific extensions are marked as such with the prefix.
229 long as they use this prefix to show that they are Zephyr specific.
[all …]
/Zephyr-Core-3.7.0/doc/develop/toolchains/
Dother_x_compilers.rst35 - 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-Core-3.7.0/subsys/net/lib/zperf/
Dzperf_common.c53 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-Core-3.7.0/drivers/led_strip/
Dapa102.c59 uint8_t prefix = 0xE0 | 31; in apa102_update_rgb() local
67 *p++ = prefix; in apa102_update_rgb()
/Zephyr-Core-3.7.0/subsys/shell/
Dshell_utils.c500 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-Core-3.7.0/drivers/serial/
Duart_nrfx_uarte2.c26 #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 …]
/Zephyr-Core-3.7.0/doc/services/retention/
Dindex.rst24 accessed or updated independently. The prefix and checksum can be set
59 * bytes which includes the prefix and
66 /* This is the prefix which must appear
69 prefix = [08 04];
83 * includes the prefix and checksum,
89 /* This is the prefix which must appear
92 prefix = [00 11 55 88 fa bc];

1234567