/Zephyr-latest/subsys/net/lib/lwm2m/ |
D | lwm2m_obj_access_control.h | 4 * SPDX-License-Identifier: Apache-2.0 12 * @brief Main access control logic. Checks if the server with instance id @p server_obj_inst are 13 * allowed to do @p operation on the object instance of object id @p obj_id 14 * and object instance id @p obj_inst_id. If access control is enabled, this should 17 * @param obj_id object id of the object instance having its rights checked. 18 * @param obj_inst_id object instance id of the object instance having its rights checked. 19 * @param server_obj_inst object instance id of the server attempting to do the operation. 23 * 0 - server has access 24 * -EACCES - unauthorized 25 * -EPERM - method not allowed [all …]
|
D | lwm2m_registry.h | 4 * SPDX-License-Identifier: Apache-2.0 13 * @p obj_id must exist. 15 * @param[in] obj_id Object id of the object instance. 16 * @param[in] obj_inst_id Object instance id of the object instance to be created. 24 * @brief Deletes the object instance given by @p obj_id / @p obj_inst_id. 26 * @param[in] obj_id Object id of the object instance to be deleted 27 * @param[in] obj_inst_id Object instance id of the object instance to be deleted 33 * @brief Get the engine object instance specified by @p msg->path. Usually only used in do_write 60 * @brief Get the resource instance specified by @p path. Creates and allocates a new one 73 * @brief Gets the resource specified by @p path. [all …]
|
D | lwm2m_obj_server.h | 4 * SPDX-License-Identifier: Apache-2.0 43 * with object instance id given by @p obj_inst_id. 45 * @param[in] obj_inst_id Object instance id of the server object instance 52 * with object instance id given by @p obj_inst_id. 54 * @param[in] obj_inst_id Object instance id of the server object instance 60 * @brief Returns the Short Server ID of the server object instance with 61 * object instance id given by @p obj_inst_id. 63 * @param[in] obj_inst_id Object instance id of the server object 69 * @brief Returns the object instance id of the server having ssid given by @p short_id. 72 * @return Object instance id or negative in case not found [all …]
|
D | lwm2m_engine.h | 3 * Copyright (c) 2018-2019 Foundries.io 5 * SPDX-License-Identifier: Apache-2.0 96 * @p obj_inst and the resource id in @p msg. Returns the field to obj_field (if it exists). 130 * @brief Checks if context has access to the object specified by @p path 134 * @return Returns false if the bootstrap flag of @p client_ctx is not set 139 * @brief Deletes the object instance specified by msg->path. If the object instance id of the 149 * @brief Adds the periodic @p service to the work queue. The period of the service becomes 150 * @p period_ms. 190 * id given by @p obj_inst_id 192 * @param[in] obj_inst_id object instance id of the security instance [all …]
|
/Zephyr-latest/scripts/coccinelle/ |
D | identifier_length.cocci | 2 // SPDX-License-Identifier: Apache-2.0 10 position p; 14 T I@p (...); 16 I@p (...) 18 T I@p = C; 20 T I@p; 24 id << r_idlen.I; 25 pos << r_idlen.p; 28 if (len(id) > 31): 29 …NG: Violation to rule 5.1 or 5.2 (Identifiers shall be distinct) %s length %d > 31" % (id, len(id))
|
/Zephyr-latest/samples/subsys/portability/cmsis_rtos_v1/philosophers/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 68 /* end - control behaviour of the demo */ 90 static void set_phil_state_pos(int id) in set_phil_state_pos() argument 93 printk("\x1b[%d;%dH", id + 1, 1); in set_phil_state_pos() 98 static void print_phil_state(int id, const char *fmt, int32_t delay) in print_phil_state() argument 102 set_phil_state_pos(id); in print_phil_state() 105 int p = 0; in print_phil_state() local 107 p += snprintk(state + p, STATE_LEN - p, "Philosopher %d [%s:%s%d] ", in print_phil_state() 108 id, prio < 0 ? "C" : "P", in print_phil_state() 113 p += snprintk(state + p, STATE_LEN - p, fmt, in print_phil_state() [all …]
|
/Zephyr-latest/samples/net/sockets/coap_server/src/ |
D | location_query.c | 5 * SPDX-License-Identifier: Apache-2.0 22 const char * const *p; in location_query_post() local 25 uint16_t id; in location_query_post() local 33 id = coap_header_get_id(request); in location_query_post() 37 LOG_INF("type: %u code %u id %u", type, code, id); in location_query_post() 48 COAP_RESPONSE_CODE_CREATED, id); in location_query_post() 53 for (p = location_query; *p; p++) { in location_query_post() 56 *p, strlen(*p)); in location_query_post() 67 static const char * const location_query_path[] = { "location-query", NULL };
|
D | test.c | 5 * SPDX-License-Identifier: Apache-2.0 24 uint16_t id; in piggyback_get() local 32 id = coap_header_get_id(request); in piggyback_get() 36 LOG_INF("type: %u code %u id %u", type, code, id); in piggyback_get() 47 COAP_RESPONSE_CODE_CONTENT, id); in piggyback_get() 63 /* The response that coap-client expects */ in piggyback_get() 65 "Type: %u\nCode: %u\nMID: %u\n", type, code, id); in piggyback_get() 91 uint16_t id; in test_del() local 96 id = coap_header_get_id(request); in test_del() 100 LOG_INF("type: %u code %u id %u", type, code, id); in test_del() [all …]
|
/Zephyr-latest/subsys/shell/modules/kernel_service/thread/ |
D | mask.c | 4 * SPDX-License-Identifier: Apache-2.0 20 shell_error(sh, "Unable to parse thread ID %s (err %d)", argv[1], err); in cmd_kernel_thread_mask_clear() 25 shell_error(sh, "Invalid thread id %p", (void *)thread); in cmd_kernel_thread_mask_clear() 26 return -EINVAL; in cmd_kernel_thread_mask_clear() 31 shell_error(sh, "Failed - %d", rc); in cmd_kernel_thread_mask_clear() 33 shell_print(sh, "%p %s cpu_mask: 0x%x", (void *)thread, thread->name, in cmd_kernel_thread_mask_clear() 34 thread->base.cpu_mask); in cmd_kernel_thread_mask_clear() 49 shell_error(sh, "Unable to parse thread ID %s (err %d)", argv[1], err); in cmd_kernel_thread_mask_enable_all() 54 shell_error(sh, "Invalid thread id %p", (void *)thread); in cmd_kernel_thread_mask_enable_all() 55 return -EINVAL; in cmd_kernel_thread_mask_enable_all() [all …]
|
D | pin.c | 4 * SPDX-License-Identifier: Apache-2.0 21 shell_error(sh, "Unable to parse thread ID %s (err %d)", argv[1], err); in cmd_kernel_thread_pin() 26 shell_error(sh, "Invalid thread id %p", (void *)thread); in cmd_kernel_thread_pin() 27 return -EINVAL; in cmd_kernel_thread_pin() 32 shell_error(sh, "Unable to parse CPU ID %s (err %d)", argv[2], err); in cmd_kernel_thread_pin() 36 shell_print(sh, "Pinning %p %s to CPU %d", (void *)thread, thread->name, cpu); in cmd_kernel_thread_pin() 39 shell_error(sh, "Failed - %d", err); in cmd_kernel_thread_pin() 41 shell_print(sh, "%p %s cpu_mask: 0x%x", (void *)thread, thread->name, in cmd_kernel_thread_pin() 42 thread->base.cpu_mask); in cmd_kernel_thread_pin() 50 "Usage: kernel pin <thread ID> <CPU ID>",
|
D | unwind.c | 4 * SPDX-License-Identifier: Apache-2.0 19 shell_print(sh, "ra: %p [%s+0x%x]", (void *)ra, name, offset); in print_trace_address() 21 shell_print(sh, "ra: %p", (void *)ra); in print_trace_address() 37 shell_error(sh, "Unable to parse thread ID %s (err %d)", argv[1], err); in cmd_kernel_thread_unwind() 42 shell_error(sh, "Invalid thread id %p", (void *)thread); in cmd_kernel_thread_unwind() 43 return -EINVAL; in cmd_kernel_thread_unwind() 46 shell_print(sh, "Unwinding %p %s", (void *)thread, thread->name); in cmd_kernel_thread_unwind()
|
/Zephyr-latest/subsys/net/l2/ppp/ |
D | fsm.c | 4 * SPDX-License-Identifier: Apache-2.0 28 if (fsm->protocol == PPP_LCP) { in ppp_fsm_ctx() 31 } else if (fsm->protocol == PPP_IPCP) { in ppp_fsm_ctx() 35 } else if (fsm->protocol == PPP_IPV6CP) { in ppp_fsm_ctx() 39 } else if (fsm->protocol == PPP_PAP) { in ppp_fsm_ctx() 51 NET_ASSERT(ctx->iface); in ppp_fsm_iface() 53 return ctx->iface; in ppp_fsm_iface() 60 if (fsm->state != PPP_ACK_RECEIVED && in fsm_send_configure_req() 61 fsm->state != PPP_ACK_SENT && in fsm_send_configure_req() 62 fsm->state != PPP_REQUEST_SENT) { in fsm_send_configure_req() [all …]
|
/Zephyr-latest/tests/net/lib/mqtt_sn_packet/src/ |
D | mqtt_sn_packet.c | 4 * SPDX-License-Identifier: Apache-2.0 29 /* advertise gw id 42, duration 0xDEAD */ 33 /* gwinfo gw id 42, address 127.0.0.1 */ 35 /* connect with flags [will, clean_session], duration 300, client id "zephyrclient" */ 36 static uint8_t connect[] = { 18, 0x04, 0x0C, 0x01, 1, 44, 'z', 'e', 'p', 40 /* connack with extended length field and return code rejected - invalid topic id */ 45 static uint8_t willtopic[] = { 10, 0x07, 0x30, '/', 'z', 'e', 'p', 'h', 'y', 'r' }; 50 /* registration with topic ID 0x1A1B, msg ID 0x1C1D, topic "/zephyr" */ 51 static uint8_t reg[] = { 13, 0x0A, 0x1A, 0x1B, 0x1C, 0x1D, '/', 'z', 'e', 'p', 'h', 'y', 'r' }; 52 /* registration with topic ID 0x0000, msg ID 0x1C1D, topic "/zephyr" */ [all …]
|
/Zephyr-latest/subsys/bluetooth/audio/shell/ |
D | media_controller.c | 9 * SPDX-License-Identifier: Apache-2.0 29 #include "../media_proxy_internal.h" /* For MPL_NO_TRACK_ID - TODO: Fix */ 37 /* Media player instances - the local player, the remote player and 54 shell_print(ctx_shell, "Local player instance: %p", local_player); in local_player_instance_cb() 70 shell_print(ctx_shell, "Discovered player instance: %p", remote_player); in discover_player_cb() 80 shell_error(ctx_shell, "Player: %p, Player name failed (%d)", plr, err); in player_name_cb() 84 shell_print(ctx_shell, "Player: %p, Player name: %s", plr, name); in player_name_cb() 87 static void icon_id_cb(struct media_player *plr, int err, uint64_t id) in icon_id_cb() argument 92 shell_error(ctx_shell, "Player: %p, Icon ID failed (%d)", plr, err); in icon_id_cb() 96 (void)bt_ots_obj_id_to_str(id, str, sizeof(str)); in icon_id_cb() [all …]
|
/Zephyr-latest/dts/bindings/clock/ |
D | atmel,sam-pmc.yaml | 2 # SPDX-License-Identifier: Apache-2.0 16 clocks = <&pmc PMC_TYPE_PERIPHERAL p-id>; 20 In this example the clock-type was defined as PMC_TYPE_PERIPHERAL and the 21 peripheral-id was defined as p-id. The p-id number should be consulted on 27 The clock-type constants are: 34 compatible: "atmel,sam-pmc" 36 include: [clock-controller.yaml, base.yaml] 42 "#clock-cells": 49 clock-cells: 50 - clock-type [all …]
|
/Zephyr-latest/include/zephyr/drivers/ |
D | reset.h | 2 * Copyright (c) 2022 Andrei-Edward Popa <andrei.popa105@yahoo.com> 4 * SPDX-License-Identifier: Apache-2.0 38 uint32_t id; member 42 * @brief Static initializer for a @p reset_dt_spec 44 * This returns a static initializer for a @p reset_dt_spec structure given a 59 * // .id = 10 65 * controller reset line id as shown above. 74 .id = DT_RESET_ID_BY_IDX(node_id, idx) \ 82 * <tt>RESET_DT_SPEC_GET_BY_IDX(node_id, idx)</tt>. The @p 85 * Otherwise, this expands to @p default_value. [all …]
|
/Zephyr-latest/samples/net/dsa/src/ |
D | main.h | 4 * SPDX-License-Identifier: Apache-2.0 54 static inline void dsa_buf_write_be16(uint16_t tl, uint8_t **p) in dsa_buf_write_be16() argument 57 **p = v[1]; in dsa_buf_write_be16() 58 (*p)++; in dsa_buf_write_be16() 59 **p = v[0]; in dsa_buf_write_be16() 60 (*p)++; in dsa_buf_write_be16() 75 #define DSA_THREAD(ID, FN_RECV, FN_SEND) \ argument 76 static void dsa_thread_##ID(void *t1, void *t2, void *t3); \ 77 K_THREAD_DEFINE(dsa_tid_##ID, DSA_STACK_SIZE, \ 78 dsa_thread_##ID, NULL, NULL, NULL, \ [all …]
|
D | dsa_lldp.c | 4 * SPDX-License-Identifier: Apache-2.0 39 uint8_t *p = &buffer[sizeof(struct net_eth_hdr)]; in dsa_lldp_send() local 40 uint8_t *pb = p; in dsa_lldp_send() 42 lan = ctx->dsa_port_idx; in dsa_lldp_send() 49 memcpy(eth_hdr->src.addr, net_if_get_link_addr(iface)->addr, ETH_ALEN); in dsa_lldp_send() 50 eth_hdr->dst.addr[0] = MCAST_DEST_MAC0; in dsa_lldp_send() 51 eth_hdr->dst.addr[1] = MCAST_DEST_MAC1; in dsa_lldp_send() 52 eth_hdr->dst.addr[2] = MCAST_DEST_MAC2; in dsa_lldp_send() 53 eth_hdr->dst.addr[3] = MCAST_DEST_MAC3; in dsa_lldp_send() 54 eth_hdr->dst.addr[4] = MCAST_DEST_MAC4; in dsa_lldp_send() [all …]
|
/Zephyr-latest/include/zephyr/drivers/timer/ |
D | nrf_grtc_timer.h | 4 * SPDX-License-Identifier: Apache-2.0 20 * @param id Compare channel ID. 29 typedef void (*z_nrf_grtc_timer_compare_handler_t)(int32_t id, uint64_t expire_time, 34 * @retval >=0 Non-negative indicates allocated channel ID. 35 * @retval -ENOMEM if channel cannot be allocated. 41 * @param chan Previously allocated channel ID. 53 * @param chan Channel ID. 64 * @param chan Channel ID. 74 * @param chan Channel ID. 84 * @param chan Channel ID. [all …]
|
/Zephyr-latest/include/zephyr/devicetree/ |
D | port-endpoint.h | 10 * SPDX-License-Identifier: Apache-2.0 21 * @defgroup devicetree-port-endpoint Devicetree Port Endpoint API 33 * @param pid port ID 34 * @return port node associated with @p pid 41 * @brief Get a port node from its id 43 * Given a device instance number, return a port node specified by its ID. 57 * #address-cells = <1>; 58 * #size-cells = <0>; 68 * #address-cells = <1>; 69 * #size-cells = <0>; [all …]
|
/Zephyr-latest/subsys/logging/frontends/ |
D | log_frontend_stmesp_demux.c | 4 * SPDX-License-Identifier: Apache-2.0 120 rd_idx = (rd_idx == 0) ? (demux.source_id_len - 1) : (rd_idx - 1); in get_source_id() 124 cnt--; in get_source_id() 137 union log_frontend_stmesp_demux_packet p = {.rgeneric = packet}; in get_wlen() local 140 switch (p.generic_packet->type) { in get_wlen() 148 len = calc_wlen(p.log->hdr.total_len + in get_wlen() 173 if (config->m_ids_cnt > BIT(3)) { in log_frontend_stmesp_demux_init() 174 return -EINVAL; in log_frontend_stmesp_demux_init() 177 demux.m_ids = config->m_ids; in log_frontend_stmesp_demux_init() 178 demux.m_ids_cnt = config->m_ids_cnt; in log_frontend_stmesp_demux_init() [all …]
|
/Zephyr-latest/subsys/logging/ |
D | log_cache.h | 4 * SPDX-License-Identifier: Apache-2.0 17 uintptr_t id; member 44 * @param[in] id Identication. 47 * @retval true if entry with given @p id was found and @p data contains pointer to it. 48 * @retval false if entry was not found and @p data points to the empty location. 50 bool log_cache_get(struct log_cache *cache, uintptr_t id, uint8_t **data); 62 * Release entry that was allocated by @ref log_cache_get when requested id was 78 return cache->hit; in log_cache_get_hit() 89 return cache->miss; in log_cache_get_miss()
|
/Zephyr-latest/include/zephyr/bluetooth/mesh/ |
D | cfg_cli.h | 8 * SPDX-License-Identifier: Apache-2.0 59 * @param mod_id Model ID. 60 * @param cid Company ID. 76 * @param mod_id The model ID within the element. 88 * as @c buf->len is greater than or equal to 2. 94 * @param mod_id Model ID. 95 * @param cid Company ID. 243 * @param mod_id The model ID within the element. 260 * @param mod_id Model ID. 261 * @param cid Company ID. [all …]
|
D | health_cli.h | 8 * SPDX-License-Identifier: Apache-2.0 113 * @return 0 if @p pub_buf is updated successfully, or (negative) error code on failure. 129 &(cli_data)->pub, cli_data, &bt_mesh_health_cli_cb) 131 /** @brief Get the registered fault state for the given Company ID. 133 * This method can be used asynchronously by setting @p test_id 134 * and ( @p faults or @p fault_count ) as NULL This way the method 146 * @param cid Company ID to get the registered faults of. 147 * @param test_id Test ID response buffer. 157 /** @brief Clear the registered faults for the given Company ID. 159 * This method can be used asynchronously by setting @p test_id [all …]
|
/Zephyr-latest/scripts/west_commands/zspdx/ |
D | spdxids.py | 3 # SPDX-License-Identifier: Apache-2.0 10 Converts a character to an SPDX-ID-safe character. 13 - c: character to test 14 Returns: c if it is SPDX-ID-safe (letter, number, '-' or '.'); 15 '-' otherwise 17 if c.isalpha() or c.isdigit() or c == "-" or c == ".": 19 return "-" 24 Converts a filename or other string to only SPDX-ID-safe characters. 30 - s: string to be converted. 31 Returns: string with all non-safe characters replaced with dashes. [all …]
|