Searched refs:luns (Results 1 - 15 of 15) sorted by relevance

/freebsd-current/tools/tools/vhba/mptest/
H A Dvhba_mptest.c40 SYSCTL_INT(_debug, OID_AUTO, vhba_notify_stop, CTLFLAG_RW, &vhba_notify_stop, 1, "notify when luns go away");
41 SYSCTL_INT(_debug, OID_AUTO, vhba_notify_start, CTLFLAG_RW, &vhba_notify_start, 1, "notify when luns arrive");
42 SYSCTL_INT(_debug, OID_AUTO, vhba_inject_hwerr, CTLFLAG_RW, &vhba_inject_hwerr, 0, "inject hardware error on lost luns");
59 int luns[2]; member in struct:__anon6408
84 vhbastatic.luns[0] = 1;
85 vhbastatic.luns[1] = 1;
150 if (vhba_inject_hwerr && csio->ccb_h.target_lun < MAX_LUN && vhbas->luns[csio->ccb_h.target_lun] == 0) {
155 if ((csio->ccb_h.target_lun >= MAX_LUN || vhbas->luns[csio->ccb_h.target_lun] == 0) && cdb[0] != INQUIRY && cdb[0] != REPORT_LUNS && cdb[0] != REQUEST_SENSE) {
417 if (vhbas->luns[lun]) {
423 vhbas->luns[lu
[all...]
/freebsd-current/sys/dev/mpr/
H A Dmpr_sas_lsi.c978 while (!SLIST_EMPTY(&targ->luns)) {
979 lun = SLIST_FIRST(&targ->luns);
980 SLIST_REMOVE_HEAD(&targ->luns, lun_link);
983 SLIST_INIT(&targ->luns);
1367 while (!SLIST_EMPTY(&targ->luns)) {
1368 lun = SLIST_FIRST(&targ->luns);
1369 SLIST_REMOVE_HEAD(&targ->luns, lun_link);
1372 SLIST_INIT(&targ->luns);
1429 while (!SLIST_EMPTY(&targ->luns)) {
1430 lun = SLIST_FIRST(&targ->luns);
[all...]
H A Dmpr_sas.h61 SLIST_HEAD(, mprsas_lun) luns; member in struct:mprsas_target
H A Dmpr_sas.c704 while (!SLIST_EMPTY(&targ->luns)) {
705 lun = SLIST_FIRST(&targ->luns);
706 SLIST_REMOVE_HEAD(&targ->luns, lun_link);
917 SLIST_FOREACH_SAFE(lun, &targ->luns, lun_link, lun_tmp) {
2056 SLIST_FOREACH(lun, &targ->luns, lun_link) {
3368 SLIST_FOREACH(lun, &target->luns, lun_link) {
3384 SLIST_INSERT_HEAD(&target->luns, lun, lun_link);
3576 SLIST_FOREACH_SAFE(lun, &targ->luns, lun_link, lun_tmp) {
/freebsd-current/sys/dev/mps/
H A Dmps_sas.h60 SLIST_HEAD(, mpssas_lun) luns; member in struct:mpssas_target
H A Dmps_sas_lsi.c758 while(!SLIST_EMPTY(&targ->luns)) {
759 lun = SLIST_FIRST(&targ->luns);
760 SLIST_REMOVE_HEAD(&targ->luns, lun_link);
763 SLIST_INIT(&targ->luns);
1066 while(!SLIST_EMPTY(&targ->luns)) {
1067 lun = SLIST_FIRST(&targ->luns);
1068 SLIST_REMOVE_HEAD(&targ->luns, lun_link);
1071 SLIST_INIT(&targ->luns);
H A Dmps_sas.c661 while(!SLIST_EMPTY(&targ->luns)) {
662 lun = SLIST_FIRST(&targ->luns);
663 SLIST_REMOVE_HEAD(&targ->luns, lun_link);
864 SLIST_FOREACH_SAFE(lun, &targ->luns, lun_link, lun_tmp) {
1804 SLIST_FOREACH(lun, &targ->luns, lun_link) {
3180 SLIST_FOREACH(lun, &target->luns, lun_link) {
3196 SLIST_INSERT_HEAD(&target->luns, lun, lun_link);
3402 SLIST_FOREACH_SAFE(lun, &targ->luns, lun_link, lun_tmp) {
/freebsd-current/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); \
102 * If we're not quirked to search <= the first 8 luns
106 * we can look for luns above lun 8.
705 * luns
[all...]
H A Dscsi_all.h3068 struct scsi_report_luns_lundata luns[0]; member in struct:scsi_report_luns_data
/freebsd-current/sys/dev/firewire/
H A Dsbp.c195 struct sbp_dev **luns; member in struct:sbp_target
449 sdev = target->luns[lun];
457 target->luns[lun] = NULL;
463 newluns = (struct sbp_dev **) realloc(target->luns,
469 newluns = target->luns;
482 target->luns = newluns;
499 sdev = target->luns[lun];
507 target->luns[lun] = sdev;
533 target->luns[lun] = NULL;
565 sdev = target->luns[lu
[all...]
/freebsd-current/sys/cam/
H A Dcam_xpt_internal.h171 struct scsi_report_luns_data *luns; member in struct:cam_et
172 struct mtx luns_mtx; /* Protection for luns field. */
H A Dcam_xpt.c2548 * that luns are a 3 bit value and reserves only 3
2551 * luns, but have deprecated lun information in the
2815 * then devices/luns on a target, and then peripherals on a
4678 target->luns = NULL;
4727 if (target->luns)
4728 free(target->luns, M_CAMXPT);
/freebsd-current/usr.sbin/ctladm/
H A Dctladm.c1105 switch (lun_data->luns[i].lundata[0] & RPL_LUNDATA_ATYP_MASK) {
1107 lun_val = lun_data->luns[i].lundata[1];
1110 lun_val = (lun_data->luns[i].lundata[0] &
1112 (lun_data->luns[i].lundata[1] <<
1119 lun_data->luns[i].lundata[0] &
1903 switch (lun_data->luns[i].lundata[0] & RPL_LUNDATA_ATYP_MASK) {
1905 lun_val = lun_data->luns[i].lundata[1];
1908 lun_val = (lun_data->luns[i].lundata[0] &
1910 (lun_data->luns[i].lundata[1] <<
1917 lun_data->luns[
[all...]
/freebsd-current/sbin/camcontrol/
H A Dcamcontrol.c7400 for (j = 0; j < sizeof(lundata->luns[i].lundata); j += 2) {
7403 switch (lundata->luns[i].lundata[j] &
7406 if ((lundata->luns[i].lundata[j] &
7409 lundata->luns[i].lundata[j] &
7412 && ((lundata->luns[i].lundata[j+2] &
7417 lundata->luns[i].lundata[j+1]);
7421 tmplun[0] = lundata->luns[i].lundata[j] &
7423 tmplun[1] = lundata->luns[i].lundata[j+1];
7431 (lundata->luns[i].lundata[j+1] &
7433 lundata->luns[
[all...]
/freebsd-current/sys/cam/ctl/
H A Dctl.c4653 * inventory changed UA for all other luns.
9219 be64enc(lun_data->luns[num_filled++].lundata,
9233 * If request_lun is NULL, the LUN this report luns command
12367 * don't fall into the "reset" category (e.g. "reported luns data

Completed in 360 milliseconds