Home | History | Annotate | Download | only in ic

Lines Matching defs:esiop_lun

402 	struct esiop_lun *esiop_lun;
458 esiop_lun = esiop_target->esiop_lun[lun];
459 if (esiop_lun == NULL) {
460 printf("esiop_lun (target %d lun %d) not valid\n",
465 (tag >= 0) ? esiop_lun->tactive[tag] : esiop_lun->active;
487 esiop_lun = NULL;
1121 esiop_lun->tactive[tag] = NULL;
1123 esiop_lun->active = NULL;
1218 struct esiop_lun *esiop_lun;
1274 esiop_lun = (lun >= 0) ? esiop_target->esiop_lun[lun] : NULL;
1275 if (esiop_lun == NULL) {
1276 printf("esiop_lun (target %d lun %d) not valid\n",
1280 esiop_cmd = (tag >= 0) ? esiop_lun->tactive[tag] : esiop_lun->active;
1301 esiop_lun->tactive[tag] = NULL;
1303 esiop_lun->active = NULL;
1322 struct esiop_lun *esiop_lun =
1323 ((struct esiop_target *)sc->sc_c.targets[target])->esiop_lun[lun];
1330 if (esiop_lun->tactive[tag] == NULL)
1332 esiop_cmd = esiop_lun->tactive[tag];
1345 esiop_lun->tactive[tag] = NULL;
1369 struct esiop_lun *esiop_lun = esiop_target->esiop_lun[lun];
1377 if (esiop_lun->active != NULL) {
1381 target, lun, esiop_lun->active->cmd_c.status);
1385 esiop_lun->tactive[tag] = NULL;
1387 esiop_lun->active = esiop_cmd;
1408 struct esiop_lun *esiop_lun;
1434 esiop_lun = esiop_target->esiop_lun[lun];
1435 if (esiop_lun == NULL)
1442 esiop_cmd = esiop_lun->tactive[tag];
1444 esiop_cmd = esiop_lun->active;
1455 esiop_lun->tactive[tag] = NULL;
1457 esiop_lun->active = NULL;
1550 esiop_target->esiop_lun[i] = NULL;
1553 if (esiop_target->esiop_lun[lun] == NULL) {
1554 esiop_target->esiop_lun[lun] =
1555 malloc(sizeof(struct esiop_lun), M_DEVBUF,
1557 if (esiop_target->esiop_lun[lun] == NULL) {
1559 "can't alloc esiop_lun for "
1696 struct esiop_lun *esiop_lun;
1733 esiop_lun = esiop_target->esiop_lun[lun];
1735 if (esiop_lun->active != NULL) {
1747 if (esiop_lun->tactive[esiop_cmd->cmd_c.tag] != NULL)
1762 esiop_lun->tactive[esiop_cmd->cmd_c.tag] = esiop_cmd;
1764 esiop_lun->lun_tagtbl->tbl[esiop_cmd->cmd_c.tag] =
1767 esiop_lun->lun_tagtbl->tblblk->blkmap,
1768 esiop_lun->lun_tagtbl->tbl_offset,
1771 esiop_lun->active = esiop_cmd;
2105 struct esiop_lun *esiop_lun = esiop_target->esiop_lun[lun];
2107 if (esiop_lun->lun_tagtbl != NULL)
2111 esiop_lun->lun_tagtbl= TAILQ_FIRST(&sc->free_tagtbl);
2112 if (esiop_lun->lun_tagtbl == NULL) {
2114 esiop_lun->lun_tagtbl= TAILQ_FIRST(&sc->free_tagtbl);
2115 if (esiop_lun->lun_tagtbl == NULL) {
2121 TAILQ_REMOVE(&sc->free_tagtbl, esiop_lun->lun_tagtbl, next);
2125 esiop_lun->lun_tagtbl->tbl_dsa);
2141 free(esiop_target->esiop_lun[lun], M_DEVBUF);
2142 esiop_target->esiop_lun[lun] = NULL;
2150 struct esiop_lun *esiop_lun;
2172 esiop_lun = esiop_target->esiop_lun[lun];
2173 if (esiop_lun == NULL)
2175 if (esiop_lun->lun_tagtbl)
2178 esiop_lun->lun_tagtbl->tbl_dsa);