Home
last modified time | relevance | path

Searched refs:attrs (Results 1 – 25 of 77) sorted by relevance

1234

/Zephyr-latest/soc/intel/intel_adsp/ace/
Dmmu_ace30.c27 .attrs = XTENSA_MMU_PERM_W,
34 .attrs = XTENSA_MMU_PERM_W | XTENSA_MMU_CACHED_WB,
40 .attrs = XTENSA_MMU_PERM_X | XTENSA_MMU_MAP_SHARED,
46 .attrs = XTENSA_MMU_PERM_W | XTENSA_MMU_CACHED_WB,
52 .attrs = XTENSA_MMU_PERM_W,
58 .attrs = XTENSA_MMU_PERM_W,
64 .attrs = XTENSA_MMU_PERM_W,
70 .attrs = XTENSA_MMU_PERM_W,
77 .attrs = XTENSA_MMU_PERM_W | XTENSA_MMU_CACHED_WB,
93 .attrs = XTENSA_MMU_PERM_X | XTENSA_MMU_MAP_SHARED,
[all …]
/Zephyr-latest/tests/kernel/msgq/msgq_api/src/
Dtest_msgq_attrs.c16 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-latest/include/zephyr/arch/arm/mmu/
Darm_mmu.h64 .attrs = _attrs, \
67 #define MMU_REGION_FLAT_ENTRY(name, adr, sz, attrs) \ argument
68 MMU_REGION_ENTRY(name, adr, adr, sz, attrs)
86 #define MMU_REGION_DT_FLAT_ENTRY(node_id, attrs) \ argument
90 attrs),
120 uint32_t attrs; member
/Zephyr-latest/tests/bluetooth/audio/mocks/src/
Dgatt.c258 if (next->attrs[0].handle <= start_handle) { in foreach_attr_type_dyndb()
264 struct bt_gatt_attr *attr = &svc->attrs[i]; in foreach_attr_type_dyndb()
300 if (gatt_foreach_iter(&static_svc->attrs[i], in bt_gatt_foreach_attr_type()
353 if (last_handle == 0 || svc->attrs[0].handle > last_handle) { in gatt_insert()
360 if (tmp->attrs[0].handle > svc->attrs[0].handle) { in gatt_insert()
378 struct bt_gatt_attr *attrs = svc->attrs; in gatt_register() local
388 handle = last->attrs[last->attr_count - 1].handle; in gatt_register()
393 for (; attrs && count; attrs++, count--) { in gatt_register()
394 if (!attrs->handle) { in gatt_register()
396 attrs->handle = ++handle; in gatt_register()
[all …]
/Zephyr-latest/arch/arm/core/mmu/
Darm_mmu.c75 .attrs = MT_NORMAL | MATTR_SHARED |
83 .attrs = MT_NORMAL | MATTR_SHARED |
99 .attrs = MT_NORMAL | MATTR_SHARED |
108 .attrs = MT_STRONGLY_ORDERED |
263 static struct arm_mmu_perms_attrs arm_mmu_convert_attr_flags(uint32_t attrs) in arm_mmu_convert_attr_flags() argument
267 __ASSERT(((attrs & MT_MASK) > 0), in arm_mmu_convert_attr_flags()
270 __ASSERT(!((attrs & MPERM_W) && !(attrs & MPERM_R)), in arm_mmu_convert_attr_flags()
273 __ASSERT(!((attrs & MPERM_W) && (attrs & MPERM_X)), in arm_mmu_convert_attr_flags()
291 if (attrs & MT_STRONGLY_ORDERED) { in arm_mmu_convert_attr_flags()
298 } else if (attrs & MT_DEVICE) { in arm_mmu_convert_attr_flags()
[all …]
/Zephyr-latest/include/zephyr/arch/arm64/
Darm_mmu.h122 uint32_t attrs; member
149 .attrs = _attrs, \
152 #define MMU_REGION_FLAT_ENTRY(name, adr, sz, attrs) \ argument
153 MMU_REGION_ENTRY(name, adr, adr, sz, attrs)
171 #define MMU_REGION_DT_FLAT_ENTRY(node_id, attrs) \ argument
175 attrs),
216 typedef struct { uint32_t attrs; } k_mem_partition_attr_t; member
/Zephyr-latest/tests/bsim/bluetooth/host/gatt/sc_indicate/src/
Dperipheral.c36 static struct bt_gatt_attr attrs[] = { variable
43 .attrs = attrs,
44 .attr_count = ARRAY_SIZE(attrs),
/Zephyr-latest/tests/posix/common/src/
Dmqueue.c71 struct mq_attr attrs; in ZTEST() local
77 attrs.mq_msgsize = MESSAGE_SIZE; in ZTEST()
78 attrs.mq_maxmsg = MESG_COUNT_PERMQ; in ZTEST()
80 mqd = mq_open(queue, flags, mode, &attrs); in ZTEST()
120 struct mq_attr attrs = { in ZTEST() local
135 mqd = mq_open(queue, flags, mode, &attrs); in ZTEST()
169 struct mq_attr attrs = { in ZTEST() local
184 mqd = mq_open(queue, flags, mode, &attrs); in ZTEST()
201 struct mq_attr attrs = { in ZTEST() local
216 mqd = mq_open(queue, flags, mode, &attrs); in ZTEST()
[all …]
/Zephyr-latest/tests/bsim/bluetooth/host/gatt/notify_multiple/src/
Dgatt_server_test.c101 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-latest/samples/sensor/mcux_lpcmp/src/
Dmain.c19 static const struct lpcmp_attr attrs[] = { variable
88 for (uint8_t i = 0; i < ARRAY_SIZE(attrs); i++) { in main()
89 val.val1 = attrs[i].val; in main()
90 err = sensor_attr_set(lpcmp, SENSOR_CHAN_MCUX_LPCMP_OUTPUT, attrs[i].attr, &val); in main()
/Zephyr-latest/arch/arm64/core/
Dmmu.c657 static uint64_t get_region_desc(uint32_t attrs) in get_region_desc() argument
663 desc |= (attrs & MT_NS) ? PTE_BLOCK_DESC_NS : 0; in get_region_desc()
677 desc |= (attrs & MT_RW) ? PTE_BLOCK_DESC_AP_RW : PTE_BLOCK_DESC_AP_RO; in get_region_desc()
678 desc |= (IS_ENABLED(CONFIG_DEMAND_PAGING) && (attrs & MT_RW)) ? in get_region_desc()
682 desc |= (attrs & MT_RW_AP_ELx) ? in get_region_desc()
687 if (IS_ENABLED(CONFIG_DEMAND_PAGING) && (attrs & MT_PAGED_OUT) != 0) { in get_region_desc()
694 mem_type = MT_TYPE(attrs); in get_region_desc()
714 if ((attrs & MT_RW) || (attrs & MT_P_EXECUTE_NEVER)) { in get_region_desc()
718 if (((attrs & MT_RW) && (attrs & MT_RW_AP_ELx)) || in get_region_desc()
719 (attrs & MT_U_EXECUTE_NEVER)) { in get_region_desc()
[all …]
/Zephyr-latest/soc/cdns/dc233c/
Dmmu.c19 .attrs = XTENSA_MMU_PERM_X | XTENSA_MMU_CACHED_WB | XTENSA_MMU_MAP_SHARED,
30 .attrs = XTENSA_MMU_PERM_X | XTENSA_MMU_CACHED_WB,
/Zephyr-latest/samples/sensor/mcux_acmp/src/
Dmain.c41 static const struct acmp_attr attrs[] = { variable
113 for (i = 0; i < ARRAY_SIZE(attrs); i++) { in main()
114 val.val1 = attrs[i].val; in main()
116 attrs[i].attr, &val); in main()
/Zephyr-latest/subsys/net/lib/lwm2m/
Dlwm2m_rw_link_format.c188 struct lwm2m_attr **attrs, uint8_t *buf, in put_attributes() argument
195 if (attrs[i] == NULL) { in put_attributes()
199 ret = put_attribute(out, attrs[i], buf, buflen); in put_attributes()
210 static void get_attributes(const void *ref, struct lwm2m_attr **attrs) in get_attributes() argument
219 attrs[attr->type] = attr; in get_attributes()
227 struct lwm2m_attr *attrs[NR_LWM2M_ATTR] = { 0 }; in put_corelink_attributes() local
229 get_attributes(ref, attrs); in put_corelink_attributes()
231 return put_attributes(out, attrs, buf, buflen); in put_corelink_attributes()
241 struct lwm2m_attr *attrs[NR_LWM2M_ATTR] = { 0 }; in put_corelink_attributes_resource() local
250 get_attributes(obj, attrs); in put_corelink_attributes_resource()
[all …]
Dlwm2m_observation.c219 struct notification_attrs *attrs, uint16_t srv_obj_inst) in engine_observe_get_attributes() argument
228 attrs->pmin = lwm2m_server_get_pmin(srv_obj_inst); in engine_observe_get_attributes()
229 attrs->pmax = lwm2m_server_get_pmax(srv_obj_inst); in engine_observe_get_attributes()
230 attrs->flags = BIT(LWM2M_ATTR_PMIN) | BIT(LWM2M_ATTR_PMAX); in engine_observe_get_attributes()
239 ret = update_attrs(obj, attrs); in engine_observe_get_attributes()
248 attrs->pmax = 0; in engine_observe_get_attributes()
249 attrs->pmin = 0; in engine_observe_get_attributes()
253 ret = update_attrs(obj_inst, attrs); in engine_observe_get_attributes()
286 ret = update_attrs(&obj_inst->resources[i], attrs); in engine_observe_get_attributes()
303 ret = update_attrs(res_inst, attrs); in engine_observe_get_attributes()
[all …]
/Zephyr-latest/lib/posix/options/
Dmqueue.c59 struct mq_attr *attrs = NULL; in mq_open() local
69 attrs = va_arg(va, struct mq_attr*); in mq_open()
73 if (attrs != NULL) { in mq_open()
74 msg_size = attrs->mq_msgsize; in mq_open()
75 max_msgs = attrs->mq_maxmsg; in mq_open()
120 if (attrs->mq_msgsize > CONFIG_MSG_SIZE_MAX && in mq_open()
121 attrs->mq_maxmsg > CONFIG_POSIX_MQ_OPEN_MAX) { in mq_open()
302 struct k_msgq_attrs attrs; in mq_getattr() local
310 k_msgq_get_attrs(&mqd->mqueue->queue, &attrs); in mq_getattr()
312 mqstat->mq_maxmsg = attrs.max_msgs; in mq_getattr()
[all …]
/Zephyr-latest/tests/bsim/bluetooth/host/att/open_close/src/
Dmain.c54 static struct bt_gatt_attr attrs[] = { variable
61 .attrs = attrs,
62 .attr_count = ARRAY_SIZE(attrs),
/Zephyr-latest/tests/bsim/bluetooth/host/att/long_read/
Dmain.c83 static struct bt_gatt_attr attrs[] = { variable
90 .attrs = attrs,
91 .attr_count = ARRAY_SIZE(attrs),
/Zephyr-latest/subsys/bluetooth/audio/
Dcap_acceptor.c58 cas.attrs[1].user_data = bt_csip_set_member_svc_decl_get(*svc_inst); in bt_cap_acceptor_register()
68 cas.attrs[1].user_data = NULL; in bt_cap_acceptor_register()
Dgmap_server.c312 gmas.attrs = svc_attrs; in update_service()
318 memcpy(&gmas.attrs[gmas.attr_count], ugg_feat_chrc, sizeof(ugg_feat_chrc)); in update_service()
325 memcpy(&gmas.attrs[gmas.attr_count], ugt_feat_chrc, sizeof(ugt_feat_chrc)); in update_service()
332 memcpy(&gmas.attrs[gmas.attr_count], bgs_feat_chrc, sizeof(bgs_feat_chrc)); in update_service()
339 memcpy(&gmas.attrs[gmas.attr_count], bgr_feat_chrc, sizeof(bgr_feat_chrc)); in update_service()
/Zephyr-latest/arch/xtensa/core/
Dptables.c125 .attrs = XTENSA_MMU_PERM_W,
127 .attrs = XTENSA_MMU_PERM_W | XTENSA_MMU_CACHED_WB,
137 .attrs = XTENSA_MMU_PERM_W,
139 .attrs = XTENSA_MMU_PERM_W | XTENSA_MMU_CACHED_WB,
148 .attrs = XTENSA_MMU_PERM_X | XTENSA_MMU_CACHED_WB | XTENSA_MMU_MAP_SHARED,
155 .attrs = XTENSA_MMU_CACHED_WB | XTENSA_MMU_MAP_SHARED,
217 const uint32_t attrs) in map_memory_range() argument
220 bool shared = !!(attrs & XTENSA_MMU_MAP_SHARED); in map_memory_range()
221 uint32_t sw_attrs = (attrs & XTENSA_MMU_PTE_ATTR_ORIGINAL) == XTENSA_MMU_PTE_ATTR_ORIGINAL ? in map_memory_range()
222 attrs : 0; in map_memory_range()
[all …]
/Zephyr-latest/tests/bsim/bluetooth/host/att/timeout/
Dmain.c65 static struct bt_gatt_attr attrs[] = { variable
71 .attrs = attrs,
72 .attr_count = ARRAY_SIZE(attrs),
/Zephyr-latest/kernel/
Dmsg_q.c198 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 K_OOPS(K_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-latest/tests/bluetooth/gatt/src/
Dmain.c178 zassert_equal(local_test_svc.attrs[j].handle, 0x0000, in ZTEST()
190 zassert_equal(local_test_svc.attrs[j].handle, 0x0000, in ZTEST()
239 prealloc_test_svc.attrs[i].handle = 0x0100 + i; in ZTEST()
242 prealloc_test1_svc.attrs[i].handle = 0x0200 + i; in ZTEST()
253 zassert_equal(prealloc_test_svc.attrs[i].handle, 0x0100 + i, in ZTEST()
302 prealloc_test_svc.attrs[j].handle = 0x0100 + j; in ZTEST()
313 zassert_equal(prealloc_test_svc.attrs[i].handle, 0x0100 + i, in ZTEST()
/Zephyr-latest/subsys/bluetooth/services/nus/
Dnus_inst.c23 if (attr == &instance->svc->attrs[i]) { in bt_nus_inst_get_from_attr()

1234