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()
1101 if (msc->mbuf && msc->mbuf->alloc_window) in msc_buffer_win_alloc()
1102 ret = msc->mbuf->alloc_window(msc->mbuf_priv, &win->sgt, in msc_buffer_win_alloc()
1167 if (msc->mbuf && msc->mbuf->free_window) in msc_buffer_win_free()
1168 msc->mbuf->free_window(msc->mbuf_priv, win->sgt); in msc_buffer_win_free()
1755 if (!msc->do_irq || !msc->mbuf) in intel_th_msc_interrupt()
1791 if (msc->mbuf && msc->mbuf->ready) in intel_th_msc_interrupt()
1792 msc->mbuf->ready(msc->mbuf_priv, win->sgt, in intel_th_msc_interrupt()
1836 if (!msc->mbuf) in msc_buffer_unassign()
1839 msc->mbuf->unassign(msc->mbuf_priv); in msc_buffer_unassign()
1840 msu_buffer_put(msc->mbuf); in msc_buffer_unassign()
1842 msc->mbuf = NULL; in msc_buffer_unassign()
1853 if (msc->mbuf) in mode_show()
1854 mode = msc->mbuf->name; in mode_show()
1865 const struct msu_buffer *mbuf = NULL; in mode_store() local
1894 mbuf = msu_buffer_get(mode); in mode_store()
1896 if (mbuf) in mode_store()
1909 if (mbuf && mbuf == msc->mbuf) { in mode_store()
1911 msu_buffer_put(mbuf); in mode_store()
1919 if (mbuf) { in mode_store()
1920 void *mbuf_priv = mbuf->assign(dev, &i); in mode_store()
1929 msc->mbuf = mbuf; in mode_store()
1937 if (ret && mbuf) in mode_store()
1938 msu_buffer_put(mbuf); in mode_store()
2066 if (msc->mode == MSC_MODE_MULTI && !msc->mbuf) in win_switch_store()