Home
last modified time | relevance | path

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

/illumos-gate/usr/src/uts/common/io/sata/impl/
H A Dsata.c4892 int bdlen = 0; in sata_txlt_unmap() local
4926 bdlen = scsipkt->pkt_cdbp[7]; in sata_txlt_unmap()
4927 bdlen = (bdlen << 8) + scsipkt->pkt_cdbp[8] - paramlen; in sata_txlt_unmap()
4928 if ((bdlen < 0) || ((bdlen % 16) != 0) || in sata_txlt_unmap()
4929 ((bp != NULL) && (bdlen > (bp->b_bcount - paramlen)))) { in sata_txlt_unmap()
4941 if ((bdlen == 0) || (bp == NULL) || (bp->b_un.b_addr == NULL) || in sata_txlt_unmap()
4950 data = kmem_zalloc(bdlen, KM_SLEEP); in sata_txlt_unmap()
4956 for (i = 0, x = 0; i < bdlen; i += 16, x += 8) { in sata_txlt_unmap()
4993 kmem_free(data, bdlen); in sata_txlt_unmap()
5001 kmem_free(data, bdlen); in sata_txlt_unmap()
[all …]
/illumos-gate/usr/src/uts/common/io/scsi/targets/
H A Dsd.c8694 int *bdlen) in sd_get_caching_mode_page() argument
8732 *bdlen = (mhp->bdesc_length_hi << 8) | mhp->bdesc_length_lo; in sd_get_caching_mode_page()
8734 *bdlen = ((struct mode_header *)(*header))->bdesc_length; in sd_get_caching_mode_page()
8737 if (*bdlen > MODE_BLK_DESC_LENGTH) { in sd_get_caching_mode_page()
8745 mode_caching_page = (struct mode_caching *)(*header + hdrlen + *bdlen); in sd_get_caching_mode_page()
8757 *bdlen = 0; in sd_get_caching_mode_page()
8790 int bdlen; in sd_cache_control() local
8793 rval = sd_get_caching_mode_page(ssc, MODEPAGE_CURRENT, &header, &bdlen); in sd_cache_control()
8798 bdlen); in sd_cache_control()
8810 sbuflen = hdrlen + bdlen + sizeof (struct mode_page) + in sd_cache_control()
[all …]