search for: device_to_hyperv_device

Displaying 10 results from an estimated 10 matches for "device_to_hyperv_device".

2011 Feb 26
2
[PATCH 3/6] Staging: hv: Cleanup hyperv_device variable names
...; PACKET_PAGES_LOWATER) netif_stop_queue(net); } else { /* we are shutting down or bus overloaded, just drop packet */ @@ -345,7 +345,7 @@ static int netvsc_probe(struct device *device) struct netvsc_driver *net_drv_obj = &net_drv_ctx->drv_obj; struct hyperv_device *device_obj = device_to_hyperv_device(device); struct net_device *net = NULL; - struct net_device_context *net_device_ctx; + struct net_device_context *net_device_obj; struct netvsc_device_info device_info; int ret; @@ -359,9 +359,9 @@ static int netvsc_probe(struct device *device) /* Set initial state */ netif_carrier_off(...
2011 Feb 26
2
[PATCH 3/6] Staging: hv: Cleanup hyperv_device variable names
...; PACKET_PAGES_LOWATER) netif_stop_queue(net); } else { /* we are shutting down or bus overloaded, just drop packet */ @@ -345,7 +345,7 @@ static int netvsc_probe(struct device *device) struct netvsc_driver *net_drv_obj = &net_drv_ctx->drv_obj; struct hyperv_device *device_obj = device_to_hyperv_device(device); struct net_device *net = NULL; - struct net_device_context *net_device_ctx; + struct net_device_context *net_device_obj; struct netvsc_device_info device_info; int ret; @@ -359,9 +359,9 @@ static int netvsc_probe(struct device *device) /* Set initial state */ netif_carrier_off(...
2011 Feb 26
2
[PATCH 6/6] Staging: hv: Cleanup hyperv_driver variable names
...v_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 = device_to_hyperv_device(device); struct block_device_context *blkdev = NULL; @@ -727,12 +727,12 @@ static int blkvsc_do_read_capacity16(struct block_device_context *blkdev) */ static int blkvsc_remove(struct device *device) { - struct hyperv_driver *driver_ctx = + struct hyperv_driver *drv = driver_to_hyperv_...
2011 Feb 26
2
[PATCH 6/6] Staging: hv: Cleanup hyperv_driver variable names
...v_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 = device_to_hyperv_device(device); struct block_device_context *blkdev = NULL; @@ -727,12 +727,12 @@ static int blkvsc_do_read_capacity16(struct block_device_context *blkdev) */ static int blkvsc_remove(struct device *device) { - struct hyperv_driver *driver_ctx = + struct hyperv_driver *drv = driver_to_hyperv_...
2011 Feb 26
1
[PATCH 2/6] Staging: hv: Rename vm_device to hyperv_device
...-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 *device) (struct blkvsc_driver_context *)driver_ctx; struct storvsc_driver_object *storvsc_drv_obj = &blkvsc_drv_ctx->drv_...
2011 Feb 26
1
[PATCH 2/6] Staging: hv: Rename vm_device to hyperv_device
...-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 *device) (struct blkvsc_driver_context *)driver_ctx; struct storvsc_driver_object *storvsc_drv_obj = &blkvsc_drv_ctx->drv_...
2011 Feb 26
1
[PATCH 5/6] Staging: hv: Rename driver_context to hyperv_driver
...t 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_drv_ctx->drv_obj; struct hyperv_device *device_obj = device_to_hyperv_device(device); @@ -727,10 +727,10 @@ static int blkvsc_do_read_capacity16(struct block_device_context *blkdev) */ static int blkvsc_remove(struct device *device) { - struct driver_context *driver_ctx = - driver_to_driver_context(device->driver); - struct blkvsc_driver_context *blkvsc_drv_ctx =...
2011 Feb 26
1
[PATCH 5/6] Staging: hv: Rename driver_context to hyperv_driver
...t 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_drv_ctx->drv_obj; struct hyperv_device *device_obj = device_to_hyperv_device(device); @@ -727,10 +727,10 @@ static int blkvsc_do_read_capacity16(struct block_device_context *blkdev) */ static int blkvsc_remove(struct device *device) { - struct driver_context *driver_ctx = - driver_to_driver_context(device->driver); - struct blkvsc_driver_context *blkvsc_drv_ctx =...
2011 Feb 24
4
[PATCH ] Staging: hv: Hyper-V driver cleanup
...driver *)drv; 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; + &blkvsc_drv->drv_obj; + struct hyperv_device *device_obj = device_to_hyperv_device(device); struct block_device_context *blkdev = NULL; struct storvsc_device_info device_info; @@ -282,7 +281,7 @@ static int blkvsc_probe(struct device *device) /* ASSERT(sizeof(struct blkvsc_request_group) <= */ /* sizeof(struct blkvsc_request)); */ - blkdev->request_pool = kmem_...
2011 Feb 24
4
[PATCH ] Staging: hv: Hyper-V driver cleanup
...driver *)drv; 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; + &blkvsc_drv->drv_obj; + struct hyperv_device *device_obj = device_to_hyperv_device(device); struct block_device_context *blkdev = NULL; struct storvsc_device_info device_info; @@ -282,7 +281,7 @@ static int blkvsc_probe(struct device *device) /* ASSERT(sizeof(struct blkvsc_request_group) <= */ /* sizeof(struct blkvsc_request)); */ - blkdev->request_pool = kmem_...