Lines Matching refs:we
43 * After starting the selection hardware, we check for reconnecting targets
45 * bus arbitration. The problem with this is that we must keep track of the
46 * SCB that we've already pulled from the QINFIFO and started the selection
47 * on just in case the reselection wins so that we can retry the selection at
86 * interrupts on the "background" channel. So, if we
110 * We have at least one queued SCB now and we don't have any
111 * SCBs in the list of SCBs awaiting selection. If we have
135 * Preset the residual fields in case we never go through a data phase.
136 * This isn't done by the host so we can avoid a DMA to clear these
236 * Reselection has been initiated by a target. Make a note that we've been
279 * As soon as we get a successful selection, the target should go
280 * into the message out phase since we have ATN asserted.
321 * We don't know the target we will connect to,
338 * If we re-enter the data phase after going through another phase, the
340 * On Ultra2, we have to put it into the HCNT field because we have to
372 or SEQ_FLAGS, DPHASE; /* we've seen a data phase */
375 * Also set SG_COUNT and SG_NEXT in memory since we cannot
376 * modify the values in the SCB itself until we see a
398 * When the transfer completes, notify the host that we
416 /* If we are the last SG block, tell the hardware. */
439 /* Exit if we had an underrun. dma clears SINDEX in this case. */
456 * Do we have any prefetch left???
519 * We've loaded all of our segments into the preload layer. Now, we simply
521 * we'll get a phasemis if we do finish, all we really need to do is wait
522 * for a phasemis then check if we did actually complete all the segments.
594 * the ITloop. Jumping to the ITloop ensures that if we happen to get
596 * segment) that we will properly signal an overrun to the kernel.
623 * before we declare it *truly* empty.
789 * We have no idea what this message in is, so we issue a message reject
807 * In either of these conditions, we upload the SCB back to the host so it can
808 * process this information. In the case of a non zero status byte, we
812 * RETURN_1 to SEND_SENSE. If RETURN_1 is set to SEND_SENSE we redownload
841 * Prepare our selection hardware before the busfree so we have a
848 /* If we are untagged, clear our address up in host ram */
894 * only if we've actually been into a data phase to change them. This
896 * since they are only initialized when we go into data_in or data_out.
901 * The SCB SGPTR becomes the next one we'll download,
921 * SCB anytime we enter a data phase for the first time, so all
922 * we need to do is clear the DPHASE flag and let the data phase
936 * clearing the "disconnected" bit so we don't "find" it by accident later.
962 * Here we "snoop" the bus looking for a SIMPLE QUEUE TAG message.
963 * If we get one, we use the tag returned to find the proper
966 * If we're not using SCB paging, we can use the tag as the direct
1003 * Message reject? Let the kernel driver handle this. If we have an
1006 * it since we have no clue what it pertains to.
1015 * sg element array, so we know have to back that advance out).
1021 * In order for this to be reliable, we have to do all sorts of horrible
1045 * the target until SCSIDATL is read from. So we wait until SCSIDATL is
1047 * using SCSIBUSL. When we have pulled the ATN line, or we just want to
1048 * acknowledge the byte, then we do a dummy read from SCISDATL. The SCSI
1050 * we send our ACK.
1102 * the DMA circuitry doesn't ACK when PHASEMIS is active). If we are
1117 * actually off first lest we get an ILLSADDR.
1144 * Assert that if we've been reselected, then we've seen an IDENTIFY
1183 * we go directly to the host for the SCB.
1208 * We didn't find it. Pull an SCB and DMA down the one we want.
1213 /* Jump instead of call as we want to return anyway */
1222 * The SCBPTR_VALID bit is set in SEQ_FLAGS if we found the information
1414 * Set the A to -24. It it hits 0, then we let
1419 * case, so we may need to drain the fifo at most
1445 * our bug, so now we drain what data there is in the
1460 * We've emptied the fifo now, but we wouldn't have got
1464 * all the data down, HDONE will be set and we'll