bm_fo 1257 drivers/block/drbd/drbd_bitmap.c static unsigned long __bm_find_next(struct drbd_device *device, unsigned long bm_fo, bm_fo 1266 drivers/block/drbd/drbd_bitmap.c if (bm_fo > b->bm_bits) { bm_fo 1267 drivers/block/drbd/drbd_bitmap.c drbd_err(device, "bm_fo=%lu bm_bits=%lu\n", bm_fo, b->bm_bits); bm_fo 1268 drivers/block/drbd/drbd_bitmap.c bm_fo = DRBD_END_OF_BITMAP; bm_fo 1270 drivers/block/drbd/drbd_bitmap.c while (bm_fo < b->bm_bits) { bm_fo 1272 drivers/block/drbd/drbd_bitmap.c bit_offset = bm_fo & ~BITS_PER_PAGE_MASK; bm_fo 1273 drivers/block/drbd/drbd_bitmap.c p_addr = __bm_map_pidx(b, bm_bit_to_page_idx(b, bm_fo)); bm_fo 1277 drivers/block/drbd/drbd_bitmap.c PAGE_SIZE*8, bm_fo & BITS_PER_PAGE_MASK); bm_fo 1280 drivers/block/drbd/drbd_bitmap.c PAGE_SIZE*8, bm_fo & BITS_PER_PAGE_MASK); bm_fo 1284 drivers/block/drbd/drbd_bitmap.c bm_fo = bit_offset + i; bm_fo 1285 drivers/block/drbd/drbd_bitmap.c if (bm_fo >= b->bm_bits) bm_fo 1289 drivers/block/drbd/drbd_bitmap.c bm_fo = bit_offset + PAGE_SIZE*8; bm_fo 1291 drivers/block/drbd/drbd_bitmap.c bm_fo = DRBD_END_OF_BITMAP; bm_fo 1294 drivers/block/drbd/drbd_bitmap.c return bm_fo; bm_fo 1298 drivers/block/drbd/drbd_bitmap.c unsigned long bm_fo, const int find_zero_bit) bm_fo 1312 drivers/block/drbd/drbd_bitmap.c i = __bm_find_next(device, bm_fo, find_zero_bit); bm_fo 1318 drivers/block/drbd/drbd_bitmap.c unsigned long drbd_bm_find_next(struct drbd_device *device, unsigned long bm_fo) bm_fo 1320 drivers/block/drbd/drbd_bitmap.c return bm_find_next(device, bm_fo, 0); bm_fo 1325 drivers/block/drbd/drbd_bitmap.c unsigned long drbd_bm_find_next_zero(struct drbd_device *device, unsigned long bm_fo) bm_fo 1327 drivers/block/drbd/drbd_bitmap.c return bm_find_next(device, bm_fo, 1); bm_fo 1333 drivers/block/drbd/drbd_bitmap.c unsigned long _drbd_bm_find_next(struct drbd_device *device, unsigned long bm_fo) bm_fo 1336 drivers/block/drbd/drbd_bitmap.c return __bm_find_next(device, bm_fo, 0); bm_fo 1339 drivers/block/drbd/drbd_bitmap.c unsigned long _drbd_bm_find_next_zero(struct drbd_device *device, unsigned long bm_fo) bm_fo 1342 drivers/block/drbd/drbd_bitmap.c return __bm_find_next(device, bm_fo, 1); bm_fo 1373 drivers/block/drbd/drbd_int.h extern unsigned long drbd_bm_find_next(struct drbd_device *device, unsigned long bm_fo); bm_fo 1375 drivers/block/drbd/drbd_int.h extern unsigned long _drbd_bm_find_next(struct drbd_device *device, unsigned long bm_fo); bm_fo 1376 drivers/block/drbd/drbd_int.h extern unsigned long _drbd_bm_find_next_zero(struct drbd_device *device, unsigned long bm_fo);