Home
last modified time | relevance | path

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

/illumos-gate/usr/src/lib/smbclnt/libfksmbfs/common/
H A Dfake_rw.c61 ssize_t bcount; in fake_pread() local
66 if ((bcount = (ssize_t)count) < 0) in fake_pread()
74 if (bcount == 0) in fake_pread()
91 if (fileoff + bcount > maxoff) in fake_pread()
92 bcount = (ssize_t)((offset_t)maxoff - fileoff); in fake_pread()
99 aiov.iov_len = bcount; in fake_pread()
104 auio.uio_resid = bcount; in fake_pread()
116 bcount -= auio.uio_resid; in fake_pread()
119 if (error == EINTR && bcount != 0) in fake_pread()
124 return (bcount); in fake_pread()
[all …]
/illumos-gate/usr/src/uts/common/syscall/
H A Drw.c84 ssize_t cnt, bcount; in read() local
164 auio.uio_resid = bcount = cnt; in read()
171 if (bcount <= copyout_max_cached) in read()
193 (vp->v_type != VREG) || (bcount != 0)) /* POSIX */ in read()
220 ssize_t cnt, bcount; in write() local
302 auio.uio_resid = bcount = cnt; in write()
322 (vp->v_type != VREG) || (bcount != 0)) /* POSIX */ in write()
346 ssize_t bcount; in pread() local
357 if ((bcount = (ssize_t)count) < 0) in pread()
372 if (bcount == 0) in pread()
[all …]
H A Dutssys.c823 size_t bcount; in uts_fusers() local
842 bcount = fu_data_size(0); in uts_fusers()
843 if (copyout(&fu_header, (void *)userbp, bcount)) in uts_fusers()
915 bcount = fu_data_size(0); in uts_fusers()
916 if (copyout(&fu_header, (void *)userbp, bcount)) { in uts_fusers()
923 userbp += bcount; in uts_fusers()
924 bcount = fu_data->fud_user_count * sizeof (f_user_t); in uts_fusers()
925 if (copyout(fu_data->fud_user, (void *)userbp, bcount)) { in uts_fusers()
933 userbp += bcount; in uts_fusers()
934 bcount = fuk_data->fud_user_count * sizeof (f_user_t); in uts_fusers()
[all …]
/illumos-gate/usr/src/boot/libsa/
H A Dread.c69 read(int fd, void *dest, size_t bcount) in read() argument
82 btodb(f->f_offset), bcount, dest, &resid); in read()
95 resid = bcount; in read()
106 return (bcount); in read()
119 return (bcount - cresid); in read()
131 return (bcount - resid); in read()
H A Dwrite.c69 write(int fd, const void *dest, size_t bcount) in write() argument
82 btodb(f->f_offset), bcount, __DECONST(void *, dest), in write()
89 resid = bcount; in write()
90 if ((errno = (f->f_ops->fo_write)(f, dest, bcount, &resid))) in write()
92 return (bcount - resid); in write()
/illumos-gate/usr/src/uts/common/io/aac/
H A Daac_ioctl.c52 uint32_t bcount; member
505 usge->bcount = sg64p->SgByteCount; in aac_send_raw_srb()
514 usge->bcount = sgp->SgByteCount; in aac_send_raw_srb()
521 acp->bcount += usge->bcount; in aac_send_raw_srb()
524 if ((usge->addr + usge->bcount) > addrhi) in aac_send_raw_srb()
525 addrhi = usge->addr + usge->bcount; in aac_send_raw_srb()
527 if (acp->bcount > softs->buf_dma_attr.dma_attr_maxxfer) { in aac_send_raw_srb()
529 "large srb xfer size received %d\n", acp->bcount); in aac_send_raw_srb()
558 (uintptr_t)addrlo, usge->bcount, direct, dev, 0, NULL, in aac_send_raw_srb()
H A Daac.h230 uint32_t bcount; /* byte count */ member
285 uint32_t bcount; /* buffer size in byte */ member
H A Daac.c1887 acp->bcount); in aac_pd_complete()
1913 pkt->pkt_resid = acp->bcount - \ in aac_pd_complete()
4869 ((acp->blkno + acp->bcount / in aac_tran_start_ld()
4884 } else if (acp->bcount == 0) { in aac_tran_start_ld()
4983 pkt->pkt_resid = acp->bcount; in aac_tran_start()
5312 sge->bcount = acp->cookie.dmac_size; in aac_cmd_dma_alloc()
5315 acp->bcount = acp->cookie.dmac_size; in aac_cmd_dma_alloc()
5318 sge->bcount = acp->cookie.dmac_size; in aac_cmd_dma_alloc()
5321 acp->bcount += acp->cookie.dmac_size; in aac_cmd_dma_alloc()
5329 if (acp->bcount > softs->buf_dma_attr.dma_attr_maxxfer) { in aac_cmd_dma_alloc()
[all …]
/illumos-gate/usr/src/cmd/lastcomm/
H A Dlc_utils.c81 int bcount = 0; in get_pri_dirs() local
100 while ((bcount++ < sfsb.st_size) && ((c = getc(sf)) != EOF)) { in get_pri_dirs()
111 while (--bcount) { in get_pri_dirs()
/illumos-gate/usr/src/uts/common/fs/
H A Dfsflush.c360 uint_t bcount; in fsflush() local
401 bcount = 0; in fsflush()
407 bcount += (hp->b_length); in fsflush()
451 bfreelist.b_bcount = bcount; in fsflush()
/illumos-gate/usr/src/uts/common/fs/ufs/
H A Dlufs_log.c119 size_t bcount, in map_frag() argument
135 *pbcount = MIN(bcount, dbtob(ext[i].ic_nbno - bno_off)); in map_frag()
145 *pbcount = bcount; in map_frag()
576 within_range(off_t lof, daddr_t blkno, ulong_t bcount) in within_range() argument
580 return ((lof >= blof) && (lof < (blof + bcount))); in within_range()
896 size_t bcount; in ldl_round_commit() local
910 bcount = P2ROUNDUP(bp->b_bcount, DEV_BSIZE); in ldl_round_commit()
911 if (bcount == bp->b_bcount) { in ldl_round_commit()
915 bp->b_bcount = bcount; in ldl_round_commit()
916 ul->un_tail_lof = dbtob(bp->b_blkno) + bcount; in ldl_round_commit()
[all …]
/illumos-gate/usr/src/cmd/scsi/smp/common/
H A Dsmp.c938 uint16_t bcount, idx; in main() local
940 bcount = brp->srbr_number_broadcast_descrs; in main()
943 bcount); in main()
946 for (idx = 0; idx < bcount; idx++) { in main()
/illumos-gate/usr/src/uts/common/sys/1394/targets/scsa1394/
H A Dimpl.h256 #define SCSA1394_CDRW_BLKSZ(bcount, len) ((bcount) / (len)) argument
/illumos-gate/usr/src/uts/common/sys/usb/scsa2usb/
H A Dscsa2usb.h666 #define SCSA2USB_CDRW_BLKSZ(bcount, len) ((bcount) / (len)); argument
/illumos-gate/usr/src/uts/common/io/mlxcx/
H A Dmlxcx_gld.c519 uint_t bcount; in mlxcx_mac_ring_tx() local
555 bcount = mlxcx_buf_bind_or_copy(mlxp, sq, kmp, take, &b); in mlxcx_mac_ring_tx()
556 if (bcount == 0) { in mlxcx_mac_ring_tx()
588 (cq->mlcq_bufcnt + bcount) > cq->mlcq_nents) { in mlxcx_mac_ring_tx()
/illumos-gate/usr/src/uts/common/io/skd/
H A Dskd.c641 int i, bcount = 0; in skd_blkdev_preop_sg_list() local
668 bcount += cnt; in skd_blkdev_preop_sg_list()
735 int bcount; in skd_start() local
856 bcount = (sg_byte_count + 511) / 512; in skd_start()
857 scsi_req->cdb[7] = (bcount & 0xff00) >> 8; in skd_start()
858 scsi_req->cdb[8] = bcount & 0xff; in skd_start()
/illumos-gate/usr/src/uts/common/io/scsi/targets/
H A Dst.c7477 unsigned bcount; in st_test_append() local
7514 bcount = (unsigned)bp->b_bcount; in st_test_append()
7519 kmem_free(un->un_tmpbuf, bcount); in st_test_append()
7575 bcount = (unsigned)bp->b_bcount; in st_test_append()
7580 kmem_free(un->un_tmpbuf, bcount); in st_test_append()