Lines Matching refs:ctlr_info_t
157 static ctlr_info_t *hba[MAX_CTLR];
174 static int rebuild_lun_table(ctlr_info_t *h, int first_time, int via_ioctl);
175 static int deregister_disk(ctlr_info_t *h, int drv_index,
178 static void cciss_read_capacity(ctlr_info_t *h, int logvol,
180 static void cciss_read_capacity_16(ctlr_info_t *h, int logvol,
182 static void cciss_geometry_inquiry(ctlr_info_t *h, int logvol,
186 static void cciss_interrupt_mode(ctlr_info_t *);
188 static void start_io(ctlr_info_t *h);
189 static int sendcmd_withirq(ctlr_info_t *h, __u8 cmd, void *buff, size_t size,
192 static int sendcmd_withirq_core(ctlr_info_t *h, CommandList_struct *c,
194 static int process_sendcmd_error(ctlr_info_t *h, CommandList_struct *c);
198 static int check_for_unit_attention(ctlr_info_t *h, CommandList_struct *c);
201 static void cciss_free_gendisk(ctlr_info_t *h, int drv_index);
202 static void cciss_free_drive_info(ctlr_info_t *h, int drv_index);
203 static inline u32 next_command(ctlr_info_t *h);
209 static inline u32 cciss_tag_discard_error_bits(ctlr_info_t *h, u32 tag);
215 static void cciss_put_controller_into_performant_mode(ctlr_info_t *h);
218 static void cciss_procinit(ctlr_info_t *h);
220 static void cciss_procinit(ctlr_info_t *h) in cciss_procinit()
246 static void set_performant_mode(ctlr_info_t *h, CommandList_struct *c) in set_performant_mode()
278 static void enqueue_cmd_and_start_io(ctlr_info_t *h, in enqueue_cmd_and_start_io()
307 ctlr_info_t *h, int chainsize, int nr_cmds) in cciss_allocate_sg_chain_blocks()
336 static void cciss_unmap_sg_chain_block(ctlr_info_t *h, CommandList_struct *c) in cciss_unmap_sg_chain_block()
350 static void cciss_map_sg_chain_block(ctlr_info_t *h, CommandList_struct *c, in cciss_map_sg_chain_block()
383 ctlr_info_t *h = seq->private; in cciss_seq_show_header()
411 ctlr_info_t *h = seq->private; in cciss_seq_start()
434 ctlr_info_t *h = seq->private; in cciss_seq_show()
464 ctlr_info_t *h = seq->private; in cciss_seq_next()
475 ctlr_info_t *h = seq->private; in cciss_seq_stop()
529 ctlr_info_t *h = seq->private; in cciss_proc_write()
554 static void cciss_procinit(ctlr_info_t *h) in cciss_procinit()
990 static CommandList_struct *cmd_alloc(ctlr_info_t *h) in cmd_alloc()
1027 static CommandList_struct *cmd_special_alloc(ctlr_info_t *h) in cmd_special_alloc()
1060 static void cmd_free(ctlr_info_t *h, CommandList_struct *c) in cmd_free()
1069 static void cmd_special_free(ctlr_info_t *h, CommandList_struct *c) in cmd_special_free()
1081 static inline ctlr_info_t *get_host(struct gendisk *disk) in get_host()
1096 ctlr_info_t *h = get_host(bdev->bd_disk); in cciss_open()
1145 ctlr_info_t *h; in cciss_release()
1291 static void check_ioctl_unit_attention(ctlr_info_t *h, CommandList_struct *c) in check_ioctl_unit_attention()
1298 static int cciss_getpciinfo(ctlr_info_t *h, void __user *argp) in cciss_getpciinfo()
1313 static int cciss_getintinfo(ctlr_info_t *h, void __user *argp) in cciss_getintinfo()
1330 static int cciss_setintinfo(ctlr_info_t *h, void __user *argp) in cciss_setintinfo()
1361 static int cciss_getnodename(ctlr_info_t *h, void __user *argp) in cciss_getnodename()
1378 static int cciss_setnodename(ctlr_info_t *h, void __user *argp) in cciss_setnodename()
1406 static int cciss_getheartbeat(ctlr_info_t *h, void __user *argp) in cciss_getheartbeat()
1421 static int cciss_getbustypes(ctlr_info_t *h, void __user *argp) in cciss_getbustypes()
1436 static int cciss_getfirmver(ctlr_info_t *h, void __user *argp) in cciss_getfirmver()
1450 static int cciss_getdrivver(ctlr_info_t *h, void __user *argp) in cciss_getdrivver()
1461 static int cciss_getluninfo(ctlr_info_t *h, in cciss_getluninfo()
1477 static int cciss_passthru(ctlr_info_t *h, void __user *argp) in cciss_passthru()
1577 static int cciss_bigpassthru(ctlr_info_t *h, void __user *argp) in cciss_bigpassthru()
1720 ctlr_info_t *h = get_host(disk); in cciss_ioctl()
1783 static void cciss_check_queues(ctlr_info_t *h) in cciss_check_queues()
1831 ctlr_info_t *h = hba[c->ctlr]; in cciss_softirq_done()
1873 static inline void log_unit_to_scsi3addr(ctlr_info_t *h, in log_unit_to_scsi3addr()
1884 static void cciss_get_device_descr(ctlr_info_t *h, int logvol, in cciss_get_device_descr()
1920 static void cciss_get_serial_no(ctlr_info_t *h, int logvol, in cciss_get_serial_no()
1947 static int cciss_add_disk(ctlr_info_t *h, struct gendisk *disk, in cciss_add_disk()
2002 static void cciss_update_drive_info(ctlr_info_t *h, int drv_index, in cciss_update_drive_info()
2150 static int cciss_alloc_drive_info(ctlr_info_t *h, int controller_node) in cciss_alloc_drive_info()
2193 static void cciss_free_drive_info(ctlr_info_t *h, int drv_index) in cciss_free_drive_info()
2199 static void cciss_free_gendisk(ctlr_info_t *h, int drv_index) in cciss_free_gendisk()
2214 static int cciss_add_gendisk(ctlr_info_t *h, unsigned char lunid[], in cciss_add_gendisk()
2257 static void cciss_add_controller_node(ctlr_info_t *h) in cciss_add_controller_node()
2293 static int rebuild_lun_table(ctlr_info_t *h, int first_time, in rebuild_lun_table()
2467 static int deregister_disk(ctlr_info_t *h, int drv_index, in deregister_disk()
2542 static int fill_cmd(ctlr_info_t *h, CommandList_struct *c, __u8 cmd, void *buff, in fill_cmd()
2684 static int cciss_send_reset(ctlr_info_t *h, unsigned char *scsi3addr, in cciss_send_reset()
2709 static int check_target_status(ctlr_info_t *h, CommandList_struct *c) in check_target_status()
2735 static int process_sendcmd_error(ctlr_info_t *h, CommandList_struct *c) in process_sendcmd_error()
2798 static int sendcmd_withirq_core(ctlr_info_t *h, CommandList_struct *c, in sendcmd_withirq_core()
2837 static int sendcmd_withirq(ctlr_info_t *h, __u8 cmd, void *buff, size_t size, in sendcmd_withirq()
2856 static void cciss_geometry_inquiry(ctlr_info_t *h, int logvol, in cciss_geometry_inquiry()
2902 cciss_read_capacity(ctlr_info_t *h, int logvol, sector_t *total_size, in cciss_read_capacity()
2929 static void cciss_read_capacity_16(ctlr_info_t *h, int logvol, in cciss_read_capacity_16()
2961 ctlr_info_t *h = get_host(disk); in cciss_revalidate()
3020 static void start_io(ctlr_info_t *h) in start_io()
3047 static inline void resend_cciss_cmd(ctlr_info_t *h, CommandList_struct *c) in resend_cciss_cmd()
3072 static inline int evaluate_target_status(ctlr_info_t *h, in evaluate_target_status()
3137 static inline void complete_command(ctlr_info_t *h, CommandList_struct *cmd, in complete_command()
3279 static inline u32 cciss_tag_discard_error_bits(ctlr_info_t *h, u32 tag) in cciss_tag_discard_error_bits()
3303 ctlr_info_t *h = q->queuedata; in do_cciss_request()
3461 static inline unsigned long get_next_completion(ctlr_info_t *h) in get_next_completion()
3466 static inline int interrupt_pending(ctlr_info_t *h) in interrupt_pending()
3471 static inline long interrupt_not_for_us(ctlr_info_t *h) in interrupt_not_for_us()
3477 static inline int bad_tag(ctlr_info_t *h, u32 tag_index, in bad_tag()
3487 static inline void finish_cmd(ctlr_info_t *h, CommandList_struct *c, in finish_cmd()
3501 static inline u32 next_command(ctlr_info_t *h) in next_command()
3524 static inline u32 process_indexed_cmd(ctlr_info_t *h, u32 raw_tag) in process_indexed_cmd()
3538 static inline u32 process_nonindexed_cmd(ctlr_info_t *h, u32 raw_tag) in process_nonindexed_cmd()
3560 static int ignore_bogus_interrupt(ctlr_info_t *h) in ignore_bogus_interrupt()
3576 ctlr_info_t *h = dev_id; in cciss_intx_discard_completions()
3597 ctlr_info_t *h = dev_id; in cciss_msix_discard_completions()
3614 ctlr_info_t *h = dev_id; in do_cciss_intx()
3639 ctlr_info_t *h = dev_id; in do_cciss_msix_intr()
3776 static int check_for_unit_attention(ctlr_info_t *h, CommandList_struct *c) in check_for_unit_attention()
3833 static void print_cfg_table(ctlr_info_t *h) in print_cfg_table()
3940 static void cciss_wait_for_mode_change_ack(ctlr_info_t *h) in cciss_wait_for_mode_change_ack()
3954 static void cciss_enter_performant_mode(ctlr_info_t *h, u32 use_short_tags) in cciss_enter_performant_mode()
4020 static void cciss_put_controller_into_performant_mode(ctlr_info_t *h) in cciss_put_controller_into_performant_mode()
4082 static void cciss_interrupt_mode(ctlr_info_t *h) in cciss_interrupt_mode()
4144 static inline bool cciss_board_disabled(ctlr_info_t *h) in cciss_board_disabled()
4213 static int cciss_find_cfgtables(ctlr_info_t *h) in cciss_find_cfgtables()
4263 static void cciss_find_board_params(ctlr_info_t *h) in cciss_find_board_params()
4290 static inline bool CISS_signature_present(ctlr_info_t *h) in CISS_signature_present()
4300 static inline void cciss_enable_scsi_prefetch(ctlr_info_t *h) in cciss_enable_scsi_prefetch()
4314 static inline void cciss_p600_dma_prefetch_quirk(ctlr_info_t *h) in cciss_p600_dma_prefetch_quirk()
4329 static int cciss_pci_init(ctlr_info_t *h) in cciss_pci_init()
4420 ctlr_info_t *h; in alloc_cciss_hba()
4422 h = kzalloc(sizeof(ctlr_info_t), GFP_KERNEL); in alloc_cciss_hba()
4437 static void free_hba(ctlr_info_t *h) in free_hba()
4829 static int cciss_allocate_cmd_pool(ctlr_info_t *h) in cciss_allocate_cmd_pool()
4848 static int cciss_allocate_scatterlists(ctlr_info_t *h) in cciss_allocate_scatterlists()
4870 static void cciss_free_scatterlists(ctlr_info_t *h) in cciss_free_scatterlists()
4881 static void cciss_free_cmd_pool(ctlr_info_t *h) in cciss_free_cmd_pool()
4894 static int cciss_request_irq(ctlr_info_t *h, in cciss_request_irq()
4916 static int cciss_kdump_soft_reset(ctlr_info_t *h) in cciss_kdump_soft_reset()
4939 static void cciss_undo_allocations_after_kdump_soft_reset(ctlr_info_t *h) in cciss_undo_allocations_after_kdump_soft_reset()
4983 ctlr_info_t *h; in cciss_init_one()
5219 ctlr_info_t *h; in cciss_shutdown()
5263 ctlr_info_t *h; in cciss_remove_one()