/freebsd-12-stable/usr.sbin/nandsim/ |
H A D | sample.conf | 124 # luns=1..N 125 luns=1
|
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 | nandsim.c | 1219 chip->luns,chip->prog_time, chip->erase_time,
|
/freebsd-12-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:__anon17231 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-12-stable/sys/dev/mpr/ |
H A D | mpr_sas_lsi.c | 984 while (!SLIST_EMPTY(&targ->luns)) { 985 lun = SLIST_FIRST(&targ->luns); 986 SLIST_REMOVE_HEAD(&targ->luns, lun_link); 989 SLIST_INIT(&targ->luns); 1365 while (!SLIST_EMPTY(&targ->luns)) { 1366 lun = SLIST_FIRST(&targ->luns); 1367 SLIST_REMOVE_HEAD(&targ->luns, lun_link); 1370 SLIST_INIT(&targ->luns); 1430 while (!SLIST_EMPTY(&targ->luns)) { 1431 lun = SLIST_FIRST(&targ->luns); [all...] |
H A D | mpr_sas.h | 64 SLIST_HEAD(, mprsas_lun) luns; member in struct:mprsas_target
|
H A D | mpr_sas.c | 702 while (!SLIST_EMPTY(&targ->luns)) { 703 lun = SLIST_FIRST(&targ->luns); 704 SLIST_REMOVE_HEAD(&targ->luns, lun_link); 962 SLIST_FOREACH_SAFE(lun, &targ->luns, lun_link, lun_tmp) { 2126 SLIST_FOREACH(lun, &targ->luns, lun_link) { 3526 SLIST_FOREACH(lun, &target->luns, lun_link) { 3542 SLIST_INSERT_HEAD(&target->luns, lun, lun_link); 3674 SLIST_FOREACH(lun, &target->luns, lun_link) { 3691 SLIST_INSERT_HEAD(&target->luns, lun, lun_link); 3770 SLIST_FOREACH(lun, &target->luns, lun_lin [all...] |
/freebsd-12-stable/sys/dev/nand/ |
H A D | nand.c | 117 init_chip_geom(cg, params->luns, params->blocks_per_lun, 161 blks = cg->blks_per_lun * cg->luns; 190 init_chip_geom(struct chip_geom *cg, uint32_t luns, uint32_t blks_per_lun, argument 198 cg->luns = luns; 200 cg->blks_per_chip = blks_per_lun * luns; 221 shift = fls(cg->luns - 1); 280 if (page >= (cg->pgs_per_blk * cg->blks_per_lun * cg->luns)) { 298 param->blocks = cg->blks_per_lun * cg->luns;
|
H A D | nand.h | 200 uint8_t luns; member in struct:onfi_params 251 uint8_t luns; member in struct:onfi_chip_params 288 uint32_t luns; member in struct:chip_geom 407 int init_chip_geom(struct chip_geom* cg, uint32_t luns, uint32_t blks_per_lun,
|
H A D | nandsim.h | 94 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 | 425 num_pages = cg->pgs_per_blk * cg->blks_per_lun * cg->luns; 448 if (block_num >= cg->blks_per_lun * cg->luns)
|
H A D | nandsim.c | 480 blocks = params->luns * params->blocks_per_lun; 509 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-12-stable/sys/dev/mps/ |
H A D | mps_sas.h | 62 SLIST_HEAD(, mpssas_lun) luns; member in struct:mpssas_target
|
H A D | mps_sas_lsi.c | 763 while(!SLIST_EMPTY(&targ->luns)) { 764 lun = SLIST_FIRST(&targ->luns); 765 SLIST_REMOVE_HEAD(&targ->luns, lun_link); 768 SLIST_INIT(&targ->luns); 1063 while(!SLIST_EMPTY(&targ->luns)) { 1064 lun = SLIST_FIRST(&targ->luns); 1065 SLIST_REMOVE_HEAD(&targ->luns, lun_link); 1068 SLIST_INIT(&targ->luns);
|
H A D | mps_sas.c | 693 while(!SLIST_EMPTY(&targ->luns)) { 694 lun = SLIST_FIRST(&targ->luns); 695 SLIST_REMOVE_HEAD(&targ->luns, lun_link); 904 SLIST_FOREACH_SAFE(lun, &targ->luns, lun_link, lun_tmp) { 1847 SLIST_FOREACH(lun, &targ->luns, lun_link) { 3227 SLIST_FOREACH(lun, &target->luns, lun_link) { 3243 SLIST_INSERT_HEAD(&target->luns, lun, lun_link); 3368 SLIST_FOREACH(lun, &target->luns, lun_link) { 3385 SLIST_INSERT_HEAD(&target->luns, lun, 3467 SLIST_FOREACH(lun, &target->luns, lun_lin [all...] |
/freebsd-12-stable/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_8btou64((lp)->luns[(i)].lundata); \ 108 * If we're not quirked to search <= the first 8 luns 112 * we can look for luns above lun 8. 719 * luns [all...] |
/freebsd-12-stable/sys/dev/firewire/ |
H A D | sbp.c | 201 struct sbp_dev **luns; member in struct:sbp_target 455 sdev = target->luns[lun]; 463 target->luns[lun] = NULL; 469 newluns = (struct sbp_dev **) realloc(target->luns, 475 newluns = target->luns; 488 target->luns = newluns; 505 sdev = target->luns[lun]; 513 target->luns[lun] = sdev; 539 target->luns[lun] = NULL; 571 sdev = target->luns[lu [all...] |
/freebsd-12-stable/sys/cam/ |
H A D | cam_xpt_internal.h | 177 struct scsi_report_luns_data *luns; member in struct:cam_et 178 struct mtx luns_mtx; /* Protection for luns field. */
|
H A D | cam_xpt.c | 2666 * that luns are a 3 bit value and reserves only 3 2669 * luns, but have deprecated lun information in the 2947 * then devices/luns on a target, and then peripherals on a 4825 target->luns = NULL; 4874 if (target->luns) 4875 free(target->luns, M_CAMXPT);
|
/freebsd-12-stable/sys/dev/esp/ |
H A D | ncr53c9x.c | 227 LIST_FOREACH(li, &ti->luns, link) 445 for (li = LIST_FIRST(&sc->sc_tinfo[t].luns); li; 596 LIST_FOREACH(li, &sc->sc_tinfo[target].luns, link) { 640 LIST_INIT(&sc->sc_tinfo[r].luns); 1289 LIST_INSERT_HEAD(&ti->luns, li, link); 2537 li = LIST_FIRST(&ti->luns); 2547 li = LIST_FIRST(&ti->luns); 3242 li = LIST_FIRST(&ti->luns); 3252 li = LIST_FIRST(&ti->luns);
|
H A D | ncr53c9xvar.h | 199 LIST_HEAD(lun_list, ncr53c9x_linfo) luns; member in struct:ncr53c9x_tinfo
|
/freebsd-12-stable/usr.sbin/ctladm/ |
H A D | ctladm.c | 1074 switch (lun_data->luns[i].lundata[0] & RPL_LUNDATA_ATYP_MASK) { 1076 lun_val = lun_data->luns[i].lundata[1]; 1079 lun_val = (lun_data->luns[i].lundata[0] & 1081 (lun_data->luns[i].lundata[1] << 1088 lun_data->luns[i].lundata[0] & 1872 switch (lun_data->luns[i].lundata[0] & RPL_LUNDATA_ATYP_MASK) { 1874 lun_val = lun_data->luns[i].lundata[1]; 1877 lun_val = (lun_data->luns[i].lundata[0] & 1879 (lun_data->luns[i].lundata[1] << 1886 lun_data->luns[ [all...] |
/freebsd-12-stable/sbin/camcontrol/ |
H A D | camcontrol.c | 7340 for (j = 0; j < sizeof(lundata->luns[i].lundata); j += 2) { 7343 switch (lundata->luns[i].lundata[j] & 7346 if ((lundata->luns[i].lundata[j] & 7349 lundata->luns[i].lundata[j] & 7352 && ((lundata->luns[i].lundata[j+2] & 7357 lundata->luns[i].lundata[j+1]); 7361 tmplun[0] = lundata->luns[i].lundata[j] & 7363 tmplun[1] = lundata->luns[i].lundata[j+1]; 7371 (lundata->luns[i].lundata[j+1] & 7373 lundata->luns[ [all...] |