Lines Matching refs:zone_blocks

242 	return logical_to_sectors(sdkp->device, sdkp->zone_info.zone_blocks);  in sd_zbc_zone_sectors()
386 zno * sdkp->zone_info.zone_blocks, true); in sd_zbc_update_wp_offset_workfn()
453 if (wp_offset + nr_blocks > sdkp->zone_info.zone_blocks) { in sd_zbc_prepare_zone_append()
717 u64 zone_blocks; in sd_zbc_check_capacity() local
743 zone_blocks = get_unaligned_be64(&rec[8]); in sd_zbc_check_capacity()
744 if (logical_to_sectors(sdkp->device, zone_blocks) > UINT_MAX) { in sd_zbc_check_capacity()
751 zone_blocks = sdkp->zone_starting_lba_gran; in sd_zbc_check_capacity()
754 if (!is_power_of_2(zone_blocks)) { in sd_zbc_check_capacity()
757 zone_blocks); in sd_zbc_check_capacity()
761 *zblocks = zone_blocks; in sd_zbc_check_capacity()
771 if (sdkp->capacity & (sdkp->zone_info.zone_blocks - 1)) in sd_zbc_print_zones()
775 sdkp->zone_info.zone_blocks); in sd_zbc_print_zones()
780 sdkp->zone_info.zone_blocks); in sd_zbc_print_zones()
832 u32 zone_blocks = sdkp->early_zone_info.zone_blocks; in sd_zbc_revalidate_zones() local
863 if (sdkp->zone_info.zone_blocks == zone_blocks && in sd_zbc_revalidate_zones()
869 sdkp->zone_info.zone_blocks = zone_blocks; in sd_zbc_revalidate_zones()
879 logical_to_sectors(sdkp->device, zone_blocks)); in sd_zbc_revalidate_zones()
917 u32 zone_blocks = 0; in sd_zbc_read_zones() local
952 ret = sd_zbc_check_capacity(sdkp, buf, &zone_blocks); in sd_zbc_read_zones()
964 nr_zones = round_up(sdkp->capacity, zone_blocks) >> ilog2(zone_blocks); in sd_zbc_read_zones()
967 sdkp->early_zone_info.zone_blocks = zone_blocks; in sd_zbc_read_zones()