Lines Matching refs:mag
603 rtl_cache_magazine_type * mag = (rtl_cache_magazine_type*)(obj); in rtl_cache_magazine_constructor() local
608 mag->m_mag_next = 0; in rtl_cache_magazine_constructor()
609 mag->m_mag_size = RTL_CACHE_MAGAZINE_SIZE; in rtl_cache_magazine_constructor()
610 mag->m_mag_used = 0; in rtl_cache_magazine_constructor()
624 rtl_cache_magazine_type * mag = (rtl_cache_magazine_type*)(obj); in rtl_cache_magazine_destructor()
627 OSL_ASSERT(mag->m_mag_next == 0); in rtl_cache_magazine_destructor()
630 OSL_ASSERT(mag->m_mag_used == 0); in rtl_cache_magazine_destructor()
642 rtl_cache_magazine_type * mag in rtl_cache_magazine_clear() argument
645 for (; mag->m_mag_used > 0; --mag->m_mag_used) in rtl_cache_magazine_clear()
647 void * obj = mag->m_objects[mag->m_mag_used - 1]; in rtl_cache_magazine_clear()
648 mag->m_objects[mag->m_mag_used - 1] = 0; in rtl_cache_magazine_clear()
675 rtl_cache_magazine_type * mag in rtl_cache_depot_enqueue() argument
679 mag->m_mag_next = depot->m_mag_next; in rtl_cache_depot_enqueue()
680 depot->m_mag_next = mag; in rtl_cache_depot_enqueue()
700 rtl_cache_magazine_type * mag = 0; in rtl_cache_depot_dequeue() local
706 mag = depot->m_mag_next; in rtl_cache_depot_dequeue()
707 depot->m_mag_next = mag->m_mag_next; in rtl_cache_depot_dequeue()
708 mag->m_mag_next = 0; in rtl_cache_depot_dequeue()
714 return (mag); in rtl_cache_depot_dequeue()
999 rtl_cache_magazine_type * mag; in rtl_cache_deactivate() local
1005 if ((mag = cache->m_cpu_curr) != 0) in rtl_cache_deactivate()
1008 rtl_cache_magazine_clear (cache, mag); in rtl_cache_deactivate()
1009 rtl_cache_free (mag_cache, mag); in rtl_cache_deactivate()
1011 if ((mag = cache->m_cpu_prev) != 0) in rtl_cache_deactivate()
1014 rtl_cache_magazine_clear (cache, mag); in rtl_cache_deactivate()
1015 rtl_cache_free (mag_cache, mag); in rtl_cache_deactivate()
1019 while ((mag = rtl_cache_depot_dequeue(&(cache->m_depot_full))) != 0) in rtl_cache_deactivate()
1021 rtl_cache_magazine_clear (cache, mag); in rtl_cache_deactivate()
1022 rtl_cache_free (mag_cache, mag); in rtl_cache_deactivate()
1024 while ((mag = rtl_cache_depot_dequeue(&(cache->m_depot_empty))) != 0) in rtl_cache_deactivate()
1026 rtl_cache_magazine_clear (cache, mag); in rtl_cache_deactivate()
1027 rtl_cache_free (mag_cache, mag); in rtl_cache_deactivate()
1561 rtl_cache_magazine_type * mag = rtl_cache_depot_dequeue (depot); in rtl_cache_depot_wsupdate() local
1562 if (mag != 0) in rtl_cache_depot_wsupdate()
1565 rtl_cache_magazine_clear (cache, mag); in rtl_cache_depot_wsupdate()
1566 rtl_cache_free (cache->m_magazine_cache, mag); in rtl_cache_depot_wsupdate()