/freebsd-11-stable/sys/cam/ |
H A D | cam_xpt_internal.h | 169 struct scsi_report_luns_data *luns; member in struct:cam_et 170 struct mtx luns_mtx; /* Protection for luns field. */
|
H A D | cam_xpt.c | 2538 * that luns are a 3 bit value and reserves only 3 2541 * luns, but have deprecated lun information in the 2823 * then devices/luns on a target, and then peripherals on a 4669 target->luns = NULL; 4718 if (target->luns) 4719 free(target->luns, M_CAMXPT);
|
/freebsd-11-stable/sys/dev/esp/ |
H A D | ncr53c9x.c | 225 LIST_FOREACH(li, &ti->luns, link) 443 for (li = LIST_FIRST(&sc->sc_tinfo[t].luns); li; 594 LIST_FOREACH(li, &sc->sc_tinfo[target].luns, link) { 638 LIST_INIT(&sc->sc_tinfo[r].luns); 1287 LIST_INSERT_HEAD(&ti->luns, li, link); 2535 li = LIST_FIRST(&ti->luns); 2545 li = LIST_FIRST(&ti->luns); 3240 li = LIST_FIRST(&ti->luns); 3250 li = LIST_FIRST(&ti->luns);
|
H A D | ncr53c9xvar.h | 197 LIST_HEAD(lun_list, ncr53c9x_linfo) luns; member in struct:ncr53c9x_tinfo
|
/freebsd-11-stable/sys/dev/firewire/ |
H A D | sbp.c | 199 struct sbp_dev **luns; member in struct:sbp_target 453 sdev = target->luns[lun]; 461 target->luns[lun] = NULL; 467 newluns = (struct sbp_dev **) realloc(target->luns, 473 newluns = target->luns; 486 target->luns = newluns; 503 sdev = target->luns[lun]; 511 target->luns[lun] = sdev; 537 target->luns[lun] = NULL; 569 sdev = target->luns[lu [all...] |
/freebsd-11-stable/sys/dev/mpr/ |
H A D | mpr_sas.h | 63 SLIST_HEAD(, mprsas_lun) luns; member in struct:mprsas_target
|
H A D | mpr_sas_lsi.c | 959 while (!SLIST_EMPTY(&targ->luns)) { 960 lun = SLIST_FIRST(&targ->luns); 961 SLIST_REMOVE_HEAD(&targ->luns, lun_link); 964 SLIST_INIT(&targ->luns); 1370 while (!SLIST_EMPTY(&targ->luns)) { 1371 lun = SLIST_FIRST(&targ->luns); 1372 SLIST_REMOVE_HEAD(&targ->luns, lun_link); 1375 SLIST_INIT(&targ->luns); 1435 while (!SLIST_EMPTY(&targ->luns)) { 1436 lun = SLIST_FIRST(&targ->luns); [all...] |
H A D | mpr_sas.c | 683 while (!SLIST_EMPTY(&targ->luns)) { 684 lun = SLIST_FIRST(&targ->luns); 685 SLIST_REMOVE_HEAD(&targ->luns, lun_link); 947 SLIST_FOREACH_SAFE(lun, &targ->luns, lun_link, lun_tmp) { 2077 SLIST_FOREACH(lun, &targ->luns, lun_link) { 3580 SLIST_FOREACH(lun, &target->luns, lun_link) { 3596 SLIST_INSERT_HEAD(&target->luns, lun, lun_link); 3728 SLIST_FOREACH(lun, &target->luns, lun_link) { 3745 SLIST_INSERT_HEAD(&target->luns, lun, lun_link); 3824 SLIST_FOREACH(lun, &target->luns, lun_lin [all...] |
/freebsd-11-stable/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 | 754 while(!SLIST_EMPTY(&targ->luns)) { 755 lun = SLIST_FIRST(&targ->luns); 756 SLIST_REMOVE_HEAD(&targ->luns, lun_link); 759 SLIST_INIT(&targ->luns); 1087 while(!SLIST_EMPTY(&targ->luns)) { 1088 lun = SLIST_FIRST(&targ->luns); 1089 SLIST_REMOVE_HEAD(&targ->luns, lun_link); 1092 SLIST_INIT(&targ->luns);
|
H A D | mps_sas.c | 678 while(!SLIST_EMPTY(&targ->luns)) { 679 lun = SLIST_FIRST(&targ->luns); 680 SLIST_REMOVE_HEAD(&targ->luns, lun_link); 893 SLIST_FOREACH_SAFE(lun, &targ->luns, lun_link, lun_tmp) { 1820 SLIST_FOREACH(lun, &targ->luns, lun_link) { 3300 SLIST_FOREACH(lun, &target->luns, lun_link) { 3316 SLIST_INSERT_HEAD(&target->luns, lun, lun_link); 3441 SLIST_FOREACH(lun, &target->luns, lun_link) { 3458 SLIST_INSERT_HEAD(&target->luns, lun, 3540 SLIST_FOREACH(lun, &target->luns, lun_lin [all...] |
/freebsd-11-stable/sys/dev/nand/ |
H A D | nand.c | 115 init_chip_geom(cg, params->luns, params->blocks_per_lun, 159 blks = cg->blks_per_lun * cg->luns; 188 init_chip_geom(struct chip_geom *cg, uint32_t luns, uint32_t blks_per_lun, argument 196 cg->luns = luns; 198 cg->blks_per_chip = blks_per_lun * luns; 219 shift = fls(cg->luns - 1); 278 if (page >= (cg->pgs_per_blk * cg->blks_per_lun * cg->luns)) { 296 param->blocks = cg->blks_per_lun * cg->luns;
|
H A D | nand.h | 198 uint8_t luns; member in struct:onfi_params 249 uint8_t luns; member in struct:onfi_chip_params 286 uint32_t luns; member in struct:chip_geom 405 int init_chip_geom(struct chip_geom* cg, uint32_t luns, uint32_t blks_per_lun,
|
H A D | nand_generic.c | 391 chip_params->luns = params.luns; 675 if (block >= (chip->chip_geom.blks_per_lun * chip->chip_geom.luns)) 711 if (block >= (chip->chip_geom.blks_per_lun * chip->chip_geom.luns))
|
H A D | nandsim.h | 92 uint32_t luns; member in struct:sim_chip
|
H A D | nandsim_chip.c | 133 chip_param->luns = sim_chip->luns; 135 init_chip_geom(&chip->cg, chip_param->luns, chip_param->blocks_per_lun, 145 size = chip_param->blocks_per_lun * chip_param->luns; 188 chip_param->luns, size);
|
/freebsd-11-stable/tools/tools/vhba/mptest/ |
H A D | vhba_mptest.c | 41 SYSCTL_INT(_debug, OID_AUTO, vhba_notify_stop, CTLFLAG_RW, &vhba_notify_stop, 1, "notify when luns go away"); 42 SYSCTL_INT(_debug, OID_AUTO, vhba_notify_start, CTLFLAG_RW, &vhba_notify_start, 1, "notify when luns arrive"); 43 SYSCTL_INT(_debug, OID_AUTO, vhba_inject_hwerr, CTLFLAG_RW, &vhba_inject_hwerr, 0, "inject hardware error on lost luns"); 60 int luns[2]; member in struct:__anon13736 85 vhbastatic.luns[0] = 1; 86 vhbastatic.luns[1] = 1; 151 if (vhba_inject_hwerr && csio->ccb_h.target_lun < MAX_LUN && vhbas->luns[csio->ccb_h.target_lun] == 0) { 156 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) { 418 if (vhbas->luns[lun]) { 424 vhbas->luns[lu [all...] |
/freebsd-11-stable/usr.sbin/ctladm/ |
H A D | ctladm.c | 964 switch (lun_data->luns[i].lundata[0] & RPL_LUNDATA_ATYP_MASK) { 966 lun_val = lun_data->luns[i].lundata[1]; 969 lun_val = (lun_data->luns[i].lundata[0] & 971 (lun_data->luns[i].lundata[1] << 978 lun_data->luns[i].lundata[0] & 1762 switch (lun_data->luns[i].lundata[0] & RPL_LUNDATA_ATYP_MASK) { 1764 lun_val = lun_data->luns[i].lundata[1]; 1767 lun_val = (lun_data->luns[i].lundata[0] & 1769 (lun_data->luns[i].lundata[1] << 1776 lun_data->luns[ [all...] |
/freebsd-11-stable/usr.sbin/nandsim/ |
H A D | nandsim.c | 1219 chip->luns,chip->prog_time, chip->erase_time,
|
H A D | nandsim_cfgparse.c | 116 {"luns", 1, VALUE_UINT | SIZE_32, (void *)&chip_conf.luns, 0}, 446 chipsptr[i].luns, chipsptr[i].error_ratio,
|
H A D | sample.conf | 124 # luns=1..N 125 luns=1
|
/freebsd-11-stable/sbin/camcontrol/ |
H A D | camcontrol.c | 7139 for (j = 0; j < sizeof(lundata->luns[i].lundata); j += 2) { 7142 switch (lundata->luns[i].lundata[j] & 7145 if ((lundata->luns[i].lundata[j] & 7148 lundata->luns[i].lundata[j] & 7151 && ((lundata->luns[i].lundata[j+2] & 7156 lundata->luns[i].lundata[j+1]); 7160 tmplun[0] = lundata->luns[i].lundata[j] & 7162 tmplun[1] = lundata->luns[i].lundata[j+1]; 7170 (lundata->luns[i].lundata[j+1] & 7172 lundata->luns[ [all...] |
/freebsd-11-stable/sys/cam/ctl/ |
H A D | ctl.c | 4720 * inventory changed UA for all other luns. 9045 be64enc(lun_data->luns[num_filled++].lundata, 9059 * If request_lun is NULL, the LUN this report luns command 11357 * don't fall into the "reset" category (e.g. "reported luns data
|
/freebsd-11-stable/sys/cam/scsi/ |
H A D | scsi_all.h | 3020 struct scsi_report_luns_lundata luns[0]; member in struct:scsi_report_luns_data
|
H A D | scsi_xpt.c | 87 ((((x)->luns[i].lundata[0] & RPL_LUNDATA_ATYP_MASK) == \ 89 (((x)->luns[i].lundata[0] & RPL_LUNDATA_ATYP_MASK) == \ 92 if (((lp)->luns[(i)].lundata[0] & RPL_LUNDATA_ATYP_MASK) == \ 94 (lval) = (lp)->luns[(i)].lundata[1]; \ 96 (lval) = (lp)->luns[(i)].lundata[0]; \ 99 (lval) |= (lp)->luns[(i)].lundata[1]; \ 102 (lval) = scsi_8btou64((lp)->luns[(i)].lundata); \ 106 * If we're not quirked to search <= the first 8 luns 110 * we can look for luns above lun 8. 710 * luns [all...] |