Lines Matching refs:TW_Q_LENGTH
420 if ((tw_dev->error_index + 1) == TW_Q_LENGTH)
422 tw_dev->error_index = (tw_dev->error_index + 1 ) % TW_Q_LENGTH;
524 size * TW_Q_LENGTH, &dma_handle, GFP_KERNEL);
532 dma_free_coherent(&tw_dev->tw_pci_dev->dev, size * TW_Q_LENGTH,
537 memset(cpu_addr, 0, size*TW_Q_LENGTH);
539 for (i = 0; i < TW_Q_LENGTH; i++) {
760 event_index = (tw_dev->error_index - 1 + TW_Q_LENGTH) % TW_Q_LENGTH;
801 event_index = (start_index + sequence_id - tw_dev->event_queue[start_index]->sequence_id + 1) % TW_Q_LENGTH;
830 event_index = (start_index + sequence_id - tw_dev->event_queue[start_index]->sequence_id - 1) % TW_Q_LENGTH;
1035 sizeof(TW_Command_Full) * TW_Q_LENGTH,
1041 TW_SECTOR_SIZE * TW_Q_LENGTH,
1053 tw_dev->free_tail = (tw_dev->free_tail + 1) % TW_Q_LENGTH;
1103 tw_dev->free_head = (tw_dev->free_head + 1) % TW_Q_LENGTH;
1189 tw_dev->event_queue[0] = kcalloc(TW_Q_LENGTH, sizeof(TW_Event), GFP_KERNEL);
1196 for (i = 0; i < TW_Q_LENGTH; i++) {
1282 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++) {
1995 .can_queue = TW_Q_LENGTH-2,