Lines Matching refs:adapter_t
79 static int megaraid_io_attach(adapter_t *);
80 static void megaraid_io_detach(adapter_t *);
82 static int megaraid_init_mbox(adapter_t *);
83 static void megaraid_fini_mbox(adapter_t *);
85 static int megaraid_alloc_cmd_packets(adapter_t *);
86 static void megaraid_free_cmd_packets(adapter_t *);
88 static int megaraid_mbox_setup_dma_pools(adapter_t *);
89 static void megaraid_mbox_teardown_dma_pools(adapter_t *);
91 static int megaraid_sysfs_alloc_resources(adapter_t *);
92 static void megaraid_sysfs_free_resources(adapter_t *);
97 static int mbox_post_sync_cmd(adapter_t *, uint8_t []);
98 static int mbox_post_sync_cmd_fast(adapter_t *, uint8_t []);
100 static int megaraid_mbox_product_info(adapter_t *);
101 static int megaraid_mbox_extended_cdb(adapter_t *);
102 static int megaraid_mbox_support_ha(adapter_t *, uint16_t *);
103 static int megaraid_mbox_support_random_del(adapter_t *);
104 static int megaraid_mbox_get_max_sg(adapter_t *);
105 static void megaraid_mbox_enum_raid_scsi(adapter_t *);
106 static void megaraid_mbox_flush_cache(adapter_t *);
107 static int megaraid_mbox_fire_sync_cmd(adapter_t *);
109 static void megaraid_mbox_display_scb(adapter_t *, scb_t *);
110 static void megaraid_mbox_setup_device_map(adapter_t *);
113 static scb_t *megaraid_mbox_build_cmd(adapter_t *, struct scsi_cmnd *, int *);
114 static void megaraid_mbox_runpendq(adapter_t *, scb_t *);
115 static void megaraid_mbox_prepare_pthru(adapter_t *, scb_t *,
117 static void megaraid_mbox_prepare_epthru(adapter_t *, scb_t *,
127 static int megaraid_cmm_register(adapter_t *);
128 static int megaraid_cmm_unregister(adapter_t *);
130 static int megaraid_mbox_mm_command(adapter_t *, uioc_t *);
131 static void megaraid_mbox_mm_done(adapter_t *, scb_t *);
132 static int gather_hbainfo(adapter_t *, mraid_hba_info_t *);
133 static int wait_till_fw_empty(adapter_t *);
405 adapter_t *adapter; in megaraid_probe_one()
428 adapter = kzalloc(sizeof(adapter_t), GFP_KERNEL); in megaraid_probe_one()
526 adapter_t *adapter; in megaraid_detach_one()
588 adapter_t *adapter = pci_get_drvdata(pdev); in megaraid_mbox_shutdown()
614 megaraid_io_attach(adapter_t *adapter) in megaraid_io_attach()
666 megaraid_io_detach(adapter_t *adapter) in megaraid_io_detach()
697 megaraid_init_mbox(adapter_t *adapter) in megaraid_init_mbox()
911 megaraid_fini_mbox(adapter_t *adapter) in megaraid_fini_mbox()
946 megaraid_alloc_cmd_packets(adapter_t *adapter) in megaraid_alloc_cmd_packets()
1106 megaraid_free_cmd_packets(adapter_t *adapter) in megaraid_free_cmd_packets()
1131 megaraid_mbox_setup_dma_pools(adapter_t *adapter) in megaraid_mbox_setup_dma_pools()
1227 megaraid_mbox_teardown_dma_pools(adapter_t *adapter) in megaraid_mbox_teardown_dma_pools()
1272 megaraid_alloc_scb(adapter_t *adapter, struct scsi_cmnd *scp) in megaraid_alloc_scb()
1310 megaraid_dealloc_scb(adapter_t *adapter, scb_t *scb) in megaraid_dealloc_scb()
1335 megaraid_mbox_mksgl(adapter_t *adapter, scb_t *scb) in megaraid_mbox_mksgl()
1374 mbox_post_cmd(adapter_t *adapter, scb_t *scb) in mbox_post_cmd()
1439 adapter_t *adapter; in megaraid_queue_command_lck()
1480 megaraid_mbox_build_cmd(adapter_t *adapter, struct scsi_cmnd *scp, int *busy) in DEF_SCSI_QCMD()
1864 megaraid_mbox_runpendq(adapter_t *adapter, scb_t *scb_q) in megaraid_mbox_runpendq()
1935 megaraid_mbox_prepare_pthru(adapter_t *adapter, scb_t *scb, in megaraid_mbox_prepare_pthru()
1984 megaraid_mbox_prepare_epthru(adapter_t *adapter, scb_t *scb, in megaraid_mbox_prepare_epthru()
2033 megaraid_ack_sequence(adapter_t *adapter) in megaraid_ack_sequence()
2148 adapter_t *adapter = devp; in megaraid_isr()
2173 adapter_t *adapter = (adapter_t *)devp; in megaraid_mbox_dpc()
2386 adapter_t *adapter; in megaraid_abort_handler()
2524 adapter_t *adapter; in megaraid_reset_handler()
2673 mbox_post_sync_cmd(adapter_t *adapter, uint8_t raw_mbox[]) in mbox_post_sync_cmd()
2803 mbox_post_sync_cmd_fast(adapter_t *adapter, uint8_t raw_mbox[]) in mbox_post_sync_cmd_fast()
2878 megaraid_mbox_product_info(adapter_t *adapter) in megaraid_mbox_product_info()
3001 megaraid_mbox_extended_cdb(adapter_t *adapter) in megaraid_mbox_extended_cdb()
3037 megaraid_mbox_support_ha(adapter_t *adapter, uint16_t *init_id) in megaraid_mbox_support_ha()
3080 megaraid_mbox_support_random_del(adapter_t *adapter) in megaraid_mbox_support_random_del()
3129 megaraid_mbox_get_max_sg(adapter_t *adapter) in megaraid_mbox_get_max_sg()
3169 megaraid_mbox_enum_raid_scsi(adapter_t *adapter) in megaraid_mbox_enum_raid_scsi()
3205 megaraid_mbox_flush_cache(adapter_t *adapter) in megaraid_mbox_flush_cache()
3234 megaraid_mbox_fire_sync_cmd(adapter_t *adapter) in megaraid_mbox_fire_sync_cmd()
3312 megaraid_mbox_display_scb(adapter_t *adapter, scb_t *scb) in megaraid_mbox_display_scb()
3359 megaraid_mbox_setup_device_map(adapter_t *adapter) in megaraid_mbox_setup_device_map()
3402 megaraid_cmm_register(adapter_t *adapter) in megaraid_cmm_register()
3490 megaraid_cmm_unregister(adapter_t *adapter) in megaraid_cmm_unregister()
3511 adapter_t *adapter; in megaraid_mbox_mm_handler()
3520 adapter = (adapter_t *)drvr_data; in megaraid_mbox_mm_handler()
3561 megaraid_mbox_mm_command(adapter_t *adapter, uioc_t *kioc) in megaraid_mbox_mm_command()
3647 wait_till_fw_empty(adapter_t *adapter) in wait_till_fw_empty()
3685 megaraid_mbox_mm_done(adapter_t *adapter, scb_t *scb) in megaraid_mbox_mm_done()
3729 gather_hbainfo(adapter_t *adapter, mraid_hba_info_t *hinfo) in gather_hbainfo()
3767 megaraid_sysfs_alloc_resources(adapter_t *adapter) in megaraid_sysfs_alloc_resources()
3806 megaraid_sysfs_free_resources(adapter_t *adapter) in megaraid_sysfs_free_resources()
3829 adapter_t *adapter = (adapter_t *)uioc->buf_vaddr; in megaraid_sysfs_get_ldmap_done()
3850 adapter_t *adapter = (adapter_t *)uioc->buf_vaddr; in megaraid_sysfs_get_ldmap_timeout()
3877 megaraid_sysfs_get_ldmap(adapter_t *adapter) in megaraid_sysfs_get_ldmap()
3987 adapter_t *adapter = (adapter_t *)SCSIHOST2ADAP(shost); in megaraid_sysfs_show_app_hndl()
4015 adapter_t *adapter = (adapter_t *)SCSIHOST2ADAP(sdev->host); in megaraid_sysfs_show_ldnum()