Lines Matching defs:h

375 static int check_for_unit_attention(struct ctlr_info *h,  in check_for_unit_attention()
428 static int check_for_busy(struct ctlr_info *h, struct CommandList *c) in check_for_busy()
443 struct ctlr_info *h; in host_show_lockup_detected() local
457 struct ctlr_info *h; in host_store_hp_ssd_smart_path_status() local
477 struct ctlr_info *h; in host_store_raid_offload_debug() local
497 struct ctlr_info *h; in host_store_rescan() local
513 struct ctlr_info *h; in host_show_firmware_revision() local
529 struct ctlr_info *h = shost_to_hba(shost); in host_show_commands_outstanding() local
538 struct ctlr_info *h; in host_show_transport_mode() local
550 struct ctlr_info *h; in host_show_hp_ssd_smart_path_status() local
634 struct ctlr_info *h; in host_show_resettable() local
669 struct ctlr_info *h; in raid_level_show() local
701 struct ctlr_info *h; in lunid_show() local
723 struct ctlr_info *h; in unique_id_show() local
751 struct ctlr_info *h; in sas_address_show() local
774 struct ctlr_info *h; in host_show_hp_ssd_smart_path_enabled() local
802 struct ctlr_info *h; in path_info_show() local
887 struct ctlr_info *h; in host_show_ctlr_num() local
897 struct ctlr_info *h; in host_show_legacy_board() local
986 static inline u32 next_command(struct ctlr_info *h, u8 q) in next_command()
1044 static void set_performant_mode(struct ctlr_info *h, struct CommandList *c, in set_performant_mode()
1055 static void set_ioaccel1_performant_mode(struct ctlr_info *h, in set_ioaccel1_performant_mode()
1076 static void set_ioaccel2_tmf_performant_mode(struct ctlr_info *h, in set_ioaccel2_tmf_performant_mode()
1095 static void set_ioaccel2_performant_mode(struct ctlr_info *h, in set_ioaccel2_performant_mode()
1128 static void dial_down_lockup_detection_during_fw_flash(struct ctlr_info *h, in dial_down_lockup_detection_during_fw_flash()
1137 static void dial_up_lockup_detection_on_fw_flash_complete(struct ctlr_info *h, in dial_up_lockup_detection_on_fw_flash_complete()
1145 static void __enqueue_cmd_and_start_io(struct ctlr_info *h, in __enqueue_cmd_and_start_io()
1176 static void enqueue_cmd_and_start_io(struct ctlr_info *h, struct CommandList *c) in enqueue_cmd_and_start_io()
1186 static inline int is_scsi_rev_5(struct ctlr_info *h) in is_scsi_rev_5()
1195 static int hpsa_find_target_lun(struct ctlr_info *h, in hpsa_find_target_lun()
1221 static void hpsa_show_dev_msg(const char *level, struct ctlr_info *h, in hpsa_show_dev_msg()
1277 static int hpsa_scsi_add_entry(struct ctlr_info *h, in hpsa_scsi_add_entry()
1355 static void hpsa_scsi_update_entry(struct ctlr_info *h, in hpsa_scsi_update_entry()
1408 static void hpsa_scsi_replace_entry(struct ctlr_info *h, in hpsa_scsi_replace_entry()
1435 static void hpsa_scsi_remove_entry(struct ctlr_info *h, int entry, in hpsa_scsi_remove_entry()
1464 static void fixup_botched_add(struct ctlr_info *h, in fixup_botched_add()
1581 static void hpsa_monitor_offline_device(struct ctlr_info *h, in hpsa_monitor_offline_device()
1610 static void hpsa_show_volume_status(struct ctlr_info *h, in hpsa_show_volume_status()
1694 static void hpsa_figure_phys_disk_ptrs(struct ctlr_info *h, in hpsa_figure_phys_disk_ptrs()
1769 static void hpsa_update_log_drive_phys_drive_ptrs(struct ctlr_info *h, in hpsa_update_log_drive_phys_drive_ptrs()
1807 static int hpsa_add_device(struct ctlr_info *h, struct hpsa_scsi_dev_t *device) in hpsa_add_device()
1823 static int hpsa_find_outstanding_commands_for_dev(struct ctlr_info *h, in hpsa_find_outstanding_commands_for_dev()
1850 static void hpsa_wait_for_outstanding_commands_for_dev(struct ctlr_info *h, in hpsa_wait_for_outstanding_commands_for_dev()
1878 static void hpsa_remove_device(struct ctlr_info *h, in hpsa_remove_device()
1913 static void adjust_hpsa_scsi_table(struct ctlr_info *h, in adjust_hpsa_scsi_table()
2089 static struct hpsa_scsi_dev_t *lookup_hpsa_scsi_dev(struct ctlr_info *h, in lookup_hpsa_scsi_dev()
2107 struct ctlr_info *h; in hpsa_sdev_init() local
2180 static void hpsa_free_ioaccel2_sg_chain_blocks(struct ctlr_info *h) in hpsa_free_ioaccel2_sg_chain_blocks()
2194 static int hpsa_allocate_ioaccel2_sg_chain_blocks(struct ctlr_info *h) in hpsa_allocate_ioaccel2_sg_chain_blocks()
2221 static void hpsa_free_sg_chain_blocks(struct ctlr_info *h) in hpsa_free_sg_chain_blocks()
2235 static int hpsa_alloc_sg_chain_blocks(struct ctlr_info *h) in hpsa_alloc_sg_chain_blocks()
2262 static int hpsa_map_ioaccel2_sg_chain_block(struct ctlr_info *h, in hpsa_map_ioaccel2_sg_chain_block()
2282 static void hpsa_unmap_ioaccel2_sg_chain_block(struct ctlr_info *h, in hpsa_unmap_ioaccel2_sg_chain_block()
2295 static int hpsa_map_sg_chain_block(struct ctlr_info *h, in hpsa_map_sg_chain_block()
2319 static void hpsa_unmap_sg_chain_block(struct ctlr_info *h, in hpsa_unmap_sg_chain_block()
2337 static int handle_ioaccel_mode2_error(struct ctlr_info *h, in handle_ioaccel_mode2_error()
2452 static void hpsa_cmd_resolve_events(struct ctlr_info *h, in hpsa_cmd_resolve_events()
2472 static void hpsa_cmd_resolve_and_free(struct ctlr_info *h, in hpsa_cmd_resolve_and_free()
2479 static void hpsa_cmd_free_and_done(struct ctlr_info *h, in hpsa_cmd_free_and_done()
2487 static void hpsa_retry_cmd(struct ctlr_info *h, struct CommandList *c) in hpsa_retry_cmd()
2493 static void process_ioaccel2_completion(struct ctlr_info *h, in process_ioaccel2_completion()
2534 static int hpsa_evaluate_tmf_status(struct ctlr_info *h, in hpsa_evaluate_tmf_status()
2564 struct ctlr_info *h; in complete_scsi_command() local
2841 static int hpsa_scsi_do_simple_cmd_core(struct ctlr_info *h, in hpsa_scsi_do_simple_cmd_core()
2861 static int hpsa_scsi_do_simple_cmd(struct ctlr_info *h, struct CommandList *c, in hpsa_scsi_do_simple_cmd()
2871 static u32 lockup_detected(struct ctlr_info *h) in lockup_detected()
2884 static int hpsa_scsi_do_simple_cmd_with_retry(struct ctlr_info *h, in hpsa_scsi_do_simple_cmd_with_retry()
2912 static void hpsa_print_cmd(struct ctlr_info *h, char *txt, in hpsa_print_cmd()
2922 static void hpsa_scsi_interpret_error(struct ctlr_info *h, in hpsa_scsi_interpret_error()
2997 static int hpsa_do_receive_diagnostic(struct ctlr_info *h, u8 *scsi3addr, in hpsa_do_receive_diagnostic()
3024 static u64 hpsa_get_enclosure_logical_identifier(struct ctlr_info *h, in hpsa_get_enclosure_logical_identifier()
3048 static int hpsa_scsi_do_inquiry(struct ctlr_info *h, unsigned char *scsi3addr, in hpsa_scsi_do_inquiry()
3077 static int hpsa_send_reset(struct ctlr_info *h, struct hpsa_scsi_dev_t *dev, in hpsa_send_reset()
3106 static bool hpsa_cmd_dev_match(struct ctlr_info *h, struct CommandList *c, in hpsa_cmd_dev_match()
3165 static int hpsa_do_reset(struct ctlr_info *h, struct hpsa_scsi_dev_t *dev, in hpsa_do_reset()
3198 static void hpsa_get_raid_level(struct ctlr_info *h, in hpsa_get_raid_level()
3227 static void hpsa_debug_map_buff(struct ctlr_info *h, int rc, in hpsa_debug_map_buff()
3296 static void hpsa_debug_map_buff(__attribute__((unused)) struct ctlr_info *h, in hpsa_debug_map_buff()
3303 static int hpsa_get_raid_map(struct ctlr_info *h, in hpsa_get_raid_map()
3344 static int hpsa_bmic_sense_subsystem_information(struct ctlr_info *h, in hpsa_bmic_sense_subsystem_information()
3376 static int hpsa_bmic_id_controller(struct ctlr_info *h, in hpsa_bmic_id_controller()
3404 static int hpsa_bmic_id_physical_device(struct ctlr_info *h, in hpsa_bmic_id_physical_device()
3440 static void hpsa_get_enclosure_info(struct ctlr_info *h, in hpsa_get_enclosure_info()
3530 static u64 hpsa_get_sas_address_from_report_physical(struct ctlr_info *h, in hpsa_get_sas_address_from_report_physical()
3560 static void hpsa_get_sas_address(struct ctlr_info *h, unsigned char *scsi3addr, in hpsa_get_sas_address()
3587 static void hpsa_ext_ctrl_present(struct ctlr_info *h, in hpsa_ext_ctrl_present()
3612 static bool hpsa_vpd_page_supported(struct ctlr_info *h, in hpsa_vpd_page_supported()
3662 static void hpsa_get_ioaccel_status(struct ctlr_info *h, in hpsa_get_ioaccel_status()
3709 static int hpsa_get_device_id(struct ctlr_info *h, unsigned char *scsi3addr, in hpsa_get_device_id()
3736 static int hpsa_scsi_do_report_luns(struct ctlr_info *h, int logical, in hpsa_scsi_do_report_luns()
3784 static inline int hpsa_scsi_do_report_phys_luns(struct ctlr_info *h, in hpsa_scsi_do_report_phys_luns()
3815 static inline int hpsa_scsi_do_report_log_luns(struct ctlr_info *h, in hpsa_scsi_do_report_log_luns()
3830 static int hpsa_get_volume_status(struct ctlr_info *h, in hpsa_get_volume_status()
3874 static unsigned char hpsa_volume_offline(struct ctlr_info *h, in hpsa_volume_offline()
3933 static int hpsa_update_device_info(struct ctlr_info *h, in hpsa_update_device_info()
4051 static void figure_bus_target_lun(struct ctlr_info *h, in figure_bus_target_lun()
4082 static int figure_external_status(struct ctlr_info *h, int raid_ctlr_position, in figure_external_status()
4109 static int hpsa_gather_lun_info(struct ctlr_info *h, in hpsa_gather_lun_info()
4146 static u8 *figure_lunaddrbytes(struct ctlr_info *h, int raid_ctlr_position, in figure_lunaddrbytes()
4174 static void hpsa_get_ioaccel_drive_info(struct ctlr_info *h, in hpsa_get_ioaccel_drive_info()
4237 static int hpsa_set_local_logical_count(struct ctlr_info *h, in hpsa_set_local_logical_count()
4261 static bool hpsa_is_disk_spare(struct ctlr_info *h, u8 *lunaddrbytes) in hpsa_is_disk_spare()
4288 static bool hpsa_skip_device(struct ctlr_info *h, u8 *lunaddrbytes, in hpsa_skip_device()
4326 static void hpsa_update_scsi_devices(struct ctlr_info *h) in hpsa_update_scsi_devices()
4569 static int hpsa_scatter_gather(struct ctlr_info *h, in hpsa_scatter_gather()
4639 static inline void warn_zero_length_transfer(struct ctlr_info *h, in warn_zero_length_transfer()
4725 static int hpsa_scsi_ioaccel1_queue_command(struct ctlr_info *h, in hpsa_scsi_ioaccel1_queue_command()
4822 static int hpsa_scsi_ioaccel_direct_map(struct ctlr_info *h, in hpsa_scsi_ioaccel_direct_map()
4843 static void set_encrypt_ioaccel2(struct ctlr_info *h, in set_encrypt_ioaccel2()
4899 static int hpsa_scsi_ioaccel2_queue_command(struct ctlr_info *h, in hpsa_scsi_ioaccel2_queue_command()
5038 static int hpsa_scsi_ioaccel_queue_command(struct ctlr_info *h, in hpsa_scsi_ioaccel_queue_command()
5096 static int hpsa_scsi_ioaccel_raid_map(struct ctlr_info *h, in hpsa_scsi_ioaccel_raid_map()
5450 static int hpsa_ciss_submit(struct ctlr_info *h, in hpsa_ciss_submit()
5522 static void hpsa_cmd_init(struct ctlr_info *h, int index, in hpsa_cmd_init()
5543 static void hpsa_preinitialize_commands(struct ctlr_info *h) in hpsa_preinitialize_commands()
5555 static inline void hpsa_cmd_partial_init(struct ctlr_info *h, int index, in hpsa_cmd_partial_init()
5567 static int hpsa_ioaccel_submit(struct ctlr_info *h, in hpsa_ioaccel_submit()
5628 struct ctlr_info *h = c->h; in hpsa_command_resubmit_worker() local
5677 struct ctlr_info *h; in hpsa_scsi_queue_command() local
5742 static void hpsa_scan_complete(struct ctlr_info *h) in hpsa_scan_complete()
5754 struct ctlr_info *h = shost_to_hba(sh); in hpsa_scan_start() local
5833 struct ctlr_info *h = shost_to_hba(sh); in hpsa_scan_finished() local
5843 static int hpsa_scsi_host_alloc(struct ctlr_info *h) in hpsa_scsi_host_alloc()
5872 static int hpsa_scsi_add_host(struct ctlr_info *h) in hpsa_scsi_add_host()
5906 static int hpsa_send_test_unit_ready(struct ctlr_info *h, in hpsa_send_test_unit_ready()
5942 static int hpsa_wait_for_test_unit_ready(struct ctlr_info *h, in hpsa_wait_for_test_unit_ready()
5975 static int wait_for_device_to_become_ready(struct ctlr_info *h, in wait_for_device_to_become_ready()
6022 struct ctlr_info *h; in hpsa_eh_device_reset_handler() local
6128 static struct CommandList *cmd_tagged_alloc(struct ctlr_info *h, in cmd_tagged_alloc()
6172 static void cmd_tagged_free(struct ctlr_info *h, struct CommandList *c) in cmd_tagged_free()
6190 static struct CommandList *cmd_alloc(struct ctlr_info *h) in cmd_alloc()
6251 static void cmd_free(struct ctlr_info *h, struct CommandList *c) in cmd_free()
6266 struct ctlr_info *h = sdev_to_hba(dev); in hpsa_ioctl32_passthru() local
6297 struct ctlr_info *h = sdev_to_hba(dev); in hpsa_ioctl32_big_passthru() local
6357 static int hpsa_getpciinfo_ioctl(struct ctlr_info *h, void __user *argp) in hpsa_getpciinfo_ioctl()
6372 static int hpsa_getdrivver_ioctl(struct ctlr_info *h, void __user *argp) in hpsa_getdrivver_ioctl()
6395 static int hpsa_passthru_ioctl(struct ctlr_info *h, in hpsa_passthru_ioctl()
6486 static int hpsa_big_passthru_ioctl(struct ctlr_info *h, in hpsa_big_passthru_ioctl()
6610 static void check_ioctl_unit_attention(struct ctlr_info *h, in check_ioctl_unit_attention()
6624 struct ctlr_info *h = sdev_to_hba(dev); in hpsa_ioctl() local
6671 static void hpsa_send_host_reset(struct ctlr_info *h, u8 reset_type) in hpsa_send_host_reset()
6690 static int fill_cmd(struct CommandList *c, u8 cmd, struct ctlr_info *h, in fill_cmd()
6929 static inline unsigned long get_next_completion(struct ctlr_info *h, u8 q) in get_next_completion()
6934 static inline bool interrupt_pending(struct ctlr_info *h) in interrupt_pending()
6939 static inline long interrupt_not_for_us(struct ctlr_info *h) in interrupt_not_for_us()
6945 static inline int bad_tag(struct ctlr_info *h, u32 tag_index, in bad_tag()
6966 static inline void process_indexed_cmd(struct ctlr_info *h, in process_indexed_cmd()
6984 static int ignore_bogus_interrupt(struct ctlr_info *h) in ignore_bogus_interrupt()
7010 struct ctlr_info *h = queue_to_hba(queue); in hpsa_intx_discard_completions() local
7030 struct ctlr_info *h = queue_to_hba(queue); in hpsa_msix_discard_completions() local
7046 struct ctlr_info *h = queue_to_hba((u8 *) queue); in do_hpsa_intr_intx() local
7065 struct ctlr_info *h = queue_to_hba(queue); in do_hpsa_intr_msi() local
7474 static void hpsa_disable_interrupt_mode(struct ctlr_info *h) in hpsa_disable_interrupt_mode()
7480 static void hpsa_setup_reply_map(struct ctlr_info *h) in hpsa_setup_reply_map()
7503 static int hpsa_interrupt_mode(struct ctlr_info *h) in hpsa_interrupt_mode()
7622 static void hpsa_free_cfgtables(struct ctlr_info *h) in hpsa_free_cfgtables()
7637 static int hpsa_find_cfgtables(struct ctlr_info *h) in hpsa_find_cfgtables()
7671 static void hpsa_get_max_perf_mode_cmds(struct ctlr_info *h) in hpsa_get_max_perf_mode_cmds()
7695 static int hpsa_supports_chained_sg_blocks(struct ctlr_info *h) in hpsa_supports_chained_sg_blocks()
7704 static void hpsa_find_board_params(struct ctlr_info *h) in hpsa_find_board_params()
7736 static inline bool hpsa_CISS_signature_present(struct ctlr_info *h) in hpsa_CISS_signature_present()
7745 static inline void hpsa_set_driver_support_bits(struct ctlr_info *h) in hpsa_set_driver_support_bits()
7761 static inline void hpsa_p600_dma_prefetch_quirk(struct ctlr_info *h) in hpsa_p600_dma_prefetch_quirk()
7772 static int hpsa_wait_for_clear_event_notify_ack(struct ctlr_info *h) in hpsa_wait_for_clear_event_notify_ack()
7792 static int hpsa_wait_for_mode_change_ack(struct ctlr_info *h) in hpsa_wait_for_mode_change_ack()
7819 static int hpsa_enter_simple_mode(struct ctlr_info *h) in hpsa_enter_simple_mode()
7846 static void hpsa_free_pci_init(struct ctlr_info *h) in hpsa_free_pci_init()
7861 static int hpsa_pci_init(struct ctlr_info *h) in hpsa_pci_init()
7944 static void hpsa_hba_inquiry(struct ctlr_info *h) in hpsa_hba_inquiry()
8022 static void hpsa_free_cmd_pool(struct ctlr_info *h) in hpsa_free_cmd_pool()
8044 static int hpsa_alloc_cmd_pool(struct ctlr_info *h) in hpsa_alloc_cmd_pool()
8067 static void hpsa_free_irqs(struct ctlr_info *h) in hpsa_free_irqs()
8092 static int hpsa_request_irqs(struct ctlr_info *h, in hpsa_request_irqs()
8158 static int hpsa_kdump_soft_reset(struct ctlr_info *h) in hpsa_kdump_soft_reset()
8181 static void hpsa_free_reply_queues(struct ctlr_info *h) in hpsa_free_reply_queues()
8198 static void hpsa_undo_allocations_after_kdump_soft_reset(struct ctlr_info *h) in hpsa_undo_allocations_after_kdump_soft_reset()
8226 static void fail_all_outstanding_cmds(struct ctlr_info *h) in fail_all_outstanding_cmds()
8248 static void set_lockup_detected_for_all_cpus(struct ctlr_info *h, u32 value) in set_lockup_detected_for_all_cpus()
8260 static void controller_lockup_detected(struct ctlr_info *h) in controller_lockup_detected()
8287 static int detect_controller_lockup(struct ctlr_info *h) in detect_controller_lockup()
8332 static void hpsa_set_ioaccel_status(struct ctlr_info *h) in hpsa_set_ioaccel_status()
8405 static void hpsa_ack_ctlr_events(struct ctlr_info *h) in hpsa_ack_ctlr_events()
8450 static int hpsa_ctlr_needs_rescan(struct ctlr_info *h) in hpsa_ctlr_needs_rescan()
8467 static int hpsa_offline_devices_ready(struct ctlr_info *h) in hpsa_offline_devices_ready()
8490 static int hpsa_luns_changed(struct ctlr_info *h) in hpsa_luns_changed()
8523 static void hpsa_perform_rescan(struct ctlr_info *h) in hpsa_perform_rescan()
8552 struct ctlr_info *h = container_of(to_delayed_work(work), in hpsa_event_monitor_worker() local
8578 struct ctlr_info *h = container_of(to_delayed_work(work), in hpsa_rescan_ctlr_worker() local
8607 struct ctlr_info *h = container_of(to_delayed_work(work), in hpsa_monitor_ctlr_worker() local
8621 static struct workqueue_struct *hpsa_create_controller_wq(struct ctlr_info *h, in hpsa_create_controller_wq()
8633 static void hpda_free_ctlr_info(struct ctlr_info *h) in hpda_free_ctlr_info()
8641 struct ctlr_info *h; in hpda_alloc_ctlr_info() local
8658 struct ctlr_info *h; in hpsa_init_one() local
8925 static void hpsa_flush_cache(struct ctlr_info *h) in hpsa_flush_cache()
8958 static void hpsa_disable_rld_caching(struct ctlr_info *h) in hpsa_disable_rld_caching()
9019 struct ctlr_info *h; in __hpsa_shutdown() local
9038 static void hpsa_free_device_info(struct ctlr_info *h) in hpsa_free_device_info()
9050 struct ctlr_info *h; in hpsa_remove_one() local
9169 static int hpsa_enter_performant_mode(struct ctlr_info *h, u32 trans_support) in hpsa_enter_performant_mode()
9346 static void hpsa_free_ioaccel1_cmd_and_bft(struct ctlr_info *h) in hpsa_free_ioaccel1_cmd_and_bft()
9361 static int hpsa_alloc_ioaccel1_cmd_and_bft(struct ctlr_info *h) in hpsa_alloc_ioaccel1_cmd_and_bft()
9397 static void hpsa_free_ioaccel2_cmd_and_bft(struct ctlr_info *h) in hpsa_free_ioaccel2_cmd_and_bft()
9414 static int hpsa_alloc_ioaccel2_cmd_and_bft(struct ctlr_info *h) in hpsa_alloc_ioaccel2_cmd_and_bft()
9456 static void hpsa_free_performant_mode(struct ctlr_info *h) in hpsa_free_performant_mode()
9468 static int hpsa_put_ctlr_into_performant_mode(struct ctlr_info *h) in hpsa_put_ctlr_into_performant_mode()
9538 static void hpsa_drain_accel_commands(struct ctlr_info *h) in hpsa_drain_accel_commands()
9723 *hpsa_find_device_by_sas_rphy(struct ctlr_info *h, in hpsa_find_device_by_sas_rphy()
9740 static int hpsa_add_sas_host(struct ctlr_info *h) in hpsa_add_sas_host()
9785 static void hpsa_delete_sas_host(struct ctlr_info *h) in hpsa_delete_sas_host()
9843 struct ctlr_info *h; in hpsa_sas_get_enclosure_identifier() local