Lines Matching defs:bios
367 * Issue one or more bios to the vdev in parallel
370 * more bios actually issued than entries in the array
376 struct bio **bios;
385 /* How many bios are required for all commands ? */
389 /* Allocate memory for the bios */
391 bios = kmem_zalloc(bios_size, KM_SLEEP);
393 /* Prepare and issue all of the bios */
403 bios[j] = g_alloc_bio();
404 bios[j]->bio_cmd = cmds[i];
405 bios[j]->bio_done = NULL;
406 bios[j]->bio_offset = off;
407 bios[j]->bio_length = MIN(s, maxio);
408 bios[j]->bio_data = (caddr_t)p;
409 g_io_request(bios[j], cp);
414 /* Wait for all of the bios to complete, and clean them up */
421 errors[i] = biowait(bios[j], "vdev_geom_io") ||
423 g_destroy_bio(bios[j]);
426 kmem_free(bios, bios_size);