Lines Matching refs:TW_Q_LENGTH

420 	if ((tw_dev->error_index + 1) == TW_Q_LENGTH)  in twa_aen_queue_event()
422 tw_dev->error_index = (tw_dev->error_index + 1 ) % TW_Q_LENGTH; in twa_aen_queue_event()
524 size * TW_Q_LENGTH, &dma_handle, GFP_KERNEL); in twa_allocate_memory()
532 dma_free_coherent(&tw_dev->tw_pci_dev->dev, size * TW_Q_LENGTH, in twa_allocate_memory()
537 memset(cpu_addr, 0, size*TW_Q_LENGTH); in twa_allocate_memory()
539 for (i = 0; i < TW_Q_LENGTH; i++) { in twa_allocate_memory()
760 event_index = (tw_dev->error_index - 1 + TW_Q_LENGTH) % TW_Q_LENGTH; in twa_chrdev_ioctl()
801 …ex = (start_index + sequence_id - tw_dev->event_queue[start_index]->sequence_id + 1) % TW_Q_LENGTH; in twa_chrdev_ioctl()
830 …ex = (start_index + sequence_id - tw_dev->event_queue[start_index]->sequence_id - 1) % TW_Q_LENGTH; in twa_chrdev_ioctl()
1035 sizeof(TW_Command_Full) * TW_Q_LENGTH, in twa_free_device_extension()
1041 TW_SECTOR_SIZE * TW_Q_LENGTH, in twa_free_device_extension()
1053 tw_dev->free_tail = (tw_dev->free_tail + 1) % TW_Q_LENGTH; in twa_free_request_id()
1103 tw_dev->free_head = (tw_dev->free_head + 1) % TW_Q_LENGTH; in twa_get_request_id()
1189 tw_dev->event_queue[0] = kcalloc(TW_Q_LENGTH, sizeof(TW_Event), GFP_KERNEL); in twa_initialize_device_extension()
1196 for (i = 0; i < TW_Q_LENGTH; i++) { in twa_initialize_device_extension()
1282 tw_dev->pending_head = (tw_dev->pending_head + 1) % TW_Q_LENGTH; in twa_interrupt()
1549 tw_dev->pending_tail = (tw_dev->pending_tail + 1) % TW_Q_LENGTH; in twa_post_command_packet()
1591 for (i = 0; i < TW_Q_LENGTH; i++) { in twa_reset_device_extension()
1607 for (i = 0; i < TW_Q_LENGTH; i++) { in twa_reset_device_extension()
1995 .can_queue = TW_Q_LENGTH-2,