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()
677 if (!msc->mbuf) in intel_th_msu_init()
715 if (!win->msc->mbuf) in msc_win_set_lockout()
804 if (msc->mbuf && msc->mbuf->activate) in msc_configure()
805 msc->mbuf->activate(msc->mbuf_priv); in msc_configure()
827 if (msc->mbuf && msc->mbuf->deactivate) in msc_disable()
828 msc->mbuf->deactivate(msc->mbuf_priv); in msc_disable()
846 if (msc->mbuf && msc->mbuf->ready) in msc_disable()
847 msc->mbuf->ready(msc->mbuf_priv, win->sgt, in msc_disable()
1115 if (msc->mbuf && msc->mbuf->alloc_window) in msc_buffer_win_alloc()
1116 ret = msc->mbuf->alloc_window(msc->mbuf_priv, &win->sgt, in msc_buffer_win_alloc()
1177 if (msc->mbuf && msc->mbuf->free_window) in msc_buffer_win_free()
1178 msc->mbuf->free_window(msc->mbuf_priv, win->sgt); in msc_buffer_win_free()
1769 if (!msc->do_irq || !msc->mbuf) in intel_th_msc_interrupt()
1805 if (msc->mbuf && msc->mbuf->ready) in intel_th_msc_interrupt()
1806 msc->mbuf->ready(msc->mbuf_priv, win->sgt, in intel_th_msc_interrupt()
1850 if (!msc->mbuf) in msc_buffer_unassign()
1853 msc->mbuf->unassign(msc->mbuf_priv); in msc_buffer_unassign()
1854 msu_buffer_put(msc->mbuf); in msc_buffer_unassign()
1856 msc->mbuf = NULL; in msc_buffer_unassign()
1867 if (msc->mbuf) in mode_show()
1868 mode = msc->mbuf->name; in mode_show()
1879 const struct msu_buffer *mbuf = NULL; in mode_store() local
1908 mbuf = msu_buffer_get(mode); in mode_store()
1910 if (mbuf) in mode_store()
1923 if (mbuf && mbuf == msc->mbuf) { in mode_store()
1925 msu_buffer_put(mbuf); in mode_store()
1933 if (mbuf) { in mode_store()
1934 void *mbuf_priv = mbuf->assign(dev, &i); in mode_store()
1943 msc->mbuf = mbuf; in mode_store()
1951 if (ret && mbuf) in mode_store()
1952 msu_buffer_put(mbuf); in mode_store()
2080 if (msc->mode == MSC_MODE_MULTI && !msc->mbuf) in win_switch_store()