/illumos-gate/usr/src/cmd/dc/ |
H A D | dc.h | 32 #define BLK sizeof (struct blk) 74 struct blk { struct 81 struct blk **rdw; argument 82 struct blk **wtw; 83 struct blk **begw; 84 struct blk **lastw; 86 struct blk *hfree; 87 struct blk *getwd(struct blk *); 88 struct blk *lookwd(struct blk *); 89 struct blk *getdec(struct blk *, int); [all …]
|
H A D | dc.c | 97 struct blk *p, *q; in commnds() 100 struct blk **ptr, *s, *t; in commnds() 774 struct blk * 775 dcdiv(struct blk *ddivd, struct blk *ddivr) in dcdiv() 780 struct blk *ps, *px; in dcdiv() 781 struct blk *p, *divd, *divr; in dcdiv() 936 struct blk *dd, *dr, *r; in dscale() 975 struct blk * 976 removr(struct blk *p, int n) in removr() 979 struct blk *q, *s, *r; in removr() [all …]
|
/illumos-gate/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 | mode.h | 68 struct blk *_blkptr; 75 struct blk struct 77 struct blk *word; argument 78 char pad[ALIGNSIZ - sizeof (struct blk *)]; argument
|
/illumos-gate/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 …]
|
/illumos-gate/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 …]
|
/illumos-gate/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 …]
|
/illumos-gate/usr/src/common/fs/ |
H A D | pcfs.c | 279 ulong_t off, blk; in bpcfs_read() local 293 blk = FI_STARTCLUST(fp); in bpcfs_read() 294 rd = blk == CLUSTER_ROOTDIR ? 1 : 0; in bpcfs_read() 298 blk = FI_STARTCLUST(fp); in bpcfs_read() 299 rd = (blk == CLUSTER_ROOTDIR) ? 1 : 0; in bpcfs_read() 305 blk = fat_map(blk, rd); in bpcfs_read() 308 if (!cluster_valid(blk, rd)) { in bpcfs_read() 310 blk, rd); in bpcfs_read() 316 sector = fat_ctodb(blk, rd); in bpcfs_read() 337 blk = fat_map(blk, rd); in bpcfs_read() [all …]
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | memalign.c | 67 TREE *blk; /* For addressing fragment blocks */ in memalign() local 128 blk = BLOCK(p); /* back up to get length word */ in memalign() 129 blksize = SIZE(blk); in memalign() 145 frag_size = (size_t)aligned_blk - (size_t)blk; in memalign() 163 SIZE(blk) = frag_size | BIT0 | ISBIT1(SIZE(blk)); in memalign() 164 _free_unlocked(DATA(blk)); in memalign() 178 blk = NEXT(aligned_blk); in memalign() 181 SIZE(blk) = frag_size | BIT0; in memalign() 182 _free_unlocked(DATA(blk)); in memalign()
|
/illumos-gate/usr/src/cmd/mandoc/ |
H A D | read.c | 151 mparse_buf_r(struct mparse *curp, struct buf blk, size_t i, int start) in mparse_buf_r() argument 174 while (i < blk.sz && (blk.buf[i] != '\0' || pos != 0)) { in mparse_buf_r() 182 curp->filenc = preconv_cue(&blk, i); in mparse_buf_r() 186 while (i < blk.sz && (start || blk.buf[i] != '\0')) { in mparse_buf_r() 194 if ('\r' == blk.buf[i] && i + 1 < blk.sz && in mparse_buf_r() 195 '\n' == blk.buf[i + 1]) in mparse_buf_r() 197 if ('\n' == blk.buf[i]) { in mparse_buf_r() 215 c = blk.buf[i]; in mparse_buf_r() 218 &blk, &i, &ln, &pos, &curp->filenc))) { in mparse_buf_r() 242 ln.buf[pos++] = blk.buf[i++]; in mparse_buf_r() [all …]
|
/illumos-gate/usr/src/boot/common/ |
H A D | bcache.c | 185 write_strategy(void *devdata, int rw, daddr_t blk, size_t size, in write_strategy() argument 196 bcache_invalidate(bc, blk + i); in write_strategy() 200 return (dd->dv_strategy(dd->dv_devdata, rw, blk, size, buf, rsize)); in write_strategy() 209 read_strategy(void *devdata, int rw, daddr_t blk, size_t size, in read_strategy() argument 235 if (BCACHE_LOOKUP(bc, (daddr_t)(blk + i))) { in read_strategy() 250 bcopy(bc->bcache_data + (bcache_blksize * BHASH(bc, blk)), in read_strategy() 260 p_blk = blk + i; in read_strategy() 334 if (BCACHE_LOOKUP(bc, (daddr_t)(blk + i))) in read_strategy() 342 bcopy(bc->bcache_data + (bcache_blksize * BHASH(bc, blk)), in read_strategy() 358 bcache_strategy(void *devdata, int rw, daddr_t blk, size_t size, in bcache_strategy() argument [all …]
|
H A D | md.c | 87 md_strategy(void *devdata, int rw, daddr_t blk, size_t size, char *buf, in md_strategy() argument 96 if (blk < 0 || blk >= (MD_IMAGE_SIZE / MD_BLOCK_SIZE)) in md_strategy() 102 ofs = blk * MD_BLOCK_SIZE; in md_strategy()
|
/illumos-gate/usr/src/uts/sun4u/sys/ |
H A D | fpras_impl.h | 138 #define FPRAS_INTERVAL(operation, blk, doex, tmp1, tmp2, tmp3, tmp4, label) \ argument 151 prefetch [tmp2 + (FPRAS_BLK0 + blk * 64)], #one_read ;\ 210 #define FPRAS_REWRITE_TYPE1(blk, doex, fpq, tmp1, label) \ argument 214 add tmp1, FPRAS_BLK0 + blk * 64, tmp1 ;\ 216 add doex, FPRAS_BLK0 + blk * 64, tmp1 ;\ 233 #define FPRAS_REWRITE_TYPE2Q1(blk, doex, tmp1, tmp2, label1, label2) \ argument 239 ldd [tmp2 + (FPRAS_BLK0 + blk * 64)], %f4 ;\ 240 ldd [tmp2 + (FPRAS_BLK0 + blk * 64) + 8], %f2 ;\ 254 add doex, FPRAS_BLK0 + blk * 64, tmp1 ;\ 261 #define FPRAS_REWRITE_TYPE2Q2(blk, doex, tmp1, tmp2, label1, label2) \ argument [all …]
|
/illumos-gate/usr/src/cmd/svr4pkg/pkginstall/ |
H A D | dockspace.c | 199 fsblkcnt_t blk; in readmap() local 254 blk = nblk(ept->cinfo.size, in readmap() 258 blk = 0; in readmap() 259 fs_tab->bused += blk; in readmap() 317 blk = in readmap() 322 blk = nblk(ept->cinfo.size, in readmap() 326 blk = 0; in readmap() 330 blk = 0; in readmap() 345 blk = 0; in readmap() 347 blk = new_size - old_size; in readmap() [all …]
|
/illumos-gate/usr/src/cmd/fs.d/udfs/fsck/ |
H A D | utilities.c | 317 getblk(struct bufarea *bp, daddr_t blk, long size) in getblk() argument 321 dblk = fsbtodb(blk); in getblk() 346 rwerror(char *mesg, daddr_t blk) in rwerror() argument 351 pfatal(gettext("CANNOT %s: BLK %ld"), mesg, blk); in rwerror() 381 bread(int fd, char *buf, daddr_t blk, long size) in bread() argument 385 offset_t offset = ldbtob(blk); in bread() 389 rwerror(gettext("SEEK"), blk); in bread() 392 rwerror(gettext("READ"), blk); in bread() 394 rwerror(gettext("SEEK"), blk); in bread() 399 addr = ldbtob(blk + i); in bread() [all …]
|
/illumos-gate/usr/src/common/crypto/sha1/ |
H A D | sha1.c | 536 SHA1_CTX *ctx, const uint8_t blk[64]) 604 if ((uintptr_t)blk & 0x3) { /* not 4-byte aligned? */ 605 bcopy(blk, ctx->buf_un.buf32, sizeof (ctx->buf_un.buf32)); 624 w_15 = LOAD_BIG_32(blk + 60); 626 w_14 = LOAD_BIG_32(blk + 56); 628 w_13 = LOAD_BIG_32(blk + 52); 630 w_12 = LOAD_BIG_32(blk + 48); 632 w_11 = LOAD_BIG_32(blk + 44); 634 w_10 = LOAD_BIG_32(blk + 40); 636 w_9 = LOAD_BIG_32(blk + 36); [all …]
|
/illumos-gate/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 …]
|
/illumos-gate/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_fdio.c | 193 uchar_t *blk; in fdio_bdev_read() local 203 blk = mdb_zalloc(blksize, UM_SLEEP | UM_GC); in fdio_bdev_read() 209 if (pread64(fdp->fd_fd, blk, blksize, devoff) != blksize) in fdio_bdev_read() 212 bcopy(&blk[blkoff], buf, len); in fdio_bdev_read() 237 uchar_t *blk; in fdio_bdev_write() local 247 blk = mdb_zalloc(blksize, UM_SLEEP | UM_GC); in fdio_bdev_write() 253 if (pread64(fdp->fd_fd, blk, blksize, devoff) != blksize) in fdio_bdev_write() 256 bcopy(buf, &blk[blkoff], len); in fdio_bdev_write() 258 if (pwrite64(fdp->fd_fd, blk, blksize, devoff) != blksize) in fdio_bdev_write()
|
/illumos-gate/usr/src/cmd/fs.d/ufs/labelit/ |
H A D | labelit.c | 137 int blk; in label() local 204 blk = sblock.fs_spc * sblock.fs_cpc / NSPF(&sblock); in label() 205 for (i = 0; i < blk; i += sblock.fs_frag) in label() 208 blk = i / sblock.fs_frag; in label() 209 p = (char *)&(fs_rotbl(fsp)[blk]); in label() 282 bcopy((char *)&(fs_rotbl(fsp)[blk]), in label() 283 (char *)&(fs_rotbl(altfsp)[blk]), 14); in label() 297 p = (char *)&(fs_rotbl(fsp)[blk]); in label()
|
/illumos-gate/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 …]
|
/illumos-gate/usr/src/common/crypto/sha2/ |
H A D | sha2.c | 158 SHA256Transform(SHA2_CTX *ctx, const uint8_t *blk) in SHA256Transform() argument 200 if ((uintptr_t)blk & 0x3) { /* not 4-byte aligned? */ in SHA256Transform() 201 bcopy(blk, ctx->buf_un.buf32, sizeof (ctx->buf_un.buf32)); in SHA256Transform() 202 blk = (uint8_t *)ctx->buf_un.buf32; in SHA256Transform() 206 w0 = LOAD_BIG_32(blk + 4 * 0); in SHA256Transform() 209 w1 = LOAD_BIG_32(blk + 4 * 1); in SHA256Transform() 212 w2 = LOAD_BIG_32(blk + 4 * 2); in SHA256Transform() 215 w3 = LOAD_BIG_32(blk + 4 * 3); in SHA256Transform() 218 w4 = LOAD_BIG_32(blk + 4 * 4); in SHA256Transform() 221 w5 = LOAD_BIG_32(blk + 4 * 5); in SHA256Transform() [all …]
|
/illumos-gate/usr/src/cmd/bnu/ |
H A D | gio.c | 196 grdblk(char *blk, int len) in grdblk() argument 201 ret = pkread(blk, len - i); in grdblk() 204 blk += ret; in grdblk() 213 gwrblk(char *blk, int len) in gwrblk() argument 215 return(pkwrite(blk, len)); in gwrblk()
|
H A D | dio.c | 239 drdblk(blk, len, fn) in drdblk() argument 240 register char *blk; in drdblk() 250 if ((ret = (*Read)(fn, blk, (unsigned) len - i)) < 0) { 254 blk += ret;
|
/illumos-gate/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 …]
|
/illumos-gate/usr/src/boot/efi/libefi/ |
H A D | efipart.c | 984 efipart_readwrite(pdinfo_t *pd, int rw, daddr_t blk, daddr_t nblks, in efipart_readwrite() argument 992 if (blk < 0 || blk > blkio->Media->LastBlock) in efipart_readwrite() 994 if ((blk + nblks - 1) > blkio->Media->LastBlock) in efipart_readwrite() 999 status = blkio->ReadBlocks(blkio, blkio->Media->MediaId, blk, in efipart_readwrite() 1005 status = blkio->WriteBlocks(blkio, blkio->Media->MediaId, blk, in efipart_readwrite() 1022 blk, nblks, DECODE_ERROR(status)); in efipart_readwrite() 1028 efipart_strategy(void *devdata, int rw, daddr_t blk, size_t size, in efipart_strategy() argument 1056 return (bcache_strategy(&bcd, rw, blk + offset, in efipart_strategy() 1059 return (bcache_strategy(&bcd, rw, blk, size, buf, rsize)); in efipart_strategy() 1063 efipart_realstrategy(void *devdata, int rw, daddr_t blk, size_t size, in efipart_realstrategy() argument [all …]
|