/titanic_44/usr/src/cmd/dc/ |
H A D | dc.h | 34 #define BLK sizeof (struct blk) 76 struct blk { struct 83 struct blk **rdw; argument 84 struct blk **wtw; 85 struct blk **begw; 86 struct blk **lastw; 88 struct blk *hfree; 89 struct blk *getwd(struct blk *); 90 struct blk *lookwd(struct blk *); 91 struct blk *getdec(struct blk *, int); [all …]
|
H A D | dc.c | 99 struct blk *p, *q; in commnds() 102 struct blk **ptr, *s, *t; in commnds() 776 struct blk * 777 dcdiv(struct blk *ddivd, struct blk *ddivr) in dcdiv() 782 struct blk *ps, *px; in dcdiv() 783 struct blk *p, *divd, *divr; in dcdiv() 938 struct blk *dd, *dr, *r; in dscale() 977 struct blk * 978 removr(struct blk *p, int n) in removr() 981 struct blk *q, *s, *r; in removr() [all …]
|
/titanic_44/usr/src/cmd/sh/ |
H A D | blok.c | 46 struct blk *blokp; /* current search pointer */ 47 struct blk *bloktop; /* top of arena (last blok) */ 64 static void fill_pat(struct blk *, uint32_t); 65 static void chkbptr(struct blk *); 79 struct blk *p = blokp; in alloc() 80 struct blk *q; in alloc() 88 blokp = (struct blk *) in alloc() 92 p->word = (struct blk *) in alloc() 101 p = (struct blk *)(Rcheat(p->word) & ~BUSY); in alloc() 117 bloktop = (struct blk *)brkbegin; in addblok() [all …]
|
H A D | args.c | 246 freeargs(blk) in freeargs() argument 247 struct dolnod *blk; in freeargs() 254 if (argblk = blk) 301 clean_args(blk) in clean_args() argument 302 struct dolnod *blk; in clean_args() 308 if (argblk = blk)
|
/titanic_44/usr/src/uts/common/io/ib/clients/of/sol_ofs/ |
H A D | sol_uobj.c | 110 sol_ofs_uobj_blk_t *blk; in sol_ofs_uobj_tbl_fini() local 127 blk = uo_tbl->uobj_tbl_uo_root[i]; in sol_ofs_uobj_tbl_fini() 128 if (!blk) { in sol_ofs_uobj_tbl_fini() 132 if (blk->ofs_uoblk_blks[j]) { in sol_ofs_uobj_tbl_fini() 140 blk, j); in sol_ofs_uobj_tbl_fini() 143 kmem_free(blk, sizeof (*blk)); in sol_ofs_uobj_tbl_fini() 287 sol_ofs_uobj_blk_t *blk; in sol_ofs_uobj_add() local 295 blk = uo_tbl->uobj_tbl_uo_root[i]; in sol_ofs_uobj_add() 296 if (blk != NULL && blk->ofs_uo_blk_avail > 0) { in sol_ofs_uobj_add() 299 uo_tbl, blk->ofs_uo_blk_avail); in sol_ofs_uobj_add() [all …]
|
/titanic_44/usr/src/lib/libmalloc/common/ |
H A D | malloc.c | 311 struct header *blk; in malloc_unlocked() local 472 blk = freeptr; in malloc_unlocked() 474 blk = blk->nextfree; in malloc_unlocked() 476 next = blk->nextblk; in malloc_unlocked() 488 lastblk = blk; in malloc_unlocked() 489 blk->nextblk = next; in malloc_unlocked() 491 } while (((char *)(next) - (char *)blk) < nb); in malloc_unlocked() 496 if (blk == &(freeptr[1])) { in malloc_unlocked() 546 blk = newblk; in malloc_unlocked() 564 lastblk = blk = arenaend; in malloc_unlocked() [all …]
|
/titanic_44/usr/src/lib/libproject/common/ |
H A D | setproject.c | 74 build_rctlblk(rctlblk_t *blk, int comp_num, char *component) in build_rctlblk() argument 78 uint_t act = rctlblk_get_local_action(blk, &sig); in build_rctlblk() 87 rctlblk_set_privilege(blk, RCPRIV_BASIC); in build_rctlblk() 93 rctlblk_set_privilege(blk, RCPRIV_PRIVILEGED); in build_rctlblk() 117 rctlblk_set_value(blk, (rctl_qty_t)val); in build_rctlblk() 126 rctlblk_set_local_action(blk, 0, 0); in build_rctlblk() 133 rctlblk_set_local_action(blk, act, sig); in build_rctlblk() 157 rctlblk_set_local_action(blk, act, sig); in build_rctlblk() 181 reinit_blk(rctlblk_t *blk, int local_action) in reinit_blk() argument 183 rctlblk_set_privilege(blk, RCPRIV_PRIVILEGED); in reinit_blk() [all …]
|
/titanic_44/usr/src/cmd/mandoc/ |
H A D | read.c | 288 mparse_buf_r(struct mparse *curp, struct buf blk, int start) in mparse_buf_r() argument 303 for (i = 0; i < (int)blk.sz; ) { in mparse_buf_r() 304 if (0 == pos && '\0' == blk.buf[i]) in mparse_buf_r() 312 while (i < (int)blk.sz && (start || '\0' != blk.buf[i])) { in mparse_buf_r() 320 if ('\r' == blk.buf[i] && i + 1 < (int)blk.sz && in mparse_buf_r() 321 '\n' == blk.buf[i + 1]) in mparse_buf_r() 323 if ('\n' == blk.buf[i]) { in mparse_buf_r() 347 c = (unsigned char) blk.buf[i]; in mparse_buf_r() 360 if ('\\' != blk.buf[i] || i + 1 == (int)blk.sz) { in mparse_buf_r() 361 ln.buf[pos++] = blk.buf[i++]; in mparse_buf_r() [all …]
|
/titanic_44/usr/src/lib/libbc/libc/gen/common/ |
H A D | memalign.c | 62 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);
|
/titanic_44/usr/src/common/fs/ |
H A D | pcfs.c | 281 ulong_t off, blk; in bpcfs_read() local 295 blk = FI_STARTCLUST(fp); in bpcfs_read() 296 rd = blk == CLUSTER_ROOTDIR ? 1 : 0; in bpcfs_read() 300 blk = FI_STARTCLUST(fp); in bpcfs_read() 301 rd = (blk == CLUSTER_ROOTDIR) ? 1 : 0; in bpcfs_read() 307 blk = fat_map(blk, rd); in bpcfs_read() 310 if (!cluster_valid(blk, rd)) { in bpcfs_read() 312 blk, rd); in bpcfs_read() 318 sector = fat_ctodb(blk, rd); in bpcfs_read() 339 blk = fat_map(blk, rd); in bpcfs_read() [all …]
|
/titanic_44/usr/src/lib/libc/port/gen/ |
H A D | memalign.c | 65 TREE *blk; /* For addressing fragment blocks */ in memalign() local 126 blk = BLOCK(p); /* back up to get length word */ in memalign() 127 blksize = SIZE(blk); in memalign() 143 frag_size = (size_t)aligned_blk - (size_t)blk; in memalign() 161 SIZE(blk) = frag_size | BIT0 | ISBIT1(SIZE(blk)); in memalign() 162 _free_unlocked(DATA(blk)); in memalign() 176 blk = NEXT(aligned_blk); in memalign() 179 SIZE(blk) = frag_size | BIT0; in memalign() 180 _free_unlocked(DATA(blk)); in memalign()
|
/titanic_44/usr/src/psm/stand/bootblks/ufs/common/ |
H A D | ufs.fth | 46 : blk>byte ( block# -- byte# ) /disk-block * ; 49 blk>byte dev-ih read-disk 84 : blkoff ( byte-off -- blk-off ) bsize mod ; 85 : fsbtodb ( fs-blk# -- dev-blk# ) fsbtodbc lshift ; 87 : read-fs-blocks ( adr len fs-blk# -- ) fsbtodb read-disk-blocks ; 120 dup temp-block bsize rot itod ( i# adr len blk# ) 130 : #blk-addr/blk bsize /l / ; 131 : #sgl-addr #blk-addr/blk ; 132 : #dbl-addr #sgl-addr #blk-addr/blk * ; 133 \ : #tri-addr #dbl-addr #blk-addr/blk * ; [all …]
|
/titanic_44/usr/src/uts/sun4u/sys/ |
H A D | fpras_impl.h | 140 #define FPRAS_INTERVAL(operation, blk, doex, tmp1, tmp2, tmp3, tmp4, label) \ argument 153 prefetch [tmp2 + (FPRAS_BLK0 + blk * 64)], #one_read ;\ 212 #define FPRAS_REWRITE_TYPE1(blk, doex, fpq, tmp1, label) \ argument 216 add tmp1, FPRAS_BLK0 + blk * 64, tmp1 ;\ 218 add doex, FPRAS_BLK0 + blk * 64, tmp1 ;\ 235 #define FPRAS_REWRITE_TYPE2Q1(blk, doex, tmp1, tmp2, label1, label2) \ argument 241 ldd [tmp2 + (FPRAS_BLK0 + blk * 64)], %f4 ;\ 242 ldd [tmp2 + (FPRAS_BLK0 + blk * 64) + 8], %f2 ;\ 256 add doex, FPRAS_BLK0 + blk * 64, tmp1 ;\ 263 #define FPRAS_REWRITE_TYPE2Q2(blk, doex, tmp1, tmp2, label1, label2) \ argument [all …]
|
/titanic_44/usr/src/cmd/svr4pkg/pkginstall/ |
H A D | dockspace.c | 195 fsblkcnt_t blk; in readmap() local 250 blk = nblk(ept->cinfo.size, in readmap() 254 blk = 0; in readmap() 255 fs_tab->bused += blk; in readmap() 313 blk = in readmap() 318 blk = nblk(ept->cinfo.size, in readmap() 322 blk = 0; in readmap() 326 blk = 0; in readmap() 341 blk = 0; in readmap() 343 blk = new_size - old_size; in readmap() [all …]
|
/titanic_44/usr/src/cmd/fs.d/udfs/fsck/ |
H A D | utilities.c | 315 getblk(struct bufarea *bp, daddr_t blk, long size) in getblk() argument 319 dblk = fsbtodb(blk); in getblk() 344 rwerror(char *mesg, daddr_t blk) in rwerror() argument 349 pfatal(gettext("CANNOT %s: BLK %ld"), mesg, blk); in rwerror() 380 bread(int fd, char *buf, daddr_t blk, long size) in bread() argument 384 offset_t offset = ldbtob(blk); in bread() 388 rwerror(gettext("SEEK"), blk); in bread() 391 rwerror(gettext("READ"), blk); in bread() 393 rwerror(gettext("SEEK"), blk); in bread() 398 addr = ldbtob(blk + i); in bread() [all …]
|
/titanic_44/usr/src/cmd/bnu/ |
H A D | gio.c | 202 grdblk(blk, len) in grdblk() argument 203 char *blk; in grdblk() 208 ret = pkread(blk, len - i); 211 blk += ret; 220 gwrblk(blk, len) in gwrblk() argument 221 char *blk; in gwrblk() 223 return(pkwrite(blk, len));
|
H A D | xio.c | 214 xrdblk(blk, len, fn) in xrdblk() argument 215 char *blk; in xrdblk() 224 if ((ret = (*Read)(fn, blk, len - i)) < 0) { 228 blk += ret;
|
/titanic_44/usr/src/common/crypto/sha1/ |
H A D | sha1.c | 500 SHA1_CTX *ctx, const uint8_t blk[64]) 568 if ((uintptr_t)blk & 0x3) { /* not 4-byte aligned? */ 569 bcopy(blk, ctx->buf_un.buf32, sizeof (ctx->buf_un.buf32)); 588 w_15 = LOAD_BIG_32(blk + 60); 590 w_14 = LOAD_BIG_32(blk + 56); 592 w_13 = LOAD_BIG_32(blk + 52); 594 w_12 = LOAD_BIG_32(blk + 48); 596 w_11 = LOAD_BIG_32(blk + 44); 598 w_10 = LOAD_BIG_32(blk + 40); 600 w_9 = LOAD_BIG_32(blk + 36); [all …]
|
/titanic_44/usr/src/uts/common/io/ |
H A D | emul64_bsd.c | 1017 blklist_t *blk; in bsd_readblks() local 1074 blk = bsd_findblk(tgt, blkno, NULL); in bsd_readblks() 1075 if (blk) { in bsd_readblks() 1076 (void) bcopy(blk->bl_data, bufaddr, DEV_BSIZE); in bsd_readblks() 1098 blklist_t *blk; in bsd_writeblks() local 1172 blk = bsd_findblk(tgt, blkno, &where); in bsd_writeblks() 1174 if (blk) { in bsd_writeblks() 1175 bsd_freeblk(tgt, blk); in bsd_writeblks() 1178 if (blk) { in bsd_writeblks() 1179 (void) bcopy(bufaddr, blk->bl_data, in bsd_writeblks() [all …]
|
/titanic_44/usr/src/cmd/fs.d/ufs/labelit/ |
H A D | labelit.c | 139 int blk; in label() local 206 blk = sblock.fs_spc * sblock.fs_cpc / NSPF(&sblock); in label() 207 for (i = 0; i < blk; i += sblock.fs_frag) in label() 210 blk = i / sblock.fs_frag; in label() 211 p = (char *)&(fs_rotbl(fsp)[blk]); in label() 284 bcopy((char *)&(fs_rotbl(fsp)[blk]), in label() 285 (char *)&(fs_rotbl(altfsp)[blk]), 14); in label() 299 p = (char *)&(fs_rotbl(fsp)[blk]); in label()
|
/titanic_44/usr/src/uts/common/syscall/ |
H A D | rctlsys.c | 59 rctlsys_rblk_xfrm(rctl_opaque_t *blk, rctl_dict_entry_t *rde, in rctlsys_rblk_xfrm() argument 67 val->rcv_privilege = blk->rcq_privilege; in rctlsys_rblk_xfrm() 68 val->rcv_value = blk->rcq_value; in rctlsys_rblk_xfrm() 69 val->rcv_flagaction = blk->rcq_local_flagaction; in rctlsys_rblk_xfrm() 70 val->rcv_action_signal = blk->rcq_local_signal; in rctlsys_rblk_xfrm() 72 blk->rcq_local_recipient_pid; in rctlsys_rblk_xfrm() 75 rde->rcd_flagaction = blk->rcq_global_flagaction; in rctlsys_rblk_xfrm() 76 rde->rcd_syslog_level = blk->rcq_global_syslog_level; in rctlsys_rblk_xfrm() 85 switch (blk->rcq_global_syslog_level) { in rctlsys_rblk_xfrm() 108 bzero(blk, sizeof (rctl_opaque_t)); in rctlsys_rblk_xfrm() [all …]
|
/titanic_44/usr/src/common/crypto/sha2/ |
H A D | sha2.c | 154 SHA256Transform(SHA2_CTX *ctx, const uint8_t *blk) in SHA256Transform() argument 196 if ((uintptr_t)blk & 0x3) { /* not 4-byte aligned? */ in SHA256Transform() 197 bcopy(blk, ctx->buf_un.buf32, sizeof (ctx->buf_un.buf32)); in SHA256Transform() 198 blk = (uint8_t *)ctx->buf_un.buf32; in SHA256Transform() 202 w0 = LOAD_BIG_32(blk + 4 * 0); in SHA256Transform() 205 w1 = LOAD_BIG_32(blk + 4 * 1); in SHA256Transform() 208 w2 = LOAD_BIG_32(blk + 4 * 2); in SHA256Transform() 211 w3 = LOAD_BIG_32(blk + 4 * 3); in SHA256Transform() 214 w4 = LOAD_BIG_32(blk + 4 * 4); in SHA256Transform() 217 w5 = LOAD_BIG_32(blk + 4 * 5); in SHA256Transform() [all …]
|
/titanic_44/usr/src/uts/common/io/ib/clients/eoib/ |
H A D | eib_rsrc.c | 478 uint_t blk; in eib_rsrc_setup_txbufs() local 532 for (i = 0, blk = 0; blk < EIB_BLKS_PER_POOL; blk++) { in eib_rsrc_setup_txbufs() 594 ((blk & EIB_WQEBLK_MASK) << EIB_WQEBLK_SHIFT) | in eib_rsrc_setup_txbufs() 646 uint_t blk; in eib_rsrc_setup_rxbufs() local 701 for (i = 0, blk = 0; blk < EIB_BLKS_PER_POOL; blk++) { in eib_rsrc_setup_rxbufs() 730 ((blk & EIB_WQEBLK_MASK) << EIB_WQEBLK_SHIFT) | in eib_rsrc_setup_rxbufs() 970 int blk; in eib_rsrc_grab_wqes() local 1000 blk = EIB_FIND_LSB_SET(wp->wp_free_blks); in eib_rsrc_grab_wqes() 1001 ASSERT(blk != -1); in eib_rsrc_grab_wqes() 1002 ndx = EIB_FIND_LSB_SET(wp->wp_free_wqes[blk]); in eib_rsrc_grab_wqes() [all …]
|
/titanic_44/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_fdio.c | 182 uchar_t blk[DEV_BSIZE]; in fdio_bdev_read() local 196 if (pread64(fdp->fd_fd, blk, DEV_BSIZE, devoff) != DEV_BSIZE) in fdio_bdev_read() 199 bcopy(&blk[blkoff], buf, len); in fdio_bdev_read() 223 uchar_t blk[DEV_BSIZE]; in fdio_bdev_write() local 237 if (pread64(fdp->fd_fd, blk, DEV_BSIZE, devoff) != DEV_BSIZE) in fdio_bdev_write() 240 bcopy(buf, &blk[blkoff], len); in fdio_bdev_write() 242 if (pwrite64(fdp->fd_fd, blk, DEV_BSIZE, devoff) != DEV_BSIZE) in fdio_bdev_write()
|
/titanic_44/usr/src/uts/common/avs/ns/sdbc/ |
H A D | sd_hash.h | 69 #define HASH(cd, blk, table) \ argument 70 (((cd << 6) ^ ((blk) ^ ((blk) >> table->ht_bits))) \
|