Lines Matching refs:dp_sg
3630 int dp_ofs, dp_sg, dp_sgmin; local
3667 dp_sg = SYM_CONF_MAX_SG;
3669 dp_sg -= (tmp - 8 - (int)dp_scr) / (2*4);
3686 while (dp_sg > dp_sgmin) {
3687 --dp_sg;
3688 tmp = scr_to_cpu(cp->phys.data[dp_sg].size);
3691 ++dp_sg;
3698 while (dp_sg < SYM_CONF_MAX_SG) {
3699 tmp = scr_to_cpu(cp->phys.data[dp_sg].size);
3701 ++dp_sg;
3711 if (dp_sg < dp_sgmin || (dp_sg == dp_sgmin && dp_ofs < 0))
3713 else if (dp_sg > SYM_CONF_MAX_SG ||
3714 (dp_sg == SYM_CONF_MAX_SG && dp_ofs > 0))
3720 if (dp_sg > cp->ext_sg ||
3721 (dp_sg == cp->ext_sg && dp_ofs > cp->ext_ofs)) {
3722 cp->ext_sg = dp_sg;
3730 return dp_sg;
3752 int dp_sg; local
3765 dp_sg = sym_evaluate_dp(np, cp, dp_scr, &dp_ofs);
3766 if (dp_sg < 0)
3774 dp_ret = dp_ret - 8 - (SYM_CONF_MAX_SG - dp_sg) * (2*4);
3814 tmp = scr_to_cpu(cp->phys.data[dp_sg-1].addr);
3815 tmp += scr_to_cpu(cp->phys.data[dp_sg-1].size) + dp_ofs;
3846 int dp_sg, resid = 0; local
3894 for (dp_sg = cp->ext_sg; dp_sg < SYM_CONF_MAX_SG; ++dp_sg) {
3895 u_int tmp = scr_to_cpu(cp->phys.data[dp_sg].size);