Searched refs:rtsp (Results 1 – 1 of 1) sorted by relevance
583 static bool (*rts_acquire)(struct refscale_typesafe *rtsp, unsigned int *start);584 static bool (*rts_release)(struct refscale_typesafe *rtsp, unsigned int start);587 static bool typesafe_ref_acquire(struct refscale_typesafe *rtsp, unsigned int *start) in typesafe_ref_acquire() argument589 return atomic_inc_not_zero(&rtsp->rts_refctr); in typesafe_ref_acquire()593 static bool typesafe_ref_release(struct refscale_typesafe *rtsp, unsigned int start) in typesafe_ref_release() argument595 if (!atomic_dec_return(&rtsp->rts_refctr)) { in typesafe_ref_release()596 WRITE_ONCE(rtsp->a, rtsp->a + 1); in typesafe_ref_release()597 kmem_cache_free(typesafe_kmem_cachep, rtsp); in typesafe_ref_release()603 static bool typesafe_lock_acquire(struct refscale_typesafe *rtsp, unsigned int *start) in typesafe_lock_acquire() argument605 spin_lock(&rtsp->rts_lock); in typesafe_lock_acquire()[all …]