search for: storvsc_driver_context

Displaying 12 results from an estimated 12 matches for "storvsc_driver_context".

2011 Feb 23
7
[PATCH 1/4] staging: hv: Fix the code depending on struct vmbus_driver_context data order
The patch fixed the code depending on the exact order of fields in the struct vmbus_driver_context, so the unused field drv_ctx can be removed, and drv_obj doesn't have to be the second field in this structure. Signed-off-by: Haiyang Zhang <haiyangz at microsoft.com> Signed-off-by: K. Y. Srinivasan <kys at microsoft.com> Signed-off-by: Hank Janssen <hjanssen at
2011 Feb 23
7
[PATCH 1/4] staging: hv: Fix the code depending on struct vmbus_driver_context data order
The patch fixed the code depending on the exact order of fields in the struct vmbus_driver_context, so the unused field drv_ctx can be removed, and drv_obj doesn't have to be the second field in this structure. Signed-off-by: Haiyang Zhang <haiyangz at microsoft.com> Signed-off-by: K. Y. Srinivasan <kys at microsoft.com> Signed-off-by: Hank Janssen <hjanssen at
2011 Feb 26
1
[PATCH 5/6] Staging: hv: Rename driver_context to hyperv_driver
...diff --git a/drivers/staging/hv/storvsc_drv.c b/drivers/staging/hv/storvsc_drv.c index 282bd66..659d385 100644 --- a/drivers/staging/hv/storvsc_drv.c +++ b/drivers/staging/hv/storvsc_drv.c @@ -64,10 +64,10 @@ struct storvsc_cmd_request { * Which sounds like a very bad design... */ }; -struct storvsc_driver_context { +struct storvsc_hyperv_driver { /* !! These must be the first 2 fields !! */ /* FIXME this is a bug... */ - struct driver_context drv_ctx; + struct hyperv_driver drv_ctx; struct storvsc_driver_object drv_obj; }; @@ -101,7 +101,7 @@ module_param(storvsc_ringbuffer_size, int, S_IRUGO); MO...
2011 Feb 26
1
[PATCH 5/6] Staging: hv: Rename driver_context to hyperv_driver
...diff --git a/drivers/staging/hv/storvsc_drv.c b/drivers/staging/hv/storvsc_drv.c index 282bd66..659d385 100644 --- a/drivers/staging/hv/storvsc_drv.c +++ b/drivers/staging/hv/storvsc_drv.c @@ -64,10 +64,10 @@ struct storvsc_cmd_request { * Which sounds like a very bad design... */ }; -struct storvsc_driver_context { +struct storvsc_hyperv_driver { /* !! These must be the first 2 fields !! */ /* FIXME this is a bug... */ - struct driver_context drv_ctx; + struct hyperv_driver drv_ctx; struct storvsc_driver_object drv_obj; }; @@ -101,7 +101,7 @@ module_param(storvsc_ringbuffer_size, int, S_IRUGO); MO...
2011 Feb 24
4
[PATCH ] Staging: hv: Hyper-V driver cleanup
...*/ /* point back to our device context */ - struct vm_device *device_ctx; + struct hyperv_device *hyperv_dev; struct kmem_cache *request_pool; unsigned int port; unsigned char path; @@ -63,10 +63,10 @@ struct storvsc_cmd_request { * Which sounds like a very bad design... */ }; -struct storvsc_driver_context { +struct storvsc_hyperv_driver { /* !! These must be the first 2 fields !! */ /* FIXME this is a bug... */ - struct driver_context drv_ctx; + struct hyperv_driver drv; struct storvsc_driver_object drv_obj; }; @@ -100,7 +100,7 @@ module_param(storvsc_ringbuffer_size, int, S_IRUGO); MODULE...
2011 Feb 24
4
[PATCH ] Staging: hv: Hyper-V driver cleanup
...*/ /* point back to our device context */ - struct vm_device *device_ctx; + struct hyperv_device *hyperv_dev; struct kmem_cache *request_pool; unsigned int port; unsigned char path; @@ -63,10 +63,10 @@ struct storvsc_cmd_request { * Which sounds like a very bad design... */ }; -struct storvsc_driver_context { +struct storvsc_hyperv_driver { /* !! These must be the first 2 fields !! */ /* FIXME this is a bug... */ - struct driver_context drv_ctx; + struct hyperv_driver drv; struct storvsc_driver_object drv_obj; }; @@ -100,7 +100,7 @@ module_param(storvsc_ringbuffer_size, int, S_IRUGO); MODULE...
2011 Feb 26
1
[PATCH 2/6] Staging: hv: Rename vm_device to hyperv_device
...eld * FIXME this is a bug */ /* point back to our device context */ - struct vm_device *device_ctx; + struct hyperv_device *device_ctx; struct kmem_cache *request_pool; unsigned int port; unsigned char path; @@ -226,7 +226,7 @@ static int storvsc_probe(struct device *device) (struct storvsc_driver_context *)driver_ctx; struct storvsc_driver_object *storvsc_drv_obj = &storvsc_drv_ctx->drv_obj; - struct vm_device *device_obj = device_to_vm_device(device); + struct hyperv_device *device_obj = device_to_hyperv_device(device); struct Scsi_Host *host; struct host_device_context *host_dev...
2011 Feb 26
1
[PATCH 2/6] Staging: hv: Rename vm_device to hyperv_device
...eld * FIXME this is a bug */ /* point back to our device context */ - struct vm_device *device_ctx; + struct hyperv_device *device_ctx; struct kmem_cache *request_pool; unsigned int port; unsigned char path; @@ -226,7 +226,7 @@ static int storvsc_probe(struct device *device) (struct storvsc_driver_context *)driver_ctx; struct storvsc_driver_object *storvsc_drv_obj = &storvsc_drv_ctx->drv_obj; - struct vm_device *device_obj = device_to_vm_device(device); + struct hyperv_device *device_obj = device_to_hyperv_device(device); struct Scsi_Host *host; struct host_device_context *host_dev...
2011 Feb 26
2
[PATCH 3/6] Staging: hv: Cleanup hyperv_device variable names
...truct hyperv_device *device_ctx = host_device_ctx->device_ctx; + struct hyperv_device *device_obj = host_device_obj->device_obj; struct driver_context *driver_ctx = - driver_to_driver_context(device_ctx->device.driver); + driver_to_driver_context(device_obj->device.driver); struct storvsc_driver_context *storvsc_drv_ctx = (struct storvsc_driver_context *)driver_ctx; struct storvsc_driver_object *storvsc_drv_obj = @@ -639,7 +639,7 @@ static int storvsc_queuecommand_lck(struct scsi_cmnd *scmnd, request_size = sizeof(struct storvsc_cmd_request); - cmd_request = kmem_cache_alloc(host_device...
2011 Feb 26
2
[PATCH 3/6] Staging: hv: Cleanup hyperv_device variable names
...truct hyperv_device *device_ctx = host_device_ctx->device_ctx; + struct hyperv_device *device_obj = host_device_obj->device_obj; struct driver_context *driver_ctx = - driver_to_driver_context(device_ctx->device.driver); + driver_to_driver_context(device_obj->device.driver); struct storvsc_driver_context *storvsc_drv_ctx = (struct storvsc_driver_context *)driver_ctx; struct storvsc_driver_object *storvsc_drv_obj = @@ -639,7 +639,7 @@ static int storvsc_queuecommand_lck(struct scsi_cmnd *scmnd, request_size = sizeof(struct storvsc_cmd_request); - cmd_request = kmem_cache_alloc(host_device...
2011 Feb 26
5
[PATCH 1/6] Staging: hv: Unify hyper-v device abstractions
...py(&drv_ctx->class_id, &storvsc_drv_obj->base.dev_type, + memcpy(&drv_ctx->class_id, &storvsc_drv_obj->base.class_id, sizeof(struct hv_guid)); drv_ctx->probe = storvsc_probe; @@ -225,8 +226,7 @@ static int storvsc_probe(struct device *device) (struct storvsc_driver_context *)driver_ctx; struct storvsc_driver_object *storvsc_drv_obj = &storvsc_drv_ctx->drv_obj; - struct vm_device *device_ctx = device_to_vm_device(device); - struct hv_device *device_obj = &device_ctx->device_obj; + struct vm_device *device_obj = device_to_vm_device(device); struc...
2011 Feb 26
5
[PATCH 1/6] Staging: hv: Unify hyper-v device abstractions
...py(&drv_ctx->class_id, &storvsc_drv_obj->base.dev_type, + memcpy(&drv_ctx->class_id, &storvsc_drv_obj->base.class_id, sizeof(struct hv_guid)); drv_ctx->probe = storvsc_probe; @@ -225,8 +226,7 @@ static int storvsc_probe(struct device *device) (struct storvsc_driver_context *)driver_ctx; struct storvsc_driver_object *storvsc_drv_obj = &storvsc_drv_ctx->drv_obj; - struct vm_device *device_ctx = device_to_vm_device(device); - struct hv_device *device_obj = &device_ctx->device_obj; + struct vm_device *device_obj = device_to_vm_device(device); struc...