Lines Matching full:blocks
40 static inline s32 nfhd_get_capacity(u32 major, u32 minor, u32 *blocks, in nfhd_get_capacity() argument
44 virt_to_phys(blocks), virt_to_phys(blocksize)); in nfhd_get_capacity()
55 u32 blocks, bsize; member
84 geo->cylinders = dev->blocks >> (6 - dev->bshift); in nfhd_getgeo()
97 static int __init nfhd_init_one(int id, u32 blocks, u32 bsize) in nfhd_init_one() argument
107 pr_info("nfhd%u: found device with %u blocks (%u bytes)\n", dev_id, in nfhd_init_one()
108 blocks, bsize); in nfhd_init_one()
120 dev->blocks = blocks; in nfhd_init_one()
136 set_capacity(dev->disk, (sector_t)blocks * (bsize / 512)); in nfhd_init_one()
155 u32 blocks, bsize; in nfhd_init() local
173 if (nfhd_get_capacity(i, 0, &blocks, &bsize)) in nfhd_init()
175 nfhd_init_one(i, blocks, bsize); in nfhd_init()