Lines Matching refs:mbe

187 	struct msu_buffer_entry *mbe;  in __msu_buffer_entry_find()  local
191 list_for_each_entry(mbe, &msu_buffer_list, entry) { in __msu_buffer_entry_find()
192 if (!strcmp(mbe->mbuf->name, name)) in __msu_buffer_entry_find()
193 return mbe; in __msu_buffer_entry_find()
202 struct msu_buffer_entry *mbe; in msu_buffer_get() local
205 mbe = __msu_buffer_entry_find(name); in msu_buffer_get()
206 if (mbe && !try_module_get(mbe->owner)) in msu_buffer_get()
207 mbe = NULL; in msu_buffer_get()
210 return mbe ? mbe->mbuf : NULL; in msu_buffer_get()
215 struct msu_buffer_entry *mbe; in msu_buffer_put() local
218 mbe = __msu_buffer_entry_find(mbuf->name); in msu_buffer_put()
219 if (mbe) in msu_buffer_put()
220 module_put(mbe->owner); in msu_buffer_put()
227 struct msu_buffer_entry *mbe; in intel_th_msu_buffer_register() local
230 mbe = kzalloc(sizeof(*mbe), GFP_KERNEL); in intel_th_msu_buffer_register()
231 if (!mbe) in intel_th_msu_buffer_register()
237 kfree(mbe); in intel_th_msu_buffer_register()
241 mbe->mbuf = mbuf; in intel_th_msu_buffer_register()
242 mbe->owner = owner; in intel_th_msu_buffer_register()
243 list_add_tail(&mbe->entry, &msu_buffer_list); in intel_th_msu_buffer_register()
253 struct msu_buffer_entry *mbe; in intel_th_msu_buffer_unregister() local
256 mbe = __msu_buffer_entry_find(mbuf->name); in intel_th_msu_buffer_unregister()
257 if (mbe) { in intel_th_msu_buffer_unregister()
258 list_del(&mbe->entry); in intel_th_msu_buffer_unregister()
259 kfree(mbe); in intel_th_msu_buffer_unregister()