Lines Matching refs:count
97 size_t count) in read_lba() argument
101 if (!buffer || lba + count / 512 > last_lba(state->bdev)) in read_lba()
104 while (count) { in read_lba()
110 if (copied > count) in read_lba()
111 copied = count; in read_lba()
116 count -= copied; in read_lba()
132 size_t count = sizeof(struct pvd); in alloc_pvd() local
135 p = kmalloc(count, GFP_KERNEL); in alloc_pvd()
139 if (read_lba(state, lba, (u8 *) p, count) < count) { in alloc_pvd()
157 size_t count = sizeof(struct lvname) * LVM_MAXLVS; in alloc_lvn() local
160 p = kmalloc(count, GFP_KERNEL); in alloc_lvn()
164 if (read_lba(state, lba, (u8 *) p, count) < count) { in alloc_lvn()