Lines Matching defs:cursor
562 #define XFS_ISRESET_CURSOR(cursor) \
563 (!((cursor)->initted) && !((cursor)->hashval) && \
564 !((cursor)->blkno) && !((cursor)->offset))
576 attrlist_cursor_kern_t *cursor;
592 cursor = context->cursor;
593 ASSERT(cursor != NULL);
598 * If the buffer is large enough and the cursor is at the start,
600 * one buffer and another call using the cursor won't need to be
607 (XFS_ISRESET_CURSOR(cursor) &&
679 cursor->initted = 1;
680 cursor->blkno = 0;
682 if (sbp->hash == cursor->hashval) {
683 if (cursor->offset == count) {
687 } else if (sbp->hash > cursor->hashval) {
700 if (cursor->hashval != sbp->hash) {
701 cursor->hashval = sbp->hash;
702 cursor->offset = 0;
714 cursor->offset++;
2311 attrlist_cursor_kern_t *cursor;
2318 cursor = context->cursor;
2319 cursor->initted = 1;
2329 if (be32_to_cpu(entry->hashval) == cursor->hashval) {
2330 if (cursor->offset == context->dupcnt) {
2336 cursor->hashval) {
2356 if (be32_to_cpu(entry->hashval) != cursor->hashval) {
2357 cursor->hashval = be32_to_cpu(entry->hashval);
2358 cursor->offset = 0;
2415 cursor->offset++;