• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/isdn/hardware/eicon/

Lines Matching refs:id

17 static void DI_format (int do_lock, word id, int type, char *format, va_list argument_list);
18 static void DI_format_locked (word id, int type, char *format, va_list argument_list);
19 static void DI_format_old (word id, char *format, va_list ap) { }
20 static void DiProcessEventLog (unsigned short id, unsigned long msgID, va_list ap) { }
378 int id, free_id = -1, best_id = 0;
387 ((hDbg->id == 0) && (((_OldDbgHandle_ *)hDbg)->id == -1)) ||
394 for (id = 1; id < ARRAY_SIZE(clients); id++) {
395 if (clients[id].hDbg == hDbg) {
402 if (clients[id].hDbg) { /* slot is busy */
405 free_id = id;
406 if (!strcmp (clients[id].drvName, hDbg->drvName)) {
414 if (!clients[id].hDbg) { /* slot is busy */
426 Register new driver with id == free_id
441 hDbg->id = (byte)free_id;
472 pmsg->drv_id = 0; /* id 0 - DIMAINT */
505 hDbg->id = -1;
544 pmsg->drv_id = 0; /* id 0 - DIMAINT */
565 static void DI_format_locked (unsigned short id,
569 DI_format (1, id, type, format, argument_list);
573 unsigned short id,
630 pmsg->drv_id = id; /* driver MAINT id */
668 pmsg->drv_id = id; /* driver MAINT id */
709 pmsg->drv_id = id; /* driver MAINT id */
733 int diva_get_driver_info (dword id, byte* data, int data_length) {
738 if (!data || !id || (data_length < 17) ||
739 (id >= ARRAY_SIZE(clients))) {
745 if (clients[id].hDbg) {
747 *p++ = (byte)clients[id].sec; /* save seconds */
748 *p++ = (byte)(clients[id].sec >> 8);
749 *p++ = (byte)(clients[id].sec >> 16);
750 *p++ = (byte)(clients[id].sec >> 24);
752 *p++ = (byte)(clients[id].usec/1000); /* save mseconds */
753 *p++ = (byte)((clients[id].usec/1000) >> 8);
754 *p++ = (byte)((clients[id].usec/1000) >> 16);
755 *p++ = (byte)((clients[id].usec/1000) >> 24);
759 if ((to_copy = min(strlen(clients[id].drvName), (size_t)(data_length-1)))) {
760 memcpy (p, clients[id].drvName, to_copy);
763 if ((data_length >= 4) && clients[id].hDbg->drvTag[0]) {
766 if ((to_copy = min(strlen(clients[id].hDbg->drvTag), (size_t)(data_length-2)))) {
767 memcpy (p, clients[id].hDbg->drvTag, to_copy);
785 int diva_get_driver_dbg_mask (dword id, byte* data) {
789 if (!data || !id || (id >= ARRAY_SIZE(clients))) {
794 if (clients[id].hDbg) {
796 *data++= (byte)(clients[id].hDbg->dbgMask);
797 *data++= (byte)(clients[id].hDbg->dbgMask >> 8);
798 *data++= (byte)(clients[id].hDbg->dbgMask >> 16);
799 *data++= (byte)(clients[id].hDbg->dbgMask >> 24);
807 int diva_set_driver_dbg_mask (dword id, dword mask) {
812 if (!id || (id >= ARRAY_SIZE(clients))) {
819 if (clients[id].hDbg) {
820 dword old_mask = clients[id].hDbg->dbgMask;
822 clients[id].hDbg->dbgMask = mask;
823 clients[id].last_dbgMask = (clients[id].hDbg->dbgMask | clients[id].dbgMask);
825 diva_change_management_debug_mask (&clients[id], old_mask);
831 if (clients[id].request_pending) {
832 clients[id].request_pending = 0;
833 (*(clients[id].request))((ENTITY*)(*(clients[id].pIdiLib->DivaSTraceGetHandle))(clients[id].pIdiLib->hLib));
864 int id, best_id = 0, free_id = -1;
890 for (id = 1; id < ARRAY_SIZE(clients); id++) {
891 if (clients[id].hDbg && (clients[id].request == d->request)) {
897 if (clients[id].hDbg) { /* slot is busy */
901 free_id = id;
903 if (!strcmp (clients[id].drvName, tmp)) {
908 free_id = id;
921 id = free_id;
922 clients[id].request = d->request;
923 clients[id].request_pending = 0;
924 clients[id].hDbg = &clients[id].Dbg;
925 clients[id].sec = sec;
926 clients[id].usec = usec;
927 strcpy (clients[id].drvName, tmp);
928 strcpy (clients[id].Dbg.drvName, tmp);
929 clients[id].Dbg.drvTag[0] = 0;
930 clients[id].logical = (int)logical;
931 clients[id].channels = (int)d->channels;
932 clients[id].dma_handle = -1;
934 clients[id].Dbg.dbgMask = 0;
935 clients[id].dbgMask = clients[id].Dbg.dbgMask;
936 if (id) {
937 clients[id].Dbg.dbgMask |= clients[free_id].last_dbgMask;
939 clients[id].last_dbgMask = 0;
941 clients[id].Dbg.Registered = DBG_HANDLE_REG_NEW;
942 clients[id].Dbg.id = (byte)id;
943 clients[id].Dbg.dbg_end = DI_deregister;
944 clients[id].Dbg.dbg_prt = DI_format_locked;
945 clients[id].Dbg.dbg_ev = DiProcessEventLog;
946 clients[id].Dbg.dbg_irq = DI_format_locked;
947 clients[id].Dbg.next = (pDbgHandle)DBG_MAGIC;
950 diva_trace_library_user_interface_t diva_maint_user_ifc = { &clients[id],
958 if ((clients[id].pIdiLib =
960 if (((*(clients[id].pIdiLib->DivaSTraceLibraryStart))(clients[id].pIdiLib->hLib))) {
962 (*(clients[id].pIdiLib->DivaSTraceLibraryFinit))(clients[id].pIdiLib->hLib);
963 clients[id].pIdiLib = NULL;
970 if (!clients[id].pIdiLib) {
971 clients[id].request = NULL;
972 clients[id].request_pending = 0;
973 clients[id].hDbg = NULL;
984 id, clients[id].Dbg.drvName);
1001 pmsg->drv_id = 0; /* id 0 - DIMAINT */
1010 org_mask = clients[id].Dbg.dbgMask;
1011 clients[id].Dbg.dbgMask = 0;
1015 if (clients[id].request_pending) {
1016 clients[id].request_pending = 0;
1017 (*(clients[id].request))((ENTITY*)(*(clients[id].pIdiLib->DivaSTraceGetHandle))(clients[id].pIdiLib->hLib));
1022 diva_set_driver_dbg_mask (id, org_mask);
1088 pmsg->drv_id = 0; /* id 0 - DIMAINT */
1448 if ((TraceFilterIdent == pC->hDbg->id) && (TraceFilterChannel == (int)channel->ChannelNumber)) {
1451 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG, "Selective Trace OFF for Ch=%d",
1467 TraceFilterIdent = pC->hDbg->id;
1471 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG, "Selective Trace ON for Ch=%d",
1477 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_STAT, "L Ch = %d",
1479 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_STAT, "L Status = <%s>", &channel->Line[0]);
1480 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_STAT, "L Layer1 = <%s>", &channel->Framing[0]);
1481 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_STAT, "L Layer2 = <%s>", &channel->Layer2[0]);
1482 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_STAT, "L Layer3 = <%s>", &channel->Layer3[0]);
1483 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_STAT, "L RAddr = <%s>",
1485 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_STAT, "L RSAddr = <%s>",
1487 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_STAT, "L LAddr = <%s>",
1489 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_STAT, "L LSAddr = <%s>",
1492 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_STAT, "L BC = <%s>", tmp);
1494 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_STAT, "L HLC = <%s>", tmp);
1496 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_STAT, "L LLC = <%s>", tmp);
1497 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_STAT, "L CR = 0x%x", channel->CallReference);
1498 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_STAT, "L Disc = 0x%x",
1500 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_STAT, "L Owner = <%s>", &channel->UserID[0]);
1509 int id = TraceFilterIdent;
1511 if ((id >= 0) && (ch >= 0) && (id < ARRAY_SIZE(clients)) &&
1512 (clients[id].Dbg.id == (byte)id) && (clients[id].pIdiLib == hLib)) {
1522 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "MDM Ch = %lu",
1524 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "MDM Event = %lu", modem->Event);
1525 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "MDM Norm = %lu", modem->Norm);
1526 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "MDM Opts. = 0x%08x", modem->Options);
1527 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "MDM Tx = %lu Bps", modem->TxSpeed);
1528 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "MDM Rx = %lu Bps", modem->RxSpeed);
1529 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "MDM RT = %lu mSec",
1531 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "MDM Sr = %lu", modem->SymbolRate);
1532 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "MDM Rxl = %d dBm", modem->RxLeveldBm);
1533 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "MDM El = %d dBm", modem->EchoLeveldBm);
1534 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "MDM SNR = %lu dB", modem->SNRdb);
1535 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "MDM MAE = %lu", modem->MAE);
1536 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "MDM LRet = %lu",
1538 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "MDM RRet = %lu",
1540 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "MDM LRes = %lu", modem->LocalResyncs);
1541 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "MDM RRes = %lu",
1544 diva_mnt_internal_dprintf(pC->hDbg->id,DLI_STAT,"MDM Disc = %lu", modem->DiscReason);
1556 int id = TraceFilterIdent;
1558 if ((id >= 0) && (ch >= 0) && (id < ARRAY_SIZE(clients)) &&
1559 (clients[id].Dbg.id == (byte)id) && (clients[id].pIdiLib == hLib)) {
1568 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "FAX Ch = %lu",(int)fax->ChannelNumber);
1569 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "FAX Event = %lu", fax->Event);
1570 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "FAX Pages = %lu", fax->Page_Counter);
1571 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "FAX Feat. = 0x%08x", fax->Features);
1572 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "FAX ID = <%s>", &fax->Station_ID[0]);
1573 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "FAX Saddr = <%s>", &fax->Subaddress[0]);
1574 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "FAX Pwd = <%s>", &fax->Password[0]);
1575 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "FAX Speed = %lu", fax->Speed);
1576 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "FAX Res. = 0x%08x", fax->Resolution);
1577 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "FAX Width = %lu", fax->Paper_Width);
1578 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "FAX Length= %lu", fax->Paper_Length);
1579 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "FAX SLT = %lu", fax->Scanline_Time);
1581 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "FAX Disc = %lu", fax->Disc_Reason);
1591 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_STAT,
1593 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_STAT,
1604 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG,
1608 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG,
1612 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG,
1616 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG,
1620 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG,
1624 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG,
1628 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG,
1632 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG,
1640 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG,
1644 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG,
1648 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG,
1652 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG,
1656 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG,
1660 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG,
1664 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG,
1672 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG,
1676 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG,
1680 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG,
1684 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG,
1688 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG,
1692 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG,
1696 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG,
1700 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG,
1704 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG,
1711 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG,
1715 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG,
1719 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG,
1723 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG,
1727 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG,
1731 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG,
1735 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG,
1739 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG,
1743 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG,
1747 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG,
1751 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG,
1755 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG,
1759 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG,
1763 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG,
1767 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG,
1771 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG,
1775 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG,
1779 diva_mnt_internal_dprintf (pC->hDbg->id, DLI_LOG,
1801 int id = TraceFilterIdent;
1806 if ((id >= 0) && (ch >= 0) && (id < ARRAY_SIZE(clients)) &&
1807 (clients[id].Dbg.id == (byte)id) && (clients[id].pIdiLib == hLib)) {
1812 if (Adapter != clients[id].logical) {
1864 pmsg->drv_id = pC->hDbg->id;