Home
last modified time | relevance | path

Searched refs:dev_bsize_cap (Results 1 – 2 of 2) sorted by relevance

/illumos-gate/usr/src/uts/common/io/1394/targets/scsa1394/
H A Dhba.c1166 size_t dev_bsize_cap; in scsa1394_scsi_getcap() local
1191 dev_bsize_cap = sp->s_totalsec; in scsa1394_scsi_getcap()
1194 dev_bsize_cap *= sp->s_secsz / DEV_BSIZE; in scsa1394_scsi_getcap()
1196 dev_bsize_cap /= DEV_BSIZE / sp->s_secsz; in scsa1394_scsi_getcap()
1199 if (dev_bsize_cap < 65536 * 2 * 18) { /* < ~1GB */ in scsa1394_scsi_getcap()
1202 } else if (dev_bsize_cap < 65536 * 64 * 32) { /* < 64GB */ in scsa1394_scsi_getcap()
1205 } else if (dev_bsize_cap < 65536 * 255 * 63) { /* < ~500GB */ in scsa1394_scsi_getcap()
/illumos-gate/usr/src/uts/common/io/usb/scsa2usb/
H A Dscsa2usb.c2780 size_t dev_bsize_cap; in scsa2usb_scsi_getcap() local
2819 dev_bsize_cap = scsa2usbp->scsa2usb_totalsec[ap->a_lun]; in scsa2usb_scsi_getcap()
2822 dev_bsize_cap *= in scsa2usb_scsi_getcap()
2826 dev_bsize_cap /= in scsa2usb_scsi_getcap()
2830 if (dev_bsize_cap < 65536 * 2 * 18) { /* < ~1GB */ in scsa2usb_scsi_getcap()
2833 } else if (dev_bsize_cap < 65536 * 64 * 32) { /* < 64GB */ in scsa2usb_scsi_getcap()
2836 } else if (dev_bsize_cap < 65536 * 255 * 63) { /* < ~500GB */ in scsa2usb_scsi_getcap()