Lines Matching refs:goal
1365 struct sym_trans *goal) argument
1368 goal->width = 0;
1371 goal->iu = 0;
1372 goal->dt = 0;
1373 goal->qas = 0;
1374 goal->offset = 0;
1380 goal->dt = 1;
1382 if (goal->offset == 0)
1383 goal->dt = 0;
1385 goal->dt = 0;
1390 goal->dt = 0;
1392 if (goal->dt) {
1394 goal->width = 1;
1395 if (goal->offset > np->maxoffs_dt)
1396 goal->offset = np->maxoffs_dt;
1397 if (goal->period < np->minsync_dt)
1398 goal->period = np->minsync_dt;
1399 if (goal->period > np->maxsync_dt)
1400 goal->period = np->maxsync_dt;
1402 goal->iu = goal->qas = 0;
1403 if (goal->offset > np->maxoffs)
1404 goal->offset = np->maxoffs;
1405 if (goal->period < np->minsync)
1406 goal->period = np->minsync;
1407 if (goal->period > np->maxsync)
1408 goal->period = np->maxsync;
1423 struct sym_trans *goal = &tp->tgoal; local
1427 sym_check_goals(np, starget, goal);
1433 if (goal->renego == NS_PPR || (goal->offset &&
1434 (goal->iu || goal->dt || goal->qas || (goal->period < 0xa)))) {
1436 } else if (goal->renego == NS_WIDE || goal->width) {
1438 } else if (goal->renego == NS_SYNC || goal->offset) {
1441 goal->check_nego = 0;
1447 msglen += spi_populate_sync_msg(msgptr + msglen, goal->period,
1448 goal->offset);
1451 msglen += spi_populate_width_msg(msgptr + msglen, goal->width);
1454 msglen += spi_populate_ppr_msg(msgptr + msglen, goal->period,
1455 goal->offset, goal->width,
1456 (goal->iu ? PPR_OPT_IU : 0) |
1457 (goal->dt ? PPR_OPT_DT : 0) |
1458 (goal->qas ? PPR_OPT_QAS : 0));