Home
last modified time | relevance | path

Searched refs:cache (Results 1 – 25 of 122) sorted by relevance

12345

/plan9/sys/src/cmd/page/
H A Dcache.c21 static Cached cache[5]; variable
43 for(i=0; i<nelem(cache); i++){ in cacheflush()
44 c = &cache[i]; in cacheflush()
64 for(i=0; i<nelem(cache); i++){ in _cachedpage()
65 c = &cache[i]; in _cachedpage()
74 if(i >= nelem(cache)) in _cachedpage()
75 i = nelem(cache)-1; in _cachedpage()
76 c = &cache[i]; in _cachedpage()
135 memmove(cache+1, cache, (c-cache)*sizeof cache[0]); in _cachedpage()
136 cache[0] = old; in _cachedpage()
[all …]
/plan9/sys/src/libcontrol/
H A Dcache.c14 CCache **cache; member
27 if(c->cache[i]!=nil && strcmp(c->cache[i]->name, name)==0){ in getcacheitem()
28 c->cache[i]->ref++; in getcacheitem()
29 return c->cache[i]; in getcacheitem()
42 if(c->cache[i] == nil){ in namecacheitem()
46 if(strcmp(c->cache[i]->name, name) == 0){ in namecacheitem()
56 c->cache[free] = cc; in namecacheitem()
59 c->cache = ctlrealloc(c->cache, (c->ncache+1)*sizeof(CCache*)); in namecacheitem()
60 c->cache[c->ncache++] = cc; in namecacheitem()
80 c->cache[cc->index] = nil; in freecacheitem()
/plan9/sys/src/libmach/
H A Daccess.c173 } cache; in spread() local
175 if(s->cache){ in spread()
176 base = off&~(sizeof cache.a-1); in spread()
177 if(cache.s != s || cache.off != base){ in spread()
178 cache.off = ~0; in spread()
180 && readn(s->fd, cache.a, sizeof cache.a) == sizeof cache.a){ in spread()
181 cache.s = s; in spread()
182 cache.off = base; in spread()
185 if(cache.s == s && cache.off == base){ in spread()
186 off &= sizeof cache.a-1; in spread()
[all …]
/plan9/sys/src/9/port/
H A Dcache.c22 Page *cache; member
59 static Cache cache; variable
110 cache.head = xalloc(sizeof(Mntcache)*NFILE); in cinit()
111 m = cache.head; in cinit()
127 cache.tail = m; in cinit()
128 cache.tail->next = 0; in cinit()
129 cache.head->prev = 0; in cinit()
157 e->bid, e->start, e->len, e->cache); in cprint()
165 if(e->cache->daddr != e->bid) in cpage()
194 cache.head = m->next; in ctail()
[all …]
/plan9/sys/src/9/teg2/
H A Dcaches-v7.c85 int cache; in prcachecfg() local
88 for (cache = 1; cache < 8 && cachel[cache].type; cache++) { in prcachecfg()
89 mc = &cachel[cache]; in prcachecfg()
102 if (cache == 1) in prcachecfg()
H A Dwords6 the l2 cache is a non-architectural bag nailed on the side.
21 ☑ l2 cache (l2cache.pl310.pdf, errata),
40 l2 cache
44 arm7 cache, gpio, except. vects
/plan9/sys/src/libndb/
H A Dndbcache.c81 for(l = &db->cache; *l != nil; l = &(*l)->next){ in _ndbcachesearch()
91 c->next = db->cache; in _ndbcachesearch()
92 db->cache = c; in _ndbcachesearch()
117 c->next = db->cache; in _ndbcacheadd()
118 db->cache = c; in _ndbcacheadd()
125 for(l = &db->cache; (*l)->next; l = &(*l)->next) in _ndbcacheadd()
140 while(db->cache != nil){ in _ndbcacheflush()
141 c = db->cache; in _ndbcacheflush()
142 db->cache = c->next; in _ndbcacheflush()
/plan9/sys/src/libdraw/
H A Dmkfont.c22 font->cache = malloc(font->ncache * sizeof(font->cache[0])); in mkfont()
24 if(font->name==0 || font->cache==0 || font->subf==0){ in mkfont()
27 free(font->cache); in mkfont()
33 memset(font->cache, 0, font->ncache*sizeof(font->cache[0])); in mkfont()
H A Dbuildfont.c32 fnt->cache = malloc(fnt->ncache * sizeof(fnt->cache[0])); in buildfont()
34 if(fnt->name==0 || fnt->cache==0 || fnt->subf==0){ in buildfont()
37 free(fnt->cache); in buildfont()
56 memset(fnt->cache, 0, fnt->ncache*sizeof(fnt->cache[0])); in buildfont()
137 free(f->cache); in freefont()
H A Dfont.c45 c = &f->cache[sh]; in cachechars()
60 tc = &f->cache[th]; in cachechars()
90 c = &f->cache[h]; /* may have reallocated f->cache */ in cachechars()
117 c = f->cache; in agefont()
308 BPSHORT(b+9, c-f->cache); in loadchar()
394 i = malloc(ncache*sizeof f->cache[0]); in fontresize()
397 free(f->cache); in fontresize()
399 f->cache = i; in fontresize()
404 memset(f->cache, 0, f->ncache*sizeof f->cache[0]); in fontresize()
/plan9/sys/src/9/kw/
H A Dflashkw.c124 static Cache cache; variable
292 if (cache.page == nil) { in idchip()
293 cache.pgsize = r->pagesize; in idchip()
294 cache.page = smalloc(r->pagesize); in idchip()
365 cache.pageno = Nopage; in erasezone()
393 assert(cache.pgsize == r->pagesize); in flcachepage()
394 cache.flif = f; in flcachepage()
395 cache.pageno = page; in flcachepage()
397 if (buf != (uchar *)cache.page) in flcachepage()
398 memmove(cache.page, buf, cache.pgsize); in flcachepage()
[all …]
H A Dplug.words8 unified l2 PIPT cache 256K: 4-way, 2048 sets, 32-byte lines
12 l2 cache. there is no hardware cache coherence, thus the l1 caches
20 be aware that cache operations act on cache lines (of CACHELINESZ
21 bytes) as atomic units, so if you invalidate one word of a cache line,
22 you invalidate the entire cache line, whether it's been written back
26 parts start in a new cache line.
/plan9/sys/src/games/mp3dec/
H A Dbit.c91 bitptr->cache = 0; in mad_bit_init()
130 bitptr->cache = *bitptr->byte; in mad_bit_skip()
142 bitptr->cache = *bitptr->byte; in mad_bit_read()
145 value = (bitptr->cache & ((1 << bitptr->left) - 1)) >> in mad_bit_read()
154 value = bitptr->cache & ((1 << bitptr->left) - 1); in mad_bit_read()
168 bitptr->cache = *bitptr->byte; in mad_bit_read()
170 value = (value << len) | (bitptr->cache >> (CHAR_BIT - len)); in mad_bit_read()
/plan9/sys/src/cmd/tapefs/
H A Dzipfs.c111 static uchar *cache = nil; in doread() local
133 if (cache) in doread()
134 free(cache); in doread()
135 cache = emalloc(r->ndata); in doread()
137 bs.pos = cache; in doread()
138 bs.limit = cache+r->ndata; in doread()
142 if (blockcrc(crctab, crc, cache, r->ndata) != zh.crc) in doread()
147 if (cache[i] == '\r' && cache[i +1] == '\n') in doread()
148 cache[i] = ' '; in doread()
151 memcpy(buf, cache+off, cnt); in doread()
/plan9/sys/src/9/rb/notes/
H A Derratum485 for the data cache refills and store data. The following describes
8 * A data cache miss, due to either a load or a store, causing fill
11 into the cache
23 the cache. In the sequence above, the stores may be either integer
28 using only floating point store instructions. In this case, the cache
33 * Run the data cache in write-through mode.
/plan9/sys/src/cmd/
H A Ddu.c269 Dir* cache; member
273 Cache cache[NCACHE]; variable
282 c = &cache[dir->qid.path&(NCACHE-1)]; in seen()
283 dp = c->cache; in seen()
294 c->cache = realloc(c->cache, c->max*sizeof(Dir)); in seen()
295 if(c->cache == nil) in seen()
298 c->cache[c->n++] = *dir; in seen()
/plan9/sys/src/cmd/qi/
H A Dtiming8 can fill queue from cache in one clock cycle
9 loads from requested address to end of cache block
12 includes ins. cache access cycles
/plan9/sys/src/cmd/wikifs/
H A Dtohtml.c40 } cache[2*Ntemplate]; variable
59 cache[i].s = s_copy(""); in cacheinit()
77 rlock(&cache[type]); in gettemplate()
78 if(0 && cache[type].t+Tcache >= time(0)){ in gettemplate()
79 s = s_incref(cache[type].s); in gettemplate()
80 runlock(&cache[type]); in gettemplate()
83 runlock(&cache[type]); in gettemplate()
86 wlock(&cache[type]); in gettemplate()
87 if(0 && cache[type].t+Tcache >= time(0) || (d = wdirstat(name[type])) == nil) in gettemplate()
90 if(0 && d->qid.vers == cache[type].qid.vers && d->qid.path == cache[type].qid.path){ in gettemplate()
[all …]
/plan9/sys/src/9/rb/
H A Dwords4 big-endian, 32-bit only, 8- or 9-stage pipeline; 8kb cache
11 l1 i-cache 4 ways, 512 sets, 32 bytes per line = 64K
12 l1 d-cache 4 ways, 256 sets, 32 bytes per line = 32k
14 config2: 0x80000000 (no l2 cache)
/plan9/sys/src/cmd/gs/src/
H A Dgdevrinkj.c1000 rinkj_color_cache_entry *cache = NULL; in rinkj_write_image_data() local
1010cache = (rinkj_color_cache_entry *)gs_alloc_bytes(pdev->memory, RINKJ_CCACHE_SIZE * sizeof(rinkj_c… in rinkj_write_image_data()
1011 if (cache == NULL) in rinkj_write_image_data()
1015 cache[0].key = 1; in rinkj_write_image_data()
1017 cache[i].key = 0; in rinkj_write_image_data()
1054 if (cache[hash].key != color) { in rinkj_write_image_data()
1062 cache[hash].key = color; in rinkj_write_image_data()
1063 cache[hash].value = ((bits32 *)vbuf)[0]; in rinkj_write_image_data()
1065 ((bits32 *)vbuf)[0] = cache[hash].value; in rinkj_write_image_data()
1079 if (cache[hash].key != color) { in rinkj_write_image_data()
[all …]
/plan9/sys/src/cmd/fossil/
H A Dfs.c50 fs->cache = cacheAlloc(disk, z, ncache, mode); in fsOpen()
52 fs->arch = archInit(fs->cache, disk, fs, z); in fsOpen()
55 b = cacheLocal(fs->cache, PartSuper, 0, mode); in fsOpen()
78 b = cacheLocalData(fs->cache, super.active, BtDir, RootTag, in fsOpen()
94 bs = cacheLocal(fs->cache, PartSuper, 0, OReadWrite); in fsOpen()
151 cacheFree(fs->cache); in fsClose()
387 if((bs = superGet(fs->cache, &super)) == nil){ in fsEpochLow()
419 b = cacheGlobal(fs->cache, r->score, BtDir, RootTag, OReadOnly); in bumpEpoch()
442 if((bs = superGet(fs->cache, &super)) == nil) in bumpEpoch()
489 if((b = superGet(fs->cache, &super)) == nil) in saveQid()
[all …]
/plan9/sys/src/cmd/gs/jpeg/
H A Dconfigure27 cache_file=./config.cache
93 -cache-file | --cache-file | --cache-fil | --cache-fi \
94 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
96 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
97 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
148 --cache-file=FILE cache test results in FILE
1469 # As a last resort, use the slow shell script. We don't cache a
/plan9/sys/src/cmd/ip/
H A Dhttpfile.c74 Blocklist cache; variable
118 evictblock(Blocklist *cache) in evictblock() argument
122 if(cache->first == nil) in evictblock()
126 for(l=&cache->first; *l; l=&(*l)->link) in evictblock()
133 cache->end = oldest; in evictblock()
452 if((b = findblock(&cache, r->ifcall.offset)) != nil){ in fileread()
490 evictblock(&cache); in finishthread()
491 addblock(&cache, b); in finishthread()
/plan9/sys/src/ape/cmd/patch/
H A Dconfigure19 cache_file=./config.cache
85 -cache-file | --cache-file | --cache-fil | --cache-fi \
86 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
88 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
89 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
140 --cache-file=FILE cache test results in FILE
2046 echo "updating cache $cache_file"
2049 echo "not updating unwritable cache $cache_file"
/plan9/sys/src/9/pc/
H A Dsdmylex.c214 Ccb** cache; /* last completed Ccb */ member
308 if((ccb = ctlr->cache[target]) != nil){ in mylex24rio()
309 ctlr->cache[target] = nil; in mylex24rio()
456 if(ctlr->cache[target]) in mylex24rio()
457 ccbfree(ctlr, ctlr->cache[target]); in mylex24rio()
458 ctlr->cache[target] = (Ccb*)ccb; in mylex24rio()
553 if((ccb = ctlr->cache[target]) != nil){ in mylex32rio()
554 ctlr->cache[target] = nil; in mylex32rio()
674 if(ctlr->cache[target]) in mylex32rio()
675 ccbfree(ctlr, ctlr->cache[target]); in mylex32rio()
[all …]

12345