/illumos-gate/usr/src/cmd/dc/ |
H A D | dc.h | 34 #define BLK sizeof (struct blk) 76 struct blk { struct 83 struct blk **rdw; 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 *lookw [all...] |
H A D | dc.c | 99 struct blk *p, *q; 102 struct blk **ptr, *s, *t; 776 struct blk * 777 dcdiv(struct blk *ddivd, struct blk *ddivr) 782 struct blk *ps, *px; 783 struct blk *p, *divd, *divr; 938 struct blk *dd, *dr, *r; 977 struct blk * 978 removr(struct blk * [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; 80 struct blk *q; 88 blokp = (struct blk *) 92 p->word = (struct blk *) 101 p = (struct blk *)(Rcheat(p->word) & ~BUSY); 117 bloktop = (struct blk *)brkbegi [all...] |
H A D | stak.h | 100 extern struct blk *stakbsy;
|
H A D | mode.h | 68 struct blk *_blkptr; 75 struct blk struct 77 struct blk *word; 78 char pad[ALIGNSIZ - sizeof (struct blk *)];
|
/illumos-gate/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);
|
/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; 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/mailx/ |
H A D | lock.c | 47 lock(FILE *fp, char *mode, int blk) argument 54 return fcntl(fileno(fp), blk ? F_SETLKW : F_SETLK, &l);
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | memalign.c | 65 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/lib/libmalloc/common/ |
H A D | malloc.c | 311 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/lib/libproject/common/ |
H A D | setproject.c | 74 build_rctlblk(rctlblk_t *blk, int comp_num, char *component) argument 78 uint_t act = rctlblk_get_local_action(blk, &sig); 87 rctlblk_set_privilege(blk, RCPRIV_BASIC); 93 rctlblk_set_privilege(blk, RCPRIV_PRIVILEGED); 117 rctlblk_set_value(blk, (rctl_qty_t)val); 126 rctlblk_set_local_action(blk, 0, 0); 133 rctlblk_set_local_action(blk, act, sig); 157 rctlblk_set_local_action(blk, act, sig); 181 reinit_blk(rctlblk_t *blk, int local_action) argument 183 rctlblk_set_privilege(blk, RCPRIV_PRIVILEGE 197 rctlblk_t *blk; local [all...] |
/illumos-gate/usr/src/uts/common/sys/ |
H A D | rctl_impl.h | 66 #define RCTLBLK_INC(blk, n) (rctlblk_t *)(((char *)blk) \
|
/illumos-gate/usr/src/common/fs/ |
H A D | pcfs.c | 281 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/cmd/bnu/ |
H A D | gio.c | 202 grdblk(blk, len) 203 char *blk; 208 ret = pkread(blk, len - i); 211 blk += ret; 220 gwrblk(blk, len) 221 char *blk; 223 return(pkwrite(blk, len));
|
H A D | xio.c | 206 * blk -> address of buffer 214 xrdblk(blk, len, fn) 215 char *blk; 224 if ((ret = (*Read)(fn, blk, len - i)) < 0) { 228 blk += ret;
|
/illumos-gate/usr/src/boot/sys/boot/common/ |
H A D | bcache.c | 185 write_strategy(void *devdata, int rw, daddr_t blk, size_t offset, argument 196 bcache_invalidate(bc, blk + i); 200 return (dd->dv_strategy(dd->dv_devdata, rw, blk, offset, size, buf, rsize)); 209 read_strategy(void *devdata, int rw, daddr_t blk, size_t offset, argument 235 if (BCACHE_LOOKUP(bc, (daddr_t)(blk + i))) { 249 bcopy(bc->bcache_data + (bcache_blksize * BHASH(bc, blk)) + offset, 259 p_blk = blk + i; 302 if (BCACHE_LOOKUP(bc, (daddr_t)(blk + i))) 310 bcopy(bc->bcache_data + (bcache_blksize * BHASH(bc, blk)) + offset, 326 bcache_strategy(void *devdata, int rw, daddr_t blk, size_ argument [all...] |
H A D | md.c | 87 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;
|
/illumos-gate/usr/src/uts/sun4u/sys/ |
H A D | fpras_impl.h | 131 * blk (immediate): which block to copy 140 #define FPRAS_INTERVAL(operation, blk, doex, tmp1, tmp2, tmp3, tmp4, label) \ 153 prefetch [tmp2 + (FPRAS_BLK0 + blk * 64)], #one_read ;\ 189 * blk (immediate): as above 212 #define FPRAS_REWRITE_TYPE1(blk, doex, fpq, tmp1, label) \ 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) \ 241 ldd [tmp2 + (FPRAS_BLK0 + blk * 64)], %f4 ;\ 242 ldd [tmp2 + (FPRAS_BLK0 + blk * 6 [all...] |
/illumos-gate/usr/src/cmd/mandoc/ |
H A D | read.c | 320 mparse_buf_r(struct mparse *curp, struct buf blk, size_t i, int start) argument 338 while (i < blk.sz) { 339 if (0 == pos && '\0' == blk.buf[i]) 349 curp->filenc = preconv_cue(&blk, i); 352 while (i < blk.sz && (start || blk.buf[i] != '\0')) { 360 if ('\r' == blk.buf[i] && i + 1 < blk.sz && 361 '\n' == blk.buf[i + 1]) 363 if ('\n' == blk 700 mparse_parse_buffer(struct mparse *curp, struct buf blk, const char *file) argument 743 struct buf blk; local 759 struct buf blk; local [all...] |
/illumos-gate/usr/src/cmd/svr4pkg/pkginstall/ |
H A D | dockspace.c | 195 fsblkcnt_t blk; local 250 blk = nblk(ept->cinfo.size, 254 blk = 0; 255 fs_tab->bused += blk; 313 blk = 318 blk = nblk(ept->cinfo.size, 322 blk = 0; 326 blk = 0; 341 blk = 0; 343 blk [all...] |
/illumos-gate/usr/src/uts/common/avs/ns/sdbc/ |
H A D | sd_hash.h | 69 #define HASH(cd, blk, table) \ 70 (((cd << 6) ^ ((blk) ^ ((blk) >> table->ht_bits))) \
|
/illumos-gate/usr/src/boot/sys/boot/efi/libefi/ |
H A D | efipart.c | 262 efipart_readwrite(EFI_BLOCK_IO *blkio, int rw, daddr_t blk, daddr_t nblks, argument 269 if (blk < 0 || blk > blkio->Media->LastBlock) 271 if ((blk + nblks - 1) > blkio->Media->LastBlock) 276 status = blkio->ReadBlocks(blkio, blkio->Media->MediaId, blk, 282 status = blkio->WriteBlocks(blkio, blkio->Media->MediaId, blk, 295 efipart_strategy(void *devdata, int rw, daddr_t blk, size_t offset, argument 305 return (bcache_strategy(&bcd, rw, blk, offset, size, 310 efipart_realstrategy(void *devdata, int rw, daddr_t blk, size_t offset, argument 320 if (dev == NULL || blk < [all...] |
/illumos-gate/usr/src/cmd/fs.d/udfs/fsck/ |
H A D | utilities.c | 315 getblk(struct bufarea *bp, daddr_t blk, long size) argument 319 dblk = fsbtodb(blk); 344 rwerror(char *mesg, daddr_t blk) argument 349 pfatal(gettext("CANNOT %s: BLK %ld"), mesg, blk); 380 bread(int fd, char *buf, daddr_t blk, long size) argument 384 offset_t offset = ldbtob(blk); 388 rwerror(gettext("SEEK"), blk); 391 rwerror(gettext("READ"), blk); 393 rwerror(gettext("SEEK"), blk); 398 addr = ldbtob(blk 410 bwrite(int fd, char *buf, daddr_t blk, long size) argument [all...] |
/illumos-gate/usr/src/cmd/fs.d/ufs/labelit/ |
H A D | labelit.c | 139 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/tools/ctf/dwarf/common/ |
H A D | pro_alloc.c | 68 #define BLOCK_TO_LIST(blk) ((memory_list_t*) (((char*)blk) - sizeof(memory_list_t)))
|