static inline void read_mem(IVState *s, uint64_t off, void *buf, size_t len)

{

    QTestState *qtest = global_qtest;



    global_qtest = s->qtest;

    qpci_memread(s->dev, s->mem_base + off, buf, len);

    global_qtest = qtest;

}

static inline void read_mem(IVState *s, uint64_t off, void *buf, size_t len)

{

    QTestState *qtest = global_qtest;



    global_qtest = s->qtest;

    qpci_memread(s->dev, s->mem_base + off, buf, len);

    global_qtest = qtest;

}

    qpci_memread(s->dev, s->mem_base + off, buf, len);
static inline void FUNC_0(IVState *VAR_0, uint64_t VAR_1, void *VAR_2, size_t VAR_3)

{

    QTestState *qtest = global_qtest;



    global_qtest = VAR_0->qtest;

    qpci_memread(VAR_0->dev, VAR_0->mem_base + VAR_1, VAR_2, VAR_3);

    global_qtest = qtest;

}

static inline void FUNC_0(IVState *VAR_0, uint64_t VAR_1, void *VAR_2, size_t VAR_3)
{ QTestState *qtest = global_qtest; global_qtest = VAR_0->qtest; qpci_memread(VAR_0->dev, VAR_0->mem_base + VAR_1, VAR_2, VAR_3); global_qtest = qtest; }