• Home
  • Raw
  • Download

Lines Matching refs:ahc_softc

141 static void		ahc_force_renegotiation(struct ahc_softc *ahc,
144 ahc_alloc_tstate(struct ahc_softc *ahc,
147 static void ahc_free_tstate(struct ahc_softc *ahc,
151 ahc_devlimited_syncrate(struct ahc_softc *ahc,
156 static void ahc_update_pending_scbs(struct ahc_softc *ahc);
157 static void ahc_fetch_devinfo(struct ahc_softc *ahc,
159 static void ahc_scb_devinfo(struct ahc_softc *ahc,
162 static void ahc_assert_atn(struct ahc_softc *ahc);
163 static void ahc_setup_initiator_msgout(struct ahc_softc *ahc,
166 static void ahc_build_transfer_msg(struct ahc_softc *ahc,
168 static void ahc_construct_sdtr(struct ahc_softc *ahc,
171 static void ahc_construct_wdtr(struct ahc_softc *ahc,
174 static void ahc_construct_ppr(struct ahc_softc *ahc,
178 static void ahc_clear_msg_state(struct ahc_softc *ahc);
179 static void ahc_handle_proto_violation(struct ahc_softc *ahc);
180 static void ahc_handle_message_phase(struct ahc_softc *ahc);
186 static int ahc_sent_msg(struct ahc_softc *ahc, ahc_msgtype type,
188 static int ahc_parse_msg(struct ahc_softc *ahc,
190 static int ahc_handle_msg_reject(struct ahc_softc *ahc,
192 static void ahc_handle_ign_wide_residue(struct ahc_softc *ahc,
194 static void ahc_reinitialize_dataptrs(struct ahc_softc *ahc);
195 static void ahc_handle_devreset(struct ahc_softc *ahc,
200 static void ahc_setup_target_msgin(struct ahc_softc *ahc,
206 static void ahc_build_free_scb_list(struct ahc_softc *ahc);
207 static int ahc_init_scbdata(struct ahc_softc *ahc);
208 static void ahc_fini_scbdata(struct ahc_softc *ahc);
209 static void ahc_qinfifo_requeue(struct ahc_softc *ahc,
212 static int ahc_qinfifo_count(struct ahc_softc *ahc);
213 static u_int ahc_rem_scb_from_disc_list(struct ahc_softc *ahc,
215 static void ahc_add_curscb_to_free_list(struct ahc_softc *ahc);
216 static u_int ahc_rem_wscb(struct ahc_softc *ahc,
218 static void ahc_reset_current_bus(struct ahc_softc *ahc);
220 static void ahc_dumpseq(struct ahc_softc *ahc);
222 static int ahc_loadseq(struct ahc_softc *ahc);
223 static int ahc_check_patch(struct ahc_softc *ahc,
226 static void ahc_download_instr(struct ahc_softc *ahc,
229 static void ahc_queue_lstate_event(struct ahc_softc *ahc,
234 static void ahc_update_scsiid(struct ahc_softc *ahc,
236 static int ahc_handle_target_cmd(struct ahc_softc *ahc,
240 static u_int ahc_index_busy_tcl(struct ahc_softc *ahc, u_int tcl);
241 static void ahc_unbusy_tcl(struct ahc_softc *ahc, u_int tcl);
242 static void ahc_busy_tcl(struct ahc_softc *ahc,
246 static void ahc_run_untagged_queues(struct ahc_softc *ahc);
247 static void ahc_run_untagged_queue(struct ahc_softc *ahc,
251 static void ahc_alloc_scbs(struct ahc_softc *ahc);
255 static void ahc_clear_intstat(struct ahc_softc *ahc);
256 static void ahc_run_qoutfifo(struct ahc_softc *ahc);
258 static void ahc_run_tqinfifo(struct ahc_softc *ahc, int paused);
260 static void ahc_handle_brkadrint(struct ahc_softc *ahc);
261 static void ahc_handle_seqint(struct ahc_softc *ahc, u_int intstat);
262 static void ahc_handle_scsiint(struct ahc_softc *ahc,
264 static void ahc_clear_critical_section(struct ahc_softc *ahc);
267 static void ahc_freeze_devq(struct ahc_softc *ahc, struct scb *scb);
268 static int ahc_abort_scbs(struct ahc_softc *ahc, int target,
271 static void ahc_calc_residual(struct ahc_softc *ahc,
275 static inline void ahc_freeze_untagged_queues(struct ahc_softc *ahc);
276 static inline void ahc_release_untagged_queues(struct ahc_softc *ahc);
283 ahc_freeze_untagged_queues(struct ahc_softc *ahc) in ahc_freeze_untagged_queues()
296 ahc_release_untagged_queues(struct ahc_softc *ahc) in ahc_release_untagged_queues()
315 ahc_pause_bug_fix(struct ahc_softc *ahc) in ahc_pause_bug_fix()
326 ahc_is_paused(struct ahc_softc *ahc) in ahc_is_paused()
339 ahc_pause(struct ahc_softc *ahc) in ahc_pause()
364 ahc_unpause(struct ahc_softc *ahc) in ahc_unpause()
395 ahc_hscb_busaddr(struct ahc_softc *ahc, u_int index) in ahc_hscb_busaddr()
402 ahc_sync_scb(struct ahc_softc *ahc, struct scb *scb, int op) in ahc_sync_scb()
411 ahc_sync_sglist(struct ahc_softc *ahc, struct scb *scb, int op) in ahc_sync_sglist()
424 ahc_targetcmd_offset(struct ahc_softc *ahc, u_int index) in ahc_targetcmd_offset()
436 ahc_update_residual(struct ahc_softc *ahc, struct scb *scb) in ahc_update_residual()
450 ahc_fetch_transinfo(struct ahc_softc *ahc, char channel, u_int our_id, in ahc_fetch_transinfo()
466 ahc_inw(struct ahc_softc *ahc, u_int port) in ahc_inw()
473 ahc_outw(struct ahc_softc *ahc, u_int port, u_int value) in ahc_outw()
480 ahc_inl(struct ahc_softc *ahc, u_int port) in ahc_inl()
489 ahc_outl(struct ahc_softc *ahc, u_int port, uint32_t value) in ahc_outl()
498 ahc_inq(struct ahc_softc *ahc, u_int port) in ahc_inq()
511 ahc_outq(struct ahc_softc *ahc, u_int port, uint64_t value) in ahc_outq()
527 ahc_get_scb(struct ahc_softc *ahc) in ahc_get_scb()
545 ahc_free_scb(struct ahc_softc *ahc, struct scb *scb) in ahc_free_scb()
562 ahc_lookup_scb(struct ahc_softc *ahc, u_int tag) in ahc_lookup_scb()
574 ahc_swap_with_next_hscb(struct ahc_softc *ahc, struct scb *scb) in ahc_swap_with_next_hscb()
614 ahc_queue_scb(struct ahc_softc *ahc, struct scb *scb) in ahc_queue_scb()
654 ahc_get_sense_buf(struct ahc_softc *ahc, struct scb *scb) in ahc_get_sense_buf()
663 ahc_get_sense_bufaddr(struct ahc_softc *ahc, struct scb *scb) in ahc_get_sense_bufaddr()
674 ahc_sync_qoutfifo(struct ahc_softc *ahc, int op) in ahc_sync_qoutfifo()
681 ahc_sync_tqinfifo(struct ahc_softc *ahc, int op) in ahc_sync_tqinfifo()
701 ahc_check_cmdcmpltqueues(struct ahc_softc *ahc) in ahc_check_cmdcmpltqueues()
730 ahc_intr(struct ahc_softc *ahc) in ahc_intr()
815 ahc_restart(struct ahc_softc *ahc) in ahc_restart()
883 ahc_run_qoutfifo(struct ahc_softc *ahc) in ahc_run_qoutfifo()
930 ahc_run_untagged_queues(struct ahc_softc *ahc) in ahc_run_untagged_queues()
939 ahc_run_untagged_queue(struct ahc_softc *ahc, struct scb_tailq *queue) in ahc_run_untagged_queue()
955 ahc_handle_brkadrint(struct ahc_softc *ahc) in ahc_handle_brkadrint()
984 ahc_handle_seqint(struct ahc_softc *ahc, u_int intstat) in ahc_handle_seqint()
1535 ahc_handle_scsiint(struct ahc_softc *ahc, u_int intstat) in ahc_handle_scsiint()
1972 ahc_force_renegotiation(struct ahc_softc *ahc, struct ahc_devinfo *devinfo) in ahc_force_renegotiation()
1988 ahc_clear_critical_section(struct ahc_softc *ahc) in ahc_clear_critical_section()
2081 ahc_clear_intstat(struct ahc_softc *ahc) in ahc_clear_intstat()
2140 ahc_alloc_tstate(struct ahc_softc *ahc, u_int scsi_id, char channel) in ahc_alloc_tstate()
2187 ahc_free_tstate(struct ahc_softc *ahc, u_int scsi_id, char channel, int force) in ahc_free_tstate()
2216 ahc_devlimited_syncrate(struct ahc_softc *ahc, in ahc_devlimited_syncrate()
2271 ahc_find_syncrate(struct ahc_softc *ahc, u_int *period, in ahc_find_syncrate()
2347 ahc_find_period(struct ahc_softc *ahc, u_int scsirate, u_int maxsync) in ahc_find_period()
2388 ahc_validate_offset(struct ahc_softc *ahc, in ahc_validate_offset()
2420 ahc_validate_width(struct ahc_softc *ahc, struct ahc_initiator_tinfo *tinfo, in ahc_validate_width()
2450 ahc_update_neg_request(struct ahc_softc *ahc, struct ahc_devinfo *devinfo, in ahc_update_neg_request()
2493 ahc_set_syncrate(struct ahc_softc *ahc, struct ahc_devinfo *devinfo, in ahc_set_syncrate()
2620 ahc_set_width(struct ahc_softc *ahc, struct ahc_devinfo *devinfo, in ahc_set_width()
2676 ahc_set_tags(struct ahc_softc *ahc, struct scsi_cmnd *cmd, in ahc_set_tags()
2692 ahc_update_pending_scbs(struct ahc_softc *ahc) in ahc_update_pending_scbs()
2770 ahc_fetch_devinfo(struct ahc_softc *ahc, struct ahc_devinfo *devinfo) in ahc_fetch_devinfo()
2835 ahc_print_devinfo(struct ahc_softc *ahc, struct ahc_devinfo *devinfo) in ahc_print_devinfo()
2842 ahc_scb_devinfo(struct ahc_softc *ahc, struct ahc_devinfo *devinfo, in ahc_scb_devinfo()
2859 ahc_assert_atn(struct ahc_softc *ahc) in ahc_assert_atn()
2876 ahc_setup_initiator_msgout(struct ahc_softc *ahc, struct ahc_devinfo *devinfo, in ahc_setup_initiator_msgout()
2962 ahc_build_transfer_msg(struct ahc_softc *ahc, struct ahc_devinfo *devinfo) in ahc_build_transfer_msg()
3060 ahc_construct_sdtr(struct ahc_softc *ahc, struct ahc_devinfo *devinfo, in ahc_construct_sdtr()
3080 ahc_construct_wdtr(struct ahc_softc *ahc, struct ahc_devinfo *devinfo, in ahc_construct_wdtr()
3098 ahc_construct_ppr(struct ahc_softc *ahc, struct ahc_devinfo *devinfo, in ahc_construct_ppr()
3120 ahc_clear_msg_state(struct ahc_softc *ahc) in ahc_clear_msg_state()
3138 ahc_handle_proto_violation(struct ahc_softc *ahc) in ahc_handle_proto_violation()
3235 ahc_handle_message_phase(struct ahc_softc *ahc) in ahc_handle_message_phase()
3537 ahc_sent_msg(struct ahc_softc *ahc, ahc_msgtype type, u_int msgval, int full) in ahc_sent_msg()
3584 ahc_parse_msg(struct ahc_softc *ahc, struct ahc_devinfo *devinfo) in ahc_parse_msg()
4006 ahc_handle_msg_reject(struct ahc_softc *ahc, struct ahc_devinfo *devinfo) in ahc_handle_msg_reject()
4157 ahc_handle_ign_wide_residue(struct ahc_softc *ahc, struct ahc_devinfo *devinfo) in ahc_handle_ign_wide_residue()
4266 ahc_reinitialize_dataptrs(struct ahc_softc *ahc) in ahc_reinitialize_dataptrs()
4322 ahc_handle_devreset(struct ahc_softc *ahc, struct ahc_devinfo *devinfo, in ahc_handle_devreset()
4377 ahc_setup_target_msgin(struct ahc_softc *ahc, struct ahc_devinfo *devinfo, in ahc_setup_target_msgin()
4403 struct ahc_softc *
4406 struct ahc_softc *ahc; in ahc_alloc()
4456 ahc_softc_init(struct ahc_softc *ahc) in ahc_softc_init()
4477 ahc_set_unit(struct ahc_softc *ahc, int unit) in ahc_set_unit()
4483 ahc_set_name(struct ahc_softc *ahc, char *name) in ahc_set_name()
4491 ahc_free(struct ahc_softc *ahc) in ahc_free()
4566 struct ahc_softc *ahc; in ahc_shutdown()
4569 ahc = (struct ahc_softc *)arg; in ahc_shutdown()
4591 ahc_reset(struct ahc_softc *ahc, int reinit) in ahc_reset()
4697 ahc_probe_scbs(struct ahc_softc *ahc) { in ahc_probe_scbs()
4723 ahc_build_free_scb_list(struct ahc_softc *ahc) in ahc_build_free_scb_list()
4774 ahc_init_scbdata(struct ahc_softc *ahc) in ahc_init_scbdata()
4912 ahc_fini_scbdata(struct ahc_softc *ahc) in ahc_fini_scbdata()
4966 ahc_alloc_scbs(struct ahc_softc *ahc) in ahc_alloc_scbs()
5023 next_scb->ahc_softc = ahc; in ahc_alloc_scbs()
5043 ahc_controller_info(struct ahc_softc *ahc, char *buf) in ahc_controller_info()
5084 ahc_chip_init(struct ahc_softc *ahc) in ahc_chip_init()
5271 ahc_init(struct ahc_softc *ahc) in ahc_init()
5592 ahc_intr_enable(struct ahc_softc *ahc, int enable) in ahc_intr_enable()
5616 ahc_pause_and_flushwork(struct ahc_softc *ahc) in ahc_pause_and_flushwork()
5657 ahc_suspend(struct ahc_softc *ahc) in ahc_suspend()
5683 ahc_resume(struct ahc_softc *ahc) in ahc_resume()
5698 ahc_index_busy_tcl(struct ahc_softc *ahc, u_int tcl) in ahc_index_busy_tcl()
5719 ahc_unbusy_tcl(struct ahc_softc *ahc, u_int tcl) in ahc_unbusy_tcl()
5737 ahc_busy_tcl(struct ahc_softc *ahc, u_int tcl, u_int scbid) in ahc_busy_tcl()
5756 ahc_match_scb(struct ahc_softc *ahc, struct scb *scb, int target, in ahc_match_scb()
5792 ahc_freeze_devq(struct ahc_softc *ahc, struct scb *scb) in ahc_freeze_devq()
5810 ahc_qinfifo_requeue_tail(struct ahc_softc *ahc, struct scb *scb) in ahc_qinfifo_requeue_tail()
5832 ahc_qinfifo_requeue(struct ahc_softc *ahc, struct scb *prev_scb, in ahc_qinfifo_requeue()
5848 ahc_qinfifo_count(struct ahc_softc *ahc) in ahc_qinfifo_count()
5863 ahc_search_qinfifo(struct ahc_softc *ahc, int target, char channel, in ahc_search_qinfifo()
6072 ahc_search_untagged_queues(struct ahc_softc *ahc, ahc_io_ctx_t ctx, in ahc_search_untagged_queues()
6170 ahc_search_disc_list(struct ahc_softc *ahc, int target, char channel, in ahc_search_disc_list()
6237 ahc_rem_scb_from_disc_list(struct ahc_softc *ahc, u_int prev, u_int scbptr) in ahc_rem_scb_from_disc_list()
6263 ahc_add_curscb_to_free_list(struct ahc_softc *ahc) in ahc_add_curscb_to_free_list()
6282 ahc_rem_wscb(struct ahc_softc *ahc, u_int scbpos, u_int prev) in ahc_rem_wscb()
6333 ahc_abort_scbs(struct ahc_softc *ahc, int target, char channel, in ahc_abort_scbs()
6465 ahc_reset_current_bus(struct ahc_softc *ahc) in ahc_reset_current_bus()
6484 ahc_reset_channel(struct ahc_softc *ahc, char channel, int initiate_reset) in ahc_reset_channel()
6655 ahc_calc_residual(struct ahc_softc *ahc, struct scb *scb) in ahc_calc_residual()
6743 ahc_queue_lstate_event(struct ahc_softc *ahc, struct ahc_tmode_lstate *lstate, in ahc_queue_lstate_event()
6794 ahc_send_lstate_events(struct ahc_softc *ahc, struct ahc_tmode_lstate *lstate) in ahc_send_lstate_events()
6830 ahc_dumpseq(struct ahc_softc* ahc) in ahc_dumpseq()
6850 ahc_loadseq(struct ahc_softc *ahc) in ahc_loadseq()
6960 ahc_check_patch(struct ahc_softc *ahc, const struct patch **start_patch, in ahc_check_patch()
6996 ahc_download_instr(struct ahc_softc *ahc, u_int instrptr, uint8_t *dconsts) in ahc_download_instr()
7169 ahc_dump_card_state(struct ahc_softc *ahc) in ahc_dump_card_state()
7354 ahc_find_tmode_devs(struct ahc_softc *ahc, struct cam_sim *sim, union ccb *ccb, in ahc_find_tmode_devs()
7395 ahc_handle_en_lun(struct ahc_softc *ahc, struct cam_sim *sim, union ccb *ccb) in ahc_handle_en_lun()
7768 ahc_update_scsiid(struct ahc_softc *ahc, u_int targid_mask) in ahc_update_scsiid()
7806 ahc_run_tqinfifo(struct ahc_softc *ahc, int paused) in ahc_run_tqinfifo()
7861 ahc_handle_target_cmd(struct ahc_softc *ahc, struct target_cmd *cmd) in ahc_handle_target_cmd()