/freebsd-11-stable/sys/geom/uzip/ |
H A D | g_uzip_zlib.c | 56 struct g_uzip_zlib *zp; local 58 zp = (struct g_uzip_zlib *)zpp->pvt; 59 inflateEnd(&zp->zs); 60 free(zp, M_GEOM_UZIP); 68 struct g_uzip_zlib *zp; local 70 zp = (struct g_uzip_zlib *)zpp->pvt; 72 zp->zs.next_in = ibp; 73 zp->zs.avail_in = ilen; 74 zp->zs.next_out = obp; 75 zp 88 struct g_uzip_zlib *zp; local 110 struct g_uzip_zlib *zp; local [all...] |
/freebsd-11-stable/usr.bin/mkuzip/ |
H A D | mkuz_zlib.c | 48 struct mkuz_zlib *zp; local 59 zp = mkuz_safe_zmalloc(sizeof(struct mkuz_zlib)); 60 zp->oblen = compressBound(blksz); 61 zp->blksz = blksz; 63 return (void *)zp; 71 struct mkuz_zlib *zp; local 73 zp = (struct mkuz_zlib *)p; 75 rval = mkuz_blk_ctor(zp->oblen); 78 if (compress2(rval->data, &destlen_z, iblk->data, zp->blksz,
|
/freebsd-11-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/ |
H A D | zfs_byteswap.c | 161 znode_phys_t *zp = buf; local 165 zp->zp_crtime[0] = BSWAP_64(zp->zp_crtime[0]); 166 zp->zp_crtime[1] = BSWAP_64(zp->zp_crtime[1]); 167 zp->zp_atime[0] = BSWAP_64(zp->zp_atime[0]); 168 zp->zp_atime[1] = BSWAP_64(zp->zp_atime[1]); 169 zp [all...] |
H A D | zfs_sa.c | 71 zfs_sa_readlink(znode_t *zp, uio_t *uio) argument 73 dmu_buf_t *db = sa_get_db(zp->z_sa_hdl); 77 bufsz = zp->z_size; 84 if ((error = dmu_buf_hold(zp->z_zfsvfs->z_os, zp->z_id, 95 zfs_sa_symlink(znode_t *zp, char *link, int len, dmu_tx_t *tx) argument 97 dmu_buf_t *db = sa_get_db(zp->z_sa_hdl); 109 zfs_grow_blocksize(zp, len, tx); 110 VERIFY(0 == dmu_buf_hold(zp->z_zfsvfs->z_os, 111 zp 122 zfs_sa_get_scanstamp(znode_t *zp, xvattr_t *xvap) argument 156 zfs_sa_set_scanstamp(znode_t *zp, xvattr_t *xvap, dmu_tx_t *tx) argument 198 znode_t *zp = sa_get_userdata(hdl); local 313 zfs_sa_upgrade_txholds(dmu_tx_t *tx, znode_t *zp) argument [all...] |
H A D | zfs_dir.c | 200 znode_t *zp; local 214 error = zfs_zget(zfsvfs, parent, &zp); 216 *zpp = zp; 224 znode_t *zp; local 238 error = zfs_dirent_lookup(dzp, name, &zp, ZEXISTS); 241 *zpp = zp; 262 zfs_unlinked_add(znode_t *zp, dmu_tx_t *tx) argument 264 zfsvfs_t *zfsvfs = zp->z_zfsvfs; 266 ASSERT(zp->z_unlinked); 267 ASSERT(zp 283 znode_t *zp; local 417 zfs_rmnode(znode_t *zp) argument 548 zfs_dirent(znode_t *zp, uint64_t mode) argument 561 zfs_link_create(znode_t *dzp, const char *name, znode_t *zp, dmu_tx_t *tx, int flag) argument 662 zfs_dropname(znode_t *dzp, const char *name, znode_t *zp, dmu_tx_t *tx, int flag) argument 691 zfs_link_destroy(znode_t *dzp, const char *name, znode_t *zp, dmu_tx_t *tx, int flag, boolean_t *unlinkedp) argument 791 zfs_make_xattrdir(znode_t *zp, vattr_t *vap, vnode_t **xvpp, cred_t *cr) argument 877 zfs_get_xattrdir(znode_t *zp, vnode_t **xvpp, cred_t *cr, int flags) argument 947 zfs_sticky_remove_access(znode_t *zdp, znode_t *zp, cred_t *cr) argument [all...] |
H A D | zfs_znode.c | 121 znode_t *zp = buf; local 123 POINTER_INVALIDATE(&zp->z_zfsvfs); 125 list_link_init(&zp->z_link_node); 127 mutex_init(&zp->z_acl_lock, NULL, MUTEX_DEFAULT, NULL); 129 mutex_init(&zp->z_range_lock, NULL, MUTEX_DEFAULT, NULL); 130 avl_create(&zp->z_range_avl, zfs_range_compare, 133 zp->z_acl_cached = NULL; 134 zp->z_vnode = NULL; 135 zp->z_moved = 0; 143 znode_t *zp local 473 znode_t *zp; local 547 zfs_znode_sa_init(zfsvfs_t *zfsvfs, znode_t *zp, dmu_buf_t *db, dmu_object_type_t obj_type, sa_handle_t *sa_hdl) argument 576 zfs_znode_dmu_fini(znode_t *zp) argument 608 znode_t *zp; local 1019 zfs_xvattr_set(znode_t *zp, xvattr_t *xvap, dmu_tx_t *tx) argument 1114 znode_t *zp; local 1252 zfs_rezget(znode_t *zp) argument 1386 zfs_znode_delete(znode_t *zp, dmu_tx_t *tx) argument 1405 zfs_zinactive(znode_t *zp) argument 1440 zfs_znode_free(znode_t *zp) argument 1464 zfs_tstamp_update_setup(znode_t *zp, uint_t flag, uint64_t mtime[2], uint64_t ctime[2], boolean_t have_tx) argument 1507 zfs_grow_blocksize(znode_t *zp, uint64_t size, dmu_tx_t *tx) argument 1558 zfs_extend(znode_t *zp, uint64_t end) argument 1636 zfs_free_range(znode_t *zp, uint64_t off, uint64_t len) argument 1683 zfs_trunc(znode_t *zp, uint64_t end) argument 1761 zfs_freesp(znode_t *zp, uint64_t off, uint64_t len, int flag, boolean_t log) argument 1840 znode_t *zp; local 2243 zfs_znode_parent_and_name(znode_t *zp, znode_t **dzpp, char *buf) argument [all...] |
H A D | zfs_vnops.c | 95 * must be checked with ZFS_VERIFY_ZP(zp). Both of these macros 101 * can be freed, so the zp may point to freed memory. Second, the last 187 znode_t *zp = VTOZ(*vpp); local 188 zfsvfs_t *zfsvfs = zp->z_zfsvfs; 191 ZFS_VERIFY_ZP(zp); 193 if ((flag & FWRITE) && (zp->z_pflags & ZFS_APPENDONLY) && 199 if (!zfs_has_ctldir(zp) && zp->z_zfsvfs->z_vscan && 200 ZTOV(zp)->v_type == VREG && 201 !(zp 221 znode_t *zp = VTOZ(vp); local 253 znode_t *zp = VTOZ(vp); local 302 znode_t *zp; local 561 znode_t *zp = VTOZ(vp); local 631 znode_t *zp = VTOZ(vp); local 702 znode_t *zp = VTOZ(vp); local 854 znode_t *zp = VTOZ(vp); local 1250 znode_t *zp = zgd->zgd_private; local 1282 znode_t *zp; local 1413 znode_t *zp = VTOZ(vp); local 1531 znode_t *zp; local 1774 znode_t *zp, *dzp = VTOZ(dvp); local 1937 znode_t *zp = VTOZ(vp); local 2068 znode_t *zp, *dzp = VTOZ(dvp); local 2235 znode_t *zp = VTOZ(vp); local 2321 znode_t *zp = VTOZ(vp); local 2626 znode_t *zp = VTOZ(vp); local 2661 znode_t *zp = VTOZ(vp); local 2875 znode_t *zp = VTOZ(vp); local 3684 znode_t *zp, *zp1; local 4009 znode_t *zp, *dzp = VTOZ(dvp); local 4147 znode_t *zp = VTOZ(vp); local 4305 znode_t *zp = VTOZ(vp); local 4355 znode_t *zp = VTOZ(vp); local 4421 znode_t *zp, *xzp; local 4502 znode_t *zp = VTOZ(vp); local 4520 znode_t *zp = VTOZ(vp); local 4542 znode_t *zp = VTOZ(vp); local 4639 znode_t *zp = VTOZ(vp); local 4825 znode_t *zp = VTOZ(vp); local 4916 znode_t *zp = VTOZ(vp); local 5386 znode_t *zp = VTOZ(vp); local 5935 znode_t *zp = VTOZ(vp); local 5994 znode_t *zp; local [all...] |
H A D | zfs_log.c | 241 znode_t *dzp, znode_t *zp, char *name, vsecattr_t *vsecp, 287 lr->lr_foid = zp->z_id; 288 lr->lr_mode = zp->z_mode; 289 if (!IS_EPHEMERAL(zp->z_uid)) { 290 lr->lr_uid = (uint64_t)zp->z_uid; 294 if (!IS_EPHEMERAL(zp->z_gid)) { 295 lr->lr_gid = (uint64_t)zp->z_gid; 299 (void) sa_lookup(zp->z_sa_hdl, SA_ZPL_GEN(zp->z_zfsvfs), &lr->lr_gen, 301 (void) sa_lookup(zp 240 zfs_log_create(zilog_t *zilog, dmu_tx_t *tx, uint64_t txtype, znode_t *dzp, znode_t *zp, char *name, vsecattr_t *vsecp, zfs_fuid_info_t *fuidp, vattr_t *vap) argument 376 zfs_log_link(zilog_t *zilog, dmu_tx_t *tx, uint64_t txtype, znode_t *dzp, znode_t *zp, char *name) argument 399 zfs_log_symlink(zilog_t *zilog, dmu_tx_t *tx, uint64_t txtype, znode_t *dzp, znode_t *zp, char *name, char *link) argument 464 zfs_log_write(zilog_t *zilog, dmu_tx_t *tx, int txtype, znode_t *zp, offset_t off, ssize_t resid, int ioflag) argument 541 zfs_log_truncate(zilog_t *zilog, dmu_tx_t *tx, int txtype, znode_t *zp, uint64_t off, uint64_t len) argument 564 zfs_log_setattr(zilog_t *zilog, dmu_tx_t *tx, int txtype, znode_t *zp, vattr_t *vap, uint_t mask_applied, zfs_fuid_info_t *fuidp) argument 626 zfs_log_acl(zilog_t *zilog, dmu_tx_t *tx, znode_t *zp, vsecattr_t *vsecp, zfs_fuid_info_t *fuidp) argument [all...] |
H A D | zfs_acl.c | 330 zfs_external_acl(znode_t *zp) argument 335 if (zp->z_is_sa) 347 if ((error = sa_lookup(zp->z_sa_hdl, SA_ZPL_ZNODE_ACL(zp->z_zfsvfs), 355 VERIFY(zp->z_is_sa && error == ENOENT); 367 zfs_acl_znode_info(znode_t *zp, int *aclsize, int *aclcount, argument 370 zfsvfs_t *zfsvfs = zp->z_zfsvfs; 375 ASSERT(MUTEX_HELD(&zp->z_acl_lock)); 376 if (zp->z_is_sa) { 377 if ((error = sa_size(zp 402 zfs_znode_acl_version(znode_t *zp) argument 444 zfs_acl_version_zp(znode_t *zp) argument 802 zfs_acl_xform(znode_t *zp, zfs_acl_t *aclp, cred_t *cr) argument 1058 zfs_acl_node_read(znode_t *zp, zfs_acl_t **aclpp, boolean_t will_modify) argument 1142 zfs_acl_chown_setattr(znode_t *zp) argument 1164 zfs_aclset_common(znode_t *zp, zfs_acl_t *aclp, cred_t *cr, dmu_tx_t *tx) argument 1437 zfs_acl_chmod_setattr(znode_t *zp, zfs_acl_t **aclp, uint64_t mode) argument 1771 zfs_getacl(znode_t *zp, vsecattr_t *vsecp, boolean_t skipaclchk, cred_t *cr) argument 1927 zfs_setacl(znode_t *zp, vsecattr_t *vsecp, boolean_t skipaclchk, cred_t *cr) argument 2031 zfs_zaccess_dataset_check(znode_t *zp, uint32_t v4_mode) argument 2100 zfs_zaccess_aces_check(znode_t *zp, uint32_t *working_mode, boolean_t anyaccess, cred_t *cr) argument 2224 zfs_has_access(znode_t *zp, cred_t *cr) argument 2238 zfs_zaccess_common(znode_t *zp, uint32_t v4_mode, uint32_t *working_mode, boolean_t *check_privs, boolean_t skipaclchk, cred_t *cr) argument 2292 zfs_zaccess_append(znode_t *zp, uint32_t *working_mode, boolean_t *check_privs, cred_t *cr) argument 2376 zfs_zaccess(znode_t *zp, int mode, int flags, boolean_t skipaclchk, cred_t *cr) argument 2539 zfs_zaccess_rwx(znode_t *zp, mode_t mode, int flags, cred_t *cr) argument 2548 zfs_zaccess_unix(znode_t *zp, mode_t mode, cred_t *cr) argument 2556 zfs_delete_final_check(znode_t *zp, znode_t *dzp, mode_t available_perms, cred_t *cr) argument 2608 zfs_zaccess_delete(znode_t *dzp, znode_t *zp, cred_t *cr) argument [all...] |
H A D | zfs_rlock.c | 37 * rl = zfs_range_lock(zp, off, len, lock_type); 104 zfs_range_lock_writer(znode_t *zp, rl_t *new) argument 106 avl_tree_t *tree = &zp->z_range_avl; 125 if (zp->z_vnode) { /* caller is ZPL */ 131 new->r_off = zp->z_size; 138 end_size = MAX(zp->z_size, new->r_off + len); 139 if (end_size > zp->z_blksz && (!ISP2(zp->z_blksz) || 140 zp->z_blksz < zp 356 zfs_range_lock_reader(znode_t *zp, rl_t *new) argument 426 zfs_range_lock(znode_t *zp, uint64_t off, uint64_t len, rl_type_t type) argument 463 zfs_range_unlock_reader(znode_t *zp, rl_t *remove) argument 532 znode_t *zp = rl->r_zp; local 570 znode_t *zp = rl->r_zp; local [all...] |
H A D | zfs_replay.c | 610 znode_t *dzp, *zp; local 621 if ((error = zfs_zget(zfsvfs, lr->lr_link_obj, &zp)) != 0) { 635 vn_lock(ZTOV(zp), LK_EXCLUSIVE | LK_RETRY); 636 error = VOP_LINK(ZTOV(dzp), ZTOV(zp), &cn /*,vflg*/); 637 VOP_UNLOCK(ZTOV(zp), 0); 640 VN_RELE(ZTOV(zp)); 724 znode_t *zp; local 732 if ((error = zfs_zget(zfsvfs, lr->lr_foid, &zp)) != 0) { 767 if (zp->z_size < eod) 771 error = vn_rdwr(UIO_WRITE, ZTOV(zp), dat 791 znode_t *zp; local 839 znode_t *zp; local 872 znode_t *zp; local 936 znode_t *zp; local 985 znode_t *zp; local [all...] |
H A D | zio.c | 892 abd_t *data, uint64_t lsize, uint64_t psize, const zio_prop_t *zp, 900 ASSERT(zp->zp_checksum >= ZIO_CHECKSUM_OFF && 901 zp->zp_checksum < ZIO_CHECKSUM_FUNCTIONS && 902 zp->zp_compress >= ZIO_COMPRESS_OFF && 903 zp->zp_compress < ZIO_COMPRESS_FUNCTIONS && 904 DMU_OT_IS_VALID(zp->zp_type) && 905 zp->zp_level < 32 && 906 zp->zp_copies > 0 && 907 zp->zp_copies <= spa_max_replication(spa)); 917 zio->io_prop = *zp; 891 zio_write(zio_t *pio, spa_t *spa, uint64_t txg, blkptr_t *bp, abd_t *data, uint64_t lsize, uint64_t psize, const zio_prop_t *zp, zio_done_func_t *ready, zio_done_func_t *children_ready, zio_done_func_t *physdone, zio_done_func_t *done, void *private, zio_priority_t priority, enum zio_flag flags, const zbookmark_phys_t *zb) argument 1347 zio_prop_t *zp = &zio->io_prop; local 1400 zio_prop_t *zp = &zio->io_prop; local 2341 zio_prop_t zp; local 2477 zio_prop_t *zp = &zio->io_prop; local 2759 zio_prop_t *zp = &zio->io_prop; local 2790 zio_prop_t *zp = &zio->io_prop; local [all...] |
H A D | zfs_vfsops.c | 996 zfs_owner_overquota(zfsvfs_t *zfsvfs, znode_t *zp, boolean_t isgroup) argument 1003 fuid = isgroup ? zp->z_gid : zp->z_uid; 1660 znode_t *zp = NULL; local 1717 if (error = zfs_zget(zfsvfs, zfsvfs->z_root, &zp)) { 1722 vp = ZTOV(zp); 2032 znode_t *zp; local 2079 for (zp = list_head(&zfsvfs->z_all_znodes); zp != NULL; 2080 zp 2237 znode_t *zp; local 2293 znode_t *zp; local 2437 znode_t *zp; local [all...] |
H A D | zap.c | 83 zap_phys_t *zp = zap_f_phys(zap); local 89 zp->zap_block_type = ZBT_HEADER; 90 zp->zap_magic = ZAP_MAGIC; 92 zp->zap_ptrtbl.zt_shift = ZAP_EMBEDDED_PTRTBL_SHIFT(zap); 94 zp->zap_freeblk = 2; /* block 1 will be the first leaf */ 95 zp->zap_num_leafs = 1; 96 zp->zap_num_entries = 0; 97 zp->zap_salt = zap->zap_salt; 98 zp->zap_normflags = zap->zap_normflags; 99 zp [all...] |
H A D | zfs_fuid.c | 384 zfs_fuid_map_ids(znode_t *zp, cred_t *cr, uid_t *uidp, uid_t *gidp) argument 386 *uidp = zfs_fuid_map_id(zp->z_zfsvfs, zp->z_uid, cr, ZFS_OWNER); 387 *gidp = zfs_fuid_map_id(zp->z_zfsvfs, zp->z_gid, cr, ZFS_GROUP);
|
H A D | dmu.c | 2046 zio_prop_t *zp, zbookmark_phys_t *zb) 2093 zp->zp_nopwrite = B_FALSE; 2097 zgd->zgd_db->db_size, zgd->zgd_db->db_size, zp, 2138 zio_prop_t zp; local 2149 dmu_write_policy(os, dn, db->db_level, WP_DMU_SYNC, &zp); 2156 return (dmu_sync_late_arrival(pio, os, done, zgd, &zp, &zb)); 2180 return (dmu_sync_late_arrival(pio, os, done, zgd, &zp, &zb)); 2238 zp.zp_nopwrite = B_FALSE; 2265 &zp, dmu_sync_ready, NULL, NULL, dmu_sync_done, dsa, 2336 dmu_write_policy(objset_t *os, dnode_t *dn, int level, int wp, zio_prop_t *zp) argument 2045 dmu_sync_late_arrival(zio_t *pio, objset_t *os, dmu_sync_cb_t *done, zgd_t *zgd, zio_prop_t *zp, zbookmark_phys_t *zb) argument [all...] |
/freebsd-11-stable/lib/libc/gen/ |
H A D | timezone.c | 109 struct zone *zp; local 112 for (zp = zonetab; zp->offset != -1;++zp) /* static tables */ 113 if (zp->offset == zone) { 114 if (dst && zp->dlzone) 115 return(zp->dlzone); 116 if (!dst && zp->stdzone) 117 return(zp->stdzone);
|
/freebsd-11-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/ |
H A D | zfs_znode.h | 66 #define ZFS_ATTR_SET(zp, attr, value, pflags, tx) \ 72 VERIFY(0 == sa_update(zp->z_sa_hdl, SA_ZPL_FLAGS(zp->z_zfsvfs), \ 227 ZTOV(znode_t *zp) argument 229 vnode_t *vp = zp->z_vnode; 231 ASSERT(vp != NULL && vp->v_data == zp); 237 znode_t *zp = (znode_t *)vp->v_data; local 239 ASSERT(zp != NULL && zp->z_vnode == vp); 240 return (zp); [all...] |
H A D | zfs_rlock.h | 63 rl_t *zfs_range_lock(znode_t *zp, uint64_t off, uint64_t len, rl_type_t type);
|
H A D | zfs_fuid.h | 111 extern void zfs_fuid_map_ids(struct znode *zp, cred_t *cr,
|
/freebsd-11-stable/libexec/bootpd/tools/bootptest/ |
H A D | print-bootp.c | 432 u_char *zp; /* points one past last non-zero byte */ 438 for (zp = ep; zp > bp; zp--) { 439 if (zp[-1] != 0) 444 if (zp == bp) { 451 if (zp + 2 > ep) 452 zp = ep; /* print them all normally */ 455 while (bp < zp) { 460 if (zp < e 431 u_char *zp; /* points one past last non-zero byte */ local [all...] |
/freebsd-11-stable/contrib/tzcode/zic/ |
H A D | zic.c | 139 static void outzone(const struct zone * zp, int ntzones); 152 const struct zone * zp, int ntzones); 728 register struct zone * zp; local 763 zp = &zones[i]; 764 zp->z_rules = NULL; 765 zp->z_nrules = 0; 773 zp = &zones[i]; 774 if (strcmp(zp->z_rule, rp->r_name) != 0) 776 zp->z_rules = rp; 777 zp 1894 register const struct zone * zp; local 1976 register const struct zone * zp; local [all...] |
/freebsd-11-stable/usr.sbin/tzsetup/ |
H A D | tzsetup.c | 397 struct zone *zp; local 414 zp = malloc(sizeof(*zp)); 415 if (zp == NULL) 416 errx(1, "malloc(%zu)", sizeof(*zp)); 421 zp->descr = strdup(descr); 422 if (zp->descr == NULL) 424 zp->filename = strdup(file); 425 if (zp->filename == NULL) 427 zp 534 struct zone *zp, *zp2; local 679 struct zone *zp = dmi->data; local [all...] |
/freebsd-11-stable/tools/tools/zfsboottest/ |
H A D | zfsboottest.c | 73 const znode_phys_t *zp = (const znode_phys_t *) dn->dn_bonus; local 78 if (off + n > zp->zp_size) 79 n = zp->zp_size - off;
|
/freebsd-11-stable/sys/cddl/contrib/opensolaris/common/zfs/ |
H A D | zfs_ioctl_compat.c | 1067 zfs_iocparm_t zp; 1072 zp.zfs_cmd = (uint64_t)zc; 1073 zp.zfs_cmd_size = sizeof(zfs_cmd_t); 1074 zp.zfs_ioctl_version = ZFS_IOCVER_CURRENT; 1075 return (ioctl(fd, ncmd, &zp)); 1078 zp.zfs_cmd = (uint64_t)zc; 1079 zp.zfs_cmd_size = sizeof(zfs_cmd_inlanes_t); 1080 zp.zfs_ioctl_version = ZFS_IOCVER_INLANES; 1081 return (ioctl(fd, ncmd, &zp)); 1084 zp [all...] |