Lines Matching refs:bd_sectorsize
122 uint16_t bd_sectorsize; /* Sector size */ member
313 bd->bd_sectorsize = BIOSDISK_SECSIZE; in fd_init()
409 bd->bd_sectorsize = BIOSDISK_SECSIZE; in bd_get_diskinfo_cd()
412 bd->bd_sectorsize = 2048; in bd_get_diskinfo_cd()
425 bd->bd_sectorsize = 2048; in bd_get_diskinfo_cd()
583 bd->bd_sectorsize = params->sector_size; in bd_get_diskinfo_ext()
623 if (bd->bd_sectorsize == 0) in bd_int13probe()
624 bd->bd_sectorsize = BIOSDISK_SECSIZE; in bd_int13probe()
749 bd->bd_sectorsize); in bd_print_common()
764 bd->bd_sectorsize * bd->bd_sectors, in bd_print_common()
765 bd->bd_sectorsize) == 0) { in bd_print_common()
819 size = bd->bd_sectors * bd->bd_sectorsize; in bd_disk_get_sectors()
820 if (disk_open(&disk, size, bd->bd_sectorsize) == 0) { in bd_disk_get_sectors()
824 return (size / bd->bd_sectorsize); in bd_disk_get_sectors()
870 rc = disk_open(dev, bd->bd_sectors * bd->bd_sectorsize, in bd_open()
871 bd->bd_sectorsize); in bd_open()
926 *(uint32_t *)data = bd->bd_sectorsize; in bd_ioctl()
929 *(uint64_t *)data = bd->bd_sectors * bd->bd_sectorsize; in bd_ioctl()
958 offset = dev->d_offset * bd->bd_sectorsize; in bd_strategy()
995 dblk = offset / bd->bd_sectorsize; in bd_realstrategy()
996 blkoff = offset % bd->bd_sectorsize; in bd_realstrategy()
1009 blks = size / bd->bd_sectorsize; in bd_realstrategy()
1010 if (blks == 0 || (size % bd->bd_sectorsize) != 0) in bd_realstrategy()
1028 disk_blocks /= bd->bd_sectorsize; in bd_realstrategy()
1033 disk_blocks = bd->bd_sectors * (bd->bd_sectorsize / in bd_realstrategy()
1045 size = blks * bd->bd_sectorsize; in bd_realstrategy()
1050 while (bio_size > bd->bd_sectorsize) { in bd_realstrategy()
1054 bio_size -= bd->bd_sectorsize; in bd_realstrategy()
1058 if (bio_size / bd->bd_sectorsize == 0) in bd_realstrategy()
1067 int x = min(blks, bio_size / bd->bd_sectorsize); in bd_realstrategy()
1072 bsize = bd->bd_sectorsize * x - blkoff; in bd_realstrategy()
1091 bsize = bd->bd_sectorsize - blkoff; in bd_realstrategy()
1094 } else if (rest < bd->bd_sectorsize) { in bd_realstrategy()
1104 bsize = bd->bd_sectorsize * x; in bd_realstrategy()
1319 if (disk_open(dev, bd->bd_sectors * bd->bd_sectorsize, in bd_getdev()
1320 bd->bd_sectorsize) != 0) /* oops, not a viable device */ in bd_getdev()