Lines Matching refs:pcache
35 struct vmu_cache *pcache; member
119 struct vmu_cache *pcache; in maple_vmu_read_block() local
126 pcache = card->parts[partition].pcache; in maple_vmu_read_block()
127 pcache->valid = 0; in maple_vmu_read_block()
130 if (!pcache->buffer) { in maple_vmu_read_block()
131 pcache->buffer = kmalloc(card->blocklen, GFP_KERNEL); in maple_vmu_read_block()
132 if (!pcache->buffer) { in maple_vmu_read_block()
210 memcpy(pcache->buffer + (card->blocklen/card->readcnt) * x, in maple_vmu_read_block()
213 pcache->block = num; in maple_vmu_read_block()
214 pcache->jiffies_atc = jiffies; in maple_vmu_read_block()
215 pcache->valid = 1; in maple_vmu_read_block()
358 struct vmu_cache *pcache; in vmu_flash_read() local
374 pcache = card->parts[partition].pcache; in vmu_flash_read()
380 if (pcache->valid && in vmu_flash_read()
381 time_before(jiffies, pcache->jiffies_atc + HZ) && in vmu_flash_read()
382 (pcache->block == vblock->num)) { in vmu_flash_read()
388 pcache->buffer + vblock->ofs, in vmu_flash_read()
393 memcpy(buf + index, pcache->buffer + in vmu_flash_read()
425 struct vmu_cache *pcache; in vmu_flash_write() local
471 pcache = card->parts[partition].pcache; in vmu_flash_write()
472 pcache->valid = 0; in vmu_flash_write()
507 struct vmu_cache *pcache; in vmu_queryblocks() local
553 pcache = kzalloc(sizeof(struct vmu_cache), GFP_KERNEL); in vmu_queryblocks()
554 if (!pcache) in vmu_queryblocks()
556 part_cur->pcache = pcache; in vmu_queryblocks()
582 kfree(((card->parts)[error]).pcache); in vmu_queryblocks()
583 ((card->parts)[error]).pcache = NULL; in vmu_queryblocks()