Home | History | Annotate | Download | only in ic

Lines Matching defs:lunsw

183 	struct siop_lunsw *lunsw;
240 while((lunsw = TAILQ_FIRST(&sc->lunsw_list)) != NULL) {
242 printf("%s: free lunsw at offset %d\n",
243 device_xname(sc->sc_c.sc_dev), lunsw->lunsw_off);
245 TAILQ_REMOVE(&sc->lunsw_list, lunsw, next);
246 free(lunsw, M_DEVBUF);
259 free(target->lunsw, M_DEVBUF);
260 target->lunsw = siop_get_lunsw(sc);
261 if (target->lunsw == NULL) {
263 "can't alloc lunsw for target %d\n", i);
1292 siop_target->lunsw = siop_get_lunsw(sc);
1293 if (siop_target->lunsw == NULL) {
1295 "can't alloc lunsw for target %d\n",
1781 struct siop_lunsw *lunsw;
1786 lunsw = TAILQ_FIRST(&sc->lunsw_list);
1787 if (lunsw != NULL) {
1789 printf("siop_get_lunsw got lunsw at offset %d\n",
1790 lunsw->lunsw_off);
1792 TAILQ_REMOVE(&sc->lunsw_list, lunsw, next);
1793 return lunsw;
1795 lunsw = malloc(sizeof(struct siop_lunsw), M_DEVBUF, M_NOWAIT|M_ZERO);
1796 if (lunsw == NULL)
1799 printf("allocating lunsw at offset %d\n", sc->script_free_lo);
1817 lunsw->lunsw_off = sc->script_free_lo;
1818 lunsw->lunsw_size = __arraycount(lun_switch);
1819 sc->script_free_lo += lunsw->lunsw_size;
1821 return lunsw;
1849 siop_target->lunsw->lunsw_off * 4 +
1881 siop_target->lunsw->lunsw_off + (Ent_restore_scntl3 / 4),
1885 siop_target->lunsw->lunsw_off + (Ent_restore_scntl3 / 4) + 2,
1893 struct siop_lunsw *lunsw;
1901 lunsw = siop_target->lunsw;
1902 if ((lunsw->lunsw_off + lunsw->lunsw_size) < sc->script_free_lo) {
1950 lunsw->lunsw_size += 2;
2005 printf("%s: free siop_target for target %d lun %d lunsw offset %d\n",
2007 siop_target->lunsw->lunsw_off);
2015 TAILQ_INSERT_TAIL(&sc->lunsw_list, siop_target->lunsw, next);