Searched refs:dp_sg (Results 1 - 1 of 1) sorted by relevance

/linux-4.1.27/drivers/scsi/sym53c8xx_2/
H A Dsym_hipd.c3620 * array (dp_sg) and a negative offset (dp_ofs) that
3623 * - dp_sg = SYM_CONF_MAX_SG
3625 * - dp_sg < SYM_CONF_MAX_SG
3626 * dp_sg points to the next entry of the scatter array
3636 * the corresponding values of dp_sg and dp_ofs.
3642 int dp_ofs, dp_sg, dp_sgmin; sym_evaluate_dp() local
3675 * If result is dp_sg = SYM_CONF_MAX_SG, then we are at the sym_evaluate_dp()
3679 dp_sg = SYM_CONF_MAX_SG; sym_evaluate_dp()
3681 dp_sg -= (tmp - 8 - (int)dp_scr) / (2*4); sym_evaluate_dp()
3690 * dp_ofs = 0 and dp_sg is the index of the sg entry sym_evaluate_dp()
3693 * dp_ofs < 0 and dp_sg is the index of the sg entry sym_evaluate_dp()
3698 while (dp_sg > dp_sgmin) { sym_evaluate_dp()
3699 --dp_sg; sym_evaluate_dp()
3700 tmp = scr_to_cpu(cp->phys.data[dp_sg].size); sym_evaluate_dp()
3703 ++dp_sg; sym_evaluate_dp()
3710 while (dp_sg < SYM_CONF_MAX_SG) { sym_evaluate_dp()
3711 tmp = scr_to_cpu(cp->phys.data[dp_sg].size); sym_evaluate_dp()
3713 ++dp_sg; sym_evaluate_dp()
3723 if (dp_sg < dp_sgmin || (dp_sg == dp_sgmin && dp_ofs < 0)) sym_evaluate_dp()
3725 else if (dp_sg > SYM_CONF_MAX_SG || sym_evaluate_dp()
3726 (dp_sg == SYM_CONF_MAX_SG && dp_ofs > 0)) sym_evaluate_dp()
3732 if (dp_sg > cp->ext_sg || sym_evaluate_dp()
3733 (dp_sg == cp->ext_sg && dp_ofs > cp->ext_ofs)) { sym_evaluate_dp()
3734 cp->ext_sg = dp_sg; sym_evaluate_dp()
3742 return dp_sg; sym_evaluate_dp()
3764 int dp_sg; sym_modify_dp() local
3777 dp_sg = sym_evaluate_dp(np, cp, dp_scr, &dp_ofs); sym_modify_dp()
3778 if (dp_sg < 0) sym_modify_dp()
3786 dp_ret = dp_ret - 8 - (SYM_CONF_MAX_SG - dp_sg) * (2*4); sym_modify_dp()
3822 * corresponding to index dp_sg-1 prior to returning sym_modify_dp()
3826 tmp = scr_to_cpu(cp->phys.data[dp_sg-1].addr); sym_modify_dp()
3827 tmp += scr_to_cpu(cp->phys.data[dp_sg-1].size) + dp_ofs; sym_modify_dp()
3858 int dp_sg, dp_sgmin, resid = 0; sym_compute_residual() local
3907 for (dp_sg = cp->ext_sg; dp_sg < SYM_CONF_MAX_SG; ++dp_sg) { sym_compute_residual()
3908 u_int tmp = scr_to_cpu(cp->phys.data[dp_sg].size); sym_compute_residual()

Completed in 73 milliseconds