Searched refs:syncrate (Results 1 - 5 of 5) sorted by relevance

/linux-4.1.27/drivers/scsi/aic7xxx/
H A Daic7xxx_core.c1908 /*syncrate*/NULL, ahc_handle_scsiint()
2211 * this function finds the nearest syncrate to the input period limited
2274 const struct ahc_syncrate *syncrate; ahc_find_syncrate() local
2293 for (syncrate = &ahc_syncrates[maxsync]; ahc_find_syncrate()
2294 syncrate->rate != NULL; ahc_find_syncrate()
2295 syncrate++) { ahc_find_syncrate()
2302 && (syncrate->sxfr_u2 == 0)) ahc_find_syncrate()
2305 if (*period <= syncrate->period) { ahc_find_syncrate()
2317 if (syncrate == &ahc_syncrates[maxsync]) ahc_find_syncrate()
2318 *period = syncrate->period; ahc_find_syncrate()
2324 if ((syncrate->sxfr_u2 & ST_SXFR) != 0) ahc_find_syncrate()
2331 || (syncrate->rate == NULL) ahc_find_syncrate()
2333 && (syncrate->sxfr_u2 == 0))) { ahc_find_syncrate()
2336 syncrate = NULL; ahc_find_syncrate()
2339 return (syncrate); ahc_find_syncrate()
2343 * Convert from an entry in our syncrate table to the SCSI equivalent
2349 const struct ahc_syncrate *syncrate; ahc_find_period() local
2367 syncrate = &ahc_syncrates[maxsync]; ahc_find_period()
2368 while (syncrate->rate != NULL) { ahc_find_period()
2371 if (syncrate->sxfr_u2 == 0) ahc_find_period()
2373 else if (scsirate == (syncrate->sxfr_u2 & SXFR_ULTRA2)) ahc_find_period()
2374 return (syncrate->period); ahc_find_period()
2375 } else if (scsirate == (syncrate->sxfr & SXFR)) { ahc_find_period()
2376 return (syncrate->period); ahc_find_period()
2378 syncrate++; ahc_find_period()
2385 * current adapter type and syncrate are capable of.
2390 const struct ahc_syncrate *syncrate, ahc_validate_offset()
2396 if (syncrate == NULL) { ahc_validate_offset()
2494 const struct ahc_syncrate *syncrate, u_int period, ahc_set_syncrate()
2508 if (syncrate == NULL) { ahc_set_syncrate()
2543 if (syncrate != NULL) { ahc_set_syncrate()
2544 scsirate |= syncrate->sxfr_u2; ahc_set_syncrate()
2558 if (syncrate != NULL) { ahc_set_syncrate()
2559 if (syncrate->sxfr & ULTRA_SXFR) { ahc_set_syncrate()
2563 scsirate |= syncrate->sxfr & SXFR; ahc_set_syncrate()
2593 devinfo->target, syncrate->rate, ahc_set_syncrate()
3031 * goal syncrate to be limited to what the target device ahc_build_transfer_msg()
3637 const struct ahc_syncrate *syncrate; ahc_parse_msg() local
3661 syncrate = ahc_devlimited_syncrate(ahc, tinfo, &period, ahc_parse_msg()
3664 ahc_validate_offset(ahc, tinfo, syncrate, &offset, ahc_parse_msg()
3677 syncrate, period, ahc_parse_msg()
3812 const struct ahc_syncrate *syncrate; ahc_parse_msg() local
3863 syncrate = ahc_devlimited_syncrate(ahc, tinfo, &period, ahc_parse_msg()
3866 ahc_validate_offset(ahc, tinfo, syncrate, ahc_parse_msg()
3884 syncrate = NULL; ahc_parse_msg()
3919 syncrate, period, ahc_parse_msg()
4059 * did not accept the command, our syncrate is ahc_handle_msg_reject()
4075 ahc_set_syncrate(ahc, devinfo, /*syncrate*/NULL, /*period*/0, ahc_handle_msg_reject()
4361 ahc_set_syncrate(ahc, devinfo, /*syncrate*/NULL, ahc_handle_devreset()
6634 ahc_set_syncrate(ahc, &devinfo, /*syncrate*/NULL, ahc_reset_channel()
2388 ahc_validate_offset(struct ahc_softc *ahc, struct ahc_initiator_tinfo *tinfo, const struct ahc_syncrate *syncrate, u_int *offset, int wide, role_t role) ahc_validate_offset() argument
2493 ahc_set_syncrate(struct ahc_softc *ahc, struct ahc_devinfo *devinfo, const struct ahc_syncrate *syncrate, u_int period, u_int offset, u_int ppr_options, u_int type, int paused) ahc_set_syncrate() argument
H A Daic7xxx_osm.c2365 const struct ahc_syncrate *syncrate; ahc_linux_set_period() local
2389 syncrate = ahc_find_syncrate(ahc, &period, &ppr_options, AHC_SYNCRATE_DT); ahc_linux_set_period()
2391 ahc_set_syncrate(ahc, &devinfo, syncrate, period, offset, ahc_linux_set_period()
2409 const struct ahc_syncrate *syncrate = NULL; ahc_linux_set_offset() local
2414 syncrate = ahc_find_syncrate(ahc, &period, &ppr_options, AHC_SYNCRATE_DT); ahc_linux_set_offset()
2419 ahc_set_syncrate(ahc, &devinfo, syncrate, period, offset, ahc_linux_set_offset()
2439 const struct ahc_syncrate *syncrate; ahc_linux_set_dt() local
2450 syncrate = ahc_find_syncrate(ahc, &period, &ppr_options,AHC_SYNCRATE_DT); ahc_linux_set_dt()
2452 ahc_set_syncrate(ahc, &devinfo, syncrate, period, tinfo->goal.offset, ahc_linux_set_dt()
2476 struct ahc_syncrate *syncrate;
2483 syncrate = ahc_find_syncrate(ahc, &period, &ppr_options, AHC_SYNCRATE_DT);
2485 ahc_set_syncrate(ahc, &devinfo, syncrate, period, tinfo->goal.offset,
2504 struct ahc_syncrate *syncrate;
2511 syncrate = ahc_find_syncrate(ahc, &period, &ppr_options, AHC_SYNCRATE_DT);
2513 ahc_set_syncrate(ahc, &devinfo, syncrate, period, tinfo->goal.offset,
H A Daic7xxx.h1228 const struct ahc_syncrate *syncrate,
H A Daic79xx_core.c3782 * current adapter type and syncrate are capable of.
4131 * any syncrate faster than 80MHz. Nevertheless, ahd_update_neg_table()
4589 * goal syncrate to be limited to what the target device ahd_build_transfer_msg()
5592 * did not accept the command, our syncrate is ahd_handle_msg_reject()
/linux-4.1.27/drivers/scsi/
H A Daha152x.c473 unsigned char syncrate[8]; member in struct:aha152x_hostdata
551 #define SYNCRATE (HOSTDATA(shpnt)->syncrate[CURRENT_SC->device->id])
1633 SETRATE(HOSTDATA(shpnt)->syncrate[target]); seldi_run()
1804 HOSTDATA(shpnt)->syncrate[i]=0; msgi_run()
2841 if (HOSTDATA(shpnt)->syncrate[i] & 0x7f) aha152x_show_info()
2844 (((HOSTDATA(shpnt)->syncrate[i] & 0x70) >> 4) + 2), aha152x_show_info()
2845 (((HOSTDATA(shpnt)->syncrate[i] & 0x70) >> 4) + 2) * 50, aha152x_show_info()
2846 HOSTDATA(shpnt)->syncrate[i] & 0x0f); aha152x_show_info()

Completed in 205 milliseconds