Lines Matching refs:TW_Q_LENGTH
422 if ((tw_dev->error_index + 1) == TW_Q_LENGTH)
424 tw_dev->error_index = (tw_dev->error_index + 1 ) % TW_Q_LENGTH;
525 size * TW_Q_LENGTH, &dma_handle, GFP_KERNEL);
533 dma_free_coherent(&tw_dev->tw_pci_dev->dev, size * TW_Q_LENGTH,
538 memset(cpu_addr, 0, size*TW_Q_LENGTH);
540 for (i = 0; i < TW_Q_LENGTH; i++) {
763 event_index = (tw_dev->error_index - 1 + TW_Q_LENGTH) % TW_Q_LENGTH;
804 event_index = (start_index + sequence_id - tw_dev->event_queue[start_index]->sequence_id + 1) % TW_Q_LENGTH;
833 event_index = (start_index + sequence_id - tw_dev->event_queue[start_index]->sequence_id - 1) % TW_Q_LENGTH;
1034 sizeof(TW_Command_Full) * TW_Q_LENGTH,
1040 TW_SECTOR_SIZE * TW_Q_LENGTH,
1052 tw_dev->free_tail = (tw_dev->free_tail + 1) % TW_Q_LENGTH;
1102 tw_dev->free_head = (tw_dev->free_head + 1) % TW_Q_LENGTH;
1187 tw_dev->event_queue[0] = kcalloc(TW_Q_LENGTH, sizeof(TW_Event), GFP_KERNEL);
1194 for (i = 0; i < TW_Q_LENGTH; i++) {
1280 tw_dev->pending_head = (tw_dev->pending_head + 1) % TW_Q_LENGTH;
1549 tw_dev->pending_tail = (tw_dev->pending_tail + 1) % TW_Q_LENGTH;
1591 for (i = 0; i < TW_Q_LENGTH; i++) {
1607 for (i = 0; i < TW_Q_LENGTH; i++) {
1986 .can_queue = TW_Q_LENGTH-2,