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()
645 if (tw_dev->aen_tail == TW_Q_LENGTH - 1) { in tw_aen_complete()
651 if (tw_dev->aen_head == TW_Q_LENGTH - 1) { in tw_aen_complete()
806 if (tw_dev->aen_tail == TW_Q_LENGTH - 1) { in tw_aen_drain_queue()
812 if (tw_dev->aen_head == TW_Q_LENGTH - 1) { in tw_aen_drain_queue()
840 size * TW_Q_LENGTH, &dma_handle, GFP_KERNEL); in tw_allocate_memory()
848 dma_free_coherent(&tw_dev->tw_pci_dev->dev, size * TW_Q_LENGTH, in tw_allocate_memory()
853 memset(cpu_addr, 0, size*TW_Q_LENGTH); in tw_allocate_memory()
855 for (i=0;i<TW_Q_LENGTH;i++) { in tw_allocate_memory()
943 if (tw_dev->aen_head == TW_Q_LENGTH - 1) { in tw_chrdev_ioctl()
1068 sizeof(TW_Command) * TW_Q_LENGTH, in tw_free_device_extension()
1074 sizeof(TW_Sector) * TW_Q_LENGTH, in tw_free_device_extension()
1272 for (i=0;i<TW_Q_LENGTH;i++) { in tw_initialize_device_extension()
1302 for (i=0;i<TW_Q_LENGTH;i++) { in tw_reset_device_extension()
1316 for (i=0;i<TW_Q_LENGTH;i++) { in tw_reset_device_extension()
2061 if (tw_dev->pending_head == TW_Q_LENGTH-1) { in DEF_SCSI_QCMD()
2239 .can_queue = TW_Q_LENGTH-2,