Home | History | Annotate | Download | only in ic

Lines Matching defs:siop_target

251 		struct siop_target *target;
258 target = (struct siop_target *)sc->sc_c.targets[i];
297 struct siop_target *siop_target;
340 siop_target = (struct siop_target *)siop_cmd->cmd_c.siop_target;
344 siop_lun = siop_target->siop_lun[lun];
351 siop_target = NULL;
365 siop_target = NULL;
648 siop_target =
649 (struct siop_target *)sc->sc_c.targets[target];
650 if (siop_target == NULL) {
655 siop_lun = siop_target->siop_lun[lun];
716 if ((siop_target->target_c.flags &
718 siop_target->target_c.status =
726 siop_target->target_c.status =
739 siop_target->target_c.offset = 0;
740 siop_target->target_c.period = 0;
741 siop_target->target_c.status = TARST_OK;
853 siop_cmd->cmd_c.siop_target);
861 siop_cmd->cmd_c.siop_target);
874 siop_cmd->cmd_c.siop_target);
882 siop_cmd->cmd_c.siop_target);
991 if (freetarget && siop_target->target_c.status == TARST_PROBING)
1076 ((struct siop_target *)sc->sc_c.targets[target])->siop_lun[lun];
1129 ((struct siop_target*)sc->sc_c.targets[target])->siop_lun[lun];
1193 struct siop_target *siop_target =
1194 (struct siop_target *)sc->sc_c.targets[target];
1195 siop_lun = siop_target->siop_lun[lun];
1234 struct siop_target *siop_target;
1262 siop_target = (struct siop_target *)sc->sc_c.targets[target];
1263 if (siop_target == NULL) {
1265 printf("%s: alloc siop_target for target %d\n",
1269 malloc(sizeof(struct siop_target),
1282 siop_target =
1283 (struct siop_target *)sc->sc_c.targets[target];
1284 siop_target->target_c.status = TARST_PROBING;
1285 siop_target->target_c.flags = 0;
1286 siop_target->target_c.id =
1288 siop_target->target_c.id |= target << 16; /* id */
1289 /* siop_target->target_c.id |= 0x0 << 8; scxfer is 0 */
1292 siop_target->lunsw = siop_get_lunsw(sc);
1293 if (siop_target->lunsw == NULL) {
1305 siop_target->siop_lun[i] = NULL;
1308 if (siop_target->siop_lun[lun] == NULL) {
1309 siop_target->siop_lun[lun] =
1312 if (siop_target->siop_lun[lun] == NULL) {
1325 siop_cmd->cmd_c.siop_target = sc->sc_c.targets[target];
1478 ((struct siop_target*)sc->sc_c.targets[target])->siop_lun[lun];
1828 struct siop_target *siop_target;
1831 siop_target = (struct siop_target *)sc->sc_c.targets[target];
1837 siop_target->reseloff = Ent_resel_targ0 / 4 + i * 2;
1838 if ((siop_script_read(sc, siop_target->reseloff) & 0xff)
1842 target, i, siop_target->reseloff);
1845 siop_script_write(sc, siop_target->reseloff,
1847 siop_script_write(sc, siop_target->reseloff + 1,
1849 siop_target->lunsw->lunsw_off * 4 +
1859 siop_lun = siop_target->siop_lun[i];
1877 struct siop_target *siop_target = (struct siop_target *)_siop_target;
1881 siop_target->lunsw->lunsw_off + (Ent_restore_scntl3 / 4),
1882 0x78030000 | ((siop_target->target_c.id >> 16) & 0x0000ff00));
1885 siop_target->lunsw->lunsw_off + (Ent_restore_scntl3 / 4) + 2,
1886 0x78050000 | (siop_target->target_c.id & 0x0000ff00));
1894 struct siop_target *siop_target =
1895 (struct siop_target *)sc->sc_c.targets[target];
1896 struct siop_lun *siop_lun = siop_target->siop_lun[lun];
1901 lunsw = siop_target->lunsw;
1924 ((siop_target->target_c.flags & TARF_TAG) ?
1952 if (siop_target->target_c.flags & TARF_TAG) {
1978 siop_target->siop_lun[lun]->reseloff;
1987 struct siop_target *siop_target;
1995 siop_target = (struct siop_target *)sc->sc_c.targets[target];
1996 free(siop_target->siop_lun[lun], M_DEVBUF);
1997 siop_target->siop_lun[lun] = NULL;
2001 if (siop_target->siop_lun[i] != NULL)
2005 printf("%s: free siop_target for target %d lun %d lunsw offset %d\n",
2007 siop_target->lunsw->lunsw_off);
2013 siop_script_write(sc, siop_target->reseloff, 0x800c00ff);
2015 TAILQ_INSERT_TAIL(&sc->lunsw_list, siop_target->lunsw, next);