Lines Matching refs:ctlr_info
238 static int hpsa_add_sas_host(struct ctlr_info *h);
239 static void hpsa_delete_sas_host(struct ctlr_info *h);
244 *hpsa_find_device_by_sas_rphy(struct ctlr_info *h,
257 static int hpsa_passthru_ioctl(struct ctlr_info *h,
259 static int hpsa_big_passthru_ioctl(struct ctlr_info *h,
267 static void cmd_free(struct ctlr_info *h, struct CommandList *c);
268 static struct CommandList *cmd_alloc(struct ctlr_info *h);
269 static void cmd_tagged_free(struct ctlr_info *h, struct CommandList *c);
270 static struct CommandList *cmd_tagged_alloc(struct ctlr_info *h,
272 static int fill_cmd(struct CommandList *c, u8 cmd, struct ctlr_info *h,
275 static void hpsa_free_cmd_pool(struct ctlr_info *h);
290 static void hpsa_update_scsi_devices(struct ctlr_info *h);
291 static int check_for_unit_attention(struct ctlr_info *h,
293 static void check_ioctl_unit_attention(struct ctlr_info *h,
298 static void hpsa_free_performant_mode(struct ctlr_info *h);
299 static int hpsa_put_ctlr_into_performant_mode(struct ctlr_info *h);
300 static inline u32 next_command(struct ctlr_info *h, u8 q);
308 static int wait_for_device_to_become_ready(struct ctlr_info *h,
314 static int hpsa_wait_for_mode_change_ack(struct ctlr_info *h);
317 static void hpsa_drain_accel_commands(struct ctlr_info *h);
318 static void hpsa_flush_cache(struct ctlr_info *h);
319 static int hpsa_scsi_ioaccel_queue_command(struct ctlr_info *h,
323 static u32 lockup_detected(struct ctlr_info *h);
324 static int detect_controller_lockup(struct ctlr_info *h);
325 static void hpsa_disable_rld_caching(struct ctlr_info *h);
326 static inline int hpsa_scsi_do_report_phys_luns(struct ctlr_info *h,
328 static bool hpsa_vpd_page_supported(struct ctlr_info *h,
330 static int hpsa_luns_changed(struct ctlr_info *h);
331 static bool hpsa_cmd_dev_match(struct ctlr_info *h, struct CommandList *c,
335 static inline struct ctlr_info *sdev_to_hba(struct scsi_device *sdev)
338 return (struct ctlr_info *) *priv;
341 static inline struct ctlr_info *shost_to_hba(struct Scsi_Host *sh)
344 return (struct ctlr_info *) *priv;
374 static int check_for_unit_attention(struct ctlr_info *h,
427 static int check_for_busy(struct ctlr_info *h, struct CommandList *c)
437 static u32 lockup_detected(struct ctlr_info *h);
442 struct ctlr_info *h;
456 struct ctlr_info *h;
480 struct ctlr_info *h;
504 struct ctlr_info *h;
520 struct ctlr_info *h;
536 struct ctlr_info *h = shost_to_hba(shost);
545 struct ctlr_info *h;
557 struct ctlr_info *h;
641 struct ctlr_info *h;
676 struct ctlr_info *h;
708 struct ctlr_info *h;
730 struct ctlr_info *h;
758 struct ctlr_info *h;
781 struct ctlr_info *h;
809 struct ctlr_info *h;
894 struct ctlr_info *h;
904 struct ctlr_info *h;
993 static inline u32 next_command(struct ctlr_info *h, u8 q)
1051 static void set_performant_mode(struct ctlr_info *h, struct CommandList *c,
1062 static void set_ioaccel1_performant_mode(struct ctlr_info *h,
1083 static void set_ioaccel2_tmf_performant_mode(struct ctlr_info *h,
1102 static void set_ioaccel2_performant_mode(struct ctlr_info *h,
1135 static void dial_down_lockup_detection_during_fw_flash(struct ctlr_info *h,
1144 static void dial_up_lockup_detection_on_fw_flash_complete(struct ctlr_info *h,
1152 static void __enqueue_cmd_and_start_io(struct ctlr_info *h,
1183 static void enqueue_cmd_and_start_io(struct ctlr_info *h, struct CommandList *c)
1193 static inline int is_scsi_rev_5(struct ctlr_info *h)
1202 static int hpsa_find_target_lun(struct ctlr_info *h,
1228 static void hpsa_show_dev_msg(const char *level, struct ctlr_info *h,
1284 static int hpsa_scsi_add_entry(struct ctlr_info *h,
1362 static void hpsa_scsi_update_entry(struct ctlr_info *h,
1415 static void hpsa_scsi_replace_entry(struct ctlr_info *h,
1442 static void hpsa_scsi_remove_entry(struct ctlr_info *h, int entry,
1471 static void fixup_botched_add(struct ctlr_info *h,
1588 static void hpsa_monitor_offline_device(struct ctlr_info *h,
1617 static void hpsa_show_volume_status(struct ctlr_info *h,
1701 static void hpsa_figure_phys_disk_ptrs(struct ctlr_info *h,
1776 static void hpsa_update_log_drive_phys_drive_ptrs(struct ctlr_info *h,
1814 static int hpsa_add_device(struct ctlr_info *h, struct hpsa_scsi_dev_t *device)
1830 static int hpsa_find_outstanding_commands_for_dev(struct ctlr_info *h,
1857 static void hpsa_wait_for_outstanding_commands_for_dev(struct ctlr_info *h,
1885 static void hpsa_remove_device(struct ctlr_info *h,
1920 static void adjust_hpsa_scsi_table(struct ctlr_info *h,
2096 static struct hpsa_scsi_dev_t *lookup_hpsa_scsi_dev(struct ctlr_info *h,
2114 struct ctlr_info *h;
2186 static void hpsa_free_ioaccel2_sg_chain_blocks(struct ctlr_info *h)
2200 static int hpsa_allocate_ioaccel2_sg_chain_blocks(struct ctlr_info *h)
2227 static void hpsa_free_sg_chain_blocks(struct ctlr_info *h)
2241 static int hpsa_alloc_sg_chain_blocks(struct ctlr_info *h)
2268 static int hpsa_map_ioaccel2_sg_chain_block(struct ctlr_info *h,
2288 static void hpsa_unmap_ioaccel2_sg_chain_block(struct ctlr_info *h,
2301 static int hpsa_map_sg_chain_block(struct ctlr_info *h,
2325 static void hpsa_unmap_sg_chain_block(struct ctlr_info *h,
2343 static int handle_ioaccel_mode2_error(struct ctlr_info *h,
2458 static void hpsa_cmd_resolve_events(struct ctlr_info *h,
2478 static void hpsa_cmd_resolve_and_free(struct ctlr_info *h,
2485 static void hpsa_cmd_free_and_done(struct ctlr_info *h,
2493 static void hpsa_retry_cmd(struct ctlr_info *h, struct CommandList *c)
2499 static void process_ioaccel2_completion(struct ctlr_info *h,
2540 static int hpsa_evaluate_tmf_status(struct ctlr_info *h,
2570 struct ctlr_info *h;
2847 static int hpsa_scsi_do_simple_cmd_core(struct ctlr_info *h,
2867 static int hpsa_scsi_do_simple_cmd(struct ctlr_info *h, struct CommandList *c,
2877 static u32 lockup_detected(struct ctlr_info *h)
2890 static int hpsa_scsi_do_simple_cmd_with_retry(struct ctlr_info *h,
2918 static void hpsa_print_cmd(struct ctlr_info *h, char *txt,
2928 static void hpsa_scsi_interpret_error(struct ctlr_info *h,
3003 static int hpsa_do_receive_diagnostic(struct ctlr_info *h, u8 *scsi3addr,
3030 static u64 hpsa_get_enclosure_logical_identifier(struct ctlr_info *h,
3054 static int hpsa_scsi_do_inquiry(struct ctlr_info *h, unsigned char *scsi3addr,
3083 static int hpsa_send_reset(struct ctlr_info *h, struct hpsa_scsi_dev_t *dev,
3112 static bool hpsa_cmd_dev_match(struct ctlr_info *h, struct CommandList *c,
3171 static int hpsa_do_reset(struct ctlr_info *h, struct hpsa_scsi_dev_t *dev,
3204 static void hpsa_get_raid_level(struct ctlr_info *h,
3233 static void hpsa_debug_map_buff(struct ctlr_info *h, int rc,
3302 static void hpsa_debug_map_buff(__attribute__((unused)) struct ctlr_info *h,
3309 static int hpsa_get_raid_map(struct ctlr_info *h,
3350 static int hpsa_bmic_sense_subsystem_information(struct ctlr_info *h,
3382 static int hpsa_bmic_id_controller(struct ctlr_info *h,
3410 static int hpsa_bmic_id_physical_device(struct ctlr_info *h,
3446 static void hpsa_get_enclosure_info(struct ctlr_info *h,
3536 static u64 hpsa_get_sas_address_from_report_physical(struct ctlr_info *h,
3566 static void hpsa_get_sas_address(struct ctlr_info *h, unsigned char *scsi3addr,
3593 static void hpsa_ext_ctrl_present(struct ctlr_info *h,
3618 static bool hpsa_vpd_page_supported(struct ctlr_info *h,
3668 static void hpsa_get_ioaccel_status(struct ctlr_info *h,
3715 static int hpsa_get_device_id(struct ctlr_info *h, unsigned char *scsi3addr,
3742 static int hpsa_scsi_do_report_luns(struct ctlr_info *h, int logical,
3790 static inline int hpsa_scsi_do_report_phys_luns(struct ctlr_info *h,
3821 static inline int hpsa_scsi_do_report_log_luns(struct ctlr_info *h,
3836 static int hpsa_get_volume_status(struct ctlr_info *h,
3880 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)
4575 static int hpsa_scatter_gather(struct ctlr_info *h,
4645 static inline void warn_zero_length_transfer(struct ctlr_info *h,
4731 static int hpsa_scsi_ioaccel1_queue_command(struct ctlr_info *h,
4828 static int hpsa_scsi_ioaccel_direct_map(struct ctlr_info *h,
4849 static void set_encrypt_ioaccel2(struct ctlr_info *h,
4905 static int hpsa_scsi_ioaccel2_queue_command(struct ctlr_info *h,
5044 static int hpsa_scsi_ioaccel_queue_command(struct ctlr_info *h,
5102 static int hpsa_scsi_ioaccel_raid_map(struct ctlr_info *h,
5456 static int hpsa_ciss_submit(struct ctlr_info *h,
5528 static void hpsa_cmd_init(struct ctlr_info *h, int index,
5549 static void hpsa_preinitialize_commands(struct ctlr_info *h)
5561 static inline void hpsa_cmd_partial_init(struct ctlr_info *h, int index,
5573 static int hpsa_ioaccel_submit(struct ctlr_info *h,
5634 struct ctlr_info *h = c->h;
5683 struct ctlr_info *h;
5748 static void hpsa_scan_complete(struct ctlr_info *h)
5760 struct ctlr_info *h = shost_to_hba(sh);
5839 struct ctlr_info *h = shost_to_hba(sh);
5849 static int hpsa_scsi_host_alloc(struct ctlr_info *h)
5853 sh = scsi_host_alloc(&hpsa_driver_template, sizeof(struct ctlr_info));
5878 static int hpsa_scsi_add_host(struct ctlr_info *h)
5912 static int hpsa_send_test_unit_ready(struct ctlr_info *h,
5948 static int hpsa_wait_for_test_unit_ready(struct ctlr_info *h,
5981 static int wait_for_device_to_become_ready(struct ctlr_info *h,
6028 struct ctlr_info *h;
6134 static struct CommandList *cmd_tagged_alloc(struct ctlr_info *h,
6178 static void cmd_tagged_free(struct ctlr_info *h, struct CommandList *c)
6196 static struct CommandList *cmd_alloc(struct ctlr_info *h)
6257 static void cmd_free(struct ctlr_info *h, struct CommandList *c)
6272 struct ctlr_info *h = sdev_to_hba(dev);
6303 struct ctlr_info *h = sdev_to_hba(dev);
6363 static int hpsa_getpciinfo_ioctl(struct ctlr_info *h, void __user *argp)
6378 static int hpsa_getdrivver_ioctl(struct ctlr_info *h, void __user *argp)
6401 static int hpsa_passthru_ioctl(struct ctlr_info *h,
6492 static int hpsa_big_passthru_ioctl(struct ctlr_info *h,
6616 static void check_ioctl_unit_attention(struct ctlr_info *h,
6630 struct ctlr_info *h = sdev_to_hba(dev);
6677 static void hpsa_send_host_reset(struct ctlr_info *h, u8 reset_type)
6696 static int fill_cmd(struct CommandList *c, u8 cmd, struct ctlr_info *h,
6935 static inline unsigned long get_next_completion(struct ctlr_info *h, u8 q)
6940 static inline bool interrupt_pending(struct ctlr_info *h)
6945 static inline long interrupt_not_for_us(struct ctlr_info *h)
6951 static inline int bad_tag(struct ctlr_info *h, u32 tag_index,
6972 static inline void process_indexed_cmd(struct ctlr_info *h,
6990 static int ignore_bogus_interrupt(struct ctlr_info *h)
7009 static struct ctlr_info *queue_to_hba(u8 *queue)
7011 return container_of((queue - *queue), struct ctlr_info, q[0]);
7016 struct ctlr_info *h = queue_to_hba(queue);
7036 struct ctlr_info *h = queue_to_hba(queue);
7052 struct ctlr_info *h = queue_to_hba((u8 *) queue);
7071 struct ctlr_info *h = queue_to_hba(queue);
7481 static void hpsa_disable_interrupt_mode(struct ctlr_info *h)
7487 static void hpsa_setup_reply_map(struct ctlr_info *h)
7510 static int hpsa_interrupt_mode(struct ctlr_info *h)
7629 static void hpsa_free_cfgtables(struct ctlr_info *h)
7644 static int hpsa_find_cfgtables(struct ctlr_info *h)
7678 static void hpsa_get_max_perf_mode_cmds(struct ctlr_info *h)
7702 static int hpsa_supports_chained_sg_blocks(struct ctlr_info *h)
7711 static void hpsa_find_board_params(struct ctlr_info *h)
7743 static inline bool hpsa_CISS_signature_present(struct ctlr_info *h)
7752 static inline void hpsa_set_driver_support_bits(struct ctlr_info *h)
7768 static inline void hpsa_p600_dma_prefetch_quirk(struct ctlr_info *h)
7779 static int hpsa_wait_for_clear_event_notify_ack(struct ctlr_info *h)
7799 static int hpsa_wait_for_mode_change_ack(struct ctlr_info *h)
7826 static int hpsa_enter_simple_mode(struct ctlr_info *h)
7853 static void hpsa_free_pci_init(struct ctlr_info *h)
7868 static int hpsa_pci_init(struct ctlr_info *h)
7951 static void hpsa_hba_inquiry(struct ctlr_info *h)
8029 static void hpsa_free_cmd_pool(struct ctlr_info *h)
8051 static int hpsa_alloc_cmd_pool(struct ctlr_info *h)
8074 static void hpsa_free_irqs(struct ctlr_info *h)
8099 static int hpsa_request_irqs(struct ctlr_info *h,
8165 static int hpsa_kdump_soft_reset(struct ctlr_info *h)
8188 static void hpsa_free_reply_queues(struct ctlr_info *h)
8205 static void hpsa_undo_allocations_after_kdump_soft_reset(struct ctlr_info *h)
8233 static void fail_all_outstanding_cmds(struct ctlr_info *h)
8255 static void set_lockup_detected_for_all_cpus(struct ctlr_info *h, u32 value)
8267 static void controller_lockup_detected(struct ctlr_info *h)
8294 static int detect_controller_lockup(struct ctlr_info *h)
8339 static void hpsa_set_ioaccel_status(struct ctlr_info *h)
8412 static void hpsa_ack_ctlr_events(struct ctlr_info *h)
8457 static int hpsa_ctlr_needs_rescan(struct ctlr_info *h)
8474 static int hpsa_offline_devices_ready(struct ctlr_info *h)
8497 static int hpsa_luns_changed(struct ctlr_info *h)
8530 static void hpsa_perform_rescan(struct ctlr_info *h)
8559 struct ctlr_info *h = container_of(to_delayed_work(work),
8560 struct ctlr_info, event_monitor_work);
8585 struct ctlr_info *h = container_of(to_delayed_work(work),
8586 struct ctlr_info, rescan_ctlr_work);
8614 struct ctlr_info *h = container_of(to_delayed_work(work),
8615 struct ctlr_info, monitor_ctlr_work);
8628 static struct workqueue_struct *hpsa_create_controller_wq(struct ctlr_info *h,
8640 static void hpda_free_ctlr_info(struct ctlr_info *h)
8646 static struct ctlr_info *hpda_alloc_ctlr_info(void)
8648 struct ctlr_info *h;
8665 struct ctlr_info *h;
8932 static void hpsa_flush_cache(struct ctlr_info *h)
8965 static void hpsa_disable_rld_caching(struct ctlr_info *h)
9026 struct ctlr_info *h;
9045 static void hpsa_free_device_info(struct ctlr_info *h)
9057 struct ctlr_info *h;
9176 static int hpsa_enter_performant_mode(struct ctlr_info *h, u32 trans_support)
9353 static void hpsa_free_ioaccel1_cmd_and_bft(struct ctlr_info *h)
9368 static int hpsa_alloc_ioaccel1_cmd_and_bft(struct ctlr_info *h)
9404 static void hpsa_free_ioaccel2_cmd_and_bft(struct ctlr_info *h)
9421 static int hpsa_alloc_ioaccel2_cmd_and_bft(struct ctlr_info *h)
9463 static void hpsa_free_performant_mode(struct ctlr_info *h)
9475 static int hpsa_put_ctlr_into_performant_mode(struct ctlr_info *h)
9545 static void hpsa_drain_accel_commands(struct ctlr_info *h)
9730 *hpsa_find_device_by_sas_rphy(struct ctlr_info *h,
9747 static int hpsa_add_sas_host(struct ctlr_info *h)
9792 static void hpsa_delete_sas_host(struct ctlr_info *h)
9850 struct ctlr_info *h;