Lines Matching refs:pcache
33 struct vmu_cache *pcache; member
117 struct vmu_cache *pcache; in maple_vmu_read_block() local
124 pcache = card->parts[partition].pcache; in maple_vmu_read_block()
125 pcache->valid = 0; in maple_vmu_read_block()
128 if (!pcache->buffer) { in maple_vmu_read_block()
129 pcache->buffer = kmalloc(card->blocklen, GFP_KERNEL); in maple_vmu_read_block()
130 if (!pcache->buffer) { in maple_vmu_read_block()
208 memcpy(pcache->buffer + (card->blocklen/card->readcnt) * x, in maple_vmu_read_block()
211 pcache->block = num; in maple_vmu_read_block()
212 pcache->jiffies_atc = jiffies; in maple_vmu_read_block()
213 pcache->valid = 1; in maple_vmu_read_block()
356 struct vmu_cache *pcache; in vmu_flash_read() local
372 pcache = card->parts[partition].pcache; in vmu_flash_read()
378 if (pcache->valid && in vmu_flash_read()
379 time_before(jiffies, pcache->jiffies_atc + HZ) && in vmu_flash_read()
380 (pcache->block == vblock->num)) { in vmu_flash_read()
386 pcache->buffer + vblock->ofs, in vmu_flash_read()
391 memcpy(buf + index, pcache->buffer + in vmu_flash_read()
423 struct vmu_cache *pcache; in vmu_flash_write() local
469 pcache = card->parts[partition].pcache; in vmu_flash_write()
470 pcache->valid = 0; in vmu_flash_write()
505 struct vmu_cache *pcache; in vmu_queryblocks() local
551 pcache = kzalloc(sizeof(struct vmu_cache), GFP_KERNEL); in vmu_queryblocks()
552 if (!pcache) in vmu_queryblocks()
554 part_cur->pcache = pcache; in vmu_queryblocks()
580 kfree(((card->parts)[error]).pcache); in vmu_queryblocks()
581 ((card->parts)[error]).pcache = NULL; in vmu_queryblocks()