/freebsd-current/tools/tools/vhba/mptest/ |
H A D | vhba_mptest.c | 40 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 D | mpr_sas_lsi.c | 978 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 D | mpr_sas.h | 61 SLIST_HEAD(, mprsas_lun) luns; member in struct:mprsas_target
|
H A D | mpr_sas.c | 704 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 D | mps_sas.h | 60 SLIST_HEAD(, mpssas_lun) luns; member in struct:mpssas_target
|
H A D | mps_sas_lsi.c | 758 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 D | mps_sas.c | 661 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 D | scsi_xpt.c | 83 ((((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 D | scsi_all.h | 3068 struct scsi_report_luns_lundata luns[0]; member in struct:scsi_report_luns_data
|
/freebsd-current/sys/dev/firewire/ |
H A D | sbp.c | 195 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 D | cam_xpt_internal.h | 171 struct scsi_report_luns_data *luns; member in struct:cam_et 172 struct mtx luns_mtx; /* Protection for luns field. */
|
H A D | cam_xpt.c | 2548 * 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 D | ctladm.c | 1105 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 D | camcontrol.c | 7400 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 D | ctl.c | 4653 * 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
|