Searched refs:TW_Q_LENGTH (Results 1 – 6 of 6) sorted by relevance
/Linux-v4.19/drivers/scsi/ |
D | 3w-sas.h | 113 #define TW_Q_LENGTH 256 macro 356 unsigned long *generic_buffer_virt[TW_Q_LENGTH]; 357 dma_addr_t generic_buffer_phys[TW_Q_LENGTH]; 358 TW_Command_Full *command_packet_virt[TW_Q_LENGTH]; 359 dma_addr_t command_packet_phys[TW_Q_LENGTH]; 360 TW_Command_Apache_Header *sense_buffer_virt[TW_Q_LENGTH]; 361 dma_addr_t sense_buffer_phys[TW_Q_LENGTH]; 363 struct scsi_cmnd *srb[TW_Q_LENGTH]; 364 unsigned char free_queue[TW_Q_LENGTH]; 367 int state[TW_Q_LENGTH]; [all …]
|
D | 3w-xxxx.h | 209 #define TW_Q_LENGTH 256 macro 395 unsigned long *alignment_virtual_address[TW_Q_LENGTH]; 396 unsigned long alignment_physical_address[TW_Q_LENGTH]; 398 unsigned long *command_packet_virtual_address[TW_Q_LENGTH]; 399 unsigned long command_packet_physical_address[TW_Q_LENGTH]; 401 struct scsi_cmnd *srb[TW_Q_LENGTH]; 402 unsigned char free_queue[TW_Q_LENGTH]; 405 unsigned char pending_queue[TW_Q_LENGTH]; 408 TW_Cmd_State state[TW_Q_LENGTH]; 422 unsigned short aen_queue[TW_Q_LENGTH];
|
D | 3w-9xxx.h | 342 #define TW_Q_LENGTH 256 macro 638 unsigned long *generic_buffer_virt[TW_Q_LENGTH]; 639 dma_addr_t generic_buffer_phys[TW_Q_LENGTH]; 640 TW_Command_Full *command_packet_virt[TW_Q_LENGTH]; 641 dma_addr_t command_packet_phys[TW_Q_LENGTH]; 643 struct scsi_cmnd *srb[TW_Q_LENGTH]; 644 unsigned char free_queue[TW_Q_LENGTH]; 647 unsigned char pending_queue[TW_Q_LENGTH]; 650 int state[TW_Q_LENGTH]; 664 TW_Event *event_queue[TW_Q_LENGTH];
|
D | 3w-9xxx.c | 418 if ((tw_dev->error_index + 1) == TW_Q_LENGTH) in twa_aen_queue_event() 420 tw_dev->error_index = (tw_dev->error_index + 1 ) % TW_Q_LENGTH; in twa_aen_queue_event() 521 cpu_addr = pci_alloc_consistent(tw_dev->tw_pci_dev, size*TW_Q_LENGTH, &dma_handle); in twa_allocate_memory() 529 pci_free_consistent(tw_dev->tw_pci_dev, size*TW_Q_LENGTH, cpu_addr, dma_handle); in twa_allocate_memory() 533 memset(cpu_addr, 0, size*TW_Q_LENGTH); in twa_allocate_memory() 535 for (i = 0; i < TW_Q_LENGTH; i++) { in twa_allocate_memory() 756 event_index = (tw_dev->error_index - 1 + TW_Q_LENGTH) % TW_Q_LENGTH; in twa_chrdev_ioctl() 797 …ex = (start_index + sequence_id - tw_dev->event_queue[start_index]->sequence_id + 1) % TW_Q_LENGTH; in twa_chrdev_ioctl() 826 …ex = (start_index + sequence_id - tw_dev->event_queue[start_index]->sequence_id - 1) % TW_Q_LENGTH; in twa_chrdev_ioctl() 1031 sizeof(TW_Command_Full)*TW_Q_LENGTH, in twa_free_device_extension() [all …]
|
D | 3w-xxxx.c | 388 if (tw_dev->pending_tail == TW_Q_LENGTH-1) { in tw_post_command_packet() 478 tw_dev->free_tail = (tw_dev->free_tail + 1) % TW_Q_LENGTH; in tw_state_request_finish() 485 tw_dev->free_head = (tw_dev->free_head + 1) % TW_Q_LENGTH; in tw_state_request_start() 643 if (tw_dev->aen_tail == TW_Q_LENGTH - 1) { in tw_aen_complete() 649 if (tw_dev->aen_head == TW_Q_LENGTH - 1) { in tw_aen_complete() 804 if (tw_dev->aen_tail == TW_Q_LENGTH - 1) { in tw_aen_drain_queue() 810 if (tw_dev->aen_head == TW_Q_LENGTH - 1) { in tw_aen_drain_queue() 837 cpu_addr = pci_alloc_consistent(tw_dev->tw_pci_dev, size*TW_Q_LENGTH, &dma_handle); in tw_allocate_memory() 845 pci_free_consistent(tw_dev->tw_pci_dev, size*TW_Q_LENGTH, cpu_addr, dma_handle); in tw_allocate_memory() 849 memset(cpu_addr, 0, size*TW_Q_LENGTH); in tw_allocate_memory() [all …]
|
D | 3w-sas.c | 112 …y_read_from_buffer(outbuf, count, &offset, tw_dev->event_queue[0], sizeof(TW_Event) * TW_Q_LENGTH); in twl_sysfs_aen_read() 265 tw_dev->error_index = (tw_dev->error_index + 1 ) % TW_Q_LENGTH; in twl_aen_queue_event() 452 tw_dev->free_head = (tw_dev->free_head + 1) % TW_Q_LENGTH; in twl_get_request_id() 461 tw_dev->free_tail = (tw_dev->free_tail + 1) % TW_Q_LENGTH; in twl_free_request_id() 647 cpu_addr = pci_zalloc_consistent(tw_dev->tw_pci_dev, size * TW_Q_LENGTH, in twl_allocate_memory() 654 for (i = 0; i < TW_Q_LENGTH; i++) { in twl_allocate_memory() 903 sizeof(TW_Command_Full)*TW_Q_LENGTH, in twl_free_device_extension() 909 TW_SECTOR_SIZE*TW_Q_LENGTH, in twl_free_device_extension() 916 TW_Q_LENGTH, in twl_free_device_extension() 1054 tw_dev->event_queue[0] = kcalloc(TW_Q_LENGTH, sizeof(TW_Event), GFP_KERNEL); in twl_initialize_device_extension() [all …]
|