Lines Matching defs:vd_scsi_len

5780 	int vd_scsi_len = VD_SCSI_SIZE;
5782 vd_scsi_len += P2ROUNDUP(cdb_len, sizeof (uint64_t));
5783 vd_scsi_len += P2ROUNDUP(sense_len, sizeof (uint64_t));
5784 vd_scsi_len += P2ROUNDUP(datain_len, sizeof (uint64_t));
5785 vd_scsi_len += P2ROUNDUP(dataout_len, sizeof (uint64_t));
5787 ASSERT(vd_scsi_len % sizeof (uint64_t) == 0);
5789 vd_scsi = kmem_zalloc(vd_scsi_len, KM_SLEEP);
5796 *alloc_len = vd_scsi_len;
5940 int vd_scsi_len;
5986 &vd_scsi_len);
6038 rv = vdc_do_sync_op(vdc, VD_OP_SCSICMD, (caddr_t)vd_scsi, vd_scsi_len,
6102 kmem_free(vd_scsi, vd_scsi_len);
6112 * vd_scsi_len - return the length of the allocated buffer
6118 vdc_scsi_alloc_persistent_in(uchar_t cmd, int len, int *vd_scsi_len)
6130 vd_scsi_len);
6150 * vd_scsi_len - return the length of the allocated buffer
6156 vdc_scsi_alloc_persistent_out(uchar_t cmd, int len, int *vd_scsi_len)
6168 vd_scsi_len);
6197 int vd_scsi_len;
6227 (sizeof (mhioc_resv_key_t) * listsize), &vd_scsi_len);
6232 rv = vdc_do_sync_op(vdc, VD_OP_SCSICMD, (caddr_t)vd_scsi, vd_scsi_len,
6289 kmem_free(vd_scsi, vd_scsi_len);
6311 int vd_scsi_len;
6341 (SCSI3_RESV_DESC_LEN * listsize), &vd_scsi_len);
6346 rv = vdc_do_sync_op(vdc, VD_OP_SCSICMD, (caddr_t)vd_scsi, vd_scsi_len,
6418 kmem_free(vd_scsi, vd_scsi_len);
6433 int vd_scsi_len, rv;
6442 sizeof (sd_prout_t), &vd_scsi_len);
6451 rv = vdc_do_sync_op(vdc, VD_OP_SCSICMD, (caddr_t)vd_scsi, vd_scsi_len,
6457 kmem_free(vd_scsi, vd_scsi_len);
6473 int vd_scsi_len, rv;
6482 sizeof (sd_prout_t), &vd_scsi_len);
6492 rv = vdc_do_sync_op(vdc, VD_OP_SCSICMD, (caddr_t)vd_scsi, vd_scsi_len,
6498 kmem_free(vd_scsi, vd_scsi_len);
6514 int vd_scsi_len, rv;
6523 sizeof (sd_prout_t), &vd_scsi_len);
6537 rv = vdc_do_sync_op(vdc, VD_OP_SCSICMD, (caddr_t)vd_scsi, vd_scsi_len,
6543 kmem_free(vd_scsi, vd_scsi_len);
6558 int vd_scsi_len, rv;
6567 sizeof (sd_prout_t), &vd_scsi_len);
6576 rv = vdc_do_sync_op(vdc, VD_OP_SCSICMD, (caddr_t)vd_scsi, vd_scsi_len,
6582 kmem_free(vd_scsi, vd_scsi_len);
6592 int cdb_len, sense_len, vd_scsi_len;
6606 vd_scsi = vdc_scsi_alloc(cdb_len, sense_len, 0, 0, &vd_scsi_len);
6621 rv = vdc_do_op(vdc, VD_OP_SCSICMD, (caddr_t)vd_scsi, vd_scsi_len,
6627 kmem_free(vd_scsi, vd_scsi_len);