Lines Matching refs:operation

308 	    elem->payload.operation,					\
531 uint8_t operation;
537 uint8_t operation; /* vdisk operation */
538 const char *operation_name; /* vdisk operation name */
539 size_t nbytes; /* size of operation buffer */
547 /* write is true if the operation writes any data to the backend */
736 * vd - disk on which the operation is performed.
856 * vd - disk on which the operation is performed.
857 * slice - slice on which the operation is performed,
858 * VD_SLICE_NONE indicates that the operation
860 * operation - operation to execute: read (VD_OP_BREAD) or
863 * blk - starting block for the operation.
872 vd_dskimg_rw(vd_t *vd, int slice, int operation, caddr_t data, size_t offset,
890 ((operation == VD_OP_BREAD)? B_READ : B_WRITE);
925 status = vn_rdwr((operation == VD_OP_BREAD)? UIO_READ : UIO_WRITE,
1072 * vd - disk on which the operation is performed.
1142 * vd - disk on which the operation is performed.
1223 * vd - disk on which the operation is performed.
1300 * vd - disk on which the operation is performed.
1363 * vd - disk on which the operation is performed.
1364 * operation - operation to execute: read (VD_OP_BREAD) or
1367 * blk - starting block for the operation.
1375 vd_do_scsi_rdwr(vd_t *vd, int operation, caddr_t data, size_t blk, size_t len)
1436 if (operation == VD_OP_BREAD) {
1490 * vd - disk on which the operation is performed.
1491 * operation - operation to execute: read (VD_OP_BREAD) or
1494 * blk - starting block for the operation.
1502 vd_scsi_rdwr(vd_t *vd, int operation, caddr_t data, size_t vblk, size_t vlen)
1529 return (vd_do_scsi_rdwr(vd, operation, data, vblk, vlen));
1539 if (operation == VD_OP_BWRITE)
1575 rv = vd_do_scsi_rdwr(vd, operation, (caddr_t)buf, pblk, plen);
1588 * This function simulates a read operation from the fake label of
1642 * This function simulates a write operation to the fake label of
1701 * This function simulates a raw read or write operation to a single-slice
1702 * disk. It only handles the faked part of the operation i.e. I/Os to
1706 * The function returns 0 is the operation is completed and it has been
1711 * If the fake operation has succeeded but the read or write is not
1712 * complete (i.e. the read/write operation extends beyond the blocks
1714 * pointers points to the parameters for completing the operation.
1722 * vd - single-slice disk on which the operation is performed
1723 * slice - slice on which the operation is performed,
1724 * VD_SLICE_NONE indicates that the operation
1726 * operation - operation to execute: read (VD_OP_BREAD) or
1731 * blkp - pointer to the starting block for the operation.
1733 * backend for the remaining operation.
1739 * 0 - read/write operation is completed
1740 * EAGAIN - read/write operation is not completed
1744 vd_slice_fake_rdwr(vd_t *vd, int slice, int operation, caddr_t *datap,
1778 if (operation == VD_OP_BWRITE)
1837 if (operation == VD_OP_BWRITE)
1851 if (operation == VD_OP_BREAD) {
1960 * EINPROGRESS - operation was successfully started
1962 * 0 - operation completed successfully
1965 * sets request->status = <disk operation status>
1986 ASSERT((request->operation == VD_OP_BREAD) ||
1987 (request->operation == VD_OP_BWRITE));
1996 (request->operation == VD_OP_BREAD) ? "Read" : "Write",
2003 if (request->operation == VD_OP_BWRITE && !(vd->open_flags & FWRITE)) {
2014 mtype, (request->operation == VD_OP_BREAD) ? LDC_MEM_W : LDC_MEM_R,
2045 rv = vd_slice_fake_rdwr(vd, slice, request->operation,
2101 rv = vd_scsi_rdwr(vd, request->operation, bufaddr, offset,
2131 if (request->operation == VD_OP_BREAD) {
2142 * flush operation.
2173 if (request->operation == VD_OP_BREAD) {
2404 * 0 - operation completed successfully
2408 * sets request->status = <disk operation status>
2452 ASSERT(task->request->operation == VD_OP_BWRITE);
3224 * vd - disk on which the operation is performed.
3285 * != 0 - Disk operation returned an error
3472 * 0 - ioctl operation completed successfully
3506 /* convert client vdisk operation data to ioctl data */
3516 if (ioctl->operation == VD_OP_SCSICMD) {
3535 if (ioctl->operation == VD_OP_SCSICMD &&
3541 * mark the VD operation has succesfully completed
3555 /* Convert ioctl data to vdisk operation data, if necessary */
3661 * Determine ioctl corresponding to caller's "operation" and
3665 if (request->operation == ioctl[i].operation) {
3669 if (request->operation == VD_OP_GET_EFI ||
3670 request->operation == VD_OP_SET_EFI ||
3671 request->operation == VD_OP_SCSICMD) {
3690 ASSERT(i < nioctls); /* because "operation" already validated */
3810 ASSERT(request->operation == VD_OP_RESET);
3835 ASSERT(request->operation == VD_OP_GET_CAPACITY);
3878 ASSERT(request->operation == VD_OP_GET_ACCESS);
3917 ASSERT(request->operation == VD_OP_SET_ACCESS);
4128 * ENOTSUP - Unknown/Unsupported VD_OP_XXX operation
4142 /* Find the requested operation */
4144 if (request->operation == vds_operation[i].operation) {
4154 * We need to check that the requested operation is permitted
4156 * did not complete without finding the operation type (indicating
4157 * that the requested operation is unknown/unimplemented)
4159 if ((VD_OP_SUPPORTED(vd->operations, request->operation) == B_FALSE) ||
4161 PR0("Unsupported operation %u", request->operation);
4177 * Call the function pointer that starts the operation.
4229 /* Queue a task to complete the operation */
5185 * Queue a task to send the notification that the operation completed.
5436 * vd - disk on which the operation is performed.
5486 * vd - disk on which the operation is performed.
6320 * the VD_OP_GET_CAPACITY operation. It checks the backend size and set the
6334 * handshake and in the result of a VD_OP_GET_CAPACITY operation.