Lines Matching refs:g_debbuf
529 static _cdebbuf *g_debbuf; variable
538 cdb = g_debbuf; in cdebbuf_alloc()
564 if (likely(cdb == g_debbuf)) { in cdebbuf_free()
592 if (likely(cdb == g_debbuf)) in capi_message2str()
624 g_debbuf = kmalloc(sizeof(_cdebbuf), GFP_KERNEL); in cdebug_init()
625 if (!g_debbuf) { in cdebug_init()
629 g_debbuf->buf = kmalloc(CDEBUG_GSIZE, GFP_KERNEL); in cdebug_init()
630 if (!g_debbuf->buf) { in cdebug_init()
632 kfree(g_debbuf); in cdebug_init()
635 g_debbuf->size = CDEBUG_GSIZE; in cdebug_init()
636 g_debbuf->buf[0] = 0; in cdebug_init()
637 g_debbuf->p = g_debbuf->buf; in cdebug_init()
638 g_debbuf->pos = 0; in cdebug_init()
644 if (g_debbuf) in cdebug_exit()
645 kfree(g_debbuf->buf); in cdebug_exit()
646 kfree(g_debbuf); in cdebug_exit()
652 static _cdebbuf g_debbuf = {"CONFIG_CAPI_TRACE not enabled", NULL, 0, 0}; variable
656 return &g_debbuf; in capi_message2str()
661 return &g_debbuf; in capi_cmsg2str()