/illumos-gate/usr/src/cmd/lastcomm/ |
H A D | lc_pacct.c | 43 int bn, cc; local 62 for (bn = ((unsigned)sb.st_size / BUF_SIZ) + 1; bn >= 0; bn--) { 63 if (lseek(fd, (unsigned)bn * BUF_SIZ, 0) == -1) {
|
/illumos-gate/usr/src/lib/fm/topo/modules/i86pc/hostbridge/ |
H A D | hb_i86pc.c | 37 hb_process(topo_mod_t *mod, tnode_t *ptn, topo_instance_t hbi, di_node_t bn) argument 42 if ((hbdid = did_create(mod, bn, 0, hbi, NO_RC, TRUST_BDF)) == NULL) 44 if ((hb = pcihostbridge_declare(mod, ptn, bn, hbi)) == NULL) 56 rc_process(topo_mod_t *mod, tnode_t *ptn, topo_instance_t hbi, di_node_t bn) argument 62 if ((hbdid = did_create(mod, bn, 0, hbi, hbi, TRUST_BDF)) == NULL) 64 if ((hb = pciexhostbridge_declare(mod, ptn, bn, hbi)) == NULL) 66 if ((rc = pciexrc_declare(mod, hb, bn, hbi)) == NULL)
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | fbio.c | 189 fbiwrite(struct fbuf *fbp, vnode_t *devvp, daddr_t bn, int bsize) argument 209 bp->b_blkno = bn * btod(bsize);
|
/illumos-gate/usr/src/lib/fm/topo/modules/i86pc/x86pi/ |
H A D | x86pi_hostbridge.c | 163 pci_process(topo_mod_t *mod, tnode_t *tn_hbr, di_node_t bn) argument 168 if ((did = did_create(mod, bn, topo_node_instance(tn_bb),
|
/illumos-gate/usr/src/cmd/format/ |
H A D | ctlr_ata.c | 369 ata_repair(diskaddr_t bn, int flag) argument 402 blc_p->bl_sec[blc_p->bl_cnt++] = (uint_t)bn;
|
H A D | menu_defect.c | 266 diskaddr_t bn; local 296 bn = input(FIO_BN, "Enter defective block number", ':', 298 def.cyl = bn2c(bn); 299 def.head = bn2h(bn); 300 def.sect = bn2s(bn);
|
/illumos-gate/usr/src/cmd/svr4pkg/libinst/ |
H A D | copyf.c | 434 char *bn; local 475 bn = basename(a_path); 478 a_tmpdir, a_tmpdir[n-1] == '/' ? "" : "/", bn);
|
/illumos-gate/usr/src/uts/common/fs/ufs/ |
H A D | ufs_extvnops.c | 79 daddr_t bn; local 117 if ((error = bmap_read(ip, offset1, &bn, &contig)) != 0) { 120 ASSERT(!(bn == UFS_HOLE && iswrite)); 121 if (bn == UFS_HOLE) { 167 bp->b_blkno = bn; 249 daddr_t bn; local 344 error = bmap_read(ip, uoff, &bn, 358 bp->b_blkno = bn; 410 error = bmap_read(ip, uoff, &bn, &contig); 417 if (bn ! [all...] |
H A D | quota.c | 169 daddr_t bn; local 272 err = bmap_read(qip, dqoff(uid), &bn, &contig); 274 if ((bn != UFS_HOLE) && !err) { 275 dqp->dq_mof = ldbtob(bn) +
|
H A D | quotacalls.c | 500 daddr_t bn; local 653 error = bmap_read(qip, dqoff(dqp->dq_uid), &bn, &contig); 655 if (error || (bn == UFS_HOLE)) { 658 dqp->dq_mof = ldbtob(bn) +
|
/illumos-gate/usr/src/uts/common/tnf/ |
H A D | tnf_buf.c | 78 ulong_t tmp_bn, bn, new_bn; local 105 bn = fh->next_alloc.block[gen & TNFW_B_ALLOC_LO]; 113 if ((new_bn = bn + 1) >= bcount) { 124 ((char *)fh + (bn << TNF_BLOCK_SHIFT)); 135 bn = fh->next_alloc.block[gen & TNFW_B_ALLOC_LO]; 138 if ((new_bn > bn && new_gen == gen) || new_gen > gen) { 140 bn = new_bn;
|
/illumos-gate/usr/src/lib/fm/topo/modules/sun4/hostbridge/ |
H A D | hb_sun4.c | 151 topo_instance_t bi, di_node_t bn, did_t *hbdid) 155 if ((hb = pcihostbridge_declare(mod, ptn, bn, hbi)) == NULL) 166 rc_process(topo_mod_t *mod, tnode_t *ptn, topo_instance_t rci, di_node_t bn) argument 170 if ((rc = pciexrc_declare(mod, ptn, bn, rci)) == NULL) 150 hb_process(topo_mod_t *mod, tnode_t *ptn, topo_instance_t hbi, topo_instance_t bi, di_node_t bn, did_t *hbdid) argument
|
/illumos-gate/usr/src/lib/libvolmgt/common/ |
H A D | volmgt_on_private.c | 137 char *bn = NULL; /* block name */ local 149 if ((bn = (char *)volmgt_getfullblkname(path)) == NULL) { 156 absname = bn; 157 if (realpath(bn, pathbuf) != NULL) 161 (!volmgt_ownspath(absname) && volmgt_symname(bn) == NULL); 171 if (strncmp(bn, vr, strlen(vr)) == 0) { 177 media_info_gotten = get_media_info(bn, &mtype, &mnum, &spcl); 180 mnum, spcl, bn); 186 if (get_media_info(bn, &mtype, &mnum, &spcl)) { 212 mtype, mnum, spcl, bn); 561 call_unmount_prog(int mi_gotten, int use_rmm, char *mtype, int mnum, char *spcl, char *bn) argument [all...] |
/illumos-gate/usr/src/lib/libnsl/yp/ |
H A D | dbm.c | 345 long bn; local 352 bn = bitno / BYTESIZ; 353 i = bn % DBLKSIZ; 354 b = bn / DBLKSIZ; 373 long bn; local 383 bn = bitno / BYTESIZ; 384 i = bn % DBLKSIZ; 385 b = bn / DBLKSIZ;
|
/illumos-gate/usr/src/cmd/rmformat/ |
H A D | rmf_menu.c | 838 diskaddr_t bn; local 878 for (bn = 0; bn < (uint32_t)med_info.sm_capacity; 879 bn += verify_size) { 880 new_per = (bn * 80)/(uint32_t)med_info.sm_capacity; 887 verify_size, bn); 888 ret = verify(handle, fd, bn, verify_size, read_buf, 892 ret = verify(handle, fd, bn, verify_size, 901 if ((bn + j) >= capacity) 905 "at %llu\n", 1, bn [all...] |
/illumos-gate/usr/src/cmd/ndmpd/ndmp/ |
H A D | ndmpd_mark.c | 123 * bn (input) - the bit number 130 count_bits_cb(int bmd, u_longlong_t bn, void *arg) argument 132 if (dbm_getone(bmd, bn)) { 135 NDMP_LOG(LOG_DEBUG, "%llu", bn);
|
/illumos-gate/usr/src/cmd/sed/ |
H A D | main.c | 397 char bn[PATH_MAX]; local 399 (void) strlcpy(bn, fname, sizeof (bn)); 416 basename(bn));
|
/illumos-gate/usr/src/ucblib/libdbm/ |
H A D | dbm.c | 355 long bn; local 362 bn = bitno / BYTESIZ; 363 i = bn % DBLKSIZ; 364 b = bn / DBLKSIZ; 382 long bn; local 392 bn = bitno / BYTESIZ; 393 i = bn % DBLKSIZ; 394 b = bn / DBLKSIZ;
|
/illumos-gate/usr/src/uts/common/vm/ |
H A D | hat_refmod.c | 92 uint_t bn; /* bit number */ local 126 for (bn = 1, id = 2; bn < (nbits - 1); bn++, id <<= 1) 129 if (bn >= (nbits - 1)) {
|
/illumos-gate/usr/src/uts/common/fs/nfs/ |
H A D | nfs_dump.c | 105 nfs_dump(vnode_t *dumpvp, caddr_t addr, offset_t bn, offset_t count, argument 117 nd_log("nfs_dump: addr=%p bn=%lld count=%lld\n", 118 (void *)addr, bn, count); 125 error = nd_send_data(tiptr, addr, (int)dbtob(bn + i),
|
/illumos-gate/usr/src/grub/grub-0.97/stage2/ |
H A D | fsys_ufs.c | 168 sbmap(grub_daddr32_t bn) argument 175 if (bn < UFS_NDADDR) { 176 return db[bn]; 181 bn -= UFS_NDADDR; 183 while (bn >= bound) { 185 bn -= bound; 188 if (level >= UFS_NIADDR) /* bn too big */ 205 index = (bn / bound) % UFS_NINDIR(SUPERBLOCK); 218 index = (bn / bound) % UFS_NINDIR(SUPERBLOCK);
|
/illumos-gate/usr/src/lib/libbc/libc/gen/common/ |
H A D | ndbm.c | 612 long bn; local 623 bn = my_bitno / BYTESIZ; 624 i = bn % DBLKSIZ; 625 b = bn / DBLKSIZ; 668 long bn; local 675 bn = db->dbm_bitno / BYTESIZ; 676 i = bn % DBLKSIZ; 677 b = bn / DBLKSIZ; 691 long bn; local 697 bn [all...] |
/illumos-gate/usr/src/common/fs/ |
H A D | ufsops.c | 79 static daddr32_t sbmap(fileid_t *filep, daddr32_t bn); 216 sbmap(fileid_t *filep, daddr32_t bn) argument 231 if (bn < NDADDR) { 232 nb = db[bn]; 241 bn -= NDADDR; 244 if (bn < sh) 246 bn -= sh; 271 i = (bn / sh) % NINDIR(&devp->un_fs.di_fs);
|
/illumos-gate/usr/src/lib/fm/topo/modules/common/pcibus/ |
H A D | pcibus.c | 560 tnode_t *bn = NULL; local 586 bn = pciexbus_declare(mod, parent, pn, ((pb < 0) ? bover : pb)); 588 bn = pcibus_declare(mod, parent, pn, ((pb < 0) ? bover : pb)); 589 if (bn == NULL) 605 declare_dev_and_fn(mod, bn,
|
/illumos-gate/usr/src/lib/libresolv2/common/nameser/ |
H A D | ns_name.c | 766 ns_name_owned(ns_namemap_ct a, int an, ns_namemap_ct b, int bn) { argument 768 if (an < bn) 772 while (bn > 0) { 778 b++, bn--;
|