Lines Matching refs:scsirate

1041 		u_int	scsirate;  in ahc_handle_scsiint()  local
1082 scsirate = ahc_inb(ahc, SCSIRATE); in ahc_handle_scsiint()
1088 scsirate); in ahc_handle_scsiint()
1100 (scsirate & SINGLE_EDGE) in ahc_handle_scsiint()
1754 ahc_find_period(struct ahc_softc *ahc, u_int scsirate, u_int maxsync) in ahc_find_period() argument
1759 scsirate &= SXFR_ULTRA2; in ahc_find_period()
1761 scsirate &= SXFR; in ahc_find_period()
1769 else if (scsirate == (syncrate->sxfr_u2 & SXFR_ULTRA2)) in ahc_find_period()
1771 } else if (scsirate == (syncrate->sxfr & SXFR)) { in ahc_find_period()
1932 u_int scsirate; in ahc_set_syncrate() local
1935 scsirate = tinfo->scsirate; in ahc_set_syncrate()
1938 scsirate &= ~(SXFR_ULTRA2|SINGLE_EDGE|ENABLE_CRC); in ahc_set_syncrate()
1940 scsirate |= syncrate->sxfr_u2; in ahc_set_syncrate()
1942 scsirate |= ENABLE_CRC; in ahc_set_syncrate()
1944 scsirate |= SINGLE_EDGE; in ahc_set_syncrate()
1948 scsirate &= ~(SXFR|SOFS); in ahc_set_syncrate()
1959 scsirate |= syncrate->sxfr & SXFR; in ahc_set_syncrate()
1960 scsirate |= offset & SOFS; in ahc_set_syncrate()
1973 ahc_outb(ahc, SCSIRATE, scsirate); in ahc_set_syncrate()
1978 tinfo->scsirate = scsirate; in ahc_set_syncrate()
2038 u_int scsirate; in ahc_set_width() local
2041 scsirate = tinfo->scsirate; in ahc_set_width()
2042 scsirate &= ~WIDEXFER; in ahc_set_width()
2044 scsirate |= WIDEXFER; in ahc_set_width()
2046 tinfo->scsirate = scsirate; in ahc_set_width()
2049 ahc_outb(ahc, SCSIRATE, scsirate); in ahc_set_width()
2113 pending_hscb->scsirate = tinfo->scsirate; in ahc_update_pending_scbs()
2153 ahc_outb(ahc, SCB_SCSIRATE, pending_hscb->scsirate); in ahc_update_pending_scbs()
3002 targ_scsirate = tinfo->scsirate; in ahc_parse_msg()
5004 u_int scsirate; in ahc_init() local
5008 scsirate = ahc_inb(ahc, TARG_SCSIRATE + i); in ahc_init()
5014 if ((scsirate & SOFS) == 0x0F) { in ahc_init()
5019 scsirate = (scsirate & SXFR) >> 4 in ahc_init()
5022 | (scsirate & WIDEXFER); in ahc_init()
5026 if ((scsirate & ~WIDEXFER) == 0 && offset != 0) in ahc_init()
5028 scsirate |= 0x1c; in ahc_init()
5033 ahc_find_period(ahc, scsirate, maxsync); in ahc_init()
5038 if ((scsirate & SXFR_ULTRA2) <= 8/*10MHz*/ in ahc_init()
5042 } else if ((scsirate & SOFS) != 0) { in ahc_init()
5043 if ((scsirate & SXFR) == 0x40 in ahc_init()
5046 scsirate &= ~SXFR; in ahc_init()
5050 ahc_find_period(ahc, scsirate, in ahc_init()
5059 if ((scsirate & WIDEXFER) != 0 in ahc_init()