Lines Matching defs:lun
56 ushort_t controller, ushort_t sid, ushort_t lun);
416 int sid, lun;
431 sid = lun = -1;
433 scsi_find_sid_lun(sa, devname, &sid, &lun);
434 if (ndmp_open_list_find(devname, sid, lun) == NULL &&
450 switch (ndmp_open_list_add(connection, adptnm, sid, lun, devid)) {
473 session->ns_scsi.sd_lun = lun;
494 * lun (input) - LUN number.
503 ushort_t controller, ushort_t sid, ushort_t lun)
514 lun)) {
515 NDMP_LOG(LOG_ERR, "No such SCSI device: target %d lun %d.",
516 sid, lun);
520 lun);
523 "Not a tape or robot device: target %d lun %d.",
524 sid, lun);
540 if (sid != session->ns_scsi.sd_sid || lun != session->ns_scsi.sd_lun) {
542 session->ns_scsi.sd_adapter_name, sid, lun, 0)) {
560 NDMP_LOG(LOG_DEBUG, "Updated sid %d lun %d", sid, lun);
562 session->ns_scsi.sd_lun = lun;
573 * gets the adapter, and returns the sid and lun number
576 scsi_find_sid_lun(scsi_adapter_t *sa, char *devname, int *sid, int *lun)
586 *lun = sl->sl_lun;
592 *lun = -1;