/illumos-gate/usr/src/uts/common/zmod/ |
H A D | zmod.c | 42 z_stream zs; local 45 bzero(&zs, sizeof (zs)); 46 zs.next_in = (uchar_t *)src; 47 zs.avail_in = srclen; 48 zs.next_out = dst; 49 zs.avail_out = *dstlen; 56 if ((err = inflateInit2(&zs, DEF_WBITS | 0x20)) != Z_OK) 59 if ((err = inflate(&zs, Z_FINISH)) != Z_STREAM_END) { 60 (void) inflateEnd(&zs); 73 z_stream zs; local [all...] |
/illumos-gate/usr/src/boot/sys/boot/zfs/ |
H A D | gzip.c | 31 z_stream zs; local 34 bzero(&zs, sizeof (zs)); 35 zs.next_in = (unsigned char *)src; 36 zs.avail_in = srclen; 37 zs.next_out = dst; 38 zs.avail_out = *dstlen; 45 if ((err = inflateInit2(&zs, 15 | 0x20)) != Z_OK) 48 if ((err = inflate(&zs, Z_FINISH)) != Z_STREAM_END) { 49 (void) inflateEnd(&zs); [all...] |
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | dmu_zfetch.c | 116 dmu_zfetch_stream_remove(zfetch_t *zf, zstream_t *zs) argument 119 list_remove(&zf->zf_stream, zs); 120 mutex_destroy(&zs->zs_lock); 121 kmem_free(zs, sizeof (*zs)); 131 zstream_t *zs; local 136 while ((zs = list_head(&zf->zf_stream)) != NULL) 137 dmu_zfetch_stream_remove(zf, zs); 162 for (zstream_t *zs = list_head(&zf->zf_stream); 163 zs ! 188 zstream_t *zs = kmem_zalloc(sizeof (*zs), KM_SLEEP); local 209 zstream_t *zs; local [all...] |
H A D | zap_leaf.c | 842 zap_leaf_stats(zap_t *zap, zap_leaf_t *l, zap_stats_t *zs) argument 849 zs->zs_leafs_with_2n_pointers[n]++; 854 zs->zs_blocks_with_n5_entries[n]++; 860 zs->zs_blocks_n_tenths_full[n]++; 874 zs->zs_entries_using_n_chunks[n]++; 882 zs->zs_buckets_with_n_entries[n]++;
|
H A D | zap.c | 1254 zap_stats_ptrtbl(zap_t *zap, uint64_t *tbl, int len, zap_stats_t *zs) argument 1273 zap_leaf_stats(zap, l, zs); 1280 fzap_get_stats(zap_t *zap, zap_stats_t *zs) argument 1283 zs->zs_blocksize = 1ULL << bs; 1288 zs->zs_num_leafs = zap_f_phys(zap)->zap_num_leafs; 1289 zs->zs_num_entries = zap_f_phys(zap)->zap_num_entries; 1290 zs->zs_num_blocks = zap_f_phys(zap)->zap_freeblk; 1291 zs->zs_block_type = zap_f_phys(zap)->zap_block_type; 1292 zs->zs_magic = zap_f_phys(zap)->zap_magic; 1293 zs [all...] |
H A D | zap_micro.c | 1419 zap_get_stats(objset_t *os, uint64_t zapobj, zap_stats_t *zs) argument 1428 bzero(zs, sizeof (zap_stats_t)); 1431 zs->zs_blocksize = zap->zap_dbuf->db_size; 1432 zs->zs_num_entries = zap->zap_m.zap_num_entries; 1433 zs->zs_num_blocks = 1; 1435 fzap_get_stats(zap, zs);
|
H A D | zvol.c | 482 zfs_soft_state_t *zs; local 540 zs = ddi_get_soft_state(zfsdev_state, minor); 541 zs->zss_type = ZSST_ZVOL; 542 zv = zs->zss_data = kmem_zalloc(sizeof (zvol_state_t), KM_SLEEP); 1221 zfs_soft_state_t *zs = NULL; local 1236 zs = ddi_get_soft_state(zfsdev_state, getminor(bp->b_edev)); 1237 if (zs == NULL) 1239 else if (zs->zss_type != ZSST_ZVOL) 1249 zv = zs->zss_data;
|
H A D | zfs_ioctl.c | 5908 zfs_soft_state_t *zs; local 5922 zs = ddi_get_soft_state(zfsdev_state, minor); 5923 zs->zss_type = ZSST_CTLDEV; 5924 zfs_onexit_init((zfs_onexit_t **)&zs->zss_data);
|
/illumos-gate/usr/src/lib/passwdutil/ |
H A D | ldap_attr.c | 218 priv_set_t *zs; /* zone */ local 221 zs = priv_str_to_set("zone", ",", NULL); 222 priv = priv_isequalset(ps, zs); 224 priv_freeset(zs);
|
/illumos-gate/usr/src/uts/common/idmap/ |
H A D | idmap_kapi.c | 78 struct idmap_zone_specific *zs; member in struct:idmap_get_handle 113 kidmap_rpc_call(idmap_zone_specific_t *zs, uint32_t op, 118 kidmap_call_door(idmap_zone_specific_t *zs, door_arg_t *arg); 128 idmap_zone_specific_t *zs; local 130 zs = idmap_get_zone_specific(zone); 132 mutex_enter(&zs->zone_mutex); 134 if (zs->door_valid) 135 door_ki_rele(zs->door_handle); 137 zs->door_handle = dh; 138 zs 156 idmap_zone_specific_t *zs; local 188 idmap_zone_specific_t *zs; local 197 kidmap_call_door(idmap_zone_specific_t *zs, door_arg_t *arg) argument 309 idmap_zone_specific_t *zs; local 338 idmap_zone_specific_t *zs = arg; local 378 idmap_zone_specific_t *zs; local 401 idmap_zone_specific_t *zs; local 428 idmap_zone_specific_t *zs; local 505 idmap_zone_specific_t *zs; local 582 idmap_zone_specific_t *zs; local 670 idmap_zone_specific_t *zs; local 754 idmap_zone_specific_t *zs; local 831 idmap_zone_specific_t *zs; local 1397 kidmap_rpc_call(idmap_zone_specific_t *zs, uint32_t op, xdrproc_t xdr_args, caddr_t args, xdrproc_t xdr_res, caddr_t res) argument [all...] |
/illumos-gate/usr/src/uts/sun/io/ |
H A D | zs_common.c | 70 #define KIOIP KSTAT_INTR_PTR(zs->intrstats) 127 void zsopinit(struct zscom *zs, struct zsops *zso); 129 static void zsnull_intr(struct zscom *zs); 130 static int zsnull_softint(struct zscom *zs); 131 static int zsnull_suspend(struct zscom *zs); 132 static int zsnull_resume(struct zscom *zs); 313 struct zscom *zs; local 330 zs = &zscom[current_chip*2]; 334 if (!zs->zs_resume || (zs 711 struct zscom *zs; local 771 struct zscom *zs; local 854 struct zscom *zs; local 896 zsopinit(struct zscom *zs, struct zsops *zso) argument 916 zsmctl(struct zscom *zs, int bits, int how) argument 981 struct zscom *zs = zspp->zs; local 1062 zsnull_intr(struct zscom *zs) argument 1077 zsnull_softint(struct zscom *zs) argument 1087 zsnull_suspend(struct zscom *zs) argument 1112 zsnull_resume(struct zscom *zs) argument [all...] |
H A D | zs_hdlc.c | 101 zs_h_log[zs_h_log_n++] = 'A' + zs->zs_unit; \ 112 if (zsh_h_log_n[zs->zs_unit] >= ZSH_H_LOG_MAX) \ 113 zsh_h_log_n[zs->zs_unit] = 0; \ 114 zsh_h_log[zs->zs_unit][zsh_h_log_n[zs->zs_unit]++] = c; \ 115 zsh_h_log[zs->zs_unit][zsh_h_log_n[zs->zs_unit]] = '\0'; \ 120 for (p = &zsh_h_log[zs->zs_unit][ZSH_H_LOG_MAX]; \ 121 p >= &zsh_h_log[zs->zs_unit][0]; p--) \ 123 zsh_h_log_n[zs 442 register struct zscom *zs; local 479 zsh_init_port(struct zscom *zs, struct syncline *zss) argument 522 register struct zscom *zs; local 639 struct zscom *zs; local 804 zsh_hdp_ok_or_rts_state(struct zscom *zs, struct syncline *zss) argument 830 register struct zscom *zs; local 1133 zsh_start(struct zscom *zs, struct syncline *zss) argument 1235 register struct zscom *zs = (struct zscom *)stp->str_com; local 1389 zsh_setmode(struct zscom *zs, struct syncline *zss, struct scc_mode *sm) argument 1450 zsh_txint(struct zscom *zs) argument 1563 zsh_xsint(struct zscom *zs) argument 1676 zsh_rxint(struct zscom *zs) argument 1716 zsh_srint(struct zscom *zs) argument 1768 zsh_softint(struct zscom *zs) argument 1905 zsh_program(struct zscom *zs, struct scc_mode *sm) argument 2060 zsh_setmstat(struct zscom *zs, int event) argument 2085 zsh_rxbad(struct zscom *zs, struct syncline *zss) argument 2123 zsh_txbad(struct zscom *zs, struct syncline *zss) argument 2153 struct zscom *zs = arg; local 2286 struct zscom *zs = arg; local [all...] |
H A D | zs_async.c | 224 #define ZSA_GETBLOCK(zs, allocbcount) \ 234 zsa_callback, zs); \ 242 mutex_enter(zs->zs_excl_hi); \ 243 if (!(zs->zs_wreg[5] & ZSWR5_RTS)) { \ 252 mutex_exit(zs->zs_excl_hi); \ 270 if (zs->zs_wreg[5] & ZSWR5_RTS) \ 272 cmn_err(CE_WARN, "zs%d: message lost\n", \ 274 } else if (zs->zs_wreg[5] & ZSWR5_RTS) { \ 291 mutex_enter(zs->zs_excl_hi); \ 293 ZSSETSOFT(zs); \ 497 zsa_null(struct zscom *zs) argument 511 zsa_null_int(struct zscom *zs) argument 557 register struct zscom *zs; local 672 zsa_init(struct zscom *zs) argument 717 register struct zscom *zs; local 915 struct zscom *zs = za->za_common; local 968 struct zscom *zs; local 1207 register struct zscom *zs; local 1620 struct zscom *zs; local 1639 zsa_txint(struct zscom *zs) argument 1700 zsa_xsint(struct zscom *zs) argument 1832 zsa_rxint(struct zscom *zs) argument 1955 zsa_srint(struct zscom *zs) argument 2079 zsa_softint(struct zscom *zs) argument 2350 zsa_start(struct zscom *zs) argument 2556 struct zscom *zs = arg; local 2586 struct zscom *zs = arg; local 2706 struct zscom *zs = za->za_common; local 2742 register struct zscom *zs = za->za_common; local 2973 register struct zscom *zs = za->za_common; local 3130 register struct zscom *zs; local 3153 struct zscom *zs = arg; local 3205 zsa_suspend(struct zscom *zs) argument 3302 zsa_resume(struct zscom *zs) argument 3342 zsa_print_info(struct zscom *zs) argument [all...] |
/illumos-gate/usr/src/uts/sun/sys/ |
H A D | zsdev.h | 35 * All interfaces described in this file are private to the Sun 'zs' driver 97 ((uintptr_t)zs->zs_addr | ZSOFF))->zscc_control = reg; \ 100 ((uintptr_t)zs->zs_addr | ZSOFF))->zscc_control = val; \ 102 zs->zs_wreg[reg] = val; \ 106 ((uintptr_t)zs->zs_addr & ~ZSOFF))->zscc_control = reg; \ 109 ((uintptr_t)zs->zs_addr & ~ZSOFF))->zscc_control = val; \ 111 zs->zs_wreg[reg] = val; \ 114 zs->zs_addr->zscc_control = reg; \ 116 zs->zs_addr->zscc_control = val; \ 118 zs 278 struct zscom *zs; /* common data for this channel */ member in struct:zs_prog [all...] |
/illumos-gate/usr/src/cmd/nscd/ |
H A D | nscd_frontend.c | 337 priv_set_t *zs; /* zone */ local 353 zs = priv_str_to_set("zone", ",", NULL); 354 if (!priv_isequalset(eset, zs)) { 360 priv_freeset(zs);
|
/illumos-gate/usr/src/cmd/ldapcachemgr/ |
H A D | cachemgr.c | 1821 priv_set_t *zs; /* zone */ local 1837 zs = priv_str_to_set("zone", ",", NULL); 1838 if (priv_isequalset(ps, zs)) 1849 priv_freeset(zs);
|
/illumos-gate/usr/src/lib/libsldap/common/ |
H A D | ns_writes.c | 1309 priv_set_t *zs; /* zone */ local 1312 zs = priv_str_to_set("zone", ",", NULL); 1313 priv = priv_isequalset(ps, zs); 1315 priv_freeset(zs);
|
H A D | ns_reads.c | 2996 priv_set_t *zs; local 3016 zs = priv_str_to_set("zone", ",", NULL); 3017 priv = priv_isequalset(ps, zs); 3019 priv_freeset(zs);
|
/illumos-gate/usr/src/cmd/truss/ |
H A D | expound.c | 5114 zfs_stat_t *zs = &zc.zc_stat; local 5116 if (zs->zs_gen) { 5118 (u_longlong_t)zs->zs_gen); 5120 if (zs->zs_mode) { 5122 (u_longlong_t)zs->zs_mode); 5124 if (zs->zs_links) { 5126 (u_longlong_t)zs->zs_links); 5128 if (zs->zs_ctime[0]) { 5130 (u_longlong_t)zs->zs_ctime[0]); 5132 if (zs [all...] |
/illumos-gate/usr/src/cmd/zdb/ |
H A D | zdb.c | 307 zap_stats_t zs; local 309 error = zap_get_stats(os, object, &zs); 313 if (zs.zs_ptrtbl_len == 0) { 314 ASSERT(zs.zs_num_blocks == 1); 316 (u_longlong_t)zs.zs_blocksize, 317 (u_longlong_t)zs.zs_num_entries); 325 (u_longlong_t)zs.zs_ptrtbl_len); 327 (u_longlong_t)zs.zs_ptrtbl_zt_blk); 329 (u_longlong_t)zs.zs_ptrtbl_zt_numblks); 331 (u_longlong_t)zs [all...] |
/illumos-gate/usr/src/cmd/ztest/ |
H A D | ztest.c | 204 (MAX(zs->zs_mirrors, 1) * (ztest_opts.zo_raidz_parity + 1) - 1) 775 ztest_kill(ztest_shared_t *zs) argument 777 zs->zs_alloc = metaslab_class_get_alloc(spa_normal_class(ztest_spa)); 778 zs->zs_space = metaslab_class_get_space(spa_normal_class(ztest_spa)); 2503 ztest_shared_t *zs = ztest_shared; local 2511 leaves = MAX(zs->zs_mirrors + zs->zs_splits, 1) * ztest_opts.zo_raidz; 2551 zs->zs_mirrors, 1); 2572 ztest_shared_t *zs = ztest_shared; local 2601 zs 2655 ztest_shared_t *zs = ztest_shared; local 2751 ztest_shared_t *zs = ztest_shared; local 4794 ztest_shared_t *zs = ztest_shared; local 5046 ztest_shared_t *zs = ztest_shared; local 5431 ztest_shared_t *zs = arg; local 5489 ztest_shared_t *zs = ztest_shared; local 5649 ztest_run(ztest_shared_t *zs) argument 5964 ztest_init(ztest_shared_t *zs) argument 6164 ztest_shared_t *zs = ztest_shared; local 6193 ztest_shared_t *zs; local [all...] |
/illumos-gate/usr/src/uts/common/os/ |
H A D | zone.c | 6442 zone_def zs; local 6448 if (copyin(arg1, &zs, sizeof (zone_def))) { 6458 zs.zone_name = 6460 zs.zone_root = 6462 zs.zone_privs = 6465 zs.zone_privssz = zs32.zone_privssz; 6466 zs.rctlbuf = (caddr_t)(unsigned long)zs32.rctlbuf; 6467 zs.rctlbufsz = zs32.rctlbufsz; 6468 zs.zfsbuf = (caddr_t)(unsigned long)zs32.zfsbuf; 6469 zs [all...] |