Lines Matching defs:pState
242 int vpciRaiseInterrupt(VPCISTATE *pState, int rcBusy, uint8_t u8IntCause);
257 void vpciSetWriteLed(PVPCISTATE pState, bool fOn);
258 void vpciSetReadLed(PVPCISTATE pState, bool fOn);
259 int vpciSaveExec(PVPCISTATE pState, PSSMHANDLE pSSM);
260 int vpciLoadExec(PVPCISTATE pState, PSSMHANDLE pSSM, uint32_t uVersion, uint32_t uPass, uint32_t nQueues);
261 int vpciConstruct(PPDMDEVINS pDevIns, VPCISTATE *pState, int iInstance, const char *pcszNameFmt,
263 int vpciDestruct(VPCISTATE* pState);
265 void vpciReset(PVPCISTATE pState);
267 PVQUEUE vpciAddQueue(VPCISTATE* pState, unsigned uSize, PFNVPCIQUEUECALLBACK pfnCallback, const char *pcszName);
270 DECLINLINE(int) vpciCsEnter(VPCISTATE *pState, int rcBusy)
273 STAM_PROFILE_START(&pState->CTXSUFF(StatCs), a);
274 int rc = PDMCritSectEnter(&pState->cs, rcBusy);
275 STAM_PROFILE_STOP(&pState->CTXSUFF(StatCs), a);
282 DECLINLINE(void) vpciCsLeave(VPCISTATE *pState)
285 PDMCritSectLeave(&pState->cs);
289 void vringSetNotification(PVPCISTATE pState, PVRING pVRing, bool fEnabled);
291 DECLINLINE(uint16_t) vringReadAvailIndex(PVPCISTATE pState, PVRING pVRing)
295 PDMDevHlpPhysRead(pState->CTX_SUFF(pDevIns),
301 bool vqueueSkip(PVPCISTATE pState, PVQUEUE pQueue);
302 bool vqueueGet(PVPCISTATE pState, PVQUEUE pQueue, PVQUEUEELEM pElem, bool fRemove = true);
303 void vqueuePut(PVPCISTATE pState, PVQUEUE pQueue, PVQUEUEELEM pElem, uint32_t uLen, uint32_t uReserved = 0);
304 void vqueueNotify(PVPCISTATE pState, PVQUEUE pQueue);
305 void vqueueSync(PVPCISTATE pState, PVQUEUE pQueue);
307 DECLINLINE(bool) vqueuePeek(PVPCISTATE pState, PVQUEUE pQueue, PVQUEUEELEM pElem)
309 return vqueueGet(pState, pQueue, pElem, /* fRemove */ false);
312 DECLINLINE(bool) vqueueIsReady(PVPCISTATE pState, PVQUEUE pQueue)
314 NOREF(pState);
318 DECLINLINE(bool) vqueueIsEmpty(PVPCISTATE pState, PVQUEUE pQueue)
320 return (vringReadAvailIndex(pState, &pQueue->VRing) == pQueue->uNextAvailIndex);