Lines Matching refs:secsize
72 static int secsize = 0; /* the sensed sector size */ variable
423 printf("Media sector size is %d\n", secsize); in main()
493 part_mb *= secsize; in print_part()
526 if ((mboot.bootinst_size = sb.st_size) % secsize != 0) in init_boot()
754 if (secsize == 0) in read_disk()
755 for (secsize = MIN_SEC_SIZE; secsize <= MAX_SEC_SIZE; in read_disk()
756 secsize *= 2) { in read_disk()
758 int size = read(fd, buf, secsize); in read_disk()
759 if (size == secsize) in read_disk()
761 return secsize; in read_disk()
764 return read(fd, buf, secsize); in read_disk()
803 wr = pwrite(fd, buf, secsize, (sector * 512)); in write_disk()
804 if (wr == secsize) in write_disk()
857 mboot.bootinst_size = secsize; in read_s0()
894 for(sector = 0; sector < mboot.bootinst_size / secsize; sector++) in write_s0()
896 &mboot.bootinst[sector * secsize]) == -1) { in write_s0()
1116 val *= 1024UL / secsize; in str2sectors()
1118 val *= 1024UL * 1024UL / secsize; in str2sectors()
1120 val *= 1024UL * 1024UL * 1024UL / secsize; in str2sectors()