Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/target/
Dtarget_core_user.c154 uint32_t dbi_thresh; member
500 dbi = find_first_zero_bit(udev->data_bitmap, udev->dbi_thresh); in tcmu_get_empty_block()
501 if (dbi == udev->dbi_thresh) in tcmu_get_empty_block()
853 space = spc_bitmap_free(udev->data_bitmap, udev->dbi_thresh); in is_ring_space_avail()
856 (udev->max_blocks - udev->dbi_thresh) + space; in is_ring_space_avail()
865 udev->dbi_thresh += blocks_needed; in is_ring_space_avail()
866 if (udev->dbi_thresh > udev->max_blocks) in is_ring_space_avail()
867 udev->dbi_thresh = udev->max_blocks; in is_ring_space_avail()
1862 udev->dbi_thresh = 0; /* Default in Idle state */ in tcmu_configure_device()
2614 if (!udev->dbi_thresh) { in find_free_blocks()
[all …]