Searched refs:TCMU_MBS_TO_PAGES (Results 1 – 1 of 1) sorted by relevance
77 #define TCMU_MBS_TO_PAGES(_mbs) ((size_t)_mbs << (20 - PAGE_SHIFT)) macro243 tcmu_global_max_pages = TCMU_MBS_TO_PAGES(max_area_mb); in tcmu_set_global_max_data_area()2229 data_size = TCMU_MBS_TO_PAGES(udev->data_area_mb) << PAGE_SHIFT; in tcmu_configure_device()2485 if (TCMU_MBS_TO_PAGES(val) < pages_per_blk) { in tcmu_set_max_blocks_param()2487 val, TCMU_MBS_TO_PAGES(val), pages_per_blk); in tcmu_set_max_blocks_param()2499 udev->max_blocks = TCMU_MBS_TO_PAGES(val) / pages_per_blk; in tcmu_set_max_blocks_param()2517 if (val > TCMU_MBS_TO_PAGES(udev->data_area_mb)) { in tcmu_set_data_pages_per_blk()2520 TCMU_MBS_TO_PAGES(udev->data_area_mb)); in tcmu_set_data_pages_per_blk()2532 udev->max_blocks = TCMU_MBS_TO_PAGES(udev->data_area_mb) / val; in tcmu_set_data_pages_per_blk()