Home
last modified time | relevance | path

Searched refs:luns (Results 1 – 17 of 17) sorted by relevance

/freebsd/tools/tools/vhba/mptest/
H A Dvhba_mptest.c59 int luns[2]; member
84 vhbastatic.luns[0] = 1; in vhba_init()
85 vhbastatic.luns[1] = 1; in vhba_init()
150 …if (vhba_inject_hwerr && csio->ccb_h.target_lun < MAX_LUN && vhbas->luns[csio->ccb_h.target_lun] =… in mptest_act()
155 …if ((csio->ccb_h.target_lun >= MAX_LUN || vhbas->luns[csio->ccb_h.target_lun] == 0) && cdb[0] != I… in mptest_act()
417 if (vhbas->luns[lun]) { in vhba_timer()
423 vhbas->luns[lun] = 0; in vhba_timer()
427 vhbas->luns[lun] = 0; in vhba_timer()
435 if (vhbas->luns[lun] == 0) { in vhba_timer()
446 vhbas->luns[lun] = 1; in vhba_timer()
[all …]
/freebsd/sys/dev/firewire/
H A Dsbp.c195 struct sbp_dev **luns; member
449 sdev = target->luns[lun]; in sbp_alloc_lun()
457 target->luns[lun] = NULL; in sbp_alloc_lun()
463 newluns = (struct sbp_dev **) realloc(target->luns, in sbp_alloc_lun()
469 newluns = target->luns; in sbp_alloc_lun()
482 target->luns = newluns; in sbp_alloc_lun()
499 sdev = target->luns[lun]; in sbp_alloc_lun()
507 target->luns[lun] = sdev; in sbp_alloc_lun()
533 target->luns[lun] = NULL; in sbp_alloc_lun()
565 sdev = target->luns[lu in sbp_alloc_lun()
[all...]
/freebsd/sys/dev/mpr/
H A Dmpr_sas_lsi.c978 while (!SLIST_EMPTY(&targ->luns)) { in mprsas_add_device()
979 lun = SLIST_FIRST(&targ->luns); in mprsas_add_device()
980 SLIST_REMOVE_HEAD(&targ->luns, lun_link); in mprsas_add_device()
983 SLIST_INIT(&targ->luns); in mprsas_add_device()
1367 while (!SLIST_EMPTY(&targ->luns)) { in mprsas_add_pcie_device()
1368 lun = SLIST_FIRST(&targ->luns); in mprsas_add_pcie_device()
1369 SLIST_REMOVE_HEAD(&targ->luns, lun_link); in mprsas_add_pcie_device()
1372 SLIST_INIT(&targ->luns); in mprsas_add_pcie_device()
1429 while (!SLIST_EMPTY(&targ->luns)) { in mprsas_volume_add()
1430 lun = SLIST_FIRST(&targ->luns); in mprsas_volume_add()
[all …]
H A Dmpr_sas.h61 SLIST_HEAD(, mprsas_lun) luns;
H A Dmpr_sas.c704 while (!SLIST_EMPTY(&targ->luns)) { in mprsas_remove_complete()
705 lun = SLIST_FIRST(&targ->luns); in mprsas_remove_complete()
706 SLIST_REMOVE_HEAD(&targ->luns, lun_link); in mprsas_remove_complete()
917 SLIST_FOREACH_SAFE(lun, &targ->luns, lun_link, lun_tmp) { in mpr_detach_sas()
2056 SLIST_FOREACH(lun, &targ->luns, lun_link) { in mprsas_action_scsiio()
3368 SLIST_FOREACH(lun, &target->luns, lun_link) { in mprsas_async()
3384 SLIST_INSERT_HEAD(&target->luns, lun, lun_link); in mprsas_async()
3576 SLIST_FOREACH_SAFE(lun, &targ->luns, lun_link, lun_tmp) { in mprsas_realloc_targets()
/freebsd/sys/cam/scsi/
H A Dscsi_xpt.c83 ((((x)->luns[i].lundata[0] & RPL_LUNDATA_ATYP_MASK) == \
85 (((x)->luns[i].lundata[0] & RPL_LUNDATA_ATYP_MASK) == \
88 if (((lp)->luns[(i)].lundata[0] & RPL_LUNDATA_ATYP_MASK) == \
90 (lval) = (lp)->luns[(i)].lundata[1]; \
92 (lval) = (lp)->luns[(i)].lundata[0]; \
95 (lval) |= (lp)->luns[(i)].lundata[1]; \
98 (lval) = scsi_8btou64((lp)->luns[(i)].lundata); \
1365 lp->luns[0].lundata, 8); in probedone()
1366 memcpy(lp->luns[0].lundata, in probedone()
1367 lp->luns[idx].lundata, 8); in probedone()
[all …]
H A Dscsi_all.h3068 struct scsi_report_luns_lundata luns[0]; member
/freebsd/sys/dev/mps/
H A Dmps_sas_lsi.c758 while(!SLIST_EMPTY(&targ->luns)) { in mpssas_add_device()
759 lun = SLIST_FIRST(&targ->luns); in mpssas_add_device()
760 SLIST_REMOVE_HEAD(&targ->luns, lun_link); in mpssas_add_device()
763 SLIST_INIT(&targ->luns); in mpssas_add_device()
1066 while(!SLIST_EMPTY(&targ->luns)) { in mpssas_volume_add()
1067 lun = SLIST_FIRST(&targ->luns); in mpssas_volume_add()
1068 SLIST_REMOVE_HEAD(&targ->luns, lun_link); in mpssas_volume_add()
1071 SLIST_INIT(&targ->luns); in mpssas_volume_add()
H A Dmps_sas.h60 SLIST_HEAD(, mpssas_lun) luns;
H A Dmps_sas.c661 while(!SLIST_EMPTY(&targ->luns)) { in mpssas_remove_complete()
662 lun = SLIST_FIRST(&targ->luns); in mpssas_remove_complete()
663 SLIST_REMOVE_HEAD(&targ->luns, lun_link); in mpssas_remove_complete()
864 SLIST_FOREACH_SAFE(lun, &targ->luns, lun_link, lun_tmp) { in mps_detach_sas()
1804 SLIST_FOREACH(lun, &targ->luns, lun_link) { in mpssas_action_scsiio()
3180 SLIST_FOREACH(lun, &target->luns, lun_link) { in mpssas_async()
3196 SLIST_INSERT_HEAD(&target->luns, lun, lun_link); in mpssas_async()
3402 SLIST_FOREACH_SAFE(lun, &targ->luns, lun_link, lun_tmp) { in mpssas_realloc_targets()
/freebsd/sys/cam/
H A Dcam_xpt_internal.h171 struct scsi_report_luns_data *luns; member
H A DREADME.quirks39 o CAM_QUIRK_NOLUNS - do not probe luns other than 0 since device
44 o CAM_QUIRK_HILUNS - probe all luns even if some respond "not present"
H A Dcam_xpt.c4678 target->luns = NULL; in xpt_alloc_target()
4727 if (target->luns) in xpt_release_target()
4728 free(target->luns, M_CAMXPT); in xpt_release_target()
/freebsd/usr.sbin/ctladm/
H A Dctladm.c1104 switch (lun_data->luns[i].lundata[0] & RPL_LUNDATA_ATYP_MASK) { in cctl_lunlist()
1106 lun_val = lun_data->luns[i].lundata[1]; in cctl_lunlist()
1109 lun_val = (lun_data->luns[i].lundata[0] & in cctl_lunlist()
1111 (lun_data->luns[i].lundata[1] << in cctl_lunlist()
1118 lun_data->luns[i].lundata[0] & in cctl_lunlist()
1902 switch (lun_data->luns[i].lundata[0] & RPL_LUNDATA_ATYP_MASK) { in cctl_report_luns()
1904 lun_val = lun_data->luns[i].lundata[1]; in cctl_report_luns()
1907 lun_val = (lun_data->luns[i].lundata[0] & in cctl_report_luns()
1909 (lun_data->luns[i].lundata[1] << in cctl_report_luns()
1916 lun_data->luns[ in cctl_report_luns()
[all...]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/include/
H A Dblkdev.shlib413 typeset luns=$4
417 [[ -z $luns ]] || [[ -z $blksz ]] && \
443 add_host=$hosts num_tgts=$tgts max_luns=$luns \
/freebsd/sbin/camcontrol/
H A Dcamcontrol.c7401 for (j = 0; j < sizeof(lundata->luns[i].lundata); j += 2) { in scsireportluns()
7404 switch (lundata->luns[i].lundata[j] & in scsireportluns()
7407 if ((lundata->luns[i].lundata[j] & in scsireportluns()
7410 lundata->luns[i].lundata[j] & in scsireportluns()
7413 && ((lundata->luns[i].lundata[j+2] & in scsireportluns()
7418 lundata->luns[i].lundata[j+1]); in scsireportluns()
7422 tmplun[0] = lundata->luns[i].lundata[j] & in scsireportluns()
7424 tmplun[1] = lundata->luns[i].lundata[j+1]; in scsireportluns()
7432 (lundata->luns[i].lundata[j+1] & in scsireportluns()
7434 lundata->luns[ in scsireportluns()
[all...]
/freebsd/sys/cam/ctl/
H A Dctl.c9224 be64enc(lun_data->luns[num_filled++].lundata, in ctl_report_luns()