/freebsd/sys/dev/ath/ |
H A D | if_ath_debug.c | 104 const struct ath_desc *ds; in ath_printrxbuf() local 107 for (i = 0, ds = bf->bf_desc; i < bf->bf_nseg; i++, ds++) { in ath_printrxbuf() 110 ix, ds, (const struct ath_desc *)bf->bf_daddr + i, in ath_printrxbuf() 111 ds->ds_link, ds->ds_data, in ath_printrxbuf() 113 ds->ds_ctl0, ds->ds_ctl1, in ath_printrxbuf() 114 ds->ds_hw[0], ds->ds_hw[1]); in ath_printrxbuf() 117 ds->ds_hw[2], ds->ds_hw[3], ds->ds_hw[4], in ath_printrxbuf() 118 ds->ds_hw[5], ds->ds_hw[6], ds->ds_hw[7], in ath_printrxbuf() 119 ds->ds_hw[8]); in ath_printrxbuf() 122 ds->ds_hw[2], ds->ds_hw[3], ds->ds_hw[4], in ath_printrxbuf() [all …]
|
/freebsd/sys/contrib/openzfs/module/zfs/ |
H A D | dsl_dataset.c | 102 static void dsl_dataset_set_remap_deadlist_object(dsl_dataset_t *ds, 104 static void dsl_dataset_unset_remap_deadlist_object(dsl_dataset_t *ds, 107 static void unload_zfeature(dsl_dataset_t *ds, spa_feature_t f); 119 parent_delta(dsl_dataset_t *ds, int64_t delta) in parent_delta() argument 124 if (ds->ds_reserved == 0) in parent_delta() 127 ds_phys = dsl_dataset_phys(ds); in parent_delta() 128 old_bytes = MAX(ds_phys->ds_unique_bytes, ds->ds_reserved); in parent_delta() 129 new_bytes = MAX(ds_phys->ds_unique_bytes + delta, ds->ds_reserved); in parent_delta() 136 dsl_dataset_block_born(dsl_dataset_t *ds, const blkptr_t *bp, dmu_tx_t *tx) in dsl_dataset_block_born() argument 145 dprintf_bp(bp, "ds=%p", ds); in dsl_dataset_block_born() [all …]
|
H A D | dsl_destroy.c | 55 dsl_destroy_snapshot_check_impl(dsl_dataset_t *ds, boolean_t defer) in dsl_destroy_snapshot_check_impl() argument 57 if (!ds->ds_is_snapshot) in dsl_destroy_snapshot_check_impl() 60 if (dsl_dataset_long_held(ds)) in dsl_destroy_snapshot_check_impl() 68 if (spa_version(ds->ds_dir->dd_pool->dp_spa) < in dsl_destroy_snapshot_check_impl() 78 if (ds->ds_userrefs > 0) in dsl_destroy_snapshot_check_impl() 84 if (dsl_dataset_phys(ds)->ds_num_children > 1) in dsl_destroy_snapshot_check_impl() 99 dsl_dataset_t *ds; in dsl_destroy_snapshot_check() local 101 error = dsl_dataset_hold(dp, dsname, FTAG, &ds); in dsl_destroy_snapshot_check() 112 error = dsl_destroy_snapshot_check_impl(ds, defer); in dsl_destroy_snapshot_check() 113 dsl_dataset_rele(ds, FTAG); in dsl_destroy_snapshot_check() [all …]
|
H A D | zcp_iter.c | 56 dsl_dataset_t *ds, *clone; in zcp_clones_iter() local 60 err = dsl_dataset_hold_obj(dp, dsobj, FTAG, &ds); in zcp_clones_iter() 69 if (dsl_dataset_phys(ds)->ds_next_clones_obj == 0) { in zcp_clones_iter() 70 dsl_dataset_rele(ds, FTAG); in zcp_clones_iter() 75 dsl_dataset_phys(ds)->ds_next_clones_obj, cursor); in zcp_clones_iter() 76 dsl_dataset_rele(ds, FTAG); in zcp_clones_iter() 137 dsl_dataset_t *ds = zcp_dataset_hold(state, dp, snapname, FTAG); in zcp_clones_list() local 138 if (ds == NULL) in zcp_clones_list() 140 boolean_t issnap = ds->ds_is_snapshot; in zcp_clones_list() 142 uint64_t dsobj = ds->ds_object; in zcp_clones_list() [all …]
|
H A D | zcp_get.c | 48 get_objset_type(dsl_dataset_t *ds, zfs_type_t *type) in get_objset_type() argument 52 error = dmu_objset_from_ds(ds, &os); in get_objset_type() 55 if (ds->ds_is_snapshot) { in get_objset_type() 77 get_objset_type_name(dsl_dataset_t *ds, char *str) in get_objset_type_name() argument 80 int error = get_objset_type(ds, &type); in get_objset_type_name() 161 dsl_dataset_t *ds = zcp_dataset_hold(state, dp, dataset_name, FTAG); in zcp_get_user_prop() local 162 if (ds == NULL) in zcp_get_user_prop() 166 error = dsl_prop_get_ds(ds, property_name, 1, ZAP_MAXVALUELEN, in zcp_get_user_prop() 168 dsl_dataset_rele(ds, FTAG); in zcp_get_user_prop() 187 get_dsl_dir_prop(dsl_dataset_t *ds, zfs_prop_t zfs_prop, in get_dsl_dir_prop() argument [all …]
|
H A D | dsl_userhold.c | 51 dsl_dataset_user_hold_check_one(dsl_dataset_t *ds, const char *htag, in dsl_dataset_user_hold_check_one() argument 67 if (ds != NULL && dsl_dataset_phys(ds)->ds_userrefs_obj != 0) { in dsl_dataset_user_hold_check_one() 70 error = zap_lookup(mos, dsl_dataset_phys(ds)->ds_userrefs_obj, in dsl_dataset_user_hold_check_one() 116 dsl_dataset_t *ds; in dsl_dataset_user_hold_check() local 129 error = dsl_dataset_hold(dp, name, FTAG, &ds); in dsl_dataset_user_hold_check() 132 error = dsl_dataset_user_hold_check_one(ds, htag, in dsl_dataset_user_hold_check() 134 dsl_dataset_rele(ds, FTAG); in dsl_dataset_user_hold_check() 155 dsl_dataset_user_hold_sync_one_impl(nvlist_t *tmpholds, dsl_dataset_t *ds, in dsl_dataset_user_hold_sync_one_impl() argument 158 dsl_pool_t *dp = ds->ds_dir->dd_pool; in dsl_dataset_user_hold_sync_one_impl() 164 if (dsl_dataset_phys(ds)->ds_userrefs_obj == 0) { in dsl_dataset_user_hold_sync_one_impl() [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/rsend/ |
H A D | send_encrypted_props.ksh | 51 destroy_dataset $TESTPOOL/ds "-r" 61 typeset snap=$TESTPOOL/ds@snap1 62 typeset snap2=$TESTPOOL/ds@snap2 68 log_must zfs create $TESTPOOL/ds 69 log_must zfs create $TESTPOOL/ds/ds1 77 log_must mkfile 1M /$TESTPOOL/ds/$TESTFILE0 78 log_must cp /$TESTPOOL/ds/$TESTFILE0 /$TESTPOOL/crypt/$TESTFILE0 79 typeset cksum=$(xxh128digest /$TESTPOOL/ds/$TESTFILE0) 123 ds=$TESTPOOL/recv 126 "-o keylocation=file://$keyfile $ds < $sendfile" [all …]
|
/freebsd/contrib/elftoolchain/libdwarf/ |
H A D | libdwarf_sections.c | 37 Dwarf_P_Section ds; in _dwarf_section_init() local 41 if ((ds = calloc(1, sizeof(struct _Dwarf_P_Section))) == NULL) { in _dwarf_section_init() 46 if ((ds->ds_name = strdup(name)) == NULL) { in _dwarf_section_init() 47 free(ds); in _dwarf_section_init() 53 ds->ds_cap = _SECTION_INIT_SIZE; in _dwarf_section_init() 54 if ((ds->ds_data = malloc((size_t) ds->ds_cap)) == NULL) { in _dwarf_section_init() 55 free(ds->ds_name); in _dwarf_section_init() 56 free(ds); in _dwarf_section_init() 60 STAILQ_INSERT_TAIL(&dbg->dbgp_seclist, ds, ds_next); in _dwarf_section_init() 64 *dsp = ds; in _dwarf_section_init() [all …]
|
H A D | libdwarf_reloc.c | 217 Dwarf_P_Section ds, unsigned char type, unsigned char length, in _dwarf_reloc_entry_add() argument 226 assert(offset <= ds->ds_size); in _dwarf_reloc_entry_add() 238 ret = dbg->write_alloc(&ds->ds_data, &ds->ds_cap, &offset, in _dwarf_reloc_entry_add() 241 ret = dbg->write_alloc(&ds->ds_data, &ds->ds_cap, &offset, in _dwarf_reloc_entry_add() 245 if (offset > ds->ds_size) in _dwarf_reloc_entry_add() 246 ds->ds_size = offset; in _dwarf_reloc_entry_add() 266 Dwarf_P_Section ds, unsigned char length, Dwarf_Unsigned offset, in _dwarf_reloc_entry_add_pair() argument 275 assert(offset <= ds->ds_size); in _dwarf_reloc_entry_add_pair() 280 ret = dbg->write_alloc(&ds->ds_data, &ds->ds_cap, &offset, in _dwarf_reloc_entry_add_pair() 284 if (offset > ds->ds_size) in _dwarf_reloc_entry_add_pair() [all …]
|
H A D | libdwarf_str.c | 74 Dwarf_Section *ds; in _dwarf_strtab_init() local 79 ds = _dwarf_find_section(dbg, ".debug_str"); in _dwarf_strtab_init() 80 if (ds == NULL) { in _dwarf_strtab_init() 86 dbg->dbg_strtab_cap = dbg->dbg_strtab_size = ds->ds_size; in _dwarf_strtab_init() 89 if ((dbg->dbg_strtab = malloc((size_t) ds->ds_size)) == in _dwarf_strtab_init() 94 memcpy(dbg->dbg_strtab, ds->ds_data, ds->ds_size); in _dwarf_strtab_init() 96 dbg->dbg_strtab = (char *) ds->ds_data; in _dwarf_strtab_init() 128 Dwarf_P_Section ds; in _dwarf_strtab_gen() local 133 if ((ret = _dwarf_section_init(dbg, &ds, ".debug_str", 0, error)) != in _dwarf_strtab_gen() 137 if (dbg->dbg_strtab_size > ds->ds_cap) { in _dwarf_strtab_gen() [all …]
|
H A D | libdwarf_attr.c | 98 _dwarf_attr_init(Dwarf_Debug dbg, Dwarf_Section *ds, uint64_t *offsetp, in _dwarf_attr_init() argument 116 atref.u[0].u64 = dbg->read(ds->ds_data, offsetp, in _dwarf_attr_init() 121 atref.u[0].u64 = _dwarf_read_uleb128(ds->ds_data, offsetp); in _dwarf_attr_init() 122 atref.u[1].u8p = _dwarf_read_block(ds->ds_data, offsetp, in _dwarf_attr_init() 126 atref.u[0].u64 = dbg->read(ds->ds_data, offsetp, 1); in _dwarf_attr_init() 127 atref.u[1].u8p = _dwarf_read_block(ds->ds_data, offsetp, in _dwarf_attr_init() 131 atref.u[0].u64 = dbg->read(ds->ds_data, offsetp, 2); in _dwarf_attr_init() 132 atref.u[1].u8p = _dwarf_read_block(ds->ds_data, offsetp, in _dwarf_attr_init() 136 atref.u[0].u64 = dbg->read(ds->ds_data, offsetp, 4); in _dwarf_attr_init() 137 atref.u[1].u8p = _dwarf_read_block(ds->ds_data, offsetp, in _dwarf_attr_init() [all …]
|
H A D | libdwarf_arange.c | 60 Dwarf_Section *ds; in _dwarf_arange_init() local 66 if ((ds = _dwarf_find_section(dbg, ".debug_aranges")) == NULL) in _dwarf_arange_init() 76 while (offset < ds->ds_size) { in _dwarf_arange_init() 86 length = dbg->read(ds->ds_data, &offset, 4); in _dwarf_arange_init() 89 length = dbg->read(ds->ds_data, &offset, 8); in _dwarf_arange_init() 94 as->as_version = dbg->read(ds->ds_data, &offset, 2); in _dwarf_arange_init() 101 as->as_cu_offset = dbg->read(ds->ds_data, &offset, dwarf_size); in _dwarf_arange_init() 113 as->as_addrsz = dbg->read(ds->ds_data, &offset, 1); in _dwarf_arange_init() 114 as->as_segsz = dbg->read(ds->ds_data, &offset, 1); in _dwarf_arange_init() 120 while (offset < ds->ds_size) { in _dwarf_arange_init() [all …]
|
/freebsd/sys/contrib/openzfs/include/sys/ |
H A D | dsl_dataset.h | 56 #define DS_IS_INCONSISTENT(ds) \ argument 57 (dsl_dataset_phys(ds)->ds_flags & DS_FLAG_INCONSISTENT) 76 #define DS_IS_DEFER_DESTROY(ds) \ argument 77 (dsl_dataset_phys(ds)->ds_flags & DS_FLAG_DEFER_DESTROY) 273 dsl_dataset_phys(dsl_dataset_t *ds) in dsl_dataset_phys() argument 275 return ((dsl_dataset_phys_t *)ds->ds_dbuf->db_data); in dsl_dataset_phys() 318 #define dsl_dataset_is_snapshot(ds) \ argument 319 (dsl_dataset_phys(ds)->ds_num_children != 0) 321 #define DS_UNIQUE_IS_ACCURATE(ds) \ argument 322 ((dsl_dataset_phys(ds)->ds_flags & DS_FLAG_UNIQUE_ACCURATE) != 0) [all …]
|
/freebsd/usr.bin/ministat/ |
H A D | ministat.c | 150 struct dataset *ds; in NewSet() local 152 ds = calloc(1, sizeof *ds); in NewSet() 153 assert(ds != NULL); in NewSet() 154 ds->lpoints = 100000; in NewSet() 155 ds->points = calloc(ds->lpoints, sizeof(*ds->points)); in NewSet() 156 assert(ds->points != NULL); in NewSet() 157 ds->syy = NAN; in NewSet() 158 return(ds); in NewSet() 162 AddPoint(struct dataset *ds, double a) in AddPoint() argument 166 if (ds->n >= ds->lpoints) { in AddPoint() [all …]
|
/freebsd/sys/kern/ |
H A D | subr_devstat.c | 53 #define DTRACE_DEVSTAT_BIO_START() SDT_PROBE2(io, , , start, bp, ds) 54 #define DTRACE_DEVSTAT_BIO_DONE() SDT_PROBE2(io, , , done, bp, ds) 66 static void devstat_add_entry(struct devstat *ds, const void *dev_name, 82 struct devstat *ds; in devstat_new_entry() local 86 ds = devstat_alloc(); in devstat_new_entry() 89 ds->unit_number = unit_number; in devstat_new_entry() 90 ds->id = dev_name; in devstat_new_entry() 91 binuptime(&ds->creation_time); in devstat_new_entry() 94 devstat_add_entry(ds, dev_name, unit_number, block_size, in devstat_new_entry() 98 return (ds); in devstat_new_entry() [all …]
|
/freebsd/sys/fs/devfs/ |
H A D | devfs_rule.c | 106 static int devfs_rule_autonumber(struct devfs_ruleset *ds, devfs_rnum *rnp); 119 static void devfs_ruleset_applyde(struct devfs_ruleset *ds, 122 static void devfs_ruleset_applydm(struct devfs_ruleset *ds, 143 struct devfs_ruleset *ds; in devfs_rules_apply() local 150 ds = devfs_ruleset_bynum(dm->dm_ruleset); in devfs_rules_apply() 151 KASSERT(ds != NULL, ("mount-point has NULL ruleset")); in devfs_rules_apply() 152 devfs_ruleset_applyde(ds, dm, de, devfs_rule_depth); in devfs_rules_apply() 162 struct devfs_ruleset *ds; in devfs_rules_ioctl() local 249 ds = dk->dk_ruleset; in devfs_rules_ioctl() 265 ds = devfs_ruleset_bynum(rid2rsn(dr->dr_id)); in devfs_rules_ioctl() [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_unmount/ |
H A D | zfs_unmount_nested.ksh | 71 ds=$(printf 'a/%.0s' {1..$(($d-1))})"a" 76 if ! ismounted $TESTPOOL/$ds; then 77 log_fail "$TESTPOOL/$ds not initially mounted" 83 log_must zfs snapshot $TESTPOOL/$ds@snap 85 log_must ls /$TESTPOOL/$ds/.zfs/snapshot/snap 86 log_must_nostderr zfs unmount $TESTPOOL/$ds 91 if ismounted $TESTPOOL/$ds; then 92 log_fail "$ds is mounted" 101 ds=$(printf 'b/%.0s' {1..$(($d-1))})"b" 106 if ! ismounted $TESTPOOL/$ds; then [all …]
|
/freebsd/contrib/libarchive/libarchive/ |
H A D | archive_read_support_format_cab.c | 143 struct lzx_dec *ds; member 2080 struct lzx_dec *ds; in lzx_decode_init() local 2085 if (strm->ds == NULL) { in lzx_decode_init() 2086 strm->ds = calloc(1, sizeof(*strm->ds)); in lzx_decode_init() 2087 if (strm->ds == NULL) in lzx_decode_init() 2090 ds = strm->ds; in lzx_decode_init() 2091 ds->error = ARCHIVE_FAILED; in lzx_decode_init() 2097 ds->error = ARCHIVE_FATAL; in lzx_decode_init() 2102 w_size = ds->w_size; in lzx_decode_init() 2104 ds->w_size = 1U << w_bits; in lzx_decode_init() [all …]
|
H A D | archive_read_support_format_lha.c | 145 struct lzh_dec *ds; member 1869 struct lzh_dec *ds; in lzh_decode_init() local 1872 if (strm->ds == NULL) { in lzh_decode_init() 1873 strm->ds = calloc(1, sizeof(*strm->ds)); in lzh_decode_init() 1874 if (strm->ds == NULL) in lzh_decode_init() 1877 ds = strm->ds; in lzh_decode_init() 1878 ds->error = ARCHIVE_FAILED; in lzh_decode_init() 1894 ds->error = ARCHIVE_FATAL; in lzh_decode_init() 1897 ds->w_size = 1U << 17; in lzh_decode_init() 1898 ds->w_mask = ds->w_size -1; in lzh_decode_init() [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_destroy/ |
H A D | zfs_destroy_014_pos.ksh | 47 for ds in $datasets; do 48 datasetexists $ds && destroy_dataset $ds -rf 56 for ds in $datasets; do 57 datasetexists $ds || log_fail "Create $ds dataset fail." 62 for ds in $datasets; do 63 datasetexists $ds@snap || log_fail "Create $ds@snap snapshot fail." 70 for ds in $datasets; do 71 datasetexists $ds@snap && log_fail "$ds@snap exists. Destroy failed!" 75 for ds in $datasets; do 76 datasetexists $ds || log_fail "Recursive snapshot destroy deleted $ds"
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_clone/ |
H A D | zfs_clone_010_pos.ksh | 40 for ds in $datasets; do 41 datasetexists $ds/$TESTCLONE.$i && \ 42 destroy_dataset $ds/$TESTCLONE.$i -rf 43 datasetexists $ds && destroy_dataset $ds -Rf 56 for ds in $datasets; do 57 datasetexists $ds || log_fail "Create $ds dataset fail." 62 for ds in $datasets; do 63 datasetexists $ds@snap || \ 64 log_fail "Create $ds@snap snapshot fail." 66 for ds in $datasets; do [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_copies/ |
H A D | zfs_copies_001_pos.ksh | 49 typeset ds 51 for ds in $fs1 $fs2 $vol1 $vol2; do 52 datasetexists $ds && destroy_dataset $ds 69 for ds in $fs $vol; do 70 cmp_prop $ds 1 81 for ds in $fs1 $vol1; do 82 cmp_prop $ds $val 93 for ds in $fs2 $vol2; do 94 cmp_prop $ds $val2 95 destroy_dataset $ds [all …]
|
/freebsd/tests/sys/cddl/zfs/tests/cli_root/zfs_copies/ |
H A D | zfs_copies_001_pos.ksh | 58 typeset ds 60 for ds in $fs1 $fs2 $vol1 $vol2; do 61 if datasetexists $ds; then 62 log_must $ZFS destroy $ds 80 for ds in $fs $vol; do 81 cmp_prop $ds 1 91 for ds in $fs1 $vol1; do 92 cmp_prop $ds $val 102 for ds in $fs2 $vol2; do 103 cmp_prop $ds $val2 [all …]
|
/freebsd/sys/fs/udf/ |
H A D | udf_vnops.c | 633 struct udf_dirstream *ds; in udf_opendir() local 635 ds = uma_zalloc(udf_zone_ds, M_WAITOK | M_ZERO); in udf_opendir() 637 ds->node = node; in udf_opendir() 638 ds->offset = offset; in udf_opendir() 639 ds->udfmp = udfmp; in udf_opendir() 640 ds->fsize = fsize; in udf_opendir() 642 return (ds); in udf_opendir() 646 udf_getfid(struct udf_dirstream *ds) in udf_getfid() argument 652 if (ds->offset + ds->off >= ds->fsize) { in udf_getfid() 653 ds->error = 0; in udf_getfid() [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_rollback/ |
H A D | zfs_rollback_004_neg.ksh | 51 typeset ds 53 for ds in $TESTPOOL $TESTPOOL/$TESTFS $TESTPOOL/$TESTVOL; do 54 snapexists ${ds}@$TESTSNAP && \ 55 destroy_dataset ${ds}@$TESTSNAP 65 for ds in $TESTPOOL $TESTPOOL/$TESTFS $TESTPOOL/$TESTVOL; do 66 log_must zfs snapshot ${ds}@$TESTSNAP 69 for ds in $TESTPOOL $TESTPOOL/$TESTFS $TESTPOOL/$TESTVOL; do 71 log_mustnot eval "zfs rollback $opt $ds >/dev/null 2>&1" 72 log_mustnot eval "zfs rollback $opt ${ds}@$TESTSNAP \ 73 ${ds}@$TESTSNAP >/dev/null 2>&1" [all …]
|