Lines Matching refs:ta
347 TAG_ALLOC *ta; in init_tags() local
354 ta = &TagAlloc[target][lun]; in init_tags()
355 memset( &ta->allocated, 0, MAX_TAGS/8 ); in init_tags()
356 ta->nr_allocated = 0; in init_tags()
361 ta->queue_size = MAX_TAGS; in init_tags()
413 TAG_ALLOC *ta = &TagAlloc[cmd->target][cmd->lun]; in cmd_get_tag() local
415 cmd->tag = find_first_zero_bit( &ta->allocated, MAX_TAGS ); in cmd_get_tag()
416 set_bit( cmd->tag, &ta->allocated ); in cmd_get_tag()
417 ta->nr_allocated++; in cmd_get_tag()
421 ta->nr_allocated ); in cmd_get_tag()
444 TAG_ALLOC *ta = &TagAlloc[cmd->target][cmd->lun]; in cmd_free_tag() local
445 clear_bit( cmd->tag, &ta->allocated ); in cmd_free_tag()
446 ta->nr_allocated--; in cmd_free_tag()
456 TAG_ALLOC *ta; in free_all_tags() local
463 ta = &TagAlloc[target][lun]; in free_all_tags()
464 memset( &ta->allocated, 0, MAX_TAGS/8 ); in free_all_tags()
465 ta->nr_allocated = 0; in free_all_tags()
2360 TAG_ALLOC *ta = &TagAlloc[cmd->target][cmd->lun]; in NCR5380_information_transfer() local
2364 ta->nr_allocated); in NCR5380_information_transfer()
2365 if (ta->queue_size > ta->nr_allocated) in NCR5380_information_transfer()
2366 ta->nr_allocated = ta->queue_size; in NCR5380_information_transfer()