Home
last modified time | relevance | path

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

/titanic_41/usr/src/uts/common/io/1394/targets/scsa1394/
H A Dhba.c1167 size_t dev_bsize_cap; in scsa1394_scsi_getcap() local
1192 dev_bsize_cap = sp->s_totalsec; in scsa1394_scsi_getcap()
1195 dev_bsize_cap *= sp->s_secsz / DEV_BSIZE; in scsa1394_scsi_getcap()
1197 dev_bsize_cap /= DEV_BSIZE / sp->s_secsz; in scsa1394_scsi_getcap()
1200 if (dev_bsize_cap < 65536 * 2 * 18) { /* < ~1GB */ in scsa1394_scsi_getcap()
1203 } else if (dev_bsize_cap < 65536 * 64 * 32) { /* < 64GB */ in scsa1394_scsi_getcap()
1206 } else if (dev_bsize_cap < 65536 * 255 * 63) { /* < ~500GB */ in scsa1394_scsi_getcap()
/titanic_41/usr/src/uts/common/io/usb/scsa2usb/
H A Dscsa2usb.c2777 size_t dev_bsize_cap; in scsa2usb_scsi_getcap() local
2816 dev_bsize_cap = scsa2usbp->scsa2usb_totalsec[ap->a_lun]; in scsa2usb_scsi_getcap()
2819 dev_bsize_cap *= in scsa2usb_scsi_getcap()
2823 dev_bsize_cap /= in scsa2usb_scsi_getcap()
2827 if (dev_bsize_cap < 65536 * 2 * 18) { /* < ~1GB */ in scsa2usb_scsi_getcap()
2830 } else if (dev_bsize_cap < 65536 * 64 * 32) { /* < 64GB */ in scsa2usb_scsi_getcap()
2833 } else if (dev_bsize_cap < 65536 * 255 * 63) { /* < ~500GB */ in scsa2usb_scsi_getcap()