Home
last modified time | relevance | path

Searched refs:bcount (Results 1 – 21 of 21) sorted by relevance

/freebsd/sys/netinet/libalias/
H A Dalias_nbt.c477 u_short bcount; in AliasHandleResourceNB() local
486 bcount = ntohs(q->rdlen); in AliasHandleResourceNB()
496 bcount); in AliasHandleResourceNB()
498 while (nb != NULL && bcount != 0) { in AliasHandleResourceNB()
530 bcount -= SizeOfNsRNB; in AliasHandleResourceNB()
550 u_short bcount; in AliasHandleResourceA() local
563 bcount = ntohs(q->rdlen); in AliasHandleResourceA()
571 while (bcount != 0) { in AliasHandleResourceA()
593 bcount -= SizeOfResourceA; in AliasHandleResourceA()
611 u_short bcount; in AliasHandleResourceNULL() local
[all …]
/freebsd/stand/libsa/
H A Dread.c65 read(int fd, void *dest, size_t bcount) in read() argument
80 btodb(f->f_offset), bcount, dest, &resid); in read()
94 resid = bcount; in read()
106 return (bcount); in read()
121 return (bcount - cresid); in read()
134 return (bcount - resid); in read()
H A Dwrite.c65 write(int fd, const void *dest, size_t bcount) in write() argument
78 btodb(f->f_offset), bcount, __DECONST(void *, dest), in write()
85 resid = bcount; in write()
86 if ((errno = (f->f_ops->fo_write)(f, dest, bcount, &resid))) in write()
88 return (bcount - resid); in write()
/freebsd/sys/fs/fuse/
H A Dfuse_io.c133 int bcount, nextsize; in fuse_read_biobackend() local
161 bcount = 0; in fuse_read_biobackend()
163 bcount = filesize - (off_t)lbn *biosize; in fuse_read_biobackend()
165 bcount = biosize; in fuse_read_biobackend()
171 biosize, (int)lbn, on, bcount); in fuse_read_biobackend()
173 if (bcount < biosize) { in fuse_read_biobackend()
175 err = bread(vp, lbn, bcount, NOCRED, &bp); in fuse_read_biobackend()
181 err = cluster_read(vp, filesize, lbn, bcount, NOCRED, in fuse_read_biobackend()
185 err = breadn(vp, lbn, bcount, &nextlbn, &nextsize, 1, in fuse_read_biobackend()
189 err = bread(vp, lbn, bcount, NOCRED, &bp); in fuse_read_biobackend()
[all …]
/freebsd/usr.sbin/bluetooth/sdpd/
H A Dsar.c256 uint16_t bcount; in server_send_service_attribute_response()
283 bcount = rsp_end - rsp; in server_send_service_attribute_response()
291 pdu.len = htons(sizeof(bcount) + bcount + 1 + cs[0]); in server_send_service_attribute_response()
293 bcount = htons(bcount); in server_send_service_attribute_response()
298 iov[1].iov_base = &bcount; in server_send_service_attribute_response()
299 iov[1].iov_len = sizeof(bcount); in server_send_service_attribute_response()
255 uint16_t bcount; server_send_service_attribute_response() local
/freebsd/usr.sbin/fstyp/
H A Dhammer2.c119 int i, bcount; in find_pfs() local
130 bcount = HAMMER2_SET_COUNT; in find_pfs()
133 bcount = 0; in find_pfs()
152 bcount = bytes / sizeof(hammer2_blockref_t); in find_pfs()
156 bcount = 0; in find_pfs()
160 for (i = 0; i < bcount; ++i) { in find_pfs()
/freebsd/sys/fs/nfsclient/
H A Dnfs_clbio.c96 int biosize, bcount; in ncl_gbp_getblksz() local
104 bcount = biosize; in ncl_gbp_getblksz()
106 bcount = 0; in ncl_gbp_getblksz()
108 bcount = nsize - (off_t)lbn * biosize; in ncl_gbp_getblksz()
109 *sz = bcount; in ncl_gbp_getblksz()
440 int biosize, bcount, error, i, n, nra, on, save2, seqcount; in ncl_bioread() local
531 /* Note that bcount is *not* DEV_BSIZE aligned. */ in ncl_bioread()
532 bcount = biosize; in ncl_bioread()
534 bcount = 0; in ncl_bioread()
536 bcount in ncl_bioread()
812 int bcount, noncontig_write, obcount; ncl_write() local
[all...]
/freebsd/sys/geom/
H A Dgeom_ccd.c457 long bcount, rcount; in g_ccd_start() local
485 for (bcount = bp->bio_length; bcount > 0; bcount -= rcount) { in g_ccd_start()
486 err = ccdbuffer(cbp, cs, bp, bn, addr, bcount); in g_ccd_start()
488 bp->bio_completed += bcount; in g_ccd_start()
537 ccdbuffer(struct bio **cb, struct ccd_s *cs, struct bio *bp, daddr_t bn, caddr_t addr, long bcount) in ccdbuffer() argument
652 cbp->bio_length = (cbc < bcount) ? cbc : bcount; in ccdbuffer()
/freebsd/sys/dev/smbus/
H A Dsmb.c203 u_char bcount; in smbioctl() local
378 &bcount, buf)); in smbioctl()
381 if (s->rcount > bcount) in smbioctl()
382 s->rcount = bcount; in smbioctl()
/freebsd/stand/uboot/
H A Duboot_disk.c148 daddr_t bcount; in stor_strategy() local
163 bcount = size / SI(dev).bsize; in stor_strategy()
167 err = stor_readdev(dev, blk + dev->d_offset, bcount, buf); in stor_strategy()
/freebsd/sys/dev/smartpqi/
H A Dsmartpqi_cam.c203 if (rcb->bcount != 0 ) { in pqi_synch_request()
415 resid = rcb->bcount-err_info->data_out_transferred; in os_raid_response_error()
625 if (rcb->bcount) { in pqi_map_request()
630 bsd_status, rcb->bcount); in pqi_map_request()
667 rcb->bcount = 0; in os_reset_rcb()
887 rcb->bcount = ccb->csio.dxfer_len; in pqisrc_io_start()
H A Dsmartpqi_structures.h1233 uint32_t bcount; /* buffer size in byte */ member
/freebsd/sys/dev/ida/
H A Didavar.h61 u_int16_t bcount; /* block count */ member
H A Dida.c461 hwqcb->req.bcount = htole16(howmany(datasize, DEV_BSIZE)); in ida_command()
518 hwqcb->req.bcount = howmany(bp->bio_bcount, DEV_BSIZE); in ida_startio()
/freebsd/sbin/camcontrol/
H A Dzone.c105 #define ZAC_ATA_SECTOR_COUNT(bcount) (((bcount) / 512) & 0xffff)
106 ZAC_ATA_SECTOR_COUNT(bcount) global() argument
/freebsd/sys/dev/mlx5/
H A Dqp.h421 __be32 bcount;
428 __be16 bcount;
412 __be32 bcount; global() member
419 __be16 bcount; global() member
/freebsd/tools/debugscripts/
H A Dgdbinit.kernel17 printf " Buffer at 0x%x: dev 0x%x data 0x%x bcount 0x%x blkno 0x%x resid 0x%x\n", \
25 printf " Buffer at 0x%x: dev (none) data 0x%x bcount 0x%x blkno 0x%x resid 0x%x\n", \
/freebsd/sys/dev/mlx5/mlx5_ib/
H A Dmlx5_ib_qp.c3369 int bcount = mr->desc_size * mr->ndescs; in set_reg_data_seg() local
3372 dseg->byte_count = cpu_to_be32(ALIGN(bcount, 64)); in set_reg_data_seg()
3582 data_klm->bcount = cpu_to_be32(data_len); in set_sig_data_segment()
3623 data_sentry->bcount = cpu_to_be16(block_size); in set_sig_data_segment()
3628 prot_sentry->bcount = cpu_to_be16(prot_size); in set_sig_data_segment()
H A Dmlx5_ib_mr.c1605 klms[i].bcount = cpu_to_be32(sg_dma_len(sg) - sg_offset); in mlx5_ib_sg_to_klms()
/freebsd/sys/kern/
H A Dvfs_aio.c2445 long bcount = bp->bio_bcount; in aio_biowakeup() local
2455 nbytes = bcount - resid; in aio_biowakeup()
/freebsd/sys/ufs/ffs/
H A Dffs_softdep.c2912 int bcount; in journal_mount() local
2932 bcount = lblkno(fs, ip->i_size); /* Only use whole blocks. */ in journal_mount()
2934 for (i = 0; i < bcount; i++) { in journal_mount()