Lines Matching defs:lun

697 	 * descriptors associated with each lun.  Some we care about and some
717 * don't represent unique identifiers for a lun. We also
1407 scsi_lun_to_lun64(scsi_lun_t lun)
1412 * Check to see if we have a single level lun that uses the
1416 if (((lun.sl_lun2_msb == 0) && (lun.sl_lun2_lsb == 0) &&
1417 (lun.sl_lun3_msb == 0) && (lun.sl_lun3_lsb == 0) &&
1418 (lun.sl_lun4_msb == 0) && (lun.sl_lun4_lsb == 0)) &&
1419 ((lun.sl_lun1_msb & SCSI_LUN_AM_MASK) == SCSI_LUN_AM_PDEV)) {
1424 lun64 = ((lun.sl_lun1_msb & ~SCSI_LUN_AM_MASK) << 8) |
1425 lun.sl_lun1_lsb;
1432 ((scsi_lun64_t)lun.sl_lun1_msb << 56) |
1433 ((scsi_lun64_t)lun.sl_lun1_lsb << 48) |
1434 ((scsi_lun64_t)lun.sl_lun2_msb << 40) |
1435 ((scsi_lun64_t)lun.sl_lun2_lsb << 32) |
1436 ((scsi_lun64_t)lun.sl_lun3_msb << 24) |
1437 ((scsi_lun64_t)lun.sl_lun3_lsb << 16) |
1438 ((scsi_lun64_t)lun.sl_lun4_msb << 8) |
1439 (scsi_lun64_t)lun.sl_lun4_lsb;
1447 scsi_lun_t lun;
1453 lun.sl_lun1_msb = SCSI_LUN_AM_PDEV | (lun64 >> 8);
1454 lun.sl_lun1_lsb = (uchar_t)lun64;
1455 lun.sl_lun2_msb = 0;
1456 lun.sl_lun2_lsb = 0;
1457 lun.sl_lun3_msb = 0;
1458 lun.sl_lun3_lsb = 0;
1459 lun.sl_lun4_msb = 0;
1460 lun.sl_lun4_lsb = 0;
1463 lun.sl_lun1_msb = (uchar_t)(lun64 >> 56);
1464 lun.sl_lun1_lsb = (uchar_t)(lun64 >> 48);
1465 lun.sl_lun2_msb = (uchar_t)(lun64 >> 40);
1466 lun.sl_lun2_lsb = (uchar_t)(lun64 >> 32);
1467 lun.sl_lun3_msb = (uchar_t)(lun64 >> 24);
1468 lun.sl_lun3_lsb = (uchar_t)(lun64 >> 16);
1469 lun.sl_lun4_msb = (uchar_t)(lun64 >> 8);
1470 lun.sl_lun4_lsb = (uchar_t)(lun64);
1472 return (lun);