MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / readbuffer1

Function readbuffer1

src/dolphin/src/eth/eth.c:466–487  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

464}
465
466static void readbuffer1(s32 chan, OSContext* context) {
467 EXIDeselect(0);
468
469 DCInvalidateRange(tmppool0, OSRoundUp32B(recvlen0));
470 if (recvlen1 != 0) {
471 DCInvalidateRange(tmppool1, OSRoundUp32B(recvlen1));
472 }
473
474 if (recvcallback1) {
475 memcpy(recvaddr, tmppool0, recvlen0);
476 if (recvlen1 != 0) {
477 memcpy(recvaddr + recvlen0, tmppool1, recvlen1);
478 }
479 __ETHFilter(recvaddr, d2.packetlength);
480 (*recvcallback1)(recvaddr, d2.packetlength);
481 }
482
483 rrp = d2.nextpacket;
484 rwp = readcmd16(0x16);
485 recvsub1();
486 __ETHInterruptTime = OSGetTime() - __OSLastInterruptTime;
487}
488
489#include <dolphin/eth/hashfunc.c>
490

Callers

nothing calls this directly

Calls 6

EXIDeselectFunction · 0.85
memcpyFunction · 0.85
__ETHFilterFunction · 0.85
readcmd16Function · 0.85
recvsub1Function · 0.85
OSGetTimeFunction · 0.85

Tested by

no test coverage detected