/Zephyr-latest/subsys/net/lib/lwm2m/ |
D | lwm2m_obj_gateway.c | 7 * SPDX-License-Identifier: Apache-2.0 12 * https://github.com/OpenMobileAlliance/lwm2m-registry/blob/prod/25.xml 36 "Gateway prefix requires validation"); 43 #define RESOURCE_INSTANCE_COUNT (GATEWAY_MAX_ID - 1) 47 char prefix[CONFIG_LWM2M_GATEWAY_PREFIX_MAX_STR_SIZE]; member 73 /* Prefix can't be empty because it is used to reference device */ in prefix_validation_cb() 75 return -EINVAL; in prefix_validation_cb() 78 /* Prefix of each gateway must be unique */ in prefix_validation_cb() 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() [all …]
|
D | lwm2m_obj_gateway.h | 7 * SPDX-License-Identifier: Apache-2.0 15 /* clang-format off */ 20 /* clang-format on */ 25 * The callback gets triggered each time the prefix in front of a received lwm2m 26 * msg path matches the prefix set in the LWM2M_GATEWAY_PREFIX_RID buffer. 35 * // Write CoAP packet to msg->out.out_cpkt 48 * @return -ENOENT if no object instance with obj_inst_id was found 56 * @return -ENOENT if this msg was not handled by Gateway object.
|
/Zephyr-latest/subsys/net/ip/ |
D | ipv6_pe.c | 9 * SPDX-License-Identifier: Apache-2.0 63 #define DESYNC_FACTOR(ipv6) ((ipv6)->desync_factor) 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 139 ARRAY_FOR_EACH(ipv6->unicast, i) { in ipv6_pe_prefix_already_exists() 140 if (!ipv6->unicast[i].is_used || in ipv6_pe_prefix_already_exists() 141 ipv6->unicast[i].address.family != AF_INET6 || in ipv6_pe_prefix_already_exists() 142 !ipv6->unicast[i].is_temporary || in ipv6_pe_prefix_already_exists() [all …]
|
/Zephyr-latest/tests/lib/heap_align/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 33 align -= rew; in alignment_ok() 39 return (addr & (align - 1)) == 0; in alignment_ok() 45 * are returned low-address to high, and that freed blocks are merged 49 size_t prefix, size_t align, size_t size) in check_heap_align() argument 54 p = sys_heap_alloc(h, prefix); in check_heap_align() 55 zassert_true(prefix == 0 || p != NULL, "prefix allocation failed"); in check_heap_align() 68 suffix = (heap_end - (uint8_t *)ROUND_UP((uintptr_t)r + size, CHUNK_UNIT)) in check_heap_align() 69 - heap_chunk_header_size; in check_heap_align() 72 prefix, align, size); in check_heap_align() [all …]
|
/Zephyr-latest/dts/bindings/retention/ |
D | zephyr,retention.yaml | 2 # SPDX-License-Identifier: Apache-2.0 6 64-byte area with 2-byte prefix and 1-byte checksum with 61 usable bytes 10 compatible = "zephyr,memory-region", "mmio-sram"; 12 zephyr,memory-region = "RetainedMem"; 16 compatible = "zephyr,retained-ram"; 18 #address-cells = <1>; 19 #size-cells = <1>; 25 prefix = [04 fa]; 36 "#address-cells": 43 "#size-cells": [all …]
|
/Zephyr-latest/samples/application_development/external_lib/mylib/ |
D | Makefile | 5 # SPDX-License-Identifier: Apache-2.0 8 PREFIX ?= . macro 9 OBJ_DIR ?= $(PREFIX)/obj 10 LIB_DIR ?= $(PREFIX)/lib 16 DEL := rm -rf 17 MKDIR := mkdir -p 21 -$(MKDIR) "$(OBJ_DIR)" 22 -$(MKDIR) "$(LIB_DIR)" 23 $(CC) -c $(CFLAGS) -MD -Iinclude src/mylib.c -o $(OBJ_DIR)/mylib.o 24 $(AR) -rcs $(LIB_DIR)/libmylib.a $(OBJ_DIR)/mylib.o
|
/Zephyr-latest/subsys/net/lib/shell/ |
D | ipv6.c | 5 * SPDX-License-Identifier: Apache-2.0 20 const struct shell *sh = data->sh; in ipv6_frag_cb() 21 int *count = data->user_data; in ipv6_frag_cb() 30 snprintk(src, ADDR_LEN, "%s", net_sprint_ipv6_addr(&reass->src)); in ipv6_frag_cb() 32 PR("%p 0x%08x %5d %16s\t%16s\n", reass, reass->id, in ipv6_frag_cb() 33 k_ticks_to_ms_ceil32(k_work_delayable_remaining_get(&reass->timer)), in ipv6_frag_cb() 34 src, net_sprint_ipv6_addr(&reass->dst)); in ipv6_frag_cb() 37 if (reass->pkt[i]) { in ipv6_frag_cb() 38 struct net_buf *frag = reass->pkt[i]->frags; in ipv6_frag_cb() 40 PR("[%d] pkt %p->", i, reass->pkt[i]); in ipv6_frag_cb() [all …]
|
D | route.c | 5 * SPDX-License-Identifier: Apache-2.0 19 const struct shell *sh = data->sh; in route_cb() 20 struct net_if *iface = data->user_data; in route_cb() 25 if (entry->iface != iface) { in route_cb() 29 PR("IPv6 prefix : %s/%d\n", net_sprint_ipv6_addr(&entry->addr), in route_cb() 30 entry->prefix_len); in route_cb() 34 SYS_SLIST_FOR_EACH_CONTAINER(&entry->nexthop, nexthop_route, node) { in route_cb() 39 if (!nexthop_route->nbr) { in route_cb() 43 PR("\tneighbor : %p\t", nexthop_route->nbr); in route_cb() 45 if (nexthop_route->nbr->idx == NET_NBR_LLADDR_UNKNOWN) { in route_cb() [all …]
|
/Zephyr-latest/doc/build/dts/ |
D | bindings-upstream.rst | 1 .. _dt-writing-bindings: 21 Zephyr aims for devicetree :ref:`dt-source-compatibility`. Therefore, if there 24 justify any Zephyr-specific divergences. 28 - There is an existing binding in the mainline Linux kernel. See 32 - Your hardware vendor provides an official binding outside of the Linux 48 https://docs.kernel.org/devicetree/bindings/writing-bindings.html 55 - For example, a binding for compatible ``vnd,foo`` must be named ``vnd,foo.yaml``. 56 - If the binding is bus-specific, you can append the bus to the file name; 57 for example, if the binding YAML has ``on-bus: bar``, you may name the file 58 ``vnd,foo-bar.yaml``. [all …]
|
/Zephyr-latest/doc/develop/toolchains/ |
D | other_x_compilers.rst | 8 GNU-based cross toolchain. 15 toolchain set-up mechanism itself is supported.) 21 For example, you might install the ``gcc-arm-none-eabi`` package on 22 Debian-based Linux systems, or ``arm-none-eabi-newlib`` on Fedora or Red 25 .. code-block:: console 28 sudo apt-get install gcc-arm-none-eabi 30 sudo dnf install arm-none-eabi-newlib 34 - Set :envvar:`ZEPHYR_TOOLCHAIN_VARIANT` to ``cross-compile``. 35 - Set ``CROSS_COMPILE`` to the common path prefix which your 43 .. code-block:: console [all …]
|
/Zephyr-latest/tests/net/dhcpv6/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 44 struct test_dhcpv6_context *ctx = net_if_get_device(iface)->data; in test_iface_init() 47 /* 00-00-5E-00-53-xx Documentation RFC 7042 */ in test_iface_init() 48 ctx->mac[0] = 0x00; in test_iface_init() 49 ctx->mac[1] = 0x00; in test_iface_init() 50 ctx->mac[2] = 0x5E; in test_iface_init() 51 ctx->mac[3] = 0x00; in test_iface_init() 52 ctx->mac[4] = 0x53; in test_iface_init() 53 ctx->mac[5] = 0x00; in test_iface_init() 55 net_if_set_link_addr(iface, ctx->mac, sizeof(ctx->mac), NET_LINK_ETHERNET); in test_iface_init() [all …]
|
/Zephyr-latest/include/zephyr/net/ |
D | dhcpv6.h | 4 * SPDX-License-Identifier: Apache-2.0 29 /** Current state of DHCPv6 client address/prefix negotiation. */ 65 bool request_prefix : 1; /**< Request IPv6 prefix. */ 72 * negotiation for IPv6 address and/or prefix, depending on the configuration. 73 * Once the negotiation is complete, IPv6 address/prefix details will be added
|
/Zephyr-latest/scripts/build/ |
D | gen_kobject_placeholders.py | 5 # SPDX-License-Identifier: Apache-2.0 30 def write_define(out_fp, prefix, name, value): argument 32 define_name = f"KOBJECT_{prefix}_{name}" 42 f"linker-kobject-prebuilt-{one_sect['name']}.h") 48 prefix = one_sect['define_prefix'] 50 write_define(out_fp, prefix, 'ALIGN', align) 51 write_define(out_fp, prefix, 'SZ', size) 74 "name": "priv-stacks", 84 … if type(one_sect) is not elftools.elf.sections.Section: # pylint: disable=unidiomatic-typecheck 113 parser.add_argument("--object", required=True, [all …]
|
/Zephyr-latest/subsys/fs/ |
D | fs_impl.h | 4 * SPDX-License-Identifier: Apache-2.0 19 * @brief Strip the mount point prefix from a path. 26 * undefined if @p path does not start with the mount point prefix.
|
/Zephyr-latest/lib/os/ |
D | cbprintf_nano.c | 2 * Copyright (c) 2010, 2013-2014 Wind River Systems, Inc. 6 * SPDX-License-Identifier: Apache-2.0 28 #define ALPHA(fmt) (((fmt) & 0x60) - '0' - 10 + 1) 41 buftop[i--] = c + '0'; in convert_value() 45 return -i; in convert_value() 81 char *prefix, *data; in z_cbvprintf_impl() local 89 /* we pre-increment in the loop afterwards */ in z_cbvprintf_impl() 90 fmt--; in z_cbvprintf_impl() 100 min_width = -1; in z_cbvprintf_impl() 101 precision = -1; in z_cbvprintf_impl() [all …]
|
/Zephyr-latest/subsys/net/lib/http/ |
D | http_hpack.c | 5 * SPDX-License-Identifier: Apache-2.0 41 [HTTP_SERVER_HPACK_ACCEPT_CHARSET] = { "accept-charset", NULL }, 42 [HTTP_SERVER_HPACK_ACCEPT_ENCODING] = { "accept-encoding", "gzip, deflate" }, 43 [HTTP_SERVER_HPACK_ACCEPT_LANGUAGE] = { "accept-language", NULL }, 44 [HTTP_SERVER_HPACK_ACCEPT_RANGES] = { "accept-ranges", NULL }, 46 [HTTP_SERVER_HPACK_ACCESS_CONTROL_ALLOW_ORIGIN] = { "access-control-allow-origin", NULL }, 50 [HTTP_SERVER_HPACK_CACHE_CONTROL] = { "cache-control", NULL }, 51 [HTTP_SERVER_HPACK_CONTENT_DISPOSITION] = { "content-disposition", NULL }, 52 [HTTP_SERVER_HPACK_CONTENT_ENCODING] = { "content-encoding", NULL }, 53 [HTTP_SERVER_HPACK_CONTENT_LANGUAGE] = { "content-language", NULL }, [all …]
|
/Zephyr-latest/subsys/retention/ |
D | retention.c | 4 * SPDX-License-Identifier: Apache-2.0 26 #define INST_HAS_PREFIX(n) COND_CODE_1(DT_INST_NODE_HAS_PROP(n, prefix), (1), (0)) || 58 uint8_t prefix[]; member 64 struct retention_data *data = dev->data; in retention_lock_take() 66 k_mutex_lock(&data->lock, K_FOREVER); in retention_lock_take() 75 struct retention_data *data = dev->data; in retention_lock_release() 77 k_mutex_unlock(&data->lock); in retention_lock_release() 86 const struct retention_config *config = dev->config; in retention_checksum() 87 int rc = -ENOSYS; in retention_checksum() 89 if (config->checksum_size == CHECKSUM_CRC8 || in retention_checksum() [all …]
|
/Zephyr-latest/doc/services/retention/ |
D | index.rst | 11 power failure (or during some low-power modes on some devices) nor should it be 12 stored to a non-volatile storage like :ref:`flash_api`, :ref:`eeprom_api`, or 13 battery-backed RAM. 16 additional software-level features to it for ensuring the validity of data. 19 checksum (1, 2, or 4-bytes in size) of the stored data can be appended to the 21 the retained data sections into multiple distinct areas. For example, a 64-byte 24 accessed or updated independently. The prefix and checksum can be set 25 per-instance using devicetree. 32 RAM as non-init for this purpose. The retention system is then initialised as a 33 child node of this device 1 or more times - note that the memory region will [all …]
|
/Zephyr-latest/samples/net/vlan/ |
D | Kconfig | 4 # SPDX-License-Identifier: Apache-2.0 57 int "IPv6 address prefix length for the interfaces" 61 Set the IPv6 address prefix length (netmask) for the interfaces
|
/Zephyr-latest/samples/drivers/lcd_cyclonev_socdk/src/ |
D | commands.h | 2 * SPDX-License-Identifier: Apache-2.0 6 * Reference: https://datasheetspdf.com/pdf-file/746090/Newhaven/NHD-0216K3Z-NSW-BBW/1 9 /* Insert Prefix 0xFE before executing command */ 12 #define SET_CURSOR 0x45 /*1 byte param in range (0x00 - 0x4F) 2x16 display */ 22 #define SET_CONTRAST 0x52 /* 1 byte param in range (1 - 50) 40 default */ 23 #define SET_BACKLIGHT 0x53 /* 1 byte param in range (1 - 8) 1 default */ 25 #define LD_CUSTOM_CHAR 0x54 /* 9 byte param 1st param: 1-byte */ 27 /* Syntax prefix LD_CUSTOM_CHAR [addr] [d0 …d7] 47 #define CHGE_RS232_BAUD 0x61 /* 1 byte param in range (1 - 8) */ 49 /* Syntax prefix CHGE_RS232_BAUD [param] [all …]
|
/Zephyr-latest/subsys/bluetooth/host/classic/ |
D | at.c | 7 * Copyright (c) 2015-2016 Intel Corporation 9 * SPDX-License-Identifier: Apache-2.0 22 if (at->buf[at->pos] == ',') { in next_list() 23 at->pos++; in next_list() 29 const unsigned char *str = buf->data; in at_check_byte() 32 return -EINVAL; in at_check_byte() 41 while (at->buf[at->pos] == ' ') { in skip_space() 42 at->pos++; in skip_space() 53 isdigit((unsigned char)at->buf[at->pos]) != 0; in at_get_number() 54 at->pos++, i++) { in at_get_number() [all …]
|
/Zephyr-latest/doc/_extensions/zephyr/ |
D | gh_utils.py | 8 SPDX-License-Identifier: Apache-2.0 29 - ``gh_link_version``: GitHub version to use in the URL (e.g. "main") 30 - ``gh_link_base_url``: Base URL used as a prefix for generated URLs. 31 - ``gh_link_prefixes``: Mapping of pages (regex) <> GitHub prefix. 32 - ``gh_link_exclude``: List of pages (regex) that will not report a URL. Useful 33 for, e.g., auto-generated pages not in Git. 61 def get_page_prefix(app: Sphinx, pagename: str) -> str: 62 """Return the prefix that needs to be added to the page path to get its location in the 73 Prefix if applicable, None otherwise. 84 for pattern, prefix in app.config.gh_link_prefixes.items(): [all …]
|
/Zephyr-latest/subsys/logging/backends/ |
D | Kconfig.fs | 2 # SPDX-License-Identifier: Apache-2.0 11 either configured for auto-mount or manually mounted by the application. 17 backend-str = fs 43 string "Log file name prefix" 47 The prefix is followed by the number of log file.
|
/Zephyr-latest/soc/atmel/sam0/common/ |
D | adc_fixup_sam0.h | 4 * SPDX-License-Identifier: Apache-2.0 11 #define ADC_SYNC(adc) ((adc)->SYNCBUSY.reg) 14 #define ADC_SYNC(adc) ((adc)->STATUS.reg) 24 #define ADC_DIFF(adc) ((adc)->CTRLB.reg) 27 #define ADC_DIFF(adc) ((adc)->CTRLC.reg) 34 #define ADC_RESSEL(adc) ((adc)->CTRLB.bit.RESSEL) 40 #define ADC_RESSEL(adc) ((adc)->CTRLC.bit.RESSEL) 50 #define ADC_PRESCALER(adc) ((adc)->CTRLA.bit.PRESCALER) 53 #define ADC_PRESCALER(adc) ((adc)->CTRLB.bit.PRESCALER) 60 #define ADC_TSEN (SYSCTRL->VREF.bit.TSEN) [all …]
|
/Zephyr-latest/doc/_templates/ |
D | zversions.html | 1 {# Add rst-badge after rst-versions for small badge style. #} 2 <div class="rst-versions" data-toggle="rst-versions" role="note" aria-label="versions"> 3 <span class="rst-current-version" data-toggle="rst-current-version"> 4 <span class="fa fa-book"> Zephyr Project</span> 6 <span class="fa fa-caret-down"></span> 8 <div class="rst-other-versions"> 17 {% set prefix = current_version if is_release else "latest" %} 18 <dd><a href="/{{ prefix }}/zephyr.pdf">PDF</a></dd> 26 <a href="https://github.com/zephyrproject-rtos/sdk-ng/releases">SDK</a> 29 <a href="https://github.com/zephyrproject-rtos/zephyr/releases">Releases</a>
|