int spapr_tce_dma_zero(VIOsPAPRDevice *dev, uint64_t taddr, uint32_t size)

{

    /* FIXME: allocating a temp buffer is nasty, but just stepping

     * through writing zeroes is awkward.  This will do for now. */

    uint8_t zeroes[size];



#ifdef DEBUG_TCE

    fprintf(stderr, "spapr_tce_dma_zero taddr=0x%llx size=0x%x\n",

            (unsigned long long)taddr, size);

#endif



    memset(zeroes, 0, size);

    return spapr_tce_dma_write(dev, taddr, zeroes, size);

}

int spapr_tce_dma_zero(VIOsPAPRDevice *dev, uint64_t taddr, uint32_t size)

{

    



    uint8_t zeroes[size];



#ifdef DEBUG_TCE

    fprintf(stderr, "spapr_tce_dma_zero taddr=0x%llx size=0x%x\n",

            (unsigned long long)taddr, size);

#endif



    memset(zeroes, 0, size);

    return spapr_tce_dma_write(dev, taddr, zeroes, size);

}

#ifdef DEBUG_TCE #endif #ifdef DEBUG_TCE #endif #ifdef DEBUG_TCE             (unsigned long long)taddr, size); #endif #ifdef DEBUG_TCE #endif #ifdef DEBUG_TCE #endif int spapr_tce_dma_zero(VIOsPAPRDevice *dev, uint64_t taddr, uint32_t size)     uint8_t zeroes[size]; #ifdef DEBUG_TCE     fprintf(stderr, "spapr_tce_dma_zero taddr=0x%llx size=0x%x\n",             (unsigned long long)taddr, size); #endif     memset(zeroes, 0, size);     return spapr_tce_dma_write(dev, taddr, zeroes, size); #ifdef DEBUG_TCE             (unsigned long long)taddr, size); #endif #ifdef DEBUG_TCE #endif #ifdef DEBUG_TCE #endif
int FUNC_0(VIOsPAPRDevice *VAR_0, uint64_t VAR_1, uint32_t VAR_2)

{

    



    uint8_t zeroes[VAR_2];



#ifdef DEBUG_TCE

    fprintf(stderr, "FUNC_0 VAR_1=0x%llx VAR_2=0x%x\n",

            (unsigned long long)VAR_1, VAR_2);

#endif



    memset(zeroes, 0, VAR_2);

    return spapr_tce_dma_write(VAR_0, VAR_1, zeroes, VAR_2);

}

int FUNC_0(VIOsPAPRDevice *VAR_0, uint64_t VAR_1, uint32_t VAR_2)
{ uint8_t zeroes[VAR_2]; #ifdef DEBUG_TCE
fprintf(stderr, "FUNC_0 VAR_1=0x%llx VAR_2=0x%x\n",
(unsigned long long)VAR_1, VAR_2); #endif
memset(zeroes, 0, VAR_2); return spapr_tce_dma_write(VAR_0, VAR_1, zeroes, VAR_2); }