Searched refs:swocInfo (Results 1 - 1 of 1) sorted by relevance

/linux-4.1.27/drivers/usb/storage/
H A Dsierra_ms.c38 static bool containsFullLinuxPackage(struct swoc_info *swocInfo) containsFullLinuxPackage() argument
40 if ((swocInfo->LinuxSKU >= 0x2100 && swocInfo->LinuxSKU <= 0x2FFF) || containsFullLinuxPackage()
41 (swocInfo->LinuxSKU >= 0x7100 && swocInfo->LinuxSKU <= 0x7FFF)) containsFullLinuxPackage()
64 struct swoc_info *swocInfo) sierra_get_swoc_info()
75 (void *) swocInfo, /* void *data */ sierra_get_swoc_info()
79 swocInfo->LinuxSKU = le16_to_cpu(swocInfo->LinuxSKU); sierra_get_swoc_info()
80 swocInfo->LinuxVer = le16_to_cpu(swocInfo->LinuxVer); sierra_get_swoc_info()
84 static void debug_swoc(const struct device *dev, struct swoc_info *swocInfo) debug_swoc() argument
86 dev_dbg(dev, "SWIMS: SWoC Rev: %02d\n", swocInfo->rev); debug_swoc()
87 dev_dbg(dev, "SWIMS: Linux SKU: %04X\n", swocInfo->LinuxSKU); debug_swoc()
88 dev_dbg(dev, "SWIMS: Linux Version: %04X\n", swocInfo->LinuxVer); debug_swoc()
95 struct swoc_info *swocInfo; show_truinst() local
102 swocInfo = kmalloc(sizeof(struct swoc_info), GFP_KERNEL); show_truinst()
103 if (!swocInfo) { show_truinst()
107 result = sierra_get_swoc_info(udev, swocInfo); show_truinst()
110 kfree(swocInfo); show_truinst()
114 debug_swoc(dev, swocInfo); show_truinst()
117 swocInfo->rev, show_truinst()
118 swocInfo->LinuxSKU, show_truinst()
119 swocInfo->LinuxVer); show_truinst()
120 kfree(swocInfo); show_truinst()
129 struct swoc_info *swocInfo; sierra_ms_init() local
157 swocInfo = kmalloc(sizeof(struct swoc_info), sierra_ms_init()
159 if (!swocInfo) sierra_ms_init()
165 result = sierra_get_swoc_info(udev, swocInfo); sierra_ms_init()
174 kfree(swocInfo); sierra_ms_init()
178 debug_swoc(&us->pusb_dev->dev, swocInfo); sierra_ms_init()
183 if (!containsFullLinuxPackage(swocInfo)) { sierra_ms_init()
189 kfree(swocInfo); sierra_ms_init()
192 kfree(swocInfo); sierra_ms_init()
63 sierra_get_swoc_info(struct usb_device *udev, struct swoc_info *swocInfo) sierra_get_swoc_info() argument

Completed in 106 milliseconds