Lines Matching refs:vstor_packet

90 	struct vstor_packet	vstor_packet;
185 struct vstor_packet *vstor_packet,
273 struct vstor_packet *vstor_packet;
283 vstor_packet = &request->vstor_packet;
291 vstor_packet->operation = VSTOR_OPERATION_BEGININITIALIZATION;
292 vstor_packet->flags = REQUEST_COMPLETION_FLAG;
297 vstor_packet,
298 sizeof(struct vstor_packet),
313 if (vstor_packet->operation != VSTOR_OPERATION_COMPLETEIO ||
314 vstor_packet->status != 0) {
320 memset(vstor_packet, 0, sizeof(struct vstor_packet));
321 vstor_packet->operation = VSTOR_OPERATION_QUERYPROTOCOLVERSION;
322 vstor_packet->flags = REQUEST_COMPLETION_FLAG;
324 vstor_packet->u.version.major_minor = VMSTOR_PROTOCOL_VERSION_CURRENT;
327 vstor_packet->u.version.revision = 0;
331 vstor_packet,
332 sizeof(struct vstor_packet),
348 if (vstor_packet->operation != VSTOR_OPERATION_COMPLETEIO ||
349 vstor_packet->status != 0) {
356 memset(vstor_packet, 0, sizeof(struct vstor_packet));
357 vstor_packet->operation = VSTOR_OPERATION_QUERYPROPERTIES;
358 vstor_packet->flags = REQUEST_COMPLETION_FLAG;
362 vstor_packet,
363 sizeof(struct vstor_packet),
379 if (vstor_packet->operation != VSTOR_OPERATION_COMPLETEIO ||
380 vstor_packet->status != 0) {
384 memset(vstor_packet, 0, sizeof(struct vstor_packet));
385 vstor_packet->operation = VSTOR_OPERATION_ENDINITIALIZATION;
386 vstor_packet->flags = REQUEST_COMPLETION_FLAG;
390 vstor_packet,
391 sizeof(struct vstor_packet),
406 if (vstor_packet->operation != VSTOR_OPERATION_COMPLETEIO ||
407 vstor_packet->status != 0) {
466 struct vstor_packet *vstor_packet;
475 vstor_packet = &request->vstor_packet;
479 vstor_packet->operation = VSTOR_OPERATION_RESETBUS;
480 vstor_packet->flags = REQUEST_COMPLETION_FLAG;
483 vstor_packet,
484 sizeof(struct vstor_packet),
523 struct vstor_packet *vstor_packet = &request->vstor_packet;
532 vstor_packet->flags |= REQUEST_COMPLETION_FLAG;
534 vstor_packet->u.vm_srb.length = sizeof(struct vmscsi_req);
536 vstor_packet->u.vm_srb.sense_info_len = SENSE_BUFFER_SIZE;
538 vstor_packet->u.vm_srb.transfer_len = request->data_buf.length;
540 vstor_packet->operation = VSTOR_OPERATION_EXECUTESRB;
548 vstor_packet,
549 sizeof(struct vstor_packet),
555 vstor_packet,
556 sizeof(struct vstor_packet),
564 printf("Unable to send packet %p ret %d", vstor_packet, ret);
580 struct vstor_packet *vstor_packet,
585 vm_srb = &vstor_packet->u.vm_srb;
617 uint8_t packet[roundup2(sizeof(struct vstor_packet), 8)];
619 struct vstor_packet *vstor_packet;
631 roundup2(sizeof(struct vstor_packet), 8),
641 memcpy(&request->vstor_packet, packet,
642 sizeof(struct vstor_packet));
645 vstor_packet = (struct vstor_packet *)packet;
646 switch(vstor_packet->operation) {
649 vstor_packet, request);
661 roundup2(sizeof(struct vstor_packet), 8),
910 if (reqp->vstor_packet.vm_srb.cdb[0] != opcode) {
1168 switch (reqp->vstor_packet.vm_srb.cdb[0]) {
1217 reqp->vstor_packet.u.vm_srb.port =
1219 reqp->vstor_packet.u.vm_srb.path_id =
1222 reqp->vstor_packet.u.vm_srb.target_id = ccb->ccb_h.target_id;
1223 reqp->vstor_packet.u.vm_srb.lun = ccb->ccb_h.target_lun;
1225 reqp->vstor_packet.u.vm_srb.cdb_len = csio->cdb_len;
1227 memcpy(&reqp->vstor_packet.u.vm_srb.u.cdb, csio->cdb_io.cdb_ptr,
1230 memcpy(&reqp->vstor_packet.u.vm_srb.u.cdb, csio->cdb_io.cdb_bytes,
1236 reqp->vstor_packet.u.vm_srb.data_in = WRITE_TYPE;
1239 reqp->vstor_packet.u.vm_srb.data_in = READ_TYPE;
1242 reqp->vstor_packet.u.vm_srb.data_in = UNKNOWN_TYPE;
1245 reqp->vstor_packet.u.vm_srb.data_in = UNKNOWN_TYPE;
1294 struct vmscsi_req *vm_srb = &reqp->vstor_packet.u.vm_srb;