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