Home
last modified time | relevance | path

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

/freebsd-13.1/stand/libsa/
H A Dread.c70 read(int fd, void *dest, size_t bcount) in read() argument
84 btodb(f->f_offset), bcount, dest, &resid); in read()
98 resid = bcount; in read()
110 return (bcount); in read()
125 return (bcount - cresid); in read()
138 return (bcount - resid); in read()
H A Dwrite.c70 write(int fd, const void *dest, size_t bcount) in write() argument
83 btodb(f->f_offset), bcount, __DECONST(void *, dest), in write()
90 resid = bcount; in write()
91 if ((errno = (f->f_ops->fo_write)(f, dest, bcount, &resid))) in write()
93 return (bcount - resid); in write()
/freebsd-13.1/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-13.1/sys/fs/fuse/
H A Dfuse_io.c135 int bcount, nextsize; in fuse_read_biobackend() local
163 bcount = 0; in fuse_read_biobackend()
167 bcount = biosize; in fuse_read_biobackend()
175 if (bcount < biosize) { in fuse_read_biobackend()
209 if (on < bcount - bp->b_resid) in fuse_read_biobackend()
468 int bcount; in fuse_write_biobackend() local
511 bcount = biosize; in fuse_write_biobackend()
518 bcount = on + n; in fuse_write_biobackend()
528 allocbuf(bp, bcount); in fuse_write_biobackend()
574 if (on == 0 && n == bcount) { in fuse_write_biobackend()
[all …]
/freebsd-13.1/usr.sbin/bluetooth/sdpd/
H A Dsar.c256 uint16_t bcount; in server_send_service_attribute_response() local
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()
/freebsd-13.1/sys/geom/vinum/
H A Dgeom_vinum_raid5.c57 off_t bcount) in gv_raid5_start() argument
72 err = gv_raid5_rebuild(p, wp, bp, addr, boff, bcount); in gv_raid5_start()
74 err = gv_raid5_check(p, wp, bp, addr, boff, bcount); in gv_raid5_start()
76 err = gv_raid5_request(p, wp, bp, addr, boff, bcount, &delay); in gv_raid5_start()
180 caddr_t addr, off_t boff, off_t bcount) in gv_raid5_check() argument
258 caddr_t addr, off_t boff, off_t bcount) in gv_raid5_rebuild() argument
268 gv_raid5_offset(p, boff, bcount, &real_off, &real_len, NULL, NULL, 1); in gv_raid5_rebuild()
346 struct bio *bp, caddr_t addr, off_t boff, off_t bcount, int *delay) in gv_raid5_request() argument
376 } else if (boff + bcount <= p->synced) { in gv_raid5_request()
384 gv_raid5_offset(p, boff, bcount, &real_off, &real_len, in gv_raid5_request()
[all …]
H A Dgeom_vinum_plex.c63 off_t bcount, boff, len; in gv_plex_start() local
65 bcount = bp->bio_length; in gv_plex_start()
70 while (bcount > 0) { in gv_plex_start()
78 wp = gv_raid5_start(p, bp, addr, boff, bcount); in gv_plex_start()
94 len = gv_plex_normal_request(p, bp, boff, bcount, addr); in gv_plex_start()
99 bcount -= len; in gv_plex_start()
159 *real_len = (bcount > len_left) ? len_left : bcount; in gv_plex_offset()
170 if (!(boff + bcount <= p->synced) && in gv_plex_offset()
186 *real_len = (bcount <= len_left) ? bcount : len_left; in gv_plex_offset()
200 off_t bcount, caddr_t addr) in gv_plex_normal_request() argument
[all …]
/freebsd-13.1/usr.sbin/fstyp/
H A Dhammer2.c121 int i, bcount; in find_pfs() local
132 bcount = HAMMER2_SET_COUNT; in find_pfs()
135 bcount = 0; in find_pfs()
154 bcount = bytes / sizeof(hammer2_blockref_t); in find_pfs()
158 bcount = 0; in find_pfs()
162 for (i = 0; i < bcount; ++i) { in find_pfs()
/freebsd-13.1/sys/dev/altera/avgen/
H A Daltera_avgen.c253 long bcount; in altera_avgen_disk_strategy() local
259 bcount = bp->bio_bcount; in altera_avgen_disk_strategy()
277 (uint8_t *)data, bcount); in altera_avgen_disk_strategy()
283 (uint16_t *)data, bcount / 2); in altera_avgen_disk_strategy()
289 (uint32_t *)data, bcount / 4); in altera_avgen_disk_strategy()
307 (uint8_t *)data, bcount); in altera_avgen_disk_strategy()
313 (uint16_t *)data, bcount / 2); in altera_avgen_disk_strategy()
319 (uint32_t *)data, bcount / 4); in altera_avgen_disk_strategy()
/freebsd-13.1/sys/fs/nfsclient/
H A Dnfs_clbio.c101 int biosize, bcount; in ncl_gbp_getblksz() local
109 bcount = biosize; in ncl_gbp_getblksz()
111 bcount = 0; in ncl_gbp_getblksz()
114 *sz = bcount; in ncl_gbp_getblksz()
522 bcount = biosize; in ncl_bioread()
524 bcount = 0; in ncl_bioread()
561 if (on < bcount) in ncl_bioread()
1098 bcount = on + n; in ncl_write()
1099 allocbuf(bp, bcount); in ncl_write()
1110 bcount = on + n; in ncl_write()
[all …]
/freebsd-13.1/sys/geom/
H A Dgeom_ccd.c463 long bcount, rcount; in g_ccd_start() local
491 for (bcount = bp->bio_length; bcount > 0; bcount -= rcount) { in g_ccd_start()
492 err = ccdbuffer(cbp, cs, bp, bn, addr, bcount); in g_ccd_start()
494 bp->bio_completed += bcount; in g_ccd_start()
543 ccdbuffer(struct bio **cb, struct ccd_s *cs, struct bio *bp, daddr_t bn, caddr_t addr, long bcount) in ccdbuffer() argument
658 cbp->bio_length = (cbc < bcount) ? cbc : bcount; in ccdbuffer()
/freebsd-13.1/sys/dev/smbus/
H A Dsmb.c148 u_char bcount; in smbioctl() local
263 &bcount, buf)); in smbioctl()
266 if (s->rcount > bcount) in smbioctl()
267 s->rcount = bcount; in smbioctl()
/freebsd-13.1/stand/uboot/lib/
H A Ddisk.c149 daddr_t bcount; in stor_strategy() local
164 bcount = size / SI(dev).bsize; in stor_strategy()
168 err = stor_readdev(dev, blk + dev->d_offset, bcount, buf); in stor_strategy()
/freebsd-13.1/sys/dev/smartpqi/
H A Dsmartpqi_cam.c194 if (rcb->bcount != 0 ) { in pqi_synch_request()
398 resid = rcb->bcount-err_info->data_out_transferred; in os_raid_response_error()
607 if (rcb->bcount) { in pqi_map_request()
612 bsd_status, rcb->bcount); in pqi_map_request()
649 rcb->bcount = 0; in os_reset_rcb()
867 rcb->bcount = ccb->csio.dxfer_len; in pqisrc_io_start()
870 rcb->bcount = 0; in pqisrc_io_start()
H A Dsmartpqi_structures.h1082 uint32_t bcount; /* buffer size in byte */ member
/freebsd-13.1/sys/dev/ida/
H A Didavar.h63 u_int16_t bcount; /* block count */ member
H A Dida.c466 hwqcb->req.bcount = htole16(howmany(datasize, DEV_BSIZE)); in ida_command()
523 hwqcb->req.bcount = howmany(bp->bio_bcount, DEV_BSIZE); in ida_startio()
/freebsd-13.1/sbin/camcontrol/
H A Dzone.c108 #define ZAC_ATA_SECTOR_COUNT(bcount) (((bcount) / 512) & 0xffff) argument
/freebsd-13.1/sys/dev/mlx5/
H A Dqp.h414 __be32 bcount; member
421 __be16 bcount; member
/freebsd-13.1/tools/debugscripts/
H A Dgdbinit.kernel18 printf " Buffer at 0x%x: dev 0x%x data 0x%x bcount 0x%x blkno 0x%x resid 0x%x\n", \
26 printf " Buffer at 0x%x: dev (none) data 0x%x bcount 0x%x blkno 0x%x resid 0x%x\n", \
/freebsd-13.1/sys/dev/mlx5/mlx5_ib/
H A Dmlx5_ib_qp.c3343 int bcount = mr->desc_size * mr->ndescs; in set_reg_data_seg() local
3346 dseg->byte_count = cpu_to_be32(ALIGN(bcount, 64)); in set_reg_data_seg()
3556 data_klm->bcount = cpu_to_be32(data_len); in set_sig_data_segment()
3597 data_sentry->bcount = cpu_to_be16(block_size); in set_sig_data_segment()
3602 prot_sentry->bcount = cpu_to_be16(prot_size); in set_sig_data_segment()
H A Dmlx5_ib_mr.c1607 klms[i].bcount = cpu_to_be32(sg_dma_len(sg) - sg_offset); in mlx5_ib_sg_to_klms()
/freebsd-13.1/sys/kern/
H A Dvfs_aio.c2475 long bcount = bp->bio_bcount; in aio_biowakeup() local
2485 nbytes =bcount - resid; in aio_biowakeup()
/freebsd-13.1/sys/ufs/ffs/
H A Dffs_softdep.c3005 int bcount; local
3025 bcount = lblkno(fs, ip->i_size); /* Only use whole blocks. */
3027 for (i = 0; i < bcount; i++) {