Lines Matching refs:pLib

65 static int ScheduleNextTraceRequest (diva_strace_context_t* pLib);
66 static int process_idi_event (diva_strace_context_t* pLib,
68 static int process_idi_info (diva_strace_context_t* pLib,
70 static int diva_modem_event (diva_strace_context_t* pLib, int Channel);
71 static int diva_fax_event (diva_strace_context_t* pLib, int Channel);
72 static int diva_line_event (diva_strace_context_t* pLib, int Channel);
73 static int diva_modem_info (diva_strace_context_t* pLib,
76 static int diva_fax_info (diva_strace_context_t* pLib,
79 static int diva_line_info (diva_strace_context_t* pLib,
82 static int diva_ifc_statistics (diva_strace_context_t* pLib,
93 static void diva_create_parse_table (diva_strace_context_t* pLib);
94 static void diva_trace_error (diva_strace_context_t* pLib,
96 static void diva_trace_notify_user (diva_strace_context_t* pLib,
111 diva_strace_context_t* pLib = (diva_strace_context_t*)pmem; in DivaSTraceLibraryCreateInstance() local
114 if (!pLib) { in DivaSTraceLibraryCreateInstance()
118 pmem += sizeof(*pLib); in DivaSTraceLibraryCreateInstance()
119 memset(pLib, 0x00, sizeof(*pLib)); in DivaSTraceLibraryCreateInstance()
121 pLib->Adapter = Adapter; in DivaSTraceLibraryCreateInstance()
126 pLib->instance.hLib = pLib; in DivaSTraceLibraryCreateInstance()
127 pLib->instance.DivaSTraceLibraryStart = DivaSTraceLibraryStart; in DivaSTraceLibraryCreateInstance()
128 pLib->instance.DivaSTraceLibraryStop = DivaSTraceLibraryStop; in DivaSTraceLibraryCreateInstance()
129 pLib->instance.DivaSTraceLibraryFinit = SuperTraceLibraryFinit; in DivaSTraceLibraryCreateInstance()
130 pLib->instance.DivaSTraceMessageInput = SuperTraceMessageInput; in DivaSTraceLibraryCreateInstance()
131 pLib->instance.DivaSTraceGetHandle = SuperTraceGetHandle; in DivaSTraceLibraryCreateInstance()
132 pLib->instance.DivaSTraceSetAudioTap = SuperTraceSetAudioTap; in DivaSTraceLibraryCreateInstance()
133 pLib->instance.DivaSTraceSetBChannel = SuperTraceSetBChannel; in DivaSTraceLibraryCreateInstance()
134 pLib->instance.DivaSTraceSetDChannel = SuperTraceSetDChannel; in DivaSTraceLibraryCreateInstance()
135 pLib->instance.DivaSTraceSetInfo = SuperTraceSetInfo; in DivaSTraceLibraryCreateInstance()
136 pLib->instance.DivaSTraceGetOutgoingCallStatistics = \ in DivaSTraceLibraryCreateInstance()
138 pLib->instance.DivaSTraceGetIncomingCallStatistics = \ in DivaSTraceLibraryCreateInstance()
140 pLib->instance.DivaSTraceGetModemStatistics = \ in DivaSTraceLibraryCreateInstance()
142 pLib->instance.DivaSTraceGetFaxStatistics = \ in DivaSTraceLibraryCreateInstance()
144 pLib->instance.DivaSTraceGetBLayer1Statistics = \ in DivaSTraceLibraryCreateInstance()
146 pLib->instance.DivaSTraceGetBLayer2Statistics = \ in DivaSTraceLibraryCreateInstance()
148 pLib->instance.DivaSTraceGetDLayer1Statistics = \ in DivaSTraceLibraryCreateInstance()
150 pLib->instance.DivaSTraceGetDLayer2Statistics = \ in DivaSTraceLibraryCreateInstance()
152 pLib->instance.DivaSTraceClearCall = SuperTraceClearCall; in DivaSTraceLibraryCreateInstance()
156 pLib->user_proc_table.user_context = user_proc->user_context; in DivaSTraceLibraryCreateInstance()
157 pLib->user_proc_table.notify_proc = user_proc->notify_proc; in DivaSTraceLibraryCreateInstance()
158 pLib->user_proc_table.trace_proc = user_proc->trace_proc; in DivaSTraceLibraryCreateInstance()
159 pLib->user_proc_table.error_notify_proc = user_proc->error_notify_proc; in DivaSTraceLibraryCreateInstance()
162 if (!(pLib->hAdapter = SuperTraceOpenAdapter (Adapter))) { in DivaSTraceLibraryCreateInstance()
166 pLib->Channels = SuperTraceGetNumberOfChannels (pLib->hAdapter); in DivaSTraceLibraryCreateInstance()
172 pLib->parse_entries = (MODEM_PARSE_ENTRIES + FAX_PARSE_ENTRIES + \ in DivaSTraceLibraryCreateInstance()
174 LINE_PARSE_ENTRIES + 1) * pLib->Channels; in DivaSTraceLibraryCreateInstance()
175 pLib->parse_table = (diva_strace_path2action_t*)pmem; in DivaSTraceLibraryCreateInstance()
178 pLib->lines[i].pInterface = &pLib->Interface; in DivaSTraceLibraryCreateInstance()
179 pLib->lines[i].pInterfaceStat = &pLib->InterfaceStat; in DivaSTraceLibraryCreateInstance()
182 pLib->e.R = &pLib->RData; in DivaSTraceLibraryCreateInstance()
184 pLib->req_busy = 1; in DivaSTraceLibraryCreateInstance()
185 pLib->rc_ok = ASSIGN_OK; in DivaSTraceLibraryCreateInstance()
187 diva_create_parse_table (pLib); in DivaSTraceLibraryCreateInstance()
189 return ((diva_strace_library_interface_t*)pLib); in DivaSTraceLibraryCreateInstance()
193 diva_strace_context_t* pLib = (diva_strace_context_t*)hLib; in DivaSTraceLibraryStart() local
195 return (SuperTraceASSIGN (pLib->hAdapter, pLib->buffer)); in DivaSTraceLibraryStart()
204 diva_strace_context_t* pLib = (diva_strace_context_t*)hLib; in DivaSTraceLibraryStop() local
206 if (!pLib->e.Id) { /* Was never started/assigned */ in DivaSTraceLibraryStop()
210 switch (pLib->removal_state) { in DivaSTraceLibraryStop()
212 pLib->removal_state = 1; in DivaSTraceLibraryStop()
213 ScheduleNextTraceRequest(pLib); in DivaSTraceLibraryStop()
224 diva_strace_context_t* pLib = (diva_strace_context_t*)hLib; in SuperTraceLibraryFinit() local
225 if (pLib) { in SuperTraceLibraryFinit()
226 if (pLib->hAdapter) { in SuperTraceLibraryFinit()
227 SuperTraceCloseAdapter (pLib->hAdapter); in SuperTraceLibraryFinit()
235 diva_strace_context_t* pLib = (diva_strace_context_t*)hLib; in SuperTraceGetHandle() local
237 return (&pLib->e); in SuperTraceGetHandle()
246 diva_strace_context_t* pLib = (diva_strace_context_t*)hLib; in SuperTraceMessageInput() local
250 if (pLib->e.complete == 255) { in SuperTraceMessageInput()
254 pLib->req_busy = 0; in SuperTraceMessageInput()
255 Rc = pLib->e.Rc; in SuperTraceMessageInput()
256 pLib->e.Rc = 0; in SuperTraceMessageInput()
258 if (pLib->removal_state == 2) { in SuperTraceMessageInput()
259 pLib->removal_state = 3; in SuperTraceMessageInput()
263 if (Rc != pLib->rc_ok) { in SuperTraceMessageInput()
268 if (pLib->general_b_ch_event == 1) { in SuperTraceMessageInput()
269 pLib->general_b_ch_event = 2; in SuperTraceMessageInput()
271 } else if (pLib->general_fax_event == 1) { in SuperTraceMessageInput()
272 pLib->general_fax_event = 2; in SuperTraceMessageInput()
274 } else if (pLib->general_mdm_event == 1) { in SuperTraceMessageInput()
275 pLib->general_mdm_event = 2; in SuperTraceMessageInput()
277 } else if ((pLib->ChannelsTraceActive < pLib->Channels) && pLib->ChannelsTraceActive) { in SuperTraceMessageInput()
278 pLib->ChannelsTraceActive = pLib->Channels; in SuperTraceMessageInput()
280 } else if (pLib->ModemTraceActive < pLib->Channels) { in SuperTraceMessageInput()
281 pLib->ModemTraceActive = pLib->Channels; in SuperTraceMessageInput()
283 } else if (pLib->FaxTraceActive < pLib->Channels) { in SuperTraceMessageInput()
284 pLib->FaxTraceActive = pLib->Channels; in SuperTraceMessageInput()
286 } else if (pLib->audio_trace_init == 2) { in SuperTraceMessageInput()
288 pLib->audio_trace_init = 1; in SuperTraceMessageInput()
289 } else if (pLib->eye_pattern_pending) { in SuperTraceMessageInput()
290 pLib->eye_pattern_pending = 0; in SuperTraceMessageInput()
292 } else if (pLib->audio_tap_pending) { in SuperTraceMessageInput()
293 pLib->audio_tap_pending = 0; in SuperTraceMessageInput()
301 if (pLib->general_b_ch_event == 1) { in SuperTraceMessageInput()
302 pLib->ChannelsTraceActive = pLib->Channels; in SuperTraceMessageInput()
303 pLib->general_b_ch_event = 2; in SuperTraceMessageInput()
304 } else if (pLib->general_fax_event == 1) { in SuperTraceMessageInput()
305 pLib->general_fax_event = 2; in SuperTraceMessageInput()
306 pLib->FaxTraceActive = pLib->Channels; in SuperTraceMessageInput()
307 } else if (pLib->general_mdm_event == 1) { in SuperTraceMessageInput()
308 pLib->general_mdm_event = 2; in SuperTraceMessageInput()
309 pLib->ModemTraceActive = pLib->Channels; in SuperTraceMessageInput()
312 if (pLib->audio_trace_init == 2) { in SuperTraceMessageInput()
313 pLib->audio_trace_init = 1; in SuperTraceMessageInput()
315 pLib->rc_ok = 0xff; /* default OK after assign was done */ in SuperTraceMessageInput()
316 if ((ret = ScheduleNextTraceRequest(pLib))) { in SuperTraceMessageInput()
324 Ind = pLib->e.Ind; in SuperTraceMessageInput()
325 pLib->e.Ind = 0; in SuperTraceMessageInput()
326 if (pLib->removal_state) { in SuperTraceMessageInput()
327 pLib->e.RNum = 0; in SuperTraceMessageInput()
328 pLib->e.RNR = 2; in SuperTraceMessageInput()
329 } else if (pLib->req_busy) { in SuperTraceMessageInput()
330 pLib->e.RNum = 0; in SuperTraceMessageInput()
331 pLib->e.RNR = 1; in SuperTraceMessageInput()
333 if (pLib->e.complete != 0x02) { in SuperTraceMessageInput()
337 pLib->e.RNum = 1; in SuperTraceMessageInput()
338 pLib->e.R->P = (byte*)&pLib->buffer[0]; in SuperTraceMessageInput()
339 pLib->e.R->PLength = (word)(sizeof(pLib->buffer) - 1); in SuperTraceMessageInput()
345 byte* p = (byte*)&pLib->buffer[0]; in SuperTraceMessageInput()
346 pLib->buffer[pLib->e.R->PLength] = 0; /* terminate I.E. with zero */ in SuperTraceMessageInput()
350 int total_length = pLib->e.R->PLength; in SuperTraceMessageInput()
360 if (process_idi_info (pLib, (diva_man_var_header_t*)p)) { in SuperTraceMessageInput()
365 if (process_idi_event (pLib, (diva_man_var_header_t*)p)) { in SuperTraceMessageInput()
370 if (pLib->trace_on == 1) { in SuperTraceMessageInput()
375 pLib->trace_on++; in SuperTraceMessageInput()
380 if (pLib->user_proc_table.trace_proc) { in SuperTraceMessageInput()
381 (*(pLib->user_proc_table.trace_proc))(pLib->user_proc_table.user_context, in SuperTraceMessageInput()
382 &pLib->instance, pLib->Adapter, in SuperTraceMessageInput()
395 if (process_idi_info (pLib, (diva_man_var_header_t*)p)) { in SuperTraceMessageInput()
400 if (process_idi_event (pLib, (diva_man_var_header_t*)p)) { in SuperTraceMessageInput()
405 if (pLib->trace_on == 1) { in SuperTraceMessageInput()
410 pLib->trace_on++; in SuperTraceMessageInput()
415 if (pLib->user_proc_table.trace_proc) { in SuperTraceMessageInput()
416 (*(pLib->user_proc_table.trace_proc))(pLib->user_proc_table.user_context, in SuperTraceMessageInput()
417 &pLib->instance, pLib->Adapter, in SuperTraceMessageInput()
418 p, pLib->e.R->PLength); in SuperTraceMessageInput()
429 if ((ret = ScheduleNextTraceRequest(pLib))) { in SuperTraceMessageInput()
439 static int ScheduleNextTraceRequest (diva_strace_context_t* pLib) { in ScheduleNextTraceRequest() argument
444 if (pLib->req_busy) { in ScheduleNextTraceRequest()
448 if (pLib->removal_state == 1) { in ScheduleNextTraceRequest()
449 if (SuperTraceREMOVE (pLib->hAdapter)) { in ScheduleNextTraceRequest()
450 pLib->removal_state = 3; in ScheduleNextTraceRequest()
452 pLib->req_busy = 1; in ScheduleNextTraceRequest()
453 pLib->removal_state = 2; in ScheduleNextTraceRequest()
458 if (pLib->removal_state) { in ScheduleNextTraceRequest()
462 if (!pLib->general_b_ch_event) { in ScheduleNextTraceRequest()
463 if ((ret = SuperTraceTraceOnRequest(pLib->hAdapter, "State\\B Event", pLib->buffer))) { in ScheduleNextTraceRequest()
466 pLib->general_b_ch_event = 1; in ScheduleNextTraceRequest()
467 pLib->req_busy = 1; in ScheduleNextTraceRequest()
471 if (!pLib->general_fax_event) { in ScheduleNextTraceRequest()
472 if ((ret = SuperTraceTraceOnRequest(pLib->hAdapter, "State\\FAX Event", pLib->buffer))) { in ScheduleNextTraceRequest()
475 pLib->general_fax_event = 1; in ScheduleNextTraceRequest()
476 pLib->req_busy = 1; in ScheduleNextTraceRequest()
480 if (!pLib->general_mdm_event) { in ScheduleNextTraceRequest()
481 if ((ret = SuperTraceTraceOnRequest(pLib->hAdapter, "State\\Modem Event", pLib->buffer))) { in ScheduleNextTraceRequest()
484 pLib->general_mdm_event = 1; in ScheduleNextTraceRequest()
485 pLib->req_busy = 1; in ScheduleNextTraceRequest()
489 if (pLib->ChannelsTraceActive < pLib->Channels) { in ScheduleNextTraceRequest()
490 pLib->ChannelsTraceActive++; in ScheduleNextTraceRequest()
491 sprintf (name, "State\\B%d\\Line", pLib->ChannelsTraceActive); in ScheduleNextTraceRequest()
492 if ((ret = SuperTraceTraceOnRequest(pLib->hAdapter, name, pLib->buffer))) { in ScheduleNextTraceRequest()
493 pLib->ChannelsTraceActive--; in ScheduleNextTraceRequest()
496 pLib->req_busy = 1; in ScheduleNextTraceRequest()
500 if (pLib->ModemTraceActive < pLib->Channels) { in ScheduleNextTraceRequest()
501 pLib->ModemTraceActive++; in ScheduleNextTraceRequest()
502 sprintf (name, "State\\B%d\\Modem\\Event", pLib->ModemTraceActive); in ScheduleNextTraceRequest()
503 if ((ret = SuperTraceTraceOnRequest(pLib->hAdapter, name, pLib->buffer))) { in ScheduleNextTraceRequest()
504 pLib->ModemTraceActive--; in ScheduleNextTraceRequest()
507 pLib->req_busy = 1; in ScheduleNextTraceRequest()
511 if (pLib->FaxTraceActive < pLib->Channels) { in ScheduleNextTraceRequest()
512 pLib->FaxTraceActive++; in ScheduleNextTraceRequest()
513 sprintf (name, "State\\B%d\\FAX\\Event", pLib->FaxTraceActive); in ScheduleNextTraceRequest()
514 if ((ret = SuperTraceTraceOnRequest(pLib->hAdapter, name, pLib->buffer))) { in ScheduleNextTraceRequest()
515 pLib->FaxTraceActive--; in ScheduleNextTraceRequest()
518 pLib->req_busy = 1; in ScheduleNextTraceRequest()
522 if (!pLib->trace_mask_init) { in ScheduleNextTraceRequest()
524 if (SuperTraceWriteVar (pLib->hAdapter, in ScheduleNextTraceRequest()
525 pLib->buffer, in ScheduleNextTraceRequest()
532 pLib->trace_mask_init = 1; in ScheduleNextTraceRequest()
533 pLib->req_busy = 1; in ScheduleNextTraceRequest()
537 if (!pLib->audio_trace_init) { in ScheduleNextTraceRequest()
539 if (SuperTraceWriteVar (pLib->hAdapter, in ScheduleNextTraceRequest()
540 pLib->buffer, in ScheduleNextTraceRequest()
547 pLib->audio_trace_init = 2; in ScheduleNextTraceRequest()
548 pLib->req_busy = 1; in ScheduleNextTraceRequest()
552 if (!pLib->bchannel_init) { in ScheduleNextTraceRequest()
554 if (SuperTraceWriteVar (pLib->hAdapter, in ScheduleNextTraceRequest()
555 pLib->buffer, in ScheduleNextTraceRequest()
562 pLib->bchannel_init = 1; in ScheduleNextTraceRequest()
563 pLib->req_busy = 1; in ScheduleNextTraceRequest()
567 if (!pLib->trace_length_init) { in ScheduleNextTraceRequest()
569 if (SuperTraceWriteVar (pLib->hAdapter, in ScheduleNextTraceRequest()
570 pLib->buffer, in ScheduleNextTraceRequest()
577 pLib->trace_length_init = 1; in ScheduleNextTraceRequest()
578 pLib->req_busy = 1; in ScheduleNextTraceRequest()
582 if (!pLib->trace_on) { in ScheduleNextTraceRequest()
583 if (SuperTraceTraceOnRequest (pLib->hAdapter, in ScheduleNextTraceRequest()
585 pLib->buffer)) { in ScheduleNextTraceRequest()
588 pLib->trace_on = 1; in ScheduleNextTraceRequest()
589 pLib->req_busy = 1; in ScheduleNextTraceRequest()
593 if (pLib->trace_event_mask != pLib->current_trace_event_mask) { in ScheduleNextTraceRequest()
594 if (SuperTraceWriteVar (pLib->hAdapter, in ScheduleNextTraceRequest()
595 pLib->buffer, in ScheduleNextTraceRequest()
597 &pLib->trace_event_mask, in ScheduleNextTraceRequest()
599 sizeof(pLib->trace_event_mask))) { in ScheduleNextTraceRequest()
602 pLib->current_trace_event_mask = pLib->trace_event_mask; in ScheduleNextTraceRequest()
603 pLib->req_busy = 1; in ScheduleNextTraceRequest()
607 if ((pLib->audio_tap_pending >= 0) && (pLib->audio_tap_mask != pLib->current_audio_tap_mask)) { in ScheduleNextTraceRequest()
608 if (SuperTraceWriteVar (pLib->hAdapter, in ScheduleNextTraceRequest()
609 pLib->buffer, in ScheduleNextTraceRequest()
611 &pLib->audio_tap_mask, in ScheduleNextTraceRequest()
613 sizeof(pLib->audio_tap_mask))) { in ScheduleNextTraceRequest()
616 pLib->current_audio_tap_mask = pLib->audio_tap_mask; in ScheduleNextTraceRequest()
617 pLib->audio_tap_pending = 1; in ScheduleNextTraceRequest()
618 pLib->req_busy = 1; in ScheduleNextTraceRequest()
622 if ((pLib->eye_pattern_pending >= 0) && (pLib->audio_tap_mask != pLib->current_eye_pattern_mask)) { in ScheduleNextTraceRequest()
623 if (SuperTraceWriteVar (pLib->hAdapter, in ScheduleNextTraceRequest()
624 pLib->buffer, in ScheduleNextTraceRequest()
626 &pLib->audio_tap_mask, in ScheduleNextTraceRequest()
628 sizeof(pLib->audio_tap_mask))) { in ScheduleNextTraceRequest()
631 pLib->current_eye_pattern_mask = pLib->audio_tap_mask; in ScheduleNextTraceRequest()
632 pLib->eye_pattern_pending = 1; in ScheduleNextTraceRequest()
633 pLib->req_busy = 1; in ScheduleNextTraceRequest()
637 if (pLib->bchannel_trace_mask != pLib->current_bchannel_trace_mask) { in ScheduleNextTraceRequest()
638 if (SuperTraceWriteVar (pLib->hAdapter, in ScheduleNextTraceRequest()
639 pLib->buffer, in ScheduleNextTraceRequest()
641 &pLib->bchannel_trace_mask, in ScheduleNextTraceRequest()
643 sizeof(pLib->bchannel_trace_mask))) { in ScheduleNextTraceRequest()
646 pLib->current_bchannel_trace_mask = pLib->bchannel_trace_mask; in ScheduleNextTraceRequest()
647 pLib->req_busy = 1; in ScheduleNextTraceRequest()
651 if (!pLib->trace_events_down) { in ScheduleNextTraceRequest()
652 if (SuperTraceTraceOnRequest (pLib->hAdapter, in ScheduleNextTraceRequest()
654 pLib->buffer)) { in ScheduleNextTraceRequest()
657 pLib->trace_events_down = 1; in ScheduleNextTraceRequest()
658 pLib->req_busy = 1; in ScheduleNextTraceRequest()
662 if (!pLib->l1_trace) { in ScheduleNextTraceRequest()
663 if (SuperTraceTraceOnRequest (pLib->hAdapter, in ScheduleNextTraceRequest()
665 pLib->buffer)) { in ScheduleNextTraceRequest()
668 pLib->l1_trace = 1; in ScheduleNextTraceRequest()
669 pLib->req_busy = 1; in ScheduleNextTraceRequest()
673 if (!pLib->l2_trace) { in ScheduleNextTraceRequest()
674 if (SuperTraceTraceOnRequest (pLib->hAdapter, in ScheduleNextTraceRequest()
676 pLib->buffer)) { in ScheduleNextTraceRequest()
679 pLib->l2_trace = 1; in ScheduleNextTraceRequest()
680 pLib->req_busy = 1; in ScheduleNextTraceRequest()
685 if (pLib->pending_line_status & (1L << i)) { in ScheduleNextTraceRequest()
687 if (SuperTraceReadRequest (pLib->hAdapter, name, pLib->buffer)) { in ScheduleNextTraceRequest()
690 pLib->pending_line_status &= ~(1L << i); in ScheduleNextTraceRequest()
691 pLib->req_busy = 1; in ScheduleNextTraceRequest()
694 if (pLib->pending_modem_status & (1L << i)) { in ScheduleNextTraceRequest()
696 if (SuperTraceReadRequest (pLib->hAdapter, name, pLib->buffer)) { in ScheduleNextTraceRequest()
699 pLib->pending_modem_status &= ~(1L << i); in ScheduleNextTraceRequest()
700 pLib->req_busy = 1; in ScheduleNextTraceRequest()
703 if (pLib->pending_fax_status & (1L << i)) { in ScheduleNextTraceRequest()
705 if (SuperTraceReadRequest (pLib->hAdapter, name, pLib->buffer)) { in ScheduleNextTraceRequest()
708 pLib->pending_fax_status &= ~(1L << i); in ScheduleNextTraceRequest()
709 pLib->req_busy = 1; in ScheduleNextTraceRequest()
712 if (pLib->clear_call_command & (1L << i)) { in ScheduleNextTraceRequest()
714 if (SuperTraceExecuteRequest (pLib->hAdapter, name, pLib->buffer)) { in ScheduleNextTraceRequest()
717 pLib->clear_call_command &= ~(1L << i); in ScheduleNextTraceRequest()
718 pLib->req_busy = 1; in ScheduleNextTraceRequest()
723 if (pLib->outgoing_ifc_stats) { in ScheduleNextTraceRequest()
724 if (SuperTraceReadRequest (pLib->hAdapter, in ScheduleNextTraceRequest()
726 pLib->buffer)) { in ScheduleNextTraceRequest()
729 pLib->outgoing_ifc_stats = 0; in ScheduleNextTraceRequest()
730 pLib->req_busy = 1; in ScheduleNextTraceRequest()
734 if (pLib->incoming_ifc_stats) { in ScheduleNextTraceRequest()
735 if (SuperTraceReadRequest (pLib->hAdapter, in ScheduleNextTraceRequest()
737 pLib->buffer)) { in ScheduleNextTraceRequest()
740 pLib->incoming_ifc_stats = 0; in ScheduleNextTraceRequest()
741 pLib->req_busy = 1; in ScheduleNextTraceRequest()
745 if (pLib->modem_ifc_stats) { in ScheduleNextTraceRequest()
746 if (SuperTraceReadRequest (pLib->hAdapter, in ScheduleNextTraceRequest()
748 pLib->buffer)) { in ScheduleNextTraceRequest()
751 pLib->modem_ifc_stats = 0; in ScheduleNextTraceRequest()
752 pLib->req_busy = 1; in ScheduleNextTraceRequest()
756 if (pLib->fax_ifc_stats) { in ScheduleNextTraceRequest()
757 if (SuperTraceReadRequest (pLib->hAdapter, in ScheduleNextTraceRequest()
759 pLib->buffer)) { in ScheduleNextTraceRequest()
762 pLib->fax_ifc_stats = 0; in ScheduleNextTraceRequest()
763 pLib->req_busy = 1; in ScheduleNextTraceRequest()
767 if (pLib->b1_ifc_stats) { in ScheduleNextTraceRequest()
768 if (SuperTraceReadRequest (pLib->hAdapter, in ScheduleNextTraceRequest()
770 pLib->buffer)) { in ScheduleNextTraceRequest()
773 pLib->b1_ifc_stats = 0; in ScheduleNextTraceRequest()
774 pLib->req_busy = 1; in ScheduleNextTraceRequest()
778 if (pLib->b2_ifc_stats) { in ScheduleNextTraceRequest()
779 if (SuperTraceReadRequest (pLib->hAdapter, in ScheduleNextTraceRequest()
781 pLib->buffer)) { in ScheduleNextTraceRequest()
784 pLib->b2_ifc_stats = 0; in ScheduleNextTraceRequest()
785 pLib->req_busy = 1; in ScheduleNextTraceRequest()
789 if (pLib->d1_ifc_stats) { in ScheduleNextTraceRequest()
790 if (SuperTraceReadRequest (pLib->hAdapter, in ScheduleNextTraceRequest()
792 pLib->buffer)) { in ScheduleNextTraceRequest()
795 pLib->d1_ifc_stats = 0; in ScheduleNextTraceRequest()
796 pLib->req_busy = 1; in ScheduleNextTraceRequest()
800 if (pLib->d2_ifc_stats) { in ScheduleNextTraceRequest()
801 if (SuperTraceReadRequest (pLib->hAdapter, in ScheduleNextTraceRequest()
803 pLib->buffer)) { in ScheduleNextTraceRequest()
806 pLib->d2_ifc_stats = 0; in ScheduleNextTraceRequest()
807 pLib->req_busy = 1; in ScheduleNextTraceRequest()
811 if (!pLib->IncomingCallsCallsActive) { in ScheduleNextTraceRequest()
812 pLib->IncomingCallsCallsActive = 1; in ScheduleNextTraceRequest()
814 if ((ret = SuperTraceTraceOnRequest(pLib->hAdapter, name, pLib->buffer))) { in ScheduleNextTraceRequest()
815 pLib->IncomingCallsCallsActive = 0; in ScheduleNextTraceRequest()
818 pLib->req_busy = 1; in ScheduleNextTraceRequest()
821 if (!pLib->IncomingCallsConnectedActive) { in ScheduleNextTraceRequest()
822 pLib->IncomingCallsConnectedActive = 1; in ScheduleNextTraceRequest()
824 if ((ret = SuperTraceTraceOnRequest(pLib->hAdapter, name, pLib->buffer))) { in ScheduleNextTraceRequest()
825 pLib->IncomingCallsConnectedActive = 0; in ScheduleNextTraceRequest()
828 pLib->req_busy = 1; in ScheduleNextTraceRequest()
831 if (!pLib->OutgoingCallsCallsActive) { in ScheduleNextTraceRequest()
832 pLib->OutgoingCallsCallsActive = 1; in ScheduleNextTraceRequest()
834 if ((ret = SuperTraceTraceOnRequest(pLib->hAdapter, name, pLib->buffer))) { in ScheduleNextTraceRequest()
835 pLib->OutgoingCallsCallsActive = 0; in ScheduleNextTraceRequest()
838 pLib->req_busy = 1; in ScheduleNextTraceRequest()
841 if (!pLib->OutgoingCallsConnectedActive) { in ScheduleNextTraceRequest()
842 pLib->OutgoingCallsConnectedActive = 1; in ScheduleNextTraceRequest()
844 if ((ret = SuperTraceTraceOnRequest(pLib->hAdapter, name, pLib->buffer))) { in ScheduleNextTraceRequest()
845 pLib->OutgoingCallsConnectedActive = 0; in ScheduleNextTraceRequest()
848 pLib->req_busy = 1; in ScheduleNextTraceRequest()
855 static int process_idi_event (diva_strace_context_t* pLib, in process_idi_event() argument
864 if (!pLib->line_init_event && !pLib->pending_line_status) { in process_idi_event()
865 for (i = 1; i <= pLib->Channels; i++) { in process_idi_event()
866 diva_line_event(pLib, i); in process_idi_event()
869 } else if (ch_id && ch_id <= pLib->Channels) { in process_idi_event()
870 return (diva_line_event(pLib, (int)ch_id)); in process_idi_event()
880 if (!pLib->pending_fax_status && !pLib->fax_init_event) { in process_idi_event()
881 for (i = 1; i <= pLib->Channels; i++) { in process_idi_event()
882 diva_fax_event(pLib, i); in process_idi_event()
885 } else if (ch_id && ch_id <= pLib->Channels) { in process_idi_event()
886 return (diva_fax_event(pLib, (int)ch_id)); in process_idi_event()
896 if (!pLib->pending_modem_status && !pLib->modem_init_event) { in process_idi_event()
897 for (i = 1; i <= pLib->Channels; i++) { in process_idi_event()
898 diva_modem_event(pLib, i); in process_idi_event()
901 } else if (ch_id && ch_id <= pLib->Channels) { in process_idi_event()
902 return (diva_modem_event(pLib, (int)ch_id)); in process_idi_event()
912 for (i = 1; i <= pLib->Channels; i++) { in process_idi_event()
915 return (diva_line_event(pLib, i)); in process_idi_event()
922 for (i = 1; i <= pLib->Channels; i++) { in process_idi_event()
925 return (diva_modem_event (pLib, i)); in process_idi_event()
932 for (i = 1; i <= pLib->Channels; i++) { in process_idi_event()
935 return (diva_fax_event (pLib, i)); in process_idi_event()
943 if (pLib->trace_events_down == 1) { in process_idi_event()
944 pLib->trace_events_down = 2; in process_idi_event()
946 diva_trace_error (pLib, 1, "Events Down", 0); in process_idi_event()
952 diva_strace_read_asz (pVar, &pLib->lines[0].pInterface->Layer1[0]); in process_idi_event()
953 if (pLib->l1_trace == 1) { in process_idi_event()
954 pLib->l1_trace = 2; in process_idi_event()
956 diva_trace_notify_user (pLib, 0, DIVA_SUPER_TRACE_INTERFACE_CHANGE); in process_idi_event()
961 char* tmp = &pLib->lines[0].pInterface->Layer2[0]; in process_idi_event()
1012 if (pLib->l2_trace == 1) { in process_idi_event()
1013 pLib->l2_trace = 2; in process_idi_event()
1015 diva_trace_notify_user (pLib, 0, DIVA_SUPER_TRACE_INTERFACE_CHANGE); in process_idi_event()
1022 return (SuperTraceGetIncomingCallStatistics (pLib)); in process_idi_event()
1027 return (SuperTraceGetOutgoingCallStatistics (pLib)); in process_idi_event()
1033 static int diva_line_event (diva_strace_context_t* pLib, int Channel) { in diva_line_event() argument
1034 pLib->pending_line_status |= (1L << (Channel-1)); in diva_line_event()
1038 static int diva_modem_event (diva_strace_context_t* pLib, int Channel) { in diva_modem_event() argument
1039 pLib->pending_modem_status |= (1L << (Channel-1)); in diva_modem_event()
1043 static int diva_fax_event (diva_strace_context_t* pLib, int Channel) { in diva_fax_event() argument
1044 pLib->pending_fax_status |= (1L << (Channel-1)); in diva_fax_event()
1053 static int process_idi_info (diva_strace_context_t* pLib, in process_idi_info() argument
1062 for (i = pLib->Channels; i > 0; i--) { in process_idi_info()
1065 return (diva_modem_info (pLib, i, pVar)); in process_idi_info()
1072 for (i = pLib->Channels; i > 0; i--) { in process_idi_info()
1075 return (diva_fax_info (pLib, i, pVar)); in process_idi_info()
1082 for (i = pLib->Channels; i > 0; i--) { in process_idi_info()
1085 return (diva_line_info (pLib, i, pVar)); in process_idi_info()
1089 if (!diva_ifc_statistics (pLib, pVar)) { in process_idi_info()
1103 static int diva_modem_info (diva_strace_context_t* pLib, in diva_modem_info() argument
1109 for (i = pLib->modem_parse_entry_first[nr]; in diva_modem_info()
1110 i <= pLib->modem_parse_entry_last[nr]; i++) { in diva_modem_info()
1111 if ((cur = find_var (pVar, pLib->parse_table[i].path))) { in diva_modem_info()
1112 if (diva_trace_read_variable (cur, pLib->parse_table[i].variable)) { in diva_modem_info()
1113 diva_trace_error (pLib, -3 , __FILE__, __LINE__); in diva_modem_info()
1117 diva_trace_error (pLib, -2 , __FILE__, __LINE__); in diva_modem_info()
1127 if (pLib->modem_init_event & (1L << nr)) { in diva_modem_info()
1128 diva_trace_notify_user (pLib, nr, DIVA_SUPER_TRACE_NOTIFY_MODEM_CHANGE); in diva_modem_info()
1130 pLib->modem_init_event |= (1L << nr); in diva_modem_info()
1136 static int diva_fax_info (diva_strace_context_t* pLib, in diva_fax_info() argument
1142 for (i = pLib->fax_parse_entry_first[nr]; in diva_fax_info()
1143 i <= pLib->fax_parse_entry_last[nr]; i++) { in diva_fax_info()
1144 if ((cur = find_var (pVar, pLib->parse_table[i].path))) { in diva_fax_info()
1145 if (diva_trace_read_variable (cur, pLib->parse_table[i].variable)) { in diva_fax_info()
1146 diva_trace_error (pLib, -3 , __FILE__, __LINE__); in diva_fax_info()
1150 diva_trace_error (pLib, -2 , __FILE__, __LINE__); in diva_fax_info()
1160 if (pLib->fax_init_event & (1L << nr)) { in diva_fax_info()
1161 diva_trace_notify_user (pLib, nr, DIVA_SUPER_TRACE_NOTIFY_FAX_CHANGE); in diva_fax_info()
1163 pLib->fax_init_event |= (1L << nr); in diva_fax_info()
1174 static int diva_line_info (diva_strace_context_t* pLib, in diva_line_info() argument
1180 for (i = pLib->line_parse_entry_first[nr]; in diva_line_info()
1181 i <= pLib->line_parse_entry_last[nr]; i++) { in diva_line_info()
1182 if ((cur = find_var (pVar, pLib->parse_table[i].path))) { in diva_line_info()
1183 if (diva_trace_read_variable (cur, pLib->parse_table[i].variable)) { in diva_line_info()
1184 diva_trace_error (pLib, -3 , __FILE__, __LINE__); in diva_line_info()
1188 diva_trace_error (pLib, -2 , __FILE__, __LINE__); in diva_line_info()
1201 if (pLib->line_init_event & (1L << nr)) { in diva_line_info()
1202 diva_trace_notify_user (pLib, nr, DIVA_SUPER_TRACE_NOTIFY_LINE_CHANGE); in diva_line_info()
1204 pLib->line_init_event |= (1L << nr); in diva_line_info()
1205 if (strcmp (&pLib->lines[nr].Line[0], "Idle")) { in diva_line_info()
1206 diva_trace_notify_user (pLib, nr, DIVA_SUPER_TRACE_NOTIFY_LINE_CHANGE); in diva_line_info()
1250 static void diva_create_line_parse_table (diva_strace_context_t* pLib, in diva_create_line_parse_table() argument
1252 diva_trace_line_state_t* pLine = &pLib->lines[Channel]; in diva_create_line_parse_table()
1255 if ((pLib->cur_parse_entry + LINE_PARSE_ENTRIES) >= pLib->parse_entries) { in diva_create_line_parse_table()
1256 diva_trace_error (pLib, -1, __FILE__, __LINE__); in diva_create_line_parse_table()
1262 pLib->line_parse_entry_first[Channel] = pLib->cur_parse_entry; in diva_create_line_parse_table()
1264 sprintf (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_line_parse_table()
1266 pLib->parse_table[pLib->cur_parse_entry++].variable = &pLine->Framing[0]; in diva_create_line_parse_table()
1268 sprintf (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_line_parse_table()
1270 pLib->parse_table[pLib->cur_parse_entry++].variable = &pLine->Line[0]; in diva_create_line_parse_table()
1272 sprintf (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_line_parse_table()
1274 pLib->parse_table[pLib->cur_parse_entry++].variable = &pLine->Layer2[0]; in diva_create_line_parse_table()
1276 sprintf (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_line_parse_table()
1278 pLib->parse_table[pLib->cur_parse_entry++].variable = &pLine->Layer3[0]; in diva_create_line_parse_table()
1280 sprintf (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_line_parse_table()
1282 pLib->parse_table[pLib->cur_parse_entry++].variable = \ in diva_create_line_parse_table()
1285 sprintf (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_line_parse_table()
1287 pLib->parse_table[pLib->cur_parse_entry++].variable = \ in diva_create_line_parse_table()
1290 sprintf (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_line_parse_table()
1292 pLib->parse_table[pLib->cur_parse_entry++].variable = \ in diva_create_line_parse_table()
1295 sprintf (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_line_parse_table()
1297 pLib->parse_table[pLib->cur_parse_entry++].variable = \ in diva_create_line_parse_table()
1300 sprintf (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_line_parse_table()
1302 pLib->parse_table[pLib->cur_parse_entry++].variable = &pLine->call_BC; in diva_create_line_parse_table()
1304 sprintf (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_line_parse_table()
1306 pLib->parse_table[pLib->cur_parse_entry++].variable = &pLine->call_HLC; in diva_create_line_parse_table()
1308 sprintf (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_line_parse_table()
1310 pLib->parse_table[pLib->cur_parse_entry++].variable = &pLine->call_LLC; in diva_create_line_parse_table()
1312 sprintf (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_line_parse_table()
1314 pLib->parse_table[pLib->cur_parse_entry++].variable = &pLine->Charges; in diva_create_line_parse_table()
1316 sprintf (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_line_parse_table()
1318 pLib->parse_table[pLib->cur_parse_entry++].variable = &pLine->CallReference; in diva_create_line_parse_table()
1320 sprintf (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_line_parse_table()
1322 pLib->parse_table[pLib->cur_parse_entry++].variable = \ in diva_create_line_parse_table()
1325 sprintf (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_line_parse_table()
1327 pLib->parse_table[pLib->cur_parse_entry++].variable = &pLine->UserID[0]; in diva_create_line_parse_table()
1329 pLib->line_parse_entry_last[Channel] = pLib->cur_parse_entry - 1; in diva_create_line_parse_table()
1332 static void diva_create_fax_parse_table (diva_strace_context_t* pLib, in diva_create_fax_parse_table() argument
1334 diva_trace_fax_state_t* pFax = &pLib->lines[Channel].fax; in diva_create_fax_parse_table()
1337 if ((pLib->cur_parse_entry + FAX_PARSE_ENTRIES) >= pLib->parse_entries) { in diva_create_fax_parse_table()
1338 diva_trace_error (pLib, -1, __FILE__, __LINE__); in diva_create_fax_parse_table()
1343 pLib->fax_parse_entry_first[Channel] = pLib->cur_parse_entry; in diva_create_fax_parse_table()
1345 sprintf (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_fax_parse_table()
1347 pLib->parse_table[pLib->cur_parse_entry++].variable = &pFax->Event; in diva_create_fax_parse_table()
1349 sprintf (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_fax_parse_table()
1351 pLib->parse_table[pLib->cur_parse_entry++].variable = &pFax->Page_Counter; in diva_create_fax_parse_table()
1353 sprintf (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_fax_parse_table()
1355 pLib->parse_table[pLib->cur_parse_entry++].variable = &pFax->Features; in diva_create_fax_parse_table()
1357 sprintf (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_fax_parse_table()
1359 pLib->parse_table[pLib->cur_parse_entry++].variable = &pFax->Station_ID[0]; in diva_create_fax_parse_table()
1361 sprintf (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_fax_parse_table()
1363 pLib->parse_table[pLib->cur_parse_entry++].variable = &pFax->Subaddress[0]; in diva_create_fax_parse_table()
1365 sprintf (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_fax_parse_table()
1367 pLib->parse_table[pLib->cur_parse_entry++].variable = &pFax->Password[0]; in diva_create_fax_parse_table()
1369 sprintf (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_fax_parse_table()
1371 pLib->parse_table[pLib->cur_parse_entry++].variable = &pFax->Speed; in diva_create_fax_parse_table()
1373 sprintf (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_fax_parse_table()
1375 pLib->parse_table[pLib->cur_parse_entry++].variable = &pFax->Resolution; in diva_create_fax_parse_table()
1377 sprintf (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_fax_parse_table()
1379 pLib->parse_table[pLib->cur_parse_entry++].variable = &pFax->Paper_Width; in diva_create_fax_parse_table()
1381 sprintf (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_fax_parse_table()
1383 pLib->parse_table[pLib->cur_parse_entry++].variable = &pFax->Paper_Length; in diva_create_fax_parse_table()
1385 sprintf (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_fax_parse_table()
1387 pLib->parse_table[pLib->cur_parse_entry++].variable = &pFax->Scanline_Time; in diva_create_fax_parse_table()
1389 sprintf (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_fax_parse_table()
1391 pLib->parse_table[pLib->cur_parse_entry++].variable = &pFax->Disc_Reason; in diva_create_fax_parse_table()
1393 pLib->fax_parse_entry_last[Channel] = pLib->cur_parse_entry - 1; in diva_create_fax_parse_table()
1396 static void diva_create_modem_parse_table (diva_strace_context_t* pLib, in diva_create_modem_parse_table() argument
1398 diva_trace_modem_state_t* pModem = &pLib->lines[Channel].modem; in diva_create_modem_parse_table()
1401 if ((pLib->cur_parse_entry + MODEM_PARSE_ENTRIES) >= pLib->parse_entries) { in diva_create_modem_parse_table()
1402 diva_trace_error (pLib, -1, __FILE__, __LINE__); in diva_create_modem_parse_table()
1407 pLib->modem_parse_entry_first[Channel] = pLib->cur_parse_entry; in diva_create_modem_parse_table()
1409 sprintf (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_modem_parse_table()
1411 pLib->parse_table[pLib->cur_parse_entry++].variable = &pModem->Event; in diva_create_modem_parse_table()
1413 sprintf (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_modem_parse_table()
1415 pLib->parse_table[pLib->cur_parse_entry++].variable = &pModem->Norm; in diva_create_modem_parse_table()
1417 sprintf (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_modem_parse_table()
1419 pLib->parse_table[pLib->cur_parse_entry++].variable = &pModem->Options; in diva_create_modem_parse_table()
1421 sprintf (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_modem_parse_table()
1423 pLib->parse_table[pLib->cur_parse_entry++].variable = &pModem->TxSpeed; in diva_create_modem_parse_table()
1425 sprintf (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_modem_parse_table()
1427 pLib->parse_table[pLib->cur_parse_entry++].variable = &pModem->RxSpeed; in diva_create_modem_parse_table()
1429 sprintf (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_modem_parse_table()
1431 pLib->parse_table[pLib->cur_parse_entry++].variable = &pModem->RoundtripMsec; in diva_create_modem_parse_table()
1433 sprintf (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_modem_parse_table()
1435 pLib->parse_table[pLib->cur_parse_entry++].variable = &pModem->SymbolRate; in diva_create_modem_parse_table()
1437 sprintf (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_modem_parse_table()
1439 pLib->parse_table[pLib->cur_parse_entry++].variable = &pModem->RxLeveldBm; in diva_create_modem_parse_table()
1441 sprintf (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_modem_parse_table()
1443 pLib->parse_table[pLib->cur_parse_entry++].variable = &pModem->EchoLeveldBm; in diva_create_modem_parse_table()
1445 sprintf (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_modem_parse_table()
1447 pLib->parse_table[pLib->cur_parse_entry++].variable = &pModem->SNRdb; in diva_create_modem_parse_table()
1449 sprintf (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_modem_parse_table()
1451 pLib->parse_table[pLib->cur_parse_entry++].variable = &pModem->MAE; in diva_create_modem_parse_table()
1453 sprintf (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_modem_parse_table()
1455 pLib->parse_table[pLib->cur_parse_entry++].variable = &pModem->LocalRetrains; in diva_create_modem_parse_table()
1457 sprintf (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_modem_parse_table()
1459 pLib->parse_table[pLib->cur_parse_entry++].variable = &pModem->RemoteRetrains; in diva_create_modem_parse_table()
1461 sprintf (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_modem_parse_table()
1463 pLib->parse_table[pLib->cur_parse_entry++].variable = &pModem->LocalResyncs; in diva_create_modem_parse_table()
1465 sprintf (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_modem_parse_table()
1467 pLib->parse_table[pLib->cur_parse_entry++].variable = &pModem->RemoteResyncs; in diva_create_modem_parse_table()
1469 sprintf (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_modem_parse_table()
1471 pLib->parse_table[pLib->cur_parse_entry++].variable = &pModem->DiscReason; in diva_create_modem_parse_table()
1473 pLib->modem_parse_entry_last[Channel] = pLib->cur_parse_entry - 1; in diva_create_modem_parse_table()
1476 static void diva_create_parse_table (diva_strace_context_t* pLib) { in diva_create_parse_table() argument
1479 for (i = 0; i < pLib->Channels; i++) { in diva_create_parse_table()
1480 diva_create_line_parse_table (pLib, i); in diva_create_parse_table()
1481 diva_create_modem_parse_table (pLib, i); in diva_create_parse_table()
1482 diva_create_fax_parse_table (pLib, i); in diva_create_parse_table()
1485 pLib->statistic_parse_first = pLib->cur_parse_entry; in diva_create_parse_table()
1490 strcpy (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_parse_table()
1492 pLib->parse_table[pLib->cur_parse_entry++].variable = \ in diva_create_parse_table()
1493 &pLib->InterfaceStat.outg.Calls; in diva_create_parse_table()
1495 strcpy (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_parse_table()
1497 pLib->parse_table[pLib->cur_parse_entry++].variable = \ in diva_create_parse_table()
1498 &pLib->InterfaceStat.outg.Connected; in diva_create_parse_table()
1500 strcpy (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_parse_table()
1502 pLib->parse_table[pLib->cur_parse_entry++].variable = \ in diva_create_parse_table()
1503 &pLib->InterfaceStat.outg.User_Busy; in diva_create_parse_table()
1505 strcpy (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_parse_table()
1507 pLib->parse_table[pLib->cur_parse_entry++].variable = \ in diva_create_parse_table()
1508 &pLib->InterfaceStat.outg.No_Answer; in diva_create_parse_table()
1510 strcpy (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_parse_table()
1512 pLib->parse_table[pLib->cur_parse_entry++].variable = \ in diva_create_parse_table()
1513 &pLib->InterfaceStat.outg.Wrong_Number; in diva_create_parse_table()
1515 strcpy (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_parse_table()
1517 pLib->parse_table[pLib->cur_parse_entry++].variable = \ in diva_create_parse_table()
1518 &pLib->InterfaceStat.outg.Call_Rejected; in diva_create_parse_table()
1520 strcpy (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_parse_table()
1522 pLib->parse_table[pLib->cur_parse_entry++].variable = \ in diva_create_parse_table()
1523 &pLib->InterfaceStat.outg.Other_Failures; in diva_create_parse_table()
1528 strcpy (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_parse_table()
1530 pLib->parse_table[pLib->cur_parse_entry++].variable = \ in diva_create_parse_table()
1531 &pLib->InterfaceStat.inc.Calls; in diva_create_parse_table()
1533 strcpy (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_parse_table()
1535 pLib->parse_table[pLib->cur_parse_entry++].variable = \ in diva_create_parse_table()
1536 &pLib->InterfaceStat.inc.Connected; in diva_create_parse_table()
1538 strcpy (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_parse_table()
1540 pLib->parse_table[pLib->cur_parse_entry++].variable = \ in diva_create_parse_table()
1541 &pLib->InterfaceStat.inc.User_Busy; in diva_create_parse_table()
1543 strcpy (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_parse_table()
1545 pLib->parse_table[pLib->cur_parse_entry++].variable = \ in diva_create_parse_table()
1546 &pLib->InterfaceStat.inc.Call_Rejected; in diva_create_parse_table()
1548 strcpy (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_parse_table()
1550 pLib->parse_table[pLib->cur_parse_entry++].variable = \ in diva_create_parse_table()
1551 &pLib->InterfaceStat.inc.Wrong_Number; in diva_create_parse_table()
1553 strcpy (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_parse_table()
1555 pLib->parse_table[pLib->cur_parse_entry++].variable = \ in diva_create_parse_table()
1556 &pLib->InterfaceStat.inc.Incompatible_Dst; in diva_create_parse_table()
1558 strcpy (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_parse_table()
1560 pLib->parse_table[pLib->cur_parse_entry++].variable = \ in diva_create_parse_table()
1561 &pLib->InterfaceStat.inc.Out_of_Order; in diva_create_parse_table()
1563 strcpy (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_parse_table()
1565 pLib->parse_table[pLib->cur_parse_entry++].variable = \ in diva_create_parse_table()
1566 &pLib->InterfaceStat.inc.Ignored; in diva_create_parse_table()
1571 pLib->mdm_statistic_parse_first = pLib->cur_parse_entry; in diva_create_parse_table()
1573 strcpy (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_parse_table()
1575 pLib->parse_table[pLib->cur_parse_entry++].variable = \ in diva_create_parse_table()
1576 &pLib->InterfaceStat.mdm.Disc_Normal; in diva_create_parse_table()
1578 strcpy (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_parse_table()
1580 pLib->parse_table[pLib->cur_parse_entry++].variable = \ in diva_create_parse_table()
1581 &pLib->InterfaceStat.mdm.Disc_Unspecified; in diva_create_parse_table()
1583 strcpy (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_parse_table()
1585 pLib->parse_table[pLib->cur_parse_entry++].variable = \ in diva_create_parse_table()
1586 &pLib->InterfaceStat.mdm.Disc_Busy_Tone; in diva_create_parse_table()
1588 strcpy (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_parse_table()
1590 pLib->parse_table[pLib->cur_parse_entry++].variable = \ in diva_create_parse_table()
1591 &pLib->InterfaceStat.mdm.Disc_Congestion; in diva_create_parse_table()
1593 strcpy (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_parse_table()
1595 pLib->parse_table[pLib->cur_parse_entry++].variable = \ in diva_create_parse_table()
1596 &pLib->InterfaceStat.mdm.Disc_Carr_Wait; in diva_create_parse_table()
1598 strcpy (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_parse_table()
1600 pLib->parse_table[pLib->cur_parse_entry++].variable = \ in diva_create_parse_table()
1601 &pLib->InterfaceStat.mdm.Disc_Trn_Timeout; in diva_create_parse_table()
1603 strcpy (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_parse_table()
1605 pLib->parse_table[pLib->cur_parse_entry++].variable = \ in diva_create_parse_table()
1606 &pLib->InterfaceStat.mdm.Disc_Incompat; in diva_create_parse_table()
1608 strcpy (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_parse_table()
1610 pLib->parse_table[pLib->cur_parse_entry++].variable = \ in diva_create_parse_table()
1611 &pLib->InterfaceStat.mdm.Disc_Frame_Rej; in diva_create_parse_table()
1613 strcpy (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_parse_table()
1615 pLib->parse_table[pLib->cur_parse_entry++].variable = \ in diva_create_parse_table()
1616 &pLib->InterfaceStat.mdm.Disc_V42bis; in diva_create_parse_table()
1618 pLib->mdm_statistic_parse_last = pLib->cur_parse_entry - 1; in diva_create_parse_table()
1623 pLib->fax_statistic_parse_first = pLib->cur_parse_entry; in diva_create_parse_table()
1625 strcpy (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_parse_table()
1627 pLib->parse_table[pLib->cur_parse_entry++].variable = \ in diva_create_parse_table()
1628 &pLib->InterfaceStat.fax.Disc_Normal; in diva_create_parse_table()
1630 strcpy (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_parse_table()
1632 pLib->parse_table[pLib->cur_parse_entry++].variable = \ in diva_create_parse_table()
1633 &pLib->InterfaceStat.fax.Disc_Not_Ident; in diva_create_parse_table()
1635 strcpy (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_parse_table()
1637 pLib->parse_table[pLib->cur_parse_entry++].variable = \ in diva_create_parse_table()
1638 &pLib->InterfaceStat.fax.Disc_No_Response; in diva_create_parse_table()
1640 strcpy (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_parse_table()
1642 pLib->parse_table[pLib->cur_parse_entry++].variable = \ in diva_create_parse_table()
1643 &pLib->InterfaceStat.fax.Disc_Retries; in diva_create_parse_table()
1645 strcpy (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_parse_table()
1647 pLib->parse_table[pLib->cur_parse_entry++].variable = \ in diva_create_parse_table()
1648 &pLib->InterfaceStat.fax.Disc_Unexp_Msg; in diva_create_parse_table()
1650 strcpy (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_parse_table()
1652 pLib->parse_table[pLib->cur_parse_entry++].variable = \ in diva_create_parse_table()
1653 &pLib->InterfaceStat.fax.Disc_No_Polling; in diva_create_parse_table()
1655 strcpy (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_parse_table()
1657 pLib->parse_table[pLib->cur_parse_entry++].variable = \ in diva_create_parse_table()
1658 &pLib->InterfaceStat.fax.Disc_Training; in diva_create_parse_table()
1660 strcpy (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_parse_table()
1662 pLib->parse_table[pLib->cur_parse_entry++].variable = \ in diva_create_parse_table()
1663 &pLib->InterfaceStat.fax.Disc_Unexpected; in diva_create_parse_table()
1665 strcpy (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_parse_table()
1667 pLib->parse_table[pLib->cur_parse_entry++].variable = \ in diva_create_parse_table()
1668 &pLib->InterfaceStat.fax.Disc_Application; in diva_create_parse_table()
1670 strcpy (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_parse_table()
1672 pLib->parse_table[pLib->cur_parse_entry++].variable = \ in diva_create_parse_table()
1673 &pLib->InterfaceStat.fax.Disc_Incompat; in diva_create_parse_table()
1675 strcpy (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_parse_table()
1677 pLib->parse_table[pLib->cur_parse_entry++].variable = \ in diva_create_parse_table()
1678 &pLib->InterfaceStat.fax.Disc_No_Command; in diva_create_parse_table()
1680 strcpy (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_parse_table()
1682 pLib->parse_table[pLib->cur_parse_entry++].variable = \ in diva_create_parse_table()
1683 &pLib->InterfaceStat.fax.Disc_Long_Msg; in diva_create_parse_table()
1685 strcpy (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_parse_table()
1687 pLib->parse_table[pLib->cur_parse_entry++].variable = \ in diva_create_parse_table()
1688 &pLib->InterfaceStat.fax.Disc_Supervisor; in diva_create_parse_table()
1690 strcpy (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_parse_table()
1692 pLib->parse_table[pLib->cur_parse_entry++].variable = \ in diva_create_parse_table()
1693 &pLib->InterfaceStat.fax.Disc_SUB_SEP_PWD; in diva_create_parse_table()
1695 strcpy (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_parse_table()
1697 pLib->parse_table[pLib->cur_parse_entry++].variable = \ in diva_create_parse_table()
1698 &pLib->InterfaceStat.fax.Disc_Invalid_Msg; in diva_create_parse_table()
1700 strcpy (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_parse_table()
1702 pLib->parse_table[pLib->cur_parse_entry++].variable = \ in diva_create_parse_table()
1703 &pLib->InterfaceStat.fax.Disc_Page_Coding; in diva_create_parse_table()
1705 strcpy (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_parse_table()
1707 pLib->parse_table[pLib->cur_parse_entry++].variable = \ in diva_create_parse_table()
1708 &pLib->InterfaceStat.fax.Disc_App_Timeout; in diva_create_parse_table()
1710 strcpy (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_parse_table()
1712 pLib->parse_table[pLib->cur_parse_entry++].variable = \ in diva_create_parse_table()
1713 &pLib->InterfaceStat.fax.Disc_Unspecified; in diva_create_parse_table()
1715 pLib->fax_statistic_parse_last = pLib->cur_parse_entry - 1; in diva_create_parse_table()
1720 strcpy (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_parse_table()
1722 pLib->parse_table[pLib->cur_parse_entry++].variable = \ in diva_create_parse_table()
1723 &pLib->InterfaceStat.b1.X_Frames; in diva_create_parse_table()
1725 strcpy (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_parse_table()
1727 pLib->parse_table[pLib->cur_parse_entry++].variable = \ in diva_create_parse_table()
1728 &pLib->InterfaceStat.b1.X_Bytes; in diva_create_parse_table()
1730 strcpy (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_parse_table()
1732 pLib->parse_table[pLib->cur_parse_entry++].variable = \ in diva_create_parse_table()
1733 &pLib->InterfaceStat.b1.X_Errors; in diva_create_parse_table()
1735 strcpy (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_parse_table()
1737 pLib->parse_table[pLib->cur_parse_entry++].variable = \ in diva_create_parse_table()
1738 &pLib->InterfaceStat.b1.R_Frames; in diva_create_parse_table()
1740 strcpy (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_parse_table()
1742 pLib->parse_table[pLib->cur_parse_entry++].variable = \ in diva_create_parse_table()
1743 &pLib->InterfaceStat.b1.R_Bytes; in diva_create_parse_table()
1745 strcpy (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_parse_table()
1747 pLib->parse_table[pLib->cur_parse_entry++].variable = \ in diva_create_parse_table()
1748 &pLib->InterfaceStat.b1.R_Errors; in diva_create_parse_table()
1753 strcpy (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_parse_table()
1755 pLib->parse_table[pLib->cur_parse_entry++].variable = \ in diva_create_parse_table()
1756 &pLib->InterfaceStat.b2.X_Frames; in diva_create_parse_table()
1758 strcpy (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_parse_table()
1760 pLib->parse_table[pLib->cur_parse_entry++].variable = \ in diva_create_parse_table()
1761 &pLib->InterfaceStat.b2.X_Bytes; in diva_create_parse_table()
1763 strcpy (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_parse_table()
1765 pLib->parse_table[pLib->cur_parse_entry++].variable = \ in diva_create_parse_table()
1766 &pLib->InterfaceStat.b2.X_Errors; in diva_create_parse_table()
1768 strcpy (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_parse_table()
1770 pLib->parse_table[pLib->cur_parse_entry++].variable = \ in diva_create_parse_table()
1771 &pLib->InterfaceStat.b2.R_Frames; in diva_create_parse_table()
1773 strcpy (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_parse_table()
1775 pLib->parse_table[pLib->cur_parse_entry++].variable = \ in diva_create_parse_table()
1776 &pLib->InterfaceStat.b2.R_Bytes; in diva_create_parse_table()
1778 strcpy (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_parse_table()
1780 pLib->parse_table[pLib->cur_parse_entry++].variable = \ in diva_create_parse_table()
1781 &pLib->InterfaceStat.b2.R_Errors; in diva_create_parse_table()
1786 strcpy (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_parse_table()
1788 pLib->parse_table[pLib->cur_parse_entry++].variable = \ in diva_create_parse_table()
1789 &pLib->InterfaceStat.d1.X_Frames; in diva_create_parse_table()
1791 strcpy (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_parse_table()
1793 pLib->parse_table[pLib->cur_parse_entry++].variable = \ in diva_create_parse_table()
1794 &pLib->InterfaceStat.d1.X_Bytes; in diva_create_parse_table()
1796 strcpy (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_parse_table()
1798 pLib->parse_table[pLib->cur_parse_entry++].variable = \ in diva_create_parse_table()
1799 &pLib->InterfaceStat.d1.X_Errors; in diva_create_parse_table()
1801 strcpy (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_parse_table()
1803 pLib->parse_table[pLib->cur_parse_entry++].variable = \ in diva_create_parse_table()
1804 &pLib->InterfaceStat.d1.R_Frames; in diva_create_parse_table()
1806 strcpy (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_parse_table()
1808 pLib->parse_table[pLib->cur_parse_entry++].variable = \ in diva_create_parse_table()
1809 &pLib->InterfaceStat.d1.R_Bytes; in diva_create_parse_table()
1811 strcpy (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_parse_table()
1813 pLib->parse_table[pLib->cur_parse_entry++].variable = \ in diva_create_parse_table()
1814 &pLib->InterfaceStat.d1.R_Errors; in diva_create_parse_table()
1819 strcpy (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_parse_table()
1821 pLib->parse_table[pLib->cur_parse_entry++].variable = \ in diva_create_parse_table()
1822 &pLib->InterfaceStat.d2.X_Frames; in diva_create_parse_table()
1824 strcpy (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_parse_table()
1826 pLib->parse_table[pLib->cur_parse_entry++].variable = \ in diva_create_parse_table()
1827 &pLib->InterfaceStat.d2.X_Bytes; in diva_create_parse_table()
1829 strcpy (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_parse_table()
1831 pLib->parse_table[pLib->cur_parse_entry++].variable = \ in diva_create_parse_table()
1832 &pLib->InterfaceStat.d2.X_Errors; in diva_create_parse_table()
1834 strcpy (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_parse_table()
1836 pLib->parse_table[pLib->cur_parse_entry++].variable = \ in diva_create_parse_table()
1837 &pLib->InterfaceStat.d2.R_Frames; in diva_create_parse_table()
1839 strcpy (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_parse_table()
1841 pLib->parse_table[pLib->cur_parse_entry++].variable = \ in diva_create_parse_table()
1842 &pLib->InterfaceStat.d2.R_Bytes; in diva_create_parse_table()
1844 strcpy (pLib->parse_table[pLib->cur_parse_entry].path, in diva_create_parse_table()
1846 pLib->parse_table[pLib->cur_parse_entry++].variable = \ in diva_create_parse_table()
1847 &pLib->InterfaceStat.d2.R_Errors; in diva_create_parse_table()
1850 pLib->statistic_parse_last = pLib->cur_parse_entry - 1; in diva_create_parse_table()
1853 static void diva_trace_error (diva_strace_context_t* pLib, in diva_trace_error() argument
1855 if (pLib->user_proc_table.error_notify_proc) { in diva_trace_error()
1856 (*(pLib->user_proc_table.error_notify_proc))(\ in diva_trace_error()
1857 pLib->user_proc_table.user_context, in diva_trace_error()
1858 &pLib->instance, pLib->Adapter, in diva_trace_error()
1866 static void diva_trace_notify_user (diva_strace_context_t* pLib, in diva_trace_notify_user() argument
1869 if (pLib->user_proc_table.notify_proc) { in diva_trace_notify_user()
1870 (*(pLib->user_proc_table.notify_proc))(pLib->user_proc_table.user_context, in diva_trace_notify_user()
1871 &pLib->instance, in diva_trace_notify_user()
1872 pLib->Adapter, in diva_trace_notify_user()
1873 &pLib->lines[Channel], in diva_trace_notify_user()
2020 diva_strace_context_t* pLib = (diva_strace_context_t*)hLib; in SuperTraceSetAudioTap() local
2022 if ((Channel < 1) || (Channel > pLib->Channels)) { in SuperTraceSetAudioTap()
2028 pLib->audio_tap_mask |= (1L << Channel); in SuperTraceSetAudioTap()
2030 pLib->audio_tap_mask &= ~(1L << Channel); in SuperTraceSetAudioTap()
2037 if (pLib->audio_tap_mask) { in SuperTraceSetAudioTap()
2038 pLib->trace_event_mask |= TM_M_DATA; in SuperTraceSetAudioTap()
2040 pLib->trace_event_mask &= ~TM_M_DATA; in SuperTraceSetAudioTap()
2043 return (ScheduleNextTraceRequest (pLib)); in SuperTraceSetAudioTap()
2047 diva_strace_context_t* pLib = (diva_strace_context_t*)hLib; in SuperTraceSetBChannel() local
2049 if ((Channel < 1) || (Channel > pLib->Channels)) { in SuperTraceSetBChannel()
2055 pLib->bchannel_trace_mask |= (1L << Channel); in SuperTraceSetBChannel()
2057 pLib->bchannel_trace_mask &= ~(1L << Channel); in SuperTraceSetBChannel()
2060 return (ScheduleNextTraceRequest (pLib)); in SuperTraceSetBChannel()
2064 diva_strace_context_t* pLib = (diva_strace_context_t*)hLib; in SuperTraceSetDChannel() local
2067 pLib->trace_event_mask |= (TM_D_CHAN | TM_C_COMM | TM_DL_ERR | TM_LAYER1); in SuperTraceSetDChannel()
2069 pLib->trace_event_mask &= ~(TM_D_CHAN | TM_C_COMM | TM_DL_ERR | TM_LAYER1); in SuperTraceSetDChannel()
2072 return (ScheduleNextTraceRequest (pLib)); in SuperTraceSetDChannel()
2076 diva_strace_context_t* pLib = (diva_strace_context_t*)hLib; in SuperTraceSetInfo() local
2079 pLib->trace_event_mask |= TM_STRING; in SuperTraceSetInfo()
2081 pLib->trace_event_mask &= ~TM_STRING; in SuperTraceSetInfo()
2084 return (ScheduleNextTraceRequest (pLib)); in SuperTraceSetInfo()
2088 diva_strace_context_t* pLib = (diva_strace_context_t*)hLib; in SuperTraceClearCall() local
2090 if ((Channel < 1) || (Channel > pLib->Channels)) { in SuperTraceClearCall()
2095 pLib->clear_call_command |= (1L << Channel); in SuperTraceClearCall()
2097 return (ScheduleNextTraceRequest (pLib)); in SuperTraceClearCall()
2103 static int diva_ifc_statistics (diva_strace_context_t* pLib, in diva_ifc_statistics() argument
2108 for (i = pLib->statistic_parse_first; i <= pLib->statistic_parse_last; i++) { in diva_ifc_statistics()
2109 if ((cur = find_var (pVar, pLib->parse_table[i].path))) { in diva_ifc_statistics()
2110 if (diva_trace_read_variable (cur, pLib->parse_table[i].variable)) { in diva_ifc_statistics()
2111 diva_trace_error (pLib, -3 , __FILE__, __LINE__); in diva_ifc_statistics()
2115 if ((i >= pLib->mdm_statistic_parse_first) && (i <= pLib->mdm_statistic_parse_last)) { in diva_ifc_statistics()
2118 if ((i >= pLib->fax_statistic_parse_first) && (i <= pLib->fax_statistic_parse_last)) { in diva_ifc_statistics()
2130 diva_trace_notify_user (pLib, 0, DIVA_SUPER_TRACE_NOTIFY_MDM_STAT_CHANGE); in diva_ifc_statistics()
2132 diva_trace_notify_user (pLib, 0, DIVA_SUPER_TRACE_NOTIFY_FAX_STAT_CHANGE); in diva_ifc_statistics()
2134 diva_trace_notify_user (pLib, 0, DIVA_SUPER_TRACE_NOTIFY_STAT_CHANGE); in diva_ifc_statistics()
2141 diva_strace_context_t* pLib = (diva_strace_context_t*)hLib; in SuperTraceGetOutgoingCallStatistics() local
2142 pLib->outgoing_ifc_stats = 1; in SuperTraceGetOutgoingCallStatistics()
2143 return (ScheduleNextTraceRequest (pLib)); in SuperTraceGetOutgoingCallStatistics()
2147 diva_strace_context_t* pLib = (diva_strace_context_t*)hLib; in SuperTraceGetIncomingCallStatistics() local
2148 pLib->incoming_ifc_stats = 1; in SuperTraceGetIncomingCallStatistics()
2149 return (ScheduleNextTraceRequest (pLib)); in SuperTraceGetIncomingCallStatistics()
2153 diva_strace_context_t* pLib = (diva_strace_context_t*)hLib; in SuperTraceGetModemStatistics() local
2154 pLib->modem_ifc_stats = 1; in SuperTraceGetModemStatistics()
2155 return (ScheduleNextTraceRequest (pLib)); in SuperTraceGetModemStatistics()
2159 diva_strace_context_t* pLib = (diva_strace_context_t*)hLib; in SuperTraceGetFaxStatistics() local
2160 pLib->fax_ifc_stats = 1; in SuperTraceGetFaxStatistics()
2161 return (ScheduleNextTraceRequest (pLib)); in SuperTraceGetFaxStatistics()
2165 diva_strace_context_t* pLib = (diva_strace_context_t*)hLib; in SuperTraceGetBLayer1Statistics() local
2166 pLib->b1_ifc_stats = 1; in SuperTraceGetBLayer1Statistics()
2167 return (ScheduleNextTraceRequest (pLib)); in SuperTraceGetBLayer1Statistics()
2171 diva_strace_context_t* pLib = (diva_strace_context_t*)hLib; in SuperTraceGetBLayer2Statistics() local
2172 pLib->b2_ifc_stats = 1; in SuperTraceGetBLayer2Statistics()
2173 return (ScheduleNextTraceRequest (pLib)); in SuperTraceGetBLayer2Statistics()
2177 diva_strace_context_t* pLib = (diva_strace_context_t*)hLib; in SuperTraceGetDLayer1Statistics() local
2178 pLib->d1_ifc_stats = 1; in SuperTraceGetDLayer1Statistics()
2179 return (ScheduleNextTraceRequest (pLib)); in SuperTraceGetDLayer1Statistics()
2183 diva_strace_context_t* pLib = (diva_strace_context_t*)hLib; in SuperTraceGetDLayer2Statistics() local
2184 pLib->d2_ifc_stats = 1; in SuperTraceGetDLayer2Statistics()
2185 return (ScheduleNextTraceRequest (pLib)); in SuperTraceGetDLayer2Statistics()