Lines Matching refs:pre
1250 static int comp_tx(struct eni_dev *eni_dev,int *pcr,int reserved,int *pre, in comp_tx() argument
1256 if (unlimited) *pre = *res = 0; in comp_tx()
1261 for (*pre = 0; *pre < 3; (*pre)++) in comp_tx()
1262 if (TS_CLOCK/pre_div[*pre]/64 <= *pcr) break; in comp_tx()
1263 div = pre_div[*pre]**pcr; in comp_tx()
1271 for (*pre = 3; *pre >= 0; (*pre)--) in comp_tx()
1272 if (TS_CLOCK/pre_div[*pre]/64 > -*pcr) break; in comp_tx()
1273 if (*pre < 3) (*pre)++; /* else fail later */ in comp_tx()
1274 div = pre_div[*pre]*-*pcr; in comp_tx()
1281 *pcr = TS_CLOCK/pre_div[*pre]/(*res+1); in comp_tx()
1282 DPRINTK("out pcr: %d (%d:%d)\n",*pcr,*pre,*res); in comp_tx()
1296 int pre,res,order; in reserve_or_set_tx() local
1340 error = comp_tx(eni_dev,&rate,tx->reserved,&pre,&res,unlimited); in reserve_or_set_tx()
1365 tx->prescaler = pre; in reserve_or_set_tx()