Home
last modified time | relevance | path

Searched refs:blk (Results 1 – 25 of 112) sorted by relevance

12345

/illumos-gate/usr/src/cmd/dc/
H A Ddc.h89 struct blk *getwd(struct blk *);
90 struct blk *lookwd(struct blk *);
91 struct blk *getdec(struct blk *, int);
115 *mult(struct blk *, struct blk *);
116 struct blk *scalint(struct blk *);
117 struct blk *removc(struct blk *, int);
118 struct blk *add(struct blk *, struct blk *),
119 *dcdiv(struct blk *, struct blk *), *removr(struct blk *, int);
120 struct blk *exp(struct blk *, struct blk *);
121 struct blk *sqrt(struct blk *);
[all …]
H A Ddc.c776 struct blk *
777 dcdiv(struct blk *ddivd, struct blk *ddivr) in dcdiv()
977 struct blk *
1023 struct blk *
1076 struct blk *
1077 exp(struct blk *base, struct blk *ex) in exp()
1241 struct blk *
1251 struct blk *
1342 mult(struct blk *p, struct blk *q) in mult()
1833 add(struct blk *a1, struct blk *a2) in add()
[all …]
/illumos-gate/usr/src/cmd/sh/
H A Dblok.c79 struct blk *p = blokp; in alloc()
80 struct blk *q; in alloc()
122 struct blk *blokstak; in addblok()
177 struct blk *p;
179 if ((p = (struct blk *)ap) && p < bloktop && p > (struct blk *)brkbegin)
212 struct blk *p = (struct blk *)brkbegin; in chkbptr()
213 struct blk *q; in chkbptr()
245 struct blk *p = (struct blk *)brkbegin; in chkmem()
246 struct blk *q; in chkmem()
285 struct blk *pp = (struct blk *)q;
[all …]
H A Dargs.c246 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)
/illumos-gate/usr/src/uts/common/io/ib/clients/of/sol_ofs/
H A Dsol_uobj.c110 sol_ofs_uobj_blk_t *blk; in sol_ofs_uobj_tbl_fini() local
128 if (!blk) { 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
296 if (blk != NULL && blk->ofs_uo_blk_avail > 0) { in sol_ofs_uobj_add()
362 blk = kmem_zalloc(sizeof (*blk), KM_NOSLEEP); in sol_ofs_uobj_add()
363 if (!blk) { in sol_ofs_uobj_add()
447 if (blk == NULL) { in sol_ofs_uobj_remove()
470 kmem_free(blk, sizeof (*blk)); in sol_ofs_uobj_remove()
[all …]
/illumos-gate/usr/src/lib/libmalloc/common/
H A Dmalloc.c472 blk = freeptr; in malloc_unlocked()
474 blk = blk->nextfree; in malloc_unlocked()
546 blk = newblk; in malloc_unlocked()
593 DELFREEQ(blk); in malloc_unlocked()
604 if (((char *)blk->nextblk - (char *)blk) - nb >= MINBLKSZ) { in malloc_unlocked()
617 blk->nextblk = SETBUSY(blk->nextblk); in malloc_unlocked()
700 ADDFREEQ(blk); in free_unlocked()
785 DELFREEQ(blk); in realloc_unlocked()
999 blk = next; in mallinfo()
1109 blk = (struct header *)CLRALL(blk->nextblk); in check_arena()
[all …]
/illumos-gate/usr/src/lib/libproject/common/
H A Dsetproject.c184 rctlblk_set_value(blk, 0); in reinit_blk()
185 rctlblk_set_local_flags(blk, 0); in reinit_blk()
197 rctlblk_t *blk; in rctl_set() local
231 blk = ablk; in rctl_set()
248 rctlblk_set_value(blk, 0); in rctl_set()
249 rctlblk_set_local_flags(blk, 0); in rctl_set()
292 if (rctlblk_get_privilege(blk) in rctl_set()
296 if (rctlblk_get_privilege(blk) in rctl_set()
306 blk = RCTLBLK_INC(ablk, in rctl_set()
309 reinit_blk(blk, in rctl_set()
[all …]
/illumos-gate/usr/src/common/fs/
H A Dpcfs.c281 ulong_t off, blk; in bpcfs_read() local
295 blk = FI_STARTCLUST(fp); in bpcfs_read()
300 blk = FI_STARTCLUST(fp); in bpcfs_read()
307 blk = fat_map(blk, rd); in bpcfs_read()
312 blk, rd); in bpcfs_read()
339 blk = fat_map(blk, rd); in bpcfs_read()
342 blk, rd); in bpcfs_read()
421 return (blk > pcfsp->f_rootlen ? CLUSTER_EOF : blk + 1); in fat_map()
426 ((ulong_t)blk + ((uint_t)blk >> 1)); in fat_map()
446 if (blk & 1) in fat_map()
[all …]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dmemalign.c65 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()
/illumos-gate/usr/src/psm/stand/bootblks/ufs/common/
H A Dufs.fth85 : fsbtodb ( fs-blk# -- dev-blk# ) fsbtodbc lshift ;
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 * ;
135 : >1-idx ( blk# -- idx ) #blk-addr/blk mod ;
183 #blk-addr/blk la+ blklim !
192 #blk-addr/blk la+ blklim ! ( )
202 \ #blk-addr/blk la+ blklim ! ( )
244 dir-buf bsize dir-blk @ bmap ( adr len fs-blk# )
[all …]
/illumos-gate/usr/src/cmd/mandoc/
H A Dread.c174 while (i < blk.sz && (blk.buf[i] != '\0' || pos != 0)) { 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()
197 if ('\n' == blk.buf[i]) { in mparse_buf_r()
215 c = blk.buf[i]; in mparse_buf_r()
266 if (i == blk.sz || blk.buf[i] == '\0') { in mparse_buf_r()
378 (i >= blk.sz || blk.buf[i] == '\0')) { in mparse_buf_r()
558 struct buf blk; in mparse_readfd() local
587 curp->primary = &blk; in mparse_readfd()
612 munmap(blk.buf, blk.sz); in mparse_readfd()
[all …]
/illumos-gate/usr/src/uts/sun4u/sys/
H A Dfpras_impl.h153 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 ;\
269 ldd [tmp2 + (FPRAS_BLK0 + blk * 64)], %f20 ;\
270 ldd [tmp2 + (FPRAS_BLK0 + blk * 64) + 8], %f18 ;\
[all …]
/illumos-gate/usr/src/boot/common/
H A Dbcache.c196 bcache_invalidate(bc, blk + i); in write_strategy()
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()
376 (intmax_t)blk); in bcache_strategy()
393 cblk = bcache_nblks - BHASH(bc, blk); in bcache_strategy()
401 ret = read_strategy(devdata, rw, blk, csize, in bcache_strategy()
413 blk += isize / bcache_blksize; in bcache_strategy()
[all …]
H A Dmd.c87 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/cmd/svr4pkg/pkginstall/
H A Ddockspace.c199 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()
349 blk = 0; in readmap()
[all …]
/illumos-gate/usr/src/cmd/fs.d/udfs/fsck/
H A Dutilities.c321 dblk = fsbtodb(blk); in getblk()
346 rwerror(char *mesg, daddr_t blk) in rwerror() 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()
415 offset_t offset = ldbtob(blk); in bwrite()
421 rwerror(gettext("SEEK"), blk); in bwrite()
426 rwerror(gettext("WRITE"), blk); in bwrite()
[all …]
/illumos-gate/usr/src/common/crypto/sha1/
H A Dsha1.c603 w_15 = LOAD_BIG_32(blk + 60);
605 w_14 = LOAD_BIG_32(blk + 56);
607 w_13 = LOAD_BIG_32(blk + 52);
609 w_12 = LOAD_BIG_32(blk + 48);
611 w_11 = LOAD_BIG_32(blk + 44);
613 w_10 = LOAD_BIG_32(blk + 40);
615 w_9 = LOAD_BIG_32(blk + 36);
617 w_8 = LOAD_BIG_32(blk + 32);
619 w_7 = LOAD_BIG_32(blk + 28);
621 w_6 = LOAD_BIG_32(blk + 24);
[all …]
/illumos-gate/usr/src/cmd/bnu/
H A Dgio.c200 grdblk(blk, len) in grdblk() argument
201 char *blk; in grdblk()
206 ret = pkread(blk, len - i);
209 blk += ret;
218 gwrblk(blk, len) in gwrblk() argument
219 char *blk; in gwrblk()
221 return(pkwrite(blk, len));
H A Dxio.c214 xrdblk(blk, len, fn) in xrdblk() argument
215 char *blk; in xrdblk()
224 if ((ret = (*Read)(fn, blk, len - i)) < 0) {
228 blk += ret;
/illumos-gate/usr/src/uts/common/io/
H A Demul64_bsd.c1017 blklist_t *blk; in bsd_readblks() local
1075 if (blk) { in bsd_readblks()
1098 blklist_t *blk; in bsd_writeblks() local
1174 if (blk) { in bsd_writeblks()
1178 if (blk) { in bsd_writeblks()
1227 blklist_t *blk; in bsd_freeblkrange() local
1232 blk != NULL; in bsd_freeblkrange()
1233 blk = nextblk) { in bsd_freeblkrange()
1250 blklist_t *blk; in bsd_findblk() local
1257 return (blk); in bsd_findblk()
[all …]
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_fdio.c193 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 Dlabelit.c139 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()
/illumos-gate/usr/src/uts/common/syscall/
H A Drctlsys.c67 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()
85 switch (blk->rcq_global_syslog_level) { in rctlsys_rblk_xfrm()
108 bzero(blk, sizeof (rctl_opaque_t)); in rctlsys_rblk_xfrm()
110 blk->rcq_privilege = val->rcv_privilege; in rctlsys_rblk_xfrm()
111 blk->rcq_value = val->rcv_value; in rctlsys_rblk_xfrm()
116 blk->rcq_firing_time = val->rcv_firing_time; in rctlsys_rblk_xfrm()
[all …]
/illumos-gate/usr/src/common/crypto/sha2/
H A Dsha2.c205 w0 = LOAD_BIG_32(blk + 4 * 0); in SHA256Transform()
208 w1 = LOAD_BIG_32(blk + 4 * 1); in SHA256Transform()
211 w2 = LOAD_BIG_32(blk + 4 * 2); in SHA256Transform()
214 w3 = LOAD_BIG_32(blk + 4 * 3); in SHA256Transform()
217 w4 = LOAD_BIG_32(blk + 4 * 4); in SHA256Transform()
220 w5 = LOAD_BIG_32(blk + 4 * 5); in SHA256Transform()
223 w6 = LOAD_BIG_32(blk + 4 * 6); in SHA256Transform()
226 w7 = LOAD_BIG_32(blk + 4 * 7); in SHA256Transform()
229 w8 = LOAD_BIG_32(blk + 4 * 8); in SHA256Transform()
232 w9 = LOAD_BIG_32(blk + 4 * 9); in SHA256Transform()
[all …]
/illumos-gate/usr/src/uts/common/io/ib/clients/eoib/
H A Deib_rsrc.c478 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()
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()
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()
1014 if (wp->wp_free_wqes[blk] == 0) in eib_rsrc_grab_wqes()
1020 wqe_ndx = blk * EIB_WQES_PER_BLK + ndx; in eib_rsrc_grab_wqes()
1045 uint_t blk; in eib_rsrc_return_wqes() local
[all …]

12345