Searched defs:blk (Results 1 - 25 of 75) sorted by relevance

123

/illumos-gate/usr/src/cmd/mailx/
H A Dlock.c47 lock(FILE *fp, char *mode, int blk) argument
54 return fcntl(fileno(fp), blk ? F_SETLKW : F_SETLK, &l);
/illumos-gate/usr/src/lib/libbc/libc/gen/common/
H A Dmemalign.c62 register Dblk blk; /* For addressing fragment blocks */ local
93 blk = (Dblk)(p - ALIGNSIZ); /* back up to get length word */
94 blksize = blk->size;
107 frag_size = (uint)aligned_blk - (uint)blk;
120 blk->size = frag_size;
123 free(blk->data);
136 blk = nextblk(aligned_blk, nbytes);
137 blk->size = frag_size;
139 free(blk->data);
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dmemalign.c65 TREE *blk; /* For addressing fragment blocks */ local
126 blk = BLOCK(p); /* back up to get length word */
127 blksize = SIZE(blk);
143 frag_size = (size_t)aligned_blk - (size_t)blk;
161 SIZE(blk) = frag_size | BIT0 | ISBIT1(SIZE(blk));
162 _free_unlocked(DATA(blk));
176 blk = NEXT(aligned_blk);
179 SIZE(blk) = frag_size | BIT0;
180 _free_unlocked(DATA(blk));
[all...]
/illumos-gate/usr/src/cmd/fs.d/ufs/labelit/
H A Dlabelit.c139 int blk; local
206 blk = sblock.fs_spc * sblock.fs_cpc / NSPF(&sblock);
207 for (i = 0; i < blk; i += sblock.fs_frag)
210 blk = i / sblock.fs_frag;
211 p = (char *)&(fs_rotbl(fsp)[blk]);
284 bcopy((char *)&(fs_rotbl(fsp)[blk]),
285 (char *)&(fs_rotbl(altfsp)[blk]), 14);
299 p = (char *)&(fs_rotbl(fsp)[blk]);
/illumos-gate/usr/src/boot/sys/boot/common/
H A Dmd.c87 md_strategy(void *devdata, int rw, daddr_t blk, size_t size, char *buf, argument
96 if (blk < 0 || blk >= (MD_IMAGE_SIZE / MD_BLOCK_SIZE))
102 ofs = blk * MD_BLOCK_SIZE;
H A Dvdisk.c247 vdisk_strategy(void *devdata, int rw, daddr_t blk, size_t size, argument
269 blk += offset;
271 if (lseek(vd->vdisk_fd, blk << 9, SEEK_SET) == -1)
/illumos-gate/usr/src/uts/common/io/ib/clients/of/sol_ofs/
H A Dsol_uobj.c110 sol_ofs_uobj_blk_t *blk; local
127 blk = uo_tbl->uobj_tbl_uo_root[i];
128 if (!blk) {
132 if (blk->ofs_uoblk_blks[j]) {
136 * (blk->ofs_uoblk_blks[j]);
139 "UOBJ TBL FINI: blk %p, slot %d non null",
140 blk, j);
143 kmem_free(blk, sizeof (*blk));
287 sol_ofs_uobj_blk_t *blk; local
408 sol_ofs_uobj_blk_t *blk; local
504 sol_ofs_uobj_blk_t *blk; local
[all...]
/illumos-gate/usr/src/cmd/svr4pkg/pkginstall/
H A Ddockspace.c199 fsblkcnt_t blk; local
254 blk = nblk(ept->cinfo.size,
258 blk = 0;
259 fs_tab->bused += blk;
317 blk =
322 blk = nblk(ept->cinfo.size,
326 blk = 0;
330 blk = 0;
345 blk = 0;
347 blk
[all...]
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Ddmu_diff.c130 dnode_phys_t *blk; local
144 blk = abuf->b_data;
148 err = report_dnode(da, dnobj, blk+i);
/illumos-gate/usr/src/lib/libsum/common/
H A Dsum-sha1.c58 * blk0() and blk() perform the initial expand.
68 #define blk(i) \ macro
81 z += ((w & (x ^ y)) ^ y) + blk(i) + 0x5A827999 + rol(v, 5); \
84 z += (w ^ x ^ y) + blk(i) + 0x6ED9EBA1 + rol(v, 5); \
87 z += (((w | x) & y) | (w & x)) + blk(i) + 0x8F1BBCDC + rol(v, 5); \
90 z += (w ^ x ^ y) + blk(i) + 0xCA62C1D6 + rol(v, 5); \
/illumos-gate/usr/src/cmd/csh/
H A Dsh.exec.c58 tchar *blk[2]; local
91 blk[0] = t->t_dcom[0];
92 blk[1] = 0;
93 av = blkspl(blk, av);
/illumos-gate/usr/src/cmd/fs.d/ufs/fsck/
H A Dpass5.c44 int32_t c, blk, frags; local
254 blk = blkmap(fs, cg_blksfree(newcg), i);
255 fragacct(fs, blk, newcg->cg_frsum, 1);
/illumos-gate/usr/src/uts/common/io/1394/
H A Ds1394_addr.c445 s1394_free_addr_blk(s1394_hal_t *hal, s1394_addr_space_blk_t *blk) argument
454 blk = s1394_used_tree_delete(hal, blk);
456 if (blk == NULL) {
468 s1394_free_list_insert(hal, blk);
/illumos-gate/usr/src/uts/common/syscall/
H A Drctlsys.c59 rctlsys_rblk_xfrm(rctl_opaque_t *blk, rctl_dict_entry_t *rde, argument
67 val->rcv_privilege = blk->rcq_privilege;
68 val->rcv_value = blk->rcq_value;
69 val->rcv_flagaction = blk->rcq_local_flagaction;
70 val->rcv_action_signal = blk->rcq_local_signal;
72 blk->rcq_local_recipient_pid;
75 rde->rcd_flagaction = blk->rcq_global_flagaction;
76 rde->rcd_syslog_level = blk->rcq_global_syslog_level;
85 switch (blk->rcq_global_syslog_level) {
108 bzero(blk, sizeo
[all...]
/illumos-gate/usr/src/uts/common/sys/
H A Dflock.h154 struct filock *blk; /* for sleeping locks only */ member in struct:filock::__anon133
/illumos-gate/usr/src/uts/common/io/ib/clients/of/sol_uverbs/
H A Dsol_uverbs_event.c660 sol_ofs_uobj_blk_t *blk; local
675 blk = uo_tbl->uobj_tbl_uo_root[i];
676 if (blk == NULL) {
680 uctxt = (uverbs_uctxt_uobj_t *)blk->ofs_uoblk_blks[j];
/illumos-gate/usr/src/boot/sys/boot/i386/isoboot/
H A Dcd9660read.c321 daddr_t blk, blk_off; local
327 blk = (cookie >> 32) & 0xffffffff;
330 if ((uint64_t)((blk << 32) | size) != cookie) {
334 if (blk != curstart) {
335 curstart = blk;
/illumos-gate/usr/src/cmd/fs.d/ufs/tunefs/
H A Dtunefs.c398 bwrite(diskaddr_t blk, char *buf, int size) argument
400 if (llseek(fi, (offset_t)blk * DEV_BSIZE, 0) < 0) {
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_fdio.c193 uchar_t *blk; local
203 blk = mdb_zalloc(blksize, UM_SLEEP | UM_GC);
209 if (pread64(fdp->fd_fd, blk, blksize, devoff) != blksize)
212 bcopy(&blk[blkoff], buf, len);
237 uchar_t *blk; local
247 blk = mdb_zalloc(blksize, UM_SLEEP | UM_GC);
253 if (pread64(fdp->fd_fd, blk, blksize, devoff) != blksize)
256 bcopy(buf, &blk[blkoff], len);
258 if (pwrite64(fdp->fd_fd, blk, blksize, devoff) != blksize)
/illumos-gate/usr/src/common/fs/
H A Dpcfs.c281 ulong_t off, blk; local
295 blk = FI_STARTCLUST(fp);
296 rd = blk == CLUSTER_ROOTDIR ? 1 : 0;
300 blk = FI_STARTCLUST(fp);
301 rd = (blk == CLUSTER_ROOTDIR) ? 1 : 0;
307 blk = fat_map(blk, rd);
310 if (!cluster_valid(blk, rd)) {
312 blk, rd);
318 sector = fat_ctodb(blk, r
403 fat_ctodb(int blk, int r) argument
415 fat_map(int blk, int rootdir) argument
[all...]
/illumos-gate/usr/src/uts/common/io/ib/clients/eoib/
H A Deib_rsrc.c478 uint_t blk; local
532 for (i = 0, blk = 0; blk < EIB_BLKS_PER_POOL; blk++) {
594 ((blk & EIB_WQEBLK_MASK) << EIB_WQEBLK_SHIFT) |
646 uint_t blk; local
701 for (i = 0, blk = 0; blk < EIB_BLKS_PER_POOL; blk++) {
730 ((blk
970 int blk; local
1045 uint_t blk; local
[all...]
/illumos-gate/usr/src/lib/libmalloc/common/
H A Dmalloc.c311 struct header *blk; local
472 blk = freeptr;
474 blk = blk->nextfree;
476 next = blk->nextblk;
488 lastblk = blk;
489 blk->nextblk = next;
491 } while (((char *)(next) - (char *)blk) < nb);
496 if (blk == &(freeptr[1])) {
546 blk
690 struct header *blk; /* real start of block */ local
739 struct header *blk; /* block ptr is contained in */ local
968 struct header *blk, *next; /* ptr to ordinary blocks */ local
1099 struct header *blk, *prev, *next; /* ptr to ordinary blocks */ local
[all...]
/illumos-gate/usr/src/common/crypto/sha2/
H A Dsha2.c157 SHA256Transform(SHA2_CTX *ctx, const uint8_t *blk) argument
199 if ((uintptr_t)blk & 0x3) { /* not 4-byte aligned? */
200 bcopy(blk, ctx->buf_un.buf32, sizeof (ctx->buf_un.buf32));
201 blk = (uint8_t *)ctx->buf_un.buf32;
205 w0 = LOAD_BIG_32(blk + 4 * 0);
208 w1 = LOAD_BIG_32(blk + 4 * 1);
211 w2 = LOAD_BIG_32(blk + 4 * 2);
214 w3 = LOAD_BIG_32(blk + 4 * 3);
217 w4 = LOAD_BIG_32(blk + 4 * 4);
220 w5 = LOAD_BIG_32(blk
366 SHA512Transform(SHA2_CTX *ctx, const uint8_t *blk) argument
[all...]
/illumos-gate/usr/src/cmd/eject/
H A Deject.c461 char *blk; /* block name */ local
481 blk = eject_getfullblkname(path, vm_running);
482 if (blk == NULL)
492 mref.mnt_special = blk;
501 (void) strcpy(busy_base, blk);
/illumos-gate/usr/src/uts/common/io/mr_sas/
H A Dld_pd_map.c169 U64 blk; local
170 blk = ((row - qe->logStart) /
173 blk = (blk + qe->offsetInSpan) <<
175 *span_blk = blk;

Completed in 816 milliseconds

123