Lines Matching refs:aac_softstate

75 #define	AAC_TRAN2SOFTS(tran) ((struct aac_softstate *)(tran)->tran_hba_private)
233 static int aac_rx_get_fwstatus(struct aac_softstate *);
234 static int aac_rx_get_mailbox(struct aac_softstate *, int);
235 static void aac_rx_set_mailbox(struct aac_softstate *, uint32_t, uint32_t,
237 static int aac_rkt_get_fwstatus(struct aac_softstate *);
238 static int aac_rkt_get_mailbox(struct aac_softstate *, int);
239 static void aac_rkt_set_mailbox(struct aac_softstate *, uint32_t, uint32_t,
254 static int aac_query_intrs(struct aac_softstate *, int);
255 static int aac_add_intrs(struct aac_softstate *);
256 static void aac_remove_intrs(struct aac_softstate *);
257 static int aac_enable_intrs(struct aac_softstate *);
258 static int aac_disable_intrs(struct aac_softstate *);
266 static int aac_check_card_type(struct aac_softstate *);
267 static int aac_check_firmware(struct aac_softstate *);
268 static int aac_common_attach(struct aac_softstate *);
269 static void aac_common_detach(struct aac_softstate *);
270 static int aac_probe_containers(struct aac_softstate *);
271 static int aac_alloc_comm_space(struct aac_softstate *);
272 static int aac_setup_comm_space(struct aac_softstate *);
273 static void aac_free_comm_space(struct aac_softstate *);
274 static int aac_hba_setup(struct aac_softstate *);
279 int aac_sync_mbcommand(struct aac_softstate *, uint32_t, uint32_t,
281 static int aac_sync_fib(struct aac_softstate *, uint16_t, uint16_t);
294 static int aac_fib_enqueue(struct aac_softstate *, int, uint32_t, uint32_t);
295 static int aac_fib_dequeue(struct aac_softstate *, int, int *);
300 static int aac_create_slots(struct aac_softstate *);
301 static void aac_destroy_slots(struct aac_softstate *);
302 static void aac_alloc_fibs(struct aac_softstate *);
303 static void aac_destroy_fibs(struct aac_softstate *);
304 static struct aac_slot *aac_get_slot(struct aac_softstate *);
305 static void aac_release_slot(struct aac_softstate *, struct aac_slot *);
306 static int aac_alloc_fib(struct aac_softstate *, struct aac_slot *);
312 static void aac_cmd_fib_header(struct aac_softstate *, struct aac_cmd *,
314 static void aac_cmd_fib_rawio(struct aac_softstate *, struct aac_cmd *);
315 static void aac_cmd_fib_brw64(struct aac_softstate *, struct aac_cmd *);
316 static void aac_cmd_fib_brw(struct aac_softstate *, struct aac_cmd *);
317 static void aac_cmd_fib_sync(struct aac_softstate *, struct aac_cmd *);
318 static void aac_cmd_fib_scsi32(struct aac_softstate *, struct aac_cmd *);
319 static void aac_cmd_fib_scsi64(struct aac_softstate *, struct aac_cmd *);
320 static void aac_cmd_fib_startstop(struct aac_softstate *, struct aac_cmd *);
321 static void aac_start_waiting_io(struct aac_softstate *);
322 static void aac_drain_comp_q(struct aac_softstate *);
323 int aac_do_io(struct aac_softstate *, struct aac_cmd *);
324 static int aac_sync_fib_slot_bind(struct aac_softstate *, struct aac_cmd *);
325 static void aac_sync_fib_slot_release(struct aac_softstate *, struct aac_cmd *);
326 static void aac_start_io(struct aac_softstate *, struct aac_cmd *);
327 static int aac_do_poll_io(struct aac_softstate *, struct aac_cmd *);
328 static int aac_do_sync_io(struct aac_softstate *, struct aac_cmd *);
329 static int aac_send_command(struct aac_softstate *, struct aac_slot *);
330 static void aac_cmd_timeout(struct aac_softstate *, struct aac_cmd *);
332 static int aac_shutdown(struct aac_softstate *);
333 static int aac_reset_adapter(struct aac_softstate *);
334 static int aac_do_quiesce(struct aac_softstate *softs);
335 static int aac_do_unquiesce(struct aac_softstate *softs);
336 static void aac_unhold_bus(struct aac_softstate *, int);
337 static void aac_set_throttle(struct aac_softstate *, struct aac_device *,
343 static void aac_save_aif(struct aac_softstate *, ddi_acc_handle_t,
345 static int aac_handle_aif(struct aac_softstate *, struct aac_aif_command *);
351 static void aac_event_thread(struct aac_softstate *);
352 static void aac_event_disp(struct aac_softstate *, int);
360 extern int aac_do_ioctl(struct aac_softstate *, dev_t, int, intptr_t, int);
365 static void aac_fm_init(struct aac_softstate *);
366 static void aac_fm_fini(struct aac_softstate *);
370 void aac_fm_ereport(struct aac_softstate *, char *);
375 static dev_info_t *aac_find_child(struct aac_softstate *, uint16_t, uint8_t);
378 static int aac_handle_dr(struct aac_softstate *, int, int, int);
394 static int aac_get_fw_debug_buffer(struct aac_softstate *);
395 static void aac_print_scmd(struct aac_softstate *, struct aac_cmd *);
396 static void aac_print_aif(struct aac_softstate *, struct aac_aif_command *);
477 static struct aac_softstate *aac_softstatep;
705 sizeof (struct aac_softstate), 0)) != 0) in _init()
765 struct aac_softstate *softs = NULL; in aac_attach()
975 struct aac_softstate *softs = AAC_TRAN2SOFTS(tran); in aac_detach()
1047 struct aac_softstate *softs = AAC_DIP2SOFTS(dip); in aac_reset()
1072 struct aac_softstate *softs = AAC_DIP2SOFTS(dip); in aac_quiesce()
1107 aac_shutdown(struct aac_softstate *softs) in aac_shutdown()
1134 struct aac_softstate *softs = (void *)arg; in aac_softintr()
1221 aac_send_command(struct aac_softstate *softs, struct aac_slot *slotp) in aac_send_command()
1244 aac_end_io(struct aac_softstate *softs, struct aac_cmd *acp) in aac_end_io()
1297 aac_handle_io(struct aac_softstate *softs, int index) in aac_handle_io()
1363 aac_process_intr_new(struct aac_softstate *softs) in aac_process_intr_new()
1422 struct aac_softstate *softs = (void *)arg; in aac_intr_new()
1443 aac_process_intr_old(struct aac_softstate *softs) in aac_process_intr_old()
1561 struct aac_softstate *softs = (void *)arg; in aac_intr_old()
1579 aac_query_intrs(struct aac_softstate *softs, int intr_type) in aac_query_intrs()
1671 aac_add_intrs(struct aac_softstate *softs) in aac_add_intrs()
1716 aac_remove_intrs(struct aac_softstate *softs) in aac_remove_intrs()
1732 aac_enable_intrs(struct aac_softstate *softs) in aac_enable_intrs()
1754 aac_disable_intrs(struct aac_softstate *softs) in aac_disable_intrs()
1778 aac_set_pkt_reason(struct aac_softstate *softs, struct aac_cmd *acp, in aac_set_pkt_reason()
1793 aac_soft_callback(struct aac_softstate *softs, struct aac_cmd *acp) in aac_soft_callback()
1822 aac_ld_complete(struct aac_softstate *softs, struct aac_cmd *acp) in aac_ld_complete()
1851 aac_pd_complete(struct aac_softstate *softs, struct aac_cmd *acp) in aac_pd_complete()
2028 aac_ioctl_complete(struct aac_softstate *softs, struct aac_cmd *acp) in aac_ioctl_complete()
2054 aac_sync_complete(struct aac_softstate *softs, struct aac_cmd *acp) in aac_sync_complete()
2063 aac_synccache_complete(struct aac_softstate *softs, struct aac_cmd *acp) in aac_synccache_complete()
2082 aac_startstop_complete(struct aac_softstate *softs, struct aac_cmd *acp) in aac_startstop_complete()
2105 aac_check_card_type(struct aac_softstate *softs) in aac_check_card_type()
2217 aac_register_intrs(struct aac_softstate *softs) in aac_register_intrs()
2278 aac_unregister_intrs(struct aac_softstate *softs) in aac_unregister_intrs()
2289 aac_check_firmware(struct aac_softstate *softs) in aac_check_firmware()
2485 aac_fsa_rev(struct aac_softstate *softs, struct FsaRev *fsarev0, in aac_fsa_rev()
2503 aac_get_adapter_info(struct aac_softstate *softs, in aac_get_adapter_info()
2606 aac_get_bus_info(struct aac_softstate *softs, uint32_t *bus_max, in aac_get_bus_info()
2709 aac_handle_adapter_config_issues(struct aac_softstate *softs) in aac_handle_adapter_config_issues()
2782 aac_common_attach(struct aac_softstate *softs) in aac_common_attach()
3036 aac_common_detach(struct aac_softstate *softs) in aac_common_detach()
3061 aac_sync_mbcommand(struct aac_softstate *softs, uint32_t cmd, in aac_sync_mbcommand()
3110 aac_sync_fib(struct aac_softstate *softs, uint16_t cmd, uint16_t fibsize) in aac_sync_fib()
3208 aac_fib_enqueue(struct aac_softstate *softs, int queue, uint32_t fib_addr, in aac_fib_enqueue()
3269 aac_fib_dequeue(struct aac_softstate *softs, int queue, int *idxp) in aac_fib_dequeue()
3348 aac_get_mntinfo(struct aac_softstate *softs, int cid) in aac_get_mntinfo()
3374 aac_get_container_count(struct aac_softstate *softs, int *count) in aac_get_container_count()
3402 aac_get_container_uid(struct aac_softstate *softs, uint32_t cid, uint32_t *uid) in aac_get_container_uid()
3427 aac_get_container_info(struct aac_softstate *softs, int cid) in aac_get_container_info()
3456 aac_probe_container(struct aac_softstate *softs, uint32_t cid) in aac_probe_container()
3535 aac_probe_containers(struct aac_softstate *softs) in aac_probe_containers()
3574 aac_probe_jbod(struct aac_softstate *softs, int tgt, int event) in aac_probe_jbod()
3601 aac_alloc_comm_space(struct aac_softstate *softs) in aac_alloc_comm_space()
3662 aac_free_comm_space(struct aac_softstate *softs) in aac_free_comm_space()
3678 aac_setup_comm_space(struct aac_softstate *softs) in aac_setup_comm_space()
3828 aac_vendor_id(struct aac_softstate *softs, uchar_t *buf) in aac_vendor_id()
3836 aac_product_id(struct aac_softstate *softs, uchar_t *buf) in aac_product_id()
3847 aac_lun_serialno(struct aac_softstate *softs, int tgt, uchar_t *buf) in aac_lun_serialno()
3867 aac_inquiry(struct aac_softstate *softs, struct scsi_pkt *pkt, in aac_inquiry()
3995 aac_mode_sense(struct aac_softstate *softs, struct scsi_pkt *pkt, in aac_mode_sense()
4154 struct aac_softstate *softs = AAC_TRAN2SOFTS(tran); in aac_tran_tgt_init()
4242 struct aac_softstate *softs = SD2AAC(sd); in aac_tran_tgt_free()
4265 aac_check_adapter_health(struct aac_softstate *softs) in aac_check_adapter_health()
4284 aac_abort_iocmd(struct aac_softstate *softs, struct aac_cmd *acp, in aac_abort_iocmd()
4323 aac_abort_iocmds(struct aac_softstate *softs, int iocmd, struct scsi_pkt *pkt, in aac_abort_iocmds()
4373 struct aac_softstate *softs = arg; in aac_check_drain()
4399 aac_start_drain(struct aac_softstate *softs) in aac_start_drain()
4414 aac_stop_drain(struct aac_softstate *softs) in aac_stop_drain()
4439 aac_reset_adapter(struct aac_softstate *softs) in aac_reset_adapter()
4542 aac_set_throttle(struct aac_softstate *softs, struct aac_device *dvp, int q, in aac_set_throttle()
4555 aac_hold_bus(struct aac_softstate *softs, int iocmds) in aac_hold_bus()
4574 aac_unhold_bus(struct aac_softstate *softs, int iocmds) in aac_unhold_bus()
4606 aac_do_reset(struct aac_softstate *softs) in aac_do_reset()
4631 int (*intr_handler)(struct aac_softstate *); in aac_do_reset()
4676 struct aac_softstate *softs = AAC_TRAN2SOFTS(ap->a_hba_tran); in aac_tran_reset()
4709 struct aac_softstate *softs = AAC_TRAN2SOFTS(ap->a_hba_tran); in aac_tran_abort()
4748 aac_unknown_scmd(struct aac_softstate *softs, struct aac_cmd *acp) in aac_unknown_scmd()
4761 aac_tran_start_ld(struct aac_softstate *softs, struct aac_cmd *acp) in aac_tran_start_ld()
4958 struct aac_softstate *softs = AAC_TRAN2SOFTS(ap->a_hba_tran); in aac_tran_start()
5032 struct aac_softstate *softs = AAC_TRAN2SOFTS(ap->a_hba_tran); in aac_tran_getcap()
5080 struct aac_softstate *softs = AAC_TRAN2SOFTS(ap->a_hba_tran); in aac_tran_setcap()
5139 aac_cmd_dma_alloc(struct aac_softstate *softs, struct aac_cmd *acp, in aac_cmd_dma_alloc()
5370 struct aac_softstate *softs = AAC_TRAN2SOFTS(ap->a_hba_tran); in aac_tran_init_pkt()
5447 aac_do_quiesce(struct aac_softstate *softs) in aac_do_quiesce()
5472 struct aac_softstate *softs = AAC_DIP2SOFTS(dip); in aac_tran_quiesce()
5487 aac_do_unquiesce(struct aac_softstate *softs) in aac_do_unquiesce()
5499 struct aac_softstate *softs = AAC_DIP2SOFTS(dip); in aac_tran_unquiesce()
5514 aac_hba_setup(struct aac_softstate *softs) in aac_hba_setup()
5558 aac_cmd_fib_header(struct aac_softstate *softs, struct aac_cmd *acp, in aac_cmd_fib_header()
5593 aac_cmd_fib_rawio(struct aac_softstate *softs, struct aac_cmd *acp) in aac_cmd_fib_rawio()
5633 aac_cmd_fib_brw64(struct aac_softstate *softs, struct aac_cmd *acp) in aac_cmd_fib_brw64()
5673 aac_cmd_fib_brw(struct aac_softstate *softs, struct aac_cmd *acp) in aac_cmd_fib_brw()
5722 aac_cmd_fib_copy(struct aac_softstate *softs, struct aac_cmd *acp) in aac_cmd_fib_copy()
5736 aac_cmd_fib_sync(struct aac_softstate *softs, struct aac_cmd *acp) in aac_cmd_fib_sync()
5756 aac_cmd_fib_startstop(struct aac_softstate *softs, struct aac_cmd *acp) in aac_cmd_fib_startstop()
5813 aac_cmd_fib_scsi32(struct aac_softstate *softs, struct aac_cmd *acp) in aac_cmd_fib_scsi32()
5840 aac_cmd_fib_scsi64(struct aac_softstate *softs, struct aac_cmd *acp) in aac_cmd_fib_scsi64()
5869 aac_cmd_slot_bind(struct aac_softstate *softs, struct aac_cmd *acp) in aac_cmd_slot_bind()
5885 aac_bind_io(struct aac_softstate *softs, struct aac_cmd *acp) in aac_bind_io()
5909 aac_sync_fib_slot_bind(struct aac_softstate *softs, struct aac_cmd *acp) in aac_sync_fib_slot_bind()
5927 aac_sync_fib_slot_release(struct aac_softstate *softs, struct aac_cmd *acp) in aac_sync_fib_slot_release()
5939 aac_start_io(struct aac_softstate *softs, struct aac_cmd *acp) in aac_start_io()
5991 aac_start_waitq(struct aac_softstate *softs, struct aac_cmd_queue *q) in aac_start_waitq()
6008 aac_start_waiting_io(struct aac_softstate *softs) in aac_start_waiting_io()
6021 aac_drain_comp_q(struct aac_softstate *softs) in aac_drain_comp_q()
6076 aac_alloc_fib(struct aac_softstate *softs, struct aac_slot *slotp) in aac_alloc_fib()
6161 aac_alloc_fibs(struct aac_softstate *softs) in aac_alloc_fibs()
6181 aac_destroy_fibs(struct aac_softstate *softs) in aac_destroy_fibs()
6196 aac_create_slots(struct aac_softstate *softs) in aac_create_slots()
6215 aac_destroy_slots(struct aac_softstate *softs) in aac_destroy_slots()
6226 aac_get_slot(struct aac_softstate *softs) in aac_get_slot()
6238 aac_release_slot(struct aac_softstate *softs, struct aac_slot *slotp) in aac_release_slot()
6249 aac_do_io(struct aac_softstate *softs, struct aac_cmd *acp) in aac_do_io()
6273 aac_do_poll_io(struct aac_softstate *softs, struct aac_cmd *acp) in aac_do_poll_io()
6275 int (*intr_handler)(struct aac_softstate *); in aac_do_poll_io()
6298 aac_do_sync_io(struct aac_softstate *softs, struct aac_cmd *acp) in aac_do_sync_io()
6342 aac_save_aif(struct aac_softstate *softs, ddi_acc_handle_t acc, in aac_save_aif()
6402 aac_return_aif_common(struct aac_softstate *softs, struct aac_fib_context *ctx, in aac_return_aif_common()
6420 aac_return_aif(struct aac_softstate *softs, struct aac_fib_context *ctx, in aac_return_aif()
6432 aac_return_aif_wait(struct aac_softstate *softs, struct aac_fib_context *ctx, in aac_return_aif_wait()
6458 aac_handle_aif(struct aac_softstate *softs, struct aac_aif_command *aif) in aac_handle_aif()
6558 aac_aif_event(struct aac_softstate *softs) in aac_aif_event()
6589 aac_cmd_timeout(struct aac_softstate *softs, struct aac_cmd *acp) in aac_cmd_timeout()
6627 aac_sync_tick(struct aac_softstate *softs) in aac_sync_tick()
6660 aac_daemon(struct aac_softstate *softs) in aac_daemon()
6712 aac_event_thread(struct aac_softstate *softs) in aac_event_thread()
6758 struct aac_softstate *softs = arg; in aac_timer()
6791 aac_event_disp(struct aac_softstate *softs, int events) in aac_event_disp()
6803 aac_rx_get_fwstatus(struct aac_softstate *softs) in aac_rx_get_fwstatus()
6809 aac_rx_get_mailbox(struct aac_softstate *softs, int mb) in aac_rx_get_mailbox()
6815 aac_rx_set_mailbox(struct aac_softstate *softs, uint32_t cmd, in aac_rx_set_mailbox()
6826 aac_rkt_get_fwstatus(struct aac_softstate *softs) in aac_rkt_get_fwstatus()
6832 aac_rkt_get_mailbox(struct aac_softstate *softs, int mb) in aac_rkt_get_mailbox()
6838 aac_rkt_set_mailbox(struct aac_softstate *softs, uint32_t cmd, in aac_rkt_set_mailbox()
6854 struct aac_softstate *softs; in aac_open()
6909 struct aac_softstate *softs; in aac_ioctl()
6952 aac_fm_init(struct aac_softstate *softs) in aac_fm_init()
7002 aac_fm_fini(struct aac_softstate *softs) in aac_fm_fini()
7050 aac_fm_ereport(struct aac_softstate *softs, char *detail) in aac_fm_ereport()
7109 aac_find_child(struct aac_softstate *softs, uint16_t tgt, uint8_t lun) in aac_find_child()
7140 aac_config_child(struct aac_softstate *softs, struct scsi_device *sd, in aac_config_child()
7210 aac_probe_lun(struct aac_softstate *softs, struct scsi_device *sd) in aac_probe_lun()
7268 aac_config_lun(struct aac_softstate *softs, uint16_t tgt, uint8_t lun, in aac_config_lun()
7298 aac_config_tgt(struct aac_softstate *softs, int tgt) in aac_config_tgt()
7402 aac_devcfg(struct aac_softstate *softs, int tgt, int en) in aac_devcfg()
7419 struct aac_softstate *softs; in aac_tran_bus_config()
7499 aac_handle_dr(struct aac_softstate *softs, int tgt, int lun, int event) in aac_handle_dr()
7995 aac_get_fw_debug_buffer(struct aac_softstate *softs) in aac_get_fw_debug_buffer()
8030 aac_dbflag_on(struct aac_softstate *softs, int flag) in aac_dbflag_on()
8039 aac_cmn_err(struct aac_softstate *softs, uint_t lev, char sl, int noheader) in aac_cmn_err()
8069 aac_printf(struct aac_softstate *softs, uint_t lev, const char *fmt, ...) in aac_printf()
8167 aac_print_scmd(struct aac_softstate *softs, struct aac_cmd *acp) in aac_print_scmd()
8235 aac_print_fib(struct aac_softstate *softs, struct aac_slot *slotp) in aac_print_fib()
8443 aac_print_aif(struct aac_softstate *softs, struct aac_aif_command *aif) in aac_print_aif()