| /netbsd/src/sys/lib/libsa/ |
| D | read.c | 68 read(int fd, void *dest, size_t bcount) in read() argument 70 oread(int fd, void *dest, size_t bcount) in read() 88 btodb(f->f_offset), bcount, dest, &resid); in read() 95 resid = bcount; in read() 96 if ((errno = FS_READ(f->f_ops)(f, dest, bcount, &resid))) in read() 98 return (ssize_t)(bcount - resid); in read()
|
| D | write.c | 67 write(int fd, const void *destp, size_t bcount) in write() argument 85 btodb(f->f_offset), bcount, dest, &resid); in write() 92 resid = bcount; in write() 93 if ((errno = FS_WRITE(f->f_ops)(f, dest, bcount, &resid))) in write()
|
| /netbsd/src/sys/dev/ata/ |
| D | ld_ataraid.c | 291 u_int comp, daddr_t bn, void *addr, long bcount) in ld_ataraid_make_cbuf() argument 307 cbp->cb_buf.b_bcount = bcount; in ld_ataraid_make_cbuf() 345 long bcount, rcount; in ld_ataraid_start_span() local 362 for (bcount = bp->b_bcount; bcount > 0; bcount -= rcount) { in ld_ataraid_start_span() 403 long bcount, rcount; in ld_ataraid_start_raid0() local 415 for (bcount = bp->b_bcount; bcount > 0; bcount -= rcount) { in ld_ataraid_start_raid0() 428 rcount = uimin(bcount, dbtob(sz)); in ld_ataraid_start_raid0() 433 rcount = uimin(bcount, dbtob(aai->aai_interleave - off)); in ld_ataraid_start_raid0()
|
| D | atavar.h | 58 long bcount; /* total number of bytes */ member 123 int bcount; /* number of bytes to transfer */ member
|
| D | wd.c | 706 xfer->c_bio.bcount = bp->b_bcount; in wdstart1() 713 KASSERT(xfer->c_skip < xfer->c_bio.bcount); in wdstart1() 715 xfer->c_bio.bcount -= xfer->c_skip; in wdstart1() 753 (((xfer->c_bio.blkno + xfer->c_bio.bcount / secsize) > in wdstart1() 755 ((xfer->c_bio.bcount / secsize) > 128))) in wdstart1() 912 bp->b_resid = xfer->c_bio.bcount; in wddone() 1644 xfer->c_bio.bcount = nblk * dg->dg_secsize; in wd_dumpblocks() 1977 xfer->c_ata_c.bcount = 512; in wd_trim() 2158 xfer->c_ata_c.bcount = wi->wi_bp.b_bcount; in wdioctlstrategy()
|
| /netbsd/src/sys/ufs/lfs/ |
| D | lfs_balloc.c | 130 int bcount; in lfs_balloc() local 277 bcount = 0; /* number of frags we need */ in lfs_balloc() 280 bcount = frags; in lfs_balloc() 285 bcount += frags; in lfs_balloc() 288 if (ISSPACE(fs, bcount, cred)) { in lfs_balloc() 291 lfs_sb_subbfree(fs, bcount); in lfs_balloc() 294 ip->i_lfs_effnblks += bcount; in lfs_balloc()
|
| /netbsd/src/sys/fs/nfs/client/ |
| D | nfs_clbio.c | 412 int bcount; in ncl_bioread() local 498 bcount = biosize; in ncl_bioread() 500 bcount = 0; in ncl_bioread() 502 bcount = nsize - (off_t)lbn * biosize; in ncl_bioread() 504 bp = nfs_getcacheblk(vp, lbn, bcount, td); in ncl_bioread() 535 if (on < bcount) in ncl_bioread() 536 n = MIN((unsigned)(bcount - on), uio->uio_resid); in ncl_bioread() 854 int bcount, noncontig_write, obcount; in ncl_write() local 1027 bcount = on + n; in ncl_write() 1028 allocbuf(bp, bcount); in ncl_write() [all …]
|
| /netbsd/src/external/gpl3/gcc/dist/contrib/reghunt/examples/ |
| D | 28970.c | 10 void bug(int q, int bcount) in bug() argument 20 j = tar (outgo*bcount); in bug()
|
| /netbsd/src/sys/arch/mmeye/stand/boot/ |
| D | wdc.c | 244 for (i = wd_c->bcount; i > 0; i -= sizeof(uint16_t)) in wdc_read_block() 247 for (i = wd_c->bcount; i > 0; i -= sizeof(uint16_t)) in wdc_read_block() 264 wd_c->r_head, wd_c->r_sector, wd_c->bcount, in wdccommand() 348 wd_c.bcount = DEV_BSIZE; in wdc_exec_identify() 375 wd_c.bcount = wd->sc_label.d_secsize; in wdc_exec_read()
|
| D | wdvar.h | 126 uint16_t bcount; member
|
| /netbsd/src/sys/arch/bebox/stand/boot/ |
| D | wdc.c | 261 for (i = wd_c->bcount; i > 0; i -= sizeof(uint16_t)) in wdc_read_block() 264 for (i = wd_c->bcount; i > 0; i -= sizeof(uint16_t)) in wdc_read_block() 280 wd_c->r_head, wd_c->r_sector, wd_c->bcount)); in wdccommand() 361 wd_c.bcount = DEV_BSIZE; in _wdc_exec_identify() 440 wd_c.bcount = wd->sc_label.d_secsize; in wdc_exec_read()
|
| D | wdvar.h | 86 uint16_t bcount; member
|
| /netbsd/src/sys/arch/cobalt/stand/boot/ |
| D | wdc.c | 210 for (i = wd_c->bcount; i > 0; i -= sizeof(uint16_t)) in wdc_read_block() 227 wd_c->r_head, wd_c->r_sector, wd_c->bcount, in wdccommand() 311 wd_c.bcount = DEV_BSIZE; in wdc_exec_identify() 338 wd_c.bcount = wd->sc_label.d_secsize; in wdc_exec_read()
|
| D | wdvar.h | 92 uint16_t bcount; member
|
| /netbsd/src/external/bsd/openldap/dist/contrib/slapd-modules/addpartial/ |
| D | addpartial-overlay.c | 123 int acount , bcount; in addpartial_add() local 133 for(bv = at->a_vals, bcount = 0; bv->bv_val != NULL; in addpartial_add() 134 bv++, bcount++) in addpartial_add() 138 if(acount != bcount) in addpartial_add()
|
| /netbsd/src/sys/kern/ |
| D | subr_iostat.c | 278 iostat_unbusy(struct io_stats *stats, long bcount, int read) in iostat_unbusy() argument 295 if (bcount > 0) { in iostat_unbusy() 297 stats->io_rbytes += bcount; in iostat_unbusy() 300 stats->io_wbytes += bcount; in iostat_unbusy()
|
| /netbsd/src/sys/dev/mca/ |
| D | edc_mca.c | 855 size_t bcount, daddr_t rawblkno, int isread, int poll) in edc_bio() argument 872 bcount, NULL, BUS_DMA_STREAMING|fl))) { in edc_bio() 879 bcount, (isread) ? BUS_DMASYNC_PREREAD : BUS_DMASYNC_PREWRITE); in edc_bio() 888 cmd_args[1] = bcount / DEV_BSIZE; in edc_bio() 897 bus_dmamap_sync(sc->sc_dmat, sc->sc_dmamap_xfer, 0, bcount, in edc_bio()
|
| /netbsd/src/sbin/newfs_ext2fs/ |
| D | mke2fs.c | 187 uint bcount, fbcount, ficount; in mke2fs() local 281 bcount = EXT2_DBTOFSB(&sblock, fssize); in mke2fs() 294 ncg = howmany(bcount - sblock.e2fs.e2fs_first_dblock, blocks_per_cg); in mke2fs() 315 blocks_lastcg = bcount - sblock.e2fs.e2fs_first_dblock - in mke2fs() 326 bcount -= blocks_lastcg; in mke2fs() 339 sblock.e2fs.e2fs_bcount = bcount; in mke2fs() 531 (uint)(((uint64_t)bcount * bsize) / (1024 * 1024)), in mke2fs() 532 (uint)((uint64_t)bcount * bsize - in mke2fs() 533 rounddown((uint64_t)bcount * bsize, 1024 * 1024)) in mke2fs()
|
| /netbsd/src/sys/dev/raidframe/ |
| D | rf_raid1.c | 261 int nbytes, bcount, stripeWidth, ret, i, j, nbad, *bbufs; in rf_VerifyParityRAID1() local 299 bcount = nbytes * (layoutPtr->numDataCol + layoutPtr->numParityCol); in rf_VerifyParityRAID1() 300 bf = RF_MallocAndAdd(bcount, allocList); in rf_VerifyParityRAID1() 306 raidPtr->raidid, (long) bf, bcount, (long) bf, in rf_VerifyParityRAID1() 307 (long) bf + bcount); in rf_VerifyParityRAID1()
|
| /netbsd/src/sys/arch/amiga/dev/ |
| D | msc.c | 1191 int bcount; in mscinitcard() local 1202 from = msc6502code; bcount = sizeof(msc6502code) - 2; in mscinitcard() 1206 while(bcount--) *to++ = *from++; in mscinitcard() 1214 for (bcount = 0; bcount < 2000; bcount++) { in mscinitcard()
|
| /netbsd/src/sys/dev/i2o/ |
| D | ld_iop.c | 410 int rv, bcount; in ld_iop_dump() local 416 bcount = blkcnt * ld->sc_secsize; in ld_iop_dump() 426 mf->datasize = bcount; in ld_iop_dump() 430 if ((rv = iop_msg_map(iop, im, mb, data, bcount, 1, NULL)) != 0) { in ld_iop_dump()
|
| /netbsd/src/sys/dev/ |
| D | ccd.c | 784 long bcount, rcount; in ccdstart() local 827 for (bcount = bp->b_bcount; bcount > 0; bcount -= rcount) { in ccdstart() 828 cbp = ccdbuffer(cs, bp, bn, addr, bcount, wait); in ccdstart() 873 long bcount, int wait) in ccdbuffer() argument 884 cs, bp, bn, addr, bcount); in ccdbuffer() 951 cbp->cb_buf.b_bcount = cbc < bcount ? cbc : bcount; in ccdbuffer()
|
| /netbsd/src/sbin/fsck_lfs/ |
| D | lfs.c | 1014 int bcount; in lfs_balloc() local 1106 bcount = 0; in lfs_balloc() 1108 bcount = frags; in lfs_balloc() 1112 bcount += frags; in lfs_balloc() 1115 lfs_sb_subbfree(fs, bcount); in lfs_balloc() 1116 ip->i_lfs_effnblks += bcount; in lfs_balloc()
|
| /netbsd/src/sys/dev/ic/ |
| D | ahcisata_core.c | 1163 xfer->c_bcount = ata_c->bcount; in ahci_exec_command() 1197 (ata_c->flags & (AT_READ|AT_WRITE) && ata_c->bcount > 0) ? in ahci_cmd_start() 1199 ata_c->bcount, in ahci_cmd_start() 1361 if (ata_c->flags & (AT_READ|AT_WRITE) && ata_c->bcount > 0) { in ahci_cmd_done() 1417 xfer->c_bcount = ata_bio->bcount; in ahci_ata_bio() 1446 if (ahci_dma_setup(chp, xfer->c_slot, ata_bio->databuf, ata_bio->bcount, in ahci_bio_start() 1588 ata_bio->bcount), DEBUG_XFERS); in ahci_bio_complete() 1599 ata_bio->bcount = 0; in ahci_bio_complete() 1602 ata_bio->bcount -= in ahci_bio_complete() 1605 AHCIDEBUG_PRINT((" now %ld\n", ata_bio->bcount), DEBUG_XFERS); in ahci_bio_complete()
|
| D | siisata.c | 948 xfer->c_bcount = ata_c->bcount; in siisata_exec_command() 986 ata_c->bcount, in siisata_cmd_start() 1190 xfer->c_bcount = ata_bio->bcount; in siisata_ata_bio() 1215 if (siisata_dma_setup(chp, xfer->c_slot, ata_bio->databuf, ata_bio->bcount, in siisata_bio_start() 1348 ata_bio->bcount), DEBUG_XFERS); in siisata_bio_complete() 1351 ata_bio->bcount -= in siisata_bio_complete() 1354 ata_bio->bcount = 0; in siisata_bio_complete() 1356 SIISATA_DEBUG_PRINT((" now %ld\n", ata_bio->bcount), DEBUG_XFERS); in siisata_bio_complete()
|