pqi_ctrl_info 669 drivers/scsi/smartpqi/smartpqi.h struct pqi_ctrl_info *ctrl_info; /* backpointer */ pqi_ctrl_info 1400 drivers/scsi/smartpqi/smartpqi.h static inline struct pqi_ctrl_info *shost_to_hba(struct Scsi_Host *shost) pqi_ctrl_info 1404 drivers/scsi/smartpqi/smartpqi.h return *((struct pqi_ctrl_info **)hostdata); pqi_ctrl_info 1407 drivers/scsi/smartpqi/smartpqi.h static inline bool pqi_ctrl_offline(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 1412 drivers/scsi/smartpqi/smartpqi.h static inline void pqi_ctrl_busy(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 1417 drivers/scsi/smartpqi/smartpqi.h static inline void pqi_ctrl_unbusy(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 1422 drivers/scsi/smartpqi/smartpqi.h static inline bool pqi_ctrl_blocked(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 1427 drivers/scsi/smartpqi/smartpqi.h static inline bool pqi_device_reset_blocked(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 1435 drivers/scsi/smartpqi/smartpqi.h int pqi_add_sas_host(struct Scsi_Host *shost, struct pqi_ctrl_info *ctrl_info); pqi_ctrl_info 1436 drivers/scsi/smartpqi/smartpqi.h void pqi_delete_sas_host(struct pqi_ctrl_info *ctrl_info); pqi_ctrl_info 1441 drivers/scsi/smartpqi/smartpqi.h struct pqi_ctrl_info *ctrl_info, struct sas_rphy *rphy); pqi_ctrl_info 1443 drivers/scsi/smartpqi/smartpqi.h int pqi_csmi_smp_passthru(struct pqi_ctrl_info *ctrl_info, pqi_ctrl_info 55 drivers/scsi/smartpqi/smartpqi_init.c static void pqi_take_ctrl_offline(struct pqi_ctrl_info *ctrl_info); pqi_ctrl_info 57 drivers/scsi/smartpqi/smartpqi_init.c static void pqi_retry_raid_bypass_requests(struct pqi_ctrl_info *ctrl_info); pqi_ctrl_info 58 drivers/scsi/smartpqi/smartpqi_init.c static int pqi_scan_scsi_devices(struct pqi_ctrl_info *ctrl_info); pqi_ctrl_info 60 drivers/scsi/smartpqi/smartpqi_init.c static void pqi_start_io(struct pqi_ctrl_info *ctrl_info, pqi_ctrl_info 63 drivers/scsi/smartpqi/smartpqi_init.c static int pqi_submit_raid_request_synchronous(struct pqi_ctrl_info *ctrl_info, pqi_ctrl_info 66 drivers/scsi/smartpqi/smartpqi_init.c static int pqi_aio_submit_io(struct pqi_ctrl_info *ctrl_info, pqi_ctrl_info 70 drivers/scsi/smartpqi/smartpqi_init.c static void pqi_ofa_ctrl_quiesce(struct pqi_ctrl_info *ctrl_info); pqi_ctrl_info 71 drivers/scsi/smartpqi/smartpqi_init.c static void pqi_ofa_ctrl_unquiesce(struct pqi_ctrl_info *ctrl_info); pqi_ctrl_info 72 drivers/scsi/smartpqi/smartpqi_init.c static int pqi_ofa_ctrl_restart(struct pqi_ctrl_info *ctrl_info); pqi_ctrl_info 73 drivers/scsi/smartpqi/smartpqi_init.c static void pqi_ofa_setup_host_buffer(struct pqi_ctrl_info *ctrl_info, pqi_ctrl_info 75 drivers/scsi/smartpqi/smartpqi_init.c static void pqi_ofa_free_host_buffer(struct pqi_ctrl_info *ctrl_info); pqi_ctrl_info 76 drivers/scsi/smartpqi/smartpqi_init.c static int pqi_ofa_host_memory_update(struct pqi_ctrl_info *ctrl_info); pqi_ctrl_info 77 drivers/scsi/smartpqi/smartpqi_init.c static int pqi_device_wait_for_pending_io(struct pqi_ctrl_info *ctrl_info, pqi_ctrl_info 214 drivers/scsi/smartpqi/smartpqi_init.c static inline void pqi_check_ctrl_health(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 227 drivers/scsi/smartpqi/smartpqi_init.c struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 232 drivers/scsi/smartpqi/smartpqi_init.c static inline void pqi_save_ctrl_mode(struct pqi_ctrl_info *ctrl_info, pqi_ctrl_info 238 drivers/scsi/smartpqi/smartpqi_init.c static inline void pqi_ctrl_block_requests(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 244 drivers/scsi/smartpqi/smartpqi_init.c static inline void pqi_ctrl_unblock_requests(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 252 drivers/scsi/smartpqi/smartpqi_init.c static inline void pqi_ctrl_block_device_reset(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 257 drivers/scsi/smartpqi/smartpqi_init.c static unsigned long pqi_wait_if_ctrl_blocked(struct pqi_ctrl_info *ctrl_info, pqi_ctrl_info 286 drivers/scsi/smartpqi/smartpqi_init.c static inline void pqi_ctrl_wait_until_quiesced(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 313 drivers/scsi/smartpqi/smartpqi_init.c static inline void pqi_ctrl_ofa_start(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 318 drivers/scsi/smartpqi/smartpqi_init.c static inline void pqi_ctrl_ofa_done(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 323 drivers/scsi/smartpqi/smartpqi_init.c static inline bool pqi_ctrl_in_ofa(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 333 drivers/scsi/smartpqi/smartpqi_init.c static inline bool pqi_device_in_remove(struct pqi_ctrl_info *ctrl_info, pqi_ctrl_info 339 drivers/scsi/smartpqi/smartpqi_init.c static inline void pqi_ctrl_shutdown_start(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 344 drivers/scsi/smartpqi/smartpqi_init.c static inline bool pqi_ctrl_in_shutdown(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 350 drivers/scsi/smartpqi/smartpqi_init.c struct pqi_ctrl_info *ctrl_info, unsigned long delay) pqi_ctrl_info 360 drivers/scsi/smartpqi/smartpqi_init.c static inline void pqi_schedule_rescan_worker(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 368 drivers/scsi/smartpqi/smartpqi_init.c struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 373 drivers/scsi/smartpqi/smartpqi_init.c static inline void pqi_cancel_rescan_worker(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 378 drivers/scsi/smartpqi/smartpqi_init.c static inline void pqi_cancel_event_worker(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 383 drivers/scsi/smartpqi/smartpqi_init.c static inline u32 pqi_read_heartbeat_counter(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 391 drivers/scsi/smartpqi/smartpqi_init.c static inline u8 pqi_read_soft_reset_status(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 399 drivers/scsi/smartpqi/smartpqi_init.c static inline void pqi_clear_soft_reset_status(struct pqi_ctrl_info *ctrl_info, pqi_ctrl_info 449 drivers/scsi/smartpqi/smartpqi_init.c static int pqi_build_raid_path_request(struct pqi_ctrl_info *ctrl_info, pqi_ctrl_info 563 drivers/scsi/smartpqi/smartpqi_init.c struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 589 drivers/scsi/smartpqi/smartpqi_init.c static int pqi_send_scsi_raid_request(struct pqi_ctrl_info *ctrl_info, u8 cmd, pqi_ctrl_info 613 drivers/scsi/smartpqi/smartpqi_init.c static inline int pqi_send_ctrl_raid_request(struct pqi_ctrl_info *ctrl_info, pqi_ctrl_info 620 drivers/scsi/smartpqi/smartpqi_init.c static inline int pqi_send_ctrl_raid_with_error(struct pqi_ctrl_info *ctrl_info, pqi_ctrl_info 629 drivers/scsi/smartpqi/smartpqi_init.c static inline int pqi_identify_controller(struct pqi_ctrl_info *ctrl_info, pqi_ctrl_info 636 drivers/scsi/smartpqi/smartpqi_init.c static inline int pqi_sense_subsystem_info(struct pqi_ctrl_info *ctrl_info, pqi_ctrl_info 644 drivers/scsi/smartpqi/smartpqi_init.c static inline int pqi_scsi_inquiry(struct pqi_ctrl_info *ctrl_info, pqi_ctrl_info 651 drivers/scsi/smartpqi/smartpqi_init.c static int pqi_identify_physical_device(struct pqi_ctrl_info *ctrl_info, pqi_ctrl_info 678 drivers/scsi/smartpqi/smartpqi_init.c static int pqi_flush_cache(struct pqi_ctrl_info *ctrl_info, pqi_ctrl_info 705 drivers/scsi/smartpqi/smartpqi_init.c int pqi_csmi_smp_passthru(struct pqi_ctrl_info *ctrl_info, pqi_ctrl_info 715 drivers/scsi/smartpqi/smartpqi_init.c static int pqi_set_diag_rescan(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 739 drivers/scsi/smartpqi/smartpqi_init.c static inline int pqi_write_host_wellness(struct pqi_ctrl_info *ctrl_info, pqi_ctrl_info 760 drivers/scsi/smartpqi/smartpqi_init.c struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 809 drivers/scsi/smartpqi/smartpqi_init.c struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 863 drivers/scsi/smartpqi/smartpqi_init.c struct pqi_ctrl_info *ctrl_info; pqi_ctrl_info 865 drivers/scsi/smartpqi/smartpqi_init.c ctrl_info = container_of(to_delayed_work(work), struct pqi_ctrl_info, pqi_ctrl_info 881 drivers/scsi/smartpqi/smartpqi_init.c struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 887 drivers/scsi/smartpqi/smartpqi_init.c struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 892 drivers/scsi/smartpqi/smartpqi_init.c static inline int pqi_report_luns(struct pqi_ctrl_info *ctrl_info, u8 cmd, pqi_ctrl_info 899 drivers/scsi/smartpqi/smartpqi_init.c static int pqi_report_phys_logical_luns(struct pqi_ctrl_info *ctrl_info, u8 cmd, pqi_ctrl_info 962 drivers/scsi/smartpqi/smartpqi_init.c static inline int pqi_report_phys_luns(struct pqi_ctrl_info *ctrl_info, pqi_ctrl_info 969 drivers/scsi/smartpqi/smartpqi_init.c static inline int pqi_report_logical_luns(struct pqi_ctrl_info *ctrl_info, pqi_ctrl_info 975 drivers/scsi/smartpqi/smartpqi_init.c static int pqi_get_device_lists(struct pqi_ctrl_info *ctrl_info, pqi_ctrl_info 1084 drivers/scsi/smartpqi/smartpqi_init.c static void pqi_get_raid_level(struct pqi_ctrl_info *ctrl_info, pqi_ctrl_info 1108 drivers/scsi/smartpqi/smartpqi_init.c static int pqi_validate_raid_map(struct pqi_ctrl_info *ctrl_info, pqi_ctrl_info 1156 drivers/scsi/smartpqi/smartpqi_init.c static int pqi_get_raid_map(struct pqi_ctrl_info *ctrl_info, pqi_ctrl_info 1214 drivers/scsi/smartpqi/smartpqi_init.c static void pqi_get_raid_bypass_status(struct pqi_ctrl_info *ctrl_info, pqi_ctrl_info 1250 drivers/scsi/smartpqi/smartpqi_init.c static void pqi_get_volume_status(struct pqi_ctrl_info *ctrl_info, pqi_ctrl_info 1290 drivers/scsi/smartpqi/smartpqi_init.c static int pqi_get_device_info(struct pqi_ctrl_info *ctrl_info, pqi_ctrl_info 1341 drivers/scsi/smartpqi/smartpqi_init.c static void pqi_get_physical_disk_info(struct pqi_ctrl_info *ctrl_info, pqi_ctrl_info 1372 drivers/scsi/smartpqi/smartpqi_init.c static void pqi_show_volume_status(struct pqi_ctrl_info *ctrl_info, pqi_ctrl_info 1477 drivers/scsi/smartpqi/smartpqi_init.c struct pqi_ctrl_info *ctrl_info; pqi_ctrl_info 1479 drivers/scsi/smartpqi/smartpqi_init.c ctrl_info = container_of(to_delayed_work(work), struct pqi_ctrl_info, pqi_ctrl_info 1485 drivers/scsi/smartpqi/smartpqi_init.c static int pqi_add_device(struct pqi_ctrl_info *ctrl_info, pqi_ctrl_info 1501 drivers/scsi/smartpqi/smartpqi_init.c static inline void pqi_remove_device(struct pqi_ctrl_info *ctrl_info, pqi_ctrl_info 1525 drivers/scsi/smartpqi/smartpqi_init.c static struct pqi_scsi_dev *pqi_find_scsi_dev(struct pqi_ctrl_info *ctrl_info, pqi_ctrl_info 1558 drivers/scsi/smartpqi/smartpqi_init.c static enum pqi_find_result pqi_scsi_find_entry(struct pqi_ctrl_info *ctrl_info, pqi_ctrl_info 1591 drivers/scsi/smartpqi/smartpqi_init.c static void pqi_dev_info(struct pqi_ctrl_info *ctrl_info, pqi_ctrl_info 1718 drivers/scsi/smartpqi/smartpqi_init.c static inline void pqi_fixup_botched_add(struct pqi_ctrl_info *ctrl_info, pqi_ctrl_info 1739 drivers/scsi/smartpqi/smartpqi_init.c static void pqi_update_device_list(struct pqi_ctrl_info *ctrl_info, pqi_ctrl_info 1943 drivers/scsi/smartpqi/smartpqi_init.c static int pqi_update_scsi_devices(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 2151 drivers/scsi/smartpqi/smartpqi_init.c static void pqi_remove_all_scsi_devices(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 2176 drivers/scsi/smartpqi/smartpqi_init.c static int pqi_scan_scsi_devices(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 2198 drivers/scsi/smartpqi/smartpqi_init.c struct pqi_ctrl_info *ctrl_info; pqi_ctrl_info 2212 drivers/scsi/smartpqi/smartpqi_init.c struct pqi_ctrl_info *ctrl_info; pqi_ctrl_info 2219 drivers/scsi/smartpqi/smartpqi_init.c static void pqi_wait_until_scan_finished(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 2225 drivers/scsi/smartpqi/smartpqi_init.c static void pqi_wait_until_lun_reset_finished(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 2231 drivers/scsi/smartpqi/smartpqi_init.c static void pqi_wait_until_ofa_finished(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 2264 drivers/scsi/smartpqi/smartpqi_init.c static int pqi_raid_bypass_submit_scsi_cmd(struct pqi_ctrl_info *ctrl_info, pqi_ctrl_info 2605 drivers/scsi/smartpqi/smartpqi_init.c static int pqi_wait_for_pqi_mode_ready(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 2666 drivers/scsi/smartpqi/smartpqi_init.c struct pqi_ctrl_info *ctrl_info; pqi_ctrl_info 2752 drivers/scsi/smartpqi/smartpqi_init.c struct pqi_ctrl_info *ctrl_info = shost_to_hba(scmd->device->host); pqi_ctrl_info 2906 drivers/scsi/smartpqi/smartpqi_init.c static unsigned int pqi_process_io_intr(struct pqi_ctrl_info *ctrl_info, pqi_ctrl_info 3004 drivers/scsi/smartpqi/smartpqi_init.c static void pqi_send_event_ack(struct pqi_ctrl_info *ctrl_info, pqi_ctrl_info 3050 drivers/scsi/smartpqi/smartpqi_init.c static void pqi_acknowledge_event(struct pqi_ctrl_info *ctrl_info, pqi_ctrl_info 3071 drivers/scsi/smartpqi/smartpqi_init.c struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 3099 drivers/scsi/smartpqi/smartpqi_init.c static void pqi_process_soft_reset(struct pqi_ctrl_info *ctrl_info, pqi_ctrl_info 3132 drivers/scsi/smartpqi/smartpqi_init.c static void pqi_ofa_process_event(struct pqi_ctrl_info *ctrl_info, pqi_ctrl_info 3175 drivers/scsi/smartpqi/smartpqi_init.c struct pqi_ctrl_info *ctrl_info; pqi_ctrl_info 3178 drivers/scsi/smartpqi/smartpqi_init.c ctrl_info = container_of(work, struct pqi_ctrl_info, event_work); pqi_ctrl_info 3211 drivers/scsi/smartpqi/smartpqi_init.c struct pqi_ctrl_info *ctrl_info = from_timer(ctrl_info, t, pqi_ctrl_info 3238 drivers/scsi/smartpqi/smartpqi_init.c static void pqi_start_heartbeat_timer(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 3253 drivers/scsi/smartpqi/smartpqi_init.c static inline void pqi_stop_heartbeat_timer(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 3292 drivers/scsi/smartpqi/smartpqi_init.c static unsigned int pqi_process_event_intr(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 3344 drivers/scsi/smartpqi/smartpqi_init.c static inline void pqi_configure_legacy_intx(struct pqi_ctrl_info *ctrl_info, pqi_ctrl_info 3363 drivers/scsi/smartpqi/smartpqi_init.c static void pqi_change_irq_mode(struct pqi_ctrl_info *ctrl_info, pqi_ctrl_info 3412 drivers/scsi/smartpqi/smartpqi_init.c static inline bool pqi_is_valid_irq(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 3440 drivers/scsi/smartpqi/smartpqi_init.c struct pqi_ctrl_info *ctrl_info; pqi_ctrl_info 3464 drivers/scsi/smartpqi/smartpqi_init.c static int pqi_request_irqs(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 3487 drivers/scsi/smartpqi/smartpqi_init.c static void pqi_free_irqs(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 3498 drivers/scsi/smartpqi/smartpqi_init.c static int pqi_enable_msix_interrupts(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 3517 drivers/scsi/smartpqi/smartpqi_init.c static void pqi_disable_msix_interrupts(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 3525 drivers/scsi/smartpqi/smartpqi_init.c static int pqi_alloc_operational_queues(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 3668 drivers/scsi/smartpqi/smartpqi_init.c static void pqi_init_operational_queues(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 3709 drivers/scsi/smartpqi/smartpqi_init.c static int pqi_alloc_admin_queues(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 3762 drivers/scsi/smartpqi/smartpqi_init.c static int pqi_create_admin_queues(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 3814 drivers/scsi/smartpqi/smartpqi_init.c static void pqi_submit_admin_request(struct pqi_ctrl_info *ctrl_info, pqi_ctrl_info 3841 drivers/scsi/smartpqi/smartpqi_init.c static int pqi_poll_for_admin_response(struct pqi_ctrl_info *ctrl_info, pqi_ctrl_info 3878 drivers/scsi/smartpqi/smartpqi_init.c static void pqi_start_io(struct pqi_ctrl_info *ctrl_info, pqi_ctrl_info 3960 drivers/scsi/smartpqi/smartpqi_init.c static int pqi_wait_for_completion_io(struct pqi_ctrl_info *ctrl_info, pqi_ctrl_info 4013 drivers/scsi/smartpqi/smartpqi_init.c static int pqi_submit_raid_request_synchronous(struct pqi_ctrl_info *ctrl_info, pqi_ctrl_info 4139 drivers/scsi/smartpqi/smartpqi_init.c struct pqi_ctrl_info *ctrl_info, pqi_ctrl_info 4156 drivers/scsi/smartpqi/smartpqi_init.c static int pqi_report_device_capability(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 4232 drivers/scsi/smartpqi/smartpqi_init.c static int pqi_validate_device_capability(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 4276 drivers/scsi/smartpqi/smartpqi_init.c static int pqi_create_event_queue(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 4321 drivers/scsi/smartpqi/smartpqi_init.c static int pqi_create_queue_group(struct pqi_ctrl_info *ctrl_info, pqi_ctrl_info 4462 drivers/scsi/smartpqi/smartpqi_init.c static int pqi_create_queues(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 4491 drivers/scsi/smartpqi/smartpqi_init.c static int pqi_configure_events(struct pqi_ctrl_info *ctrl_info, pqi_ctrl_info 4570 drivers/scsi/smartpqi/smartpqi_init.c static inline int pqi_enable_events(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 4575 drivers/scsi/smartpqi/smartpqi_init.c static inline int pqi_disable_events(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 4580 drivers/scsi/smartpqi/smartpqi_init.c static void pqi_free_all_io_requests(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 4608 drivers/scsi/smartpqi/smartpqi_init.c static inline int pqi_alloc_error_buffer(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 4621 drivers/scsi/smartpqi/smartpqi_init.c static int pqi_alloc_io_resources(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 4684 drivers/scsi/smartpqi/smartpqi_init.c static void pqi_calculate_io_resources(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 4719 drivers/scsi/smartpqi/smartpqi_init.c static void pqi_calculate_queue_resources(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 4787 drivers/scsi/smartpqi/smartpqi_init.c static int pqi_build_raid_sg_list(struct pqi_ctrl_info *ctrl_info, pqi_ctrl_info 4851 drivers/scsi/smartpqi/smartpqi_init.c static int pqi_build_aio_sg_list(struct pqi_ctrl_info *ctrl_info, pqi_ctrl_info 4928 drivers/scsi/smartpqi/smartpqi_init.c struct pqi_ctrl_info *ctrl_info, struct pqi_io_request *io_request, pqi_ctrl_info 5017 drivers/scsi/smartpqi/smartpqi_init.c static inline int pqi_raid_submit_scsi_cmd(struct pqi_ctrl_info *ctrl_info, pqi_ctrl_info 5029 drivers/scsi/smartpqi/smartpqi_init.c static inline void pqi_schedule_bypass_retry(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 5039 drivers/scsi/smartpqi/smartpqi_init.c struct pqi_ctrl_info *ctrl_info; pqi_ctrl_info 5062 drivers/scsi/smartpqi/smartpqi_init.c struct pqi_ctrl_info *ctrl_info, pqi_ctrl_info 5090 drivers/scsi/smartpqi/smartpqi_init.c struct pqi_ctrl_info *ctrl_info; pqi_ctrl_info 5105 drivers/scsi/smartpqi/smartpqi_init.c struct pqi_ctrl_info *ctrl_info; pqi_ctrl_info 5127 drivers/scsi/smartpqi/smartpqi_init.c struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 5143 drivers/scsi/smartpqi/smartpqi_init.c static void pqi_retry_raid_bypass_requests(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 5170 drivers/scsi/smartpqi/smartpqi_init.c struct pqi_ctrl_info *ctrl_info; pqi_ctrl_info 5172 drivers/scsi/smartpqi/smartpqi_init.c ctrl_info = container_of(work, struct pqi_ctrl_info, pqi_ctrl_info 5178 drivers/scsi/smartpqi/smartpqi_init.c struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 5204 drivers/scsi/smartpqi/smartpqi_init.c static inline int pqi_aio_submit_scsi_cmd(struct pqi_ctrl_info *ctrl_info, pqi_ctrl_info 5212 drivers/scsi/smartpqi/smartpqi_init.c static int pqi_aio_submit_io(struct pqi_ctrl_info *ctrl_info, pqi_ctrl_info 5282 drivers/scsi/smartpqi/smartpqi_init.c static inline u16 pqi_get_hw_queue(struct pqi_ctrl_info *ctrl_info, pqi_ctrl_info 5321 drivers/scsi/smartpqi/smartpqi_init.c struct pqi_ctrl_info *ctrl_info; pqi_ctrl_info 5390 drivers/scsi/smartpqi/smartpqi_init.c static int pqi_wait_until_queued_io_drained(struct pqi_ctrl_info *ctrl_info, pqi_ctrl_info 5417 drivers/scsi/smartpqi/smartpqi_init.c static int pqi_wait_until_inbound_queues_empty(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 5451 drivers/scsi/smartpqi/smartpqi_init.c static void pqi_fail_io_queued_for_device(struct pqi_ctrl_info *ctrl_info, pqi_ctrl_info 5492 drivers/scsi/smartpqi/smartpqi_init.c static void pqi_fail_io_queued_for_all_devices(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 5528 drivers/scsi/smartpqi/smartpqi_init.c static int pqi_device_wait_for_pending_io(struct pqi_ctrl_info *ctrl_info, pqi_ctrl_info 5552 drivers/scsi/smartpqi/smartpqi_init.c static int pqi_ctrl_wait_for_pending_io(struct pqi_ctrl_info *ctrl_info, pqi_ctrl_info 5595 drivers/scsi/smartpqi/smartpqi_init.c static int pqi_ctrl_wait_for_pending_sync_cmds(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 5617 drivers/scsi/smartpqi/smartpqi_init.c static int pqi_wait_for_lun_reset_completion(struct pqi_ctrl_info *ctrl_info, pqi_ctrl_info 5639 drivers/scsi/smartpqi/smartpqi_init.c static int pqi_lun_reset(struct pqi_ctrl_info *ctrl_info, pqi_ctrl_info 5681 drivers/scsi/smartpqi/smartpqi_init.c static int _pqi_device_reset(struct pqi_ctrl_info *ctrl_info, pqi_ctrl_info 5702 drivers/scsi/smartpqi/smartpqi_init.c static int pqi_device_reset(struct pqi_ctrl_info *ctrl_info, pqi_ctrl_info 5732 drivers/scsi/smartpqi/smartpqi_init.c struct pqi_ctrl_info *ctrl_info; pqi_ctrl_info 5769 drivers/scsi/smartpqi/smartpqi_init.c struct pqi_ctrl_info *ctrl_info; pqi_ctrl_info 5812 drivers/scsi/smartpqi/smartpqi_init.c struct pqi_ctrl_info *ctrl_info = shost_to_hba(shost); pqi_ctrl_info 5818 drivers/scsi/smartpqi/smartpqi_init.c static int pqi_getpciinfo_ioctl(struct pqi_ctrl_info *ctrl_info, pqi_ctrl_info 5930 drivers/scsi/smartpqi/smartpqi_init.c static int pqi_passthru_ioctl(struct pqi_ctrl_info *ctrl_info, void __user *arg) pqi_ctrl_info 6072 drivers/scsi/smartpqi/smartpqi_init.c struct pqi_ctrl_info *ctrl_info; pqi_ctrl_info 6107 drivers/scsi/smartpqi/smartpqi_init.c struct pqi_ctrl_info *ctrl_info; pqi_ctrl_info 6119 drivers/scsi/smartpqi/smartpqi_init.c struct pqi_ctrl_info *ctrl_info; pqi_ctrl_info 6132 drivers/scsi/smartpqi/smartpqi_init.c struct pqi_ctrl_info *ctrl_info; pqi_ctrl_info 6144 drivers/scsi/smartpqi/smartpqi_init.c struct pqi_ctrl_info *ctrl_info; pqi_ctrl_info 6156 drivers/scsi/smartpqi/smartpqi_init.c struct pqi_ctrl_info *ctrl_info; pqi_ctrl_info 6237 drivers/scsi/smartpqi/smartpqi_init.c struct pqi_ctrl_info *ctrl_info; pqi_ctrl_info 6275 drivers/scsi/smartpqi/smartpqi_init.c struct pqi_ctrl_info *ctrl_info; pqi_ctrl_info 6303 drivers/scsi/smartpqi/smartpqi_init.c struct pqi_ctrl_info *ctrl_info; pqi_ctrl_info 6387 drivers/scsi/smartpqi/smartpqi_init.c struct pqi_ctrl_info *ctrl_info; pqi_ctrl_info 6414 drivers/scsi/smartpqi/smartpqi_init.c struct pqi_ctrl_info *ctrl_info; pqi_ctrl_info 6437 drivers/scsi/smartpqi/smartpqi_init.c struct pqi_ctrl_info *ctrl_info; pqi_ctrl_info 6494 drivers/scsi/smartpqi/smartpqi_init.c static int pqi_register_scsi(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 6552 drivers/scsi/smartpqi/smartpqi_init.c static void pqi_unregister_scsi(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 6566 drivers/scsi/smartpqi/smartpqi_init.c static int pqi_wait_for_pqi_reset_completion(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 6597 drivers/scsi/smartpqi/smartpqi_init.c static int pqi_reset(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 6626 drivers/scsi/smartpqi/smartpqi_init.c static int pqi_get_ctrl_serial_number(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 6649 drivers/scsi/smartpqi/smartpqi_init.c static int pqi_get_ctrl_product_details(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 6685 drivers/scsi/smartpqi/smartpqi_init.c struct pqi_ctrl_info *ctrl_info; pqi_ctrl_info 6738 drivers/scsi/smartpqi/smartpqi_init.c static int pqi_config_table_update(struct pqi_ctrl_info *ctrl_info, pqi_ctrl_info 6759 drivers/scsi/smartpqi/smartpqi_init.c static int pqi_enable_firmware_features(struct pqi_ctrl_info *ctrl_info, pqi_ctrl_info 6785 drivers/scsi/smartpqi/smartpqi_init.c void (*feature_status)(struct pqi_ctrl_info *ctrl_info, pqi_ctrl_info 6789 drivers/scsi/smartpqi/smartpqi_init.c static void pqi_firmware_feature_status(struct pqi_ctrl_info *ctrl_info, pqi_ctrl_info 6808 drivers/scsi/smartpqi/smartpqi_init.c static inline void pqi_firmware_feature_update(struct pqi_ctrl_info *ctrl_info, pqi_ctrl_info 6839 drivers/scsi/smartpqi/smartpqi_init.c struct pqi_ctrl_info *ctrl_info; pqi_ctrl_info 6922 drivers/scsi/smartpqi/smartpqi_init.c static int pqi_process_config_table(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 6998 drivers/scsi/smartpqi/smartpqi_init.c static int pqi_revert_to_sis_mode(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 7022 drivers/scsi/smartpqi/smartpqi_init.c static int pqi_force_sis_mode(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 7040 drivers/scsi/smartpqi/smartpqi_init.c static int pqi_ctrl_init(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 7239 drivers/scsi/smartpqi/smartpqi_init.c static void pqi_reinit_queues(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 7265 drivers/scsi/smartpqi/smartpqi_init.c static int pqi_ctrl_init_resume(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 7389 drivers/scsi/smartpqi/smartpqi_init.c static int pqi_pci_init(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 7458 drivers/scsi/smartpqi/smartpqi_init.c static void pqi_cleanup_pci_init(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 7467 drivers/scsi/smartpqi/smartpqi_init.c static struct pqi_ctrl_info *pqi_alloc_ctrl_info(int numa_node) pqi_ctrl_info 7469 drivers/scsi/smartpqi/smartpqi_init.c struct pqi_ctrl_info *ctrl_info; pqi_ctrl_info 7471 drivers/scsi/smartpqi/smartpqi_init.c ctrl_info = kzalloc_node(sizeof(struct pqi_ctrl_info), pqi_ctrl_info 7509 drivers/scsi/smartpqi/smartpqi_init.c static inline void pqi_free_ctrl_info(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 7514 drivers/scsi/smartpqi/smartpqi_init.c static void pqi_free_interrupts(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 7520 drivers/scsi/smartpqi/smartpqi_init.c static void pqi_free_ctrl_resources(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 7545 drivers/scsi/smartpqi/smartpqi_init.c static void pqi_remove_ctrl(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 7556 drivers/scsi/smartpqi/smartpqi_init.c static void pqi_ofa_ctrl_quiesce(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 7573 drivers/scsi/smartpqi/smartpqi_init.c static void pqi_ofa_ctrl_unquiesce(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 7587 drivers/scsi/smartpqi/smartpqi_init.c static int pqi_ofa_alloc_mem(struct pqi_ctrl_info *ctrl_info, pqi_ctrl_info 7650 drivers/scsi/smartpqi/smartpqi_init.c static int pqi_ofa_alloc_host_buffer(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 7667 drivers/scsi/smartpqi/smartpqi_init.c static void pqi_ofa_setup_host_buffer(struct pqi_ctrl_info *ctrl_info, pqi_ctrl_info 7695 drivers/scsi/smartpqi/smartpqi_init.c static void pqi_ofa_free_host_buffer(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 7727 drivers/scsi/smartpqi/smartpqi_init.c static int pqi_ofa_host_memory_update(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 7759 drivers/scsi/smartpqi/smartpqi_init.c static int pqi_ofa_ctrl_restart(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 7785 drivers/scsi/smartpqi/smartpqi_init.c static void pqi_fail_all_outstanding_requests(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 7810 drivers/scsi/smartpqi/smartpqi_init.c static void pqi_take_ctrl_offline_deferred(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 7825 drivers/scsi/smartpqi/smartpqi_init.c struct pqi_ctrl_info *ctrl_info; pqi_ctrl_info 7827 drivers/scsi/smartpqi/smartpqi_init.c ctrl_info = container_of(work, struct pqi_ctrl_info, ctrl_offline_work); pqi_ctrl_info 7831 drivers/scsi/smartpqi/smartpqi_init.c static void pqi_take_ctrl_offline(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 7864 drivers/scsi/smartpqi/smartpqi_init.c struct pqi_ctrl_info *ctrl_info; pqi_ctrl_info 7915 drivers/scsi/smartpqi/smartpqi_init.c struct pqi_ctrl_info *ctrl_info; pqi_ctrl_info 7926 drivers/scsi/smartpqi/smartpqi_init.c static void pqi_crash_if_pending_command(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 7945 drivers/scsi/smartpqi/smartpqi_init.c struct pqi_ctrl_info *ctrl_info; pqi_ctrl_info 8022 drivers/scsi/smartpqi/smartpqi_init.c struct pqi_ctrl_info *ctrl_info; pqi_ctrl_info 8054 drivers/scsi/smartpqi/smartpqi_init.c struct pqi_ctrl_info *ctrl_info; pqi_ctrl_info 200 drivers/scsi/smartpqi/smartpqi_sas_transport.c struct pqi_ctrl_info *ctrl_info, struct sas_rphy *rphy) pqi_ctrl_info 215 drivers/scsi/smartpqi/smartpqi_sas_transport.c int pqi_add_sas_host(struct Scsi_Host *shost, struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 260 drivers/scsi/smartpqi/smartpqi_sas_transport.c void pqi_delete_sas_host(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 319 drivers/scsi/smartpqi/smartpqi_sas_transport.c struct pqi_ctrl_info *ctrl_info; pqi_ctrl_info 393 drivers/scsi/smartpqi/smartpqi_sas_transport.c struct pqi_ctrl_info *ctrl_info; pqi_ctrl_info 515 drivers/scsi/smartpqi/smartpqi_sas_transport.c struct pqi_ctrl_info *ctrl_info = shost_to_hba(shost); pqi_ctrl_info 81 drivers/scsi/smartpqi/smartpqi_sis.c static int sis_wait_for_ctrl_ready_with_timeout(struct pqi_ctrl_info *ctrl_info, pqi_ctrl_info 114 drivers/scsi/smartpqi/smartpqi_sis.c int sis_wait_for_ctrl_ready(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 120 drivers/scsi/smartpqi/smartpqi_sis.c int sis_wait_for_ctrl_ready_resume(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 126 drivers/scsi/smartpqi/smartpqi_sis.c bool sis_is_firmware_running(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 146 drivers/scsi/smartpqi/smartpqi_sis.c bool sis_is_kernel_up(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 157 drivers/scsi/smartpqi/smartpqi_sis.c static int sis_send_sync_cmd(struct pqi_ctrl_info *ctrl_info, pqi_ctrl_info 233 drivers/scsi/smartpqi/smartpqi_sis.c int sis_get_ctrl_properties(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 264 drivers/scsi/smartpqi/smartpqi_sis.c int sis_get_pqi_capabilities(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 285 drivers/scsi/smartpqi/smartpqi_sis.c int sis_init_base_struct_addr(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 339 drivers/scsi/smartpqi/smartpqi_sis.c struct pqi_ctrl_info *ctrl_info, u32 bit) pqi_ctrl_info 370 drivers/scsi/smartpqi/smartpqi_sis.c static inline int sis_set_doorbell_bit(struct pqi_ctrl_info *ctrl_info, u32 bit) pqi_ctrl_info 377 drivers/scsi/smartpqi/smartpqi_sis.c void sis_enable_msix(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 382 drivers/scsi/smartpqi/smartpqi_sis.c void sis_enable_intx(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 387 drivers/scsi/smartpqi/smartpqi_sis.c void sis_shutdown_ctrl(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 397 drivers/scsi/smartpqi/smartpqi_sis.c int sis_pqi_reset_quiesce(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 402 drivers/scsi/smartpqi/smartpqi_sis.c int sis_reenable_sis_mode(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 407 drivers/scsi/smartpqi/smartpqi_sis.c void sis_write_driver_scratch(struct pqi_ctrl_info *ctrl_info, u32 value) pqi_ctrl_info 412 drivers/scsi/smartpqi/smartpqi_sis.c u32 sis_read_driver_scratch(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 417 drivers/scsi/smartpqi/smartpqi_sis.c void sis_soft_reset(struct pqi_ctrl_info *ctrl_info) pqi_ctrl_info 15 drivers/scsi/smartpqi/smartpqi_sis.h int sis_wait_for_ctrl_ready(struct pqi_ctrl_info *ctrl_info); pqi_ctrl_info 16 drivers/scsi/smartpqi/smartpqi_sis.h int sis_wait_for_ctrl_ready_resume(struct pqi_ctrl_info *ctrl_info); pqi_ctrl_info 17 drivers/scsi/smartpqi/smartpqi_sis.h bool sis_is_firmware_running(struct pqi_ctrl_info *ctrl_info); pqi_ctrl_info 18 drivers/scsi/smartpqi/smartpqi_sis.h bool sis_is_kernel_up(struct pqi_ctrl_info *ctrl_info); pqi_ctrl_info 19 drivers/scsi/smartpqi/smartpqi_sis.h int sis_get_ctrl_properties(struct pqi_ctrl_info *ctrl_info); pqi_ctrl_info 20 drivers/scsi/smartpqi/smartpqi_sis.h int sis_get_pqi_capabilities(struct pqi_ctrl_info *ctrl_info); pqi_ctrl_info 21 drivers/scsi/smartpqi/smartpqi_sis.h int sis_init_base_struct_addr(struct pqi_ctrl_info *ctrl_info); pqi_ctrl_info 22 drivers/scsi/smartpqi/smartpqi_sis.h void sis_enable_msix(struct pqi_ctrl_info *ctrl_info); pqi_ctrl_info 23 drivers/scsi/smartpqi/smartpqi_sis.h void sis_enable_intx(struct pqi_ctrl_info *ctrl_info); pqi_ctrl_info 24 drivers/scsi/smartpqi/smartpqi_sis.h void sis_shutdown_ctrl(struct pqi_ctrl_info *ctrl_info); pqi_ctrl_info 25 drivers/scsi/smartpqi/smartpqi_sis.h int sis_pqi_reset_quiesce(struct pqi_ctrl_info *ctrl_info); pqi_ctrl_info 26 drivers/scsi/smartpqi/smartpqi_sis.h int sis_reenable_sis_mode(struct pqi_ctrl_info *ctrl_info); pqi_ctrl_info 27 drivers/scsi/smartpqi/smartpqi_sis.h void sis_write_driver_scratch(struct pqi_ctrl_info *ctrl_info, u32 value); pqi_ctrl_info 28 drivers/scsi/smartpqi/smartpqi_sis.h u32 sis_read_driver_scratch(struct pqi_ctrl_info *ctrl_info); pqi_ctrl_info 29 drivers/scsi/smartpqi/smartpqi_sis.h void sis_soft_reset(struct pqi_ctrl_info *ctrl_info);