Lines Matching refs:mbuf

134 	const struct msu_buffer	*mbuf;  member
181 const struct msu_buffer *mbuf; member
192 if (!strcmp(mbe->mbuf->name, name)) in __msu_buffer_entry_find()
210 return mbe ? mbe->mbuf : NULL; in msu_buffer_get()
213 static void msu_buffer_put(const struct msu_buffer *mbuf) in msu_buffer_put() argument
218 mbe = __msu_buffer_entry_find(mbuf->name); in msu_buffer_put()
224 int intel_th_msu_buffer_register(const struct msu_buffer *mbuf, in intel_th_msu_buffer_register() argument
235 if (__msu_buffer_entry_find(mbuf->name)) { in intel_th_msu_buffer_register()
241 mbe->mbuf = mbuf; in intel_th_msu_buffer_register()
251 void intel_th_msu_buffer_unregister(const struct msu_buffer *mbuf) in intel_th_msu_buffer_unregister() argument
256 mbe = __msu_buffer_entry_find(mbuf->name); in intel_th_msu_buffer_unregister()
679 if (!msc->mbuf) in intel_th_msu_init()
717 if (!win->msc->mbuf) in msc_win_set_lockout()
806 if (msc->mbuf && msc->mbuf->activate) in msc_configure()
807 msc->mbuf->activate(msc->mbuf_priv); in msc_configure()
829 if (msc->mbuf && msc->mbuf->deactivate) in msc_disable()
830 msc->mbuf->deactivate(msc->mbuf_priv); in msc_disable()
848 if (msc->mbuf && msc->mbuf->ready) in msc_disable()
849 msc->mbuf->ready(msc->mbuf_priv, win->sgt, in msc_disable()
1107 if (msc->mbuf && msc->mbuf->alloc_window) in msc_buffer_win_alloc()
1108 ret = msc->mbuf->alloc_window(msc->mbuf_priv, &win->sgt, in msc_buffer_win_alloc()
1169 if (msc->mbuf && msc->mbuf->free_window) in msc_buffer_win_free()
1170 msc->mbuf->free_window(msc->mbuf_priv, win->sgt); in msc_buffer_win_free()
1761 if (!msc->do_irq || !msc->mbuf) in intel_th_msc_interrupt()
1797 if (msc->mbuf && msc->mbuf->ready) in intel_th_msc_interrupt()
1798 msc->mbuf->ready(msc->mbuf_priv, win->sgt, in intel_th_msc_interrupt()
1842 if (!msc->mbuf) in msc_buffer_unassign()
1845 msc->mbuf->unassign(msc->mbuf_priv); in msc_buffer_unassign()
1846 msu_buffer_put(msc->mbuf); in msc_buffer_unassign()
1848 msc->mbuf = NULL; in msc_buffer_unassign()
1859 if (msc->mbuf) in mode_show()
1860 mode = msc->mbuf->name; in mode_show()
1871 const struct msu_buffer *mbuf = NULL; in mode_store() local
1900 mbuf = msu_buffer_get(mode); in mode_store()
1902 if (mbuf) in mode_store()
1915 if (mbuf && mbuf == msc->mbuf) { in mode_store()
1917 msu_buffer_put(mbuf); in mode_store()
1925 if (mbuf) { in mode_store()
1926 void *mbuf_priv = mbuf->assign(dev, &i); in mode_store()
1935 msc->mbuf = mbuf; in mode_store()
1943 if (ret && mbuf) in mode_store()
1944 msu_buffer_put(mbuf); in mode_store()
2072 if (msc->mode == MSC_MODE_MULTI && !msc->mbuf) in win_switch_store()