Lines Matching refs:cache
36 int pt_msec_cache_init(struct pt_msec_cache *cache) in pt_msec_cache_init() argument
38 if (!cache) in pt_msec_cache_init()
41 memset(cache, 0, sizeof(*cache)); in pt_msec_cache_init()
46 void pt_msec_cache_fini(struct pt_msec_cache *cache) in pt_msec_cache_fini() argument
48 if (!cache) in pt_msec_cache_fini()
51 (void) pt_msec_cache_invalidate(cache); in pt_msec_cache_fini()
52 pt_msec_fini(&cache->msec); in pt_msec_cache_fini()
55 int pt_msec_cache_invalidate(struct pt_msec_cache *cache) in pt_msec_cache_invalidate() argument
60 if (!cache) in pt_msec_cache_invalidate()
63 section = pt_msec_section(&cache->msec); in pt_msec_cache_invalidate()
71 cache->msec.section = NULL; in pt_msec_cache_invalidate()
76 int pt_msec_cache_read(struct pt_msec_cache *cache, in pt_msec_cache_read() argument
83 if (!cache || !pmsec) in pt_msec_cache_read()
86 msec = &cache->msec; in pt_msec_cache_read()
87 isid = cache->isid; in pt_msec_cache_read()
99 int pt_msec_cache_fill(struct pt_msec_cache *cache, in pt_msec_cache_fill() argument
108 if (!cache || !pmsec) in pt_msec_cache_fill()
111 errcode = pt_msec_cache_invalidate(cache); in pt_msec_cache_fill()
115 msec = &cache->msec; in pt_msec_cache_fill()
133 cache->isid = isid; in pt_msec_cache_fill()