/Zephyr-latest/dts/bindings/reserved-memory/ |
D | nordic,owned-memory.yaml | 2 # SPDX-License-Identifier: Apache-2.0 13 reserved-memory { 15 compatible = "nordic,owned-memory"; 36 compatible: "nordic,owned-memory" 38 include: [base.yaml, "zephyr,memory-common.yaml"] 47 Array of (owner-id, permission-flags) pairs, where: 49 - Owner ID represents the domain that will have access to this memory. 53 - Permissions are encoded as a 32-bit bitfield, using the flags found in 54 include/zephyr/dt-bindings/reserved-memory/nordic-owned-memory.h, 64 owner-id: [all …]
|
/Zephyr-latest/arch/riscv/core/ |
D | pmp.c | 4 * SPDX-License-Identifier: Apache-2.0 6 * Physical Memory Protection (PMP) is RISC-V parlance for an MPU. 14 * PMP slot configurations are updated in memory to avoid read-modify-write 18 * In the stackguard case we keep an m-mode copy for each thread. Each user 19 * mode threads also has a u-mode copy. This makes faster context switching 23 * Thread-specific m-mode and u-mode PMP entries start from the PMP slot 30 #include <zephyr/linker/linker-defs.h> 54 #define NAPOT_RANGE(size) (((size) - 1) >> 1) 72 start = (index == 0) ? 0 : (pmp_addr[index - 1] << 2); in print_pmp_entries() 73 end = (pmp_addr[index] << 2) - 1; in print_pmp_entries() [all …]
|
/Zephyr-latest/tests/bsim/bluetooth/ll/edtt/gatt_test_app/src/gatt/ |
D | gatt_macs.h | 4 * SPDX-License-Identifier: Apache-2.0 9 * This code is auto-generated from the Excel Workbook 12 * Feel free to change it - but be aware that your changes might be 33 * @param _write Attribute write callback. 40 .perm = _perm, \ 42 .write = _write, \ 57 * @param _write Characteristic attribute write callback. 129 * @param _write Descriptor attribute write callback. 206 * @param _value User description NULL-terminated C string.
|
/Zephyr-latest/arch/xtensa/core/ |
D | mpu.c | 4 * SPDX-License-Identifier: Apache-2.0 16 #include <zephyr/linker/linker-defs.h> 21 #include <xtensa/config/core-matmap.h> 22 #include <xtensa/config/core-isa.h> 36 /** Make sure write to the MPU region is atomic. */ 45 * - Each MPU region is described by TWO entries: 51 * - The last entry is a special case as there is no more "next" 56 * - Current implementation has following limitations: 57 * - All enabled entries are grouped towards the end of the map. 58 * - Except the last entry which can be disabled. This is [all …]
|
/Zephyr-latest/subsys/bluetooth/host/shell/ |
D | gatt.c | 9 * SPDX-License-Identifier: Apache-2.0 47 delta = k_cycle_get_32() - cycle_stamp; in update_write_stats() 57 /* if last data rx-ed was greater than 1 second in the past, in update_write_stats() 79 bt_shell_print("Write #%u: %u bytes (%u bps)", in print_write_stats() 90 /* This variable is write-locked when `(exchange_params.func != NULL)`. 91 * Must be zero-initialized when unlocked. 112 return -ENOEXEC; in cmd_exchange_mtu() 117 return -EBUSY; in cmd_exchange_mtu() 128 if (err == -EALREADY) { in cmd_exchange_mtu() 155 bt_shell_print("[write]"); in print_chrc_props() [all …]
|
/Zephyr-latest/subsys/bluetooth/audio/ |
D | vocs.c | 1 /* Bluetooth VOCS - Volume offset Control Service 5 * SPDX-License-Identifier: Apache-2.0 55 LOG_DBG("offset %d, counter %u", inst->state.offset, inst->state.change_counter); in read_offset_state() 56 return bt_gatt_attr_read(conn, attr, buf, len, offset, &inst->state, in read_offset_state() 57 sizeof(inst->state)); in read_offset_state() 84 atomic_set_bit(inst->notify, notify); in notify_work_reschedule() 86 err = k_work_reschedule(&inst->notify_work, K_NO_WAIT); in notify_work_reschedule() 98 err = bt_gatt_notify_uuid(NULL, uuid, inst->service_p->attrs, data, len); in notify() 99 if (err == -ENOMEM) { in notify() 101 } else if (err < 0 && err != -ENOTCONN) { in notify() [all …]
|
D | aics.c | 5 * SPDX-License-Identifier: Apache-2.0 129 LOG_DBG("gain %d, mute %u, gain_mode %u, counter %u", inst->srv.state.gain, in read_aics_state() 130 inst->srv.state.mute, inst->srv.state.gain_mode, inst->srv.state.change_counter); in read_aics_state() 132 return bt_gatt_attr_read(conn, attr, buf, len, offset, &inst->srv.state, in read_aics_state() 133 sizeof(inst->srv.state)); in read_aics_state() 142 LOG_DBG("units %u, min %d, max %d", inst->srv.gain_settings.units, in read_aics_gain_settings() 143 inst->srv.gain_settings.minimum, inst->srv.gain_settings.maximum); in read_aics_gain_settings() 146 &inst->srv.gain_settings, in read_aics_gain_settings() 147 sizeof(inst->srv.gain_settings)); in read_aics_gain_settings() 155 LOG_DBG("%u", inst->srv.type); in read_type() [all …]
|
/Zephyr-latest/include/zephyr/bluetooth/ |
D | gatt.h | 6 * Copyright (c) 2015-2016 Intel Corporation 8 * SPDX-License-Identifier: Apache-2.0 38 /** No operations supported, e.g. for notify-only */ 44 /** Attribute write permission. */ 53 /** @brief Attribute write permission with encryption. 55 * If set, requires encryption for write access. 61 * If set, requires encryption using authenticated link-key for read 66 /** @brief Attribute write permission with authentication. 68 * If set, requires encryption using authenticated link-key for write 73 /** @brief Attribute prepare write permission. [all …]
|
/Zephyr-latest/arch/x86/ |
D | gen_mmu.py | 5 # SPDX-License-Identifier: Apache-2.0 18 mapped with the Present and Write bits set. The linker scripts shouldn't 23 - By default, the Present, Write, and Execute Disable bits are 25 - The __text_region region will have Present and User bits set 26 - The __rodata_region region will have Present, User, and Execute 28 - On x86_64, the _locore region will have Present set and 34 - The double-mapping is used to transition the 38 - The mapping is always double-mapped at the top-level paging structure 40 with respect to the scope of top-level paging structure entries. 41 This allows the same second-level paging structure(s) to be used for [all …]
|
/Zephyr-latest/subsys/net/lib/lwm2m/ |
D | lwm2m_object.h | 3 * Copyright (c) 2018-2019 Foundries.io 5 * SPDX-License-Identifier: Apache-2.0 107 #define LWM2M_HAS_PERM(of, p) (((of)->permissions & p) == p) 128 /* remember that we have already output a value - can be between two block's */ 145 #define CPKT_BUF_WRITE(cpkt) (cpkt)->data, &(cpkt)->offset, (cpkt)->max_len 146 #define CPKT_BUF_READ(cpkt) (cpkt)->data, (cpkt)->max_len 147 #define CPKT_BUF_W_PTR(cpkt) ((cpkt)->data + (cpkt)->offset) 148 #define CPKT_BUF_W_SIZE(cpkt) ((cpkt)->max_len - (cpkt)->offset) 153 #define ICTX_BUF_R_LEFT_SZ(i_ctx) ((i_ctx)->in_cpkt->max_len - (i_ctx)->offset) 154 #define ICTX_BUF_R_PTR(i_ctx) ((i_ctx)->in_cpkt->data + (i_ctx)->offset) [all …]
|
/Zephyr-latest/subsys/bluetooth/host/ |
D | gatt.c | 1 /* gatt.c - Generic Attribute Profile handling */ 4 * Copyright (c) 2015-2016 Intel Corporation 7 * SPDX-License-Identifier: Apache-2.0 295 /* Total number of flags - must be at the end of the enum */ 339 err = bt_settings_store_sc(cfg->id, &cfg->peer, &cfg->data, sizeof(cfg->data)); in sc_store() 345 LOG_DBG("stored SC for %s (0x%04x-0x%04x)", bt_addr_le_str(&cfg->peer), cfg->data.start, in sc_store() 346 cfg->data.end); in sc_store() 367 err = bt_settings_delete_sc(cfg->id, &cfg->peer); in bt_gatt_clear_sc() 371 LOG_DBG("deleted SC for %s", bt_addr_le_str(&cfg->peer)); in bt_gatt_clear_sc() 382 if (bt_addr_le_is_bonded(conn->id, &conn->le.dst)) { in sc_clear() [all …]
|
D | att.c | 1 /* att.c - Attribute protocol handling */ 4 * Copyright (c) 2015-2016 Intel Corporation 6 * SPDX-License-Identifier: Apache-2.0 79 /* Total number of flags - must be at the end of the enum */ 120 return atomic_test_bit(chan->flags, ATT_ENHANCED); in bt_att_is_enhanced() 130 return MIN(chan->chan.rx.mtu, chan->chan.tx.mtu); in bt_att_mtu() 133 /* Descriptor of application-specific authorization callbacks that are used 175 * will block until a request-resource is available, and the callbacks run on 176 * the same thread as the ATT response handler that frees request-resources. 190 /* To mapping tables are used to avoid a big gap with NULL-entries. */ in bt_att_err_to_str() [all …]
|
/Zephyr-latest/tests/bluetooth/tester/src/ |
D | btp_gatt.c | 1 /* gatt.c - Bluetooth GATT Server Tester */ 4 * Copyright (c) 2015-2016 Intel Corporation 6 * SPDX-License-Identifier: Apache-2.0 60 /* bt_gatt_attr_next cannot be used on non-registered services */ 62 #define LAST_DB_ATTR (server_db + (attr_count - 1)) 78 * gatt_buf - cache used by a gatt client (to cache data read/discovered) 103 if ((ccc_values[i].attr != NULL) && (handle == ccc_values[i].attr->handle)) { in ccc_find_by_attr() 108 return -ENOENT; in ccc_find_by_attr() 119 return -ENOENT; in ccc_find_by_ccc() 163 const union uuid *u = CONTAINER_OF(pattern->uuid, union uuid, uuid); in gatt_db_add() [all …]
|