Lines Matching refs:cursor

1768 	pkt->cursor.buf = pkt->buffer;
1769 if (pkt->cursor.buf) {
1770 pkt->cursor.pos = pkt->cursor.buf->data;
1772 pkt->cursor.pos = NULL;
1778 struct net_pkt_cursor *cursor = &pkt->cursor; local
1780 cursor->buf = cursor->buf->frags;
1781 while (cursor->buf) {
1783 write ? net_buf_max_len(cursor->buf) : cursor->buf->len;
1786 cursor->buf = cursor->buf->frags;
1792 if (cursor->buf) {
1793 cursor->pos = cursor->buf->data;
1795 cursor->pos = NULL;
1801 struct net_pkt_cursor *cursor = &pkt->cursor; local
1804 if (!cursor->buf) {
1808 len = write ? net_buf_max_len(cursor->buf) : cursor->buf->len;
1809 if ((cursor->pos - cursor->buf->data) == len) {
1817 struct net_pkt_cursor *cursor = &pkt->cursor; local
1824 len = write ? net_buf_max_len(cursor->buf) : cursor->buf->len;
1825 if (length + (cursor->pos - cursor->buf->data) == len &&
1827 len < net_buf_max_len(cursor->buf))) {
1830 cursor->pos += length;
1840 struct net_pkt_cursor *c_op = &pkt->cursor;
1959 if (data == pkt->cursor.pos && net_pkt_is_contiguous(pkt, length)) {
1970 struct net_pkt_cursor *c_dst = &pkt_dst->cursor;
1971 struct net_pkt_cursor *c_src = &pkt_src->cursor;
2172 net_pkt_cursor_restore(clone_pkt, &pkt->cursor);
2184 if (!pkt || !pkt->cursor.buf || !pkt->cursor.pos) {
2188 buf = pkt->cursor.buf;
2189 data_length = buf->len - (pkt->cursor.pos - buf->data);
2218 struct net_pkt_cursor *c_op = &pkt->cursor;
2273 if (!pkt->cursor.buf || !pkt->cursor.pos) {
2279 while (buf != pkt->cursor.buf) {
2284 offset += pkt->cursor.pos - buf->data;
2300 if (pkt->cursor.buf && pkt->cursor.pos) {
2304 pkt->cursor.buf->len : net_buf_max_len(pkt->cursor.buf);
2305 len -= pkt->cursor.pos - pkt->cursor.buf->data;
2321 return pkt->cursor.pos;
2324 access->data = pkt->cursor.pos;