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 = NULL; 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 == NULL); 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] = NULL; 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 = NULL; 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 = NULL; in rtl_cache_depot_dequeue()
714 return (mag); in rtl_cache_depot_dequeue()
1005 rtl_cache_magazine_type * mag; in rtl_cache_deactivate() local
1011 if ((mag = cache->m_cpu_curr) != NULL) 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()
1017 if ((mag = cache->m_cpu_prev) != NULL) in rtl_cache_deactivate()
1020 rtl_cache_magazine_clear (cache, mag); in rtl_cache_deactivate()
1021 rtl_cache_free (mag_cache, mag); in rtl_cache_deactivate()
1025 while ((mag = rtl_cache_depot_dequeue(&(cache->m_depot_full))) != NULL) in rtl_cache_deactivate()
1027 rtl_cache_magazine_clear (cache, mag); in rtl_cache_deactivate()
1028 rtl_cache_free (mag_cache, mag); in rtl_cache_deactivate()
1030 while ((mag = rtl_cache_depot_dequeue(&(cache->m_depot_empty))) != NULL) in rtl_cache_deactivate()
1032 rtl_cache_magazine_clear (cache, mag); in rtl_cache_deactivate()
1033 rtl_cache_free (mag_cache, mag); in rtl_cache_deactivate()
1567 rtl_cache_magazine_type * mag = rtl_cache_depot_dequeue (depot); in rtl_cache_depot_wsupdate() local
1568 if (mag != NULL) in rtl_cache_depot_wsupdate()
1571 rtl_cache_magazine_clear (cache, mag); in rtl_cache_depot_wsupdate()
1572 rtl_cache_free (cache->m_magazine_cache, mag); in rtl_cache_depot_wsupdate()