Lines Matching refs:mbe

183 	struct msu_buffer_entry *mbe;  in __msu_buffer_entry_find()  local
187 list_for_each_entry(mbe, &msu_buffer_list, entry) { in __msu_buffer_entry_find()
188 if (!strcmp(mbe->mbuf->name, name)) in __msu_buffer_entry_find()
189 return mbe; in __msu_buffer_entry_find()
198 struct msu_buffer_entry *mbe; in msu_buffer_get() local
201 mbe = __msu_buffer_entry_find(name); in msu_buffer_get()
202 if (mbe && !try_module_get(mbe->owner)) in msu_buffer_get()
203 mbe = NULL; in msu_buffer_get()
206 return mbe ? mbe->mbuf : NULL; in msu_buffer_get()
211 struct msu_buffer_entry *mbe; in msu_buffer_put() local
214 mbe = __msu_buffer_entry_find(mbuf->name); in msu_buffer_put()
215 if (mbe) in msu_buffer_put()
216 module_put(mbe->owner); in msu_buffer_put()
223 struct msu_buffer_entry *mbe; in intel_th_msu_buffer_register() local
226 mbe = kzalloc(sizeof(*mbe), GFP_KERNEL); in intel_th_msu_buffer_register()
227 if (!mbe) in intel_th_msu_buffer_register()
233 kfree(mbe); in intel_th_msu_buffer_register()
237 mbe->mbuf = mbuf; in intel_th_msu_buffer_register()
238 mbe->owner = owner; in intel_th_msu_buffer_register()
239 list_add_tail(&mbe->entry, &msu_buffer_list); in intel_th_msu_buffer_register()
249 struct msu_buffer_entry *mbe; in intel_th_msu_buffer_unregister() local
252 mbe = __msu_buffer_entry_find(mbuf->name); in intel_th_msu_buffer_unregister()
253 if (mbe) { in intel_th_msu_buffer_unregister()
254 list_del(&mbe->entry); in intel_th_msu_buffer_unregister()
255 kfree(mbe); in intel_th_msu_buffer_unregister()