Lines Matching refs:pC
56 static void diva_change_management_debug_mask(diva_maint_client_t *pC, dword old_mask);
1128 diva_maint_client_t *pC = (diva_maint_client_t *)AdapterHandle; in SuperTraceReadRequest() local
1130 if (pC && pC->pIdiLib && pC->request) { in SuperTraceReadRequest()
1131 ENTITY *e = (ENTITY *)(*(pC->pIdiLib->DivaSTraceGetHandle))(pC->pIdiLib->hLib); in SuperTraceReadRequest()
1132 byte *xdata = (byte *)&pC->xbuffer[0]; in SuperTraceReadRequest()
1147 pC->request_pending = 1; in SuperTraceReadRequest()
1157 diva_maint_client_t *pC = (diva_maint_client_t *)AdapterHandle; in SuperTraceGetNumberOfChannels() local
1159 return (pC->channels); in SuperTraceGetNumberOfChannels()
1166 diva_maint_client_t *pC = (diva_maint_client_t *)AdapterHandle; in SuperTraceASSIGN() local
1168 if (pC && pC->pIdiLib && pC->request) { in SuperTraceASSIGN()
1169 ENTITY *e = (ENTITY *)(*(pC->pIdiLib->DivaSTraceGetHandle))(pC->pIdiLib->hLib); in SuperTraceASSIGN()
1176 pC->xbuffer[0] = 0; in SuperTraceASSIGN()
1183 (*(pC->request))((ENTITY *)preq); in SuperTraceASSIGN()
1188 if ((pC->dma_handle = diva_get_dma_descriptor(pC->request, &rx_dma_magic)) >= 0) { in SuperTraceASSIGN()
1189 pC->xbuffer[0] = LLI; in SuperTraceASSIGN()
1190 pC->xbuffer[1] = 8; in SuperTraceASSIGN()
1191 pC->xbuffer[2] = 0x40; in SuperTraceASSIGN()
1192 pC->xbuffer[3] = (byte)pC->dma_handle; in SuperTraceASSIGN()
1193 pC->xbuffer[4] = (byte)rx_dma_magic; in SuperTraceASSIGN()
1194 pC->xbuffer[5] = (byte)(rx_dma_magic >> 8); in SuperTraceASSIGN()
1195 pC->xbuffer[6] = (byte)(rx_dma_magic >> 16); in SuperTraceASSIGN()
1196 pC->xbuffer[7] = (byte)(rx_dma_magic >> 24); in SuperTraceASSIGN()
1197 pC->xbuffer[8] = (byte)(DIVA_MAX_MANAGEMENT_TRANSFER_SIZE & 0xFF); in SuperTraceASSIGN()
1198 pC->xbuffer[9] = (byte)(DIVA_MAX_MANAGEMENT_TRANSFER_SIZE >> 8); in SuperTraceASSIGN()
1199 pC->xbuffer[10] = 0; in SuperTraceASSIGN()
1204 pC->dma_handle = -1; in SuperTraceASSIGN()
1210 e->X = &pC->XData; in SuperTraceASSIGN()
1214 e->X->P = (byte *)&pC->xbuffer[0]; in SuperTraceASSIGN()
1216 pC->request_pending = 1; in SuperTraceASSIGN()
1225 diva_maint_client_t *pC = (diva_maint_client_t *)AdapterHandle; in SuperTraceREMOVE() local
1227 if (pC && pC->pIdiLib && pC->request) { in SuperTraceREMOVE()
1228 ENTITY *e = (ENTITY *)(*(pC->pIdiLib->DivaSTraceGetHandle))(pC->pIdiLib->hLib); in SuperTraceREMOVE()
1231 e->X = &pC->XData; in SuperTraceREMOVE()
1235 e->X->P = (byte *)&pC->xbuffer[0]; in SuperTraceREMOVE()
1236 pC->xbuffer[0] = 0; in SuperTraceREMOVE()
1238 pC->request_pending = 1; in SuperTraceREMOVE()
1247 diva_maint_client_t *pC = (diva_maint_client_t *)hAdapter; in SuperTraceTraceOnRequest() local
1249 if (pC && pC->pIdiLib && pC->request) { in SuperTraceTraceOnRequest()
1250 ENTITY *e = (ENTITY *)(*(pC->pIdiLib->DivaSTraceGetHandle))(pC->pIdiLib->hLib); in SuperTraceTraceOnRequest()
1251 byte *xdata = (byte *)&pC->xbuffer[0]; in SuperTraceTraceOnRequest()
1265 pC->request_pending = 1; in SuperTraceTraceOnRequest()
1279 diva_maint_client_t *pC = (diva_maint_client_t *)AdapterHandle; in SuperTraceWriteVar() local
1281 if (pC && pC->pIdiLib && pC->request) { in SuperTraceWriteVar()
1282 ENTITY *e = (ENTITY *)(*(pC->pIdiLib->DivaSTraceGetHandle))(pC->pIdiLib->hLib); in SuperTraceWriteVar()
1283 diva_man_var_header_t *pVar = (diva_man_var_header_t *)&pC->xbuffer[0]; in SuperTraceWriteVar()
1286 memcpy(&pC->xbuffer[length], var, var_length); in SuperTraceWriteVar()
1298 pC->request_pending = 1; in SuperTraceWriteVar()
1309 diva_maint_client_t *pC = (diva_maint_client_t *)AdapterHandle; in SuperTraceExecuteRequest() local
1311 if (pC && pC->pIdiLib && pC->request) { in SuperTraceExecuteRequest()
1312 ENTITY *e = (ENTITY *)(*(pC->pIdiLib->DivaSTraceGetHandle))(pC->pIdiLib->hLib); in SuperTraceExecuteRequest()
1313 byte *xdata = (byte *)&pC->xbuffer[0]; in SuperTraceExecuteRequest()
1324 pC->request_pending = 1; in SuperTraceExecuteRequest()
1359 diva_maint_client_t *pC; in diva_maint_xdi_cb() local
1366 pC = (diva_maint_client_t *)pLib->hAdapter; in diva_maint_xdi_cb()
1368 if ((e->complete == 255) || (pC->dma_handle < 0)) { in diva_maint_xdi_cb()
1384 if (pC->request_pending) { in diva_maint_xdi_cb()
1385 pC->request_pending = 0; in diva_maint_xdi_cb()
1386 (*(pC->request))(e); in diva_maint_xdi_cb()
1427 diva_maint_client_t *pC = (diva_maint_client_t *)user_context; in diva_maint_state_change_notify() local
1432 if (!pC->hDbg) { in diva_maint_state_change_notify()
1444 if ((TraceFilterIdent == pC->hDbg->id) && (TraceFilterChannel == (int)channel->ChannelNumber)) { in diva_maint_state_change_notify()
1447 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_LOG, "Selective Trace OFF for Ch=%d", in diva_maint_state_change_notify()
1456 if ((pC->hDbg->dbgMask & DIVA_MGT_DBG_IFC_BCHANNEL) != 0) { /* Activate B-channel trace */ in diva_maint_state_change_notify()
1459 if ((pC->hDbg->dbgMask & DIVA_MGT_DBG_IFC_AUDIO) != 0) { /* Activate AudioTap Trace */ in diva_maint_state_change_notify()
1463 TraceFilterIdent = pC->hDbg->id; in diva_maint_state_change_notify()
1467 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_LOG, "Selective Trace ON for Ch=%d", in diva_maint_state_change_notify()
1472 if (view && (pC->hDbg->dbgMask & DIVA_MGT_DBG_LINE_EVENTS)) { in diva_maint_state_change_notify()
1473 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "L Ch = %d", in diva_maint_state_change_notify()
1475 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "L Status = <%s>", &channel->Line[0]); in diva_maint_state_change_notify()
1476 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "L Layer1 = <%s>", &channel->Framing[0]); in diva_maint_state_change_notify()
1477 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "L Layer2 = <%s>", &channel->Layer2[0]); in diva_maint_state_change_notify()
1478 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "L Layer3 = <%s>", &channel->Layer3[0]); in diva_maint_state_change_notify()
1479 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "L RAddr = <%s>", in diva_maint_state_change_notify()
1481 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "L RSAddr = <%s>", in diva_maint_state_change_notify()
1483 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "L LAddr = <%s>", in diva_maint_state_change_notify()
1485 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "L LSAddr = <%s>", in diva_maint_state_change_notify()
1488 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "L BC = <%s>", tmp); in diva_maint_state_change_notify()
1490 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "L HLC = <%s>", tmp); in diva_maint_state_change_notify()
1492 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "L LLC = <%s>", tmp); in diva_maint_state_change_notify()
1493 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "L CR = 0x%x", channel->CallReference); in diva_maint_state_change_notify()
1494 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "L Disc = 0x%x", in diva_maint_state_change_notify()
1496 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "L Owner = <%s>", &channel->UserID[0]); in diva_maint_state_change_notify()
1502 if (pC->hDbg->dbgMask & DIVA_MGT_DBG_MDM_PROGRESS) { in diva_maint_state_change_notify()
1518 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "MDM Ch = %lu", in diva_maint_state_change_notify()
1520 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "MDM Event = %lu", modem->Event); in diva_maint_state_change_notify()
1521 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "MDM Norm = %lu", modem->Norm); in diva_maint_state_change_notify()
1522 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "MDM Opts. = 0x%08x", modem->Options); in diva_maint_state_change_notify()
1523 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "MDM Tx = %lu Bps", modem->TxSpeed); in diva_maint_state_change_notify()
1524 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "MDM Rx = %lu Bps", modem->RxSpeed); in diva_maint_state_change_notify()
1525 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "MDM RT = %lu mSec", in diva_maint_state_change_notify()
1527 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "MDM Sr = %lu", modem->SymbolRate); in diva_maint_state_change_notify()
1528 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "MDM Rxl = %d dBm", modem->RxLeveldBm); in diva_maint_state_change_notify()
1529 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "MDM El = %d dBm", modem->EchoLeveldBm); in diva_maint_state_change_notify()
1530 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "MDM SNR = %lu dB", modem->SNRdb); in diva_maint_state_change_notify()
1531 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "MDM MAE = %lu", modem->MAE); in diva_maint_state_change_notify()
1532 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "MDM LRet = %lu", in diva_maint_state_change_notify()
1534 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "MDM RRet = %lu", in diva_maint_state_change_notify()
1536 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "MDM LRes = %lu", modem->LocalResyncs); in diva_maint_state_change_notify()
1537 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "MDM RRes = %lu", in diva_maint_state_change_notify()
1540 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "MDM Disc = %lu", modem->DiscReason); in diva_maint_state_change_notify()
1543 if ((modem->Event == 3) && (pC->hDbg->dbgMask & DIVA_MGT_DBG_MDM_STATISTICS)) { in diva_maint_state_change_notify()
1544 (*(pC->pIdiLib->DivaSTraceGetModemStatistics))(pC->pIdiLib); in diva_maint_state_change_notify()
1549 if (pC->hDbg->dbgMask & DIVA_MGT_DBG_FAX_PROGRESS) { in diva_maint_state_change_notify()
1564 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "FAX Ch = %lu", (int)fax->ChannelNumber); in diva_maint_state_change_notify()
1565 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "FAX Event = %lu", fax->Event); in diva_maint_state_change_notify()
1566 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "FAX Pages = %lu", fax->Page_Counter); in diva_maint_state_change_notify()
1567 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "FAX Feat. = 0x%08x", fax->Features); in diva_maint_state_change_notify()
1568 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "FAX ID = <%s>", &fax->Station_ID[0]); in diva_maint_state_change_notify()
1569 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "FAX Saddr = <%s>", &fax->Subaddress[0]); in diva_maint_state_change_notify()
1570 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "FAX Pwd = <%s>", &fax->Password[0]); in diva_maint_state_change_notify()
1571 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "FAX Speed = %lu", fax->Speed); in diva_maint_state_change_notify()
1572 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "FAX Res. = 0x%08x", fax->Resolution); in diva_maint_state_change_notify()
1573 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "FAX Width = %lu", fax->Paper_Width); in diva_maint_state_change_notify()
1574 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "FAX Length= %lu", fax->Paper_Length); in diva_maint_state_change_notify()
1575 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "FAX SLT = %lu", fax->Scanline_Time); in diva_maint_state_change_notify()
1577 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "FAX Disc = %lu", fax->Disc_Reason); in diva_maint_state_change_notify()
1580 if ((fax->Event == 3) && (pC->hDbg->dbgMask & DIVA_MGT_DBG_FAX_STATISTICS)) { in diva_maint_state_change_notify()
1581 (*(pC->pIdiLib->DivaSTraceGetFaxStatistics))(pC->pIdiLib); in diva_maint_state_change_notify()
1586 if (pC->hDbg->dbgMask & DIVA_MGT_DBG_IFC_EVENTS) { in diva_maint_state_change_notify()
1587 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, in diva_maint_state_change_notify()
1589 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, in diva_maint_state_change_notify()
1595 if (pC->hDbg->dbgMask & DIVA_MGT_DBG_IFC_STATISTICS) { in diva_maint_state_change_notify()
1600 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_LOG, 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()
1636 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()
1668 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()
1707 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()
1792 diva_maint_client_t *pC = (diva_maint_client_t *)user_context; in diva_maint_trace_notify() local
1859 pmsg->dli = pC->logical; in diva_maint_trace_notify()
1860 pmsg->drv_id = pC->hDbg->id; in diva_maint_trace_notify()
1875 static void diva_change_management_debug_mask(diva_maint_client_t *pC, dword old_mask) { in diva_change_management_debug_mask() argument
1876 if (pC->request && pC->hDbg && pC->pIdiLib) { in diva_change_management_debug_mask()
1877 dword changed = pC->hDbg->dbgMask ^ old_mask; in diva_change_management_debug_mask()
1880 (*(pC->pIdiLib->DivaSTraceSetInfo))(pC->pIdiLib, in diva_change_management_debug_mask()
1881 (pC->hDbg->dbgMask & DIVA_MGT_DBG_TRACE) != 0); in diva_change_management_debug_mask()
1884 (*(pC->pIdiLib->DivaSTraceSetDChannel))(pC->pIdiLib, in diva_change_management_debug_mask()
1885 (pC->hDbg->dbgMask & DIVA_MGT_DBG_DCHAN) != 0); in diva_change_management_debug_mask()
1889 int i, state = ((pC->hDbg->dbgMask & DIVA_MGT_DBG_IFC_BCHANNEL) != 0); in diva_change_management_debug_mask()
1891 for (i = 0; i < pC->channels; i++) { in diva_change_management_debug_mask()
1892 (*(pC->pIdiLib->DivaSTraceSetBChannel))(pC->pIdiLib, i + 1, state); in diva_change_management_debug_mask()
1896 int i, state = ((pC->hDbg->dbgMask & DIVA_MGT_DBG_IFC_AUDIO) != 0); in diva_change_management_debug_mask()
1898 for (i = 0; i < pC->channels; i++) { in diva_change_management_debug_mask()
1899 (*(pC->pIdiLib->DivaSTraceSetAudioTap))(pC->pIdiLib, i + 1, state); in diva_change_management_debug_mask()