| /f-stack/app/redis-5.0.5/src/ |
| H A D | ziplist.c | 252 #define ZIPLIST_ENTRY_TAIL(zl) ((zl)+intrev32ifbe(ZIPLIST_TAIL_OFFSET(zl))) argument 256 #define ZIPLIST_ENTRY_END(zl) ((zl)+intrev32ifbe(ZIPLIST_BYTES(zl))-1) argument 590 zl = zrealloc(zl,len); in ziplistResize() 1063 zl = __ziplistDelete(zl,*p,1); in ziplistDelete() 1400 zl = pop(zl,ZIPLIST_TAIL); in ziplistTest() 1403 zl = pop(zl,ZIPLIST_HEAD); in ziplistTest() 1406 zl = pop(zl,ZIPLIST_TAIL); in ziplistTest() 1409 zl = pop(zl,ZIPLIST_TAIL); in ziplistTest() 1592 zl = ziplistDelete(zl,&p); in ziplistTest() 1603 zl = ziplistDeleteRange(zl, 0, 1); in ziplistTest() [all …]
|
| H A D | ziplist.h | 39 unsigned char *ziplistPush(unsigned char *zl, unsigned char *s, unsigned int slen, int where); 40 unsigned char *ziplistIndex(unsigned char *zl, int index); 41 unsigned char *ziplistNext(unsigned char *zl, unsigned char *p); 42 unsigned char *ziplistPrev(unsigned char *zl, unsigned char *p); 44 unsigned char *ziplistInsert(unsigned char *zl, unsigned char *p, unsigned char *s, unsigned int sl… 45 unsigned char *ziplistDelete(unsigned char *zl, unsigned char **p); 46 unsigned char *ziplistDeleteRange(unsigned char *zl, int index, unsigned int num); 49 unsigned int ziplistLen(unsigned char *zl); 50 size_t ziplistBlobLen(unsigned char *zl); 51 void ziplistRepr(unsigned char *zl);
|
| H A D | t_zset.c | 1024 zl = ziplistDelete(zl,&p); in zzlDelete() 1025 zl = ziplistDelete(zl,&p); in zzlDelete() 1083 zl = zzlInsertAt(zl,NULL,ele,score); in zzlInsert() 1103 zl = ziplistDelete(zl,&eptr); in zzlDeleteRangeByScore() 1104 zl = ziplistDelete(zl,&eptr); in zzlDeleteRangeByScore() 1130 zl = ziplistDelete(zl,&eptr); in zzlDeleteRangeByLex() 1131 zl = ziplistDelete(zl,&eptr); in zzlDeleteRangeByLex() 1884 it->zl.zl = op->subject->ptr; in zuiInitIterator() 1885 it->zl.eptr = ziplistIndex(it->zl.zl,0); in zuiInitIterator() 1887 it->zl.sptr = ziplistNext(it->zl.zl,it->zl.eptr); in zuiInitIterator() [all …]
|
| H A D | quicklist.c | 141 node->zl = NULL; in quicklistCreateNode() 528 node->zl = zl; in quicklistAppendZiplist() 559 zfree(zl); in quicklistAppendValuesFromZiplist() 617 node->zl = ziplistDelete(node->zl, p); in quicklistDelIndex() 702 if ((ziplistMerge(&a->zl, &b->zl))) { in _quicklistZiplistMerge() 805 memcpy(new_node->zl, node->zl, zl_sz); in _quicklistSplitNode() 883 node->zl = ziplistInsert(node->zl, next, value, sz); in _quicklistInsert() 891 node->zl = ziplistInsert(node->zl, entry->zi, value, sz); in _quicklistInsert() 931 new_node->zl = ziplistPush(new_node->zl, value, sz, in _quicklistInsert() 1199 memcpy(node->zl, current->zl, lzf_sz); in quicklistDup() [all …]
|
| H A D | t_hash.c | 67 zl = o->ptr; in hashTypeGetFromZiplist() 208 zl = o->ptr; in hashTypeSet() 219 zl = ziplistDelete(zl, &vptr); in hashTypeSet() 222 zl = ziplistInsert(zl, vptr, (unsigned char*)value, in hashTypeSet() 229 zl = ziplistPush(zl, (unsigned char*)field, sdslen(field), in hashTypeSet() 231 zl = ziplistPush(zl, (unsigned char*)value, sdslen(value), in hashTypeSet() 234 o->ptr = zl; in hashTypeSet() 285 zl = o->ptr; in hashTypeDelete() 290 zl = ziplistDelete(zl,&fptr); /* Delete the key. */ in hashTypeDelete() 291 zl = ziplistDelete(zl,&fptr); /* Delete the value. */ in hashTypeDelete() [all …]
|
| H A D | quicklist.h | 47 unsigned char *zl; member 128 void quicklistAppendZiplist(quicklist *quicklist, unsigned char *zl); 130 unsigned char *zl); 132 unsigned char *zl);
|
| H A D | geo.c | 37 unsigned char *zzlFirstInRange(unsigned char *zl, zrangespec *range); 233 unsigned char *zl = zobj->ptr; in geoGetPointsInRange() local 240 if ((eptr = zzlFirstInRange(zl, &range)) == NULL) { in geoGetPointsInRange() 245 sptr = ziplistNext(zl, eptr); in geoGetPointsInRange() 259 zzlNext(zl, &eptr, &sptr); in geoGetPointsInRange()
|
| H A D | object.c | 222 unsigned char *zl = ziplistNew(); in createZiplistObject() local 223 robj *o = createObject(OBJ_LIST,zl); in createZiplistObject() 243 unsigned char *zl = ziplistNew(); in createHashObject() local 244 robj *o = createObject(OBJ_HASH, zl); in createHashObject() 261 unsigned char *zl = ziplistNew(); in createZsetZiplistObject() local 262 robj *o = createObject(OBJ_ZSET,zl); in createZsetZiplistObject() 803 elesize += sizeof(quicklistNode)+ziplistBlobLen(node->zl); in objectComputeSize()
|
| H A D | rdb.c | 777 if ((n = rdbSaveRawString(rdb,node->zl,node->sz)) == -1) return -1; in rdbSaveObject() 1560 unsigned char *zl = in rdbLoadObject() local 1562 if (zl == NULL) return NULL; in rdbLoadObject() 1563 quicklistAppendZiplist(o->ptr, zl); in rdbLoadObject() 1587 unsigned char *zl = ziplistNew(); in rdbLoadObject() local 1596 zl = ziplistPush(zl, fstr, flen, ZIPLIST_TAIL); in rdbLoadObject() 1597 zl = ziplistPush(zl, vstr, vlen, ZIPLIST_TAIL); in rdbLoadObject() 1601 o->ptr = zl; in rdbLoadObject()
|
| H A D | server.h | 1677 unsigned char *zzlInsert(unsigned char *zl, sds ele, double score); 1682 void zzlNext(unsigned char *zl, unsigned char **eptr, unsigned char **sptr); 1683 void zzlPrev(unsigned char *zl, unsigned char **eptr, unsigned char **sptr); 1684 unsigned char *zzlFirstInRange(unsigned char *zl, zrangespec *range); 1685 unsigned char *zzlLastInRange(unsigned char *zl, zrangespec *range); 1700 unsigned char *zzlFirstInLexRange(unsigned char *zl, zlexrangespec *range); 1701 unsigned char *zzlLastInLexRange(unsigned char *zl, zlexrangespec *range);
|
| H A D | aof.c | 1007 unsigned char *zl = o->ptr; in rewriteSortedSetObject() local 1014 eptr = ziplistIndex(zl,0); in rewriteSortedSetObject() 1016 sptr = ziplistNext(zl,eptr); in rewriteSortedSetObject() 1037 zzlNext(zl,&eptr,&sptr); in rewriteSortedSetObject()
|
| H A D | debug.c | 151 unsigned char *zl = o->ptr; in xorObjectDigest() local 158 eptr = ziplistIndex(zl,0); in xorObjectDigest() 160 sptr = ziplistNext(zl,eptr); in xorObjectDigest() 178 zzlNext(zl,&eptr,&sptr); in xorObjectDigest()
|
| H A D | module.c | 2119 unsigned char *zl = key->value->ptr; in RM_ZsetRangeNext() local 2122 next = ziplistNext(zl,eptr); /* Skip element. */ in RM_ZsetRangeNext() 2123 if (next) next = ziplistNext(zl,next); /* Skip score. */ in RM_ZsetRangeNext() 2133 next = ziplistNext(zl,next); /* Skip next element. */ in RM_ZsetRangeNext() 2182 unsigned char *zl = key->value->ptr; in RM_ZsetRangePrev() local 2185 prev = ziplistPrev(zl,eptr); /* Go back to previous score. */ in RM_ZsetRangePrev() 2186 if (prev) prev = ziplistPrev(zl,prev); /* Back to previous ele. */ in RM_ZsetRangePrev() 2196 prev = ziplistNext(zl,prev); /* Skip element to get the score.*/ in RM_ZsetRangePrev()
|
| H A D | defrag.c | 428 if ((newzl = activeDefragAlloc(node->zl))) in activeDefragQuickListNodes() 429 defragged++, node->zl = newzl; in activeDefragQuickListNodes()
|
| /f-stack/freebsd/contrib/openzfs/module/zfs/ |
| H A D | zio.c | 596 *zl = (*zl == NULL) ? list_head(pl) : list_next(pl, *zl); in zio_walk_parents() 597 if (*zl == NULL) in zio_walk_parents() 611 *zl = (*zl == NULL) ? list_head(cl) : list_next(cl, *zl); in zio_walk_children() 612 if (*zl == NULL) in zio_walk_children() 622 zio_link_t *zl = NULL; in zio_unique_parent() local 642 zl->zl_parent = pio; in zio_add_child() 643 zl->zl_child = cio; in zio_add_child() 2012 zio_link_t *zl = NULL; in zio_deadman_impl() local 2326 zio_link_t *zl = NULL; in zio_reexecute() local 4717 zl = NULL; in zio_done() [all …]
|
| H A D | vdev_cache.c | 237 zio_link_t *zl = NULL; in vdev_cache_fill() local 238 while ((pio = zio_walk_parents(fio, &zl)) != NULL) in vdev_cache_fill()
|
| H A D | vdev_mirror.c | 452 zio_link_t *zl = NULL; in vdev_mirror_scrub_done() local 455 while ((pio = zio_walk_parents(zio, &zl)) != NULL) { in vdev_mirror_scrub_done()
|
| H A D | vdev_queue.c | 649 zio_link_t *zl = NULL; in vdev_queue_aggregate() local 852 while ((dio = zio_walk_parents(aio, &zl)) != NULL) { in vdev_queue_aggregate()
|
| H A D | vdev.c | 1508 zio_link_t *zl; in vdev_probe_done() local 1529 zl = NULL; in vdev_probe_done() 1530 while ((pio = zio_walk_parents(zio, &zl)) != NULL) in vdev_probe_done()
|
| /f-stack/freebsd/contrib/openzfs/module/os/linux/zfs/ |
| H A D | zfs_vnops_os.c | 2562 zfs_zlock_t *zl; in zfs_rename_unlock() local 2568 *zlpp = zl->zl_next; in zfs_rename_unlock() 2569 kmem_free(zl, sizeof (*zl)); in zfs_rename_unlock() 2582 zfs_zlock_t *zl; in zfs_rename_lock() local 2619 zl = kmem_alloc(sizeof (*zl), KM_SLEEP); in zfs_rename_lock() 2623 *zlpp = zl; in zfs_rename_lock() 2635 zl->zl_znode = zp; in zfs_rename_lock() 2673 zfs_zlock_t *zl; in zfs_rename() local 2710 zl = NULL; in zfs_rename() 2915 if (zl != NULL) in zfs_rename() [all …]
|