/illumos-gate/usr/src/cmd/bhyve/ |
H A D | block_if.c | 457 bc = arg; in blockif_thr() 476 pthread_cond_wait(&bc->bc_cond, &bc->bc_mtx); in blockif_thr() 811 bc->bc_fd = fd; in blockif_open() 831 TAILQ_INSERT_HEAD(&bc->bc_freeq, &bc->bc_reqs[i], be_link); in blockif_open() 835 pthread_create(&bc->bc_btid[i], NULL, blockif_thr, bc); in blockif_open() 840 return (bc); in blockif_open() 876 bc = arg; in blockif_resized() 880 bc->bc_resize_cb(bc, bc->bc_resize_cb_arg, bc->bc_size); in blockif_resized() 910 bc->bc_resize_event = mevent_add_flags(bc->bc_fd, EVF_VNODE, in blockif_register_resize_callback() 1086 free(bc); in blockif_close() [all …]
|
H A D | block_if.h | 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); 81 int blockif_read(struct blockif_ctxt *bc, struct blockif_req *breq); [all …]
|
H A D | pci_virtio_block.c | 202 struct blockif_ctxt *bc; member 243 (void) blockif_set_wce(sc->bc, 0); in pci_vtblk_reset() 344 err = blockif_read(sc->bc, &io->io_req); in pci_vtblk_proc() 347 err = blockif_write(sc->bc, &io->io_req); in pci_vtblk_proc() 387 err = blockif_delete(sc->bc, &io->io_req); in pci_vtblk_proc() 391 err = blockif_flush(sc->bc, &io->io_req); in pci_vtblk_proc() 462 sc->bc = bctxt; in pci_vtblk_init() 472 if (blockif_candelete(sc->bc)) in pci_vtblk_init() 477 (void) blockif_set_wce(sc->bc, 0); in pci_vtblk_init() 548 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 85 ((bc)->bcache_ctl[BHASH((bc), (blkno))].bc_blkno != (blkno)) 130 return (bc); in bcache_allocate() 142 bc->bcache_data = malloc(bc->bcache_nblks * bcache_blksize); in bcache_allocate() 146 bc->bcache_data = malloc(bc->bcache_nblks * bcache_blksize + in bcache_allocate() 152 if ((bc->bcache_data == NULL) || (bc->bcache_ctl == NULL)) { in bcache_allocate() 165 return (bc); in bcache_allocate() 173 if (bc == NULL) in bcache_free() 250 bcopy(bc->bcache_data + (bcache_blksize * BHASH(bc, blk)), in read_strategy() 294 ra = bc->bcache_nblks - BHASH(bc, p_blk + p_size); in read_strategy() [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/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/uts/common/inet/ip/ |
H A D | ip6_if.c | 1514 bc->cand_isdst = in rule_isdst() 1541 bc->cand_scope = ip_addr_scope_v6(&bc->cand_srcaddr); in rule_scope() 1572 bc->cand_isdeprecated = in rule_deprecated() 1601 bc->cand_ispreferred = ((bc->cand_flags & IPIF_PREFERRED) != 0); in rule_preferred() 1634 bc->cand_matchedinterface = bc->cand_ill == dstill; in rule_interface() 1659 bc->cand_matchedlabel = in rule_label() 1687 bc->cand_istmp = ((bc->cand_flags & IPIF_TEMPORARY) != 0); in rule_temporary() 1716 bc->cand_pref_eq = V6_MASK_EQ_2(bc->cand_srcaddr, in rule_ifprefix() 1725 if (bc->cand_pref_eq) { in rule_ifprefix() 1728 bc->cand_pref_len = in rule_ifprefix() [all …]
|
/illumos-gate/usr/src/lib/libc/port/regex/ |
H A D | regcomp.c | 363 (void) bc; in p_ere_exp() 533 (void) bc; in p_branch_eat_delim() 549 bc->fwd = bc->start; in p_branch_ins_offset() 550 bc->back = bc->start; in p_branch_ins_offset() 558 ++bc->nbranch; in p_branch_ins_offset() 584 (void) bc; in p_branch_empty() 617 (void) bc; in p_bre_pre_parse() 657 bc.nbranch = 0; in p_re() 665 bc.nchain = 0; in p_re() 671 bc.terminate = p->parse_expr(p, &bc); in p_re() [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 | 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) 146 E (ab|ab*)bc abc (0,3)(0,1) [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} 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} 137 libdis_test+0x2ac: 62 f2 fd 2c 44 bc vplzcntq -0x23(%eax,%ebx,4),%ymm7{%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/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/cmd/mdb/common/modules/genunix/ |
H A D | kmem.c | 872 kmem_bufctl_t bc; in kmem_hash_lookup() local 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() 1713 if (mdb_vread(&bc, sizeof (bc), wsp->walk_addr) == -1) { in bufctl_history_walk_init() 1755 if (mdb_vread(&bc, sizeof (bc), addr) == -1) { in bufctl_history_walk_step() 2004 if (mdb_vread(&bc, sizeof (bc), addr) == -1) { in allocdby_walk_step() 2929 if (mdb_vread(&bc, sizeof (bc), addr) == -1) { in bufctl() 2955 if (bc.bc_stack[i] >= laddr && bc.bc_stack[i] < haddr) in bufctl() 2983 addr, bc.bc_addr, bc.bc_timestamp, bc.bc_thread, in bufctl() 2984 "", bc.bc_cache, bc.bc_lastlog, bc.bc_contents); in bufctl() [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/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()
|