/illumos-gate/usr/src/cmd/bhyve/common/ |
H A D | block_if.c | 161 blockif_enqueue(struct blockif_ctxt *bc, struct blockif_req *breq, in blockif_enqueue() argument 168 be = TAILQ_FIRST(&bc->bc_freeq); in blockif_enqueue() 171 TAILQ_REMOVE(&bc->bc_freeq, be, be_link); in blockif_enqueue() 189 TAILQ_FOREACH(tbe, &bc->bc_pendq, be_link) { in blockif_enqueue() 194 TAILQ_FOREACH(tbe, &bc->bc_busyq, be_link) { in blockif_enqueue() 203 TAILQ_INSERT_TAIL(&bc->bc_pendq, be, be_link); in blockif_enqueue() 208 blockif_dequeue(struct blockif_ctxt *bc, pthread_t t, struct blockif_elem **bep) in blockif_dequeue() argument 212 TAILQ_FOREACH(be, &bc->bc_pendq, be_link) { in blockif_dequeue() 219 TAILQ_REMOVE(&bc->bc_pendq, be, be_link); in blockif_dequeue() 222 TAILQ_INSERT_TAIL(&bc->bc_busyq, be, be_link); in blockif_dequeue() [all …]
|
H A D | block_if.h | 66 int blockif_add_boot_device(struct pci_devinst *const pi, struct blockif_ctxt *const bc); 68 int blockif_register_resize_callback(struct blockif_ctxt *bc, 70 off_t blockif_size(struct blockif_ctxt *bc); 71 void blockif_chs(struct blockif_ctxt *bc, uint16_t *c, uint8_t *h, 73 int blockif_sectsz(struct blockif_ctxt *bc); 74 void blockif_psectsz(struct blockif_ctxt *bc, int *size, int *off); 75 int blockif_queuesz(struct blockif_ctxt *bc); 76 int blockif_is_ro(struct blockif_ctxt *bc); 77 int blockif_candelete(struct blockif_ctxt *bc); 79 int blockif_set_wce(struct blockif_ctxt *bc, int enable); [all …]
|
H A D | pci_virtio_block.c | 201 struct blockif_ctxt *bc; member 242 (void) blockif_set_wce(sc->bc, 0); in pci_vtblk_reset() 343 err = blockif_read(sc->bc, &io->io_req); in pci_vtblk_proc() 346 err = blockif_write(sc->bc, &io->io_req); in pci_vtblk_proc() 386 err = blockif_delete(sc->bc, &io->io_req); in pci_vtblk_proc() 390 err = blockif_flush(sc->bc, &io->io_req); in pci_vtblk_proc() 461 sc->bc = bctxt; in pci_vtblk_init() 471 if (blockif_candelete(sc->bc)) in pci_vtblk_init() 476 (void) blockif_set_wce(sc->bc, 0); in pci_vtblk_init() 547 blockif_close(sc->bc); in pci_vtblk_init() [all …]
|
/illumos-gate/usr/src/boot/common/ |
H A D | bcache.c | 83 #define BHASH(bc, blkno) ((blkno) & ((bc)->bcache_nblks - 1)) argument 84 #define BCACHE_LOOKUP(bc, blkno) \ argument 85 ((bc)->bcache_ctl[BHASH((bc), (blkno))].bc_blkno != (blkno)) 89 static void bcache_invalidate(struct bcache *bc, daddr_t blkno); 90 static void bcache_insert(struct bcache *bc, daddr_t blkno); 91 static void bcache_free_instance(struct bcache *bc); 122 struct bcache *bc = malloc(sizeof (struct bcache)); in bcache_allocate() local 128 if (bc == NULL) { in bcache_allocate() 130 return (bc); in bcache_allocate() 140 bc->bcache_nblks = bcache_total_nblks >> i; in bcache_allocate() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/comp/ |
H A D | strcasecmp.c | 40 register int bc; 48 bc = *b++; 49 if (isupper(bc)) 50 bc = tolower(bc); 51 if (d = ac - bc)
|
H A D | strncasecmp.c | 41 register int bc; 52 bc = *b++; 53 if (isupper(bc)) 54 bc = tolower(bc); 55 if (d = ac - bc)
|
/illumos-gate/usr/src/uts/common/inet/ip/ |
H A D | ip6_if.c | 1511 rule_isdst(cand_t *bc, cand_t *cc, const dstinfo_t *dstinfo, ip_stack_t *ipst) in rule_isdst() argument 1513 if (!bc->cand_isdst_set) { in rule_isdst() 1514 bc->cand_isdst = in rule_isdst() 1515 IN6_ARE_ADDR_EQUAL(&bc->cand_srcaddr, dstinfo->dst_addr); in rule_isdst() 1516 bc->cand_isdst_set = B_TRUE; in rule_isdst() 1523 if (cc->cand_isdst == bc->cand_isdst) in rule_isdst() 1538 rule_scope(cand_t *bc, cand_t *cc, const dstinfo_t *dstinfo, ip_stack_t *ipst) in rule_scope() argument 1540 if (!bc->cand_scope_set) { in rule_scope() 1541 bc->cand_scope = ip_addr_scope_v6(&bc->cand_srcaddr); in rule_scope() 1542 bc->cand_scope_set = B_TRUE; in rule_scope() [all …]
|
/illumos-gate/usr/src/cmd/bc/ |
H A D | Makefile | 28 PROG= bc 29 XPG6PROG= bc 31 EXOBJS= bc.o 32 XPG6EXOBJS= exobjs.xpg6/bc.o 77 $(XD)/bc.o: bc.y 78 $(YACC.y) bc.y
|
/illumos-gate/usr/src/lib/libc/port/regex/ |
H A D | regcomp.c | 108 static bool p_ere_exp(struct parse *p, struct branchc *bc); 110 static int p_branch_eat_delim(struct parse *p, struct branchc *bc); 111 static void p_branch_ins_offset(struct parse *p, struct branchc *bc); 112 static void p_branch_fix_tail(struct parse *p, struct branchc *bc); 113 static bool p_branch_empty(struct parse *p, struct branchc *bc); 114 static bool p_branch_do(struct parse *p, struct branchc *bc); 115 static void p_bre_pre_parse(struct parse *p, struct branchc *bc); 116 static void p_bre_post_parse(struct parse *p, struct branchc *bc); 118 static bool p_simp_re(struct parse *p, struct branchc *bc); 353 p_ere_exp(struct parse *p, struct branchc *bc) in p_ere_exp() argument [all …]
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_send/ |
H A D | zfs_send_006_pos.ksh | 48 return=$(echo "$PERCENT * $value" | bc) 49 return=$(echo "$return / 100" | bc) 69 total_size=$(echo "$total_size * $block_count" | bc) 79 typeset refer_diff=$(echo "$refer_size - $estimate_size" | bc) 80 refer_diff=$(echo "$refer_diff / 1" | bc) 82 typeset file_diff=$(echo "$file_size - $estimate_size" | bc) 83 file_diff=$(echo "$file_diff / 1" | bc) 149 refer_size=$(echo "$refer_size - $deduct_size" | bc) 186 refer_size=$(echo "$refer_size * 3" | bc)
|
/illumos-gate/usr/src/test/libc-tests/tests/regex/data/ |
H A D | basic.dat | 26 E (ab|a)(bc|c) abc (0,3)(0,2)(2,3) 91 BE ab*bc abc (0,3) 92 BE ab*bc abbc (0,4) 93 BE ab*bc abbbbc (0,6) 94 E ab+bc abbc (0,4) 95 E ab+bc abbbbc (0,6) 96 E ab?bc abbc (0,4) 97 E ab?bc abc (0,3) 107 BE a[bc]d abd (0,3) 114 BE a[^bc]d aed (0,3) [all …]
|
/illumos-gate/usr/src/test/util-tests/tests/dis/i386/ |
H A D | 64.bmi1.out | 16 libdis_test+0x50: 66 f3 0f bc d0 tzcnt %ax,%dx 17 libdis_test+0x55: 66 f3 0f bc 10 tzcnt (%rax),%dx 18 libdis_test+0x5a: 66 f3 0f bc 50 40 tzcnt 0x40(%rax),%dx 19 libdis_test+0x60: f3 0f bc d0 tzcnt %eax,%edx 20 libdis_test+0x64: f3 0f bc 10 tzcnt (%rax),%edx 21 libdis_test+0x68: f3 0f bc 50 40 tzcnt 0x40(%rax),%edx 37 libdis_test+0xbd: f3 48 0f bc d0 tzcnt %rax,%rdx 38 libdis_test+0xc2: f3 48 0f bc 10 tzcnt (%rax),%rdx 39 libdis_test+0xc7: f3 48 0f bc 50 40 tzcnt 0x40(%rax),%rdx
|
H A D | 32.bmi1.out | 16 libdis_test+0x50: 66 f3 0f bc d0 tzcnt %ax,%dx 17 libdis_test+0x55: 66 f3 0f bc 10 tzcnt (%eax),%dx 18 libdis_test+0x5a: 66 f3 0f bc 50 40 tzcnt 0x40(%eax),%dx 19 libdis_test+0x60: f3 0f bc d0 tzcnt %eax,%edx 20 libdis_test+0x64: f3 0f bc 10 tzcnt (%eax),%edx 21 libdis_test+0x68: f3 0f bc 50 40 tzcnt 0x40(%eax),%edx
|
H A D | 32.avx512cd.out | 7 libdis_test+0x22: 62 f2 7d 0c c4 bc vpconflictd -0x23(%eax,%ebx,4),%xmm7{%k4} 20 libdis_test+0x63: 62 f2 7d 2c c4 bc vpconflictd -0x23(%eax,%ebx,4),%ymm7{%k4} 33 libdis_test+0xa4: 62 f2 7d 4c c4 bc vpconflictd -0x23(%eax,%ebx,4),%zmm7{%k4} 46 libdis_test+0xe5: 62 f2 fd 0c c4 bc vpconflictq -0x23(%eax,%ebx,4),%xmm7{%k4} 59 libdis_test+0x126: 62 f2 fd 2c c4 bc vpconflictq -0x23(%eax,%ebx,4),%ymm7{%k4} 72 libdis_test+0x167: 62 f2 fd 4c c4 bc vpconflictq -0x23(%eax,%ebx,4),%zmm7{%k4} 85 libdis_test+0x1a8: 62 f2 7d 0c 44 bc vplzcntd -0x23(%eax,%ebx,4),%xmm7{%k4} 98 libdis_test+0x1e9: 62 f2 7d 2c 44 bc vplzcntd -0x23(%eax,%ebx,4),%ymm7{%k4} 111 libdis_test+0x22a: 62 f2 7d 4c 44 bc vplzcntd -0x23(%eax,%ebx,4),%zmm7{%k4} 124 libdis_test+0x26b: 62 f2 fd 0c 44 bc vplzcntq -0x23(%eax,%ebx,4),%xmm7{%k4} [all …]
|
/illumos-gate/usr/src/lib/libc/i386/gen/ |
H A D | _mul64.S | 37 / ac bc 39 / ac ad+bc bd 41 / We can ignore ac and top 32 bits of ad+bc: if <> 0, overflow happened. 58 mull 20(%ebp) / Multiply A.lo * B.hi (producing bc) 59 addl %ecx,%eax / Produce ad+bc
|
/illumos-gate/usr/src/uts/common/crypto/api/ |
H A D | kcf_cbufcall.c | 80 crypto_bufcall_free(crypto_bc_t bc) in crypto_bufcall_free() argument 82 kcf_cbuf_elem_t *cbufp = (kcf_cbuf_elem_t *)bc; in crypto_bufcall_free() 105 crypto_bufcall(crypto_bc_t bc, void (*func)(void *arg), void *arg) in crypto_bufcall() argument 109 cbufp = (kcf_cbuf_elem_t *)bc; in crypto_bufcall() 153 crypto_unbufcall(crypto_bc_t bc) in crypto_unbufcall() argument 155 kcf_cbuf_elem_t *cbufp = (kcf_cbuf_elem_t *)bc; in crypto_unbufcall()
|
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | kmem.c | 872 kmem_bufctl_t bc; in kmem_hash_lookup() local 881 if (mdb_vread(&bc, sizeof (kmem_bufctl_t), in kmem_hash_lookup() 886 if (bc.bc_addr == buf) { in kmem_hash_lookup() 890 bcp = bc.bc_next; in kmem_hash_lookup() 1346 kmem_bufctl_t bc; in kmem_walk_step() local 1489 if (mdb_vread(&bc, sizeof (bc), (uintptr_t)bcp) == -1) { in kmem_walk_step() 1494 buf = bc.bc_addr; in kmem_walk_step() 1514 bc = *((kmem_bufctl_t *)((uintptr_t)ubase + offs)); in kmem_walk_step() 1549 bcp = bc.bc_next; in kmem_walk_step() 1705 kmem_bufctl_audit_t bc; in bufctl_history_walk_init() local [all …]
|
H A D | leaky_subr.c | 515 kmem_bufctl_audit_t bc; in leaky_subr_add_leak() local 517 if (mdb_vread(&bc, sizeof (bc), addr) == -1) { in leaky_subr_add_leak() 523 depth = MIN(bc.bc_depth, KMEM_STACK_DEPTH); in leaky_subr_add_leak() 535 leaky_add_leak(TYPE_KMEM, addr, (uintptr_t)bc.bc_addr, in leaky_subr_add_leak() 536 bc.bc_timestamp, bc.bc_stack + 1, depth, in leaky_subr_add_leak() 537 (uintptr_t)bc.bc_cache, 0); in leaky_subr_add_leak() 897 kmem_bufctl_audit_t bc; in leaky_subr_invoke_callback() local 913 if (mdb_vread(&bc, sizeof (bc), lkb->lkb_addr) == -1) { in leaky_subr_invoke_callback() 918 return (cb(lkb->lkb_addr, &bc, cbdata)); in leaky_subr_invoke_callback()
|
/illumos-gate/usr/src/lib/libldap5/sources/ldap/common/ |
H A D | ldaputf8.c | 149 unsigned long sc, bc; in ldap_utf8strtok_r() local 158 for (bp = brk; (bc = LDAP_UTF8GETCC(bp)) != 0;) { in ldap_utf8strtok_r() 159 if (sc == bc) in ldap_utf8strtok_r() 176 if ((bc = LDAP_UTF8GETCC(bp)) == sc) { in ldap_utf8strtok_r() 185 } while (bc != 0); in ldap_utf8strtok_r()
|
/illumos-gate/usr/src/lib/libcurses/screen/ |
H A D | init_color.c | 125 float rc, gc, bc, h, l, s; in _rgb_to_hls() local 152 bc = (max - b) / (max - min); in _rgb_to_hls() 155 h = bc - gc; in _rgb_to_hls() 157 h = 2 + rc - bc; in _rgb_to_hls()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/bridged/ |
H A D | events.c | 449 bridge_ctl_t bc; in handle_control() local 454 retv = read(control_fd, &bc, sizeof (bc)); in handle_control() 455 if (retv != sizeof (bc)) in handle_control() 457 if ((port = find_by_linkid(bc.bc_linkid)) == NULL) in handle_control() 459 if (port->sdu_failed == bc.bc_failed) in handle_control() 461 port->sdu_failed = bc.bc_failed; in handle_control() 477 if ((rc = STP_IN_enable_port(port->port_index, !bc.bc_failed)) != 0) in handle_control() 479 port->name, bc.bc_failed ? "disable" : "enable", in handle_control()
|
/illumos-gate/usr/src/test/zfs-tests/include/ |
H A D | math.shlib | 33 [[ '1' = $(echo "if ($2 > $a) 1" | bc) ]] && a=$2 || b=$2 38 typeset p=$(echo "scale=2; $b * 100 / $a" | bc) 40 [[ '1' = $(echo "scale=2; if ($p >= $percent) 1" | bc) ]] && return 0 88 echo "$value * ($factor)" | bc
|
/illumos-gate/usr/src/cmd/fs.d/ufs/fsck/ |
H A D | dir.c | 832 int bc, f; in expanddir() local 853 for (bc = 0; ((nxtbn > 0) && (bc < nxtbn) && (bc < NDADDR)); bc++) { in expanddir() 854 if (dp->di_db[bc] == 0) { in expanddir() 969 for (bc = 0; ((bc < nxtibn) && (bc < n)); bc++) { in expanddir() 971 if (((daddr32_t *)bp[1]->b_un.b_buf)[bc] == 0) { in expanddir()
|
/illumos-gate/usr/src/lib/libresolv2/common/nameser/ |
H A D | ns_name.c | 740 int ac, bc; in ns_name_eq() local 742 while (ac = *a, bc = *b, ac != 0 && bc != 0) { in ns_name_eq() 743 if ((ac & NS_CMPRSFLGS) != 0 || (bc & NS_CMPRSFLGS) != 0) { in ns_name_eq() 747 if (a + ac >= ae || b + bc >= be) { in ns_name_eq() 751 if (ac != bc || strncasecmp((const char *) ++a, in ns_name_eq() 754 a += ac, b += bc; in ns_name_eq() 756 return (ac == 0 && bc == 0); in ns_name_eq()
|
/illumos-gate/usr/src/cmd/dd/ |
H A D | dd.c | 1778 int bc; in flsh() local 1789 bc = write(obf, (char *)obuf, oc); in flsh() 1790 if (bc != oc) { in flsh() 1791 if (bc < 0) { in flsh() 1796 "wrote %d bytes, expected %d\n"), bc, oc); in flsh() 1809 obytes += bc; in flsh() 1816 bc = obc; in flsh() 1819 } while (--bc); in flsh()
|