Lines Matching refs:TW_Q_LENGTH
189 if (tw_dev->pending_tail == TW_Q_LENGTH-1) {
279 tw_dev->free_tail = (tw_dev->free_tail + 1) % TW_Q_LENGTH;
286 tw_dev->free_head = (tw_dev->free_head + 1) % TW_Q_LENGTH;
328 if (queue_depth > TW_Q_LENGTH-2)
329 queue_depth = TW_Q_LENGTH-2;
452 if (tw_dev->aen_tail == TW_Q_LENGTH - 1) {
458 if (tw_dev->aen_head == TW_Q_LENGTH - 1) {
613 if (tw_dev->aen_tail == TW_Q_LENGTH - 1) {
619 if (tw_dev->aen_head == TW_Q_LENGTH - 1) {
646 cpu_addr = pci_alloc_consistent(tw_dev->tw_pci_dev, size*TW_Q_LENGTH, &dma_handle);
654 pci_free_consistent(tw_dev->tw_pci_dev, size*TW_Q_LENGTH, cpu_addr, dma_handle);
658 memset(cpu_addr, 0, size*TW_Q_LENGTH);
660 for (i=0;i<TW_Q_LENGTH;i++) {
744 if (tw_dev->aen_head == TW_Q_LENGTH - 1) {
861 pci_free_consistent(tw_dev->tw_pci_dev, sizeof(TW_Command)*TW_Q_LENGTH, tw_dev->command_packet_virtual_address[0], tw_dev->command_packet_physical_address[0]);
864 pci_free_consistent(tw_dev->tw_pci_dev, sizeof(TW_Sector)*TW_Q_LENGTH, tw_dev->alignment_virtual_address[0], tw_dev->alignment_physical_address[0]);
1060 for (i=0;i<TW_Q_LENGTH;i++) {
1148 for (i=0;i<TW_Q_LENGTH;i++) {
1162 for (i=0;i<TW_Q_LENGTH;i++) {
1950 if (tw_dev->pending_head == TW_Q_LENGTH-1) {
2120 .can_queue = TW_Q_LENGTH-2,