Lines Matching refs:ext_lib
27 struct ext_library *ext_lib = ext_lib_get(); in lib_notif_msg_init() local
28 struct ipc_lib_msg *lib_notif = ext_lib->lib_notif_pool; in lib_notif_msg_init()
46 if (ext_lib->lib_notif_count > LIB_MANAGER_LIB_NOTIX_MAX_COUNT) { in lib_notif_msg_init()
48 ext_lib->lib_notif_count); in lib_notif_msg_init()
62 ext_lib->lib_notif_count++; in lib_notif_msg_init()
65 if (ext_lib->lib_notif_count > 1) { in lib_notif_msg_init()
66 key = k_spin_lock(&ext_lib->lock); in lib_notif_msg_init()
68 k_spin_unlock(&ext_lib->lock, key); in lib_notif_msg_init()
70 ext_lib->lib_notif_pool = msg_pool_elem; in lib_notif_msg_init()
89 struct ext_library *ext_lib = ext_lib_get(); in lib_notif_msg_clean() local
90 struct ipc_lib_msg *lib_notif = ext_lib->lib_notif_pool; in lib_notif_msg_clean()
100 key = k_spin_lock(&ext_lib->lock); in lib_notif_msg_clean()
102 k_spin_unlock(&ext_lib->lock, key); in lib_notif_msg_clean()
105 ext_lib->lib_notif_count--; in lib_notif_msg_clean()
114 key = k_spin_lock(&ext_lib->lock); in lib_notif_msg_clean()
116 k_spin_unlock(&ext_lib->lock, key); in lib_notif_msg_clean()
118 ext_lib->lib_notif_pool = NULL; in lib_notif_msg_clean()
119 ext_lib->lib_notif_count--; in lib_notif_msg_clean()