Searched refs:bcount (Results 1 - 23 of 23) sorted by relevance

/freebsd-current/stand/libsa/
H A Dwrite.c65 write(int fd, const void *dest, size_t bcount) argument
78 btodb(f->f_offset), bcount, __DECONST(void *, dest),
85 resid = bcount;
86 if ((errno = (f->f_ops->fo_write)(f, dest, bcount, &resid)))
88 return (bcount - resid);
H A Dread.c65 read(int fd, void *dest, size_t bcount) argument
80 btodb(f->f_offset), bcount, dest, &resid);
94 resid = bcount;
106 return (bcount);
121 return (bcount - cresid);
134 return (bcount - resid);
/freebsd-current/sys/netinet/libalias/
H A Dalias_nbt.c477 u_short bcount; local
486 bcount = ntohs(q->rdlen);
496 bcount);
498 while (nb != NULL && bcount != 0) {
530 bcount -= SizeOfNsRNB;
550 u_short bcount; local
563 bcount = ntohs(q->rdlen);
571 while (bcount != 0) {
593 bcount -= SizeOfResourceA;
611 u_short bcount; local
646 u_short bcount; local
679 u_short bcount; local
[all...]
/freebsd-current/usr.sbin/bluetooth/sdpd/
H A Dsar.c256 uint16_t bcount; local
283 bcount = rsp_end - rsp;
291 pdu.len = htons(sizeof(bcount) + bcount + 1 + cs[0]);
293 bcount = htons(bcount);
298 iov[1].iov_base = &bcount;
299 iov[1].iov_len = sizeof(bcount);
/freebsd-current/usr.sbin/fstyp/
H A Dhammer2.c119 int i, bcount; local
130 bcount = HAMMER2_SET_COUNT;
133 bcount = 0;
152 bcount = bytes / sizeof(hammer2_blockref_t);
156 bcount = 0;
160 for (i = 0; i < bcount; ++i) {
/freebsd-current/sys/fs/fuse/
H A Dfuse_io.c133 int bcount, nextsize; local
161 bcount = 0;
163 bcount = filesize - (off_t)lbn *biosize;
165 bcount = biosize;
171 biosize, (int)lbn, on, bcount);
173 if (bcount < biosize) {
175 err = bread(vp, lbn, bcount, NOCRED, &bp);
181 err = cluster_read(vp, filesize, lbn, bcount, NOCRED,
185 err = breadn(vp, lbn, bcount, &nextlbn, &nextsize, 1,
189 err = bread(vp, lbn, bcount, NOCRE
478 int bcount; local
[all...]
/freebsd-current/sys/geom/vinum/
H A Dgeom_vinum_raid5.c54 off_t bcount)
69 err = gv_raid5_rebuild(p, wp, bp, addr, boff, bcount);
71 err = gv_raid5_check(p, wp, bp, addr, boff, bcount);
73 err = gv_raid5_request(p, wp, bp, addr, boff, bcount, &delay);
177 caddr_t addr, off_t boff, off_t bcount)
188 gv_raid5_offset(p, boff, bcount, &real_off, &real_len, NULL, &psdno, 1);
255 caddr_t addr, off_t boff, off_t bcount)
265 gv_raid5_offset(p, boff, bcount, &real_off, &real_len, NULL, NULL, 1);
343 struct bio *bp, caddr_t addr, off_t boff, off_t bcount, int *delay)
370 } else if (boff + bcount <
53 gv_raid5_start(struct gv_plex *p, struct bio *bp, caddr_t addr, off_t boff, off_t bcount) argument
176 gv_raid5_check(struct gv_plex *p, struct gv_raid5_packet *wp, struct bio *bp, caddr_t addr, off_t boff, off_t bcount) argument
254 gv_raid5_rebuild(struct gv_plex *p, struct gv_raid5_packet *wp, struct bio *bp, caddr_t addr, off_t boff, off_t bcount) argument
342 gv_raid5_request(struct gv_plex *p, struct gv_raid5_packet *wp, struct bio *bp, caddr_t addr, off_t boff, off_t bcount, int *delay) argument
584 gv_raid5_offset(struct gv_plex *p, off_t boff, off_t bcount, off_t *real_off, off_t *real_len, int *sdno, int *psdno, int growing) argument
[all...]
H A Dgeom_vinum_plex.c60 off_t bcount, boff, len; local
62 bcount = bp->bio_length;
67 while (bcount > 0) {
75 wp = gv_raid5_start(p, bp, addr, boff, bcount);
91 len = gv_plex_normal_request(p, bp, boff, bcount, addr);
96 bcount -= len;
127 gv_plex_offset(struct gv_plex *p, off_t boff, off_t bcount, off_t *real_off, argument
156 *real_len = (bcount > len_left) ? len_left : bcount;
167 if (!(boff + bcount <
196 gv_plex_normal_request(struct gv_plex *p, struct bio *bp, off_t boff, off_t bcount, caddr_t addr) argument
[all...]
/freebsd-current/sys/dev/altera/avgen/
H A Daltera_avgen.c248 long bcount; local
254 bcount = bp->bio_bcount;
272 (uint8_t *)data, bcount);
278 (uint16_t *)data, bcount / 2);
284 (uint32_t *)data, bcount / 4);
302 (uint8_t *)data, bcount);
308 (uint16_t *)data, bcount / 2);
314 (uint32_t *)data, bcount / 4);
/freebsd-current/sys/geom/
H A Dgeom_ccd.c457 long bcount, rcount; local
485 for (bcount = bp->bio_length; bcount > 0; bcount -= rcount) {
486 err = ccdbuffer(cbp, cs, bp, bn, addr, bcount);
488 bp->bio_completed += bcount;
537 ccdbuffer(struct bio **cb, struct ccd_s *cs, struct bio *bp, daddr_t bn, caddr_t addr, long bcount) argument
652 cbp->bio_length = (cbc < bcount) ? cbc : bcount;
/freebsd-current/sys/fs/nfsclient/
H A Dnfs_clbio.c96 int biosize, bcount; local
104 bcount = biosize;
106 bcount = 0;
108 bcount = nsize - (off_t)lbn * biosize;
109 *sz = bcount;
440 int biosize, bcount, error, i, n, nra, on, save2, seqcount; local
531 /* Note that bcount is *not* DEV_BSIZE aligned. */
532 bcount = biosize;
534 bcount = 0;
536 bcount
812 int bcount, noncontig_write, obcount; local
[all...]
/freebsd-current/sys/dev/smbus/
H A Dsmb.c203 u_char bcount; local
378 &bcount, buf));
381 if (s->rcount > bcount)
382 s->rcount = bcount;
/freebsd-current/stand/uboot/
H A Duboot_disk.c148 daddr_t bcount; local
163 bcount = size / SI(dev).bsize;
167 err = stor_readdev(dev, blk + dev->d_offset, bcount, buf);
/freebsd-current/sys/dev/ida/
H A Didavar.h61 u_int16_t bcount; /* block count */ member in struct:ida_req
H A Dida.c464 hwqcb->req.bcount = htole16(howmany(datasize, DEV_BSIZE));
521 hwqcb->req.bcount = howmany(bp->bio_bcount, DEV_BSIZE);
/freebsd-current/sys/dev/smartpqi/
H A Dsmartpqi_cam.c203 if (rcb->bcount != 0 ) {
415 resid = rcb->bcount-err_info->data_out_transferred;
625 if (rcb->bcount) {
630 bsd_status, rcb->bcount);
667 rcb->bcount = 0;
887 rcb->bcount = ccb->csio.dxfer_len;
H A Dsmartpqi_structures.h1233 uint32_t bcount; /* buffer size in byte */ member in struct:request_container_block
/freebsd-current/sys/dev/mlx5/
H A Dqp.h412 __be32 bcount; member in struct:mlx5_klm
419 __be16 bcount; member in struct:mlx5_stride_block_entry
/freebsd-current/sbin/camcontrol/
H A Dzone.c105 #define ZAC_ATA_SECTOR_COUNT(bcount) (((bcount) / 512) & 0xffff)
/freebsd-current/sys/dev/mlx5/mlx5_ib/
H A Dmlx5_ib_qp.c3369 int bcount = mr->desc_size * mr->ndescs; local
3372 dseg->byte_count = cpu_to_be32(ALIGN(bcount, 64));
3582 data_klm->bcount = cpu_to_be32(data_len);
3623 data_sentry->bcount = cpu_to_be16(block_size);
3628 prot_sentry->bcount = cpu_to_be16(prot_size);
H A Dmlx5_ib_mr.c1605 klms[i].bcount = cpu_to_be32(sg_dma_len(sg) - sg_offset);
/freebsd-current/sys/kern/
H A Dvfs_aio.c2472 long bcount = bp->bio_bcount; local
2482 nbytes = bcount - resid;
/freebsd-current/sys/ufs/ffs/
H A Dffs_softdep.c2905 int bcount; local
2925 bcount = lblkno(fs, ip->i_size); /* Only use whole blocks. */
2927 for (i = 0; i < bcount; i++) {

Completed in 452 milliseconds