Lines Matching refs:TW_Q_LENGTH
388 if (tw_dev->pending_tail == TW_Q_LENGTH-1) { in tw_post_command_packet()
478 tw_dev->free_tail = (tw_dev->free_tail + 1) % TW_Q_LENGTH; in tw_state_request_finish()
485 tw_dev->free_head = (tw_dev->free_head + 1) % TW_Q_LENGTH; in tw_state_request_start()
643 if (tw_dev->aen_tail == TW_Q_LENGTH - 1) { in tw_aen_complete()
649 if (tw_dev->aen_head == TW_Q_LENGTH - 1) { in tw_aen_complete()
804 if (tw_dev->aen_tail == TW_Q_LENGTH - 1) { in tw_aen_drain_queue()
810 if (tw_dev->aen_head == TW_Q_LENGTH - 1) { in tw_aen_drain_queue()
838 size * TW_Q_LENGTH, &dma_handle, GFP_KERNEL); in tw_allocate_memory()
846 dma_free_coherent(&tw_dev->tw_pci_dev->dev, size * TW_Q_LENGTH, in tw_allocate_memory()
851 memset(cpu_addr, 0, size*TW_Q_LENGTH); in tw_allocate_memory()
853 for (i=0;i<TW_Q_LENGTH;i++) { in tw_allocate_memory()
941 if (tw_dev->aen_head == TW_Q_LENGTH - 1) { in tw_chrdev_ioctl()
1066 sizeof(TW_Command) * TW_Q_LENGTH, in tw_free_device_extension()
1072 sizeof(TW_Sector) * TW_Q_LENGTH, in tw_free_device_extension()
1270 for (i=0;i<TW_Q_LENGTH;i++) { in tw_initialize_device_extension()
1300 for (i=0;i<TW_Q_LENGTH;i++) { in tw_reset_device_extension()
1314 for (i=0;i<TW_Q_LENGTH;i++) { in tw_reset_device_extension()
2064 if (tw_dev->pending_head == TW_Q_LENGTH-1) { in DEF_SCSI_QCMD()
2242 .can_queue = TW_Q_LENGTH-2,