Lines Matching refs:ahc_softc

134 static void		ahc_force_renegotiation(struct ahc_softc *ahc,
137 ahc_alloc_tstate(struct ahc_softc *ahc,
140 static void ahc_free_tstate(struct ahc_softc *ahc,
144 ahc_devlimited_syncrate(struct ahc_softc *ahc,
149 static void ahc_update_pending_scbs(struct ahc_softc *ahc);
150 static void ahc_fetch_devinfo(struct ahc_softc *ahc,
152 static void ahc_scb_devinfo(struct ahc_softc *ahc,
155 static void ahc_assert_atn(struct ahc_softc *ahc);
156 static void ahc_setup_initiator_msgout(struct ahc_softc *ahc,
159 static void ahc_build_transfer_msg(struct ahc_softc *ahc,
161 static void ahc_construct_sdtr(struct ahc_softc *ahc,
164 static void ahc_construct_wdtr(struct ahc_softc *ahc,
167 static void ahc_construct_ppr(struct ahc_softc *ahc,
171 static void ahc_clear_msg_state(struct ahc_softc *ahc);
172 static void ahc_handle_proto_violation(struct ahc_softc *ahc);
173 static void ahc_handle_message_phase(struct ahc_softc *ahc);
179 static int ahc_sent_msg(struct ahc_softc *ahc, ahc_msgtype type,
181 static int ahc_parse_msg(struct ahc_softc *ahc,
183 static int ahc_handle_msg_reject(struct ahc_softc *ahc,
185 static void ahc_handle_ign_wide_residue(struct ahc_softc *ahc,
187 static void ahc_reinitialize_dataptrs(struct ahc_softc *ahc);
188 static void ahc_handle_devreset(struct ahc_softc *ahc,
193 static void ahc_setup_target_msgin(struct ahc_softc *ahc,
199 static void ahc_build_free_scb_list(struct ahc_softc *ahc);
200 static int ahc_init_scbdata(struct ahc_softc *ahc);
201 static void ahc_fini_scbdata(struct ahc_softc *ahc);
202 static void ahc_qinfifo_requeue(struct ahc_softc *ahc,
205 static int ahc_qinfifo_count(struct ahc_softc *ahc);
206 static u_int ahc_rem_scb_from_disc_list(struct ahc_softc *ahc,
208 static void ahc_add_curscb_to_free_list(struct ahc_softc *ahc);
209 static u_int ahc_rem_wscb(struct ahc_softc *ahc,
211 static void ahc_reset_current_bus(struct ahc_softc *ahc);
213 static void ahc_dumpseq(struct ahc_softc *ahc);
215 static int ahc_loadseq(struct ahc_softc *ahc);
216 static int ahc_check_patch(struct ahc_softc *ahc,
219 static void ahc_download_instr(struct ahc_softc *ahc,
222 static void ahc_queue_lstate_event(struct ahc_softc *ahc,
227 static void ahc_update_scsiid(struct ahc_softc *ahc,
229 static int ahc_handle_target_cmd(struct ahc_softc *ahc,
233 static u_int ahc_index_busy_tcl(struct ahc_softc *ahc, u_int tcl);
234 static void ahc_unbusy_tcl(struct ahc_softc *ahc, u_int tcl);
235 static void ahc_busy_tcl(struct ahc_softc *ahc,
239 static void ahc_run_untagged_queues(struct ahc_softc *ahc);
240 static void ahc_run_untagged_queue(struct ahc_softc *ahc,
244 static void ahc_alloc_scbs(struct ahc_softc *ahc);
248 static void ahc_clear_intstat(struct ahc_softc *ahc);
249 static void ahc_run_qoutfifo(struct ahc_softc *ahc);
251 static void ahc_run_tqinfifo(struct ahc_softc *ahc, int paused);
253 static void ahc_handle_brkadrint(struct ahc_softc *ahc);
254 static void ahc_handle_seqint(struct ahc_softc *ahc, u_int intstat);
255 static void ahc_handle_scsiint(struct ahc_softc *ahc,
257 static void ahc_clear_critical_section(struct ahc_softc *ahc);
260 static void ahc_freeze_devq(struct ahc_softc *ahc, struct scb *scb);
261 static int ahc_abort_scbs(struct ahc_softc *ahc, int target,
264 static void ahc_calc_residual(struct ahc_softc *ahc,
268 static inline void ahc_freeze_untagged_queues(struct ahc_softc *ahc);
269 static inline void ahc_release_untagged_queues(struct ahc_softc *ahc);
276 ahc_freeze_untagged_queues(struct ahc_softc *ahc) in ahc_freeze_untagged_queues()
289 ahc_release_untagged_queues(struct ahc_softc *ahc) in ahc_release_untagged_queues()
308 ahc_pause_bug_fix(struct ahc_softc *ahc) in ahc_pause_bug_fix()
319 ahc_is_paused(struct ahc_softc *ahc) in ahc_is_paused()
332 ahc_pause(struct ahc_softc *ahc) in ahc_pause()
357 ahc_unpause(struct ahc_softc *ahc) in ahc_unpause()
388 ahc_hscb_busaddr(struct ahc_softc *ahc, u_int index) in ahc_hscb_busaddr()
395 ahc_sync_scb(struct ahc_softc *ahc, struct scb *scb, int op) in ahc_sync_scb()
404 ahc_sync_sglist(struct ahc_softc *ahc, struct scb *scb, int op) in ahc_sync_sglist()
417 ahc_targetcmd_offset(struct ahc_softc *ahc, u_int index) in ahc_targetcmd_offset()
429 ahc_update_residual(struct ahc_softc *ahc, struct scb *scb) in ahc_update_residual()
443 ahc_fetch_transinfo(struct ahc_softc *ahc, char channel, u_int our_id, in ahc_fetch_transinfo()
459 ahc_inw(struct ahc_softc *ahc, u_int port) in ahc_inw()
466 ahc_outw(struct ahc_softc *ahc, u_int port, u_int value) in ahc_outw()
473 ahc_inl(struct ahc_softc *ahc, u_int port) in ahc_inl()
482 ahc_outl(struct ahc_softc *ahc, u_int port, uint32_t value) in ahc_outl()
491 ahc_inq(struct ahc_softc *ahc, u_int port) in ahc_inq()
504 ahc_outq(struct ahc_softc *ahc, u_int port, uint64_t value) in ahc_outq()
520 ahc_get_scb(struct ahc_softc *ahc) in ahc_get_scb()
538 ahc_free_scb(struct ahc_softc *ahc, struct scb *scb) in ahc_free_scb()
555 ahc_lookup_scb(struct ahc_softc *ahc, u_int tag) in ahc_lookup_scb()
567 ahc_swap_with_next_hscb(struct ahc_softc *ahc, struct scb *scb) in ahc_swap_with_next_hscb()
607 ahc_queue_scb(struct ahc_softc *ahc, struct scb *scb) in ahc_queue_scb()
647 ahc_get_sense_buf(struct ahc_softc *ahc, struct scb *scb) in ahc_get_sense_buf()
656 ahc_get_sense_bufaddr(struct ahc_softc *ahc, struct scb *scb) in ahc_get_sense_bufaddr()
667 ahc_sync_qoutfifo(struct ahc_softc *ahc, int op) in ahc_sync_qoutfifo()
674 ahc_sync_tqinfifo(struct ahc_softc *ahc, int op) in ahc_sync_tqinfifo()
694 ahc_check_cmdcmpltqueues(struct ahc_softc *ahc) in ahc_check_cmdcmpltqueues()
723 ahc_intr(struct ahc_softc *ahc) in ahc_intr()
808 ahc_restart(struct ahc_softc *ahc) in ahc_restart()
876 ahc_run_qoutfifo(struct ahc_softc *ahc) in ahc_run_qoutfifo()
923 ahc_run_untagged_queues(struct ahc_softc *ahc) in ahc_run_untagged_queues()
932 ahc_run_untagged_queue(struct ahc_softc *ahc, struct scb_tailq *queue) in ahc_run_untagged_queue()
948 ahc_handle_brkadrint(struct ahc_softc *ahc) in ahc_handle_brkadrint()
977 ahc_handle_seqint(struct ahc_softc *ahc, u_int intstat) in ahc_handle_seqint()
1527 ahc_handle_scsiint(struct ahc_softc *ahc, u_int intstat) in ahc_handle_scsiint()
1949 ahc_force_renegotiation(struct ahc_softc *ahc, struct ahc_devinfo *devinfo) in ahc_force_renegotiation()
1965 ahc_clear_critical_section(struct ahc_softc *ahc) in ahc_clear_critical_section()
2057 ahc_clear_intstat(struct ahc_softc *ahc) in ahc_clear_intstat()
2116 ahc_alloc_tstate(struct ahc_softc *ahc, u_int scsi_id, char channel) in ahc_alloc_tstate()
2163 ahc_free_tstate(struct ahc_softc *ahc, u_int scsi_id, char channel, int force) in ahc_free_tstate()
2191 ahc_devlimited_syncrate(struct ahc_softc *ahc, in ahc_devlimited_syncrate()
2246 ahc_find_syncrate(struct ahc_softc *ahc, u_int *period, in ahc_find_syncrate()
2322 ahc_find_period(struct ahc_softc *ahc, u_int scsirate, u_int maxsync) in ahc_find_period()
2363 ahc_validate_offset(struct ahc_softc *ahc, in ahc_validate_offset()
2395 ahc_validate_width(struct ahc_softc *ahc, struct ahc_initiator_tinfo *tinfo, in ahc_validate_width()
2425 ahc_update_neg_request(struct ahc_softc *ahc, struct ahc_devinfo *devinfo, in ahc_update_neg_request()
2468 ahc_set_syncrate(struct ahc_softc *ahc, struct ahc_devinfo *devinfo, in ahc_set_syncrate()
2595 ahc_set_width(struct ahc_softc *ahc, struct ahc_devinfo *devinfo, in ahc_set_width()
2651 ahc_set_tags(struct ahc_softc *ahc, struct scsi_cmnd *cmd, in ahc_set_tags()
2667 ahc_update_pending_scbs(struct ahc_softc *ahc) in ahc_update_pending_scbs()
2745 ahc_fetch_devinfo(struct ahc_softc *ahc, struct ahc_devinfo *devinfo) in ahc_fetch_devinfo()
2810 ahc_print_devinfo(struct ahc_softc *ahc, struct ahc_devinfo *devinfo) in ahc_print_devinfo()
2817 ahc_scb_devinfo(struct ahc_softc *ahc, struct ahc_devinfo *devinfo, in ahc_scb_devinfo()
2834 ahc_assert_atn(struct ahc_softc *ahc) in ahc_assert_atn()
2851 ahc_setup_initiator_msgout(struct ahc_softc *ahc, struct ahc_devinfo *devinfo, in ahc_setup_initiator_msgout()
2937 ahc_build_transfer_msg(struct ahc_softc *ahc, struct ahc_devinfo *devinfo) in ahc_build_transfer_msg()
3035 ahc_construct_sdtr(struct ahc_softc *ahc, struct ahc_devinfo *devinfo, in ahc_construct_sdtr()
3055 ahc_construct_wdtr(struct ahc_softc *ahc, struct ahc_devinfo *devinfo, in ahc_construct_wdtr()
3073 ahc_construct_ppr(struct ahc_softc *ahc, struct ahc_devinfo *devinfo, in ahc_construct_ppr()
3095 ahc_clear_msg_state(struct ahc_softc *ahc) in ahc_clear_msg_state()
3113 ahc_handle_proto_violation(struct ahc_softc *ahc) in ahc_handle_proto_violation()
3210 ahc_handle_message_phase(struct ahc_softc *ahc) in ahc_handle_message_phase()
3512 ahc_sent_msg(struct ahc_softc *ahc, ahc_msgtype type, u_int msgval, int full) in ahc_sent_msg()
3559 ahc_parse_msg(struct ahc_softc *ahc, struct ahc_devinfo *devinfo) in ahc_parse_msg()
3981 ahc_handle_msg_reject(struct ahc_softc *ahc, struct ahc_devinfo *devinfo) in ahc_handle_msg_reject()
4132 ahc_handle_ign_wide_residue(struct ahc_softc *ahc, struct ahc_devinfo *devinfo) in ahc_handle_ign_wide_residue()
4241 ahc_reinitialize_dataptrs(struct ahc_softc *ahc) in ahc_reinitialize_dataptrs()
4297 ahc_handle_devreset(struct ahc_softc *ahc, struct ahc_devinfo *devinfo, in ahc_handle_devreset()
4352 ahc_setup_target_msgin(struct ahc_softc *ahc, struct ahc_devinfo *devinfo, in ahc_setup_target_msgin()
4378 struct ahc_softc *
4381 struct ahc_softc *ahc; in ahc_alloc()
4425 ahc_softc_init(struct ahc_softc *ahc) in ahc_softc_init()
4445 ahc_set_unit(struct ahc_softc *ahc, int unit) in ahc_set_unit()
4451 ahc_set_name(struct ahc_softc *ahc, char *name) in ahc_set_name()
4458 ahc_free(struct ahc_softc *ahc) in ahc_free()
4524 struct ahc_softc *ahc; in ahc_shutdown()
4527 ahc = (struct ahc_softc *)arg; in ahc_shutdown()
4549 ahc_reset(struct ahc_softc *ahc, int reinit) in ahc_reset()
4655 ahc_probe_scbs(struct ahc_softc *ahc) { in ahc_probe_scbs()
4681 ahc_build_free_scb_list(struct ahc_softc *ahc) in ahc_build_free_scb_list()
4732 ahc_init_scbdata(struct ahc_softc *ahc) in ahc_init_scbdata()
4870 ahc_fini_scbdata(struct ahc_softc *ahc) in ahc_fini_scbdata()
4929 ahc_alloc_scbs(struct ahc_softc *ahc) in ahc_alloc_scbs()
4984 next_scb->ahc_softc = ahc; in ahc_alloc_scbs()
4998 ahc_controller_info(struct ahc_softc *ahc, char *buf) in ahc_controller_info()
5039 ahc_chip_init(struct ahc_softc *ahc) in ahc_chip_init()
5226 ahc_init(struct ahc_softc *ahc) in ahc_init()
5529 ahc_intr_enable(struct ahc_softc *ahc, int enable) in ahc_intr_enable()
5553 ahc_pause_and_flushwork(struct ahc_softc *ahc) in ahc_pause_and_flushwork()
5593 ahc_suspend(struct ahc_softc *ahc) in ahc_suspend()
5619 ahc_resume(struct ahc_softc *ahc) in ahc_resume()
5633 ahc_index_busy_tcl(struct ahc_softc *ahc, u_int tcl) in ahc_index_busy_tcl()
5654 ahc_unbusy_tcl(struct ahc_softc *ahc, u_int tcl) in ahc_unbusy_tcl()
5672 ahc_busy_tcl(struct ahc_softc *ahc, u_int tcl, u_int scbid) in ahc_busy_tcl()
5691 ahc_match_scb(struct ahc_softc *ahc, struct scb *scb, int target, in ahc_match_scb()
5727 ahc_freeze_devq(struct ahc_softc *ahc, struct scb *scb) in ahc_freeze_devq()
5745 ahc_qinfifo_requeue_tail(struct ahc_softc *ahc, struct scb *scb) in ahc_qinfifo_requeue_tail()
5767 ahc_qinfifo_requeue(struct ahc_softc *ahc, struct scb *prev_scb, in ahc_qinfifo_requeue()
5783 ahc_qinfifo_count(struct ahc_softc *ahc) in ahc_qinfifo_count()
5798 ahc_search_qinfifo(struct ahc_softc *ahc, int target, char channel, in ahc_search_qinfifo()
6005 ahc_search_untagged_queues(struct ahc_softc *ahc, ahc_io_ctx_t ctx, in ahc_search_untagged_queues()
6103 ahc_search_disc_list(struct ahc_softc *ahc, int target, char channel, in ahc_search_disc_list()
6170 ahc_rem_scb_from_disc_list(struct ahc_softc *ahc, u_int prev, u_int scbptr) in ahc_rem_scb_from_disc_list()
6196 ahc_add_curscb_to_free_list(struct ahc_softc *ahc) in ahc_add_curscb_to_free_list()
6215 ahc_rem_wscb(struct ahc_softc *ahc, u_int scbpos, u_int prev) in ahc_rem_wscb()
6266 ahc_abort_scbs(struct ahc_softc *ahc, int target, char channel, in ahc_abort_scbs()
6398 ahc_reset_current_bus(struct ahc_softc *ahc) in ahc_reset_current_bus()
6417 ahc_reset_channel(struct ahc_softc *ahc, char channel, int initiate_reset) in ahc_reset_channel()
6588 ahc_calc_residual(struct ahc_softc *ahc, struct scb *scb) in ahc_calc_residual()
6676 ahc_queue_lstate_event(struct ahc_softc *ahc, struct ahc_tmode_lstate *lstate, in ahc_queue_lstate_event()
6727 ahc_send_lstate_events(struct ahc_softc *ahc, struct ahc_tmode_lstate *lstate) in ahc_send_lstate_events()
6763 ahc_dumpseq(struct ahc_softc* ahc) in ahc_dumpseq()
6783 ahc_loadseq(struct ahc_softc *ahc) in ahc_loadseq()
6892 ahc_check_patch(struct ahc_softc *ahc, const struct patch **start_patch, in ahc_check_patch()
6928 ahc_download_instr(struct ahc_softc *ahc, u_int instrptr, uint8_t *dconsts) in ahc_download_instr()
7100 ahc_dump_card_state(struct ahc_softc *ahc) in ahc_dump_card_state()
7284 ahc_find_tmode_devs(struct ahc_softc *ahc, struct cam_sim *sim, union ccb *ccb, in ahc_find_tmode_devs()
7325 ahc_handle_en_lun(struct ahc_softc *ahc, struct cam_sim *sim, union ccb *ccb) in ahc_handle_en_lun()
7696 ahc_update_scsiid(struct ahc_softc *ahc, u_int targid_mask) in ahc_update_scsiid()
7734 ahc_run_tqinfifo(struct ahc_softc *ahc, int paused) in ahc_run_tqinfifo()
7789 ahc_handle_target_cmd(struct ahc_softc *ahc, struct target_cmd *cmd) in ahc_handle_target_cmd()