Lines Matching refs:hDbg

16 static void DI_deregister (pDbgHandle hDbg);
38 pDbgHandle hDbg; member
355 void *hDbg; in diva_maint_prtComp() local
367 hDbg = va_arg(ap, void *); /* ptr to DbgHandle */ in diva_maint_prtComp()
368 DI_register (hDbg); in diva_maint_prtComp()
377 pDbgHandle hDbg ; in DI_register() local
382 hDbg = (pDbgHandle)arg ; in DI_register()
386 if ((hDbg == NULL) || in DI_register()
387 ((hDbg->id == 0) && (((_OldDbgHandle_ *)hDbg)->id == -1)) || in DI_register()
388 (hDbg->Registered != 0)) { in DI_register()
395 if (clients[id].hDbg == hDbg) { in DI_register()
402 if (clients[id].hDbg) { /* slot is busy */ in DI_register()
406 if (!strcmp (clients[id].drvName, hDbg->drvName)) { in DI_register()
414 if (!clients[id].hDbg) { /* slot is busy */ in DI_register()
428 clients[free_id].hDbg = hDbg; in DI_register()
431 strcpy (clients[free_id].drvName, hDbg->drvName); in DI_register()
433 clients[free_id].dbgMask = hDbg->dbgMask; in DI_register()
435 hDbg->dbgMask |= clients[free_id].last_dbgMask; in DI_register()
440 hDbg->Registered = DBG_HANDLE_REG_NEW ; in DI_register()
441 hDbg->id = (byte)free_id; in DI_register()
442 hDbg->dbg_end = DI_deregister; in DI_register()
443 hDbg->dbg_prt = DI_format_locked; in DI_register()
444 hDbg->dbg_ev = DiProcessEventLog; in DI_register()
445 hDbg->dbg_irq = DI_format_locked; in DI_register()
446 if (hDbg->Version > 0) { in DI_register()
447 hDbg->dbg_old = DI_format_old; in DI_register()
449 hDbg->next = (pDbgHandle)DBG_MAGIC; in DI_register()
455 free_id, hDbg->drvName); in DI_register()
485 static void DI_deregister (pDbgHandle hDbg) { in DI_deregister() argument
498 if (clients[i].hDbg == hDbg) { in DI_deregister()
503 clients[i].hDbg = NULL; in DI_deregister()
505 hDbg->id = -1; in DI_deregister()
506 hDbg->dbgMask = 0; in DI_deregister()
507 hDbg->dbg_end = NULL; in DI_deregister()
508 hDbg->dbg_prt = NULL; in DI_deregister()
509 hDbg->dbg_irq = NULL; in DI_deregister()
510 if (hDbg->Version > 0) in DI_deregister()
511 hDbg->dbg_old = NULL; in DI_deregister()
512 hDbg->Registered = 0; in DI_deregister()
513 hDbg->next = NULL; in DI_deregister()
527 i, hDbg->drvName); in DI_deregister()
745 if (clients[id].hDbg) { in diva_get_driver_info()
763 if ((data_length >= 4) && clients[id].hDbg->drvTag[0]) { in diva_get_driver_info()
766 if ((to_copy = min(strlen(clients[id].hDbg->drvTag), (size_t)(data_length-2)))) { in diva_get_driver_info()
767 memcpy (p, clients[id].hDbg->drvTag, to_copy); in diva_get_driver_info()
794 if (clients[id].hDbg) { in diva_get_driver_dbg_mask()
796 *data++= (byte)(clients[id].hDbg->dbgMask); in diva_get_driver_dbg_mask()
797 *data++= (byte)(clients[id].hDbg->dbgMask >> 8); in diva_get_driver_dbg_mask()
798 *data++= (byte)(clients[id].hDbg->dbgMask >> 16); in diva_get_driver_dbg_mask()
799 *data++= (byte)(clients[id].hDbg->dbgMask >> 24); in diva_get_driver_dbg_mask()
819 if (clients[id].hDbg) { in diva_set_driver_dbg_mask()
820 dword old_mask = clients[id].hDbg->dbgMask; in diva_set_driver_dbg_mask()
822 clients[id].hDbg->dbgMask = mask; in diva_set_driver_dbg_mask()
823 clients[id].last_dbgMask = (clients[id].hDbg->dbgMask | clients[id].dbgMask); in diva_set_driver_dbg_mask()
891 if (clients[id].hDbg && (clients[id].request == d->request)) { in diva_mnt_add_xdi_adapter()
897 if (clients[id].hDbg) { /* slot is busy */ in diva_mnt_add_xdi_adapter()
924 clients[id].hDbg = &clients[id].Dbg; in diva_mnt_add_xdi_adapter()
973 clients[id].hDbg = NULL; in diva_mnt_add_xdi_adapter()
1041 if (clients[i].hDbg && (clients[i].request == d->request)) { in diva_mnt_remove_xdi_adapter()
1054 clients[i].hDbg = NULL; in diva_mnt_remove_xdi_adapter()
1119 if (clients[i].hDbg && clients[i].request && (clients[i].logical == AdapterNumber)) { in SuperTraceOpenAdapter()
1436 if (!pC->hDbg) { in diva_maint_state_change_notify()
1448 … if ((TraceFilterIdent == pC->hDbg->id) && (TraceFilterChannel == (int)channel->ChannelNumber)) { in diva_maint_state_change_notify()
1451 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG, "Selective Trace OFF for Ch=%d", in diva_maint_state_change_notify()
1460 if ((pC->hDbg->dbgMask & DIVA_MGT_DBG_IFC_BCHANNEL) != 0) { /* Activate B-channel trace */ in diva_maint_state_change_notify()
1463 if ((pC->hDbg->dbgMask & DIVA_MGT_DBG_IFC_AUDIO) != 0) { /* Activate AudioTap Trace */ in diva_maint_state_change_notify()
1467 TraceFilterIdent = pC->hDbg->id; in diva_maint_state_change_notify()
1471 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG, "Selective Trace ON for Ch=%d", in diva_maint_state_change_notify()
1476 if (view && (pC->hDbg->dbgMask & DIVA_MGT_DBG_LINE_EVENTS)) { in diva_maint_state_change_notify()
1477 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_STAT, "L Ch = %d", in diva_maint_state_change_notify()
1479 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_STAT, "L Status = <%s>", &channel->Line[0]); in diva_maint_state_change_notify()
1480 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_STAT, "L Layer1 = <%s>", &channel->Framing[0]); in diva_maint_state_change_notify()
1481 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_STAT, "L Layer2 = <%s>", &channel->Layer2[0]); in diva_maint_state_change_notify()
1482 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_STAT, "L Layer3 = <%s>", &channel->Layer3[0]); in diva_maint_state_change_notify()
1483 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_STAT, "L RAddr = <%s>", in diva_maint_state_change_notify()
1485 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_STAT, "L RSAddr = <%s>", in diva_maint_state_change_notify()
1487 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_STAT, "L LAddr = <%s>", in diva_maint_state_change_notify()
1489 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_STAT, "L LSAddr = <%s>", in diva_maint_state_change_notify()
1492 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_STAT, "L BC = <%s>", tmp); in diva_maint_state_change_notify()
1494 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_STAT, "L HLC = <%s>", tmp); in diva_maint_state_change_notify()
1496 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_STAT, "L LLC = <%s>", tmp); in diva_maint_state_change_notify()
1497 … diva_mnt_internal_dprintf (pC->hDbg->id, DLI_STAT, "L CR = 0x%x", channel->CallReference); in diva_maint_state_change_notify()
1498 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_STAT, "L Disc = 0x%x", in diva_maint_state_change_notify()
1500 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_STAT, "L Owner = <%s>", &channel->UserID[0]); in diva_maint_state_change_notify()
1506 if (pC->hDbg->dbgMask & DIVA_MGT_DBG_MDM_PROGRESS) { in diva_maint_state_change_notify()
1522 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "MDM Ch = %lu", in diva_maint_state_change_notify()
1524 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "MDM Event = %lu", modem->Event); in diva_maint_state_change_notify()
1525 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "MDM Norm = %lu", modem->Norm); in diva_maint_state_change_notify()
1526 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "MDM Opts. = 0x%08x", modem->Options); in diva_maint_state_change_notify()
1527 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "MDM Tx = %lu Bps", modem->TxSpeed); in diva_maint_state_change_notify()
1528 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "MDM Rx = %lu Bps", modem->RxSpeed); in diva_maint_state_change_notify()
1529 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "MDM RT = %lu mSec", in diva_maint_state_change_notify()
1531 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "MDM Sr = %lu", modem->SymbolRate); in diva_maint_state_change_notify()
1532 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "MDM Rxl = %d dBm", modem->RxLeveldBm); in diva_maint_state_change_notify()
1533 … diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "MDM El = %d dBm", modem->EchoLeveldBm); in diva_maint_state_change_notify()
1534 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "MDM SNR = %lu dB", modem->SNRdb); in diva_maint_state_change_notify()
1535 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "MDM MAE = %lu", modem->MAE); in diva_maint_state_change_notify()
1536 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "MDM LRet = %lu", in diva_maint_state_change_notify()
1538 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "MDM RRet = %lu", in diva_maint_state_change_notify()
1540 … diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "MDM LRes = %lu", modem->LocalResyncs); in diva_maint_state_change_notify()
1541 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "MDM RRes = %lu", in diva_maint_state_change_notify()
1544 diva_mnt_internal_dprintf(pC->hDbg->id,DLI_STAT,"MDM Disc = %lu", modem->DiscReason); in diva_maint_state_change_notify()
1547 if ((modem->Event == 3) && (pC->hDbg->dbgMask & DIVA_MGT_DBG_MDM_STATISTICS)) { in diva_maint_state_change_notify()
1553 if (pC->hDbg->dbgMask & DIVA_MGT_DBG_FAX_PROGRESS) { in diva_maint_state_change_notify()
1568 … diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "FAX Ch = %lu",(int)fax->ChannelNumber); in diva_maint_state_change_notify()
1569 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "FAX Event = %lu", fax->Event); in diva_maint_state_change_notify()
1570 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "FAX Pages = %lu", fax->Page_Counter); in diva_maint_state_change_notify()
1571 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "FAX Feat. = 0x%08x", fax->Features); in diva_maint_state_change_notify()
1572 … diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "FAX ID = <%s>", &fax->Station_ID[0]); in diva_maint_state_change_notify()
1573 … diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "FAX Saddr = <%s>", &fax->Subaddress[0]); in diva_maint_state_change_notify()
1574 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "FAX Pwd = <%s>", &fax->Password[0]); in diva_maint_state_change_notify()
1575 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "FAX Speed = %lu", fax->Speed); in diva_maint_state_change_notify()
1576 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "FAX Res. = 0x%08x", fax->Resolution); in diva_maint_state_change_notify()
1577 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "FAX Width = %lu", fax->Paper_Width); in diva_maint_state_change_notify()
1578 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "FAX Length= %lu", fax->Paper_Length); in diva_maint_state_change_notify()
1579 … diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "FAX SLT = %lu", fax->Scanline_Time); in diva_maint_state_change_notify()
1581 … diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "FAX Disc = %lu", fax->Disc_Reason); in diva_maint_state_change_notify()
1584 if ((fax->Event == 3) && (pC->hDbg->dbgMask & DIVA_MGT_DBG_FAX_STATISTICS)) { in diva_maint_state_change_notify()
1590 if (pC->hDbg->dbgMask & DIVA_MGT_DBG_IFC_EVENTS) { in diva_maint_state_change_notify()
1591 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_STAT, in diva_maint_state_change_notify()
1593 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_STAT, in diva_maint_state_change_notify()
1599 if (pC->hDbg->dbgMask & DIVA_MGT_DBG_IFC_STATISTICS) { in diva_maint_state_change_notify()
1604 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG, in diva_maint_state_change_notify()
1608 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG, in diva_maint_state_change_notify()
1612 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG, in diva_maint_state_change_notify()
1616 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG, in diva_maint_state_change_notify()
1620 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG, in diva_maint_state_change_notify()
1624 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG, in diva_maint_state_change_notify()
1628 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG, in diva_maint_state_change_notify()
1632 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG, in diva_maint_state_change_notify()
1640 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG, in diva_maint_state_change_notify()
1644 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG, in diva_maint_state_change_notify()
1648 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG, in diva_maint_state_change_notify()
1652 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG, in diva_maint_state_change_notify()
1656 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG, in diva_maint_state_change_notify()
1660 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG, in diva_maint_state_change_notify()
1664 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG, in diva_maint_state_change_notify()
1672 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG, in diva_maint_state_change_notify()
1676 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG, in diva_maint_state_change_notify()
1680 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG, in diva_maint_state_change_notify()
1684 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG, in diva_maint_state_change_notify()
1688 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG, in diva_maint_state_change_notify()
1692 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG, in diva_maint_state_change_notify()
1696 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG, in diva_maint_state_change_notify()
1700 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG, in diva_maint_state_change_notify()
1704 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG, in diva_maint_state_change_notify()
1711 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG, in diva_maint_state_change_notify()
1715 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG, in diva_maint_state_change_notify()
1719 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG, in diva_maint_state_change_notify()
1723 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG, in diva_maint_state_change_notify()
1727 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG, in diva_maint_state_change_notify()
1731 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG, in diva_maint_state_change_notify()
1735 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG, in diva_maint_state_change_notify()
1739 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG, in diva_maint_state_change_notify()
1743 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG, in diva_maint_state_change_notify()
1747 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG, in diva_maint_state_change_notify()
1751 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG, in diva_maint_state_change_notify()
1755 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG, in diva_maint_state_change_notify()
1759 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG, in diva_maint_state_change_notify()
1763 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG, in diva_maint_state_change_notify()
1767 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG, in diva_maint_state_change_notify()
1771 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG, in diva_maint_state_change_notify()
1775 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG, in diva_maint_state_change_notify()
1779 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG, in diva_maint_state_change_notify()
1864 pmsg->drv_id = pC->hDbg->id; in diva_maint_trace_notify()
1880 if (pC->request && pC->hDbg && pC->pIdiLib) { in diva_change_management_debug_mask()
1881 dword changed = pC->hDbg->dbgMask ^ old_mask; in diva_change_management_debug_mask()
1885 (pC->hDbg->dbgMask & DIVA_MGT_DBG_TRACE) != 0); in diva_change_management_debug_mask()
1889 (pC->hDbg->dbgMask & DIVA_MGT_DBG_DCHAN) != 0); in diva_change_management_debug_mask()
1893 int i, state = ((pC->hDbg->dbgMask & DIVA_MGT_DBG_IFC_BCHANNEL) != 0); in diva_change_management_debug_mask()
1900 int i, state = ((pC->hDbg->dbgMask & DIVA_MGT_DBG_IFC_AUDIO) != 0); in diva_change_management_debug_mask()
1934 if (clients[i].hDbg && clients[i].pIdiLib && clients[i].request) { in diva_mnt_shutdown_xdi_adapters()
1946 clients[i].hDbg = NULL; in diva_mnt_shutdown_xdi_adapters()
1963 if (clients[i].hDbg && clients[i].pIdiLib && clients[i].request && clients[i].request_pending) { in diva_mnt_shutdown_xdi_adapters()
2010 if (clients[i].hDbg && clients[i].pIdiLib && clients[i].request) { in diva_set_trace_filter()
2011 client_b_on = on && ((clients[i].hDbg->dbgMask & DIVA_MGT_DBG_IFC_BCHANNEL) != 0); in diva_set_trace_filter()
2012 client_atap_on = on && ((clients[i].hDbg->dbgMask & DIVA_MGT_DBG_IFC_AUDIO) != 0); in diva_set_trace_filter()
2021 if (clients[i].hDbg && clients[i].pIdiLib && clients[i].request && clients[i].request_pending) { in diva_set_trace_filter()