Lines Matching refs:dp_sg
10419 int dp_ofs, dp_sg, dp_sgmin; local
10448 dp_sg = MAX_SCATTER;
10450 dp_sg -= (tmp - 8 - (int)dp_scr) / (SCR_SG_SIZE*4);
10467 while (dp_sg > dp_sgmin) {
10468 --dp_sg;
10469 tmp = scr_to_cpu(cp->phys.data[dp_sg].size);
10472 ++dp_sg;
10479 while (dp_sg < MAX_SCATTER) {
10480 tmp = scr_to_cpu(cp->phys.data[dp_sg].size);
10482 ++dp_sg;
10492 if (dp_sg < dp_sgmin || (dp_sg == dp_sgmin && dp_ofs < 0))
10494 else if (dp_sg > MAX_SCATTER || (dp_sg == MAX_SCATTER && dp_ofs > 0))
10500 if (dp_sg > cp->ext_sg ||
10501 (dp_sg == cp->ext_sg && dp_ofs > cp->ext_ofs)) {
10502 cp->ext_sg = dp_sg;
10510 return dp_sg;
10537 int dp_sg; local
10550 dp_sg = ncr_evaluate_dp(np, cp, dp_scr, &dp_ofs);
10551 if (dp_sg < 0)
10559 dp_ret = dp_ret - 8 - (MAX_SCATTER - dp_sg) * (SCR_SG_SIZE*4);
10599 tmp = scr_to_cpu(cp->phys.data[dp_sg-1].addr);
10600 tmp += scr_to_cpu(cp->phys.data[dp_sg-1].size) + dp_ofs;
10636 int dp_sg, dp_sgmin, tmp; local
10688 for (dp_sg = cp->ext_sg; dp_sg < MAX_SCATTER; ++dp_sg) {
10689 tmp = scr_to_cpu(cp->phys.data[dp_sg].size);