Lines Matching refs:g_debbuf
713 static _cdebbuf *g_debbuf; variable
722 cdb = g_debbuf; in cdebbuf_alloc()
748 if (likely(cdb == g_debbuf)) { in cdebbuf_free()
776 if (likely(cdb == g_debbuf)) in capi_message2str()
839 g_debbuf = kmalloc(sizeof(_cdebbuf), GFP_KERNEL); in cdebug_init()
840 if (!g_debbuf) { in cdebug_init()
844 g_debbuf->buf = kmalloc(CDEBUG_GSIZE, GFP_KERNEL); in cdebug_init()
845 if (!g_debbuf->buf) { in cdebug_init()
847 kfree(g_debbuf); in cdebug_init()
850 g_debbuf->size = CDEBUG_GSIZE; in cdebug_init()
851 g_debbuf->buf[0] = 0; in cdebug_init()
852 g_debbuf->p = g_debbuf->buf; in cdebug_init()
853 g_debbuf->pos = 0; in cdebug_init()
859 if (g_debbuf) in cdebug_exit()
860 kfree(g_debbuf->buf); in cdebug_exit()
861 kfree(g_debbuf); in cdebug_exit()
867 static _cdebbuf g_debbuf = {"CONFIG_CAPI_TRACE not enabled", NULL, 0, 0}; variable
871 return &g_debbuf; in capi_message2str()
876 return &g_debbuf; in capi_cmsg2str()