Searched refs:TW_Q_LENGTH (Results 1 – 6 of 6) sorted by relevance
/linux-4.4.14/drivers/scsi/ |
D | 3w-sas.h | 116 #define TW_Q_LENGTH 256 macro 359 unsigned long *generic_buffer_virt[TW_Q_LENGTH]; 360 dma_addr_t generic_buffer_phys[TW_Q_LENGTH]; 361 TW_Command_Full *command_packet_virt[TW_Q_LENGTH]; 362 dma_addr_t command_packet_phys[TW_Q_LENGTH]; 363 TW_Command_Apache_Header *sense_buffer_virt[TW_Q_LENGTH]; 364 dma_addr_t sense_buffer_phys[TW_Q_LENGTH]; 366 struct scsi_cmnd *srb[TW_Q_LENGTH]; 367 unsigned char free_queue[TW_Q_LENGTH]; 370 int state[TW_Q_LENGTH]; [all …]
|
D | 3w-xxxx.h | 208 #define TW_Q_LENGTH 256 macro 394 unsigned long *alignment_virtual_address[TW_Q_LENGTH]; 395 unsigned long alignment_physical_address[TW_Q_LENGTH]; 397 unsigned long *command_packet_virtual_address[TW_Q_LENGTH]; 398 unsigned long command_packet_physical_address[TW_Q_LENGTH]; 400 struct scsi_cmnd *srb[TW_Q_LENGTH]; 401 unsigned char free_queue[TW_Q_LENGTH]; 404 unsigned char pending_queue[TW_Q_LENGTH]; 407 TW_Cmd_State state[TW_Q_LENGTH]; 421 unsigned short aen_queue[TW_Q_LENGTH];
|
D | 3w-9xxx.h | 345 #define TW_Q_LENGTH 256 macro 641 unsigned long *generic_buffer_virt[TW_Q_LENGTH]; 642 dma_addr_t generic_buffer_phys[TW_Q_LENGTH]; 643 TW_Command_Full *command_packet_virt[TW_Q_LENGTH]; 644 dma_addr_t command_packet_phys[TW_Q_LENGTH]; 646 struct scsi_cmnd *srb[TW_Q_LENGTH]; 647 unsigned char free_queue[TW_Q_LENGTH]; 650 unsigned char pending_queue[TW_Q_LENGTH]; 653 int state[TW_Q_LENGTH]; 667 TW_Event *event_queue[TW_Q_LENGTH];
|
D | 3w-9xxx.c | 422 if ((tw_dev->error_index + 1) == TW_Q_LENGTH) in twa_aen_queue_event() 424 tw_dev->error_index = (tw_dev->error_index + 1 ) % TW_Q_LENGTH; in twa_aen_queue_event() 527 cpu_addr = pci_alloc_consistent(tw_dev->tw_pci_dev, size*TW_Q_LENGTH, &dma_handle); in twa_allocate_memory() 535 pci_free_consistent(tw_dev->tw_pci_dev, size*TW_Q_LENGTH, cpu_addr, dma_handle); in twa_allocate_memory() 539 memset(cpu_addr, 0, size*TW_Q_LENGTH); in twa_allocate_memory() 541 for (i = 0; i < TW_Q_LENGTH; i++) { in twa_allocate_memory() 763 event_index = (tw_dev->error_index - 1 + TW_Q_LENGTH) % TW_Q_LENGTH; in twa_chrdev_ioctl() 804 …ex = (start_index + sequence_id - tw_dev->event_queue[start_index]->sequence_id + 1) % TW_Q_LENGTH; in twa_chrdev_ioctl() 833 …ex = (start_index + sequence_id - tw_dev->event_queue[start_index]->sequence_id - 1) % TW_Q_LENGTH; in twa_chrdev_ioctl() 1033 sizeof(TW_Command_Full)*TW_Q_LENGTH, in twa_free_device_extension() [all …]
|
D | 3w-xxxx.c | 389 if (tw_dev->pending_tail == TW_Q_LENGTH-1) { in tw_post_command_packet() 479 tw_dev->free_tail = (tw_dev->free_tail + 1) % TW_Q_LENGTH; in tw_state_request_finish() 486 tw_dev->free_head = (tw_dev->free_head + 1) % TW_Q_LENGTH; in tw_state_request_start() 644 if (tw_dev->aen_tail == TW_Q_LENGTH - 1) { in tw_aen_complete() 650 if (tw_dev->aen_head == TW_Q_LENGTH - 1) { in tw_aen_complete() 805 if (tw_dev->aen_tail == TW_Q_LENGTH - 1) { in tw_aen_drain_queue() 811 if (tw_dev->aen_head == TW_Q_LENGTH - 1) { in tw_aen_drain_queue() 838 cpu_addr = pci_alloc_consistent(tw_dev->tw_pci_dev, size*TW_Q_LENGTH, &dma_handle); in tw_allocate_memory() 846 pci_free_consistent(tw_dev->tw_pci_dev, size*TW_Q_LENGTH, cpu_addr, dma_handle); in tw_allocate_memory() 850 memset(cpu_addr, 0, size*TW_Q_LENGTH); in tw_allocate_memory() [all …]
|
D | 3w-sas.c | 115 …y_read_from_buffer(outbuf, count, &offset, tw_dev->event_queue[0], sizeof(TW_Event) * TW_Q_LENGTH); in twl_sysfs_aen_read() 269 tw_dev->error_index = (tw_dev->error_index + 1 ) % TW_Q_LENGTH; in twl_aen_queue_event() 458 tw_dev->free_head = (tw_dev->free_head + 1) % TW_Q_LENGTH; in twl_get_request_id() 467 tw_dev->free_tail = (tw_dev->free_tail + 1) % TW_Q_LENGTH; in twl_free_request_id() 653 cpu_addr = pci_zalloc_consistent(tw_dev->tw_pci_dev, size * TW_Q_LENGTH, in twl_allocate_memory() 660 for (i = 0; i < TW_Q_LENGTH; i++) { in twl_allocate_memory() 909 sizeof(TW_Command_Full)*TW_Q_LENGTH, in twl_free_device_extension() 915 TW_SECTOR_SIZE*TW_Q_LENGTH, in twl_free_device_extension() 922 TW_Q_LENGTH, in twl_free_device_extension() 1060 tw_dev->event_queue[0] = kcalloc(TW_Q_LENGTH, sizeof(TW_Event), GFP_KERNEL); in twl_initialize_device_extension() [all …]
|