Lines Matching defs:bufs
118 /* Min count of adjacent bufs that will avoid buf coalescing */
756 wbuf = &(info->bufs[count]);
767 biofini(&(info->bufs[count]));
775 kmem_free(info->bufs, info->bufcnt * sizeof (struct buf));
809 struct buf *bufs;
908 bufs = kmem_alloc(bufcnt * sizeof (struct buf), KM_SLEEP);
937 bioinit(&bufs[count]);
938 bufs[count].b_edev = devvp->v_rdev;
939 bufs[count].b_dev = cmpdev(devvp->v_rdev);
940 bufs[count].b_flags = B_NOCACHE|B_BUSY|B_READ;
941 bufs[count].b_iodone = hsfs_iodone;
942 bufs[count].b_vp = vp;
943 bufs[count].b_file = vp;
972 bufs[count].b_un.b_addr = va + byte_offset % PAGESIZE;
973 bufs[count].b_offset =
982 bufs[count].b_lblkno = driver_block;
993 bufs[count].b_bcount = remaining_bytes;
996 bufs[count].b_bcount = off + len - byte_offset;
1000 if (bufs[count].b_bcount > remainder) {
1001 bufs[count].b_bcount = remainder;
1004 bufs[count].b_bufsize = bufs[count].b_bcount;
1005 if (((offset_t)byte_offset + bufs[count].b_bcount) >
1009 byte_offset += bufs[count].b_bcount;
1024 hsio->bp = &bufs[count];
1026 hsio->io_lblkno = bufs[count].b_lblkno;
1039 if ((remainder - bufs[count].b_bcount) < 1) {
1046 info->bufs = bufs;
1100 struct buf *bufs;
1272 bufs = kmem_zalloc(bufcnt * sizeof (struct buf), KM_SLEEP);
1283 bioinit(&bufs[count]);
1284 bufs[count].b_edev = devvp->v_rdev;
1285 bufs[count].b_dev = cmpdev(devvp->v_rdev);
1286 bufs[count].b_flags = B_NOCACHE|B_BUSY|B_READ;
1287 bufs[count].b_iodone = hsfs_iodone;
1288 bufs[count].b_vp = vp;
1289 bufs[count].b_file = vp;
1336 bufs[count].b_un.b_addr = va + byte_offset % PAGESIZE;
1337 bufs[count].b_offset =
1346 bufs[count].b_lblkno = driver_block;
1358 bufs[count].b_bcount = remaining_bytes;
1361 bufs[count].b_bcount = off + len - byte_offset;
1383 if (bufs[count].b_bcount > remainder) {
1384 bufs[count].b_bcount = remainder;
1387 bufs[count].b_bufsize = bufs[count].b_bcount;
1388 if (((offset_t)byte_offset + bufs[count].b_bcount) >
1392 byte_offset += bufs[count].b_bcount;
1395 (void) bdev_strategy(&bufs[count]);
1411 hsio->bp = &bufs[count];
1413 hsio->io_lblkno = bufs[count].b_lblkno;
1428 if ((remainder - bufs[count].b_bcount) < 1) {
1438 err = biowait(&bufs[count]);
1440 (void) biowait(&bufs[count]);
1449 * process bufs enqueued by other threads
1452 wbuf = &bufs[count];
1479 biofini(&bufs[count]);
1486 kmem_free(bufs, bufcnt * sizeof (struct buf));
2239 * returns, so we do coalescing if we have >2 adjacent bufs.
2294 * a success to all the fully retrieved actual bufs
2303 * Copy data and signal success to all the bufs
2320 * Signal error to all the leftover bufs (if any)