Home
last modified time | relevance | path

Searched refs:BM_BLOCK_SHIFT (Results 1 – 8 of 8) sorted by relevance

/linux-6.1.9/drivers/block/drbd/
Ddrbd_int.h1243 #define BM_BLOCK_SHIFT 12 /* 4k per bit */ macro
1244 #define BM_BLOCK_SIZE (1<<BM_BLOCK_SHIFT)
1251 #if (BM_EXT_SHIFT != 24) || (BM_BLOCK_SHIFT != 12)
1256 #define BM_SECT_TO_BIT(x) ((x)>>(BM_BLOCK_SHIFT-9))
1257 #define BM_BIT_TO_SECT(x) ((sector_t)(x)<<(BM_BLOCK_SHIFT-9))
1261 #define Bit2KB(bits) ((bits)<<(BM_BLOCK_SHIFT-10))
1266 #define BM_BIT_TO_EXT(x) ((x) >> (BM_EXT_SHIFT - BM_BLOCK_SHIFT))
1273 #define BM_BITS_PER_EXT (1UL << (BM_EXT_SHIFT - BM_BLOCK_SHIFT))
Ddrbd_proc.c117 if (rs_total > (4UL << (30 - BM_BLOCK_SHIFT))) in drbd_syncer_progress()
Ddrbd_worker.c559 number = drbd_rs_controller(device, sect_in) >> (BM_BLOCK_SHIFT - 9); in drbd_rs_number_requests()
757 device->rs_in_flight += (i << (BM_BLOCK_SHIFT - 9)); in make_resync_request()
809 device->rs_in_flight += (i << (BM_BLOCK_SHIFT - 9)); in make_ov_request()
1204 device->rs_same_csum += peer_req->i.size >> BM_BLOCK_SHIFT; in w_e_end_csum_rs_req()
1854 (unsigned long) device->rs_total << (BM_BLOCK_SHIFT-10), in drbd_start_resync()
Ddrbd_actlog.c280 #if (PAGE_SHIFT + 3) < (AL_EXTENT_SHIFT - BM_BLOCK_SHIFT)
295 (AL_EXTENT_SHIFT - BM_BLOCK_SHIFT)); in al_extent_to_bm_page()
Ddrbd_bitmap.c334 #define S2W(s) ((s)<<(BM_EXT_SHIFT-BM_BLOCK_SHIFT-LN2_BPL))
1209 ppsize(ppb, now << (BM_BLOCK_SHIFT-10)), now); in bm_rw()
Ddrbd_nl.c3556 s->peer_dev_out_of_sync = drbd_bm_total_weight(device) << (BM_BLOCK_SHIFT - 9); in peer_device_to_statistics()
3557 s->peer_dev_resync_failed = device->rs_failed << (BM_BLOCK_SHIFT - 9); in peer_device_to_statistics()
Ddrbd_receiver.c5641 device->rs_same_csum += (blksize >> BM_BLOCK_SHIFT); in got_IsInSync()
/linux-6.1.9/kernel/power/
Dsnapshot.c373 #define BM_BLOCK_SHIFT (PAGE_SHIFT + 3) macro
374 #define BM_BLOCK_MASK ((1UL << BM_BLOCK_SHIFT) - 1)
786 block_nr = (pfn - zone->start_pfn) >> BM_BLOCK_SHIFT; in memory_bm_find_bit()