Lines Matching defs:bufs
119 /* Min count of adjacent bufs that will avoid buf coalescing */
670 wbuf = &(info->bufs[count]);
681 biofini(&(info->bufs[count]));
689 kmem_free(info->bufs, info->bufcnt * sizeof (struct buf));
715 struct buf *bufs;
814 bufs = kmem_alloc(bufcnt * sizeof (struct buf), KM_SLEEP);
843 bioinit(&bufs[count]);
844 bufs[count].b_edev = devvp->v_rdev;
845 bufs[count].b_dev = cmpdev(devvp->v_rdev);
846 bufs[count].b_flags = B_NOCACHE|B_BUSY|B_READ;
847 bufs[count].b_iodone = hsfs_iodone;
848 bufs[count].b_vp = vp;
849 bufs[count].b_file = vp;
878 bufs[count].b_un.b_addr = va + byte_offset % PAGESIZE;
879 bufs[count].b_offset =
888 bufs[count].b_lblkno = driver_block;
899 bufs[count].b_bcount = remaining_bytes;
902 bufs[count].b_bcount = off + len - byte_offset;
906 if (bufs[count].b_bcount > remainder) {
907 bufs[count].b_bcount = remainder;
910 bufs[count].b_bufsize = bufs[count].b_bcount;
911 if (((offset_t)byte_offset + bufs[count].b_bcount) >
915 byte_offset += bufs[count].b_bcount;
930 hsio->bp = &bufs[count];
932 hsio->io_lblkno = bufs[count].b_lblkno;
945 if ((remainder - bufs[count].b_bcount) < 1) {
952 info->bufs = bufs;
998 struct buf *bufs;
1170 bufs = kmem_zalloc(bufcnt * sizeof (struct buf), KM_SLEEP);
1181 bioinit(&bufs[count]);
1182 bufs[count].b_edev = devvp->v_rdev;
1183 bufs[count].b_dev = cmpdev(devvp->v_rdev);
1184 bufs[count].b_flags = B_NOCACHE|B_BUSY|B_READ;
1185 bufs[count].b_iodone = hsfs_iodone;
1186 bufs[count].b_vp = vp;
1187 bufs[count].b_file = vp;
1234 bufs[count].b_un.b_addr = va + byte_offset % PAGESIZE;
1235 bufs[count].b_offset =
1244 bufs[count].b_lblkno = driver_block;
1256 bufs[count].b_bcount = remaining_bytes;
1259 bufs[count].b_bcount = off + len - byte_offset;
1281 if (bufs[count].b_bcount > remainder) {
1282 bufs[count].b_bcount = remainder;
1285 bufs[count].b_bufsize = bufs[count].b_bcount;
1286 if (((offset_t)byte_offset + bufs[count].b_bcount) >
1290 byte_offset += bufs[count].b_bcount;
1293 (void) bdev_strategy(&bufs[count]);
1309 hsio->bp = &bufs[count];
1311 hsio->io_lblkno = bufs[count].b_lblkno;
1326 if ((remainder - bufs[count].b_bcount) < 1) {
1336 err = biowait(&bufs[count]);
1338 (void) biowait(&bufs[count]);
1347 * process bufs enqueued by other threads
1350 wbuf = &bufs[count];
1377 biofini(&bufs[count]);
1384 kmem_free(bufs, bufcnt * sizeof (struct buf));
2085 * returns, so we do coalescing if we have >2 adjacent bufs.
2140 * a success to all the fully retrieved actual bufs
2149 * Copy data and signal success to all the bufs
2166 * Signal error to all the leftover bufs (if any)