Lines Matching refs:u_int

72 static const u_int num_errors = ARRAY_SIZE(ahd_hard_errors);
92 static const u_int num_phases = ARRAY_SIZE(ahd_phase_table) - 1;
100 u_int lqistat1);
102 u_int busfreetime);
110 u_int scsi_id, char channel);
113 u_int scsi_id, char channel, int force);
117 u_int *period,
118 u_int *ppr_options,
136 u_int period, u_int offset);
139 u_int bus_width);
142 u_int period, u_int offset,
143 u_int bus_width, u_int ppr_options);
152 u_int msgval, int full);
162 u_int lun, cam_status status,
170 static u_int ahd_sglist_size(struct ahd_softc *ahd);
171 static u_int ahd_sglist_allocsize(struct ahd_softc *ahd);
180 struct scb *scb, u_int col_idx);
189 char channel, int lun, u_int tag,
192 u_int *list_head, u_int *list_tail,
193 u_int tid);
195 u_int tid_prev, u_int tid_cur,
196 u_int tid_next);
198 u_int scbid);
199 static u_int ahd_rem_wscb(struct ahd_softc *ahd, u_int scbid,
200 u_int prev, u_int next, u_int tid);
209 u_int start_instr, u_int *skip_addr);
210 static u_int ahd_resolve_seqaddr(struct ahd_softc *ahd,
211 u_int address);
213 u_int instrptr, uint8_t *dconsts);
223 u_int initiator_id,
224 u_int event_type,
225 u_int event_arg);
227 u_int targid_mask);
233 char channel, int lun, u_int tag,
236 static void ahd_busy_tcl(struct ahd_softc *ahd, u_int tcl,
237 u_int scbid);
244 static u_int ahd_find_busy_tcl(struct ahd_softc *ahd, u_int tcl);
252 u_int timer,
253 u_int maxcmds,
254 u_int mincmds);
259 u_int tag, role_t role);
269 static void ahd_handle_seqint(struct ahd_softc *ahd, u_int intstat);
271 u_int intstat);
550 ahd_targetcmd_offset(struct ahd_softc *ahd, u_int index)
563 ahd_fetch_transinfo(struct ahd_softc *ahd, char channel, u_int our_id,
564 u_int remote_id, struct ahd_tmode_tstate **tstate)
579 ahd_inw(struct ahd_softc *ahd, u_int port)
591 ahd_outw(struct ahd_softc *ahd, u_int port, u_int value)
602 ahd_inl(struct ahd_softc *ahd, u_int port)
611 ahd_outl(struct ahd_softc *ahd, u_int port, uint32_t value)
620 ahd_inq(struct ahd_softc *ahd, u_int port)
633 ahd_outq(struct ahd_softc *ahd, u_int port, uint64_t value)
645 u_int
654 ahd_set_scbptr(struct ahd_softc *ahd, u_int scbptr)
663 static u_int
671 ahd_set_hnscb_qoff(struct ahd_softc *ahd, u_int value)
677 static u_int
685 ahd_set_hescb_qoff(struct ahd_softc *ahd, u_int value)
690 static u_int
693 u_int oldvalue;
702 ahd_set_snscb_qoff(struct ahd_softc *ahd, u_int value)
709 static u_int
718 ahd_set_sescb_qoff(struct ahd_softc *ahd, u_int value)
725 static u_int
734 ahd_set_sdscb_qoff(struct ahd_softc *ahd, u_int value)
741 u_int
742 ahd_inb_scbram(struct ahd_softc *ahd, u_int offset)
744 u_int value;
766 u_int
767 ahd_inw_scbram(struct ahd_softc *ahd, u_int offset)
774 ahd_inl_scbram(struct ahd_softc *ahd, u_int offset)
781 ahd_inq_scbram(struct ahd_softc *ahd, u_int offset)
788 ahd_lookup_scb(struct ahd_softc *ahd, u_int tag)
876 (u_int)((host_dataptr >> 32) & 0xFFFFFFFF),
877 (u_int)(host_dataptr & 0xFFFFFFFF),
914 static u_int
917 u_int retval;
947 u_int intstat;
1067 u_int active_fifo;
1082 ahd_unbusy_tcl(struct ahd_softc *ahd, u_int tcl)
1163 ahd_clear_fifo(struct ahd_softc *ahd, u_int fifo)
1191 u_int saved_scbptr;
1192 u_int ccscbctl;
1193 u_int scbid;
1194 u_int next_scbid;
1204 u_int fifo_mode;
1205 u_int i;
1254 u_int comp_head;
1273 u_int tail;
1328 u_int i;
1426 u_int seqintsrc;
1548 u_int dfcntrl;
1662 u_int scb_index;
1769 ahd_handle_seqint(struct ahd_softc *ahd, u_int intstat)
1771 u_int seqintcode;
1802 u_int scbid;
1852 u_int scbid;
1868 u_int scbid;
1886 u_int bus_phase;
1907 u_int scbid;
1993 u_int scb_index;
2060 u_int scb_index;
2061 u_int bus_phase;
2161 u_int lastphase;
2173 u_int lastphase;
2195 u_int scbindex;
2197 u_int lastphase;
2232 u_int scbid;
2257 u_int scbid;
2263 u_int lun;
2264 u_int tag;
2311 u_int scbid;
2373 ahd_handle_scsiint(struct ahd_softc *ahd, u_int intstat)
2376 u_int status0;
2377 u_int status3;
2378 u_int status;
2379 u_int lqistat1;
2380 u_int lqostat0;
2381 u_int scbid;
2382 u_int busfreetime;
2408 u_int simode0;
2422 u_int now_lvd;
2538 u_int lqostat1;
2542 u_int mode;
2658 u_int scbid;
2659 u_int lqistat1;
2660 u_int msg_out;
2661 u_int curphase;
2662 u_int lastphase;
2663 u_int perrdiag;
2664 u_int cur_col;
2673 u_int lqistate;
2841 ahd_handle_lqiphase_error(struct ahd_softc *ahd, u_int lqistat1)
2883 ahd_handle_pkt_busfree(struct ahd_softc *ahd, u_int busfreetime)
2885 u_int lqostat1;
2892 u_int scbid;
2893 u_int saved_scbptr;
2894 u_int waiting_h;
2895 u_int waiting_t;
2896 u_int next;
2990 u_int scbid;
3019 u_int lastphase;
3020 u_int saved_scsiid;
3021 u_int saved_lun;
3022 u_int target;
3023 u_int initiator_role_id;
3024 u_int scbid;
3025 u_int ppr_busfree;
3050 u_int tag;
3257 u_int tag;
3293 u_int scbid;
3294 u_int seq_flags;
3295 u_int curphase;
3296 u_int lastphase;
3416 u_int simode0;
3417 u_int simode1;
3418 u_int simode3;
3419 u_int lqimode0;
3420 u_int lqimode1;
3421 u_int lqomode0;
3422 u_int lqomode1;
3440 u_int seqaddr;
3441 u_int i;
3596 ahd_alloc_tstate(struct ahd_softc *ahd, u_int scsi_id, char channel)
3638 ahd_free_tstate(struct ahd_softc *ahd, u_int scsi_id, char channel, int force)
3665 u_int *period, u_int *ppr_options, role_t role)
3668 u_int maxsync;
3694 maxsync = max(maxsync, (u_int)AHD_SYNCRATE_ULTRA2);
3701 *period = max(*period, (u_int)transinfo->period);
3712 ahd_find_syncrate(struct ahd_softc *ahd, u_int *period,
3713 u_int *ppr_options, u_int maxsync)
3753 u_int period, u_int *offset, int wide,
3756 u_int maxoffset;
3771 *offset = min(*offset, (u_int)tinfo->user.offset);
3773 *offset = min(*offset, (u_int)tinfo->goal.offset);
3783 u_int *bus_width, role_t role)
3799 *bus_width = min((u_int)tinfo->user.width, *bus_width);
3801 *bus_width = min((u_int)tinfo->goal.width, *bus_width);
3816 u_int auto_negotiate_orig;
3856 u_int period, u_int offset, u_int ppr_options,
3857 u_int type, int paused)
3861 u_int old_period;
3862 u_int old_offset;
3863 u_int old_ppr;
4002 u_int width, u_int type, int paused)
4006 u_int oldwidth;
4070 u_int period;
4071 u_int ppr_opts;
4072 u_int con_opts;
4073 u_int offset;
4074 u_int saved_negoaddr;
4191 u_int saved_scbptr;
4248 u_int scb_tag;
4249 u_int control;
4270 u_int saved_scsiid;
4327 ahd_compile_devinfo(struct ahd_devinfo *devinfo, u_int our_id, u_int target,
4328 u_int lun, char channel, role_t role)
4401 u_int identify_msg;
4498 u_int period;
4499 u_int ppr_options;
4500 u_int offset;
4583 u_int period, u_int offset)
4603 u_int bus_width)
4621 u_int period, u_int offset, u_int bus_width,
4622 u_int ppr_options)
4680 u_int bus_phase;
5017 ahd_sent_msg(struct ahd_softc *ahd, ahd_msgtype type, u_int msgval, int full)
5020 u_int index;
5027 u_int end_index;
5117 u_int period;
5118 u_int ppr_options;
5119 u_int offset;
5120 u_int saved_offset;
5192 u_int bus_width;
5193 u_int saved_width;
5194 u_int sending_reply;
5288 u_int period;
5289 u_int offset;
5290 u_int bus_width;
5291 u_int ppr_options;
5292 u_int saved_width;
5293 u_int saved_offset;
5294 u_int saved_ppr_options;
5495 u_int scb_index;
5496 u_int last_msg;
5657 u_int scb_index;
5809 u_int scb_index;
5810 u_int wait;
5888 u_int lun, cam_status status, char *message,
5907 u_int cur_lun;
5908 u_int max_lun;
5973 static u_int
5990 static u_int
6076 ahd_name(ahd), (u_int)sizeof(struct scb),
6077 (u_int)sizeof(struct hardware_scb));
6202 u_int sxfrctl1;
6453 ahd_find_scb_by_tag(struct ahd_softc *ahd, u_int tag)
6581 u_int sblkctl;
6609 ahd_add_col_list(struct ahd_softc *ahd, struct scb *scb, u_int col_idx)
6634 u_int col_idx;
6663 ahd_get_scb(struct ahd_softc *ahd, u_int col_idx)
6883 u_int col_tag;
6994 u_int warn_user;
7166 u_int term_stat;
7201 u_int sxfrctl1;
7202 u_int scsiseq_template;
7203 u_int wait;
7204 u_int i;
7205 u_int target;
7522 u_int negodat3 = ahd_inb(ahd, NEGCONOPTS);
7766 u_int hcntrl;
7781 ahd_update_coalescing_values(struct ahd_softc *ahd, u_int timer, u_int maxcmds,
7782 u_int mincmds)
7820 u_int intstat;
7821 u_int maxloops;
7898 static inline u_int
7899 ahd_index_busy_tcl(struct ahd_softc *ahd, u_int *saved_scbid, u_int tcl)
7920 static u_int
7921 ahd_find_busy_tcl(struct ahd_softc *ahd, u_int tcl)
7923 u_int scbid;
7924 u_int scb_offset;
7925 u_int saved_scbptr;
7934 ahd_busy_tcl(struct ahd_softc *ahd, u_int tcl, u_int scbid)
7936 u_int scb_offset;
7937 u_int saved_scbptr;
7947 char channel, int lun, u_int tag, role_t role)
8009 u_int prev_tag;
8010 u_int prev_pos;
8044 u_int qinpos;
8045 u_int wrap_qinpos;
8046 u_int wrap_qinfifonext;
8064 u_int pending_cmds;
8101 int lun, u_int tag, role_t role, uint32_t status,
8108 u_int qinstart;
8109 u_int qinpos;
8110 u_int qintail;
8111 u_int tid_next;
8112 u_int tid_prev;
8113 u_int scbid;
8114 u_int seq_flags2;
8115 u_int savedscbptr;
8214 u_int tid_head;
8215 u_int tid_tail;
8272 u_int tail_offset;
8331 int lun, u_int tag, role_t role, uint32_t status,
8332 ahd_search_action action, u_int *list_head,
8333 u_int *list_tail, u_int tid)
8336 u_int scbid;
8337 u_int next;
8338 u_int prev;
8398 ahd_stitch_tid_list(struct ahd_softc *ahd, u_int tid_prev,
8399 u_int tid_cur, u_int tid_next)
8435 static u_int
8436 ahd_rem_wscb(struct ahd_softc *ahd, u_int scbid,
8437 u_int prev, u_int next, u_int tid)
8439 u_int tail_offset;
8469 ahd_add_scb_to_free_list(struct ahd_softc *ahd, u_int scbid)
8488 int lun, u_int tag, role_t role, uint32_t status)
8492 u_int i, j;
8493 u_int maxtarget;
8494 u_int minlun;
8495 u_int maxlun;
8531 u_int scbid;
8532 u_int tcl;
8616 u_int initiator;
8617 u_int target;
8618 u_int max_scsiid;
8620 u_int fifo;
8621 u_int next_fifo;
8735 u_int lun;
9148 u_int initiator_id, u_int event_type, u_int event_arg)
9259 u_int begin_set[NUM_CRITICAL_SECTIONS];
9260 u_int end_set[NUM_CRITICAL_SECTIONS];
9262 u_int cs_count;
9263 u_int cur_cs;
9264 u_int i;
9266 u_int skip_addr;
9267 u_int sg_prefetch_cnt;
9268 u_int sg_prefetch_cnt_limit;
9269 u_int sg_prefetch_align;
9270 u_int sg_size;
9271 u_int cacheline_mask;
9416 u_int start_instr, u_int *skip_addr)
9420 u_int num_patches;
9450 static u_int
9451 ahd_resolve_seqaddr(struct ahd_softc *ahd, u_int address)
9455 u_int skip_addr;
9456 u_int i;
9480 ahd_download_instr(struct ahd_softc *ahd, u_int instrptr, uint8_t *dconsts)
9485 u_int opcode;
9570 u_int stack_entry;
9584 ahd_print_register(const ahd_reg_parse_entry_t *table, u_int num_entries,
9585 const char *name, u_int address, u_int value,
9586 u_int *cur_column, u_int wrap_point)
9589 u_int printed_mask;
9636 u_int dffstat;
9638 u_int scb_index;
9639 u_int saved_scb_index;
9640 u_int cur_col;
9793 u_int fifo_scbptr;
9897 u_int saved_scb_index;
9929 u_int start_addr, u_int count, int bytestream)
9931 u_int cur_addr;
9932 u_int end_addr;
9974 u_int start_addr, u_int count)
9976 u_int cur_addr;
9977 u_int end_addr;
10137 ahd_write_flexport(struct ahd_softc *ahd, u_int addr, u_int value)
10160 ahd_read_flexport(struct ahd_softc *ahd, u_int addr, uint8_t *value)
10198 u_int max_id;
10228 u_int target;
10229 u_int lun;
10230 u_int target_mask;
10243 u_int our_id;
10308 u_int scsiseq1;
10369 u_int targid_mask;
10376 u_int our_id;
10387 u_int sblkctl;
10485 u_int targid_mask;
10505 u_int scsiseq1;
10534 ahd_update_scsiid(struct ahd_softc *ahd, u_int targid_mask)
10537 u_int scsiid_mask;
10538 u_int scsiid;
10555 u_int our_id;
10601 u_int hs_mailbox;