Lines Matching refs:cdesc
58 union cdesc { union
79 static union cdesc *cheader;
80 static union cdesc *cdesc; variable
93 #define CDATA(desc) (cdata + ((desc) - cdesc) * CSIZE)
141 sharedSize = sizeof(union cdesc) + in initcache()
142 sizeof(union cdesc) * cachebufs + in initcache()
156 cdesc = (union cdesc *) (((char *) shareBuffer) + in initcache()
157 sizeof(union cdesc)); in initcache()
158 cdata = ((char *) shareBuffer) + sizeof(union cdesc) + in initcache()
159 sizeof(union cdesc) * cachebufs; in initcache()
172 size_t minTime = cdesc[0].cd_time; in findlru()
176 if (cdesc[i].cd_time < minTime) { in findlru()
178 minTime = cdesc[i].cd_time; in findlru()
301 union cdesc *curr = &cdesc[(i + idx) % cachebufs]; in bread()
396 if (cdesc[idx].cd_owner) in bread()
398 "not happen(2).\n", cdesc[idx].cd_owner, in bread()
400 cdesc[idx].cd_owner = getpid(); in bread()
402 cdesc[idx].cd_time = cheader->cd_count++; in bread()
403 cdesc[idx].cd_blkstart = blockBlkNo; in bread()
404 cdesc[idx].cd_blkend = 0; in bread()
405 cdesc[idx].cd_blocksRead = 0; in bread()
414 CDATA(&cdesc[idx]), rsize); in bread()
428 if (cdesc[idx].cd_owner != getpid()) in bread()
431 getpid(), cdesc[idx].cd_owner); in bread()
432 cdesc[idx].cd_owner = 0; in bread()
438 cdesc[idx].cd_blkend = blockBlkNo + rsize / dev_bsize; in bread()
445 if (cdesc[idx].cd_owner != getpid()) in bread()
448 getpid(), cdesc[idx].cd_owner); in bread()
449 cdesc[idx].cd_owner = 0; in bread()