Searched refs:blkno (Results 1 - 25 of 170) sorted by relevance

1234567

/netbsd-current/sbin/fsck_lfs/
H A Dfsck.h157 #define setbmap(blkno) setbit(blockmap, blkno)
158 #define testbmap(blkno) isset(blockmap, blkno)
159 #define clrbmap(blkno) clrbit(blockmap, blkno)
161 #define setbmap(blkno,ino) if(blkno > maxfsblock)raise(1); else blockmap[blkno] = ino
162 #define testbmap(blkno) blockma
[all...]
H A Dpass4.c149 daddr_t blkno = idesc->id_blkno; local
154 sn = lfs_dtosn(fs, blkno);
155 for (ndblks = idesc->id_numfrags; ndblks > 0; blkno++, ndblks--) {
156 if (chkrange(blkno, 1)) {
158 } else if (testbmap(blkno) || preen) {
160 if (dlp->dup != blkno)
169 clrbmap(blkno);
H A Dpass1.c354 daddr_t blkno = idesc->id_blkno; local
358 if ((anyout = chkrange(blkno, idesc->id_numfrags)) != 0) {
359 blkerror(idesc->id_number, "BAD", blkno);
369 } else if (!testbmap(blkno)) {
370 seg_table[lfs_dtosn(fs, blkno)].su_nbytes += idesc->id_numfrags * lfs_sb_getfsize(fs);
372 for (ndblks = idesc->id_numfrags; ndblks > 0; blkno++, ndblks--) {
373 if (anyout && chkrange(blkno, 1)) {
375 } else if (!testbmap(blkno)) {
378 setbmap(blkno);
380 setbmap(blkno, ides
[all...]
/netbsd-current/usr.bin/vndcompress/
H A Dofftab.c117 offtab_read_window(struct offtab *offtab, uint32_t blkno, int read_flags) argument
119 const uint32_t window_start = rounddown(blkno, offtab->ot_window_size);
153 offtab_maybe_read_window(struct offtab *offtab, uint32_t blkno, int read_flags) argument
156 /* Don't bother if blkno is already in the window. */
157 if ((offtab->ot_window_start <= blkno) &&
158 (blkno < offtab_current_window_end(offtab)))
161 if (!offtab_read_window(offtab, blkno, read_flags))
249 * blkno is the last valid blkno read from disk.
252 offtab_transmogrify_read_to_write(struct offtab *offtab, uint32_t blkno)
251 offtab_transmogrify_read_to_write(struct offtab *offtab, uint32_t blkno) argument
320 offtab_prepare_get(struct offtab *offtab, uint32_t blkno) argument
341 offtab_get(struct offtab *offtab, uint32_t blkno) argument
460 offtab_prepare_put(struct offtab *offtab, uint32_t blkno) argument
522 offtab_put(struct offtab *offtab, uint32_t blkno, uint64_t offset) argument
[all...]
H A Dvnduncompress.c163 uint32_t blkno; local
166 for (blkno = 0; blkno < n_blocks; blkno++) {
167 (void)offtab_prepare_get(&offtab, (blkno + 1));
170 const uint64_t end = offtab_get(&offtab, (blkno + 1));
176 blkno, start);
182 blkno, (end - start), start, end);
187 blkno, offset, (end - start));
193 err(1, "read block %"PRIu32, blkno);
[all...]
H A Dvndcompress.c69 uint32_t blkno; /* input block number */ member in struct:compress_state
157 * Compress the blocks. S->blkno specifies the input block
161 while (S->blkno < S->n_blocks) {
166 if ((0 < S->end_block) && (S->end_block <= S->blkno))
171 offtab_prepare_put(&S->offtab, (S->blkno + 1));
174 const uint32_t readsize = (S->blkno == S->n_full_blocks?
186 errx(1, "blkno %"PRIu32" may overflow: %ju + 2*%ju",
187 S->blkno, (uintmax_t)S->offset,
192 compress_block(S->image_fd, S->cloop2_fd, S->blkno,
201 assert(ADD_OK(uint32_t, S->blkno,
629 uint32_t blkno = 0; local
762 compress_block(int in_fd, int out_fd, uint32_t blkno, uint32_t blocksize, uint32_t readsize, void *uncompbuf, void *compbuf) argument
[all...]
/netbsd-current/sbin/dump/
H A Drcache.c196 rawread(daddr_t blkno, char *buf, int size) argument
206 if (lseek(diskfd, ((off_t) blkno << dev_bshift), SEEK_SET) == -1) {
212 if (blkno + (size >> dev_bshift) > ufsib->ufs_dsize) {
228 disk, strerror(errno), (long long)blkno, size);
232 disk, (long long)blkno, size, cnt);
249 for (i = 0; i < size; i += dev_bsize, buf += dev_bsize, blkno++) {
250 if (lseek(diskfd, ((off_t)blkno << dev_bshift),
261 (long long)blkno, dev_bsize);
266 disk, (long long)blkno, dev_bsize, cnt);
271 bread(daddr_t blkno, cha argument
[all...]
/netbsd-current/sbin/fsck_ext2fs/
H A Dpass1b.c111 daddr_t blkno = idesc->id_blkno; local
113 for (nfrags = idesc->id_numfrags; nfrags > 0; blkno++, nfrags--) {
114 if (chkrange(blkno, 1))
117 if (dlp->dup == blkno) {
118 blkerror(idesc->id_number, "DUP", blkno);
120 duphead->dup = blkno;
H A Dpass4.c142 daddr_t blkno = idesc->id_blkno; local
144 for (nfrags = idesc->id_numfrags; nfrags > 0; blkno++, nfrags--) {
145 if (chkrange(blkno, 1)) {
147 } else if (testbmap(blkno)) {
149 if (dlp->dup != blkno)
158 clrbmap(blkno);
H A Dfsck.h223 #define setbmap(blkno) setbit(blockmap, blkno)
224 #define testbmap(blkno) isset(blockmap, blkno)
225 #define clrbmap(blkno) clrbit(blockmap, blkno)
H A Dpass1.c335 daddr_t blkno = idesc->id_blkno; local
339 if ((anyout = chkrange(blkno, idesc->id_numfrags)) != 0) {
340 blkerror(idesc->id_number, "BAD", blkno);
351 for (nfrags = idesc->id_numfrags; nfrags > 0; blkno++, nfrags--) {
352 if (anyout && chkrange(blkno, 1)) {
354 } else if (!testbmap(blkno)) {
356 setbmap(blkno);
358 blkerror(idesc->id_number, "DUP", blkno);
375 new->dup = blkno;
384 if (dlp->dup == blkno)
[all...]
/netbsd-current/sbin/fsck_ffs/
H A Dpass1b.c104 daddr_t blkno = idesc->id_blkno; local
106 for (nfrags = idesc->id_numfrags; nfrags > 0; blkno++, nfrags--) {
107 if (chkrange(blkno, 1))
110 if (dlp->dup == blkno) {
111 blkerror(idesc->id_number, "DUP", blkno);
113 duphead->dup = blkno;
H A Dpass4.c164 daddr_t blkno = idesc->id_blkno; local
167 cg = dtog(sblock, blkno);
177 for (nfrags = idesc->id_numfrags; nfrags > 0; blkno++, nfrags--) {
178 if (chkrange(blkno, 1)) {
180 } else if (testbmap(blkno)) {
182 if (dlp->dup != blkno)
191 clrbmap(blkno);
194 dtogd(sblock, blkno));
/netbsd-current/sys/sys/
H A Dblist.h36 * blkno = blist_alloc(blist, count)
37 * (void) blist_free(blist, blkno, count)
38 * nblks = blist_fill(blist, blkno, count)
83 extern void blist_free(blist_t blist, blist_blkno_t blkno, blist_blkno_t count);
84 extern blist_blkno_t blist_fill(blist_t bl, blist_blkno_t blkno,
/netbsd-current/sys/crypto/chacha/arch/x86/
H A Dchacha_sse2_impl.c72 chacha_stream_sse2_impl(uint8_t *restrict s, size_t nbytes, uint32_t blkno, argument
79 chacha_stream_sse2(s, nbytes, blkno, nonce, key, nr);
85 uint32_t blkno,
92 chacha_stream_xor_sse2(c, p, nbytes, blkno, nonce, key, nr);
97 xchacha_stream_sse2_impl(uint8_t *restrict s, size_t nbytes, uint32_t blkno, argument
104 xchacha_stream_sse2(s, nbytes, blkno, nonce, key, nr);
110 uint32_t blkno,
117 xchacha_stream_xor_sse2(c, p, nbytes, blkno, nonce, key, nr);
84 chacha_stream_xor_sse2_impl(uint8_t *c, const uint8_t *p, size_t nbytes, uint32_t blkno, const uint8_t nonce[static 12], const uint8_t key[static 32], unsigned nr) argument
109 xchacha_stream_xor_sse2_impl(uint8_t *c, const uint8_t *p, size_t nbytes, uint32_t blkno, const uint8_t nonce[static 24], const uint8_t key[static 32], unsigned nr) argument
/netbsd-current/sys/crypto/chacha/arch/arm/
H A Dchacha_neon_impl.c78 chacha_stream_neon_impl(uint8_t *restrict s, size_t nbytes, uint32_t blkno, argument
85 chacha_stream_neon(s, nbytes, blkno, nonce, key, nr);
91 uint32_t blkno,
98 chacha_stream_xor_neon(c, p, nbytes, blkno, nonce, key, nr);
103 xchacha_stream_neon_impl(uint8_t *restrict s, size_t nbytes, uint32_t blkno, argument
110 xchacha_stream_neon(s, nbytes, blkno, nonce, key, nr);
116 uint32_t blkno,
123 xchacha_stream_xor_neon(c, p, nbytes, blkno, nonce, key, nr);
90 chacha_stream_xor_neon_impl(uint8_t *c, const uint8_t *p, size_t nbytes, uint32_t blkno, const uint8_t nonce[static 12], const uint8_t key[static 32], unsigned nr) argument
115 xchacha_stream_xor_neon_impl(uint8_t *c, const uint8_t *p, size_t nbytes, uint32_t blkno, const uint8_t nonce[static 24], const uint8_t key[static 32], unsigned nr) argument
/netbsd-current/sbin/dkscan_bsdlabel/
H A Ddkscan_util.h39 int dkwedge_read(struct disk *pdk, struct vnode *vp, daddr_t blkno,
H A Ddkscan_util.c71 dkwedge_read(struct disk *pdk, struct vnode *vp, daddr_t blkno, argument
74 if (pread(disk_fd, tbuf, len, blkno * BLOCK_SIZE) < 0)
/netbsd-current/tests/sbin/fsck_ffs/
H A Dt_check_quotas.sh42 local blkno=$(printf "inode 3\nblks\n" |
45 blkno=$(($blkno * 512 + 104))
48 count=8 "seek=${blkno}" conv=notrunc
/netbsd-current/sys/arch/ia64/stand/common/
H A Dbcache.c70 static void bcache_invalidate(daddr_t blkno);
71 static void bcache_insert(void *buf, daddr_t blkno);
72 static int bcache_lookup(void *buf, daddr_t blkno);
264 bcache_insert(void *buf, daddr_t blkno) argument
276 if (bcache_ctl[i].bc_blkno == blkno) {
287 DEBUG("insert blk %d -> %d @ %d # %d", blkno, cand, now, bcache_bcount);
289 bcache_ctl[cand].bc_blkno = blkno;
300 bcache_lookup(void *buf, daddr_t blkno) argument
309 if ((bcache_ctl[i].bc_blkno == blkno) && ((bcache_ctl[i].bc_stamp + BCACHE_TIMEOUT) >= now)) {
311 DEBUG("hit blk %d <- %d (now %d then %d)", blkno,
321 bcache_invalidate(daddr_t blkno) argument
[all...]
/netbsd-current/sys/crypto/chacha/
H A Dchacha_impl.c142 chacha_stream(uint8_t *restrict s, size_t nbytes, uint32_t blkno, argument
148 (*chacha_impl->ci_chacha_stream)(s, nbytes, blkno, nonce, key, nr);
152 chacha_stream_xor(uint8_t *c, const uint8_t *p, size_t nbytes, uint32_t blkno, argument
158 (*chacha_impl->ci_chacha_stream_xor)(c, p, nbytes, blkno, nonce, key,
163 xchacha_stream(uint8_t *restrict s, size_t nbytes, uint32_t blkno, argument
169 (*chacha_impl->ci_xchacha_stream)(s, nbytes, blkno, nonce, key, nr);
173 xchacha_stream_xor(uint8_t *c, const uint8_t *p, size_t nbytes, uint32_t blkno, argument
179 (*chacha_impl->ci_xchacha_stream_xor)(c, p, nbytes, blkno, nonce, key,
/netbsd-current/sys/arch/alpha/include/
H A Dprom.h106 #define prom_read(chan, len, buf, blkno) \
107 prom_dispatch(PROM_R_READ, chan, len, (uint64_t)buf, blkno)
108 #define prom_write(chan, len, buf, blkno) \
109 prom_dispatch(PROM_R_WRITE, chan, len, (uint64_t)buf, blkno)
/netbsd-current/sys/arch/mmeye/stand/boot/
H A Dwdc.c361 wdc_exec_read(struct wd_softc *wd, uint8_t cmd, daddr_t blkno, void *data) argument
377 if ((wd->sc_flags & WDF_LBA48) != 0 && blkno > wd->sc_capacity28)
385 wd_c.r_blkno = blkno;
389 wd_c.r_sector = (blkno >> 0) & 0xff;
390 wd_c.r_cyl = (blkno >> 8) & 0xffff;
391 wd_c.r_head = (blkno >> 24) & 0x0f;
396 wd_c.r_sector = blkno % wd->sc_label.d_nsectors;
398 blkno /= wd->sc_label.d_nsectors;
399 wd_c.r_head = blkno % wd->sc_label.d_ntracks;
400 blkno /
[all...]
/netbsd-current/sys/arch/cobalt/stand/boot/
H A Dwdc.c324 wdc_exec_read(struct wd_softc *wd, uint8_t cmd, daddr_t blkno, void *data) argument
340 if ((wd->sc_flags & WDF_LBA48) != 0 && blkno > wd->sc_capacity28)
348 wd_c.r_blkno = blkno;
352 wd_c.r_sector = (blkno >> 0) & 0xff;
353 wd_c.r_cyl = (blkno >> 8) & 0xffff;
354 wd_c.r_head = (blkno >> 24) & 0x0f;
359 wd_c.r_sector = blkno % wd->sc_label.d_nsectors;
361 blkno /= wd->sc_label.d_nsectors;
362 wd_c.r_head = blkno % wd->sc_label.d_ntracks;
363 blkno /
[all...]
/netbsd-current/sys/ufs/ffs/
H A Dffs_subr.c117 ffs_getblk(struct vnode *vp, daddr_t lblkno, daddr_t blkno, int size, argument
122 KASSERT(blkno >= 0 || blkno == FFS_NOBLK);
126 if (blkno != FFS_NOBLK)
127 (*bpp)->b_blkno = blkno;
285 ffs_clusteracct(struct fs *fs, struct cg *cgp, int32_t blkno, int cnt) argument
304 setbit(freemapp, blkno);
306 clrbit(freemapp, blkno);
310 start = blkno + 1;
331 start = blkno
[all...]

Completed in 392 milliseconds

1234567