Lines Matching defs:from

50  * 4) Handling responses from vDisk server.
167 /* processing incoming messages from vDisk server */
204 static int vdc_null_copy_func(vdc_t *vdc, void *from, void *to,
206 static int vdc_get_wce_convert(vdc_t *vdc, void *from, void *to,
208 static int vdc_set_wce_convert(vdc_t *vdc, void *from, void *to,
210 static int vdc_get_vtoc_convert(vdc_t *vdc, void *from, void *to,
212 static int vdc_set_vtoc_convert(vdc_t *vdc, void *from, void *to,
214 static int vdc_get_extvtoc_convert(vdc_t *vdc, void *from, void *to,
216 static int vdc_set_extvtoc_convert(vdc_t *vdc, void *from, void *to,
218 static int vdc_get_geom_convert(vdc_t *vdc, void *from, void *to,
220 static int vdc_set_geom_convert(vdc_t *vdc, void *from, void *to,
222 static int vdc_get_efi_convert(vdc_t *vdc, void *from, void *to,
224 static int vdc_set_efi_convert(vdc_t *vdc, void *from, void *to,
2036 * notification from the LDC callback which will set the read_state to
2048 * safely because vdc_recv() is only called from thread
2265 * the "reg" property on the node in the device tree it builds from
2665 * Descriptor Ring entry from the attributes returned by the
3738 * Interrupt handlers for messages from LDC
3863 * Block waiting for a response from the server. If there is
4066 * All requests have already been cleared from the
4403 * The following functions process the incoming messages from vds
4562 "state moved to %d out from under us...\n",
4693 * backend from any server, either because of a maximum
4827 * When we reach this state, we either come from the
4829 * request but no timeout is armed; or we come from
4929 * be an ACK or NACK from vds[1] which vdc handles as follows.
5214 DMSG(vdc, 0, "[%d] Invalid disk size from vds",
5221 DMSG(vdc, 0, "[%d] Invalid transfer size from vds",
5228 DMSG(vdc, 0, "[%d] Unknown disk size from vds",
5237 DMSG(vdc, 0, "[%d] Invalid block size (%u) from vds",
5264 DMSG(vdc, 0, "[%d] Invalid attributes from vds",
5465 "Adjusting minor version from %u to %u",
5990 * but basically they prevent a SCSI command from being retried in case
6097 /* get the return code from the SCSI command status */
6768 * Remove I/Os added before the indicated deadline from the eio queue. A
7021 * option so that we don't steal the ownership from
7101 * Get the size and the block size of a virtual disk from the vdisk server.
7246 * This function handles ioctl requests from the vd_efi_alloc_and_read()
7543 * to the ioctl will have been flushed from the disk
7556 * invoked from within the kernel
7607 * converts from the Solaris format to the format ARC'ed
7642 * which converts from the format ARC'ed as part of the vDisk
7669 vdc_null_copy_func(vdc_t *vdc, void *from, void *to, int mode, int dir)
7672 _NOTE(ARGUNUSED(from))
7681 vdc_get_wce_convert(vdc_t *vdc, void *from, void *to,
7689 if (ddi_copyout(from, to, sizeof (int), mode) != 0)
7696 vdc_set_wce_convert(vdc_t *vdc, void *from, void *to,
7704 if (ddi_copyin(from, to, sizeof (int), mode) != 0)
7715 * This routine performs the necessary convertions from the DKIOCGVTOC
7725 * from - the buffer containing the data to be copied from
7736 vdc_get_vtoc_convert(vdc_t *vdc, void *from, void *to, int mode, int dir)
7747 if ((from == NULL) || (to == NULL))
7753 VD_VTOC2VTOC((vd_vtoc_t *)from, &evtoc);
7781 * This routine performs the necessary convertions from the DKIOCSVTOC
7786 * from - Buffer with data
7797 vdc_set_vtoc_convert(vdc_t *vdc, void *from, void *to, int mode, int dir)
7805 if ((from == NULL) || (to == NULL))
7811 uvtoc = (dir == VD_COPYIN)? from : to;
7847 vdc_get_extvtoc_convert(vdc_t *vdc, void *from, void *to, int mode, int dir)
7855 if ((from == NULL) || (to == NULL))
7858 VD_VTOC2VTOC((vd_vtoc_t *)from, &evtoc);
7873 vdc_set_extvtoc_convert(vdc_t *vdc, void *from, void *to, int mode, int dir)
7879 if ((from == NULL) || (to == NULL))
7882 uvtoc = (dir == VD_COPYIN)? from : to;
7914 * This routine performs the necessary convertions from the DKIOCGGEOM,
7920 * from - Buffer with data
7931 vdc_get_geom_convert(vdc_t *vdc, void *from, void *to, int mode, int dir)
7942 if ((from == NULL) || (to == NULL))
7945 VD_GEOM2DK_GEOM((vd_geom_t *)from, &geom);
7958 * This routine performs the necessary convertions from the DKIOCSGEOM
7963 * from - Buffer with data
7974 vdc_set_geom_convert(vdc_t *vdc, void *from, void *to, int mode, int dir)
7986 if ((from == NULL) || (to == NULL))
7991 rv = ddi_copyin(from, tmp_mem, copy_len, mode);
8004 vdc_get_efi_convert(vdc_t *vdc, void *from, void *to, int mode, int dir)
8013 if ((from == NULL) || (to == NULL))
8020 rv = ddi_copyin(from, &dk_efi, sizeof (dk_efi_t), mode);
8038 VD_EFI2DK_EFI((vd_efi_t *)from, &dk_efi);
8052 vdc_set_efi_convert(vdc_t *vdc, void *from, void *to, int mode, int dir)
8068 if ((from == NULL) || (to == NULL))
8071 if (ddi_copyin(from, &dk_efi, sizeof (dk_efi_t), mode) != 0)
8385 * what is done for disk image). So we read the label from the
8389 * from the disk as opposed to sending the VD_OP_GET_VTOC
8427 * Read disk label from start of disk
8519 * the underlying device from the vDisk server, builds an encapsulated