Searched refs:dev_bsize_cap (Results 1 – 2 of 2) sorted by relevance
1167 size_t dev_bsize_cap; in scsa1394_scsi_getcap() local1192 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()
2777 size_t dev_bsize_cap; in scsa2usb_scsi_getcap() local2816 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()