siop_lun
siop_lun->siop_tag[tag].active = NULL;
struct siop_lun *siop_lun =
((struct siop_target*)sc->sc_c.targets[xs->sc_link->target])->siop_lun[xs->sc_link->lun];
siop_lun->lun_flags |= SIOP_LUNF_FULL;
siop_lun->lun_flags &= ~SIOP_LUNF_FULL;
struct siop_lun *siop_lun =
((struct siop_target*)sc->sc_c.targets[target])->siop_lun[lun];
if (siop_lun->siop_tag[0].active != NULL) {
target, lun, siop_lun->siop_tag[0].active->cmd_c.status);
siop_lun->siop_tag[tag].active = NULL;
siop_lun->siop_tag[0].active = siop_cmd;
if (siop_lun->siop_tag[0].reseloff > 0) {
siop_lun->siop_tag[0].reseloff + 1,
struct siop_lun *siop_lun;
siop_lun = siop_target->siop_lun[lun];
if (siop_lun == NULL)
siop_lun->lun_flags &= ~SIOP_LUNF_FULL;
siop_cmd = siop_lun->siop_tag[tag].active;
siop_lun->siop_tag[tag].active = NULL;
siop_target->siop_lun[i] = NULL;
if (siop_target->siop_lun[lun] == NULL) {
siop_target->siop_lun[lun] =
malloc(sizeof(struct siop_lun), M_DEVBUF,
if (siop_target->siop_lun[lun] == NULL) {
struct siop_lun *siop_lun;
siop_lun =
((struct siop_target*)sc->sc_c.targets[target])->siop_lun[lun];
if (siop_lun->siop_tag[0].active != NULL)
if ((siop_lun->lun_flags & SIOP_LUNF_FULL) &&
if (siop_lun->siop_tag[tag].active == NULL)
siop_lun->siop_tag[tag].active = siop_cmd;
if (siop_lun->siop_tag[tag].reseloff > 0)
siop_lun->siop_tag[tag].reseloff + 1,
struct siop_lun *siop_lun;
siop_lun = siop_target->siop_lun[i];
if (siop_lun == NULL)
if (siop_lun->reseloff > 0) {
siop_lun->reseloff = 0;
siop_lun->siop_tag[j].reseloff = 0;
struct siop_lun *siop_lun = siop_target->siop_lun[lun];
if (siop_lun->reseloff > 0)
siop_lun->reseloff = sc->script_free_lo - 2;
siop_lun->reseloff + 1,
siop_lun->siop_tag[i].reseloff =
siop_lun->siop_tag[0].reseloff =
siop_target->siop_lun[lun]->reseloff;
free(siop_target->siop_lun[lun], M_DEVBUF, 0);
siop_target->siop_lun[lun] = NULL;
if (siop_target->siop_lun[i] != NULL)
struct siop_lun *siop_lun;
siop_lun = siop_target->siop_lun[lun];
siop_lun = NULL;
} else if (siop_lun->siop_tag[tag].active != siop_cmd) {
siop_lun->siop_tag[tag].active);
siop_lun = NULL;
siop_lun = siop_target->siop_lun[lun];
if (siop_lun == NULL) {
if (siop_lun->siop_tag[tag].active == NULL) {
siop_cmd = siop_lun->siop_tag[tag].active;
struct siop_lun *siop_lun[8]; /* per-lun state */