/freebsd/sys/contrib/openzfs/module/zfs/ |
H A D | zfs_ioctl.c | 275 static int zfs_ioc_userspace_upgrade(zfs_cmd_t *zc); 276 static int zfs_ioc_id_quota_upgrade(zfs_cmd_t *zc); 293 history_str_get(zfs_cmd_t *zc) in history_str_get() argument 297 if (zc->zc_history == 0) in history_str_get() 301 if (copyinstr((void *)(uintptr_t)zc->zc_history, in history_str_get() 355 zfs_log_history(zfs_cmd_t *zc) in zfs_log_history() argument 360 if ((buf = history_str_get(zc)) == NULL) in zfs_log_history() 363 if (spa_open(zc->zc_name, &spa, FTAG) == 0) { in zfs_log_history() 376 zfs_secpolicy_none(zfs_cmd_t *zc, nvlist_t *innvl, cred_t *cr) in zfs_secpolicy_none() argument 378 (void) zc, (void) innvl, (void) cr; in zfs_secpolicy_none() [all …]
|
H A D | spa_errlog.c | 428 zap_cursor_t *zc; in check_filesystem() local 431 zc = kmem_zalloc(sizeof (zap_cursor_t), KM_SLEEP); in check_filesystem() 434 for (zap_cursor_init(zc, spa->spa_meta_objset, zap_clone); in check_filesystem() 435 zap_cursor_retrieve(zc, za) == 0; in check_filesystem() 436 zap_cursor_advance(zc)) { in check_filesystem() 465 zap_cursor_fini(zc); in check_filesystem() 467 kmem_free(zc, sizeof (*zc)); in check_filesystem() 619 zap_cursor_t zc; in spa_add_healed_error() local 621 for (zap_cursor_init(&zc, spa->spa_meta_objset, spa->spa_errlog_last); in spa_add_healed_error() 622 zap_cursor_retrieve(&zc, za) == 0; zap_cursor_advance(&zc)) { in spa_add_healed_error() [all …]
|
H A D | zap_micro.c | 1757 zap_cursor_init_impl(zap_cursor_t *zc, objset_t *os, uint64_t zapobj, in zap_cursor_init_impl() argument 1760 zc->zc_objset = os; in zap_cursor_init_impl() 1761 zc->zc_zap = NULL; in zap_cursor_init_impl() 1762 zc->zc_leaf = NULL; in zap_cursor_init_impl() 1763 zc->zc_zapobj = zapobj; in zap_cursor_init_impl() 1764 zc->zc_serialized = serialized; in zap_cursor_init_impl() 1765 zc->zc_hash = 0; in zap_cursor_init_impl() 1766 zc->zc_cd = 0; in zap_cursor_init_impl() 1767 zc->zc_prefetch = prefetch; in zap_cursor_init_impl() 1770 zap_cursor_init_serialized(zap_cursor_t *zc, objset_t *os, uint64_t zapobj, in zap_cursor_init_serialized() argument [all …]
|
H A D | zcp_iter.c | 58 zap_cursor_t zc; in zcp_clones_iter() local 74 zap_cursor_init_serialized(&zc, dp->dp_meta_objset, in zcp_clones_iter() 79 err = zap_cursor_retrieve(&zc, za); in zcp_clones_iter() 81 zap_cursor_fini(&zc); in zcp_clones_iter() 90 zap_cursor_advance(&zc); in zcp_clones_iter() 91 cursor = zap_cursor_serialize(&zc); in zcp_clones_iter() 92 zap_cursor_fini(&zc); in zcp_clones_iter() 506 zap_cursor_t zc; in zcp_bookmarks_iter() local 538 zap_cursor_init_serialized(&zc, ds->ds_dir->dd_pool->dp_meta_objset, in zcp_bookmarks_iter() 543 err = zap_cursor_retrieve(&zc, za); in zcp_bookmarks_iter() [all …]
|
H A D | zap.c | 1112 zap_cursor_t zc; in zap_value_search() local 1119 for (zap_cursor_init(&zc, os, zapobj); in zap_value_search() 1120 (err = zap_cursor_retrieve(&zc, za)) == 0; in zap_value_search() 1121 zap_cursor_advance(&zc)) { in zap_value_search() 1128 zap_cursor_fini(&zc); in zap_value_search() 1136 zap_cursor_t zc; in zap_join() local 1140 for (zap_cursor_init(&zc, os, fromobj); in zap_join() 1141 zap_cursor_retrieve(&zc, za) == 0; in zap_join() 1142 (void) zap_cursor_advance(&zc)) { in zap_join() 1152 zap_cursor_fini(&zc); in zap_join() [all …]
|
H A D | dsl_deleg.c | 312 zap_cursor_t *basezc, *zc; in dsl_deleg_get() local 329 zc = kmem_alloc(sizeof (zap_cursor_t), KM_SLEEP); in dsl_deleg_get() 356 for (zap_cursor_init(zc, mos, baseza->za_first_integer); in dsl_deleg_get() 357 zap_cursor_retrieve(zc, za) == 0; in dsl_deleg_get() 358 zap_cursor_advance(zc)) { in dsl_deleg_get() 361 zap_cursor_fini(zc); in dsl_deleg_get() 377 kmem_free(zc, sizeof (zap_cursor_t)); in dsl_deleg_get() 484 zap_cursor_t zc; in dsl_load_sets() local 499 for (zap_cursor_init(&zc, mos, jumpobj); in dsl_load_sets() 500 zap_cursor_retrieve(&zc, za) == 0; in dsl_load_sets() [all …]
|
/freebsd/cddl/contrib/opensolaris/lib/pyzfs/common/ |
H A D | ioctl.c | 63 ioctl_with_cmdstr(int ioc, zfs_cmd_t *zc) in ioctl_with_cmdstr() argument 68 zc->zc_history = (uint64_t)(uintptr_t)cmdstr; in ioctl_with_cmdstr() 69 err = ioctl(zfsdevfd, ioc, zc); in ioctl_with_cmdstr() 188 add_ds_props(zfs_cmd_t *zc, PyObject *nvl) in add_ds_props() argument 190 dmu_objset_stats_t *s = &zc->zc_objset_stats; in add_ds_props() 201 ioctl_with_dstnv(int ioc, zfs_cmd_t *zc) in ioctl_with_dstnv() argument 209 zc->zc_nvlist_dst_size = nvsz; in ioctl_with_dstnv() 210 zc->zc_nvlist_dst = (uintptr_t)nvbuf; in ioctl_with_dstnv() 212 if (ioctl(zfsdevfd, ioc, zc) == 0) { in ioctl_with_dstnv() 215 errno = nvlist_unpack(nvbuf, zc->zc_nvlist_dst_size, &nvl, 0); in ioctl_with_dstnv() [all …]
|
/freebsd/contrib/bearssl/src/ssl/ |
H A D | ssl_ccert_single_ec.c | 54 br_ssl_client_certificate_ec_context *zc; in cc_choose() local 58 zc = (br_ssl_client_certificate_ec_context *)pctx; in cc_choose() 61 if ((zc->allowed_usages & BR_KEYTYPE_KEYX) != 0 in cc_choose() 62 && scurve == zc->sk->curve) in cc_choose() 66 x = (zc->issuer_key_type == BR_KEYTYPE_RSA) ? 16 : 17; in cc_choose() 70 choices->chain = zc->chain; in cc_choose() 71 choices->chain_len = zc->chain_len; in cc_choose() 80 if (x == 0 || (zc->allowed_usages & BR_KEYTYPE_SIGN) == 0) { in cc_choose() 86 choices->chain = zc->chain; in cc_choose() 87 choices->chain_len = zc->chain_len; in cc_choose() [all …]
|
H A D | ssl_rec_ccm.c | 71 br_ccm_context zc; in ccm_decrypt() local 96 br_ccm_init(&zc, &cc->bc.vtable); in ccm_decrypt() 97 br_ccm_reset(&zc, nonce, sizeof nonce, sizeof header, len, cc->tag_len); in ccm_decrypt() 98 br_ccm_aad_inject(&zc, header, sizeof header); in ccm_decrypt() 99 br_ccm_flip(&zc); in ccm_decrypt() 100 br_ccm_run(&zc, 0, buf, len); in ccm_decrypt() 101 if (!br_ccm_check_tag(&zc, buf + len)) { in ccm_decrypt() 152 br_ccm_context zc; in ccm_encrypt() local 178 br_ccm_init(&zc, &cc->bc.vtable); in ccm_encrypt() 179 br_ccm_reset(&zc, nonce, sizeof nonce, sizeof header, len, cc->tag_len); in ccm_encrypt() [all …]
|
H A D | ssl_ccert_single_rsa.c | 54 br_ssl_client_certificate_rsa_context *zc; in cc_choose() local 58 zc = (br_ssl_client_certificate_rsa_context *)pctx; in cc_choose() 65 choices->chain = zc->chain; in cc_choose() 66 choices->chain_len = zc->chain_len; in cc_choose() 104 br_ssl_client_certificate_rsa_context *zc; in cc_do_sign() local 109 zc = (br_ssl_client_certificate_rsa_context *)pctx; in cc_do_sign() 118 sig_len = (zc->sk->n_bitlen + 7) >> 3; in cc_do_sign() 122 return zc->irsasign(hash_oid, hv, hv_len, zc->sk, data) ? sig_len : 0; in cc_do_sign()
|
/freebsd/contrib/bearssl/tools/ |
H A D | client.c | 154 ccert_context *zc; in cc_start_name_list() local 156 zc = (ccert_context *)pctx; in cc_start_name_list() 157 if (zc->verbose) { in cc_start_name_list() 166 ccert_context *zc; in cc_start_name() local 168 zc = (ccert_context *)pctx; in cc_start_name() 169 if (zc->verbose) { in cc_start_name() 179 ccert_context *zc; in cc_append_name() local 181 zc = (ccert_context *)pctx; in cc_append_name() 182 if (zc->verbose) { in cc_append_name() 208 ccert_context *zc; in cc_end_name_list() local [all …]
|
/freebsd/sys/contrib/openzfs/lib/libzfs/ |
H A D | libzfs_config.c | 109 zfs_cmd_t zc = {"\0"}; in namespace_reload() local 129 zcmd_alloc_dst_nvlist(hdl, &zc, 0); in namespace_reload() 132 zc.zc_cookie = hdl->libzfs_ns_gen; in namespace_reload() 133 if (zfs_ioctl(hdl, ZFS_IOC_POOL_CONFIGS, &zc) != 0) { in namespace_reload() 139 zcmd_free_nvlists(&zc); in namespace_reload() 143 zcmd_expand_dst_nvlist(hdl, &zc); in namespace_reload() 147 zcmd_free_nvlists(&zc); in namespace_reload() 153 hdl->libzfs_ns_gen = zc.zc_cookie; in namespace_reload() 158 if (zcmd_read_dst_nvlist(hdl, &zc, &config) != 0) { in namespace_reload() 159 zcmd_free_nvlists(&zc); in namespace_reload() [all …]
|
H A D | libzfs_pool.c | 77 zfs_cmd_t zc = {"\0"}; in zpool_get_all_props() local 80 (void) strlcpy(zc.zc_name, zhp->zpool_name, sizeof (zc.zc_name)); in zpool_get_all_props() 86 zcmd_write_src_nvlist(hdl, &zc, innvl); in zpool_get_all_props() 89 zcmd_alloc_dst_nvlist(hdl, &zc, 0); in zpool_get_all_props() 91 while (zfs_ioctl(hdl, ZFS_IOC_POOL_GET_PROPS, &zc) != 0) { in zpool_get_all_props() 93 zcmd_expand_dst_nvlist(hdl, &zc); in zpool_get_all_props() 95 zcmd_free_nvlists(&zc); in zpool_get_all_props() 100 if (zcmd_read_dst_nvlist(hdl, &zc, &zhp->zpool_props) != 0) { in zpool_get_all_props() 101 zcmd_free_nvlists(&zc); in zpool_get_all_props() 105 zcmd_free_nvlists(&zc); in zpool_get_all_props() [all …]
|
H A D | libzfs_iter.c | 65 zfs_do_list_ioctl(zfs_handle_t *zhp, int arg, zfs_cmd_t *zc) in zfs_do_list_ioctl() argument 70 orig_cookie = zc->zc_cookie; in zfs_do_list_ioctl() 72 (void) strlcpy(zc->zc_name, zhp->zfs_name, sizeof (zc->zc_name)); in zfs_do_list_ioctl() 73 zc->zc_objset_stats.dds_creation_txg = 0; in zfs_do_list_ioctl() 74 rc = zfs_ioctl(zhp->zfs_hdl, arg, zc); in zfs_do_list_ioctl() 80 zcmd_expand_dst_nvlist(zhp->zfs_hdl, zc); in zfs_do_list_ioctl() 81 zc->zc_cookie = orig_cookie; in zfs_do_list_ioctl() 115 zfs_cmd_t zc = {"\0"}; in zfs_iter_filesystems_v2() local 122 zcmd_alloc_dst_nvlist(zhp->zfs_hdl, &zc, 0); in zfs_iter_filesystems_v2() 125 zc.zc_simple = B_TRUE; in zfs_iter_filesystems_v2() [all …]
|
H A D | libzfs_diff.c | 70 zfs_cmd_t zc = {"\0"}; in get_stats_for_obj() local 73 (void) strlcpy(zc.zc_name, dsname, sizeof (zc.zc_name)); in get_stats_for_obj() 74 zc.zc_obj = obj; in get_stats_for_obj() 77 error = zfs_ioctl(di->zhp->zfs_hdl, ZFS_IOC_OBJ_TO_STATS, &zc); in get_stats_for_obj() 81 (void) memcpy(sb, &zc.zc_stat, sizeof (zfs_stat_t)); in get_stats_for_obj() 84 (void) strlcpy(pn, zc.zc_value, maxlen); in get_stats_for_obj() 399 zfs_cmd_t zc = {"\0"}; in write_free_diffs() local 403 (void) strlcpy(zc.zc_name, di->fromsnap, sizeof (zc.zc_name)); in write_free_diffs() 404 zc.zc_obj = dr->ddr_first - 1; in write_free_diffs() 408 while (zc.zc_obj < dr->ddr_last) { in write_free_diffs() [all …]
|
H A D | libzfs_dataset.c | 330 get_stats_ioctl(zfs_handle_t *zhp, zfs_cmd_t *zc) in get_stats_ioctl() argument 334 (void) strlcpy(zc->zc_name, zhp->zfs_name, sizeof (zc->zc_name)); in get_stats_ioctl() 336 while (zfs_ioctl(hdl, ZFS_IOC_OBJSET_STATS, zc) != 0) { in get_stats_ioctl() 338 zcmd_expand_dst_nvlist(hdl, zc); in get_stats_ioctl() 353 zfs_cmd_t zc = {"\0"}; in get_recvd_props_ioctl() local 356 zcmd_alloc_dst_nvlist(hdl, &zc, 0); in get_recvd_props_ioctl() 358 (void) strlcpy(zc.zc_name, zhp->zfs_name, sizeof (zc.zc_name)); in get_recvd_props_ioctl() 360 while (zfs_ioctl(hdl, ZFS_IOC_OBJSET_RECVD_PROPS, &zc) ! in get_recvd_props_ioctl() 381 put_stats_zhdl(zfs_handle_t * zhp,zfs_cmd_t * zc) put_stats_zhdl() argument 413 zfs_cmd_t zc = {"\0"}; get_stats() local 439 make_dataset_handle_common(zfs_handle_t * zhp,zfs_cmd_t * zc) make_dataset_handle_common() argument 480 zfs_cmd_t zc = {"\0"}; make_dataset_handle() local 505 make_dataset_handle_zc(libzfs_handle_t * hdl,zfs_cmd_t * zc) make_dataset_handle_zc() argument 522 make_dataset_simple_handle_zc(zfs_handle_t * pzhp,zfs_cmd_t * zc) make_dataset_simple_handle_zc() argument 1797 zfs_cmd_t zc = {"\0"}; zfs_prop_set_list_flags() local 1980 zfs_cmd_t zc = {"\0"}; zfs_prop_inherit() local 2166 zfs_cmd_t zc = {"\0"}; get_numeric_property() local 3289 zfs_cmd_t zc = {"\0"}; zfs_prop_get_userquota_common() local 3359 zfs_cmd_t zc = {"\0"}; zfs_prop_get_written_int() local 3506 zfs_cmd_t zc = {"\0"}; check_parents() local 4491 zfs_cmd_t zc = {"\0"}; zfs_rename() local 4848 zfs_cmd_t zc = {"\0"}; zfs_smb_acl_mgmt() local 4926 zfs_cmd_t zc = {"\0"}; zfs_userspace() local 5214 zfs_cmd_t zc = {"\0"}; zfs_get_fsacl() local 5280 zfs_cmd_t zc = {"\0"}; zfs_set_fsacl() local [all...] |
/freebsd/sys/contrib/openzfs/module/os/linux/zfs/ |
H A D | zfs_ioctl_os.c | 133 zfs_cmd_t *zc; in zfsdev_ioctl() local 138 zc = vmem_zalloc(sizeof (zfs_cmd_t), KM_SLEEP); in zfsdev_ioctl() 140 if (ddi_copyin((void *)(uintptr_t)arg, zc, sizeof (zfs_cmd_t), 0)) { in zfsdev_ioctl() 144 error = -zfsdev_ioctl_common(vecnum, zc, 0); in zfsdev_ioctl() 145 rc = ddi_copyout(zc, (void *)(uintptr_t)arg, sizeof (zfs_cmd_t), 0); in zfsdev_ioctl() 149 vmem_free(zc, sizeof (zfs_cmd_t)); in zfsdev_ioctl() 155 zfs_ioc_userns_attach(zfs_cmd_t *zc) in zfs_ioc_userns_attach() argument 159 if (zc == NULL) in zfs_ioc_userns_attach() 162 error = zone_dataset_attach(CRED(), zc->zc_name, zc->zc_cleanup_fd); in zfs_ioc_userns_attach() 177 zfs_ioc_userns_detach(zfs_cmd_t *zc) in zfs_ioc_userns_detach() argument [all …]
|
/freebsd/sys/contrib/openzfs/lib/libzfs_core/ |
H A D | libzfs_core.c | 177 zfs_cmd_t zc = {"\0"}; in lzc_ioctl() local 191 (void) strlcpy(zc.zc_name, name, sizeof (zc.zc_name)); in lzc_ioctl() 195 zc.zc_nvlist_src = (uint64_t)(uintptr_t)packed; in lzc_ioctl() 196 zc.zc_nvlist_src_size = size; in lzc_ioctl() 202 zc.zc_nvlist_dst_size = fnvlist_lookup_uint64(source, in lzc_ioctl() 205 zc.zc_nvlist_dst_size = MAX(size * 2, 128 * 1024); in lzc_ioctl() 207 zc.zc_nvlist_dst = (uint64_t)(uintptr_t) in lzc_ioctl() 208 malloc(zc.zc_nvlist_dst_size); in lzc_ioctl() 209 if (zc.zc_nvlist_dst == (uint64_t)0) { in lzc_ioctl() 215 while (lzc_ioctl_fd(g_fd, ioc, &zc) != 0) { in lzc_ioctl() [all …]
|
/freebsd/sys/contrib/openzfs/lib/libzfs_core/os/freebsd/ |
H A D | libzfs_core_ioctl.c | 47 zcmd_ioctl_compat(int fd, int request, zfs_cmd_t *zc, const int cflag) in zcmd_ioctl_compat() argument 60 zp.zfs_cmd = (uint64_t)(uintptr_t)zc; in zcmd_ioctl_compat() 69 zfs_cmd_ozfs_to_legacy(zc, zc_c); in zcmd_ioctl_compat() 90 zfs_cmd_legacy_to_ozfs(zc_c, zc); in zcmd_ioctl_compat() 103 lzc_ioctl_fd(int fd, unsigned long request, zfs_cmd_t *zc) in lzc_ioctl_fd() argument 125 oldsize = zc->zc_nvlist_dst_size; in lzc_ioctl_fd() 126 ret = zcmd_ioctl_compat(fd, request, zc, cflag); in lzc_ioctl_fd() 128 if (ret == 0 && oldsize < zc->zc_nvlist_dst_size) { in lzc_ioctl_fd()
|
/freebsd/sys/contrib/openzfs/cmd/zinject/ |
H A D | zinject.c | 377 zfs_cmd_t zc = {"\0"}; in print_data_handler() 380 while (zfs_ioctl(g_zfs, ZFS_IOC_INJECT_LIST_NEXT, &zc) == 0) in print_data_handler() 381 if ((ret = func((int)zc.zc_guid, zc.zc_name, in print_data_handler() 382 &zc.zc_inject_record, data)) != 0) in print_data_handler() 591 zfs_cmd_t zc = {"\0"}; in register_handler() 593 zc.zc_guid = (uint64_t)id; in register_handler() 595 if (zfs_ioctl(g_zfs, ZFS_IOC_CLEAR_FAULT, &zc) != 0) { in register_handler() 624 zfs_cmd_t zc = {"\0"}; in perform_action() 626 zc in perform_action() 339 zfs_cmd_t zc = {"\0"}; iter_handlers() local 506 zfs_cmd_t zc = {"\0"}; cancel_one_handler() local 539 zfs_cmd_t zc = {"\0"}; cancel_handler() local 561 zfs_cmd_t zc = {"\0"}; register_handler() local 620 zfs_cmd_t zc = {"\0"}; perform_action() local [all...] |
/freebsd/sys/contrib/openzfs/lib/libzfs/os/freebsd/ |
H A D | libzfs_compat.c | 221 zfs_ioctl(libzfs_handle_t *hdl, int request, zfs_cmd_t *zc) in zfs_ioctl() argument 223 return (lzc_ioctl_fd(hdl->libzfs_fd, request, zc)); in zfs_ioctl() 283 zfs_cmd_t zc = {"\0"}; in zfs_jail() local 323 (void) strlcpy(zc.zc_name, zhp->zfs_name, sizeof (zc.zc_name)); in zfs_jail() 324 zc.zc_objset_type = DMU_OST_ZFS; in zfs_jail() 325 zc.zc_zoneid = jailid; in zfs_jail() 328 if ((ret = zfs_ioctl(hdl, cmd, &zc)) != 0) in zfs_jail() 341 zfs_cmd_t zc = {"\0"}; in zpool_nextboot() local 348 zcmd_write_src_nvlist(hdl, &zc, args); in zpool_nextboot() 349 int error = zfs_ioctl(hdl, ZFS_IOC_NEXTBOOT, &zc); in zpool_nextboot() [all …]
|
/freebsd/sys/contrib/openzfs/module/os/freebsd/zfs/ |
H A D | kmod_core.c | 125 zfs_cmd_t *zc; in zfsdev_ioctl() local 144 zc = vmem_zalloc(sizeof (zfs_cmd_t), KM_SLEEP); in zfsdev_ioctl() 152 vmem_free(zc, sizeof (zfs_cmd_t)); in zfsdev_ioctl() 160 zfs_cmd_legacy_to_ozfs(zcl, zc); in zfsdev_ioctl() 163 if (copyin(uaddr, zc, sizeof (zfs_cmd_t))) { in zfsdev_ioctl() 167 error = zfsdev_ioctl_common(vecnum, zc, 0); in zfsdev_ioctl() 170 zfs_cmd_ozfs_to_legacy(zc, zcl); in zfsdev_ioctl() 175 rc = copyout(zc, uaddr, sizeof (*zc)); in zfsdev_ioctl() 184 vmem_free(zc, sizeof (zfs_cmd_t)); in zfsdev_ioctl()
|
/freebsd/sys/contrib/openzfs/lib/libzfs/os/linux/ |
H A D | libzfs_util_os.c | 56 zfs_ioctl(libzfs_handle_t *hdl, int request, zfs_cmd_t *zc) in zfs_ioctl() argument 58 return (ioctl(hdl->libzfs_fd, request, zc)); in zfs_ioctl() 221 zfs_cmd_t zc = {"\0"}; in zfs_userns() local 266 (void) strlcpy(zc.zc_name, zhp->zfs_name, sizeof (zc.zc_name)); in zfs_userns() 267 zc.zc_objset_type = DMU_OST_ZFS; in zfs_userns() 268 zc.zc_cleanup_fd = open(nspath, O_RDONLY); in zfs_userns() 269 if (zc.zc_cleanup_fd < 0) { in zfs_userns() 274 if ((ret = zfs_ioctl(hdl, cmd, &zc)) != 0) in zfs_userns() 277 (void) close(zc.zc_cleanup_fd); in zfs_userns()
|
/freebsd/sys/contrib/openzfs/include/sys/ |
H A D | spa_checksum.h | 56 #define ZIO_CHECKSUM_IS_ZERO(zc) \ argument 57 (0 == ((zc)->zc_word[0] | (zc)->zc_word[1] | \ 58 (zc)->zc_word[2] | (zc)->zc_word[3]))
|
/freebsd/sys/contrib/zstd/lib/compress/ |
H A D | zstd_compress.c | 1827 static size_t ZSTD_resetCCtx_internal(ZSTD_CCtx* zc, in ZSTD_resetCCtx_internal() argument 1834 ZSTD_cwksp* const ws = &zc->workspace; in ZSTD_resetCCtx_internal() 1839 zc->isFirstBlock = 1; in ZSTD_resetCCtx_internal() 1844 zc->appliedParams = *params; in ZSTD_resetCCtx_internal() 1845 params = &zc->appliedParams; in ZSTD_resetCCtx_internal() 1852 ZSTD_ldm_adjustParameters(&zc->appliedParams.ldmParams, ¶ms->cParams); in ZSTD_resetCCtx_internal() 1869 int const indexTooClose = ZSTD_indexTooCloseToMax(zc->blockState.matchState.window); in ZSTD_resetCCtx_internal() 1872 (indexTooClose || dictTooBig || !zc->initialized) ? ZSTDirp_reset : ZSTDirp_continue; in ZSTD_resetCCtx_internal() 1876 … ¶ms->cParams, ¶ms->ldmParams, zc->staticSize != 0, params->useRowMatchFinder, in ZSTD_resetCCtx_internal() 1882 if (!zc->staticSize) ZSTD_cwksp_bump_oversized_duration(ws, 0); in ZSTD_resetCCtx_internal() [all …]
|