Lines Matching defs:sectsiz
344 static int sectsiz; /* sector size */
731 dev_mboot_write(0, Bootsect, sectsiz);
999 sectsiz = minfo.dki_lbsize;
1001 sectsiz = 512;
1036 sectsiz,
1038 (Numcyl * heads * sectors * sectsiz) / 1048576);
1046 sectsiz,
1048 (hba_Numcyl * hba_heads * hba_sectors * sectsiz) /
1065 sectsiz = minfo.dki_lbsize;
1067 sectsiz = 512;
1081 sectsiz);
1101 sectsiz);
1129 Bootsect = (char *)calloc(3 * sectsiz, 1);
1134 3 * sectsiz);
1138 Nullsect = Bootsect + sectsiz;
1140 for (i = 0; i < sectsiz; i++) {
1349 §siz) != 7) {
1395 if (read(Dev, Bootsect, sectsiz) != sectsiz) {
1619 for (i = 0; i < sectsiz; i += 4, buff_ptr++)
1631 for (i = 0; i < sectsiz;
1636 if (lseek(Dev, (off_t)(sectsiz * io_offset++),
1642 if (write(Dev, Bootsect, sectsiz) != sectsiz) {
1661 if (lseek(Dev, (off_t)(sectsiz * io_offset++),
1667 if (read(Dev, Bootsect, sectsiz) != sectsiz) {
1674 if ((c = write(1, Bootsect, (unsigned)sectsiz)) != sectsiz) {
1680 c, sectsiz);
1686 } /* if ((c = write(1, Bootsect, (unsigned)sectsiz)) */
1687 /* != sectsiz) */
1705 if ((c = read(0, Bootsect, (unsigned)sectsiz)) != sectsiz) {
1711 c, sectsiz);
1713 for (i = c; i < sectsiz; ) {
1727 if (lseek(Dev, (off_t)(sectsiz * io_offset++),
1733 if (write(Dev, Bootsect, sectsiz) != sectsiz) {
2719 dev_mboot_write(0, Bootsect, sectsiz);
2756 dev_mboot_write(0, Bootsect, sectsiz);
3676 heads * sectors, sectsiz);
4096 (void) fprintf(fp, "* %4d bytes/sector\n", sectsiz);
4104 (void) fprintf(fp, "* %4d bytes/sector\n", sectsiz);
4592 disk_label = (char *)calloc(sectsiz, 1);
4597 seek_byte = (off_t)(LE_32(clr_table->relsect) + VTOC_OFFSET) * sectsiz;
4614 bytes = write(Dev, disk_label, sectsiz);
4616 if (bytes != sectsiz) {
4635 read_label = (char *)calloc(sectsiz, 1);
4641 bytes = read(Dev, read_label, sectsiz);
4643 if (bytes != sectsiz) {
4649 if (memcmp(disk_label, read_label, sectsiz) != 0) {
4667 seek_byte = (off_t)(solaris_offset + backup_block) * sectsiz;
4687 bytes = write(Dev, disk_label, sectsiz);
4689 if (bytes != sectsiz) {
4710 bytes = read(Dev, read_label, sectsiz);
4712 if (bytes != sectsiz) {
4718 if (memcmp(disk_label, read_label, sectsiz) != 0) {