Lines Matching refs:target
787 static int device_queue_depth(int unit, int target, int lun)
805 if (t != target)
806 t = (target == v) ? v : NO_TARGET;
815 (t == ALL_TARGETS || t == target) &&
917 ** n permits target numbers 0..n-1.
951 ** There should be one slot per target, and one slot
952 ** for each tag of each target in use.
1016 #define HS_DISCONNECT (3) /* Disconnected by target */
1126 u_long target;
1146 ** Declaration of structs: target control block
1153 ** set to the encoded target number with bit 7 set.
1154 ** if it's not this target, jump to the next.
1156 ** JUMP IF (SFBR != #target#), @(next tcb)
1249 ** JUMP IF (SFBR != #lun#), @(next lcb of this target)
1566 u_char target;
1633 ** The SFBR register is loaded with the encoded target id.
1642 struct tcb target[MAX_TARGET]; /* Target data */
2048 ** And try to select this target.
2251 ** The target wants to tranfer too much data
2377 ** the target may disconnect immediately.
2520 ** The target requests a message.
2589 ** load the target id into the SFBR
2809 ** And try to select this target without ATN.
3024 ** let the target fetch our answer.
3079 ** let the target fetch our answer.
3216 ** The target stays in MSG OUT phase after having acked
3251 ** direction chosen by the target.
3329 ** We donnot know the target that reselected us.
3963 struct tcb *tp = &np->target[i];
3970 np->target[i].usrflag = UF_NODISC;
4053 struct tcb *tp = &np->target[cp->target];
4072 dev_info(&starget->dev, "target did not report SYNC.\n");
4113 struct tcb *tp = &np->target[sdev->id];
4700 int target, lun;
4771 for (target = 0; target < MAX_TARGET ; target++) {
4772 tp=&np->target[target];
4829 ** Get command, target and lun pointers.
4834 tp = &np->target[cmd->device->id];
4838 ** We donnot queue more than 1 ccb per target
5085 struct tcb *tp = &np->target[cp->target];
5310 ** Fill in target structure.
5317 struct tcb *tp = &np->target[i];
5481 ** a target according to new sync/wide agreement.
5486 static void ncr_set_sync_wide_status (struct ncb *np, u_char target)
5489 struct tcb *tp = &np->target[target];
5500 ** patch ALL ccbs of this target.
5504 if (scmd_id(cp->cmd) != target) continue;
5516 ** Switch sync mode for current job and it's target
5525 u_char target = INB (nc_sdid) & 0x0f;
5528 BUG_ON(target != (scmd_id(cmd) & 0xf));
5530 tp = &np->target[target];
5563 ** patch ALL ccbs of this target.
5565 ncr_set_sync_wide_status(np, target);
5570 ** Switch wide mode for current job and it's target
5581 u16 target = INB (nc_sdid) & 0x0f;
5586 BUG_ON(target != (scmd_id(cmd) & 0xf));
5588 tp = &np->target[target];
5611 ** patch ALL ccbs of this target.
5613 ncr_set_sync_wide_status(np, target);
5618 ** Switch tagged mode for a target.
5626 struct tcb *tp = &np->target[tn];
6273 ** the target -> add the amount to the rest
6472 ** COMMAND --> MSG IN SCSI parity error detected by target.
6473 ** COMMAND --> STATUS Bad command or refused by target.
6474 ** MSG OUT --> MSG IN Message rejected by target.
6475 ** MSG OUT --> COMMAND Bogus target that discards extended
6479 ** trusts the target. Why to annoy it ?
6482 ** If a target does not get all the messages after selection,
6483 ** the code assumes blindly that the target discards extended
6485 ** If the target does not want all our response to negotiation,
6535 struct tcb *tp = &np->target[cmd->device->id];
6690 u_char target = INB (nc_sdid) & 0x0f;
6691 struct tcb *tp = &np->target[target];
6727 ncr_name (np), target, num);
6732 ncr_name (np), target, num);
6764 ** inquire data to determine the capabilities of the target.
6771 ** If the target doesn't answer this message immediately
6784 ** state, it's a target initiated negotiation. We prepare a
6786 ** this answer to the target.
6788 ** If the target doesn't fetch the answer (no message out phase),
6793 ** to this target, in the controller's register, and in the "phys"
6798 ** -> target doesn't msgin NEG FAIL noop defa. - dispatch
6799 ** -> target rejected our msg NEG FAIL reject defa. - dispatch
6800 ** -> target answered (ok) NEG SYNC sdtr set - clrack
6801 ** -> target answered (!ok) NEG SYNC sdtr defa. REJ--->msg_bad
6802 ** -> target answered (ok) NEG WIDE wdtr set - clrack
6803 ** -> target answered (!ok) NEG WIDE wdtr defa. REJ--->msg_bad
6810 ** -> target doesn't msgout --- PROTO ? defa. - dispatch
6820 ** or target rejected our message.
6878 ** if target sends SDTR message,
6988 ** if target sends WDTR message,
7139 struct tcb *tp = &np->target[tn];
7227 cp->target = tn;
7248 struct tcb *tp = &np->target[cp->target];
7349 struct tcb *tp = &np->target[tn];
7392 ** has been successfully completed for this target.
7393 ** It contains a SCRIPT that is called on target reselection.
7398 struct tcb *tp = &np->target[tn];
7404 ** Jump to next tcb if SFBR does not match this target.
7405 ** JUMP IF (SFBR != #target#), @(next tcb)
7455 ** Link this target control block to the JUMP chain.
7480 ** command has been successfully completed for this target/lun.
7485 struct tcb *tp = &np->target[tn];
7506 ** Initialize the target control block if not yet.
7576 struct tcb *tp = &np->target[tn];
7959 struct tcb *tp = &np->target[device->id];
7969 struct tcb *tp = &np->target[device->id];
8428 * Look for the target control block of this nexus.
8531 struct tcb *tp = &np->target[starget->id];
8547 struct tcb *tp = &np->target[starget->id];
8563 struct tcb *tp = &np->target[starget->id];