Lines Matching refs:ahc_softc
147 static void ahc_force_renegotiation(struct ahc_softc *ahc,
150 ahc_alloc_tstate(struct ahc_softc *ahc,
153 static void ahc_free_tstate(struct ahc_softc *ahc,
157 ahc_devlimited_syncrate(struct ahc_softc *ahc,
162 static void ahc_update_pending_scbs(struct ahc_softc *ahc);
163 static void ahc_fetch_devinfo(struct ahc_softc *ahc,
165 static void ahc_scb_devinfo(struct ahc_softc *ahc,
168 static void ahc_assert_atn(struct ahc_softc *ahc);
169 static void ahc_setup_initiator_msgout(struct ahc_softc *ahc,
172 static void ahc_build_transfer_msg(struct ahc_softc *ahc,
174 static void ahc_construct_sdtr(struct ahc_softc *ahc,
177 static void ahc_construct_wdtr(struct ahc_softc *ahc,
180 static void ahc_construct_ppr(struct ahc_softc *ahc,
184 static void ahc_clear_msg_state(struct ahc_softc *ahc);
185 static void ahc_handle_proto_violation(struct ahc_softc *ahc);
186 static void ahc_handle_message_phase(struct ahc_softc *ahc);
192 static int ahc_sent_msg(struct ahc_softc *ahc, ahc_msgtype type,
194 static int ahc_parse_msg(struct ahc_softc *ahc,
196 static int ahc_handle_msg_reject(struct ahc_softc *ahc,
198 static void ahc_handle_ign_wide_residue(struct ahc_softc *ahc,
200 static void ahc_reinitialize_dataptrs(struct ahc_softc *ahc);
201 static void ahc_handle_devreset(struct ahc_softc *ahc,
206 static void ahc_setup_target_msgin(struct ahc_softc *ahc,
212 static void ahc_build_free_scb_list(struct ahc_softc *ahc);
213 static int ahc_init_scbdata(struct ahc_softc *ahc);
214 static void ahc_fini_scbdata(struct ahc_softc *ahc);
215 static void ahc_qinfifo_requeue(struct ahc_softc *ahc,
218 static int ahc_qinfifo_count(struct ahc_softc *ahc);
219 static u_int ahc_rem_scb_from_disc_list(struct ahc_softc *ahc,
221 static void ahc_add_curscb_to_free_list(struct ahc_softc *ahc);
222 static u_int ahc_rem_wscb(struct ahc_softc *ahc,
224 static void ahc_reset_current_bus(struct ahc_softc *ahc);
226 static void ahc_dumpseq(struct ahc_softc *ahc);
228 static int ahc_loadseq(struct ahc_softc *ahc);
229 static int ahc_check_patch(struct ahc_softc *ahc,
232 static void ahc_download_instr(struct ahc_softc *ahc,
235 static void ahc_queue_lstate_event(struct ahc_softc *ahc,
240 static void ahc_update_scsiid(struct ahc_softc *ahc,
242 static int ahc_handle_target_cmd(struct ahc_softc *ahc,
250 ahc_restart(struct ahc_softc *ahc) in ahc_restart()
302 ahc_run_qoutfifo(struct ahc_softc *ahc) in ahc_run_qoutfifo()
349 ahc_run_untagged_queues(struct ahc_softc *ahc) in ahc_run_untagged_queues()
358 ahc_run_untagged_queue(struct ahc_softc *ahc, struct scb_tailq *queue) in ahc_run_untagged_queue()
374 ahc_handle_brkadrint(struct ahc_softc *ahc) in ahc_handle_brkadrint()
403 ahc_handle_seqint(struct ahc_softc *ahc, u_int intstat) in ahc_handle_seqint()
953 ahc_handle_scsiint(struct ahc_softc *ahc, u_int intstat) in ahc_handle_scsiint()
1389 ahc_force_renegotiation(struct ahc_softc *ahc, struct ahc_devinfo *devinfo) in ahc_force_renegotiation()
1405 ahc_clear_critical_section(struct ahc_softc *ahc) in ahc_clear_critical_section()
1498 ahc_clear_intstat(struct ahc_softc *ahc) in ahc_clear_intstat()
1555 ahc_alloc_tstate(struct ahc_softc *ahc, u_int scsi_id, char channel) in ahc_alloc_tstate()
1603 ahc_free_tstate(struct ahc_softc *ahc, u_int scsi_id, char channel, int force) in ahc_free_tstate()
1632 ahc_devlimited_syncrate(struct ahc_softc *ahc, in ahc_devlimited_syncrate()
1687 ahc_find_syncrate(struct ahc_softc *ahc, u_int *period, in ahc_find_syncrate()
1754 ahc_find_period(struct ahc_softc *ahc, u_int scsirate, u_int maxsync) in ahc_find_period()
1784 ahc_validate_offset(struct ahc_softc *ahc, in ahc_validate_offset()
1816 ahc_validate_width(struct ahc_softc *ahc, struct ahc_initiator_tinfo *tinfo, in ahc_validate_width()
1846 ahc_update_neg_request(struct ahc_softc *ahc, struct ahc_devinfo *devinfo, in ahc_update_neg_request()
1889 ahc_set_syncrate(struct ahc_softc *ahc, struct ahc_devinfo *devinfo, in ahc_set_syncrate()
2016 ahc_set_width(struct ahc_softc *ahc, struct ahc_devinfo *devinfo, in ahc_set_width()
2072 ahc_set_tags(struct ahc_softc *ahc, struct ahc_devinfo *devinfo, in ahc_set_tags()
2086 ahc_update_pending_scbs(struct ahc_softc *ahc) in ahc_update_pending_scbs()
2164 ahc_fetch_devinfo(struct ahc_softc *ahc, struct ahc_devinfo *devinfo) in ahc_fetch_devinfo()
2229 ahc_print_devinfo(struct ahc_softc *ahc, struct ahc_devinfo *devinfo) in ahc_print_devinfo()
2236 ahc_scb_devinfo(struct ahc_softc *ahc, struct ahc_devinfo *devinfo, in ahc_scb_devinfo()
2253 ahc_assert_atn(struct ahc_softc *ahc) in ahc_assert_atn()
2270 ahc_setup_initiator_msgout(struct ahc_softc *ahc, struct ahc_devinfo *devinfo, in ahc_setup_initiator_msgout()
2356 ahc_build_transfer_msg(struct ahc_softc *ahc, struct ahc_devinfo *devinfo) in ahc_build_transfer_msg()
2454 ahc_construct_sdtr(struct ahc_softc *ahc, struct ahc_devinfo *devinfo, in ahc_construct_sdtr()
2477 ahc_construct_wdtr(struct ahc_softc *ahc, struct ahc_devinfo *devinfo, in ahc_construct_wdtr()
2497 ahc_construct_ppr(struct ahc_softc *ahc, struct ahc_devinfo *devinfo, in ahc_construct_ppr()
2524 ahc_clear_msg_state(struct ahc_softc *ahc) in ahc_clear_msg_state()
2542 ahc_handle_proto_violation(struct ahc_softc *ahc) in ahc_handle_proto_violation()
2639 ahc_handle_message_phase(struct ahc_softc *ahc) in ahc_handle_message_phase()
2941 ahc_sent_msg(struct ahc_softc *ahc, ahc_msgtype type, u_int msgval, int full) in ahc_sent_msg()
2988 ahc_parse_msg(struct ahc_softc *ahc, struct ahc_devinfo *devinfo) in ahc_parse_msg()
3410 ahc_handle_msg_reject(struct ahc_softc *ahc, struct ahc_devinfo *devinfo) in ahc_handle_msg_reject()
3561 ahc_handle_ign_wide_residue(struct ahc_softc *ahc, struct ahc_devinfo *devinfo) in ahc_handle_ign_wide_residue()
3670 ahc_reinitialize_dataptrs(struct ahc_softc *ahc) in ahc_reinitialize_dataptrs()
3726 ahc_handle_devreset(struct ahc_softc *ahc, struct ahc_devinfo *devinfo, in ahc_handle_devreset()
3780 ahc_setup_target_msgin(struct ahc_softc *ahc, struct ahc_devinfo *devinfo, in ahc_setup_target_msgin()
3806 struct ahc_softc *
3809 struct ahc_softc *ahc; in ahc_alloc()
3860 ahc_softc_init(struct ahc_softc *ahc) in ahc_softc_init()
3882 ahc_softc_insert(struct ahc_softc *ahc) in ahc_softc_insert()
3884 struct ahc_softc *list_ahc; in ahc_softc_insert()
3901 struct ahc_softc *master; in ahc_softc_insert()
3902 struct ahc_softc *slave; in ahc_softc_insert()
3941 struct ahc_softc *
3942 ahc_find_softc(struct ahc_softc *ahc) in ahc_find_softc()
3944 struct ahc_softc *list_ahc; in ahc_find_softc()
3954 ahc_set_unit(struct ahc_softc *ahc, int unit) in ahc_set_unit()
3960 ahc_set_name(struct ahc_softc *ahc, char *name) in ahc_set_name()
3968 ahc_free(struct ahc_softc *ahc) in ahc_free()
4044 struct ahc_softc *ahc; in ahc_shutdown()
4047 ahc = (struct ahc_softc *)arg; in ahc_shutdown()
4069 ahc_reset(struct ahc_softc *ahc, int reinit) in ahc_reset()
4183 ahc_probe_scbs(struct ahc_softc *ahc) { in ahc_probe_scbs()
4209 ahc_build_free_scb_list(struct ahc_softc *ahc) in ahc_build_free_scb_list()
4260 ahc_init_scbdata(struct ahc_softc *ahc) in ahc_init_scbdata()
4400 ahc_fini_scbdata(struct ahc_softc *ahc) in ahc_fini_scbdata()
4454 ahc_alloc_scbs(struct ahc_softc *ahc) in ahc_alloc_scbs()
4512 next_scb->ahc_softc = ahc; in ahc_alloc_scbs()
4532 ahc_controller_info(struct ahc_softc *ahc, char *buf) in ahc_controller_info()
4573 ahc_chip_init(struct ahc_softc *ahc) in ahc_chip_init()
4760 ahc_init(struct ahc_softc *ahc) in ahc_init()
5081 ahc_intr_enable(struct ahc_softc *ahc, int enable) in ahc_intr_enable()
5105 ahc_pause_and_flushwork(struct ahc_softc *ahc) in ahc_pause_and_flushwork()
5136 ahc_suspend(struct ahc_softc *ahc) in ahc_suspend()
5162 ahc_resume(struct ahc_softc *ahc) in ahc_resume()
5177 ahc_index_busy_tcl(struct ahc_softc *ahc, u_int tcl) in ahc_index_busy_tcl()
5198 ahc_unbusy_tcl(struct ahc_softc *ahc, u_int tcl) in ahc_unbusy_tcl()
5216 ahc_busy_tcl(struct ahc_softc *ahc, u_int tcl, u_int scbid) in ahc_busy_tcl()
5235 ahc_match_scb(struct ahc_softc *ahc, struct scb *scb, int target, in ahc_match_scb()
5271 ahc_freeze_devq(struct ahc_softc *ahc, struct scb *scb) in ahc_freeze_devq()
5289 ahc_qinfifo_requeue_tail(struct ahc_softc *ahc, struct scb *scb) in ahc_qinfifo_requeue_tail()
5311 ahc_qinfifo_requeue(struct ahc_softc *ahc, struct scb *prev_scb, in ahc_qinfifo_requeue()
5327 ahc_qinfifo_count(struct ahc_softc *ahc) in ahc_qinfifo_count()
5342 ahc_search_qinfifo(struct ahc_softc *ahc, int target, char channel, in ahc_search_qinfifo()
5551 ahc_search_untagged_queues(struct ahc_softc *ahc, ahc_io_ctx_t ctx, in ahc_search_untagged_queues()
5649 ahc_search_disc_list(struct ahc_softc *ahc, int target, char channel, in ahc_search_disc_list()
5716 ahc_rem_scb_from_disc_list(struct ahc_softc *ahc, u_int prev, u_int scbptr) in ahc_rem_scb_from_disc_list()
5742 ahc_add_curscb_to_free_list(struct ahc_softc *ahc) in ahc_add_curscb_to_free_list()
5761 ahc_rem_wscb(struct ahc_softc *ahc, u_int scbpos, u_int prev) in ahc_rem_wscb()
5812 ahc_abort_scbs(struct ahc_softc *ahc, int target, char channel, in ahc_abort_scbs()
5944 ahc_reset_current_bus(struct ahc_softc *ahc) in ahc_reset_current_bus()
5963 ahc_reset_channel(struct ahc_softc *ahc, char channel, int initiate_reset) in ahc_reset_channel()
6134 ahc_calc_residual(struct ahc_softc *ahc, struct scb *scb) in ahc_calc_residual()
6222 ahc_queue_lstate_event(struct ahc_softc *ahc, struct ahc_tmode_lstate *lstate, in ahc_queue_lstate_event()
6273 ahc_send_lstate_events(struct ahc_softc *ahc, struct ahc_tmode_lstate *lstate) in ahc_send_lstate_events()
6309 ahc_dumpseq(struct ahc_softc* ahc) in ahc_dumpseq()
6329 ahc_loadseq(struct ahc_softc *ahc) in ahc_loadseq()
6439 ahc_check_patch(struct ahc_softc *ahc, struct patch **start_patch, in ahc_check_patch()
6475 ahc_download_instr(struct ahc_softc *ahc, u_int instrptr, uint8_t *dconsts) in ahc_download_instr()
6648 ahc_dump_card_state(struct ahc_softc *ahc) in ahc_dump_card_state()
6833 ahc_find_tmode_devs(struct ahc_softc *ahc, struct cam_sim *sim, union ccb *ccb, in ahc_find_tmode_devs()
6874 ahc_handle_en_lun(struct ahc_softc *ahc, struct cam_sim *sim, union ccb *ccb) in ahc_handle_en_lun()
7247 ahc_update_scsiid(struct ahc_softc *ahc, u_int targid_mask) in ahc_update_scsiid()
7285 ahc_run_tqinfifo(struct ahc_softc *ahc, int paused) in ahc_run_tqinfifo()
7340 ahc_handle_target_cmd(struct ahc_softc *ahc, struct target_cmd *cmd) in ahc_handle_target_cmd()