static inline int put_dwords ( OHCIState * ohci , dma_addr_t addr , uint32_t * buf , int num ) {
 int i ;
 addr += ohci -> localmem_base ;
 for ( i = 0 ;
 i < num ;
 i ++ , buf ++ , addr += sizeof ( * buf ) ) {
 uint32_t tmp = cpu_to_le32 ( * buf ) ;
 if ( dma_memory_write ( ohci -> as , addr , & tmp , sizeof ( tmp ) ) ) {
 return - 1 ;
 }
 }
 return 0 ;
 }
static inline int put_dwords ( OHCIState * ohci , dma_addr_t addr , uint32_t * buf , int num ) {
 int i ;
 addr += ohci -> localmem_base ;
 for ( i = 0 ;
 i < num ;
 i ++ , buf ++ , addr += sizeof ( * buf ) ) {
 uint32_t tmp = cpu_to_le32 ( * buf ) ;
 if ( dma_memory_write ( ohci -> as , addr , & tmp , sizeof ( tmp ) ) ) {
 return - 1 ;
 }
 }
 return 0 ;
 }