search for: chn_state

Displaying 16 results from an estimated 16 matches for "chn_state".

2011 Sep 02
3
[PATCH] Staging: hv: vmbus: Show the modalias in /sys/bus/vmbus/devices/*/
....b[15]); + } else if (!strcmp(dev_attr->attr.name, "modalias")) { + print_alias_name(hv_dev, alias_name); + return sprintf(buf, "vmbus:%s\n", alias_name); } else if (!strcmp(dev_attr->attr.name, "state")) { return sprintf(buf, "%d\n", device_info.chn_state); } else if (!strcmp(dev_attr->attr.name, "id")) { @@ -204,6 +216,7 @@ static struct device_attribute vmbus_dev __ATTR(class_id, S_IRUGO, vmbus_show_device_attr, NULL), __ATTR(device_id, S_IRUGO, vmbus_show_device_attr, NULL), __ATTR(monitor_id, S_IRUGO, vmbus_show_device_attr,...
2011 Sep 02
3
[PATCH] Staging: hv: vmbus: Show the modalias in /sys/bus/vmbus/devices/*/
....b[15]); + } else if (!strcmp(dev_attr->attr.name, "modalias")) { + print_alias_name(hv_dev, alias_name); + return sprintf(buf, "vmbus:%s\n", alias_name); } else if (!strcmp(dev_attr->attr.name, "state")) { return sprintf(buf, "%d\n", device_info.chn_state); } else if (!strcmp(dev_attr->attr.name, "id")) { @@ -204,6 +216,7 @@ static struct device_attribute vmbus_dev __ATTR(class_id, S_IRUGO, vmbus_show_device_attr, NULL), __ATTR(device_id, S_IRUGO, vmbus_show_device_attr, NULL), __ATTR(monitor_id, S_IRUGO, vmbus_show_device_attr,...
2011 Mar 15
16
[PATCH 00/12] Staging: hv: Cleanup vmbus driver - Phase II
This patch-set fixes the following issues in the vmbus driver (vmbus_drv.c): Make vmbus driver a platform pci device and cleanup root device management and irq allocation (patches 1/12 through 3/12): 1) Make vmbus driver a platform pci driver. 2) Cleanup root device management. 3) Leverage the pci model for allocating irq. General cleanup of vmbus driver (patches 4/12 though 12/12): 1)
2011 Mar 15
16
[PATCH 00/12] Staging: hv: Cleanup vmbus driver - Phase II
This patch-set fixes the following issues in the vmbus driver (vmbus_drv.c): Make vmbus driver a platform pci device and cleanup root device management and irq allocation (patches 1/12 through 3/12): 1) Make vmbus driver a platform pci driver. 2) Cleanup root device management. 3) Leverage the pci model for allocating irq. General cleanup of vmbus driver (patches 4/12 though 12/12): 1)
2011 Aug 25
56
[PATCH 0000/0059] Staging: hv: Driver cleanup
Further cleanup of the hv drivers. 1) Implement code for autoloading the vmbus drivers without using PCI or DMI signatures. I have implemented this based on Greg's feedback on my earlier implementation. 2) Cleanup error handling across the board and use standard Linux error codes. 3) General cleanup Regards, K. Y
2011 Aug 25
56
[PATCH 0000/0059] Staging: hv: Driver cleanup
Further cleanup of the hv drivers. 1) Implement code for autoloading the vmbus drivers without using PCI or DMI signatures. I have implemented this based on Greg's feedback on my earlier implementation. 2) Cleanup error handling across the board and use standard Linux error codes. 3) General cleanup Regards, K. Y
2011 Sep 08
25
[PATCH 0000/0025] Staging: hv: Driver cleanup
Address Greg's VmBus audit comments: 1) Leverage driver_data field in struct hv_vmbus_device_id to simplify driver code. 2) Make the util driver conform to the Linux Driver Model. 3) Get rid of the ext field in struct hv_device by using the driver specific data functionality. 4) Other general cleanup. Regards, K. Y
2011 Sep 08
25
[PATCH 0000/0025] Staging: hv: Driver cleanup
Address Greg's VmBus audit comments: 1) Leverage driver_data field in struct hv_vmbus_device_id to simplify driver code. 2) Make the util driver conform to the Linux Driver Model. 3) Get rid of the ext field in struct hv_device by using the driver specific data functionality. 4) Other general cleanup. Regards, K. Y
2011 Feb 26
1
[PATCH 2/6] Staging: hv: Rename vm_device to hyperv_device
...hv_multipage_buffer { #pragma pack(pop) struct hv_driver; -struct vm_device; +struct hyperv_device; struct hv_dev_port_info { u32 int_mask; @@ -66,7 +66,7 @@ struct hv_dev_port_info { u32 bytes_avail_towrite; }; -struct vm_device_info { +struct hyperv_device_info { u32 chn_id; u32 chn_state; struct hv_guid chn_type; @@ -91,8 +91,8 @@ struct hv_driver { /* the device type supported by this driver */ struct hv_guid class_id; - int (*dev_add)(struct vm_device *device, void *data); - int (*dev_rm)(struct vm_device *device); + int (*dev_add)(struct hyperv_device *device, void *data...
2011 Feb 26
1
[PATCH 2/6] Staging: hv: Rename vm_device to hyperv_device
...hv_multipage_buffer { #pragma pack(pop) struct hv_driver; -struct vm_device; +struct hyperv_device; struct hv_dev_port_info { u32 int_mask; @@ -66,7 +66,7 @@ struct hv_dev_port_info { u32 bytes_avail_towrite; }; -struct vm_device_info { +struct hyperv_device_info { u32 chn_id; u32 chn_state; struct hv_guid chn_type; @@ -91,8 +91,8 @@ struct hv_driver { /* the device type supported by this driver */ struct hv_guid class_id; - int (*dev_add)(struct vm_device *device, void *data); - int (*dev_rm)(struct vm_device *device); + int (*dev_add)(struct hyperv_device *device, void *data...
2011 Jul 15
122
[PATCH 0000/0117] Staging: hv: Driver cleanup
Further cleanup of the hv drivers. Back in June I had sent two patch sets to address these issues. I have addressed the comments I got from the community on my earlier patches here: 1) Implement code for autoloading the vmbus drivers without using PCI or DMI signatures. I have implemented this based on Greg's feedback on my earlier implementation. 2) Cleanup error handling across
2011 Jul 15
122
[PATCH 0000/0117] Staging: hv: Driver cleanup
Further cleanup of the hv drivers. Back in June I had sent two patch sets to address these issues. I have addressed the comments I got from the community on my earlier patches here: 1) Implement code for autoloading the vmbus drivers without using PCI or DMI signatures. I have implemented this based on Greg's feedback on my earlier implementation. 2) Cleanup error handling across
2011 Feb 26
5
[PATCH 1/6] Staging: hv: Unify hyper-v device abstractions
...struct hv_multipage_buffer { #pragma pack(pop) struct hv_driver; -struct hv_device; +struct vm_device; struct hv_dev_port_info { u32 int_mask; @@ -66,7 +66,7 @@ struct hv_dev_port_info { u32 bytes_avail_towrite; }; -struct hv_device_info { +struct vm_device_info { u32 chn_id; u32 chn_state; struct hv_guid chn_type; @@ -89,30 +89,11 @@ struct hv_driver { const char *name; /* the device type supported by this driver */ - struct hv_guid dev_type; + struct hv_guid class_id; - int (*dev_add)(struct hv_device *device, void *data); - int (*dev_rm)(struct hv_device *device); + int...
2011 Feb 26
5
[PATCH 1/6] Staging: hv: Unify hyper-v device abstractions
...struct hv_multipage_buffer { #pragma pack(pop) struct hv_driver; -struct hv_device; +struct vm_device; struct hv_dev_port_info { u32 int_mask; @@ -66,7 +66,7 @@ struct hv_dev_port_info { u32 bytes_avail_towrite; }; -struct hv_device_info { +struct vm_device_info { u32 chn_id; u32 chn_state; struct hv_guid chn_type; @@ -89,30 +89,11 @@ struct hv_driver { const char *name; /* the device type supported by this driver */ - struct hv_guid dev_type; + struct hv_guid class_id; - int (*dev_add)(struct hv_device *device, void *data); - int (*dev_rm)(struct hv_device *device); + int...
2011 Feb 24
4
[PATCH ] Staging: hv: Hyper-V driver cleanup
...#pragma pack(pop) -struct hv_driver; -struct hv_device; +struct hyperv_driver; +struct hyperv_device; struct hv_dev_port_info { u32 int_mask; @@ -66,7 +66,7 @@ struct hv_dev_port_info { u32 bytes_avail_towrite; }; -struct hv_device_info { +struct hyperv_device_info { u32 chn_id; u32 chn_state; struct hv_guid chn_type; @@ -84,35 +84,4 @@ struct hv_device_info { struct hv_dev_port_info outbound; }; -/* Base driver object */ -struct hv_driver { - const char *name; - - /* the device type supported by this driver */ - struct hv_guid dev_type; - - int (*dev_add)(struct hv_device *devic...
2011 Feb 24
4
[PATCH ] Staging: hv: Hyper-V driver cleanup
...#pragma pack(pop) -struct hv_driver; -struct hv_device; +struct hyperv_driver; +struct hyperv_device; struct hv_dev_port_info { u32 int_mask; @@ -66,7 +66,7 @@ struct hv_dev_port_info { u32 bytes_avail_towrite; }; -struct hv_device_info { +struct hyperv_device_info { u32 chn_id; u32 chn_state; struct hv_guid chn_type; @@ -84,35 +84,4 @@ struct hv_device_info { struct hv_dev_port_info outbound; }; -/* Base driver object */ -struct hv_driver { - const char *name; - - /* the device type supported by this driver */ - struct hv_guid dev_type; - - int (*dev_add)(struct hv_device *devic...