Lines Matching refs:ta
324 TAG_ALLOC *ta; in init_tags() local
331 ta = &TagAlloc[target][lun]; in init_tags()
332 CLEAR_BITMAP( ta->allocated, MAX_TAGS ); in init_tags()
333 ta->nr_allocated = 0; in init_tags()
338 ta->queue_size = MAX_TAGS; in init_tags()
390 TAG_ALLOC *ta = &TagAlloc[cmd->target][cmd->lun]; in cmd_get_tag() local
392 cmd->tag = find_first_zero_bit( ta->allocated, MAX_TAGS ); in cmd_get_tag()
393 set_bit( cmd->tag, ta->allocated ); in cmd_get_tag()
394 ta->nr_allocated++; in cmd_get_tag()
398 ta->nr_allocated ); in cmd_get_tag()
421 TAG_ALLOC *ta = &TagAlloc[cmd->target][cmd->lun]; in cmd_free_tag() local
422 clear_bit( cmd->tag, ta->allocated ); in cmd_free_tag()
423 ta->nr_allocated--; in cmd_free_tag()
433 TAG_ALLOC *ta; in free_all_tags() local
440 ta = &TagAlloc[target][lun]; in free_all_tags()
441 CLEAR_BITMAP( ta->allocated, MAX_TAGS ); in free_all_tags()
442 ta->nr_allocated = 0; in free_all_tags()
2202 TAG_ALLOC *ta = &TagAlloc[cmd->target][cmd->lun]; in NCR5380_information_transfer() local
2206 ta->nr_allocated); in NCR5380_information_transfer()
2207 if (ta->queue_size > ta->nr_allocated) in NCR5380_information_transfer()
2208 ta->nr_allocated = ta->queue_size; in NCR5380_information_transfer()