Home
last modified time | relevance | path

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

12345

/illumos-gate/usr/src/cmd/dc/
H A Ddc.h87 struct blk *getwd(struct blk *);
88 struct blk *lookwd(struct blk *);
89 struct blk *getdec(struct blk *, int);
113 *mult(struct blk *, struct blk *);
114 struct blk *scalint(struct blk *);
115 struct blk *removc(struct blk *, int);
116 struct blk *add(struct blk *, struct blk *),
117 *dcdiv(struct blk *, struct blk *), *removr(struct blk *, int);
118 struct blk *exp(struct blk *, struct blk *);
119 struct blk *sqrt(struct blk *);
[all …]
H A Ddc.c774 struct blk *
775 dcdiv(struct blk *ddivd, struct blk *ddivr) in dcdiv()
975 struct blk *
1021 struct blk *
1074 struct blk *
1075 exp(struct blk *base, struct blk *ex) in exp()
1239 struct blk *
1249 struct blk *
1340 mult(struct blk *p, struct blk *q) in mult()
1831 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 Dmode.h68 struct blk *_blkptr;
75 struct blk struct
77 struct blk *word; argument
78 char pad[ALIGNSIZ - sizeof (struct blk *)]; argument
/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.c279 ulong_t off, blk; in bpcfs_read() local
293 blk = FI_STARTCLUST(fp); in bpcfs_read()
298 blk = FI_STARTCLUST(fp); in bpcfs_read()
305 blk = fat_map(blk, rd); in bpcfs_read()
310 blk, rd); in bpcfs_read()
337 blk = fat_map(blk, rd); in bpcfs_read()
340 blk, rd); in bpcfs_read()
419 return (blk > pcfsp->f_rootlen ? CLUSTER_EOF : blk + 1); in fat_map()
424 ((ulong_t)blk + ((uint_t)blk >> 1)); in fat_map()
444 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/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.h151 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 ;\
267 ldd [tmp2 + (FPRAS_BLK0 + blk * 64)], %f20 ;\
268 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.c600 w_15 = LOAD_BIG_32(blk + 60);
602 w_14 = LOAD_BIG_32(blk + 56);
604 w_13 = LOAD_BIG_32(blk + 52);
606 w_12 = LOAD_BIG_32(blk + 48);
608 w_11 = LOAD_BIG_32(blk + 44);
610 w_10 = LOAD_BIG_32(blk + 40);
612 w_9 = LOAD_BIG_32(blk + 36);
614 w_8 = LOAD_BIG_32(blk + 32);
616 w_7 = LOAD_BIG_32(blk + 28);
618 w_6 = LOAD_BIG_32(blk + 24);
[all …]
/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.c137 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 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/cmd/bnu/
H A Dgio.c196 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 Ddio.c239 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/common/crypto/sha2/
H A Dsha2.c206 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()
224 w6 = LOAD_BIG_32(blk + 4 * 6); in SHA256Transform()
227 w7 = LOAD_BIG_32(blk + 4 * 7); in SHA256Transform()
230 w8 = LOAD_BIG_32(blk + 4 * 8); in SHA256Transform()
233 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 …]
/illumos-gate/usr/src/boot/efi/libefi/
H A Defipart.c989 if (blk < 0 || blk > blkio->Media->LastBlock) in efipart_readwrite()
991 if ((blk + nblks - 1) > blkio->Media->LastBlock) in efipart_readwrite()
1011 blk, nblks, DECODE_ERROR(status)); in efipart_readwrite()
1045 return (bcache_strategy(&bcd, rw, blk + offset, in efipart_strategy()
1066 if (dev == NULL || blk < 0) in efipart_realstrategy()
1080 off = blk * 512; in efipart_realstrategy()
1144 blk = off / blkio->Media->BlockSize; in efipart_realstrategy()
1161 rc = efipart_readwrite(blkio, rw, blk, x, blkbuf); in efipart_realstrategy()
1178 rc = efipart_readwrite(blkio, F_READ, blk, x, in efipart_realstrategy()
1187 rc = efipart_readwrite(blkio, F_READ, blk, x, in efipart_realstrategy()
[all …]

12345