Home
last modified time | relevance | path

Searched refs:zs (Results 1 – 25 of 34) sorted by relevance

12

/illumos-gate/usr/src/uts/sun/io/
H A Dzs_async.c226 #define ZSA_GETBLOCK(zs, allocbcount) \ argument
236 zsa_callback, zs); \
244 mutex_enter(zs->zs_excl_hi); \
245 if (!(zs->zs_wreg[5] & ZSWR5_RTS)) { \
254 mutex_exit(zs->zs_excl_hi); \
272 if (zs->zs_wreg[5] & ZSWR5_RTS) \
276 } else if (zs->zs_wreg[5] & ZSWR5_RTS) { \
293 mutex_enter(zs->zs_excl_hi); \
295 ZSSETSOFT(zs); \
296 mutex_exit(zs->zs_excl_hi); \
[all …]
H A Dzs_common.c70 #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; in zsattach() local
330 zs = &zscom[current_chip*2]; in zsattach()
334 if (!zs->zs_resume || (zs->zs_resume)(zs) != DDI_SUCCESS) in zsattach()
339 zs++; in zsattach()
[all …]
H A Dzs_hdlc.c102 zs_h_log[zs_h_log_n++] = 'A' + zs->zs_unit; \
113 if (zsh_h_log_n[zs->zs_unit] >= ZSH_H_LOG_MAX) \
114 zsh_h_log_n[zs->zs_unit] = 0; \
115 zsh_h_log[zs->zs_unit][zsh_h_log_n[zs->zs_unit]++] = c; \
116 zsh_h_log[zs->zs_unit][zsh_h_log_n[zs->zs_unit]] = '\0'; \
121 for (p = &zsh_h_log[zs->zs_unit][ZSH_H_LOG_MAX]; \
122 p >= &zsh_h_log[zs->zs_unit][0]; p--) \
124 zsh_h_log_n[zs->zs_unit] = 0; \
164 static int zsh_start(struct zscom *zs, struct syncline *zss);
251 static void zsh_txint(struct zscom *zs);
[all …]
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Ddmu_zfetch.c129 dmu_zfetch_stream_fini(zstream_t *zs) in dmu_zfetch_stream_fini() argument
131 mutex_destroy(&zs->zs_lock); in dmu_zfetch_stream_fini()
132 zfs_refcount_destroy(&zs->zs_blocks); in dmu_zfetch_stream_fini()
133 kmem_free(zs, sizeof (*zs)); in dmu_zfetch_stream_fini()
137 dmu_zfetch_stream_remove(zfetch_t *zf, zstream_t *zs) in dmu_zfetch_stream_remove() argument
140 list_remove(&zf->zf_stream, zs); in dmu_zfetch_stream_remove()
141 dmu_zfetch_stream_fini(zs); in dmu_zfetch_stream_remove()
146 dmu_zfetch_stream_orphan(zfetch_t *zf, zstream_t *zs) in dmu_zfetch_stream_orphan() argument
149 list_remove(&zf->zf_stream, zs); in dmu_zfetch_stream_orphan()
150 zs->zs_fetch = NULL; in dmu_zfetch_stream_orphan()
[all …]
H A Dzap.c1277 zap_stats_ptrtbl(zap_t *zap, uint64_t *tbl, int len, zap_stats_t *zs) in zap_stats_ptrtbl() argument
1295 zap_leaf_stats(zap, l, zs); in zap_stats_ptrtbl()
1302 fzap_get_stats(zap_t *zap, zap_stats_t *zs) in fzap_get_stats() argument
1305 zs->zs_blocksize = 1ULL << bs; in fzap_get_stats()
1310 zs->zs_num_leafs = zap_f_phys(zap)->zap_num_leafs; in fzap_get_stats()
1311 zs->zs_num_entries = zap_f_phys(zap)->zap_num_entries; in fzap_get_stats()
1312 zs->zs_num_blocks = zap_f_phys(zap)->zap_freeblk; in fzap_get_stats()
1313 zs->zs_block_type = zap_f_phys(zap)->zap_block_type; in fzap_get_stats()
1314 zs->zs_magic = zap_f_phys(zap)->zap_magic; in fzap_get_stats()
1315 zs->zs_salt = zap_f_phys(zap)->zap_salt; in fzap_get_stats()
[all …]
H A Dzap_leaf.c809 zap_leaf_stats(zap_t *zap, zap_leaf_t *l, zap_stats_t *zs) in zap_leaf_stats() argument
814 zs->zs_leafs_with_2n_pointers[n]++; in zap_leaf_stats()
819 zs->zs_blocks_with_n5_entries[n]++; in zap_leaf_stats()
825 zs->zs_blocks_n_tenths_full[n]++; in zap_leaf_stats()
839 zs->zs_entries_using_n_chunks[n]++; in zap_leaf_stats()
847 zs->zs_buckets_with_n_entries[n]++; in zap_leaf_stats()
H A Dzvol.c490 zfs_soft_state_t *zs; in zvol_create_minor() local
548 zs = ddi_get_soft_state(zfsdev_state, minor); in zvol_create_minor()
549 zs->zss_type = ZSST_ZVOL; in zvol_create_minor()
550 zv = zs->zss_data = kmem_zalloc(sizeof (zvol_state_t), KM_SLEEP); in zvol_create_minor()
1176 zfs_soft_state_t *zs = NULL; in zvol_strategy() local
1190 zs = ddi_get_soft_state(zfsdev_state, getminor(bp->b_edev)); in zvol_strategy()
1191 if (zs == NULL) in zvol_strategy()
1193 else if (zs->zss_type != ZSST_ZVOL) in zvol_strategy()
1203 zv = zs->zss_data; in zvol_strategy()
H A Dzap_micro.c1537 zap_get_stats(objset_t *os, uint64_t zapobj, zap_stats_t *zs) in zap_get_stats() argument
1546 bzero(zs, sizeof (zap_stats_t)); in zap_get_stats()
1549 zs->zs_blocksize = zap->zap_dbuf->db_size; in zap_get_stats()
1550 zs->zs_num_entries = zap->zap_m.zap_num_entries; in zap_get_stats()
1551 zs->zs_num_blocks = 1; in zap_get_stats()
1553 fzap_get_stats(zap, zs); in zap_get_stats()
/illumos-gate/usr/src/uts/common/zmod/
H A Dzmod.c42 z_stream zs; in z_uncompress() local
45 bzero(&zs, sizeof (zs)); in z_uncompress()
46 zs.next_in = (uchar_t *)src; in z_uncompress()
47 zs.avail_in = srclen; in z_uncompress()
48 zs.next_out = dst; in z_uncompress()
49 zs.avail_out = *dstlen; in z_uncompress()
56 if ((err = inflateInit2(&zs, DEF_WBITS | 0x20)) != Z_OK) in z_uncompress()
59 if ((err = inflate(&zs, Z_FINISH)) != Z_STREAM_END) { in z_uncompress()
60 (void) inflateEnd(&zs); in z_uncompress()
64 *dstlen = zs.total_out; in z_uncompress()
[all …]
/illumos-gate/usr/src/uts/sun/sys/
H A Dzsdev.h97 ((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->zs_wreg[reg] = val; \
123 ((uintptr_t)zs->zs_addr | ZSOFF))->zscc_control = reg; \
[all …]
/illumos-gate/usr/src/uts/common/idmap/
H A Didmap_kapi.c80 struct idmap_zone_specific *zs; member
115 kidmap_rpc_call(idmap_zone_specific_t *zs, uint32_t op,
119 kidmap_call_door(idmap_zone_specific_t *zs, door_arg_t *arg);
129 idmap_zone_specific_t *zs; in idmap_reg_dh() local
131 zs = idmap_get_zone_specific(zone); in idmap_reg_dh()
133 mutex_enter(&zs->zone_mutex); in idmap_reg_dh()
135 if (zs->door_valid) in idmap_reg_dh()
136 door_ki_rele(zs->door_handle); in idmap_reg_dh()
138 zs->door_handle = dh; in idmap_reg_dh()
139 zs->door_valid = 1; in idmap_reg_dh()
[all …]
/illumos-gate/usr/src/boot/libsa/zfs/
H A Dgzip.c31 z_stream zs; in z_uncompress() local
34 bzero(&zs, sizeof (zs)); in z_uncompress()
35 zs.next_in = (unsigned char *)src; in z_uncompress()
36 zs.avail_in = srclen; in z_uncompress()
37 zs.next_out = dst; in z_uncompress()
38 zs.avail_out = *dstlen; in z_uncompress()
45 if ((err = inflateInit2(&zs, 15 | 0x20)) != Z_OK) in z_uncompress()
48 if ((err = inflate(&zs, Z_FINISH)) != Z_STREAM_END) { in z_uncompress()
49 (void) inflateEnd(&zs); in z_uncompress()
53 *dstlen = zs.total_out; in z_uncompress()
[all …]
/illumos-gate/usr/src/common/pnglite/
H A Dpnglite.c247 png->zs = calloc(1, sizeof (z_stream)); in png_init_inflate()
249 stream = png->zs; in png_init_inflate()
255 free(png->zs); in png_init_inflate()
256 png->zs = NULL; in png_init_inflate()
269 z_stream *stream = png->zs; in png_end_inflate()
280 free(png->zs); in png_end_inflate()
281 png->zs = NULL; in png_end_inflate()
290 z_stream *stream = png->zs; in png_inflate()
369 if (!png->zs) { in png_process_chunk()
563 png->zs = NULL; in png_get_data()
[all …]
H A Dpnglite.h71 void *zs; /* pointer to z_stream */ member
/illumos-gate/usr/src/cmd/ztest/
H A Dztest.c228 (MAX(zs->zs_mirrors, 1) * (ztest_opts.zo_raidz_parity + 1) - 1)
875 ztest_kill(ztest_shared_t *zs) in ztest_kill() argument
877 zs->zs_alloc = metaslab_class_get_alloc(spa_normal_class(ztest_spa)); in ztest_kill()
878 zs->zs_space = metaslab_class_get_space(spa_normal_class(ztest_spa)); in ztest_kill()
2850 ztest_shared_t *zs = ztest_shared; in ztest_vdev_add_remove() local
2861 leaves = MAX(zs->zs_mirrors + zs->zs_splits, 1) * ztest_opts.zo_raidz; in ztest_vdev_add_remove()
2913 "log" : NULL, ztest_opts.zo_raidz, zs->zs_mirrors, 1); in ztest_vdev_add_remove()
2936 ztest_shared_t *zs = ztest_shared; in ztest_vdev_class_add() local
2956 if (zs->zs_mirrors < 2) { in ztest_vdev_class_add()
2967 leaves = MAX(zs->zs_mirrors + zs->zs_splits, 1) * ztest_opts.zo_raidz; in ztest_vdev_class_add()
[all …]
/illumos-gate/usr/src/uts/sun4/sys/
H A Dzsmach.h40 #define ZSFLUSH() (void) zs->zs_addr->zscc_control
41 #define ZSNEXTPOLL(zs, zscurr) argument
/illumos-gate/usr/src/lib/libctf/common/
H A Dctf_lib.c317 z_stream zs; in z_compress() local
320 bzero(&zs, sizeof (z_stream)); in z_compress()
321 zs.next_in = (uchar_t *)src; in z_compress()
322 zs.avail_in = srclen; in z_compress()
323 zs.next_out = dst; in z_compress()
324 zs.avail_out = *dstlen; in z_compress()
326 if ((err = zlib.z_initcomp(&zs, Z_BEST_COMPRESSION, ZLIB_VERSION, in z_compress()
330 if ((err = zlib.z_compress(&zs, Z_FINISH)) != Z_STREAM_END) { in z_compress()
331 (void) zlib.z_finicomp(&zs); in z_compress()
335 *dstlen = zs.total_out; in z_compress()
[all …]
/illumos-gate/usr/src/uts/sparc/os/
H A Dminor_perm9 zs:[a-z] 0666 root sys
10 zs:[a-z],cu 0600 uucp uucp
H A Dname_to_major2 zs 29
/illumos-gate/usr/src/common/bzip2/
H A Dbzlib.c399 #define ADD_CHAR_TO_BLOCK(zs,zchh0) \ argument
403 if (zchh != zs->state_in_ch && \
404 zs->state_in_len == 1) { \
405 UChar ch = (UChar)(zs->state_in_ch); \
406 BZ_UPDATE_CRC( zs->blockCRC, ch ); \
407 zs->inUse[zs->state_in_ch] = True; \
408 zs->block[zs->nblock] = (UChar)ch; \
409 zs->nblock++; \
410 zs->state_in_ch = zchh; \
414 if (zchh != zs->state_in_ch || \
[all …]
/illumos-gate/usr/src/uts/common/os/
H A Dzone.c6477 zone_def zs; in zone() local
6483 if (copyin(arg1, &zs, sizeof (zone_def))) { in zone()
6493 zs.zone_name = in zone()
6495 zs.zone_root = in zone()
6497 zs.zone_privs = in zone()
6500 zs.zone_privssz = zs32.zone_privssz; in zone()
6501 zs.rctlbuf = (caddr_t)(unsigned long)zs32.rctlbuf; in zone()
6502 zs.rctlbufsz = zs32.rctlbufsz; in zone()
6503 zs.zfsbuf = (caddr_t)(unsigned long)zs32.zfsbuf; in zone()
6504 zs.zfsbufsz = zs32.zfsbufsz; in zone()
[all …]
/illumos-gate/usr/src/cmd/nscd/
H A Dnscd_frontend.c344 priv_set_t *zs; /* zone */ in _nscd_check_client_priv() local
360 zs = priv_str_to_set("zone", ",", NULL); in _nscd_check_client_priv()
361 if (!priv_isequalset(eset, zs)) { in _nscd_check_client_priv()
367 priv_freeset(zs); in _nscd_check_client_priv()
/illumos-gate/usr/src/lib/passwdutil/
H A Dldap_attr.c221 priv_set_t *zs; /* zone */ in ldap_user_to_authenticate() local
224 zs = priv_str_to_set("zone", ",", NULL); in ldap_user_to_authenticate()
225 priv = priv_isequalset(ps, zs); in ldap_user_to_authenticate()
227 priv_freeset(zs); in ldap_user_to_authenticate()
/illumos-gate/usr/src/cmd/zdb/
H A Dzdb.c333 zap_stats_t zs; in dump_zap_stats() local
335 error = zap_get_stats(os, object, &zs); in dump_zap_stats()
339 if (zs.zs_ptrtbl_len == 0) { in dump_zap_stats()
340 ASSERT(zs.zs_num_blocks == 1); in dump_zap_stats()
342 (u_longlong_t)zs.zs_blocksize, in dump_zap_stats()
343 (u_longlong_t)zs.zs_num_entries); in dump_zap_stats()
351 (u_longlong_t)zs.zs_ptrtbl_len); in dump_zap_stats()
353 (u_longlong_t)zs.zs_ptrtbl_zt_blk); in dump_zap_stats()
355 (u_longlong_t)zs.zs_ptrtbl_zt_numblks); in dump_zap_stats()
357 (u_longlong_t)zs.zs_ptrtbl_zt_shift); in dump_zap_stats()
[all …]
/illumos-gate/usr/src/uts/common/fs/zfs/sys/
H A Dzap_leaf.h242 struct zap_stats *zs);

12