TW_Q_LENGTH 420 drivers/scsi/3w-9xxx.c if ((tw_dev->error_index + 1) == TW_Q_LENGTH) TW_Q_LENGTH 422 drivers/scsi/3w-9xxx.c tw_dev->error_index = (tw_dev->error_index + 1 ) % TW_Q_LENGTH; TW_Q_LENGTH 524 drivers/scsi/3w-9xxx.c size * TW_Q_LENGTH, &dma_handle, GFP_KERNEL); TW_Q_LENGTH 532 drivers/scsi/3w-9xxx.c dma_free_coherent(&tw_dev->tw_pci_dev->dev, size * TW_Q_LENGTH, TW_Q_LENGTH 537 drivers/scsi/3w-9xxx.c memset(cpu_addr, 0, size*TW_Q_LENGTH); TW_Q_LENGTH 539 drivers/scsi/3w-9xxx.c for (i = 0; i < TW_Q_LENGTH; i++) { TW_Q_LENGTH 760 drivers/scsi/3w-9xxx.c event_index = (tw_dev->error_index - 1 + TW_Q_LENGTH) % TW_Q_LENGTH; TW_Q_LENGTH 801 drivers/scsi/3w-9xxx.c event_index = (start_index + sequence_id - tw_dev->event_queue[start_index]->sequence_id + 1) % TW_Q_LENGTH; TW_Q_LENGTH 830 drivers/scsi/3w-9xxx.c event_index = (start_index + sequence_id - tw_dev->event_queue[start_index]->sequence_id - 1) % TW_Q_LENGTH; TW_Q_LENGTH 1035 drivers/scsi/3w-9xxx.c sizeof(TW_Command_Full) * TW_Q_LENGTH, TW_Q_LENGTH 1041 drivers/scsi/3w-9xxx.c TW_SECTOR_SIZE * TW_Q_LENGTH, TW_Q_LENGTH 1053 drivers/scsi/3w-9xxx.c tw_dev->free_tail = (tw_dev->free_tail + 1) % TW_Q_LENGTH; TW_Q_LENGTH 1103 drivers/scsi/3w-9xxx.c tw_dev->free_head = (tw_dev->free_head + 1) % TW_Q_LENGTH; TW_Q_LENGTH 1189 drivers/scsi/3w-9xxx.c tw_dev->event_queue[0] = kcalloc(TW_Q_LENGTH, sizeof(TW_Event), GFP_KERNEL); TW_Q_LENGTH 1196 drivers/scsi/3w-9xxx.c for (i = 0; i < TW_Q_LENGTH; i++) { TW_Q_LENGTH 1282 drivers/scsi/3w-9xxx.c tw_dev->pending_head = (tw_dev->pending_head + 1) % TW_Q_LENGTH; TW_Q_LENGTH 1549 drivers/scsi/3w-9xxx.c tw_dev->pending_tail = (tw_dev->pending_tail + 1) % TW_Q_LENGTH; TW_Q_LENGTH 1591 drivers/scsi/3w-9xxx.c for (i = 0; i < TW_Q_LENGTH; i++) { TW_Q_LENGTH 1607 drivers/scsi/3w-9xxx.c for (i = 0; i < TW_Q_LENGTH; i++) { TW_Q_LENGTH 1995 drivers/scsi/3w-9xxx.c .can_queue = TW_Q_LENGTH-2, TW_Q_LENGTH 638 drivers/scsi/3w-9xxx.h unsigned long *generic_buffer_virt[TW_Q_LENGTH]; TW_Q_LENGTH 639 drivers/scsi/3w-9xxx.h dma_addr_t generic_buffer_phys[TW_Q_LENGTH]; TW_Q_LENGTH 640 drivers/scsi/3w-9xxx.h TW_Command_Full *command_packet_virt[TW_Q_LENGTH]; TW_Q_LENGTH 641 drivers/scsi/3w-9xxx.h dma_addr_t command_packet_phys[TW_Q_LENGTH]; TW_Q_LENGTH 643 drivers/scsi/3w-9xxx.h struct scsi_cmnd *srb[TW_Q_LENGTH]; TW_Q_LENGTH 644 drivers/scsi/3w-9xxx.h unsigned char free_queue[TW_Q_LENGTH]; TW_Q_LENGTH 647 drivers/scsi/3w-9xxx.h unsigned char pending_queue[TW_Q_LENGTH]; TW_Q_LENGTH 650 drivers/scsi/3w-9xxx.h int state[TW_Q_LENGTH]; TW_Q_LENGTH 664 drivers/scsi/3w-9xxx.h TW_Event *event_queue[TW_Q_LENGTH]; TW_Q_LENGTH 112 drivers/scsi/3w-sas.c ret = memory_read_from_buffer(outbuf, count, &offset, tw_dev->event_queue[0], sizeof(TW_Event) * TW_Q_LENGTH); TW_Q_LENGTH 265 drivers/scsi/3w-sas.c tw_dev->error_index = (tw_dev->error_index + 1 ) % TW_Q_LENGTH; TW_Q_LENGTH 454 drivers/scsi/3w-sas.c tw_dev->free_head = (tw_dev->free_head + 1) % TW_Q_LENGTH; TW_Q_LENGTH 463 drivers/scsi/3w-sas.c tw_dev->free_tail = (tw_dev->free_tail + 1) % TW_Q_LENGTH; TW_Q_LENGTH 650 drivers/scsi/3w-sas.c size * TW_Q_LENGTH, &dma_handle, TW_Q_LENGTH 657 drivers/scsi/3w-sas.c for (i = 0; i < TW_Q_LENGTH; i++) { TW_Q_LENGTH 906 drivers/scsi/3w-sas.c sizeof(TW_Command_Full)*TW_Q_LENGTH, TW_Q_LENGTH 912 drivers/scsi/3w-sas.c TW_SECTOR_SIZE*TW_Q_LENGTH, TW_Q_LENGTH 919 drivers/scsi/3w-sas.c TW_Q_LENGTH, TW_Q_LENGTH 1057 drivers/scsi/3w-sas.c tw_dev->event_queue[0] = kcalloc(TW_Q_LENGTH, sizeof(TW_Event), GFP_KERNEL); TW_Q_LENGTH 1063 drivers/scsi/3w-sas.c for (i = 0; i < TW_Q_LENGTH; i++) { TW_Q_LENGTH 1167 drivers/scsi/3w-sas.c for (i=0;i<TW_Q_LENGTH;i++) { TW_Q_LENGTH 1303 drivers/scsi/3w-sas.c while (i < TW_Q_LENGTH) { TW_Q_LENGTH 1367 drivers/scsi/3w-sas.c for (i = 0; i < TW_Q_LENGTH; i++) { TW_Q_LENGTH 1382 drivers/scsi/3w-sas.c for (i = 0; i < TW_Q_LENGTH; i++) { TW_Q_LENGTH 1548 drivers/scsi/3w-sas.c .can_queue = TW_Q_LENGTH-2, TW_Q_LENGTH 356 drivers/scsi/3w-sas.h unsigned long *generic_buffer_virt[TW_Q_LENGTH]; TW_Q_LENGTH 357 drivers/scsi/3w-sas.h dma_addr_t generic_buffer_phys[TW_Q_LENGTH]; TW_Q_LENGTH 358 drivers/scsi/3w-sas.h TW_Command_Full *command_packet_virt[TW_Q_LENGTH]; TW_Q_LENGTH 359 drivers/scsi/3w-sas.h dma_addr_t command_packet_phys[TW_Q_LENGTH]; TW_Q_LENGTH 360 drivers/scsi/3w-sas.h TW_Command_Apache_Header *sense_buffer_virt[TW_Q_LENGTH]; TW_Q_LENGTH 361 drivers/scsi/3w-sas.h dma_addr_t sense_buffer_phys[TW_Q_LENGTH]; TW_Q_LENGTH 363 drivers/scsi/3w-sas.h struct scsi_cmnd *srb[TW_Q_LENGTH]; TW_Q_LENGTH 364 drivers/scsi/3w-sas.h unsigned char free_queue[TW_Q_LENGTH]; TW_Q_LENGTH 367 drivers/scsi/3w-sas.h int state[TW_Q_LENGTH]; TW_Q_LENGTH 378 drivers/scsi/3w-sas.h TW_Event *event_queue[TW_Q_LENGTH]; TW_Q_LENGTH 388 drivers/scsi/3w-xxxx.c if (tw_dev->pending_tail == TW_Q_LENGTH-1) { TW_Q_LENGTH 478 drivers/scsi/3w-xxxx.c tw_dev->free_tail = (tw_dev->free_tail + 1) % TW_Q_LENGTH; TW_Q_LENGTH 485 drivers/scsi/3w-xxxx.c tw_dev->free_head = (tw_dev->free_head + 1) % TW_Q_LENGTH; TW_Q_LENGTH 643 drivers/scsi/3w-xxxx.c if (tw_dev->aen_tail == TW_Q_LENGTH - 1) { TW_Q_LENGTH 649 drivers/scsi/3w-xxxx.c if (tw_dev->aen_head == TW_Q_LENGTH - 1) { TW_Q_LENGTH 804 drivers/scsi/3w-xxxx.c if (tw_dev->aen_tail == TW_Q_LENGTH - 1) { TW_Q_LENGTH 810 drivers/scsi/3w-xxxx.c if (tw_dev->aen_head == TW_Q_LENGTH - 1) { TW_Q_LENGTH 838 drivers/scsi/3w-xxxx.c size * TW_Q_LENGTH, &dma_handle, GFP_KERNEL); TW_Q_LENGTH 846 drivers/scsi/3w-xxxx.c dma_free_coherent(&tw_dev->tw_pci_dev->dev, size * TW_Q_LENGTH, TW_Q_LENGTH 851 drivers/scsi/3w-xxxx.c memset(cpu_addr, 0, size*TW_Q_LENGTH); TW_Q_LENGTH 853 drivers/scsi/3w-xxxx.c for (i=0;i<TW_Q_LENGTH;i++) { TW_Q_LENGTH 941 drivers/scsi/3w-xxxx.c if (tw_dev->aen_head == TW_Q_LENGTH - 1) { TW_Q_LENGTH 1068 drivers/scsi/3w-xxxx.c sizeof(TW_Command) * TW_Q_LENGTH, TW_Q_LENGTH 1074 drivers/scsi/3w-xxxx.c sizeof(TW_Sector) * TW_Q_LENGTH, TW_Q_LENGTH 1272 drivers/scsi/3w-xxxx.c for (i=0;i<TW_Q_LENGTH;i++) { TW_Q_LENGTH 1302 drivers/scsi/3w-xxxx.c for (i=0;i<TW_Q_LENGTH;i++) { TW_Q_LENGTH 1316 drivers/scsi/3w-xxxx.c for (i=0;i<TW_Q_LENGTH;i++) { TW_Q_LENGTH 2066 drivers/scsi/3w-xxxx.c if (tw_dev->pending_head == TW_Q_LENGTH-1) { TW_Q_LENGTH 2244 drivers/scsi/3w-xxxx.c .can_queue = TW_Q_LENGTH-2, TW_Q_LENGTH 394 drivers/scsi/3w-xxxx.h unsigned long *alignment_virtual_address[TW_Q_LENGTH]; TW_Q_LENGTH 395 drivers/scsi/3w-xxxx.h unsigned long alignment_physical_address[TW_Q_LENGTH]; TW_Q_LENGTH 397 drivers/scsi/3w-xxxx.h unsigned long *command_packet_virtual_address[TW_Q_LENGTH]; TW_Q_LENGTH 398 drivers/scsi/3w-xxxx.h unsigned long command_packet_physical_address[TW_Q_LENGTH]; TW_Q_LENGTH 400 drivers/scsi/3w-xxxx.h struct scsi_cmnd *srb[TW_Q_LENGTH]; TW_Q_LENGTH 401 drivers/scsi/3w-xxxx.h unsigned char free_queue[TW_Q_LENGTH]; TW_Q_LENGTH 404 drivers/scsi/3w-xxxx.h unsigned char pending_queue[TW_Q_LENGTH]; TW_Q_LENGTH 407 drivers/scsi/3w-xxxx.h TW_Cmd_State state[TW_Q_LENGTH]; TW_Q_LENGTH 421 drivers/scsi/3w-xxxx.h unsigned short aen_queue[TW_Q_LENGTH];