Home
last modified time | relevance | path

Searched refs:bs (Results 1 – 25 of 241) sorted by relevance

12345678910

/illumos-gate/usr/src/test/zfs-tests/tests/functional/holes/
H A Dholes_sanity.ksh36 for bs in 512 1024 2048 4096 8192 16384 32768 65536 131072; do
37 log_must zfs set recsize=$bs $TESTPOOL/$TESTFS
43 log_must mkholes -h 0:$((bs * 6)) $testfile
47 log_must mkholes -h 0:$((bs * 4)) -d $((bs * 4)):$((bs * 2)) $testfile
51 log_must mkholes -h 0:$((bs * 2)) -d $((bs * 2)):$((bs * 2)) \
52 -h $((bs * 4)):$((bs * 2)) $testfile
56 log_must mkholes -h 0:$((bs * 2)) -d $((bs * 2)):$((bs * 4)) $testfile
60 log_must mkholes -d 0:$((bs * 2)) -h $((bs * 2)):$((bs * 4)) $testfile
64 log_must mkholes -d 0:$((bs * 2)) -h $((bs * 2)):$((bs * 2)) \
65 -d $((bs * 4)):$((bs * 2)) $testfile
[all …]
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/
H A Dbitset.c38 bitset_free(bitset_t *bs) in bitset_free() argument
40 if (bs == NULL) in bitset_free()
42 if (bs->bs_set && bs->bs_words) in bitset_free()
43 mdb_free(bs->bs_set, bs->bs_words * sizeof (ulong_t)); in bitset_free()
44 mdb_free(bs, sizeof (*bs)); in bitset_free()
50 bitset_t *bs; in bitset_get() local
52 bs = mdb_zalloc(sizeof (*bs), UM_SLEEP); in bitset_get()
53 if (mdb_vread(bs, sizeof (*bs), bsaddr) == -1) { in bitset_get()
55 bitset_free(bs); in bitset_get()
59 bsaddr = (uintptr_t)bs->bs_set; in bitset_get()
[all …]
H A Ddamap.c66 bitset_free(bitset_t *bs, int embedded) in bitset_free() argument
68 if (bs == NULL) in bitset_free()
70 if (bs->bs_set && bs->bs_words) in bitset_free()
71 mdb_free(bs->bs_set, bs->bs_words * sizeof (ulong_t)); in bitset_free()
73 mdb_free(bs, sizeof (*bs)); /* not embedded, free */ in bitset_free()
79 bitset_t *bs; in bitset_get() local
81 bs = mdb_zalloc(sizeof (*bs), UM_SLEEP); in bitset_get()
82 if (mdb_vread(bs, sizeof (*bs), bsaddr) == -1) { in bitset_get()
84 bitset_free(bs, 0); in bitset_get()
88 bsaddr = (uintptr_t)bs->bs_set; in bitset_get()
[all …]
/illumos-gate/usr/src/uts/common/io/arn/
H A Darn_beacon.c229 struct ath9k_beacon_state bs; in arn_beacon_config() local
247 (void) memset(&bs, 0, sizeof (bs)); in arn_beacon_config()
282 bs.bs_intval = intval; in arn_beacon_config()
283 bs.bs_nexttbtt = nexttbtt; in arn_beacon_config()
284 bs.bs_dtimperiod = dtimperiod*intval; in arn_beacon_config()
285 bs.bs_nextdtim = bs.bs_nexttbtt + dtimcount*intval; in arn_beacon_config()
286 bs.bs_cfpperiod = cfpperiod*bs.bs_dtimperiod; in arn_beacon_config()
287 bs.bs_cfpnext = bs.bs_nextdtim + cfpcount*bs.bs_dtimperiod; in arn_beacon_config()
288 bs.bs_cfpmaxduration = 0; in arn_beacon_config()
297 bs.bs_bmissthreshold = conf.listen_interval * in arn_beacon_config()
[all …]
/illumos-gate/usr/src/cmd/fwflash/common/
H A Dfwflash.h366 #define ARMSWAPBITS(bs) (bs) argument
367 #define MLXSWAPBITS16(bs) ntohs(bs) argument
368 #define MLXSWAPBITS32(bs) ntohl(bs) argument
369 #define MLXSWAPBITS64(bs) \ argument
370 (BE_64(((bs) & LOWBITS64)) | BE_64(((bs) & HIGHBITS64)))
372 #define ARMSWAPBITS(bs) (LE_32(((bs) & LOWBITS32)) | LE_32(((bs) & HIGHBITS32))) argument
373 #define MLXSWAPBITS16(bs) (bs) argument
374 #define MLXSWAPBITS32(bs) (bs) argument
375 #define MLXSWAPBITS64(bs) (bs) argument
/illumos-gate/usr/src/cmd/fs.d/pcfs/fstyp/
H A Dfstyp.c90 struct bootsec bs; member
108 #define PC_BPSEC(h) ltohs((h)->bs.bps[0])
109 #define PC_RESSEC(h) ltohs((h)->bs.res_sec[0])
110 #define PC_NROOTENT(h) ltohs((h)->bs.rdirents[0])
111 #define PC_NSEC(h) ltohs((h)->bs.numsect[0])
234 bcopy(buf, &h->bs, sizeof (h->bs)); in read_bootsec()
239 h->bs.fatsec = ltohs(h->bs.fatsec); in read_bootsec()
240 h->bs.spt = ltohs(h->bs.spt); in read_bootsec()
241 h->bs.nhead = ltohs(h->bs.nhead); in read_bootsec()
242 h->bs.hiddensec = ltohi(h->bs.hiddensec); in read_bootsec()
[all …]
/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Dfsys_zfs.h187 #define ZAP_LEAF_HASH_SHIFT(bs) (bs - 5) argument
188 #define ZAP_LEAF_HASH_NUMENTRIES(bs) (1 << ZAP_LEAF_HASH_SHIFT(bs)) argument
189 #define LEAF_HASH(bs, h) \ argument
190 ((ZAP_LEAF_HASH_NUMENTRIES(bs)-1) & \
191 ((h) >> (64 - ZAP_LEAF_HASH_SHIFT(bs)-l->l_hdr.lh_prefix_len)))
198 #define ZAP_LEAF_NUMCHUNKS(bs) \ argument
199 (((1<<bs) - 2*ZAP_LEAF_HASH_NUMENTRIES(bs)) / \
207 #define ZAP_LEAF_CHUNK(l, bs, idx) \ argument
208 ((zap_leaf_chunk_t *)(l->l_hash + ZAP_LEAF_HASH_NUMENTRIES(bs)))[idx]
209 #define ZAP_LEAF_ENTRY(l, bs, idx) (&ZAP_LEAF_CHUNK(l, bs, idx).l_entry) argument
/illumos-gate/usr/src/cmd/fs.d/fd/
H A Dmount.c142 rpterr(char *bs, char *mp) in rpterr() argument
151 gettext("%s: %s no such device\n"), myname, bs); in rpterr()
157 myname, mp, bs); in rpterr()
162 myname, bs, mp); in rpterr()
166 myname, bs); in rpterr()
171 myname, bs, mp); in rpterr()
175 myname, bs); in rpterr()
179 gettext("%s: %s write-protected\n"), myname, bs); in rpterr()
185 myname, bs); in rpterr()
190 myname, bs); in rpterr()
/illumos-gate/usr/src/cmd/fs.d/proc/
H A Dmount.c140 rpterr(char *bs, char *mp) in rpterr() argument
149 myname, bs); in rpterr()
154 myname, mp, bs); in rpterr()
159 myname, bs, mp); in rpterr()
163 myname, bs); in rpterr()
168 myname, bs, mp); in rpterr()
172 myname, bs); in rpterr()
176 myname, bs); in rpterr()
182 myname, bs); in rpterr()
187 myname, bs); in rpterr()
/illumos-gate/usr/src/cmd/fs.d/udfs/mount/
H A Dmount.c144 rpterr(char *bs, char *mp) in rpterr() argument
153 gettext("%s: %s no such device\n"), myname, bs); in rpterr()
159 myname, mp, bs); in rpterr()
164 myname, bs, mp); in rpterr()
169 typename, bs); in rpterr()
174 myname, bs, mp); in rpterr()
178 gettext("%s: %s not a block device\n"), myname, bs); in rpterr()
183 myname, bs); in rpterr()
188 myname, bs); in rpterr()
193 gettext("%s: cannot mount %s\n"), myname, bs); in rpterr()
/illumos-gate/usr/src/lib/libc/port/locale/
H A Dbig5.c89 _BIG5State *bs; in _BIG5_mbrtowc() local
93 bs = (_BIG5State *)ps; in _BIG5_mbrtowc()
95 if ((bs->ch & ~0xFF) != 0) { in _BIG5_mbrtowc()
111 if (bs->ch != 0) { in _BIG5_mbrtowc()
116 wc = (bs->ch << 8) | (*s & 0xFF); in _BIG5_mbrtowc()
119 bs->ch = 0; in _BIG5_mbrtowc()
128 bs->ch = wc; in _BIG5_mbrtowc()
153 _BIG5State *bs; in _BIG5_wcrtomb() local
155 bs = (_BIG5State *)ps; in _BIG5_wcrtomb()
157 if (bs->ch != 0) { in _BIG5_wcrtomb()
/illumos-gate/usr/src/cmd/fs.d/mntfs/
H A Dmount.c139 rpterr(char *bs, char *mp) in rpterr() argument
148 myname, bs); in rpterr()
153 myname, mp, bs); in rpterr()
158 myname, bs, mp); in rpterr()
162 myname, bs); in rpterr()
167 myname, bs, mp); in rpterr()
171 myname, bs); in rpterr()
177 myname, bs); in rpterr()
182 myname, bs); in rpterr()
/illumos-gate/usr/src/cmd/fs.d/hsfs/mount/
H A Dmount.c239 rpterr(char *bs, char *mp) in rpterr() argument
248 myname, bs); in rpterr()
252 "component of %s is not a directory\n"), myname, mp, bs); in rpterr()
257 myname, bs, mp); in rpterr()
261 "system.\n"), typename, bs); in rpterr()
266 myname, bs, mp); in rpterr()
270 gettext("%s: %s not a block device\n"), myname, bs); in rpterr()
274 myname, bs); in rpterr()
279 myname, bs); in rpterr()
284 bs); in rpterr()
/illumos-gate/usr/src/test/zfs-tests/tests/functional/slog/
H A Dslog_replay_fs_001.ksh82 oflag=dsync,sync bs=1 count=1
115 log_must dd if=/dev/urandom of=/$TESTPOOL/$TESTFS/payload bs=1k count=8
138 bs=128k count=64 oflag=sync
141 log_must dd if=/dev/urandom of=/$TESTPOOL/$TESTFS/holes.1 bs=128k count=8
142 log_must dd if=/dev/zero of=/$TESTPOOL/$TESTFS/holes.1 bs=128k count=2
144 log_must dd if=/dev/urandom of=/$TESTPOOL/$TESTFS/holes.2 bs=128k count=8
145 log_must dd if=/dev/zero of=/$TESTPOOL/$TESTFS/holes.2 bs=128k count=2 seek=2
147 log_must dd if=/dev/urandom of=/$TESTPOOL/$TESTFS/holes.3 bs=128k count=8
148 log_must dd if=/dev/zero of=/$TESTPOOL/$TESTFS/holes.3 bs=128k count=2 \
164 log_must dd if=/dev/urandom of=/$TESTPOOL/$TESTFS/link_and_unlink bs=128k \
/illumos-gate/usr/src/uts/common/io/ath/
H A Dath_aux.c553 HAL_BEACON_STATE bs; in ath_beacon_config() local
556 bzero(&bs, sizeof (bs)); in ath_beacon_config()
557 bs.bs_intval = in->in_intval; in ath_beacon_config()
558 bs.bs_nexttbtt = nexttbtt; in ath_beacon_config()
559 bs.bs_dtimperiod = bs.bs_intval; in ath_beacon_config()
560 bs.bs_nextdtim = nexttbtt; in ath_beacon_config()
567 bs.bs_bmissthreshold = ic->ic_bmissthreshold; in ath_beacon_config()
568 if (bs.bs_bmissthreshold > 10) in ath_beacon_config()
569 bs.bs_bmissthreshold = 10; in ath_beacon_config()
570 else if (bs.bs_bmissthreshold < 1) in ath_beacon_config()
[all …]
/illumos-gate/usr/src/test/zfs-tests/tests/functional/nopwrite/
H A Dnopwrite_negative.ksh46 dd if=/dev/urandom of=$TESTDIR/file bs=1024k count=$MEGS conv=notrunc \
51 dd if=/$TESTDIR/file of=/$TESTDIR/clone/file bs=1024k count=$MEGS \
59 dd if=/dev/urandom of=$TESTDIR/file bs=1024k count=$MEGS conv=notrunc \
64 dd if=/$TESTDIR/file of=/$TESTDIR/clone/file bs=1024k count=$MEGS \
71 dd if=/dev/urandom of=$TESTDIR/file bs=1024k count=$MEGS conv=notrunc \
75 dd if=/$TESTDIR/file of=/$TESTDIR/clone/file bs=1024k count=$MEGS \
82 dd if=/dev/urandom of=$TESTDIR/file bs=1024k count=$MEGS conv=notrunc \
86 dd if=/$TESTDIR/file of=/$TESTDIR/clone/file bs=1024k count=$MEGS \
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_initialize/
H A Dzpool_initialize_verify_initialized.ksh72 bs=512
84 dd if=$SMALLFILE skip=$(($offset / $bs)) count=$(($size / $bs)) bs=$bs |
/illumos-gate/usr/src/lib/libxcurses/src/libc/xcurses/
H A Dwbrdr.c52 chtype ls, chtype rs, chtype ts, chtype bs, in wborder() argument
61 w, ls, rs, ts, bs, tl, tr, bl, br in wborder()
77 if (bs == 0) in wborder()
78 bs = ACS_HLINE; in wborder()
79 (void) __m_acs_cc(bs, &wbs); in wborder()
H A Dbrdr_st.c47 border_set(ls, rs, ts, bs, tl, tr, bl, br) in border_set() argument
48 const cchar_t *ls, *rs, *ts, *bs, *tl, *tr, *bl, *br; in border_set()
55 ls, rs, ts, bs, tl, tr, bl, br
59 code = wborder_set(stdscr, ls, rs, ts, bs, tl, tr, bl, br);
H A Dwbrdr_st.c51 wborder_set(w, ls, rs, ts, bs, tl, tr, bl, br) in wborder_set() argument
53 const cchar_t *ls, *rs, *ts, *bs, *tl, *tr, *bl, *br;
61 w, ls, rs, ts, bs, tl, tr, bl, br
82 (void) whline_set(w, bs, w->_maxx-2);
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dzap.c174 int bs = FZAP_BLOCK_SHIFT(zap); in zap_table_grow() local
175 int hepb = 1<<(bs-4); in zap_table_grow()
189 tbl->zt_blk << bs, tbl->zt_numblks << bs, in zap_table_grow()
200 (tbl->zt_blk + b) << bs, FTAG, &db_old, DMU_READ_NO_PREFETCH); in zap_table_grow()
207 (newblk + 2*b+0) << bs, FTAG, &db_new, DMU_READ_NO_PREFETCH)); in zap_table_grow()
214 (newblk + 2*b+1) << bs, FTAG, &db_new, DMU_READ_NO_PREFETCH)); in zap_table_grow()
229 tbl->zt_blk << bs, tbl->zt_numblks << bs, tx); in zap_table_grow()
248 int bs = FZAP_BLOCK_SHIFT(zap); in zap_table_store() local
255 uint64_t blk = idx >> (bs-3); in zap_table_store()
256 uint64_t off = idx & ((1<<(bs-3))-1); in zap_table_store()
[all …]
/illumos-gate/usr/src/lib/libnsl/nis/gen/
H A Dnis_subr.c855 struct nis_sdata *bs, /* User buffer structure */ in nis_get_static_storage() argument
862 if (!bs) in nis_get_static_storage()
865 if (!bs->buf) { in nis_get_static_storage()
866 bs->buf = malloc(sz); in nis_get_static_storage()
867 if (!bs->buf) in nis_get_static_storage()
869 bs->size = sz; in nis_get_static_storage()
873 } else if (bs->size < sz) { in nis_get_static_storage()
876 free(bs->buf); in nis_get_static_storage()
877 size_delta = - (bs->size); in nis_get_static_storage()
878 bs->buf = malloc(sz); in nis_get_static_storage()
[all …]
/illumos-gate/usr/src/lib/libxcurses2/src/libc/xcurses/
H A Dwbrdr.c55 chtype ls, chtype rs, chtype ts, chtype bs, in wborder() argument
73 if (bs == 0) in wborder()
74 bs = ACS_HLINE; in wborder()
75 (void) __m_acs_cc(bs, &wbs); in wborder()
/illumos-gate/usr/src/cmd/fs.d/pcfs/mkfs/
H A Dmkfs_main.c183 static int verify_bootblkfile(char *fn, boot_sector_t *bs);
1640 (void) memcpy(&(wbpb->bpb), &(ubpb.bs.bs_front.bs_bpb), in read_existing_bpb()
1642 (void) memcpy(&(wbpb->ebpb), &(ubpb.bs.bs_ebpb), sizeof (wbpb->ebpb)); in read_existing_bpb()
1644 swap_pack_grabbpb(wbpb, &(ubpb.bs)); in read_existing_bpb()
1648 (void) memcpy(&(wbpb->sunbpb), &(ubpb.bs.bs_sebpb), in read_existing_bpb()
1651 swap_pack_grabsebpb(wbpb, &(ubpb.bs)); in read_existing_bpb()
1678 swap_pack_grab32bpb(wbpb, &(ubpb.bs)); in read_existing_bpb()
2326 verify_bootblkfile(char *fn, boot_sector_t *bs) in verify_bootblkfile() argument
2339 } else if (read(bsfd, bs->buf, MINBPS) < MINBPS) { in verify_bootblkfile()
2344 if ((bs->bs.bs_signature[0] != (BOOTSECSIG & 0xFF) && in verify_bootblkfile()
[all …]
/illumos-gate/usr/src/test/zfs-tests/cmd/getholes/
H A Dgetholes.c72 uint64_t lz_holes, bs = 0; in print_list() local
76 if (0 == bs) in print_list()
77 if (zfs_get_hole_count(fname, &lz_holes, &bs) != 0) { in print_list()
89 hole_blks_seen += seg->seg_len / bs; in print_list()
91 data_blks_seen += seg->seg_len / bs; in print_list()

12345678910