Lines Matching defs:sum
1610 unsigned char sum;
1628 sum = 0;
1631 sum += curr_scb->tmo_delta;
1632 if (sum > scb->tmo_delta) {
1633 sum -= curr_scb->tmo_delta;
1634 scb->tmo_delta -= sum;
1640 scb->tmo_delta -= sum;
2156 int err, len, sum, rval;
2260 for (rval = 0, sum = 0; mdata && (rval == 0); mdata = gbuf_cont(mdata))
2264 if ((len + sum) > datbuf.maxlen) {
2265 len = datbuf.maxlen - sum;
2271 if ((err = copyout((caddr_t)gbuf_rptr(mdata), CAST_USER_ADDR_T(&datbuf.buf[sum]), len)) != 0)
2274 sum += len;
2277 datbuf.len = sum;