Lines Matching defs:ahd

275 ahd_set_modes(struct ahd_softc *ahd, ahd_mode src, ahd_mode dst)  in ahd_set_modes()
293 ahd_update_modes(struct ahd_softc *ahd) in ahd_update_modes()
309 ahd_assert_modes(struct ahd_softc *ahd, ahd_mode srcmode, in ahd_assert_modes()
321 #define AHD_ASSERT_MODES(ahd, source, dest) \ argument
325 ahd_save_modes(struct ahd_softc *ahd) in ahd_save_modes()
335 ahd_restore_modes(struct ahd_softc *ahd, ahd_mode_state state) in ahd_restore_modes()
349 ahd_is_paused(struct ahd_softc *ahd) in ahd_is_paused()
362 ahd_pause(struct ahd_softc *ahd) in ahd_pause()
385 ahd_unpause(struct ahd_softc *ahd) in ahd_unpause()
406 ahd_sg_setup(struct ahd_softc *ahd, struct scb *scb, in ahd_sg_setup()
430 ahd_setup_scb_common(struct ahd_softc *ahd, struct scb *scb) in ahd_setup_scb_common()
451 ahd_setup_data_scb(struct ahd_softc *ahd, struct scb *scb) in ahd_setup_data_scb()
488 ahd_setup_noxfer_scb(struct ahd_softc *ahd, struct scb *scb) in ahd_setup_noxfer_scb()
497 ahd_sg_bus_to_virt(struct ahd_softc *ahd, struct scb *scb, uint32_t sg_busaddr) in ahd_sg_bus_to_virt()
507 ahd_sg_virt_to_bus(struct ahd_softc *ahd, struct scb *scb, void *sg) in ahd_sg_virt_to_bus()
519 ahd_sync_scb(struct ahd_softc *ahd, struct scb *scb, int op) in ahd_sync_scb()
528 ahd_sync_sglist(struct ahd_softc *ahd, struct scb *scb, int op) in ahd_sync_sglist()
540 ahd_sync_sense(struct ahd_softc *ahd, struct scb *scb, int op) in ahd_sync_sense()
550 ahd_targetcmd_offset(struct ahd_softc *ahd, u_int index) in ahd_targetcmd_offset()
563 ahd_fetch_transinfo(struct ahd_softc *ahd, char channel, u_int our_id, in ahd_fetch_transinfo()
579 ahd_inw(struct ahd_softc *ahd, u_int port) in ahd_inw()
591 ahd_outw(struct ahd_softc *ahd, u_int port, u_int value) in ahd_outw()
602 ahd_inl(struct ahd_softc *ahd, u_int port) in ahd_inl()
611 ahd_outl(struct ahd_softc *ahd, u_int port, uint32_t value) in ahd_outl()
620 ahd_inq(struct ahd_softc *ahd, u_int port) in ahd_inq()
633 ahd_outq(struct ahd_softc *ahd, u_int port, uint64_t value) in ahd_outq()
646 ahd_get_scbptr(struct ahd_softc *ahd) in ahd_get_scbptr()
654 ahd_set_scbptr(struct ahd_softc *ahd, u_int scbptr) in ahd_set_scbptr()
671 ahd_set_hnscb_qoff(struct ahd_softc *ahd, u_int value) in ahd_set_hnscb_qoff()
685 ahd_set_hescb_qoff(struct ahd_softc *ahd, u_int value) in ahd_set_hescb_qoff()
691 ahd_get_snscb_qoff(struct ahd_softc *ahd) in ahd_get_snscb_qoff()
702 ahd_set_snscb_qoff(struct ahd_softc *ahd, u_int value) in ahd_set_snscb_qoff()
718 ahd_set_sescb_qoff(struct ahd_softc *ahd, u_int value) in ahd_set_sescb_qoff()
734 ahd_set_sdscb_qoff(struct ahd_softc *ahd, u_int value) in ahd_set_sdscb_qoff()
742 ahd_inb_scbram(struct ahd_softc *ahd, u_int offset) in ahd_inb_scbram()
767 ahd_inw_scbram(struct ahd_softc *ahd, u_int offset) in ahd_inw_scbram()
774 ahd_inl_scbram(struct ahd_softc *ahd, u_int offset) in ahd_inl_scbram()
781 ahd_inq_scbram(struct ahd_softc *ahd, u_int offset) in ahd_inq_scbram()
788 ahd_lookup_scb(struct ahd_softc *ahd, u_int tag) in ahd_lookup_scb()
802 ahd_swap_with_next_hscb(struct ahd_softc *ahd, struct scb *scb) in ahd_swap_with_next_hscb()
841 ahd_queue_scb(struct ahd_softc *ahd, struct scb *scb) in ahd_queue_scb()
887 ahd_sync_qoutfifo(struct ahd_softc *ahd, int op) in ahd_sync_qoutfifo()
895 ahd_sync_tqinfifo(struct ahd_softc *ahd, int op) in ahd_sync_tqinfifo()
915 ahd_check_cmdcmpltqueues(struct ahd_softc *ahd) in ahd_check_cmdcmpltqueues()
945 ahd_intr(struct ahd_softc *ahd) in ahd_intr()
1030 ahd_assert_atn(struct ahd_softc *ahd) in ahd_assert_atn()
1042 ahd_currently_packetized(struct ahd_softc *ahd) in ahd_currently_packetized()
1065 ahd_set_active_fifo(struct ahd_softc *ahd) in ahd_set_active_fifo()
1082 ahd_unbusy_tcl(struct ahd_softc *ahd, u_int tcl) in ahd_unbusy_tcl()
1092 ahd_update_residual(struct ahd_softc *ahd, struct scb *scb) in ahd_update_residual()
1102 ahd_complete_scb(struct ahd_softc *ahd, struct scb *scb) in ahd_complete_scb()
1119 ahd_restart(struct ahd_softc *ahd) in ahd_restart()
1163 ahd_clear_fifo(struct ahd_softc *ahd, u_int fifo) in ahd_clear_fifo()
1187 ahd_flush_qoutfifo(struct ahd_softc *ahd) in ahd_flush_qoutfifo()
1395 ahd_scb_active_in_fifo(struct ahd_softc *ahd, struct scb *scb) in ahd_scb_active_in_fifo()
1424 ahd_run_data_fifo(struct ahd_softc *ahd, struct scb *scb) in ahd_run_data_fifo()
1658 ahd_run_qoutfifo(struct ahd_softc *ahd) in ahd_run_qoutfifo()
1697 ahd_handle_hwerrint(struct ahd_softc *ahd) in ahd_handle_hwerrint()
1769 ahd_handle_seqint(struct ahd_softc *ahd, u_int intstat) in ahd_handle_seqint()
2373 ahd_handle_scsiint(struct ahd_softc *ahd, u_int intstat) in ahd_handle_scsiint()
2655 ahd_handle_transmission_error(struct ahd_softc *ahd) in ahd_handle_transmission_error()
2841 ahd_handle_lqiphase_error(struct ahd_softc *ahd, u_int lqistat1) in ahd_handle_lqiphase_error()
2883 ahd_handle_pkt_busfree(struct ahd_softc *ahd, u_int busfreetime) in ahd_handle_pkt_busfree()
3015 ahd_handle_nonpkt_busfree(struct ahd_softc *ahd) in ahd_handle_nonpkt_busfree()
3289 ahd_handle_proto_violation(struct ahd_softc *ahd) in ahd_handle_proto_violation()
3388 ahd_force_renegotiation(struct ahd_softc *ahd, struct ahd_devinfo *devinfo) in ahd_force_renegotiation()
3410 ahd_clear_critical_section(struct ahd_softc *ahd) in ahd_clear_critical_section()
3532 ahd_clear_intstat(struct ahd_softc *ahd) in ahd_clear_intstat()
3596 ahd_alloc_tstate(struct ahd_softc *ahd, u_int scsi_id, char channel) in ahd_alloc_tstate()
3638 ahd_free_tstate(struct ahd_softc *ahd, u_int scsi_id, char channel, int force) in ahd_free_tstate()
3663 ahd_devlimited_syncrate(struct ahd_softc *ahd, in ahd_devlimited_syncrate()
3712 ahd_find_syncrate(struct ahd_softc *ahd, u_int *period, in ahd_find_syncrate()
3751 ahd_validate_offset(struct ahd_softc *ahd, in ahd_validate_offset()
3782 ahd_validate_width(struct ahd_softc *ahd, struct ahd_initiator_tinfo *tinfo, in ahd_validate_width()
3812 ahd_update_neg_request(struct ahd_softc *ahd, struct ahd_devinfo *devinfo, in ahd_update_neg_request()
3855 ahd_set_syncrate(struct ahd_softc *ahd, struct ahd_devinfo *devinfo, in ahd_set_syncrate()
4001 ahd_set_width(struct ahd_softc *ahd, struct ahd_devinfo *devinfo, in ahd_set_width()
4055 ahd_set_tags(struct ahd_softc *ahd, struct scsi_cmnd *cmd, in ahd_set_tags()
4066 ahd_update_neg_table(struct ahd_softc *ahd, struct ahd_devinfo *devinfo, in ahd_update_neg_table()
4186 ahd_update_pending_scbs(struct ahd_softc *ahd) in ahd_update_pending_scbs()
4267 ahd_fetch_devinfo(struct ahd_softc *ahd, struct ahd_devinfo *devinfo) in ahd_fetch_devinfo()
4302 ahd_print_devinfo(struct ahd_softc *ahd, struct ahd_devinfo *devinfo) in ahd_print_devinfo()
4342 ahd_scb_devinfo(struct ahd_softc *ahd, struct ahd_devinfo *devinfo, in ahd_scb_devinfo()
4365 ahd_setup_initiator_msgout(struct ahd_softc *ahd, struct ahd_devinfo *devinfo, in ahd_setup_initiator_msgout()
4486 ahd_build_transfer_msg(struct ahd_softc *ahd, struct ahd_devinfo *devinfo) in ahd_build_transfer_msg()
4582 ahd_construct_sdtr(struct ahd_softc *ahd, struct ahd_devinfo *devinfo, in ahd_construct_sdtr()
4602 ahd_construct_wdtr(struct ahd_softc *ahd, struct ahd_devinfo *devinfo, in ahd_construct_wdtr()
4620 ahd_construct_ppr(struct ahd_softc *ahd, struct ahd_devinfo *devinfo, in ahd_construct_ppr()
4649 ahd_clear_msg_state(struct ahd_softc *ahd) in ahd_clear_msg_state()
4677 ahd_handle_message_phase(struct ahd_softc *ahd) in ahd_handle_message_phase()
5017 ahd_sent_msg(struct ahd_softc *ahd, ahd_msgtype type, u_int msgval, int full) in ahd_sent_msg()
5066 ahd_parse_msg(struct ahd_softc *ahd, struct ahd_devinfo *devinfo) in ahd_parse_msg()
5484 ahd_handle_msg_reject(struct ahd_softc *ahd, struct ahd_devinfo *devinfo) in ahd_handle_msg_reject()
5655 ahd_handle_ign_wide_residue(struct ahd_softc *ahd, struct ahd_devinfo *devinfo) in ahd_handle_ign_wide_residue()
5805 ahd_reinitialize_dataptrs(struct ahd_softc *ahd) in ahd_reinitialize_dataptrs()
5887 ahd_handle_devreset(struct ahd_softc *ahd, struct ahd_devinfo *devinfo, in ahd_handle_devreset()
5951 ahd_setup_target_msgin(struct ahd_softc *ahd, struct ahd_devinfo *devinfo, in ahd_setup_target_msgin()
5974 ahd_sglist_size(struct ahd_softc *ahd) in ahd_sglist_size()
5991 ahd_sglist_allocsize(struct ahd_softc *ahd) in ahd_sglist_allocsize()
6038 struct ahd_softc *ahd; in ahd_alloc() local
6088 ahd_softc_init(struct ahd_softc *ahd) in ahd_softc_init()
6097 ahd_set_unit(struct ahd_softc *ahd, int unit) in ahd_set_unit()
6103 ahd_set_name(struct ahd_softc *ahd, char *name) in ahd_set_name()
6110 ahd_free(struct ahd_softc *ahd) in ahd_free()
6177 struct ahd_softc *ahd; in ahd_shutdown() local
6200 ahd_reset(struct ahd_softc *ahd, int reinit) in ahd_reset()
6303 ahd_probe_scbs(struct ahd_softc *ahd) { in ahd_probe_scbs()
6336 ahd_initialize_hscbs(struct ahd_softc *ahd) in ahd_initialize_hscbs()
6352 ahd_init_scbdata(struct ahd_softc *ahd) in ahd_init_scbdata()
6453 ahd_find_scb_by_tag(struct ahd_softc *ahd, u_int tag) in ahd_find_scb_by_tag()
6491 ahd_fini_scbdata(struct ahd_softc *ahd) in ahd_fini_scbdata()
6560 ahd_setup_iocell_workaround(struct ahd_softc *ahd) in ahd_setup_iocell_workaround()
6578 ahd_iocell_first_selection(struct ahd_softc *ahd) in ahd_iocell_first_selection()
6609 ahd_add_col_list(struct ahd_softc *ahd, struct scb *scb, u_int col_idx) in ahd_add_col_list()
6629 ahd_rem_col_list(struct ahd_softc *ahd, struct scb *scb) in ahd_rem_col_list()
6663 ahd_get_scb(struct ahd_softc *ahd, u_int col_idx) in ahd_get_scb()
6699 ahd_free_scb(struct ahd_softc *ahd, struct scb *scb) in ahd_free_scb()
6751 ahd_alloc_scbs(struct ahd_softc *ahd) in ahd_alloc_scbs()
6937 ahd_controller_info(struct ahd_softc *ahd, char *buf) in ahd_controller_info()
6987 ahd_init(struct ahd_softc *ahd) in ahd_init()
7198 ahd_chip_init(struct ahd_softc *ahd) in ahd_chip_init()
7540 ahd_default_config(struct ahd_softc *ahd) in ahd_default_config()
7617 ahd_parse_cfgdata(struct ahd_softc *ahd, struct seeprom_config *sc) in ahd_parse_cfgdata()
7751 ahd_parse_vpddata(struct ahd_softc *ahd, struct vpd_config *vpd) in ahd_parse_vpddata()
7764 ahd_intr_enable(struct ahd_softc *ahd, int enable) in ahd_intr_enable()
7781 ahd_update_coalescing_values(struct ahd_softc *ahd, u_int timer, u_int maxcmds, in ahd_update_coalescing_values()
7799 ahd_enable_coalescing(struct ahd_softc *ahd, int enable) in ahd_enable_coalescing()
7818 ahd_pause_and_flushwork(struct ahd_softc *ahd) in ahd_pause_and_flushwork()
7869 ahd_suspend(struct ahd_softc *ahd) in ahd_suspend()
7882 ahd_resume(struct ahd_softc *ahd) in ahd_resume()
7899 ahd_index_busy_tcl(struct ahd_softc *ahd, u_int *saved_scbid, u_int tcl) in ahd_index_busy_tcl()
7921 ahd_find_busy_tcl(struct ahd_softc *ahd, u_int tcl) in ahd_find_busy_tcl()
7934 ahd_busy_tcl(struct ahd_softc *ahd, u_int tcl, u_int scbid) in ahd_busy_tcl()
7946 ahd_match_scb(struct ahd_softc *ahd, struct scb *scb, int target, in ahd_match_scb()
7982 ahd_freeze_devq(struct ahd_softc *ahd, struct scb *scb) in ahd_freeze_devq()
8000 ahd_qinfifo_requeue_tail(struct ahd_softc *ahd, struct scb *scb) in ahd_qinfifo_requeue_tail()
8022 ahd_qinfifo_requeue(struct ahd_softc *ahd, struct scb *prev_scb, in ahd_qinfifo_requeue()
8042 ahd_qinfifo_count(struct ahd_softc *ahd) in ahd_qinfifo_count()
8060 ahd_reset_cmds_pending(struct ahd_softc *ahd) in ahd_reset_cmds_pending()
8085 ahd_done_with_status(struct ahd_softc *ahd, struct scb *scb, uint32_t status) in ahd_done_with_status()
8100 ahd_search_qinfifo(struct ahd_softc *ahd, int target, char channel, in ahd_search_qinfifo()
8330 ahd_search_scb_list(struct ahd_softc *ahd, int target, char channel, in ahd_search_scb_list()
8398 ahd_stitch_tid_list(struct ahd_softc *ahd, u_int tid_prev, in ahd_stitch_tid_list()
8436 ahd_rem_wscb(struct ahd_softc *ahd, u_int scbid, in ahd_rem_wscb()
8469 ahd_add_scb_to_free_list(struct ahd_softc *ahd, u_int scbid) in ahd_add_scb_to_free_list()
8487 ahd_abort_scbs(struct ahd_softc *ahd, int target, char channel, in ahd_abort_scbs()
8583 ahd_reset_current_bus(struct ahd_softc *ahd) in ahd_reset_current_bus()
8613 ahd_reset_channel(struct ahd_softc *ahd, char channel, int initiate_reset) in ahd_reset_channel()
8787 struct ahd_softc *ahd = from_timer(ahd, t, stat_timer); in ahd_stat_timer() local
8821 ahd_handle_scsi_status(struct ahd_softc *ahd, struct scb *scb) in ahd_handle_scsi_status()
9030 ahd_handle_scb_status(struct ahd_softc *ahd, struct scb *scb) in ahd_handle_scb_status()
9044 ahd_calc_residual(struct ahd_softc *ahd, struct scb *scb) in ahd_calc_residual()
9147 ahd_queue_lstate_event(struct ahd_softc *ahd, struct ahd_tmode_lstate *lstate, in ahd_queue_lstate_event()
9198 ahd_send_lstate_events(struct ahd_softc *ahd, struct ahd_tmode_lstate *lstate) in ahd_send_lstate_events()
9234 ahd_dumpseq(struct ahd_softc* ahd) in ahd_dumpseq()
9256 ahd_loadseq(struct ahd_softc *ahd) in ahd_loadseq()
9415 ahd_check_patch(struct ahd_softc *ahd, const struct patch **start_patch, in ahd_check_patch()
9451 ahd_resolve_seqaddr(struct ahd_softc *ahd, u_int address) in ahd_resolve_seqaddr()
9480 ahd_download_instr(struct ahd_softc *ahd, u_int instrptr, uint8_t *dconsts) in ahd_download_instr()
9549 ahd_probe_stack_size(struct ahd_softc *ahd) in ahd_probe_stack_size()
9632 ahd_dump_card_state(struct ahd_softc *ahd) in ahd_dump_card_state()
9928 ahd_read_seeprom(struct ahd_softc *ahd, uint16_t *buf, in ahd_read_seeprom()
9973 ahd_write_seeprom(struct ahd_softc *ahd, uint16_t *buf, in ahd_write_seeprom()
10022 ahd_wait_seeprom(struct ahd_softc *ahd) in ahd_wait_seeprom()
10090 ahd_acquire_seeprom(struct ahd_softc *ahd) in ahd_acquire_seeprom()
10113 ahd_release_seeprom(struct ahd_softc *ahd) in ahd_release_seeprom()
10122 ahd_wait_flexport(struct ahd_softc *ahd) in ahd_wait_flexport()
10137 ahd_write_flexport(struct ahd_softc *ahd, u_int addr, u_int value) in ahd_write_flexport()
10160 ahd_read_flexport(struct ahd_softc *ahd, u_int addr, uint8_t *value) in ahd_read_flexport()
10180 ahd_find_tmode_devs(struct ahd_softc *ahd, struct cam_sim *sim, union ccb *ccb, in ahd_find_tmode_devs()
10221 ahd_handle_en_lun(struct ahd_softc *ahd, struct cam_sim *sim, union ccb *ccb) in ahd_handle_en_lun()
10534 ahd_update_scsiid(struct ahd_softc *ahd, u_int targid_mask) in ahd_update_scsiid()
10574 ahd_run_tqinfifo(struct ahd_softc *ahd, int paused) in ahd_run_tqinfifo()
10612 ahd_handle_target_cmd(struct ahd_softc *ahd, struct target_cmd *cmd) in ahd_handle_target_cmd()