Lines Matching refs:cnt
160 unsigned resid, cnt;
180 cnt = 4096 - (cur_virt_src & 0xFFF); /* Get length left on page */
181 if (cnt > (4096 - (cur_virt_dst & 0xFFF)))
182 cnt = 4096 - (cur_virt_dst & 0xFFF);
184 if (cnt > resid)
185 cnt = resid;
187 bcopy_phys(cur_virt_src, cur_phys_dst, cnt); /* Copy stuff over */
189 cur_virt_src += cnt;
190 cur_virt_dst += cnt;
191 resid -= cnt;
208 cnt = 4096 - (cur_virt_src & 0xFFF); /* Get length left on page */
209 if (cnt > (4096 - (cur_virt_dst & 0xFFF)))
210 cnt = 4096 - (cur_virt_dst & 0xFFF);
212 if (cnt > resid)
213 cnt = resid;
220 bcopy_phys(cur_phys_src, cur_phys_dst, cnt); /* Copy stuff over */
222 cur_virt_src += cnt;
223 cur_virt_dst += cnt;
224 resid -= cnt;
253 unsigned resid, cnt;
274 cnt = 4096 - (cur_virt_src & 0xFFF); /* Get length left on page */
275 if (cnt > (4096 - (cur_virt_dst & 0xFFF)))
276 cnt = 4096 - (cur_virt_dst & 0xFFF);
278 if (cnt > resid)
279 cnt = resid;
281 bcopy_phys(cur_phys_src, cur_phys_dst, cnt); /* Copy stuff over */
283 cur_virt_src += cnt;
284 cur_virt_dst += cnt;
285 resid -= cnt;