search for: blkvsc_drv_ctx

Displaying 14 results from an estimated 14 matches for "blkvsc_drv_ctx".

2011 Feb 26
1
[PATCH 5/6] Staging: hv: Rename driver_context to hyperv_driver
...mp;g_blkvsc_drv.drv_ctx; struct device *current_dev; int ret; @@ -243,10 +243,10 @@ static void blkvsc_drv_exit(void) */ static int blkvsc_probe(struct device *device) { - struct driver_context *driver_ctx = - driver_to_driver_context(device->driver); - struct blkvsc_driver_context *blkvsc_drv_ctx = - (struct blkvsc_driver_context *)driver_ctx; + struct hyperv_driver *driver_ctx = + driver_to_hyperv_driver(device->driver); + struct blkvsc_hyperv_driver *blkvsc_drv_ctx = + (struct blkvsc_hyperv_driver *)driver_ctx; struct storvsc_driver_object *storvsc_drv_obj = &blkvsc...
2011 Feb 26
1
[PATCH 5/6] Staging: hv: Rename driver_context to hyperv_driver
...mp;g_blkvsc_drv.drv_ctx; struct device *current_dev; int ret; @@ -243,10 +243,10 @@ static void blkvsc_drv_exit(void) */ static int blkvsc_probe(struct device *device) { - struct driver_context *driver_ctx = - driver_to_driver_context(device->driver); - struct blkvsc_driver_context *blkvsc_drv_ctx = - (struct blkvsc_driver_context *)driver_ctx; + struct hyperv_driver *driver_ctx = + driver_to_hyperv_driver(device->driver); + struct blkvsc_hyperv_driver *blkvsc_drv_ctx = + (struct blkvsc_hyperv_driver *)driver_ctx; struct storvsc_driver_object *storvsc_drv_obj = &blkvsc...
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
2
[PATCH 6/6] Staging: hv: Cleanup hyperv_driver variable names
...d_driver_unregister(drv); return; } @@ -243,12 +243,12 @@ static void blkvsc_drv_exit(void) */ static int blkvsc_probe(struct device *device) { - struct hyperv_driver *driver_ctx = + struct hyperv_driver *drv = driver_to_hyperv_driver(device->driver); - struct blkvsc_hyperv_driver *blkvsc_drv_ctx = - (struct blkvsc_hyperv_driver *)driver_ctx; + struct blkvsc_hyperv_driver *blkvsc_drv = + (struct blkvsc_hyperv_driver *)drv; struct storvsc_driver_object *storvsc_drv_obj = - &blkvsc_drv_ctx->drv_obj; + &blkvsc_drv->drv_obj; struct hyperv_device *device_obj = devic...
2011 Feb 26
2
[PATCH 6/6] Staging: hv: Cleanup hyperv_driver variable names
...d_driver_unregister(drv); return; } @@ -243,12 +243,12 @@ static void blkvsc_drv_exit(void) */ static int blkvsc_probe(struct device *device) { - struct hyperv_driver *driver_ctx = + struct hyperv_driver *drv = driver_to_hyperv_driver(device->driver); - struct blkvsc_hyperv_driver *blkvsc_drv_ctx = - (struct blkvsc_hyperv_driver *)driver_ctx; + struct blkvsc_hyperv_driver *blkvsc_drv = + (struct blkvsc_hyperv_driver *)drv; struct storvsc_driver_object *storvsc_drv_obj = - &blkvsc_drv_ctx->drv_obj; + &blkvsc_drv->drv_obj; struct hyperv_device *device_obj = devic...
2011 Feb 26
1
[PATCH 2/6] Staging: hv: Rename vm_device to hyperv_device
...device_ctx; + struct hyperv_device *device_ctx; struct kmem_cache *request_pool; spinlock_t lock; struct gendisk *gd; @@ -249,7 +249,7 @@ static int blkvsc_probe(struct device *device) (struct blkvsc_driver_context *)driver_ctx; struct storvsc_driver_object *storvsc_drv_obj = &blkvsc_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 block_device_context *blkdev = NULL; struct storvsc_device_info device_info; @@ -733,7 +733,7 @@ static int blkvsc_remove(struct device *devi...
2011 Feb 26
1
[PATCH 2/6] Staging: hv: Rename vm_device to hyperv_device
...device_ctx; + struct hyperv_device *device_ctx; struct kmem_cache *request_pool; spinlock_t lock; struct gendisk *gd; @@ -249,7 +249,7 @@ static int blkvsc_probe(struct device *device) (struct blkvsc_driver_context *)driver_ctx; struct storvsc_driver_object *storvsc_drv_obj = &blkvsc_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 block_device_context *blkdev = NULL; struct storvsc_device_info device_info; @@ -733,7 +733,7 @@ static int blkvsc_remove(struct device *devi...
2011 Feb 24
4
[PATCH ] Staging: hv: Hyper-V driver cleanup
...ster(drv_ctx); + vmbus_child_driver_unregister(drv); return; } @@ -243,14 +243,13 @@ static void blkvsc_drv_exit(void) */ static int blkvsc_probe(struct device *device) { - struct driver_context *driver_ctx = - driver_to_driver_context(device->driver); - struct blkvsc_driver_context *blkvsc_drv_ctx = - (struct blkvsc_driver_context *)driver_ctx; + struct hyperv_driver *drv = + driver_to_hyperv_driver(device->driver); + struct blkvsc_hyperv_driver *blkvsc_drv = + (struct blkvsc_hyperv_driver *)drv; struct storvsc_driver_object *storvsc_drv_obj = - &blkvsc_drv_ctx->drv_o...
2011 Feb 24
4
[PATCH ] Staging: hv: Hyper-V driver cleanup
...ster(drv_ctx); + vmbus_child_driver_unregister(drv); return; } @@ -243,14 +243,13 @@ static void blkvsc_drv_exit(void) */ static int blkvsc_probe(struct device *device) { - struct driver_context *driver_ctx = - driver_to_driver_context(device->driver); - struct blkvsc_driver_context *blkvsc_drv_ctx = - (struct blkvsc_driver_context *)driver_ctx; + struct hyperv_driver *drv = + driver_to_hyperv_driver(device->driver); + struct blkvsc_hyperv_driver *blkvsc_drv = + (struct blkvsc_hyperv_driver *)drv; struct storvsc_driver_object *storvsc_drv_obj = - &blkvsc_drv_ctx->drv_o...
2011 Feb 26
5
[PATCH 1/6] Staging: hv: Unify hyper-v device abstractions
...t;class_id, &storvsc_drv_obj->base.class_id, sizeof(struct hv_guid)); drv_ctx->probe = blkvsc_probe; @@ -249,8 +249,7 @@ static int blkvsc_probe(struct device *device) (struct blkvsc_driver_context *)driver_ctx; struct storvsc_driver_object *storvsc_drv_obj = &blkvsc_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); struct block_device_context *blkdev = NULL; struct storvsc_device_info device_info; @@ -282...
2011 Feb 26
5
[PATCH 1/6] Staging: hv: Unify hyper-v device abstractions
...t;class_id, &storvsc_drv_obj->base.class_id, sizeof(struct hv_guid)); drv_ctx->probe = blkvsc_probe; @@ -249,8 +249,7 @@ static int blkvsc_probe(struct device *device) (struct blkvsc_driver_context *)driver_ctx; struct storvsc_driver_object *storvsc_drv_obj = &blkvsc_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); struct block_device_context *blkdev = NULL; struct storvsc_device_info device_info; @@ -282...
2011 Feb 26
2
[PATCH 3/6] Staging: hv: Cleanup hyperv_device variable names
...yperv_device *device_ctx = blkdev->device_ctx; + struct hyperv_device *device_obj = blkdev->device_obj; struct driver_context *driver_ctx = - driver_to_driver_context(device_ctx->device.driver); + driver_to_driver_context(device_obj->device.driver); struct blkvsc_driver_context *blkvsc_drv_ctx = (struct blkvsc_driver_context *)driver_ctx; struct storvsc_driver_object *storvsc_drv_obj = @@ -895,7 +895,7 @@ static int blkvsc_submit_request(struct blkvsc_request *blkvsc_req, storvsc_req->sense_buffer = blkvsc_req->sense_buffer; storvsc_req->sense_buffer_size = SCSI_SENSE_...
2011 Feb 26
2
[PATCH 3/6] Staging: hv: Cleanup hyperv_device variable names
...yperv_device *device_ctx = blkdev->device_ctx; + struct hyperv_device *device_obj = blkdev->device_obj; struct driver_context *driver_ctx = - driver_to_driver_context(device_ctx->device.driver); + driver_to_driver_context(device_obj->device.driver); struct blkvsc_driver_context *blkvsc_drv_ctx = (struct blkvsc_driver_context *)driver_ctx; struct storvsc_driver_object *storvsc_drv_obj = @@ -895,7 +895,7 @@ static int blkvsc_submit_request(struct blkvsc_request *blkvsc_req, storvsc_req->sense_buffer = blkvsc_req->sense_buffer; storvsc_req->sense_buffer_size = SCSI_SENSE_...