Lines Matching refs:partition

25 	int partition;  member
44 int partition; member
57 struct mtd_info *mtd, int partition) in ofs_to_block() argument
69 if (src_ofs >= card->parts[partition].numblocks * card->blocklen) in ofs_to_block()
73 if (num > card->parts[partition].numblocks) in ofs_to_block()
115 int partition, error = 0, x, wait; in maple_vmu_read_block() local
122 partition = mpart->partition; in maple_vmu_read_block()
124 pcache = card->parts[partition].pcache; in maple_vmu_read_block()
145 sendbuf = cpu_to_be32(partition << 24 | x << 16 | num); in maple_vmu_read_block()
232 int partition, error, locking, x, phaselen, wait; in maple_vmu_write_block() local
237 partition = mpart->partition; in maple_vmu_write_block()
248 sendbuf[0] = cpu_to_be32(partition << 24 | x << 16 | num); in maple_vmu_write_block()
310 int partition, error; in vmu_flash_read_char() local
314 partition = mpart->partition; in vmu_flash_read_char()
325 vblock = ofs_to_block(ofs, mtd, partition); in vmu_flash_read_char()
358 int index = 0, retval, partition, leftover, numblocks; in vmu_flash_read() local
363 partition = mpart->partition; in vmu_flash_read()
366 numblocks = card->parts[partition].numblocks; in vmu_flash_read()
372 pcache = card->parts[partition].pcache; in vmu_flash_read()
374 vblock = ofs_to_block(from + index, mtd, partition); in vmu_flash_read()
422 int index = 0, partition, error = 0, numblocks; in vmu_flash_write() local
429 partition = mpart->partition; in vmu_flash_write()
432 numblocks = card->parts[partition].numblocks; in vmu_flash_write()
440 vblock = ofs_to_block(to, mtd, partition); in vmu_flash_write()
469 pcache = card->parts[partition].pcache; in vmu_flash_write()
518 "blocks with a root block at %d\n", card->partition, in vmu_queryblocks()
521 part_cur = &card->parts[card->partition]; in vmu_queryblocks()
530 mdev->port, mdev->unit, card->partition); in vmu_queryblocks()
531 mtd_cur = &card->mtd[card->partition]; in vmu_queryblocks()
547 mpart->partition = card->partition; in vmu_queryblocks()
567 if (++card->partition < card->partitions) { in vmu_queryblocks()
568 partnum = cpu_to_be32(card->partition << 24); in vmu_queryblocks()
579 for (error = 0; error <= card->partition; error++) { in vmu_queryblocks()
585 for (error = 0; error <= card->partition; error++) { in vmu_queryblocks()
624 card->partition = 0; in vmu_connect()