Lines Matching refs:blocks
41 static inline s32 nfhd_get_capacity(u32 major, u32 minor, u32 *blocks, in nfhd_get_capacity() argument
44 return nf_call(nfhd_id + NFHD_GET_CAPACITY, major, minor, blocks, in nfhd_get_capacity()
56 u32 blocks, bsize; member
85 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
103 blocks, bsize); in nfhd_init_one()
115 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
169 if (nfhd_get_capacity(i, 0, &blocks, &bsize)) in nfhd_init()
171 nfhd_init_one(i, blocks, bsize); in nfhd_init()