Lines Matching refs:dp_sg
3608 * array (dp_sg) and a negative offset (dp_ofs) that
3611 * - dp_sg = SYM_CONF_MAX_SG
3613 * - dp_sg < SYM_CONF_MAX_SG
3614 * dp_sg points to the next entry of the scatter array
3624 * the corresponding values of dp_sg and dp_ofs.
3630 int dp_ofs, dp_sg, dp_sgmin;
3663 * If result is dp_sg = SYM_CONF_MAX_SG, then we are at the
3667 dp_sg = SYM_CONF_MAX_SG;
3669 dp_sg -= (tmp - 8 - (int)dp_scr) / (2*4);
3678 * dp_ofs = 0 and dp_sg is the index of the sg entry
3681 * dp_ofs < 0 and dp_sg is the index of the sg entry
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;
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);
3810 * corresponding to index dp_sg-1 prior to returning
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;
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);