Intel 80310 I/O Processor Chipset AAU Coding Techniques
Intel 80310 I/O Processor Chipset AAU Coding Techniques
Intel 80310 I/O Processor Chipset AAU Coding Techniques
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
562 spin_unlock_irqrestore(&aau->hold_lock, flags);563 }564565 return 0;566 }567568 /*=======================================================================*/569 /* Procedure: aau_free() */570 /* */571 /* Description: This function frees the <strong>AAU</strong> from usage. */572 /* */573 /* Parameters: aau -- <strong>AAU</strong> device context */574 /* */575 /* Returns: int: success -- OK */576 /* */577 /* Notes/Assumptions: */578 /* */579 /* History: Dave Jiang 07/19/01 Initial Creation */580 /*=======================================================================*/581 void aau_free(u32 aau_context)582 {583 iop310_aau_t *aau = (iop310_aau_t *) aau_context;584585 atomic_dec(&aau->ref_count);586587 /* if ref count is 1 or less, you are the last owner */588 if(atomic_read(&aau->ref_count) last_aau)