Lines Matching refs:cur
602 struct net_pkt_cursor *cur = &pkt->cursor; in pkt_calc_chksum() local
605 if (!cur->buf || !cur->pos) { in pkt_calc_chksum()
609 len = cur->buf->len - (cur->pos - cur->buf->data); in pkt_calc_chksum()
611 while (cur->buf) { in pkt_calc_chksum()
612 sum = calc_chksum(sum, cur->pos, len); in pkt_calc_chksum()
614 cur->buf = cur->buf->frags; in pkt_calc_chksum()
615 if (!cur->buf || !cur->buf->len) { in pkt_calc_chksum()
619 cur->pos = cur->buf->data; in pkt_calc_chksum()
622 sum += *cur->pos; in pkt_calc_chksum()
623 if (sum < *cur->pos) { in pkt_calc_chksum()
627 cur->pos++; in pkt_calc_chksum()
628 len = cur->buf->len - 1; in pkt_calc_chksum()
630 len = cur->buf->len; in pkt_calc_chksum()