Lines Matching refs:period
153 u_int *period,
170 u_int period, u_int offset);
176 u_int period, u_int offset,
2218 u_int *period, u_int *ppr_options, role_t role) in ahc_devlimited_syncrate() argument
2256 if (transinfo->period == 0) { in ahc_devlimited_syncrate()
2257 *period = 0; in ahc_devlimited_syncrate()
2261 *period = max(*period, (u_int)transinfo->period); in ahc_devlimited_syncrate()
2262 return (ahc_find_syncrate(ahc, period, ppr_options, maxsync)); in ahc_devlimited_syncrate()
2271 ahc_find_syncrate(struct ahc_softc *ahc, u_int *period, in ahc_find_syncrate() argument
2305 if (*period <= syncrate->period) { in ahc_find_syncrate()
2318 *period = syncrate->period; in ahc_find_syncrate()
2330 if ((*period == 0) in ahc_find_syncrate()
2335 *period = 0; in ahc_find_syncrate()
2374 return (syncrate->period); in ahc_find_period()
2376 return (syncrate->period); in ahc_find_period()
2466 tinfo->curr.period = AHC_PERIOD_UNKNOWN; in ahc_update_neg_request()
2469 if (tinfo->curr.period != tinfo->goal.period in ahc_update_neg_request()
2494 const struct ahc_syncrate *syncrate, u_int period, in ahc_set_syncrate() argument
2509 period = 0; in ahc_set_syncrate()
2517 tinfo->user.period = period; in ahc_set_syncrate()
2523 tinfo->goal.period = period; in ahc_set_syncrate()
2528 old_period = tinfo->curr.period; in ahc_set_syncrate()
2533 && (old_period != period in ahc_set_syncrate()
2583 tinfo->curr.period = period; in ahc_set_syncrate()
2975 u_int period; in ahc_build_transfer_msg() local
2987 period = tinfo->goal.period; in ahc_build_transfer_msg()
2993 rate = ahc_devlimited_syncrate(ahc, tinfo, &period, in ahc_build_transfer_msg()
2996 dosync = tinfo->curr.offset != offset || tinfo->curr.period != period; in ahc_build_transfer_msg()
3045 ahc_construct_ppr(ahc, devinfo, period, offset, in ahc_build_transfer_msg()
3048 ahc_construct_sdtr(ahc, devinfo, period, offset); in ahc_build_transfer_msg()
3061 u_int period, u_int offset) in ahc_construct_sdtr() argument
3064 period = AHC_ASYNC_XFER_PERIOD; in ahc_construct_sdtr()
3066 ahc->msgout_buf + ahc->msgout_index, period, offset); in ahc_construct_sdtr()
3071 devinfo->lun, period, offset); in ahc_construct_sdtr()
3099 u_int period, u_int offset, u_int bus_width, in ahc_construct_ppr() argument
3103 period = AHC_ASYNC_XFER_PERIOD; in ahc_construct_ppr()
3105 ahc->msgout_buf + ahc->msgout_index, period, offset, in ahc_construct_ppr()
3112 bus_width, period, offset, ppr_options); in ahc_construct_ppr()
3638 u_int period; in ahc_parse_msg() local
3658 period = ahc->msgin_buf[3]; in ahc_parse_msg()
3661 syncrate = ahc_devlimited_syncrate(ahc, tinfo, &period, in ahc_parse_msg()
3674 period, offset); in ahc_parse_msg()
3677 syncrate, period, in ahc_parse_msg()
3707 period, offset); in ahc_parse_msg()
3813 u_int period; in ahc_parse_msg() local
3836 period = ahc->msgin_buf[3]; in ahc_parse_msg()
3847 && period == 9) in ahc_parse_msg()
3863 syncrate = ahc_devlimited_syncrate(ahc, tinfo, &period, in ahc_parse_msg()
3880 period = 0; in ahc_parse_msg()
3899 ahc_construct_ppr(ahc, devinfo, period, offset, in ahc_parse_msg()
3913 bus_width, period, offset, ppr_options); in ahc_parse_msg()
3919 syncrate, period, in ahc_parse_msg()
5511 tinfo->user.period = ahc_syncrates->period; in ahc_init()
5542 tinfo->user.period = in ahc_init()
5545 tinfo->user.period = 0; in ahc_init()
5559 tinfo->user.period = in ahc_init()
5564 if (tinfo->user.period != 0) in ahc_init()
5567 if (tinfo->user.period == 0) in ahc_init()