Lines Matching refs:g_debbuf
888 static _cdebbuf *g_debbuf; variable
897 cdb = g_debbuf; in cdebbuf_alloc()
923 if (likely(cdb == g_debbuf)) { in cdebbuf_free()
951 if (likely(cdb == g_debbuf)) in capi_message2str()
1014 g_debbuf = kmalloc(sizeof(_cdebbuf), GFP_KERNEL); in cdebug_init()
1015 if (!g_debbuf) { in cdebug_init()
1019 g_debbuf->buf = kmalloc(CDEBUG_GSIZE, GFP_KERNEL); in cdebug_init()
1020 if (!g_debbuf->buf) { in cdebug_init()
1022 kfree(g_debbuf); in cdebug_init()
1025 g_debbuf->size = CDEBUG_GSIZE; in cdebug_init()
1026 g_debbuf->buf[0] = 0; in cdebug_init()
1027 g_debbuf->p = g_debbuf->buf; in cdebug_init()
1028 g_debbuf->pos = 0; in cdebug_init()
1034 if (g_debbuf) in cdebug_exit()
1035 kfree(g_debbuf->buf); in cdebug_exit()
1036 kfree(g_debbuf); in cdebug_exit()
1042 static _cdebbuf g_debbuf = {"CONFIG_CAPI_TRACE not enabled", NULL, 0, 0}; variable
1046 return &g_debbuf; in capi_message2str()
1051 return &g_debbuf; in capi_cmsg2str()