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