Lines Matching refs:u_int

83 static const u_int num_errors = ARRAY_SIZE(ahc_hard_errors);
103 static const u_int num_phases = ARRAY_SIZE(ahc_phase_table) - 1;
138 u_int scsi_id, char channel);
141 u_int scsi_id, char channel, int force);
146 u_int *period,
147 u_int *ppr_options,
163 u_int period, u_int offset);
166 u_int bus_width);
169 u_int period, u_int offset,
170 u_int bus_width, u_int ppr_options);
180 u_int msgval, int full);
206 static u_int ahc_rem_scb_from_disc_list(struct ahc_softc *ahc,
207 u_int prev, u_int scbptr);
209 static u_int ahc_rem_wscb(struct ahc_softc *ahc,
210 u_int scbpos, u_int prev);
218 u_int start_instr, u_int *skip_addr);
220 u_int instrptr, uint8_t *dconsts);
224 u_int initiator_id,
225 u_int event_type,
226 u_int event_arg);
228 u_int targid_mask);
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);
236 u_int tcl, u_int busyid);
254 static void ahc_handle_seqint(struct ahc_softc *ahc, u_int intstat);
256 u_int intstat);
262 char channel, int lun, u_int tag,
388 ahc_hscb_busaddr(struct ahc_softc *ahc, u_int index) in ahc_hscb_busaddr()
417 ahc_targetcmd_offset(struct ahc_softc *ahc, u_int index) in ahc_targetcmd_offset()
443 ahc_fetch_transinfo(struct ahc_softc *ahc, char channel, u_int our_id, in ahc_fetch_transinfo()
444 u_int remote_id, struct ahc_tmode_tstate **tstate) 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()
555 ahc_lookup_scb(struct ahc_softc *ahc, u_int tag) in ahc_lookup_scb()
570 u_int saved_tag; in ahc_swap_with_next_hscb()
693 static u_int
696 u_int retval; in ahc_check_cmdcmpltqueues()
725 u_int intstat; in ahc_intr()
879 u_int scb_index; in ahc_run_qoutfifo()
886 u_int modnext; in ahc_run_qoutfifo()
977 ahc_handle_seqint(struct ahc_softc *ahc, u_int intstat) in ahc_handle_seqint()
994 u_int scb_index; in ahc_handle_seqint()
1192 u_int rejbyte = ahc_inb(ahc, ACCUM); in ahc_handle_seqint()
1211 u_int lastphase; in ahc_handle_seqint()
1222 u_int lastphase; in ahc_handle_seqint()
1247 u_int scb_index; in ahc_handle_seqint()
1248 u_int bus_phase; in ahc_handle_seqint()
1317 u_int curphase; in ahc_handle_seqint()
1351 u_int scb_index; in ahc_handle_seqint()
1380 u_int scbindex = ahc_inb(ahc, SCB_TAG); in ahc_handle_seqint()
1381 u_int lastphase = ahc_inb(ahc, LASTPHASE); in ahc_handle_seqint()
1382 u_int i; in ahc_handle_seqint()
1434 u_int dscommand1; in ahc_handle_seqint()
1446 u_int scbindex; in ahc_handle_seqint()
1475 u_int scbptr; in ahc_handle_seqint()
1527 ahc_handle_scsiint(struct ahc_softc *ahc, u_int intstat) in ahc_handle_scsiint()
1529 u_int scb_index; in ahc_handle_scsiint()
1530 u_int status0; in ahc_handle_scsiint()
1531 u_int status; in ahc_handle_scsiint()
1611 u_int mesg_out; in ahc_handle_scsiint()
1612 u_int curphase; in ahc_handle_scsiint()
1613 u_int errorphase; in ahc_handle_scsiint()
1614 u_int lastphase; in ahc_handle_scsiint()
1615 u_int scsirate; in ahc_handle_scsiint()
1616 u_int i; in ahc_handle_scsiint()
1617 u_int sstat2; in ahc_handle_scsiint()
1713 u_int scbptr; in ahc_handle_scsiint()
1774 u_int lastphase; in ahc_handle_scsiint()
1775 u_int saved_scsiid; in ahc_handle_scsiint()
1776 u_int saved_lun; in ahc_handle_scsiint()
1777 u_int target; in ahc_handle_scsiint()
1778 u_int initiator_role_id; in ahc_handle_scsiint()
1817 u_int tag; in ahc_handle_scsiint()
1895 u_int i; in ahc_handle_scsiint()
1898 u_int tag; in ahc_handle_scsiint()
1969 u_int simode0; in ahc_clear_critical_section()
1970 u_int simode1; in ahc_clear_critical_section()
1981 u_int seqaddr; in ahc_clear_critical_section()
1982 u_int i; in ahc_clear_critical_section()
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()
2193 u_int *period, u_int *ppr_options, role_t role) in ahc_devlimited_syncrate()
2196 u_int maxsync; in ahc_devlimited_syncrate()
2228 maxsync = max(maxsync, (u_int)AHC_SYNCRATE_ULTRA2); in ahc_devlimited_syncrate()
2236 *period = max(*period, (u_int)transinfo->period); in ahc_devlimited_syncrate()
2246 ahc_find_syncrate(struct ahc_softc *ahc, u_int *period, in ahc_find_syncrate()
2247 u_int *ppr_options, u_int maxsync) in ahc_find_syncrate()
2321 u_int
2322 ahc_find_period(struct ahc_softc *ahc, u_int scsirate, u_int maxsync) in ahc_find_period()
2366 u_int *offset, int wide, role_t role) in ahc_validate_offset()
2368 u_int maxoffset; in ahc_validate_offset()
2384 *offset = min(*offset, (u_int)tinfo->user.offset); in ahc_validate_offset()
2386 *offset = min(*offset, (u_int)tinfo->goal.offset); in ahc_validate_offset()
2396 u_int *bus_width, role_t role) in ahc_validate_width()
2412 *bus_width = min((u_int)tinfo->user.width, *bus_width); in ahc_validate_width()
2414 *bus_width = min((u_int)tinfo->goal.width, *bus_width); in ahc_validate_width()
2429 u_int auto_negotiate_orig; in ahc_update_neg_request()
2469 const struct ahc_syncrate *syncrate, u_int period, in ahc_set_syncrate()
2470 u_int offset, u_int ppr_options, u_int type, int paused) in ahc_set_syncrate()
2474 u_int old_period; in ahc_set_syncrate()
2475 u_int old_offset; in ahc_set_syncrate()
2476 u_int old_ppr; in ahc_set_syncrate()
2511 u_int scsirate; in ahc_set_syncrate()
2542 u_int sxfrctl0; in ahc_set_syncrate()
2596 u_int width, u_int type, int paused) in ahc_set_width()
2600 u_int oldwidth; in ahc_set_width()
2617 u_int scsirate; in ahc_set_width()
2673 u_int saved_scbptr; in ahc_update_pending_scbs()
2720 u_int control; in ahc_update_pending_scbs()
2721 u_int scb_tag; in ahc_update_pending_scbs()
2747 u_int saved_scsiid; in ahc_fetch_devinfo()
2795 ahc_compile_devinfo(struct ahc_devinfo *devinfo, u_int our_id, u_int target, in ahc_compile_devinfo()
2796 u_int lun, char channel, role_t role) in ahc_compile_devinfo()
2836 u_int scsisigo; in ahc_assert_atn()
2864 u_int identify_msg; in ahc_setup_initiator_msgout()
2950 u_int period; in ahc_build_transfer_msg()
2951 u_int ppr_options; in ahc_build_transfer_msg()
2952 u_int offset; in ahc_build_transfer_msg()
3036 u_int period, u_int offset) in ahc_construct_sdtr()
3056 u_int bus_width) in ahc_construct_wdtr()
3074 u_int period, u_int offset, u_int bus_width, in ahc_construct_ppr()
3075 u_int ppr_options) in ahc_construct_ppr()
3117 u_int scbid; in ahc_handle_proto_violation()
3118 u_int seq_flags; in ahc_handle_proto_violation()
3119 u_int curphase; in ahc_handle_proto_violation()
3120 u_int lastphase; in ahc_handle_proto_violation()
3213 u_int bus_phase; 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()
3515 u_int index; in ahc_sent_msg()
3522 u_int end_index; in ahc_sent_msg()
3566 u_int targ_scsirate; in ahc_parse_msg()
3613 u_int period; in ahc_parse_msg()
3614 u_int ppr_options; in ahc_parse_msg()
3615 u_int offset; in ahc_parse_msg()
3616 u_int saved_offset; in ahc_parse_msg()
3691 u_int bus_width; in ahc_parse_msg()
3692 u_int saved_width; in ahc_parse_msg()
3693 u_int sending_reply; in ahc_parse_msg()
3788 u_int period; in ahc_parse_msg()
3789 u_int offset; in ahc_parse_msg()
3790 u_int bus_width; in ahc_parse_msg()
3791 u_int ppr_options; in ahc_parse_msg()
3792 u_int saved_width; in ahc_parse_msg()
3793 u_int saved_offset; in ahc_parse_msg()
3794 u_int saved_ppr_options; in ahc_parse_msg()
3992 u_int scb_index; in ahc_handle_msg_reject()
3993 u_int last_msg; in ahc_handle_msg_reject()
4134 u_int scb_index; in ahc_handle_ign_wide_residue()
4245 u_int scb_index; in ahc_reinitialize_dataptrs()
4271 u_int dscommand1; in ahc_reinitialize_dataptrs()
4302 u_int lun; in ahc_handle_devreset()
4551 u_int sblkctl; in ahc_reset()
4552 u_int sxfrctl1_a, sxfrctl1_b; in ahc_reset()
4564 u_int sblkctl; in ahc_reset()
4627 u_int sblkctl; in ahc_reset()
5043 u_int i; in ahc_chip_init()
5044 u_int scsi_conf; in ahc_chip_init()
5045 u_int scsiseq_template; in ahc_chip_init()
5229 u_int i; in ahc_init()
5230 u_int scsi_conf; in ahc_init()
5231 u_int ultraenb; in ahc_init()
5232 u_int discenable; in ahc_init()
5233 u_int tagenable; in ahc_init()
5377 (u_int)sizeof(struct hardware_scb), in ahc_init()
5378 (u_int)sizeof(struct scb), in ahc_init()
5379 (u_int)sizeof(struct ahc_dma_seg)); in ahc_init()
5425 u_int our_id; in ahc_init()
5426 u_int target_id; in ahc_init()
5452 u_int scsirate; in ahc_init()
5459 u_int offset; in ahc_init()
5460 u_int maxsync; in ahc_init()
5531 u_int hcntrl; in ahc_intr_enable()
5632 static u_int
5633 ahc_index_busy_tcl(struct ahc_softc *ahc, u_int tcl) in ahc_index_busy_tcl()
5635 u_int scbid; in ahc_index_busy_tcl()
5636 u_int target_offset; in ahc_index_busy_tcl()
5639 u_int saved_scbptr; in ahc_index_busy_tcl()
5654 ahc_unbusy_tcl(struct ahc_softc *ahc, u_int tcl) in ahc_unbusy_tcl()
5656 u_int target_offset; in ahc_unbusy_tcl()
5659 u_int saved_scbptr; in ahc_unbusy_tcl()
5672 ahc_busy_tcl(struct ahc_softc *ahc, u_int tcl, u_int scbid) in ahc_busy_tcl()
5674 u_int target_offset; in ahc_busy_tcl()
5677 u_int saved_scbptr; in ahc_busy_tcl()
5692 char channel, int lun, u_int tag, role_t role) in ahc_match_scb()
5751 u_int prev_tag; in ahc_qinfifo_requeue_tail()
5799 int lun, u_int tag, role_t role, uint32_t status, in ahc_search_qinfifo()
6104 int lun, u_int tag, int stop_on_first, int remove, in ahc_search_disc_list()
6108 u_int next; in ahc_search_disc_list()
6109 u_int prev; in ahc_search_disc_list()
6110 u_int count; in ahc_search_disc_list()
6111 u_int active_scb; in ahc_search_disc_list()
6125 u_int scb_index; in ahc_search_disc_list()
6169 static u_int
6170 ahc_rem_scb_from_disc_list(struct ahc_softc *ahc, u_int prev, u_int scbptr) in ahc_rem_scb_from_disc_list()
6172 u_int next; in ahc_rem_scb_from_disc_list()
6214 static u_int
6215 ahc_rem_wscb(struct ahc_softc *ahc, u_int scbpos, u_int prev) in ahc_rem_wscb()
6217 u_int curscb, next; in ahc_rem_wscb()
6267 int lun, u_int tag, role_t role, uint32_t status) in ahc_abort_scbs()
6271 u_int active_scb; in ahc_abort_scbs()
6323 u_int scbid; in ahc_abort_scbs()
6324 u_int tcl; in ahc_abort_scbs()
6356 u_int scbid; in ahc_abort_scbs()
6420 u_int initiator, target, max_scsiid; in ahc_reset_channel()
6421 u_int sblkctl; in ahc_reset_channel()
6422 u_int scsiseq; in ahc_reset_channel()
6423 u_int simode1; in ahc_reset_channel()
6531 u_int lun; in ahc_reset_channel()
6677 u_int initiator_id, u_int event_type, u_int event_arg) in ahc_queue_lstate_event()
6786 u_int begin_set[NUM_CRITICAL_SECTIONS]; in ahc_loadseq()
6787 u_int end_set[NUM_CRITICAL_SECTIONS]; in ahc_loadseq()
6789 u_int cs_count; in ahc_loadseq()
6790 u_int cur_cs; in ahc_loadseq()
6791 u_int i; in ahc_loadseq()
6792 u_int skip_addr; in ahc_loadseq()
6793 u_int sg_prefetch_cnt; in ahc_loadseq()
6893 u_int start_instr, u_int *skip_addr) in ahc_check_patch()
6897 u_int num_patches; in ahc_check_patch()
6928 ahc_download_instr(struct ahc_softc *ahc, u_int instrptr, uint8_t *dconsts) in ahc_download_instr()
6933 u_int opcode; in ahc_download_instr()
6957 u_int address; in ahc_download_instr()
6958 u_int skip_addr; in ahc_download_instr()
6959 u_int i; in ahc_download_instr()
7053 ahc_print_register(const ahc_reg_parse_entry_t *table, u_int num_entries, in ahc_print_register()
7054 const char *name, u_int address, u_int value, in ahc_print_register()
7055 u_int *cur_column, u_int wrap_point) in ahc_print_register()
7058 u_int printed_mask; in ahc_print_register()
7104 u_int cur_col; in ahc_dump_card_state()
7302 u_int max_id; in ahc_find_tmode_devs()
7332 u_int target; in ahc_handle_en_lun()
7333 u_int lun; in ahc_handle_en_lun()
7334 u_int target_mask; in ahc_handle_en_lun()
7335 u_int our_id; in ahc_handle_en_lun()
7457 u_int scsiseq; in ahc_handle_en_lun()
7518 u_int targid_mask; in ahc_handle_en_lun()
7528 u_int our_id; in ahc_handle_en_lun()
7539 u_int sblkctl; in ahc_handle_en_lun()
7640 u_int targid_mask; in ahc_handle_en_lun()
7665 u_int scsiseq; in ahc_handle_en_lun()
7696 ahc_update_scsiid(struct ahc_softc *ahc, u_int targid_mask) in ahc_update_scsiid()
7698 u_int scsiid_mask; in ahc_update_scsiid()
7699 u_int scsiid; in ahc_update_scsiid()
7716 u_int our_id; in ahc_update_scsiid()
7770 u_int hs_mailbox; in ahc_run_tqinfifo()