Lines Matching refs:ctlr_info

239 static int hpsa_add_sas_host(struct ctlr_info *h);
240 static void hpsa_delete_sas_host(struct ctlr_info *h);
245 *hpsa_find_device_by_sas_rphy(struct ctlr_info *h,
258 static int hpsa_passthru_ioctl(struct ctlr_info *h,
260 static int hpsa_big_passthru_ioctl(struct ctlr_info *h,
268 static void cmd_free(struct ctlr_info *h, struct CommandList *c);
269 static struct CommandList *cmd_alloc(struct ctlr_info *h);
270 static void cmd_tagged_free(struct ctlr_info *h, struct CommandList *c);
271 static struct CommandList *cmd_tagged_alloc(struct ctlr_info *h,
273 static int fill_cmd(struct CommandList *c, u8 cmd, struct ctlr_info *h,
276 static void hpsa_free_cmd_pool(struct ctlr_info *h);
291 static void hpsa_update_scsi_devices(struct ctlr_info *h);
292 static int check_for_unit_attention(struct ctlr_info *h,
294 static void check_ioctl_unit_attention(struct ctlr_info *h,
299 static void hpsa_free_performant_mode(struct ctlr_info *h);
300 static int hpsa_put_ctlr_into_performant_mode(struct ctlr_info *h);
301 static inline u32 next_command(struct ctlr_info *h, u8 q);
309 static int wait_for_device_to_become_ready(struct ctlr_info *h,
315 static int hpsa_wait_for_mode_change_ack(struct ctlr_info *h);
318 static void hpsa_drain_accel_commands(struct ctlr_info *h);
319 static void hpsa_flush_cache(struct ctlr_info *h);
320 static int hpsa_scsi_ioaccel_queue_command(struct ctlr_info *h,
324 static u32 lockup_detected(struct ctlr_info *h);
325 static int detect_controller_lockup(struct ctlr_info *h);
326 static void hpsa_disable_rld_caching(struct ctlr_info *h);
327 static inline int hpsa_scsi_do_report_phys_luns(struct ctlr_info *h,
329 static bool hpsa_vpd_page_supported(struct ctlr_info *h,
331 static int hpsa_luns_changed(struct ctlr_info *h);
332 static bool hpsa_cmd_dev_match(struct ctlr_info *h, struct CommandList *c,
336 static inline struct ctlr_info *sdev_to_hba(struct scsi_device *sdev)
339 return (struct ctlr_info *) *priv;
342 static inline struct ctlr_info *shost_to_hba(struct Scsi_Host *sh)
345 return (struct ctlr_info *) *priv;
375 static int check_for_unit_attention(struct ctlr_info *h,
428 static int check_for_busy(struct ctlr_info *h, struct CommandList *c)
438 static u32 lockup_detected(struct ctlr_info *h);
443 struct ctlr_info *h;
457 struct ctlr_info *h;
481 struct ctlr_info *h;
505 struct ctlr_info *h;
521 struct ctlr_info *h;
537 struct ctlr_info *h = shost_to_hba(shost);
546 struct ctlr_info *h;
558 struct ctlr_info *h;
642 struct ctlr_info *h;
677 struct ctlr_info *h;
709 struct ctlr_info *h;
731 struct ctlr_info *h;
759 struct ctlr_info *h;
782 struct ctlr_info *h;
810 struct ctlr_info *h;
895 struct ctlr_info *h;
905 struct ctlr_info *h;
990 static inline u32 next_command(struct ctlr_info *h, u8 q)
1048 static void set_performant_mode(struct ctlr_info *h, struct CommandList *c,
1059 static void set_ioaccel1_performant_mode(struct ctlr_info *h,
1080 static void set_ioaccel2_tmf_performant_mode(struct ctlr_info *h,
1099 static void set_ioaccel2_performant_mode(struct ctlr_info *h,
1132 static void dial_down_lockup_detection_during_fw_flash(struct ctlr_info *h,
1141 static void dial_up_lockup_detection_on_fw_flash_complete(struct ctlr_info *h,
1149 static void __enqueue_cmd_and_start_io(struct ctlr_info *h,
1177 static void enqueue_cmd_and_start_io(struct ctlr_info *h, struct CommandList *c)
1187 static inline int is_scsi_rev_5(struct ctlr_info *h)
1196 static int hpsa_find_target_lun(struct ctlr_info *h,
1222 static void hpsa_show_dev_msg(const char *level, struct ctlr_info *h,
1278 static int hpsa_scsi_add_entry(struct ctlr_info *h,
1356 static void hpsa_scsi_update_entry(struct ctlr_info *h,
1409 static void hpsa_scsi_replace_entry(struct ctlr_info *h,
1436 static void hpsa_scsi_remove_entry(struct ctlr_info *h, int entry,
1465 static void fixup_botched_add(struct ctlr_info *h,
1582 static void hpsa_monitor_offline_device(struct ctlr_info *h,
1611 static void hpsa_show_volume_status(struct ctlr_info *h,
1695 static void hpsa_figure_phys_disk_ptrs(struct ctlr_info *h,
1770 static void hpsa_update_log_drive_phys_drive_ptrs(struct ctlr_info *h,
1808 static int hpsa_add_device(struct ctlr_info *h, struct hpsa_scsi_dev_t *device)
1824 static int hpsa_find_outstanding_commands_for_dev(struct ctlr_info *h,
1851 static void hpsa_wait_for_outstanding_commands_for_dev(struct ctlr_info *h,
1879 static void hpsa_remove_device(struct ctlr_info *h,
1914 static void adjust_hpsa_scsi_table(struct ctlr_info *h,
2090 static struct hpsa_scsi_dev_t *lookup_hpsa_scsi_dev(struct ctlr_info *h,
2108 struct ctlr_info *h;
2180 static void hpsa_free_ioaccel2_sg_chain_blocks(struct ctlr_info *h)
2194 static int hpsa_allocate_ioaccel2_sg_chain_blocks(struct ctlr_info *h)
2221 static void hpsa_free_sg_chain_blocks(struct ctlr_info *h)
2235 static int hpsa_alloc_sg_chain_blocks(struct ctlr_info *h)
2262 static int hpsa_map_ioaccel2_sg_chain_block(struct ctlr_info *h,
2282 static void hpsa_unmap_ioaccel2_sg_chain_block(struct ctlr_info *h,
2295 static int hpsa_map_sg_chain_block(struct ctlr_info *h,
2319 static void hpsa_unmap_sg_chain_block(struct ctlr_info *h,
2337 static int handle_ioaccel_mode2_error(struct ctlr_info *h,
2453 static void hpsa_cmd_resolve_events(struct ctlr_info *h,
2473 static void hpsa_cmd_resolve_and_free(struct ctlr_info *h,
2480 static void hpsa_cmd_free_and_done(struct ctlr_info *h,
2488 static void hpsa_retry_cmd(struct ctlr_info *h, struct CommandList *c)
2494 static void process_ioaccel2_completion(struct ctlr_info *h,
2535 static int hpsa_evaluate_tmf_status(struct ctlr_info *h,
2565 struct ctlr_info *h;
2843 static int hpsa_scsi_do_simple_cmd_core(struct ctlr_info *h,
2863 static int hpsa_scsi_do_simple_cmd(struct ctlr_info *h, struct CommandList *c,
2873 static u32 lockup_detected(struct ctlr_info *h)
2886 static int hpsa_scsi_do_simple_cmd_with_retry(struct ctlr_info *h,
2914 static void hpsa_print_cmd(struct ctlr_info *h, char *txt,
2924 static void hpsa_scsi_interpret_error(struct ctlr_info *h,
2999 static int hpsa_do_receive_diagnostic(struct ctlr_info *h, u8 *scsi3addr,
3026 static u64 hpsa_get_enclosure_logical_identifier(struct ctlr_info *h,
3050 static int hpsa_scsi_do_inquiry(struct ctlr_info *h, unsigned char *scsi3addr,
3079 static int hpsa_send_reset(struct ctlr_info *h, struct hpsa_scsi_dev_t *dev,
3108 static bool hpsa_cmd_dev_match(struct ctlr_info *h, struct CommandList *c,
3167 static int hpsa_do_reset(struct ctlr_info *h, struct hpsa_scsi_dev_t *dev,
3200 static void hpsa_get_raid_level(struct ctlr_info *h,
3229 static void hpsa_debug_map_buff(struct ctlr_info *h, int rc,
3298 static void hpsa_debug_map_buff(__attribute__((unused)) struct ctlr_info *h,
3305 static int hpsa_get_raid_map(struct ctlr_info *h,
3346 static int hpsa_bmic_sense_subsystem_information(struct ctlr_info *h,
3378 static int hpsa_bmic_id_controller(struct ctlr_info *h,
3406 static int hpsa_bmic_id_physical_device(struct ctlr_info *h,
3442 static void hpsa_get_enclosure_info(struct ctlr_info *h,
3532 static u64 hpsa_get_sas_address_from_report_physical(struct ctlr_info *h,
3562 static void hpsa_get_sas_address(struct ctlr_info *h, unsigned char *scsi3addr,
3589 static void hpsa_ext_ctrl_present(struct ctlr_info *h,
3614 static bool hpsa_vpd_page_supported(struct ctlr_info *h,
3664 static void hpsa_get_ioaccel_status(struct ctlr_info *h,
3711 static int hpsa_get_device_id(struct ctlr_info *h, unsigned char *scsi3addr,
3738 static int hpsa_scsi_do_report_luns(struct ctlr_info *h, int logical,
3786 static inline int hpsa_scsi_do_report_phys_luns(struct ctlr_info *h,
3817 static inline int hpsa_scsi_do_report_log_luns(struct ctlr_info *h,
3832 static int hpsa_get_volume_status(struct ctlr_info *h,
3876 static unsigned char hpsa_volume_offline(struct ctlr_info *h,
3939 static int hpsa_update_device_info(struct ctlr_info *h,
4057 static void figure_bus_target_lun(struct ctlr_info *h,
4088 static int figure_external_status(struct ctlr_info *h, int raid_ctlr_position,
4115 static int hpsa_gather_lun_info(struct ctlr_info *h,
4152 static u8 *figure_lunaddrbytes(struct ctlr_info *h, int raid_ctlr_position,
4180 static void hpsa_get_ioaccel_drive_info(struct ctlr_info *h,
4243 static int hpsa_set_local_logical_count(struct ctlr_info *h,
4267 static bool hpsa_is_disk_spare(struct ctlr_info *h, u8 *lunaddrbytes)
4294 static bool hpsa_skip_device(struct ctlr_info *h, u8 *lunaddrbytes,
4332 static void hpsa_update_scsi_devices(struct ctlr_info *h)
4578 static int hpsa_scatter_gather(struct ctlr_info *h,
4649 static inline void warn_zero_length_transfer(struct ctlr_info *h,
4735 static int hpsa_scsi_ioaccel1_queue_command(struct ctlr_info *h,
4832 static int hpsa_scsi_ioaccel_direct_map(struct ctlr_info *h,
4853 static void set_encrypt_ioaccel2(struct ctlr_info *h,
4909 static int hpsa_scsi_ioaccel2_queue_command(struct ctlr_info *h,
5048 static int hpsa_scsi_ioaccel_queue_command(struct ctlr_info *h,
5106 static int hpsa_scsi_ioaccel_raid_map(struct ctlr_info *h,
5460 static int hpsa_ciss_submit(struct ctlr_info *h,
5532 static void hpsa_cmd_init(struct ctlr_info *h, int index,
5553 static void hpsa_preinitialize_commands(struct ctlr_info *h)
5565 static inline void hpsa_cmd_partial_init(struct ctlr_info *h, int index,
5577 static int hpsa_ioaccel_submit(struct ctlr_info *h,
5633 struct ctlr_info *h = c->h;
5672 struct ctlr_info *h;
5732 static void hpsa_scan_complete(struct ctlr_info *h)
5744 struct ctlr_info *h = shost_to_hba(sh);
5823 struct ctlr_info *h = shost_to_hba(sh);
5833 static int hpsa_scsi_host_alloc(struct ctlr_info *h)
5837 sh = scsi_host_alloc(&hpsa_driver_template, sizeof(struct ctlr_info));
5862 static int hpsa_scsi_add_host(struct ctlr_info *h)
5896 static int hpsa_send_test_unit_ready(struct ctlr_info *h,
5932 static int hpsa_wait_for_test_unit_ready(struct ctlr_info *h,
5965 static int wait_for_device_to_become_ready(struct ctlr_info *h,
6012 struct ctlr_info *h;
6117 static struct CommandList *cmd_tagged_alloc(struct ctlr_info *h,
6155 static void cmd_tagged_free(struct ctlr_info *h, struct CommandList *c)
6173 static struct CommandList *cmd_alloc(struct ctlr_info *h)
6228 static void cmd_free(struct ctlr_info *h, struct CommandList *c)
6244 struct ctlr_info *h = sdev_to_hba(dev);
6275 struct ctlr_info *h = sdev_to_hba(dev);
6335 static int hpsa_getpciinfo_ioctl(struct ctlr_info *h, void __user *argp)
6350 static int hpsa_getdrivver_ioctl(struct ctlr_info *h, void __user *argp)
6373 static int hpsa_passthru_ioctl(struct ctlr_info *h,
6464 static int hpsa_big_passthru_ioctl(struct ctlr_info *h,
6588 static void check_ioctl_unit_attention(struct ctlr_info *h,
6602 struct ctlr_info *h = sdev_to_hba(dev);
6649 static void hpsa_send_host_reset(struct ctlr_info *h, u8 reset_type)
6668 static int fill_cmd(struct CommandList *c, u8 cmd, struct ctlr_info *h,
6907 static inline unsigned long get_next_completion(struct ctlr_info *h, u8 q)
6912 static inline bool interrupt_pending(struct ctlr_info *h)
6917 static inline long interrupt_not_for_us(struct ctlr_info *h)
6923 static inline int bad_tag(struct ctlr_info *h, u32 tag_index,
6944 static inline void process_indexed_cmd(struct ctlr_info *h,
6962 static int ignore_bogus_interrupt(struct ctlr_info *h)
6981 static struct ctlr_info *queue_to_hba(u8 *queue)
6983 return container_of((queue - *queue), struct ctlr_info, q[0]);
6988 struct ctlr_info *h = queue_to_hba(queue);
7008 struct ctlr_info *h = queue_to_hba(queue);
7024 struct ctlr_info *h = queue_to_hba((u8 *) queue);
7043 struct ctlr_info *h = queue_to_hba(queue);
7454 static void hpsa_disable_interrupt_mode(struct ctlr_info *h)
7460 static void hpsa_setup_reply_map(struct ctlr_info *h)
7483 static int hpsa_interrupt_mode(struct ctlr_info *h)
7602 static void hpsa_free_cfgtables(struct ctlr_info *h)
7617 static int hpsa_find_cfgtables(struct ctlr_info *h)
7651 static void hpsa_get_max_perf_mode_cmds(struct ctlr_info *h)
7675 static int hpsa_supports_chained_sg_blocks(struct ctlr_info *h)
7684 static void hpsa_find_board_params(struct ctlr_info *h)
7716 static inline bool hpsa_CISS_signature_present(struct ctlr_info *h)
7725 static inline void hpsa_set_driver_support_bits(struct ctlr_info *h)
7741 static inline void hpsa_p600_dma_prefetch_quirk(struct ctlr_info *h)
7752 static int hpsa_wait_for_clear_event_notify_ack(struct ctlr_info *h)
7772 static int hpsa_wait_for_mode_change_ack(struct ctlr_info *h)
7799 static int hpsa_enter_simple_mode(struct ctlr_info *h)
7826 static void hpsa_free_pci_init(struct ctlr_info *h)
7841 static int hpsa_pci_init(struct ctlr_info *h)
7924 static void hpsa_hba_inquiry(struct ctlr_info *h)
8002 static void hpsa_free_cmd_pool(struct ctlr_info *h)
8024 static int hpsa_alloc_cmd_pool(struct ctlr_info *h)
8049 static void hpsa_free_irqs(struct ctlr_info *h)
8074 static int hpsa_request_irqs(struct ctlr_info *h,
8140 static int hpsa_kdump_soft_reset(struct ctlr_info *h)
8163 static void hpsa_free_reply_queues(struct ctlr_info *h)
8180 static void hpsa_undo_allocations_after_kdump_soft_reset(struct ctlr_info *h)
8208 static void fail_all_outstanding_cmds(struct ctlr_info *h)
8230 static void set_lockup_detected_for_all_cpus(struct ctlr_info *h, u32 value)
8242 static void controller_lockup_detected(struct ctlr_info *h)
8269 static int detect_controller_lockup(struct ctlr_info *h)
8314 static void hpsa_set_ioaccel_status(struct ctlr_info *h)
8387 static void hpsa_ack_ctlr_events(struct ctlr_info *h)
8432 static int hpsa_ctlr_needs_rescan(struct ctlr_info *h)
8449 static int hpsa_offline_devices_ready(struct ctlr_info *h)
8472 static int hpsa_luns_changed(struct ctlr_info *h)
8505 static void hpsa_perform_rescan(struct ctlr_info *h)
8534 struct ctlr_info *h = container_of(to_delayed_work(work),
8535 struct ctlr_info, event_monitor_work);
8560 struct ctlr_info *h = container_of(to_delayed_work(work),
8561 struct ctlr_info, rescan_ctlr_work);
8589 struct ctlr_info *h = container_of(to_delayed_work(work),
8590 struct ctlr_info, monitor_ctlr_work);
8603 static struct workqueue_struct *hpsa_create_controller_wq(struct ctlr_info *h,
8615 static void hpda_free_ctlr_info(struct ctlr_info *h)
8621 static struct ctlr_info *hpda_alloc_ctlr_info(void)
8623 struct ctlr_info *h;
8640 struct ctlr_info *h;
8911 static void hpsa_flush_cache(struct ctlr_info *h)
8944 static void hpsa_disable_rld_caching(struct ctlr_info *h)
9005 struct ctlr_info *h;
9024 static void hpsa_free_device_info(struct ctlr_info *h)
9036 struct ctlr_info *h;
9154 static int hpsa_enter_performant_mode(struct ctlr_info *h, u32 trans_support)
9332 static void hpsa_free_ioaccel1_cmd_and_bft(struct ctlr_info *h)
9347 static int hpsa_alloc_ioaccel1_cmd_and_bft(struct ctlr_info *h)
9383 static void hpsa_free_ioaccel2_cmd_and_bft(struct ctlr_info *h)
9400 static int hpsa_alloc_ioaccel2_cmd_and_bft(struct ctlr_info *h)
9442 static void hpsa_free_performant_mode(struct ctlr_info *h)
9454 static int hpsa_put_ctlr_into_performant_mode(struct ctlr_info *h)
9530 static void hpsa_drain_accel_commands(struct ctlr_info *h)
9715 *hpsa_find_device_by_sas_rphy(struct ctlr_info *h,
9732 static int hpsa_add_sas_host(struct ctlr_info *h)
9777 static void hpsa_delete_sas_host(struct ctlr_info *h)
9835 struct ctlr_info *h;