/Zephyr-Core-3.5.0/tests/kernel/msgq/msgq_api/src/ |
D | test_msgq_attrs.c | 16 struct k_msgq_attrs attrs; in attrs_get() local 18 k_msgq_get_attrs(q, &attrs); in attrs_get() 19 zassert_equal(attrs.used_msgs, 0); in attrs_get() 27 k_msgq_get_attrs(q, &attrs); in attrs_get() 28 zassert_equal(attrs.used_msgs, MSGQ_LEN); in attrs_get() 35 k_msgq_get_attrs(q, &attrs); in attrs_get() 36 zassert_equal(attrs.used_msgs, 0); in attrs_get()
|
/Zephyr-Core-3.5.0/arch/arm/core/mmu/ |
D | arm_mmu.c | 75 .attrs = MT_NORMAL | MATTR_SHARED | 83 .attrs = MT_NORMAL | MATTR_SHARED | 92 .attrs = MT_NORMAL | MATTR_SHARED | 101 .attrs = MT_STRONGLY_ORDERED | 256 static struct arm_mmu_perms_attrs arm_mmu_convert_attr_flags(uint32_t attrs) in arm_mmu_convert_attr_flags() argument 260 __ASSERT(((attrs & MT_MASK) > 0), in arm_mmu_convert_attr_flags() 263 __ASSERT(!((attrs & MPERM_W) && !(attrs & MPERM_R)), in arm_mmu_convert_attr_flags() 266 __ASSERT(!((attrs & MPERM_W) && (attrs & MPERM_X)), in arm_mmu_convert_attr_flags() 284 if (attrs & MT_STRONGLY_ORDERED) { in arm_mmu_convert_attr_flags() 291 } else if (attrs & MT_DEVICE) { in arm_mmu_convert_attr_flags() [all …]
|
/Zephyr-Core-3.5.0/tests/bsim/bluetooth/host/gatt/sc_indicate/src/ |
D | peripheral.c | 36 static struct bt_gatt_attr attrs[] = { variable 43 .attrs = attrs, 44 .attr_count = ARRAY_SIZE(attrs),
|
/Zephyr-Core-3.5.0/include/zephyr/arch/arm/mmu/ |
D | arm_mmu.h | 64 .attrs = _attrs, \ 67 #define MMU_REGION_FLAT_ENTRY(name, adr, sz, attrs) \ argument 68 MMU_REGION_ENTRY(name, adr, adr, sz, attrs) 81 uint32_t attrs; member
|
/Zephyr-Core-3.5.0/arch/xtensa/core/ |
D | xtensa_mmu.c | 82 .attrs = Z_XTENSA_MMU_W, 84 .attrs = Z_XTENSA_MMU_W | Z_XTENSA_MMU_CACHED_WB, 93 .attrs = Z_XTENSA_MMU_W, 95 .attrs = Z_XTENSA_MMU_W | Z_XTENSA_MMU_CACHED_WB, 103 .attrs = Z_XTENSA_MMU_X | Z_XTENSA_MMU_CACHED_WB, 110 .attrs = Z_XTENSA_MMU_CACHED_WB, 129 const uint32_t attrs) in map_memory_range() argument 134 uint32_t pte = Z_XTENSA_PTE(page, Z_XTENSA_KERNEL_RING, attrs); in map_memory_range() 155 const uint32_t attrs) in map_memory() argument 157 map_memory_range(start, end, attrs); in map_memory() [all …]
|
/Zephyr-Core-3.5.0/tests/bsim/bluetooth/host/gatt/notify_multiple/src/ |
D | gatt_server_test.c | 101 static inline void multiple_notify(const struct bt_gatt_attr *attrs[2]) in multiple_notify() 118 params[0].attr = attrs[0]; in multiple_notify() 119 params[1].attr = attrs[1]; in multiple_notify() 135 const struct bt_gatt_attr *attrs[2]; in test_main() local 161 attrs[0] = bt_gatt_find_by_uuid(NULL, 0, TEST_LONG_CHRC_UUID); in test_main() 163 attrs[1] = &attr_test_svc[1]; in test_main() 166 multiple_notify(attrs); in test_main()
|
/Zephyr-Core-3.5.0/arch/arm64/core/ |
D | mmu.c | 545 static uint64_t get_region_desc(uint32_t attrs) in get_region_desc() argument 551 desc |= (attrs & MT_NS) ? PTE_BLOCK_DESC_NS : 0; in get_region_desc() 565 desc |= (attrs & MT_RW) ? PTE_BLOCK_DESC_AP_RW : PTE_BLOCK_DESC_AP_RO; in get_region_desc() 568 desc |= (attrs & MT_RW_AP_ELx) ? in get_region_desc() 575 mem_type = MT_TYPE(attrs); in get_region_desc() 595 if ((attrs & MT_RW) || (attrs & MT_P_EXECUTE_NEVER)) in get_region_desc() 598 if (((attrs & MT_RW) && (attrs & MT_RW_AP_ELx)) || in get_region_desc() 599 (attrs & MT_U_EXECUTE_NEVER)) in get_region_desc() 609 if (attrs & MT_NG) { in get_region_desc() 617 uintptr_t phys, uintptr_t virt, size_t size, uint32_t attrs) in __add_map() argument [all …]
|
/Zephyr-Core-3.5.0/lib/posix/ |
D | mqueue.c | 64 struct mq_attr *attrs = NULL; in mq_open() local 73 attrs = va_arg(va, struct mq_attr*); in mq_open() 77 if (attrs != NULL) { in mq_open() 78 msg_size = attrs->mq_msgsize; in mq_open() 79 max_msgs = attrs->mq_maxmsg; in mq_open() 124 if (attrs->mq_msgsize > CONFIG_MSG_SIZE_MAX && in mq_open() 125 attrs->mq_maxmsg > CONFIG_MSG_COUNT_MAX) { in mq_open() 306 struct k_msgq_attrs attrs; in mq_getattr() local 314 k_msgq_get_attrs(&mqd->mqueue->queue, &attrs); in mq_getattr() 316 mqstat->mq_maxmsg = attrs.max_msgs; in mq_getattr() [all …]
|
/Zephyr-Core-3.5.0/samples/sensor/mcux_acmp/src/ |
D | main.c | 36 static const struct acmp_attr attrs[] = { variable 106 for (i = 0; i < ARRAY_SIZE(attrs); i++) { in main() 107 val.val1 = attrs[i].val; in main() 109 attrs[i].attr, &val); in main()
|
/Zephyr-Core-3.5.0/tests/posix/common/src/ |
D | mqueue.c | 74 struct mq_attr attrs; in ZTEST() local 80 attrs.mq_msgsize = MESSAGE_SIZE; in ZTEST() 81 attrs.mq_maxmsg = MESG_COUNT_PERMQ; in ZTEST() 83 mqd = mq_open(queue, flags, mode, &attrs); in ZTEST()
|
/Zephyr-Core-3.5.0/include/zephyr/arch/arm64/ |
D | arm_mmu.h | 177 uint32_t attrs; member 204 .attrs = _attrs, \ 207 #define MMU_REGION_FLAT_ENTRY(name, adr, sz, attrs) \ argument 208 MMU_REGION_ENTRY(name, adr, adr, sz, attrs) 232 typedef struct { uint32_t attrs; } k_mem_partition_attr_t; member
|
/Zephyr-Core-3.5.0/subsys/net/lib/lwm2m/ |
D | lwm2m_rw_link_format.c | 187 struct lwm2m_attr **attrs, uint8_t *buf, in put_attributes() argument 194 if (attrs[i] == NULL) { in put_attributes() 198 ret = put_attribute(out, attrs[i], buf, buflen); in put_attributes() 209 static void get_attributes(const void *ref, struct lwm2m_attr **attrs) in get_attributes() argument 218 attrs[attr->type] = attr; in get_attributes() 226 struct lwm2m_attr *attrs[NR_LWM2M_ATTR] = { 0 }; in put_corelink_attributes() local 228 get_attributes(ref, attrs); in put_corelink_attributes() 230 return put_attributes(out, attrs, buf, buflen); in put_corelink_attributes() 240 struct lwm2m_attr *attrs[NR_LWM2M_ATTR] = { 0 }; in put_corelink_attributes_resource() local 249 get_attributes(obj, attrs); in put_corelink_attributes_resource() [all …]
|
D | lwm2m_observation.c | 201 struct notification_attrs *attrs, uint16_t srv_obj_inst) in engine_observe_get_attributes() argument 210 attrs->pmin = lwm2m_server_get_pmin(srv_obj_inst); in engine_observe_get_attributes() 211 attrs->pmax = lwm2m_server_get_pmax(srv_obj_inst); in engine_observe_get_attributes() 212 attrs->flags = BIT(LWM2M_ATTR_PMIN) | BIT(LWM2M_ATTR_PMAX); in engine_observe_get_attributes() 221 ret = update_attrs(obj, attrs); in engine_observe_get_attributes() 230 attrs->pmax = 0; in engine_observe_get_attributes() 231 attrs->pmin = 0; in engine_observe_get_attributes() 235 ret = update_attrs(obj_inst, attrs); in engine_observe_get_attributes() 268 ret = update_attrs(&obj_inst->resources[i], attrs); in engine_observe_get_attributes() 285 ret = update_attrs(res_inst, attrs); in engine_observe_get_attributes() [all …]
|
/Zephyr-Core-3.5.0/soc/xtensa/dc233c/ |
D | mmu.c | 21 .attrs = Z_XTENSA_MMU_X | Z_XTENSA_MMU_CACHED_WB, 32 .attrs = Z_XTENSA_MMU_X | Z_XTENSA_MMU_CACHED_WB,
|
/Zephyr-Core-3.5.0/kernel/ |
D | msg_q.c | 198 void z_impl_k_msgq_get_attrs(struct k_msgq *msgq, struct k_msgq_attrs *attrs) in z_impl_k_msgq_get_attrs() argument 200 attrs->msg_size = msgq->msg_size; in z_impl_k_msgq_get_attrs() 201 attrs->max_msgs = msgq->max_msgs; in z_impl_k_msgq_get_attrs() 202 attrs->used_msgs = msgq->used_msgs; in z_impl_k_msgq_get_attrs() 207 struct k_msgq_attrs *attrs) in z_vrfy_k_msgq_get_attrs() argument 210 Z_OOPS(Z_SYSCALL_MEMORY_WRITE(attrs, sizeof(struct k_msgq_attrs))); in z_vrfy_k_msgq_get_attrs() 211 z_impl_k_msgq_get_attrs(msgq, attrs); in z_vrfy_k_msgq_get_attrs()
|
/Zephyr-Core-3.5.0/include/zephyr/arch/xtensa/ |
D | xtensa_mmu.h | 21 const uint32_t attrs; member
|
/Zephyr-Core-3.5.0/subsys/bluetooth/audio/ |
D | tbs.c | 168 if (inst->service_p->attrs[j].user_data == ccc->user_data) { in lookup_inst_by_ccc() 287 inst->service_p->attrs, in tbs_set_terminate_reason() 293 gtbs_inst.service_p->attrs, in tbs_set_terminate_reason() 453 gtbs_inst.service_p->attrs, in notify_calls() 465 gtbs_inst.service_p->attrs, in notify_calls() 477 inst->service_p->attrs, in notify_calls() 487 inst->service_p->attrs, in notify_calls() 1726 inst->service_p->attrs, in signal_interval_timeout() 1741 gtbs_inst.service_p->attrs, in signal_interval_timeout() 2085 inst->service_p->attrs, in bt_tbs_remote_incoming() [all …]
|
D | cap_acceptor.c | 39 cas.attrs[1].user_data = bt_csip_set_member_svc_decl_get(*svc_inst); in bt_cap_acceptor_register()
|
D | vocs.c | 86 err = bt_gatt_notify_uuid(NULL, uuid, inst->service_p->attrs, data, len); in notify() 360 return inst->service_p->attrs; in bt_vocs_svc_decl_get() 433 attr = &inst->service_p->attrs[i]; in bt_vocs_register() 437 chrc = inst->service_p->attrs[i - 1].user_data; in bt_vocs_register() 443 chrc = inst->service_p->attrs[i - 1].user_data; in bt_vocs_register()
|
/Zephyr-Core-3.5.0/tests/bluetooth/audio/ascs/src/ |
D | test_common.c | 92 va_list attrs; in test_ase_get() local 95 va_start(attrs, num_ase); in test_ase_get() 109 *(va_arg(attrs, const struct bt_gatt_attr **)) = attr; in test_ase_get() 112 va_end(attrs); in test_ase_get()
|
/Zephyr-Core-3.5.0/subsys/bluetooth/services/ |
D | bas.c | 81 rc = bt_gatt_notify(NULL, &bas.attrs[1], &level, sizeof(level)); in bt_bas_set_battery_level()
|
D | hrs.c | 102 rc = bt_gatt_notify(NULL, &hrs_svc.attrs[1], &hrm, sizeof(hrm)); in bt_hrs_notify()
|
/Zephyr-Core-3.5.0/tests/bsim/bluetooth/host/security/id_addr_update/central/src/ |
D | utils.c | 220 subscribe_params.ccc_handle = bt_gatt_attr_get_handle(&bas.attrs[3]); in bas_subscribe() 221 subscribe_params.value_handle = bt_gatt_attr_get_handle(&bas.attrs[2]); in bas_subscribe()
|
/Zephyr-Core-3.5.0/samples/bluetooth/mtu_update/peripheral/src/ |
D | peripheral_mtu_update.c | 62 bt_gatt_find_by_uuid(mtu_test.attrs, 0xffff, ¬ify_characteristic_uuid.uuid); in run_peripheral_sample()
|
/Zephyr-Core-3.5.0/samples/bluetooth/peripheral/src/ |
D | cts.c | 108 bt_gatt_notify(NULL, &cts_cvs.attrs[1], &ct, sizeof(ct)); in cts_notify()
|