Home
last modified time | relevance | path

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

/freebsd-14.2/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-14.2/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()
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()
611 u_short bcount; in AliasHandleResourceNULL() local
625 while (bcount != 0) { in AliasHandleResourceNULL()
646 u_short bcount; in AliasHandleResourceNS() local
[all …]
/freebsd-14.2/sys/fs/fuse/
H A Dfuse_io.c134 int bcount, nextsize; in fuse_read_biobackend() local
162 bcount = 0; in fuse_read_biobackend()
166 bcount = biosize; in fuse_read_biobackend()
174 if (bcount < biosize) { in fuse_read_biobackend()
208 if (on < bcount - bp->b_resid) in fuse_read_biobackend()
479 int bcount; in fuse_write_biobackend() local
525 bcount = biosize; in fuse_write_biobackend()
532 bcount = on + n; in fuse_write_biobackend()
542 allocbuf(bp, bcount); in fuse_write_biobackend()
588 if (on == 0 && n == bcount) { in fuse_write_biobackend()
[all …]
/freebsd-14.2/usr.sbin/bluetooth/sdpd/
H A Dsar.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.2/sys/geom/vinum/
H A Dgeom_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
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()
379 gv_raid5_offset(p, boff, bcount, &real_off, &real_len, in gv_raid5_request()
[all …]
H A Dgeom_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()
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()
198 off_t bcount, caddr_t addr) in gv_plex_normal_request() argument
[all …]
/freebsd-14.2/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-14.2/sys/dev/altera/avgen/
H A Daltera_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.2/sys/fs/nfsclient/
H A Dnfs_clbio.c99 int biosize, bcount; in ncl_gbp_getblksz() local
107 bcount = biosize; in ncl_gbp_getblksz()
109 bcount = 0; in ncl_gbp_getblksz()
112 *sz = bcount; in ncl_gbp_getblksz()
535 bcount = biosize; in ncl_bioread()
537 bcount = 0; in ncl_bioread()
574 if (on < bcount) in ncl_bioread()
1052 bcount = on + n; in ncl_write()
1053 allocbuf(bp, bcount); in ncl_write()
1064 bcount = on + n; in ncl_write()
[all …]
/freebsd-14.2/sys/geom/
H A Dgeom_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.2/sys/dev/smbus/
H A Dsmb.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.2/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-14.2/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-14.2/sys/dev/ida/
H A Didavar.h61 u_int16_t bcount; /* block count */ member
H A Dida.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.2/sbin/camcontrol/
H A Dzone.c105 #define ZAC_ATA_SECTOR_COUNT(bcount) (((bcount) / 512) & 0xffff) argument
/freebsd-14.2/sys/dev/mlx5/
H A Dqp.h412 __be32 bcount; member
419 __be16 bcount; member
/freebsd-14.2/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-14.2/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-14.2/sys/kern/
H A Dvfs_aio.c2473 long bcount = bp->bio_bcount; in aio_biowakeup() local
2483 nbytes = bcount - resid; in aio_biowakeup()
/freebsd-14.2/sys/ufs/ffs/
H A Dffs_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()