Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/target/
H A Dtarget_core_user.c144 uint32_t dbi_thresh; member
505 dbi = find_first_zero_bit(udev->data_bitmap, udev->dbi_thresh); in tcmu_get_empty_block()
506 if (dbi == udev->dbi_thresh) in tcmu_get_empty_block()
855 space = spc_bitmap_free(udev->data_bitmap, udev->dbi_thresh); in tcmu_alloc_data_space()
858 (udev->max_blocks - udev->dbi_thresh) + space; in tcmu_alloc_data_space()
867 udev->dbi_thresh += cmd->dbi_cnt; in tcmu_alloc_data_space()
868 if (udev->dbi_thresh > udev->max_blocks) in tcmu_alloc_data_space()
869 udev->dbi_thresh = udev->max_blocks; in tcmu_alloc_data_space()
2086 udev->dbi_thresh = 0; /* Default in Idle state */ in tcmu_configure_device()
2890 if (!udev->dbi_thresh) { in find_free_blocks()
[all...]
/kernel/linux/linux-6.6/drivers/target/
H A Dtarget_core_user.c150 uint32_t dbi_thresh; member
515 dbi = find_first_zero_bit(udev->data_bitmap, udev->dbi_thresh); in tcmu_get_empty_block()
516 if (dbi == udev->dbi_thresh) in tcmu_get_empty_block()
863 space = spc_bitmap_free(udev->data_bitmap, udev->dbi_thresh); in tcmu_alloc_data_space()
866 (udev->max_blocks - udev->dbi_thresh) + space; in tcmu_alloc_data_space()
875 udev->dbi_thresh += cmd->dbi_cnt; in tcmu_alloc_data_space()
876 if (udev->dbi_thresh > udev->max_blocks) in tcmu_alloc_data_space()
877 udev->dbi_thresh = udev->max_blocks; in tcmu_alloc_data_space()
1680 * dbi_thresh, it may reuse the slot corresponding to the in tcmu_blocks_release()
2232 udev->dbi_thresh in tcmu_configure_device()
[all...]

Completed in 8 milliseconds