search for: ring_buf_size

Displaying 18 results from an estimated 18 matches for "ring_buf_size".

2011 Apr 21
8
[PATCH 0/8] staging: hv: clean up forward declarations and camel cases in netvsc.c
From: haiyangz <haiyangz at hz-dev.msft.interop.novell.com> This patch series cleans up forward declarations and the remaining camel cases in netvsc.c Haiyang Zhang (8): staging: hv: move netvsc_initialize() to clean up forward declaration staging: hv: move netvsc_receive_completion() to clean up forward declaration staging: hv: move netvsc_send_recv_completion() to clean up
2011 Apr 21
8
[PATCH 0/8] staging: hv: clean up forward declarations and camel cases in netvsc.c
From: haiyangz <haiyangz at hz-dev.msft.interop.novell.com> This patch series cleans up forward declarations and the remaining camel cases in netvsc.c Haiyang Zhang (8): staging: hv: move netvsc_initialize() to clean up forward declaration staging: hv: move netvsc_receive_completion() to clean up forward declaration staging: hv: move netvsc_send_recv_completion() to clean up
2011 Mar 07
0
[PATCH 10/16] Staging: hv: Eliminate netvsc_driver_context
...(*drv_init)(struct hv_driver *drv)) { - struct netvsc_driver *net_drv_obj = &g_netvsc_drv.drv_obj; - struct hv_driver *drv = &g_netvsc_drv.drv_obj.base; + struct netvsc_driver *net_drv_obj = &g_netvsc_drv; + struct hv_driver *drv = &g_netvsc_drv.base; int ret; net_drv_obj->ring_buf_size = ring_size * PAGE_SIZE; -- 1.5.5.6
2011 Mar 07
0
[PATCH 10/16] Staging: hv: Eliminate netvsc_driver_context
...(*drv_init)(struct hv_driver *drv)) { - struct netvsc_driver *net_drv_obj = &g_netvsc_drv.drv_obj; - struct hv_driver *drv = &g_netvsc_drv.drv_obj.base; + struct netvsc_driver *net_drv_obj = &g_netvsc_drv; + struct hv_driver *drv = &g_netvsc_drv.base; int ret; net_drv_obj->ring_buf_size = ring_size * PAGE_SIZE; -- 1.5.5.6
2011 Feb 23
7
[PATCH 1/4] staging: hv: Fix the code depending on struct vmbus_driver_context data order
...ivers/staging/hv/netvsc_drv.c +++ b/drivers/staging/hv/netvsc_drv.c @@ -500,6 +500,8 @@ static int netvsc_drv_init(int (*drv_init)(struct hv_driver *drv)) struct driver_context *drv_ctx = &g_netvsc_drv.drv_ctx; int ret; + drv_ctx->hv_drv = &net_drv_obj->base; + net_drv_obj->ring_buf_size = ring_size * PAGE_SIZE; net_drv_obj->recv_cb = netvsc_recv_callback; net_drv_obj->link_status_change = netvsc_linkstatus_callback; diff --git a/drivers/staging/hv/storvsc_drv.c b/drivers/staging/hv/storvsc_drv.c index a8427ff..33acee5 100644 --- a/drivers/staging/hv/storvsc_drv.c +++ b/d...
2011 Feb 23
7
[PATCH 1/4] staging: hv: Fix the code depending on struct vmbus_driver_context data order
...ivers/staging/hv/netvsc_drv.c +++ b/drivers/staging/hv/netvsc_drv.c @@ -500,6 +500,8 @@ static int netvsc_drv_init(int (*drv_init)(struct hv_driver *drv)) struct driver_context *drv_ctx = &g_netvsc_drv.drv_ctx; int ret; + drv_ctx->hv_drv = &net_drv_obj->base; + net_drv_obj->ring_buf_size = ring_size * PAGE_SIZE; net_drv_obj->recv_cb = netvsc_recv_callback; net_drv_obj->link_status_change = netvsc_linkstatus_callback; diff --git a/drivers/staging/hv/storvsc_drv.c b/drivers/staging/hv/storvsc_drv.c index a8427ff..33acee5 100644 --- a/drivers/staging/hv/storvsc_drv.c +++ b/d...
2011 Feb 26
1
[PATCH 5/6] Staging: hv: Rename driver_context to hyperv_driver
...ex 842f542..a96cce4 100644 --- a/drivers/staging/hv/netvsc_api.h +++ b/drivers/staging/hv/netvsc_api.h @@ -84,7 +84,7 @@ struct hv_netvsc_packet { struct netvsc_driver { /* Must be the first field */ /* Which is a bug FIXME! */ - struct driver_context base; + struct hyperv_driver base; u32 ring_buf_size; u32 req_ext_size; @@ -109,7 +109,7 @@ struct netvsc_device_info { }; /* Interface */ -int netvsc_initialize(struct driver_context *drv); +int netvsc_initialize(struct hyperv_driver *drv); int rndis_filter_open(struct hyperv_device *dev); int rndis_filter_close(struct hyperv_device *dev);...
2011 Feb 26
1
[PATCH 5/6] Staging: hv: Rename driver_context to hyperv_driver
...ex 842f542..a96cce4 100644 --- a/drivers/staging/hv/netvsc_api.h +++ b/drivers/staging/hv/netvsc_api.h @@ -84,7 +84,7 @@ struct hv_netvsc_packet { struct netvsc_driver { /* Must be the first field */ /* Which is a bug FIXME! */ - struct driver_context base; + struct hyperv_driver base; u32 ring_buf_size; u32 req_ext_size; @@ -109,7 +109,7 @@ struct netvsc_device_info { }; /* Interface */ -int netvsc_initialize(struct driver_context *drv); +int netvsc_initialize(struct hyperv_driver *drv); int rndis_filter_open(struct hyperv_device *dev); int rndis_filter_close(struct hyperv_device *dev);...
2011 Feb 26
1
[PATCH 4/6] Staging: hv: Unify the hyperv driver abstractions
...index e43ff7b..842f542 100644 --- a/drivers/staging/hv/netvsc_api.h +++ b/drivers/staging/hv/netvsc_api.h @@ -84,7 +84,7 @@ struct hv_netvsc_packet { struct netvsc_driver { /* Must be the first field */ /* Which is a bug FIXME! */ - struct hv_driver base; + struct driver_context base; u32 ring_buf_size; u32 req_ext_size; @@ -109,7 +109,7 @@ struct netvsc_device_info { }; /* Interface */ -int netvsc_initialize(struct hv_driver *drv); +int netvsc_initialize(struct driver_context *drv); int rndis_filter_open(struct hyperv_device *dev); int rndis_filter_close(struct hyperv_device *dev); dif...
2011 Feb 26
1
[PATCH 4/6] Staging: hv: Unify the hyperv driver abstractions
...index e43ff7b..842f542 100644 --- a/drivers/staging/hv/netvsc_api.h +++ b/drivers/staging/hv/netvsc_api.h @@ -84,7 +84,7 @@ struct hv_netvsc_packet { struct netvsc_driver { /* Must be the first field */ /* Which is a bug FIXME! */ - struct hv_driver base; + struct driver_context base; u32 ring_buf_size; u32 req_ext_size; @@ -109,7 +109,7 @@ struct netvsc_device_info { }; /* Interface */ -int netvsc_initialize(struct hv_driver *drv); +int netvsc_initialize(struct driver_context *drv); int rndis_filter_open(struct hyperv_device *dev); int rndis_filter_close(struct hyperv_device *dev); dif...
2011 Feb 26
2
[PATCH 6/6] Staging: hv: Cleanup hyperv_driver variable names
...drv_exit(void) static int netvsc_drv_init(int (*drv_init)(struct hyperv_driver *drv)) { struct netvsc_driver *net_drv_obj = &g_netvsc_drv.drv_obj; - struct hyperv_driver *drv_ctx = &g_netvsc_drv.drv_ctx; + struct hyperv_driver *drv = &g_netvsc_drv.drv; int ret; net_drv_obj->ring_buf_size = ring_size * PAGE_SIZE; @@ -503,15 +503,15 @@ static int netvsc_drv_init(int (*drv_init)(struct hyperv_driver *drv)) /* Callback to client driver to complete the initialization */ drv_init(&net_drv_obj->base); - drv_ctx->driver.name = net_drv_obj->base.name; - memcpy(&drv_ct...
2011 Feb 26
2
[PATCH 6/6] Staging: hv: Cleanup hyperv_driver variable names
...drv_exit(void) static int netvsc_drv_init(int (*drv_init)(struct hyperv_driver *drv)) { struct netvsc_driver *net_drv_obj = &g_netvsc_drv.drv_obj; - struct hyperv_driver *drv_ctx = &g_netvsc_drv.drv_ctx; + struct hyperv_driver *drv = &g_netvsc_drv.drv; int ret; net_drv_obj->ring_buf_size = ring_size * PAGE_SIZE; @@ -503,15 +503,15 @@ static int netvsc_drv_init(int (*drv_init)(struct hyperv_driver *drv)) /* Callback to client driver to complete the initialization */ drv_init(&net_drv_obj->base); - drv_ctx->driver.name = net_drv_obj->base.name; - memcpy(&drv_ct...
2011 Feb 11
1
[PATCH 2/3]: Staging: hv: Use native wait primitives
..._list); } - net_device->channel_init_event = osd_waitevent_create(); - if (!net_device->channel_init_event) { - ret = -ENOMEM; - goto Cleanup; - } + init_waitqueue_head(&net_device->channel_init_wait); /* Open the channel */ ret = vmbus_open(device->channel, net_driver->ring_buf_size, @@ -755,7 +759,7 @@ static int netvsc_device_add(struct hv_device *device, void *additional_info) if (ret != 0) { DPRINT_ERR(NETVSC, "unable to open channel: %d", ret); ret = -1; - goto Cleanup; + goto cleanup; } /* Channel is opened */ @@ -778,11 +782,9 @@ close: /* No...
2011 Feb 11
1
[PATCH 2/3]: Staging: hv: Use native wait primitives
..._list); } - net_device->channel_init_event = osd_waitevent_create(); - if (!net_device->channel_init_event) { - ret = -ENOMEM; - goto Cleanup; - } + init_waitqueue_head(&net_device->channel_init_wait); /* Open the channel */ ret = vmbus_open(device->channel, net_driver->ring_buf_size, @@ -755,7 +759,7 @@ static int netvsc_device_add(struct hv_device *device, void *additional_info) if (ret != 0) { DPRINT_ERR(NETVSC, "unable to open channel: %d", ret); ret = -1; - goto Cleanup; + goto cleanup; } /* Channel is opened */ @@ -778,11 +782,9 @@ close: /* No...
2011 Feb 24
4
[PATCH ] Staging: hv: Hyper-V driver cleanup
...ist_head list_ent; - struct hv_device *device; + struct hyperv_device *device; bool is_data_pkt; /* @@ -84,7 +84,7 @@ struct hv_netvsc_packet { struct netvsc_driver { /* Must be the first field */ /* Which is a bug FIXME! */ - struct hv_driver base; + struct hyperv_driver base; u32 ring_buf_size; u32 req_ext_size; @@ -93,12 +93,12 @@ struct netvsc_driver { * This is set by the caller to allow us to callback when we * receive a packet from the "wire" */ - int (*recv_cb)(struct hv_device *dev, + int (*recv_cb)(struct hyperv_device *dev, struct hv_netvsc_packet *pac...
2011 Feb 24
4
[PATCH ] Staging: hv: Hyper-V driver cleanup
...ist_head list_ent; - struct hv_device *device; + struct hyperv_device *device; bool is_data_pkt; /* @@ -84,7 +84,7 @@ struct hv_netvsc_packet { struct netvsc_driver { /* Must be the first field */ /* Which is a bug FIXME! */ - struct hv_driver base; + struct hyperv_driver base; u32 ring_buf_size; u32 req_ext_size; @@ -93,12 +93,12 @@ struct netvsc_driver { * This is set by the caller to allow us to callback when we * receive a packet from the "wire" */ - int (*recv_cb)(struct hv_device *dev, + int (*recv_cb)(struct hyperv_device *dev, struct hv_netvsc_packet *pac...
2011 Apr 26
29
[PATCH 00/25] Staging: hv: Cleanup vmbus driver code
This patch-set addresses some of the bus/driver model cleanup that Greg sugested over the last couple of days. In this patch-set we deal with the following issues: 1) Cleanup unnecessary state in struct hv_device and struct hv_driver to be compliant with the Linux Driver model. 2) Cleanup the vmbus_match() function to conform with the Linux Driver model. 3) Cleanup error
2011 Apr 26
29
[PATCH 00/25] Staging: hv: Cleanup vmbus driver code
This patch-set addresses some of the bus/driver model cleanup that Greg sugested over the last couple of days. In this patch-set we deal with the following issues: 1) Cleanup unnecessary state in struct hv_device and struct hv_driver to be compliant with the Linux Driver model. 2) Cleanup the vmbus_match() function to conform with the Linux Driver model. 3) Cleanup error