Lines Matching refs:otype
83 const char *otype_to_str(enum k_objects otype) in otype_to_str() argument
91 switch (otype) { in otype_to_str()
104 ARG_UNUSED(otype); in otype_to_str()
191 static size_t obj_size_get(enum k_objects otype) in obj_size_get() argument
195 switch (otype) { in obj_size_get()
205 static size_t obj_align_get(enum k_objects otype) in obj_align_get() argument
209 switch (otype) { in obj_align_get()
321 static struct k_object *dynamic_object_create(enum k_objects otype, size_t align, in dynamic_object_create() argument
331 if (otype == K_OBJ_THREAD_STACK_ELEMENT) { in dynamic_object_create()
365 dyn->data = z_thread_aligned_alloc(align, obj_size_get(otype) + size); in dynamic_object_create()
373 dyn->kobj.type = otype; in dynamic_object_create()
396 static void *z_object_alloc(enum k_objects otype, size_t size) in z_object_alloc() argument
401 if ((otype <= K_OBJ_ANY) || (otype >= K_OBJ_LAST)) { in z_object_alloc()
402 LOG_ERR("bad object type %d requested", otype); in z_object_alloc()
406 switch (otype) { in z_object_alloc()
418 otype_to_str(otype)); in z_object_alloc()
425 zo = dynamic_object_create(otype, obj_align_get(otype), size); in z_object_alloc()
427 if (otype == K_OBJ_THREAD) { in z_object_alloc()
433 if (otype == K_OBJ_THREAD) { in z_object_alloc()
450 void *z_impl_k_object_alloc(enum k_objects otype) in z_impl_k_object_alloc() argument
452 return z_object_alloc(otype, 0); in z_impl_k_object_alloc()
455 void *z_impl_k_object_alloc_size(enum k_objects otype, size_t size) in z_impl_k_object_alloc_size() argument
457 return z_object_alloc(otype, size); in z_impl_k_object_alloc_size()
674 enum k_objects otype) in k_object_dump_error() argument
678 LOG_ERR("%p is not a valid %s", obj, otype_to_str(otype)); in k_object_dump_error()
693 LOG_ERR("%p %s in use", obj, otype_to_str(otype)); in k_object_dump_error()
733 int k_object_validate(struct k_object *ko, enum k_objects otype, in k_object_validate() argument
737 ((otype != K_OBJ_ANY) && (ko->type != otype)))) { in k_object_validate()