Home
last modified time | relevance | path

Searched refs:TW_Q_LENGTH (Results 1 - 12 of 12) sorted by relevance

/kernel/linux/linux-5.10/drivers/scsi/
H A D3w-sas.h113 #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...]
H A D3w-xxxx.h209 #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];
[all...]
H A D3w-9xxx.h342 #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];
[all...]
H A D3w-9xxx.c420 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 event_index = (start_index + sequence_id - tw_dev->event_queue[start_index]->sequence_id + 1) % TW_Q_LENGTH; in twa_chrdev_ioctl()
830 event_index = (start_index + sequence_id - tw_dev->event_queue[start_index]->sequence_id - 1) % TW_Q_LENGTH; in twa_chrdev_ioctl()
[all...]
H A D3w-xxxx.c388 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()
838 size * TW_Q_LENGTH, &dma_handle, GFP_KERNEL); in tw_allocate_memory()
846 dma_free_coherent(&tw_dev->tw_pci_dev->dev, size * TW_Q_LENGTH, in tw_allocate_memory()
851 memset(cpu_addr, 0, size*TW_Q_LENGTH); in tw_allocate_memory()
[all...]
H A D3w-sas.c112 ret = memory_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()
454 tw_dev->free_head = (tw_dev->free_head + 1) % TW_Q_LENGTH; in twl_get_request_id()
463 tw_dev->free_tail = (tw_dev->free_tail + 1) % TW_Q_LENGTH; in twl_free_request_id()
650 size * TW_Q_LENGTH, &dma_handle, in twl_allocate_memory()
657 for (i = 0; i < TW_Q_LENGTH; i++) { in twl_allocate_memory()
906 sizeof(TW_Command_Full)*TW_Q_LENGTH, in twl_free_device_extension()
912 TW_SECTOR_SIZE*TW_Q_LENGTH, in twl_free_device_extension()
919 TW_Q_LENGTH, in twl_free_device_extension()
1057 tw_dev->event_queue[0] = kcalloc(TW_Q_LENGTH, sizeo in twl_initialize_device_extension()
[all...]
/kernel/linux/linux-6.6/drivers/scsi/
H A D3w-sas.h113 #define TW_Q_LENGTH 256 macro
372 unsigned long *generic_buffer_virt[TW_Q_LENGTH];
373 dma_addr_t generic_buffer_phys[TW_Q_LENGTH];
374 TW_Command_Full *command_packet_virt[TW_Q_LENGTH];
375 dma_addr_t command_packet_phys[TW_Q_LENGTH];
376 TW_Command_Apache_Header *sense_buffer_virt[TW_Q_LENGTH];
377 dma_addr_t sense_buffer_phys[TW_Q_LENGTH];
379 struct scsi_cmnd *srb[TW_Q_LENGTH];
380 unsigned char free_queue[TW_Q_LENGTH];
383 int state[TW_Q_LENGTH];
[all...]
H A D3w-xxxx.h209 #define TW_Q_LENGTH 256 macro
403 unsigned long *alignment_virtual_address[TW_Q_LENGTH];
404 unsigned long alignment_physical_address[TW_Q_LENGTH];
406 unsigned long *command_packet_virtual_address[TW_Q_LENGTH];
407 unsigned long command_packet_physical_address[TW_Q_LENGTH];
409 struct scsi_cmnd *srb[TW_Q_LENGTH];
410 unsigned char free_queue[TW_Q_LENGTH];
413 unsigned char pending_queue[TW_Q_LENGTH];
416 TW_Cmd_State state[TW_Q_LENGTH];
430 unsigned short aen_queue[TW_Q_LENGTH];
[all...]
H A D3w-9xxx.h342 #define TW_Q_LENGTH 256 macro
655 unsigned long *generic_buffer_virt[TW_Q_LENGTH];
656 dma_addr_t generic_buffer_phys[TW_Q_LENGTH];
657 TW_Command_Full *command_packet_virt[TW_Q_LENGTH];
658 dma_addr_t command_packet_phys[TW_Q_LENGTH];
660 struct scsi_cmnd *srb[TW_Q_LENGTH];
661 unsigned char free_queue[TW_Q_LENGTH];
664 unsigned char pending_queue[TW_Q_LENGTH];
667 int state[TW_Q_LENGTH];
681 TW_Event *event_queue[TW_Q_LENGTH];
[all...]
H A D3w-9xxx.c422 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()
525 size * TW_Q_LENGTH, &dma_handle, GFP_KERNEL); in twa_allocate_memory()
533 dma_free_coherent(&tw_dev->tw_pci_dev->dev, size * TW_Q_LENGTH, in twa_allocate_memory()
538 memset(cpu_addr, 0, size*TW_Q_LENGTH); in twa_allocate_memory()
540 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 event_index = (start_index + sequence_id - tw_dev->event_queue[start_index]->sequence_id + 1) % TW_Q_LENGTH; in twa_chrdev_ioctl()
833 event_index = (start_index + sequence_id - tw_dev->event_queue[start_index]->sequence_id - 1) % TW_Q_LENGTH; in twa_chrdev_ioctl()
[all...]
H A D3w-xxxx.c388 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()
645 if (tw_dev->aen_tail == TW_Q_LENGTH - 1) { in tw_aen_complete()
651 if (tw_dev->aen_head == TW_Q_LENGTH - 1) { in tw_aen_complete()
806 if (tw_dev->aen_tail == TW_Q_LENGTH - 1) { in tw_aen_drain_queue()
812 if (tw_dev->aen_head == TW_Q_LENGTH - 1) { in tw_aen_drain_queue()
840 size * TW_Q_LENGTH, &dma_handle, GFP_KERNEL); in tw_allocate_memory()
848 dma_free_coherent(&tw_dev->tw_pci_dev->dev, size * TW_Q_LENGTH, in tw_allocate_memory()
853 memset(cpu_addr, 0, size*TW_Q_LENGTH); in tw_allocate_memory()
[all...]
H A D3w-sas.c112 ret = memory_read_from_buffer(outbuf, count, &offset, tw_dev->event_queue[0], sizeof(TW_Event) * TW_Q_LENGTH); in twl_sysfs_aen_read()
267 tw_dev->error_index = (tw_dev->error_index + 1 ) % TW_Q_LENGTH; in twl_aen_queue_event()
453 tw_dev->free_head = (tw_dev->free_head + 1) % TW_Q_LENGTH; in twl_get_request_id()
462 tw_dev->free_tail = (tw_dev->free_tail + 1) % TW_Q_LENGTH; in twl_free_request_id()
649 size * TW_Q_LENGTH, &dma_handle, in twl_allocate_memory()
656 for (i = 0; i < TW_Q_LENGTH; i++) { in twl_allocate_memory()
904 sizeof(TW_Command_Full)*TW_Q_LENGTH, in twl_free_device_extension()
910 TW_SECTOR_SIZE*TW_Q_LENGTH, in twl_free_device_extension()
917 TW_Q_LENGTH, in twl_free_device_extension()
1055 tw_dev->event_queue[0] = kcalloc(TW_Q_LENGTH, sizeo in twl_initialize_device_extension()
[all...]

Completed in 19 milliseconds