Lines Matching refs:secsz

1435                 uint64_t secsz,  in determine_current_padding()  argument
1450 assert(offset < UINT64_MAX / secsz); in determine_current_padding()
1451 offset *= secsz; in determine_current_padding()
1469 assert(start < UINT64_MAX / secsz); in determine_current_padding()
1470 start *= secsz; in determine_current_padding()
1482 assert(next < UINT64_MAX / secsz); in determine_current_padding()
1483 next *= secsz; in determine_current_padding()
1564 unsigned long secsz; in context_load_partition_table() local
1628 secsz = fdisk_get_sector_size(c); in context_load_partition_table()
1631 if (secsz < 512 || secsz != 1UL << log2u64(secsz)) in context_load_partition_table()
1632 … log_error_errno(errno, "Sector size %lu is not a power of two larger than 512? Refusing.", secsz); in context_load_partition_table()
1636 grainsz = secsz < 4096 ? 4096 : secsz; in context_load_partition_table()
1638 … log_debug("Sector size of device is %lu bytes. Using grain size of %" PRIu64 ".", secsz, grainsz); in context_load_partition_table()
1770 assert(sz <= UINT64_MAX/secsz); in context_load_partition_table()
1771 sz *= secsz; in context_load_partition_table()
1774 assert(start <= UINT64_MAX/secsz); in context_load_partition_table()
1775 start *= secsz; in context_load_partition_table()
1800 … r = determine_current_padding(c, t, p, secsz, grainsz, &pp->current_padding); in context_load_partition_table()
1833 … r = determine_current_padding(c, t, p, secsz, grainsz, &np->current_padding); in context_load_partition_table()
1850 assert(nsectors <= UINT64_MAX/secsz); in context_load_partition_table()
1851 nsectors *= secsz; in context_load_partition_table()
1854 assert(first_lba <= UINT64_MAX/secsz); in context_load_partition_table()
1855 first_lba *= secsz; in context_load_partition_table()
1860 assert(last_lba <= UINT64_MAX/secsz); in context_load_partition_table()
1861 last_lba *= secsz; in context_load_partition_table()
1894 context->sector_size = secsz; in context_load_partition_table()