• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/scsi/

Lines Matching defs:tag

216  * tag, but that doesn't hurt. Only the sequence in cmd_free_tag() becomes
217 * important: the tag bit must be cleared before 'nr_allocated' is decreased.
220 /* -1 for TAG_NONE is not possible with unsigned char cmd->tag */
258 * check that there is a free tag and the target's queue won't overflow. This
282 /* Allocate a tag for a command (there are no checks anymore, check_lun_busy()
296 cmd->tag = TAG_NONE;
303 cmd->tag = find_first_zero_bit(ta->allocated, MAX_TAGS);
304 set_bit(cmd->tag, ta->allocated);
306 TAG_PRINTK("scsi%d: using tag %d for target %d lun %d "
308 H_NO(cmd), cmd->tag, cmd->device->id,
314 /* Mark the tag of command 'cmd' as free, or in case of an untagged command,
322 if (cmd->tag == TAG_NONE) {
326 } else if (cmd->tag >= MAX_TAGS) {
327 printk(KERN_NOTICE "scsi%d: trying to free bad tag %d!\n",
328 H_NO(cmd), cmd->tag);
331 clear_bit(cmd->tag, ta->allocated);
333 TAG_PRINTK("scsi%d: freed tag %d for target %d lun %d\n",
334 H_NO(cmd), cmd->tag, cmd->device->id, cmd->device->lun);
1274 * int tag);
1281 * target lives, cmd - SCSI command to execute, tag - set to TAG_NEXT for
1282 * new tag, TAG_NONE for untagged queueing, otherwise set to the tag for
1303 static int NCR5380_select(struct Scsi_Host *instance, Scsi_Cmnd *cmd, int tag)
1537 if (cmd->tag != TAG_NONE) {
1539 tmp[2] = cmd->tag;
1545 cmd->tag = 0;
1986 cmd->next_link->tag = cmd->tag;
2116 cmd->tag = TAG_NONE;
2311 unsigned char tag;
2370 tag = TAG_NONE;
2378 tag = msg[2];
2379 TAG_PRINTK("scsi%d: target mask %02x, lun %d sent tag %d at "
2380 "reselection\n", HOSTNO, target_mask, lun, tag);
2393 && (tag == tmp->tag)
2413 "tag %d "
2418 , tag
2433 RSL_PRINTK("scsi%d: nexus established, target = %d, lun = %d, tag = %d\n",
2434 HOSTNO, tmp->device->id, tmp->device->lun, tmp->tag);
2524 /* Tagged queuing note: no tag to free here, hasn't been assigned
2580 if (NCR5380_select(instance, cmd, (int)cmd->tag))
2596 /* We must unlock the tag/LUN immediately here, since the