Lines Matching refs:script

260 	u_long scriptaddr = local_to_PCI((u_long)adp->script);
375 if ((istat & ISTAT_DIP) && (dstat & DSTAT_SIR)) { /* script interrupt */
384 "script interrupt 0x%x with invalid DSA\n",
475 * restart the script now if command completed properly
535 void *scriptaddr = (void *)local_to_PCI((u_long)adp->script);
538 adp->script[Ent_resel_targ0 / 4 + adp->sel_t * 2] =
542 adp->script[free_lo + i] = htoc32(lun_switch[i]);
543 adp->script[free_lo + E_abs_lunsw_return_Used[0]] =
627 uint32_t dsa, *script = adp->script;
629 void *scriptaddr = (void *)local_to_PCI((u_long)script);
633 * The queue management here is a bit tricky: the script always looks
638 * When we're at the end of the queue wait for the script to clear it.
649 if (ctoh32(script[(Ent_script_sched_slot0 / 4) + slot * 2]) ==
663 if (ctoh32(script[(Ent_script_sched_slot0 / 4) + slot * 2]) ==
679 /* CMD script: MOVE MEMORY addr */
684 script[(Ent_script_sched_slot0 / 4) + slot * 2 + 1] =
689 script[(Ent_script_sched_slot0 / 4) + slot * 2] = htoc32(0x80080000);
693 _wbinv((u_long)script, SIOP_SCRIPT_SIZE);
694 /* Signal script it has some work to do */
719 /* The select/reselect script */
745 uint32_t *script = adp->script;
747 void *scriptaddr = (void *)local_to_PCI((u_long)adp->script);
753 if ((ctoh32(script[reseloff]) & 0xff) != 0xff) {
760 script[reseloff + 0] = htoc32(0x800c0080 | target);
761 script[reseloff + 1] =
771 uint32_t *script = adp->script;
774 script[lunsw_off + (Ent_restore_scntl3 / 4)] =
777 script[lunsw_off + (Ent_restore_scntl3 / 4) + 2] =
779 _wbinv((u_long)script, SIOP_SCRIPT_SIZE);
1176 uint32_t *script;
1191 script = ALLOC(uint32_t, SIOP_SCRIPT_SIZE);
1192 if (script == NULL)
1194 scriptaddr = (void *)local_to_PCI((u_long)script);
1242 /* copy and patch the script */
1244 script[i] = htoc32(siop_script[i]);
1246 script[E_abs_msgin_Used[i]] =
1249 /* start script */
1250 _wbinv((u_long)script, SIOP_SCRIPT_SIZE);
1257 tmp.script = script;