/freebsd-10.1-release/usr.sbin/nandsim/ |
H A D | sample.conf | 124 # luns=1..N 125 luns=1
|
H A D | nandsim_cfgparse.c | 114 {"luns", 1, VALUE_UINT | SIZE_32, (void *)&chip_conf.luns, 0}, 444 chipsptr[i].luns, chipsptr[i].error_ratio,
|
H A D | nandsim.c | 1217 chip->luns,chip->prog_time, chip->erase_time,
|
/freebsd-10.1-release/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:__anon11750 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-10.1-release/sys/dev/mpr/ |
H A D | mpr_sas.h | 64 SLIST_HEAD(, mprsas_lun) luns; member in struct:mprsas_target
|
H A D | mpr_sas_lsi.c | 787 while (!SLIST_EMPTY(&targ->luns)) { 788 lun = SLIST_FIRST(&targ->luns); 789 SLIST_REMOVE_HEAD(&targ->luns, lun_link); 792 SLIST_INIT(&targ->luns); 990 while (!SLIST_EMPTY(&targ->luns)) { 991 lun = SLIST_FIRST(&targ->luns); 992 SLIST_REMOVE_HEAD(&targ->luns, lun_link); 995 SLIST_INIT(&targ->luns); 1045 SLIST_FOREACH(lun, &target->luns, lun_link) {
|
H A D | mpr_sas.c | 677 while (!SLIST_EMPTY(&targ->luns)) { 678 lun = SLIST_FIRST(&targ->luns); 679 SLIST_REMOVE_HEAD(&targ->luns, lun_link); 936 SLIST_FOREACH_SAFE(lun, &targ->luns, lun_link, lun_tmp) { 1828 SLIST_FOREACH(lun, &targ->luns, lun_link) { 3060 SLIST_FOREACH(lun, &target->luns, lun_link) { 3076 SLIST_INSERT_HEAD(&target->luns, lun, lun_link); 3158 SLIST_FOREACH(lun, &target->luns, lun_link) { 3173 SLIST_INSERT_HEAD(&target->luns, lun, lun_link); 3253 SLIST_FOREACH(lun, &target->luns, lun_lin [all...] |
/freebsd-10.1-release/sys/dev/mps/ |
H A D | mps_sas.h | 61 SLIST_HEAD(, mpssas_lun) luns; member in struct:mpssas_target
|
H A D | mps_sas_lsi.c | 701 while(!SLIST_EMPTY(&targ->luns)) { 702 lun = SLIST_FIRST(&targ->luns); 703 SLIST_REMOVE_HEAD(&targ->luns, lun_link); 706 SLIST_INIT(&targ->luns); 898 while(!SLIST_EMPTY(&targ->luns)) { 899 lun = SLIST_FIRST(&targ->luns); 900 SLIST_REMOVE_HEAD(&targ->luns, lun_link); 903 SLIST_INIT(&targ->luns); 950 SLIST_FOREACH(lun, &target->luns, lun_link) {
|
H A D | mps_sas.c | 670 while(!SLIST_EMPTY(&targ->luns)) { 671 lun = SLIST_FIRST(&targ->luns); 672 SLIST_REMOVE_HEAD(&targ->luns, lun_link); 890 SLIST_FOREACH_SAFE(lun, &targ->luns, lun_link, lun_tmp) { 1768 SLIST_FOREACH(lun, &targ->luns, lun_link) { 3216 SLIST_FOREACH(lun, &target->luns, lun_link) { 3232 SLIST_INSERT_HEAD(&target->luns, lun, lun_link); 3341 SLIST_FOREACH(lun, &target->luns, lun_link) { 3358 SLIST_INSERT_HEAD(&target->luns, lun, 3453 SLIST_FOREACH(lun, &target->luns, lun_lin [all...] |
/freebsd-10.1-release/sys/dev/nand/ |
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.c | 124 init_chip_geom(cg, params->luns, params->blocks_per_lun, 168 blks = cg->blks_per_lun * cg->luns; 197 init_chip_geom(struct chip_geom *cg, uint32_t luns, uint32_t blks_per_lun, argument 205 cg->luns = luns; 207 cg->blks_per_chip = blks_per_lun * luns; 228 shift = fls(cg->luns - 1); 287 if (page >= (cg->pgs_per_blk * cg->blks_per_lun * cg->luns)) { 305 param->blocks = cg->blks_per_lun * cg->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);
|
H A D | nand_cdev.c | 423 num_pages = cg->pgs_per_blk * cg->blks_per_lun * cg->luns; 446 if (block_num >= cg->blks_per_lun * cg->luns)
|
H A D | nandsim.c | 477 blocks = params->luns * params->blocks_per_lun; 506 blocks = params->luns * params->blocks_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))
|
/freebsd-10.1-release/sys/cam/scsi/ |
H A D | scsi_xpt.c | 89 ((((x)->luns[i].lundata[0] & RPL_LUNDATA_ATYP_MASK) == \ 91 (((x)->luns[i].lundata[0] & RPL_LUNDATA_ATYP_MASK) == \ 94 if (((lp)->luns[(i)].lundata[0] & RPL_LUNDATA_ATYP_MASK) == \ 96 (lval) = (lp)->luns[(i)].lundata[1]; \ 98 (lval) = (lp)->luns[(i)].lundata[0]; \ 101 (lval) |= (lp)->luns[(i)].lundata[1]; \ 104 (lval) = scsi_4btoul((lp)->luns[(i)].lundata); \ 107 (scsi_4btoul(&((lp)->luns[(i)].lundata[4])) == 0) 110 * If we're not quirked to search <= the first 8 luns 114 * we can look for luns abov [all...] |
/freebsd-10.1-release/sys/dev/firewire/ |
H A D | sbp.c | 229 struct sbp_dev **luns; member in struct:sbp_target 489 sdev = target->luns[lun]; 497 target->luns[lun] = NULL; 503 newluns = (struct sbp_dev **) realloc(target->luns, 509 newluns = target->luns; 522 target->luns = newluns; 539 sdev = target->luns[lun]; 547 target->luns[lun] = sdev; 573 target->luns[lun] = NULL; 603 sdev = target->luns[lu [all...] |
/freebsd-10.1-release/sys/cam/ |
H A D | cam_xpt_internal.h | 135 struct scsi_report_luns_data *luns; member in struct:cam_et 136 struct mtx luns_mtx; /* Protection for luns field. */
|
H A D | README.quirks | 40 o CAM_QUIRK_NOLUNS - do not probe luns other than 0 since device 45 o CAM_QUIRK_HILUNS - probe all luns even if some respond "not present"
|
/freebsd-10.1-release/usr.sbin/ctladm/ |
H A D | ctladm.c | 1300 switch (lun_data->luns[i].lundata[0] & RPL_LUNDATA_ATYP_MASK) { 1302 lun_val = lun_data->luns[i].lundata[1]; 1305 lun_val = (lun_data->luns[i].lundata[0] & 1307 (lun_data->luns[i].lundata[1] << 1314 lun_data->luns[i].lundata[0] & 1532 * - report luns 1534 * - check OOA queue on direct access luns 1568 switch (lun_data->luns[i].lundata[0] & RPL_LUNDATA_ATYP_MASK) { 1570 lun_val = lun_data->luns[i].lundata[1]; 1573 lun_val = (lun_data->luns[ [all...] |
/freebsd-10.1-release/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); 1288 LIST_INSERT_HEAD(&ti->luns, li, link); 2536 li = LIST_FIRST(&ti->luns); 2546 li = LIST_FIRST(&ti->luns); 3241 li = LIST_FIRST(&ti->luns); 3251 li = LIST_FIRST(&ti->luns);
|
H A D | ncr53c9xvar.h | 197 LIST_HEAD(lun_list, ncr53c9x_linfo) luns; member in struct:ncr53c9x_tinfo
|
/freebsd-10.1-release/sbin/camcontrol/ |
H A D | camcontrol.c | 6121 for (j = 0; j < sizeof(lundata->luns[i].lundata); j += 2) { 6124 switch (lundata->luns[i].lundata[j] & 6127 if ((lundata->luns[i].lundata[j] & 6130 lundata->luns[i].lundata[j] & 6133 && ((lundata->luns[i].lundata[j+2] & 6138 lundata->luns[i].lundata[j+1]); 6142 tmplun[0] = lundata->luns[i].lundata[j] & 6144 tmplun[1] = lundata->luns[i].lundata[j+1]; 6152 (lundata->luns[i].lundata[j+1] & 6154 lundata->luns[ [all...] |