HomeSort by: relevance | last modified time | path
    Searched defs:blk (Results 1 - 25 of 66) sorted by relevancy

1 2 3

  /src/sys/arch/amiga/amiga/
dkbad.c 55 register long blk, bblk; local in function:isbad
57 blk = ((long)cyl << 16) + (trk << 8) + sec;
60 if (blk == bblk)
62 if (blk < bblk || bblk < 0)
  /src/sys/arch/atari/atari/
dkbad.c 54 register long blk, bblk; local in function:isbad
56 blk = ((long)cyl << 16) + (trk << 8) + sec;
59 if (blk == bblk)
61 if (blk < bblk || bblk < 0)
disksubr.c 145 u_int blk; local in function:writedisklabel
148 blk = clp->cd_bblock;
149 if (blk == NO_BOOT_BLOCK)
156 bp->b_blkno = blk;
157 bp->b_cylinder = blk / lp->d_secpercyl;
171 bb->bb_magic = (blk == 0) ? NBDAMAGIC : AHDIMAGIC;
178 bp->b_blkno = blk;
179 bp->b_cylinder = blk / lp->d_secpercyl;
  /src/sys/arch/hp300/hp300/
dkbad.c 52 long blk, bblk; local in function:isbad
54 blk = ((long)cyl << 16) + (trk << 8) + sec;
57 if (blk == bblk)
59 if (blk < bblk || bblk < 0)
  /src/sys/arch/vax/vax/
dkbad.c 50 long blk, bblk; local in function:isbad
52 blk = ((long)cyl << 16) + (trk << 8) + sec;
56 if (blk == bblk)
58 if (blk < bblk || bblk < 0)
  /src/sys/arch/sparc/stand/bootxx/
bootxx.c 106 daddr_t blk; local in function:loadboot
118 if ((blk = bbinfo.bbi_block_table[i]) == 0)
122 printf("%s: block # %d = %d\n", progname, i, blk);
124 if ((f->f_dev->dv_strategy)(f->f_devdata, F_READ, blk,
  /src/sys/arch/news68k/stand/bootxx/
bootxx.c 85 int fd, blk, bs; local in function:bootxx
129 blk = bbinfo.bbi_block_table[i];
131 DPRINTF(" %d", blk);
133 rom_lseek(fd, blk * 512, 0);
  /src/sys/arch/ofppc/stand/ofwboot/
rdb.c 126 u_long blk; local in function:search_rdb_label
134 for (blk = 0; blk < RDB_MAXBLOCKS; blk++) {
135 if (strategy(devp, F_READ, blk, DEV_BSIZE, buf, &read)
150 if (blk == RDB_MAXBLOCKS)
192 for (blk = rbp->partbhead; blk != RDBNULL; blk = pbp->next) {
193 if (strategy(devp, F_READ, blk * (lp->d_secsize / DEV_BSIZE)
    [all...]
  /src/sys/opencrypto/
gmac.c 156 uint8_t blk[16] = { 0 }; local in function:AES_GMAC_Update
164 memcpy(blk, data + (len - plen), plen);
165 ghash_update(&ctx->ghash, blk, GMAC_BLOCK_LEN);
  /src/common/dist/zlib/examples/
fitblk.c 132 unsigned char *blk; /* intermediate and final stream */ local in function:main
147 blk = malloc(size + EXCESS);
152 if (ret != Z_OK || blk == NULL)
157 def.next_out = blk;
166 if (fwrite(blk, 1, have, stdout) != have || ferror(stdout))
172 free(blk);
194 inf.next_in = blk;
211 def.next_out = blk;
219 if (fwrite(blk, 1, have, stdout) != have || ferror(stdout))
228 free(blk);
    [all...]
  /src/sbin/fsck_v7fs/
freeblock.c 51 v7fs_daddr_t blk; member in struct:freeblock_arg
56 v7fs_daddr_t blk __unused)
58 ((struct freeblock_arg *)ctx)->blk++;
65 freeblock_subr_j(struct v7fs_self *fs, void *ctx, v7fs_daddr_t blk)
69 if (!datablock_number_sanity(fs, blk)) {
70 pwarn("invalid block#%d in freeblock", blk);
80 if (arg->blk == blk) {
81 pwarn("freeblock duplicate %d %d blk=%d", arg->i, arg->j, blk);
139 v7fs_daddr_t blk; local in function:freeblock_dup_remove
214 v7fs_daddr_t blk; local in function:v7fs_freeblock_foreach
266 v7fs_daddr_t blk; local in function:freeblock_check
    [all...]
datablock.c 55 v7fs_daddr_t blk; member in struct:loop_context
67 if (arg->blk == freeblk) {
80 datablock_subr(struct v7fs_self *fs, void *ctx, v7fs_daddr_t blk,
86 arg->blk = blk;
122 { .i = 0, .blk = 0 })) == V7FS_ITERATOR_ERROR)
133 datablock_i_j(struct v7fs_self *fs, void *ctx, v7fs_daddr_t blk, size_t sz
139 if (blk == arg->blk) {
143 arg->j, filename(fs, arg->j), blk);
304 v7fs_daddr_t blk; local in function:dupfind_loop2
325 v7fs_daddr_t blk, blk2; local in function:do_replace
    [all...]
  /src/sbin/newfs_v7fs/
main.c 129 v7fs_daddr_t blk = inode.addr[0]; local in function:make_root
131 if (!(buf = scratch_read(fs, blk))) {
143 if (!fs->io.write(fs->io.cookie, buf, blk)) {/*writeback */
192 warn("blk=%ld", (long)listblk);
205 v7fs_daddr_t blk; local in function:make_filesystem
258 blk = sb->freeblock[0];
259 while ((blk = make_freeblocklist(fs, blk, buf)))
  /src/sys/arch/mvme68k/stand/libsa/
bugdev.c 124 daddr_t blk = dblk + pp->poff; local in function:bugscstrategy
132 dio.blk_num = blk * BUG_SCALE;
137 printf("bugscstrategy: size=%d blk=%d buf=%x\n", size, blk, buf);
  /src/sys/arch/newsmips/stand/bootxx/
bootxx.c 65 int fd, blk, bs; local in function:bootxx
125 blk = bbinfo.bbi_block_table[i];
127 DPRINTF(" %d", blk);
130 apcall_lseek(fd, blk * 512, 0);
133 rom_lseek(fd, blk * 512, 0);
  /src/sys/arch/sgimips/stand/common/
iris_disk.c 106 daddr_t blk; local in function:diskstrategy
114 blk = bn + (lp->d_partitions[sc->sc_part].p_offset >> sc->sc_blkshift);
120 stat = scsi_read(buf, reqcnt, blk, nblk);
  /src/sys/dev/sun/
disksubr.c 400 long blk, bblk; local in function:isbad
402 blk = ((long)cyl << 16) + (trk << 8) + sec;
406 if (blk == bblk)
408 if (blk < bblk || bblk < 0)
  /src/sys/fs/v7fs/
v7fs_file.c 94 lookup_subr(struct v7fs_self *fs, void *ctx, v7fs_daddr_t blk, size_t sz)
103 if (!(buf = scratch_read(fs, blk)))
189 v7fs_daddr_t blk = inode.addr[0]; local in function:v7fs_file_allocate
191 if (!(buf = scratch_read(fs, blk))) {
200 if (!fs->io.write(fs->io.cookie, buf, blk)) {
281 v7fs_daddr_t blk; local in function:v7fs_directory_add_entry
298 if (!(blk = v7fs_datablock_last(fs, parent_dir,
303 if (!(buf = scratch_read(fs, blk)))
314 if (!fs->io.write(fs->io.cookie, buf, blk))
381 remove_subr(struct v7fs_self *fs, void *ctx, v7fs_daddr_t blk, size_t sz
    [all...]
v7fs_inode.c 73 v7fs_inode_block_sanity(const struct v7fs_superblock *sb, v7fs_daddr_t blk)
76 if ((blk < V7FS_ILIST_SECTOR) || (blk >= sb->datablock_start_sector)) {
77 DPRINTF("invalid inode block#%d (%d-%d)\n", blk,
223 v7fs_daddr_t blk, ofs; local in function:v7fs_inode_load
227 if (v7fs_inode_inquire_disk_location(fs, n, &blk, &ofs) != 0)
231 if (!(buf = scratch_read(fs, blk))) {
253 v7fs_daddr_t blk; local in function:v7fs_inode_writeback
258 if (v7fs_inode_inquire_disk_location(fs, ino, &blk, &ofs) != 0)
264 if (!(buf = scratch_read(fs, blk))) {
284 v7fs_daddr_t ofs, blk; local in function:v7fs_inode_inquire_disk_location
    [all...]
v7fs_file_util.c 103 v7fs_daddr_t blk = p->addr[0]; /* 1block only. */ local in function:v7fs_file_symlink
105 if (!(buf = scratch_read(fs, blk))) {
110 if (!fs->io.write(fs->io.cookie, buf, blk)) {
203 replace_subr(struct v7fs_self *fs, void *ctx, v7fs_daddr_t blk, size_t sz)
211 DPRINTF("match start blk=%x\n", blk);
212 if (!(buf = scratch_read(fs, blk)))
224 if (!fs->io.write(fs->io.cookie, buf, blk))
249 lookup_by_number_subr(struct v7fs_self *fs, void *ctx, v7fs_daddr_t blk,
258 if (!(buf = scratch_read(fs, blk)))
    [all...]
  /src/sbin/efi/
devpath.c 87 devpath_blk_t *blk, *next; local in function:collapse_list
91 SIMPLEQ_FOREACH_SAFE(blk, head, entry, next) {
92 if (blk->path.cp == NULL) {
97 else if (*blk->path.cp == '\0') {
99 next = SIMPLEQ_NEXT(blk, entry);
102 bp = stpcpy(bp, blk->path.cp);
106 free(blk->path.cp);
110 SIMPLEQ_FOREACH_SAFE(blk, head, entry, next) {
111 bp = stpcpy(bp, blk->dbg.cp);
112 free(blk->dbg.cp)
137 devpath_blk_t *blk; local in function:devpath_parse
    [all...]
  /src/bin/csh/
sem.c 484 Char *blk[2]; local in function:splicepipe
489 blk[0] = Dfix1(cp); /* expand $ */
490 blk[1] = NULL;
492 gflag = 0, tglob(blk);
494 pv = globall(blk);
496 setname(vis_str(blk[0]));
497 free(blk[0]);
507 free(blk[0]);
508 blk[0] = pv[0];
513 blk[0] = globone(blk[1] = Dfix1(cp), G_ERROR)
    [all...]
  /src/common/lib/libc/hash/sha1/
sha1.c 52 * blk0() and blk() perform the initial expand.
61 #define blk(i) (block->l[i&15] = rol(block->l[(i+13)&15]^block->l[(i+8)&15] \ macro
68 #define R1(v,w,x,y,z,i) z+=((w&(x^y))^y)+blk(i)+0x5A827999+rol(v,5);w=rol(w,30);
69 #define R2(v,w,x,y,z,i) z+=(w^x^y)+blk(i)+0x6ED9EBA1+rol(v,5);w=rol(w,30);
70 #define R3(v,w,x,y,z,i) z+=(((w|x)&y)|(w&x))+blk(i)+0x8F1BBCDC+rol(v,5);w=rol(w,30);
71 #define R4(v,w,x,y,z,i) z+=(w^x^y)+blk(i)+0xCA62C1D6+rol(v,5);w=rol(w,30);
  /src/sys/arch/mvme68k/stand/installboot/
installboot.c 225 devread(int fd, void *buf, daddr_t blk, size_t size, char *msg)
228 if (lseek(fd, dbtob(blk), SEEK_SET) != dbtob(blk))
245 daddr_t blk, *ap; local in function:loadblocknums
293 blk = FFS_FSBTODB(fs, ino_to_fsba(fs, statbuf.st_ino));
294 devread(devfd, buf, blk, fs->fs_bsize, "inode");
314 blk = FFS_FSBTODB(fs, *ap);
316 printf("%d: %d\n", i, blk);
317 block_table[i] = blk;
326 blk = FFS_FSBTODB(fs, ip->di_ib[0])
    [all...]
  /src/usr.sbin/installboot/
ext2fs.c 101 uint8_t blk[])
109 assert(blk != NULL);
111 rv = pread(params->fsfd, blk, size, blkno * params->sectorsize);
201 int32_t blk, lblk, nblk; local in function:ext2fs_find_disk_blocks
273 blk = fs2h32(*(level[level_i].blknums++));
277 fprintf(stderr, "ino %lu blk %lu level %d\n", ino, blk,
288 if (blk == 0)
291 EXT2_FSBTODB(fs, blk) + params->fstype->offset,
301 /* blk is the next direct level block. *
    [all...]

Completed in 23 milliseconds

1 2 3