• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/AppleUSBIrDA-145.2.4/DumpLog/

Lines Matching refs:obj

39 Boolean CheckLog(IrDALogHdr *obj);
76 kern_return_t openDevice(io_object_t obj, io_connect_t * con);
170 openDevice(io_object_t obj, io_connect_t * con)
172 return IOServiceOpen(obj, mach_task_self(), 123, con);
193 io_object_t obj = 0;
205 while ((obj = IOIteratorNext(ite))) {
206 if (IOObjectConformsTo(obj, (char *) className)) {
213 rc = IOObjectGetClass(obj, name);
218 IOObjectRelease(obj);
219 obj = 0;
224 return obj;
560 Boolean CheckLog(IrDALogHdr *obj)
562 if (obj->fWrapped == false && // if we've not wrapped around and
563 obj->fEventIndex == obj->fPrintIndex) { // print index == new event index, then nothing new
565 printf("gIrDALog = 0x%lx\n", (UInt32)obj);
566 printf("buffer = 0x%lx\n", (UInt32)obj->fEventBuffer);
567 printf("index = %ld\n", obj->fEventIndex);
568 printf("prtindex = %ld\n", obj->fPrintIndex);
569 printf("#entries = %ld\n", obj->fNumEntries);
570 printf("traceon = %d\n", obj->fTracingOn);
571 printf("wrapped = %d\n", obj->fWrapped);
578 void OutputBuffer(IrDALogHdr *obj, IrDAEventDesc *events, char *msgs, FILE *out)
588 if (obj->fWrapped == false && // if we've not wrapped around and
589 obj->fEventIndex == obj->fPrintIndex) { // print index == new event index, then nothing new
591 printf("gIrDALog = 0x%lx\n", (UInt32)obj);
592 printf("buffer = 0x%lx\n", (UInt32)obj->fEventBuffer);
593 printf("index = %ld\n", obj->fEventIndex);
594 printf("prtindex = %ld\n", obj->fPrintIndex);
595 printf("#entries = %ld\n", obj->fNumEntries);
596 printf("traceon = %d\n", obj->fTracingOn);
597 printf("wrapped = %d\n", obj->fWrapped);
602 oldTracingFlag = obj->fTracingOn; // Save old value of tracing enabled bit
603 obj->fTracingOn = false; // temporarily turn off tracing during dcmd (let's not race)
605 if (obj->fWrapped) { // if adding new entries wrapped over print index
606 obj->fPrintIndex = obj->fEventIndex; // then start printing at next "avail" entry
609 if( obj->fPrintIndex >= obj->fNumEntries ) // sanity check only, this shouldn't happen
610 obj->fPrintIndex = 0;
619 eventPtr = &obj->fEventBuffer[obj->fPrintIndex];
653 obj->fPrintIndex++;
655 if( obj->fPrintIndex >= obj->fNumEntries ) // wrap print index at end of circular buffer
656 obj->fPrintIndex = 0;
658 } while((obj->fPrintIndex != obj->fEventIndex) );
660 obj->fPrintIndex = obj->fEventIndex; // FLUSH PENDING LOG ENTRIES if aborted
662 obj->fWrapped = false; // reset wrapped flag
663 obj->fTracingOn = oldTracingFlag; // restore tracing state (enable again)