Lines Matching refs:pC

55 static void diva_change_management_debug_mask (diva_maint_client_t* pC, dword old_mask);
1132 diva_maint_client_t* pC = (diva_maint_client_t*)AdapterHandle; in SuperTraceReadRequest() local
1134 if (pC && pC->pIdiLib && pC->request) { in SuperTraceReadRequest()
1135 ENTITY* e = (ENTITY*)(*(pC->pIdiLib->DivaSTraceGetHandle))(pC->pIdiLib->hLib); in SuperTraceReadRequest()
1136 byte* xdata = (byte*)&pC->xbuffer[0]; in SuperTraceReadRequest()
1151 pC->request_pending = 1; in SuperTraceReadRequest()
1161 diva_maint_client_t* pC = (diva_maint_client_t*)AdapterHandle; in SuperTraceGetNumberOfChannels() local
1163 return (pC->channels); in SuperTraceGetNumberOfChannels()
1170 diva_maint_client_t* pC = (diva_maint_client_t*)AdapterHandle; in SuperTraceASSIGN() local
1172 if (pC && pC->pIdiLib && pC->request) { in SuperTraceASSIGN()
1173 ENTITY* e = (ENTITY*)(*(pC->pIdiLib->DivaSTraceGetHandle))(pC->pIdiLib->hLib); in SuperTraceASSIGN()
1180 pC->xbuffer[0] = 0; in SuperTraceASSIGN()
1187 (*(pC->request))((ENTITY*)preq); in SuperTraceASSIGN()
1192 if ((pC->dma_handle = diva_get_dma_descriptor (pC->request, &rx_dma_magic)) >= 0) { in SuperTraceASSIGN()
1193 pC->xbuffer[0] = LLI; in SuperTraceASSIGN()
1194 pC->xbuffer[1] = 8; in SuperTraceASSIGN()
1195 pC->xbuffer[2] = 0x40; in SuperTraceASSIGN()
1196 pC->xbuffer[3] = (byte)pC->dma_handle; in SuperTraceASSIGN()
1197 pC->xbuffer[4] = (byte)rx_dma_magic; in SuperTraceASSIGN()
1198 pC->xbuffer[5] = (byte)(rx_dma_magic >> 8); in SuperTraceASSIGN()
1199 pC->xbuffer[6] = (byte)(rx_dma_magic >> 16); in SuperTraceASSIGN()
1200 pC->xbuffer[7] = (byte)(rx_dma_magic >> 24); in SuperTraceASSIGN()
1201 pC->xbuffer[8] = (byte)(DIVA_MAX_MANAGEMENT_TRANSFER_SIZE & 0xFF); in SuperTraceASSIGN()
1202 pC->xbuffer[9] = (byte)(DIVA_MAX_MANAGEMENT_TRANSFER_SIZE >> 8); in SuperTraceASSIGN()
1203 pC->xbuffer[10] = 0; in SuperTraceASSIGN()
1208 pC->dma_handle = -1; in SuperTraceASSIGN()
1214 e->X = &pC->XData; in SuperTraceASSIGN()
1218 e->X->P = (byte*)&pC->xbuffer[0]; in SuperTraceASSIGN()
1220 pC->request_pending = 1; in SuperTraceASSIGN()
1229 diva_maint_client_t* pC = (diva_maint_client_t*)AdapterHandle; in SuperTraceREMOVE() local
1231 if (pC && pC->pIdiLib && pC->request) { in SuperTraceREMOVE()
1232 ENTITY* e = (ENTITY*)(*(pC->pIdiLib->DivaSTraceGetHandle))(pC->pIdiLib->hLib); in SuperTraceREMOVE()
1235 e->X = &pC->XData; in SuperTraceREMOVE()
1239 e->X->P = (byte*)&pC->xbuffer[0]; in SuperTraceREMOVE()
1240 pC->xbuffer[0] = 0; in SuperTraceREMOVE()
1242 pC->request_pending = 1; in SuperTraceREMOVE()
1251 diva_maint_client_t* pC = (diva_maint_client_t*)hAdapter; in SuperTraceTraceOnRequest() local
1253 if (pC && pC->pIdiLib && pC->request) { in SuperTraceTraceOnRequest()
1254 ENTITY* e = (ENTITY*)(*(pC->pIdiLib->DivaSTraceGetHandle))(pC->pIdiLib->hLib); in SuperTraceTraceOnRequest()
1255 byte* xdata = (byte*)&pC->xbuffer[0]; in SuperTraceTraceOnRequest()
1269 pC->request_pending = 1; in SuperTraceTraceOnRequest()
1283 diva_maint_client_t* pC = (diva_maint_client_t*)AdapterHandle; in SuperTraceWriteVar() local
1285 if (pC && pC->pIdiLib && pC->request) { in SuperTraceWriteVar()
1286 ENTITY* e = (ENTITY*)(*(pC->pIdiLib->DivaSTraceGetHandle))(pC->pIdiLib->hLib); in SuperTraceWriteVar()
1287 diva_man_var_header_t* pVar = (diva_man_var_header_t*)&pC->xbuffer[0]; in SuperTraceWriteVar()
1290 memcpy (&pC->xbuffer[length], var, var_length); in SuperTraceWriteVar()
1302 pC->request_pending = 1; in SuperTraceWriteVar()
1313 diva_maint_client_t* pC = (diva_maint_client_t*)AdapterHandle; in SuperTraceExecuteRequest() local
1315 if (pC && pC->pIdiLib && pC->request) { in SuperTraceExecuteRequest()
1316 ENTITY* e = (ENTITY*)(*(pC->pIdiLib->DivaSTraceGetHandle))(pC->pIdiLib->hLib); in SuperTraceExecuteRequest()
1317 byte* xdata = (byte*)&pC->xbuffer[0]; in SuperTraceExecuteRequest()
1328 pC->request_pending = 1; in SuperTraceExecuteRequest()
1363 diva_maint_client_t* pC; in diva_maint_xdi_cb() local
1370 pC = (diva_maint_client_t*)pLib->hAdapter; in diva_maint_xdi_cb()
1372 if ((e->complete == 255) || (pC->dma_handle < 0)) { in diva_maint_xdi_cb()
1388 if (pC->request_pending) { in diva_maint_xdi_cb()
1389 pC->request_pending = 0; in diva_maint_xdi_cb()
1390 (*(pC->request))(e); in diva_maint_xdi_cb()
1431 diva_maint_client_t* pC = (diva_maint_client_t*)user_context; in diva_maint_state_change_notify() local
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()
1548 (*(pC->pIdiLib->DivaSTraceGetModemStatistics))(pC->pIdiLib); 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()
1585 (*(pC->pIdiLib->DivaSTraceGetFaxStatistics))(pC->pIdiLib); 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()
1796 diva_maint_client_t* pC = (diva_maint_client_t*)user_context; in diva_maint_trace_notify() local
1863 pmsg->dli = pC->logical; in diva_maint_trace_notify()
1864 pmsg->drv_id = pC->hDbg->id; in diva_maint_trace_notify()
1879 static void diva_change_management_debug_mask (diva_maint_client_t* pC, dword old_mask) { in diva_change_management_debug_mask() argument
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()
1884 (*(pC->pIdiLib->DivaSTraceSetInfo))(pC->pIdiLib, in diva_change_management_debug_mask()
1885 (pC->hDbg->dbgMask & DIVA_MGT_DBG_TRACE) != 0); in diva_change_management_debug_mask()
1888 (*(pC->pIdiLib->DivaSTraceSetDChannel))(pC->pIdiLib, 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()
1895 for (i = 0; i < pC->channels; i++) { in diva_change_management_debug_mask()
1896 (*(pC->pIdiLib->DivaSTraceSetBChannel))(pC->pIdiLib, i+1, state); 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()
1902 for (i = 0; i < pC->channels; i++) { in diva_change_management_debug_mask()
1903 (*(pC->pIdiLib->DivaSTraceSetAudioTap))(pC->pIdiLib, i+1, state); in diva_change_management_debug_mask()