Lines Matching refs:ofs
828 WORD ofs = _farpeekw (_dos_ds, realBase+rxOutOfs); in PktReceive() local
830 if (ofs != _farpeekw (_dos_ds, realBase+rxInOfs)) in PktReceive()
835 head.firstCount = _farpeekw (_dos_ds, realBase+ofs); in PktReceive()
836 head.secondCount = _farpeekw (_dos_ds, realBase+ofs+2); in PktReceive()
837 head.handle = _farpeekw (_dos_ds, realBase+ofs+4); in PktReceive()
843 dosmemget (realBase+ofs+6, len, buf); in PktReceive()
848 ofs += sizeof (RX_ELEMENT); in PktReceive()
849 if (ofs > LAST_RX_BUF) in PktReceive()
851 else _farpokew (_dos_ds, realBase+rxOutOfs, ofs); in PktReceive()
859 WORD ofs; in PktQueueBusy() local
862 ofs = _farpeekw (_dos_ds, realBase+rxInOfs); in PktQueueBusy()
864 ofs += sizeof (RX_ELEMENT); in PktQueueBusy()
866 if (ofs > LAST_RX_BUF) in PktQueueBusy()
868 else _farpokew (_dos_ds, realBase+rxOutOfs, ofs); in PktQueueBusy()
894 WORD ofs = *(WORD*) (realBase+rxOutOfs); in PktReceive() local
896 if (ofs != *(WORD*) (realBase+rxInOfs)) in PktReceive()
901 head.firstCount = *(WORD*) (realBase+ofs); in PktReceive()
902 head.secondCount = *(WORD*) (realBase+ofs+2); in PktReceive()
903 head.handle = *(WORD*) (realBase+ofs+4); in PktReceive()
909 memcpy (buf, (const void*)(realBase+ofs+6), len); in PktReceive()
914 ofs += sizeof (RX_ELEMENT); in PktReceive()
915 if (ofs > LAST_RX_BUF) in PktReceive()
917 else *(WORD*) (realBase+rxOutOfs) = ofs; in PktReceive()
925 WORD ofs; in PktQueueBusy() local
928 ofs = *(WORD*) (realBase+rxInOfs); in PktQueueBusy()
930 ofs += sizeof (RX_ELEMENT); in PktQueueBusy()
932 if (ofs > LAST_RX_BUF) in PktQueueBusy()
934 else *(WORD*) (realBase+rxOutOfs) = ofs; in PktQueueBusy()
1020 unsigned ofs; /* clear the DOS-mem to prevent further upcalls */ in PktFreeMem()
1022 for (ofs = 0; ofs < 16 * rm_mem.size / 4; ofs += 4) in PktFreeMem()
1023 _farpokel (_dos_ds, realBase + ofs, 0); in PktFreeMem()
1246 unsigned sel, ofs; in PktInitDriver() local
1252 ofs = _FP_OFF (protBase); in PktInitDriver()
1253 printf ("Protbase = %04X:%08X\n", sel,ofs); in PktInitDriver()
1257 ofs = _FP_OFF (rxOutOfsFp); in PktInitDriver()
1258 printf ("rxOutOfsFp = %04X:%08X\n", sel,ofs); in PktInitDriver()
1261 ofs = _FP_OFF (rxInOfsFp); in PktInitDriver()
1262 printf ("rxInOfsFp = %04X:%08X\n", sel,ofs); in PktInitDriver()