Lines Matching refs:swocInfo

39 static bool containsFullLinuxPackage(struct swoc_info *swocInfo)  in containsFullLinuxPackage()  argument
41 if ((swocInfo->LinuxSKU >= 0x2100 && swocInfo->LinuxSKU <= 0x2FFF) || in containsFullLinuxPackage()
42 (swocInfo->LinuxSKU >= 0x7100 && swocInfo->LinuxSKU <= 0x7FFF)) in containsFullLinuxPackage()
65 struct swoc_info *swocInfo) in sierra_get_swoc_info() argument
76 (void *) swocInfo, /* void *data */ in sierra_get_swoc_info()
80 swocInfo->LinuxSKU = le16_to_cpu(swocInfo->LinuxSKU); in sierra_get_swoc_info()
81 swocInfo->LinuxVer = le16_to_cpu(swocInfo->LinuxVer); in sierra_get_swoc_info()
85 static void debug_swoc(const struct device *dev, struct swoc_info *swocInfo) in debug_swoc() argument
87 dev_dbg(dev, "SWIMS: SWoC Rev: %02d\n", swocInfo->rev); in debug_swoc()
88 dev_dbg(dev, "SWIMS: Linux SKU: %04X\n", swocInfo->LinuxSKU); in debug_swoc()
89 dev_dbg(dev, "SWIMS: Linux Version: %04X\n", swocInfo->LinuxVer); in debug_swoc()
96 struct swoc_info *swocInfo; in truinst_show() local
103 swocInfo = kmalloc(sizeof(struct swoc_info), GFP_KERNEL); in truinst_show()
104 if (!swocInfo) { in truinst_show()
108 result = sierra_get_swoc_info(udev, swocInfo); in truinst_show()
111 kfree(swocInfo); in truinst_show()
115 debug_swoc(dev, swocInfo); in truinst_show()
118 swocInfo->rev, in truinst_show()
119 swocInfo->LinuxSKU, in truinst_show()
120 swocInfo->LinuxVer); in truinst_show()
121 kfree(swocInfo); in truinst_show()
130 struct swoc_info *swocInfo; in sierra_ms_init() local
154 swocInfo = kmalloc(sizeof(struct swoc_info), in sierra_ms_init()
156 if (!swocInfo) in sierra_ms_init()
162 result = sierra_get_swoc_info(udev, swocInfo); in sierra_ms_init()
171 kfree(swocInfo); in sierra_ms_init()
175 debug_swoc(&us->pusb_dev->dev, swocInfo); in sierra_ms_init()
181 if (!containsFullLinuxPackage(swocInfo)) { in sierra_ms_init()
187 kfree(swocInfo); in sierra_ms_init()
190 kfree(swocInfo); in sierra_ms_init()