Home
last modified time | relevance | path

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

/freebsd-14-stable/stand/libsa/
HDread.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()
HDwrite.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-14-stable/sys/netinet/libalias/
HDalias_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-14-stable/sys/fs/fuse/
HDfuse_io.c134 int bcount, nextsize; in fuse_read_biobackend() local
162 bcount = 0; in fuse_read_biobackend()
164 bcount = filesize - (off_t)lbn *biosize; in fuse_read_biobackend()
166 bcount = biosize; in fuse_read_biobackend()
172 biosize, (int)lbn, on, bcount); in fuse_read_biobackend()
174 if (bcount < biosize) { in fuse_read_biobackend()
176 err = bread(vp, lbn, bcount, NOCRED, &bp); in fuse_read_biobackend()
182 err = cluster_read(vp, filesize, lbn, bcount, NOCRED, in fuse_read_biobackend()
186 err = breadn(vp, lbn, bcount, &nextlbn, &nextsize, 1, in fuse_read_biobackend()
190 err = bread(vp, lbn, bcount, NOCRED, &bp); in fuse_read_biobackend()
[all …]
/freebsd-14-stable/usr.sbin/bluetooth/sdpd/
HDsar.c255 uint16_t bcount; in server_send_service_attribute_response() local
282 bcount = rsp_end - rsp; in server_send_service_attribute_response()
290 pdu.len = htons(sizeof(bcount) + bcount + 1 + cs[0]); in server_send_service_attribute_response()
292 bcount = htons(bcount); in server_send_service_attribute_response()
297 iov[1].iov_base = &bcount; in server_send_service_attribute_response()
298 iov[1].iov_len = sizeof(bcount); in server_send_service_attribute_response()
/freebsd-14-stable/sys/geom/vinum/
HDgeom_vinum_raid5.c55 off_t bcount) in gv_raid5_start() argument
70 err = gv_raid5_rebuild(p, wp, bp, addr, boff, bcount); in gv_raid5_start()
72 err = gv_raid5_check(p, wp, bp, addr, boff, bcount); in gv_raid5_start()
74 err = gv_raid5_request(p, wp, bp, addr, boff, bcount, &delay); in gv_raid5_start()
178 caddr_t addr, off_t boff, off_t bcount) in gv_raid5_check() argument
189 gv_raid5_offset(p, boff, bcount, &real_off, &real_len, NULL, &psdno, 1); in gv_raid5_check()
256 caddr_t addr, off_t boff, off_t bcount) in gv_raid5_rebuild() argument
266 gv_raid5_offset(p, boff, bcount, &real_off, &real_len, NULL, NULL, 1); in gv_raid5_rebuild()
344 struct bio *bp, caddr_t addr, off_t boff, off_t bcount, int *delay) in gv_raid5_request() argument
371 } else if (boff + bcount <= p->synced) { in gv_raid5_request()
[all …]
HDgeom_vinum_plex.c61 off_t bcount, boff, len; in gv_plex_start() local
63 bcount = bp->bio_length; in gv_plex_start()
68 while (bcount > 0) { in gv_plex_start()
76 wp = gv_raid5_start(p, bp, addr, boff, bcount); in gv_plex_start()
92 len = gv_plex_normal_request(p, bp, boff, bcount, addr); in gv_plex_start()
97 bcount -= len; in gv_plex_start()
128 gv_plex_offset(struct gv_plex *p, off_t boff, off_t bcount, off_t *real_off, in gv_plex_offset() argument
157 *real_len = (bcount > len_left) ? len_left : bcount; in gv_plex_offset()
168 if (!(boff + bcount <= p->synced) && in gv_plex_offset()
184 *real_len = (bcount <= len_left) ? bcount : len_left; in gv_plex_offset()
[all …]
/freebsd-14-stable/usr.sbin/fstyp/
HDhammer2.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-14-stable/sys/dev/altera/avgen/
HDaltera_avgen.c249 long bcount; in altera_avgen_disk_strategy() local
255 bcount = bp->bio_bcount; in altera_avgen_disk_strategy()
273 (uint8_t *)data, bcount); in altera_avgen_disk_strategy()
279 (uint16_t *)data, bcount / 2); in altera_avgen_disk_strategy()
285 (uint32_t *)data, bcount / 4); in altera_avgen_disk_strategy()
303 (uint8_t *)data, bcount); in altera_avgen_disk_strategy()
309 (uint16_t *)data, bcount / 2); in altera_avgen_disk_strategy()
315 (uint32_t *)data, bcount / 4); in altera_avgen_disk_strategy()
/freebsd-14-stable/sys/fs/nfsclient/
HDnfs_clbio.c99 int biosize, bcount; in ncl_gbp_getblksz() local
107 bcount = biosize; in ncl_gbp_getblksz()
109 bcount = 0; in ncl_gbp_getblksz()
111 bcount = nsize - (off_t)lbn * biosize; in ncl_gbp_getblksz()
112 *sz = bcount; in ncl_gbp_getblksz()
443 int biosize, bcount, error, i, n, nra, on, save2, seqcount; in ncl_bioread() local
535 bcount = biosize; in ncl_bioread()
537 bcount = 0; in ncl_bioread()
539 bcount = nsize - (off_t)lbn * biosize; in ncl_bioread()
541 bp = nfs_getcacheblk(vp, lbn, bcount, td); in ncl_bioread()
[all …]
/freebsd-14-stable/sys/geom/
HDgeom_ccd.c460 long bcount, rcount; in g_ccd_start() local
488 for (bcount = bp->bio_length; bcount > 0; bcount -= rcount) { in g_ccd_start()
489 err = ccdbuffer(cbp, cs, bp, bn, addr, bcount); in g_ccd_start()
491 bp->bio_completed += bcount; in g_ccd_start()
540 ccdbuffer(struct bio **cb, struct ccd_s *cs, struct bio *bp, daddr_t bn, caddr_t addr, long bcount) in ccdbuffer() argument
655 cbp->bio_length = (cbc < bcount) ? cbc : bcount; in ccdbuffer()
/freebsd-14-stable/sys/dev/smbus/
HDsmb.c144 u_char bcount; in smbioctl() local
259 &bcount, buf)); in smbioctl()
262 if (s->rcount > bcount) in smbioctl()
263 s->rcount = bcount; in smbioctl()
/freebsd-14-stable/stand/uboot/
HDuboot_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-14-stable/sys/dev/smartpqi/
HDsmartpqi_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()
HDsmartpqi_structures.h1233 uint32_t bcount; /* buffer size in byte */ member
/freebsd-14-stable/sys/dev/ida/
HDidavar.h61 u_int16_t bcount; /* block count */ member
HDida.c464 hwqcb->req.bcount = htole16(howmany(datasize, DEV_BSIZE)); in ida_command()
521 hwqcb->req.bcount = howmany(bp->bio_bcount, DEV_BSIZE); in ida_startio()
/freebsd-14-stable/sbin/camcontrol/
HDzone.c105 #define ZAC_ATA_SECTOR_COUNT(bcount) (((bcount) / 512) & 0xffff) argument
/freebsd-14-stable/sys/dev/mlx5/
HDqp.h412 __be32 bcount; member
419 __be16 bcount; member
/freebsd-14-stable/tools/debugscripts/
HDgdbinit.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-14-stable/sys/dev/mlx5/mlx5_ib/
HDmlx5_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()
HDmlx5_ib_mr.c1605 klms[i].bcount = cpu_to_be32(sg_dma_len(sg) - sg_offset); in mlx5_ib_sg_to_klms()
/freebsd-14-stable/sys/kern/
HDvfs_aio.c2473 long bcount = bp->bio_bcount; in aio_biowakeup() local
2483 nbytes = bcount - resid; in aio_biowakeup()
/freebsd-14-stable/sys/ufs/ffs/
HDffs_softdep.c2916 int bcount; in journal_mount() local
2936 bcount = lblkno(fs, ip->i_size); /* Only use whole blocks. */ in journal_mount()
2938 for (i = 0; i < bcount; i++) { in journal_mount()