Lines Matching +full:0 +full:us

17 #define SWIMS_USB_REQUEST_SetSwocMode	0x0B
18 #define SWIMS_USB_REQUEST_GetSwocInfo 0x0A
19 #define SWIMS_USB_INDEX_SetMode 0x0000
20 #define SWIMS_SET_MODE_Modem 0x0001
22 #define TRU_NORMAL 0x01
23 #define TRU_FORCE_MS 0x02
24 #define TRU_FORCE_MODEM 0x03
41 if ((swocInfo->LinuxSKU >= 0x2100 && swocInfo->LinuxSKU <= 0x2FFF) || in containsFullLinuxPackage()
42 (swocInfo->LinuxSKU >= 0x7100 && swocInfo->LinuxSKU <= 0x7FFF)) in containsFullLinuxPackage()
52 result = usb_control_msg(udev, usb_sndctrlpipe(udev, 0), in sierra_set_ms_mode()
56 0x0000, /* __u16 index */ in sierra_set_ms_mode()
58 0, /* __u16 size */ in sierra_set_ms_mode()
71 result = usb_control_msg(udev, usb_rcvctrlpipe(udev, 0), in sierra_get_swoc_info()
74 0, /* __u16 value */ in sierra_get_swoc_info()
75 0, /* __u16 index */ in sierra_get_swoc_info()
109 if (result < 0) { in truinst_show()
127 int sierra_ms_init(struct us_data *us) in sierra_ms_init() argument
133 udev = us->pusb_dev; in sierra_ms_init()
137 usb_stor_dbg(us, "SWIMS: Forcing Modem Mode\n"); in sierra_ms_init()
139 if (result < 0) in sierra_ms_init()
140 usb_stor_dbg(us, "SWIMS: Failed to switch to modem mode\n"); in sierra_ms_init()
145 usb_stor_dbg(us, "SWIMS: Forcing Mass Storage Mode\n"); in sierra_ms_init()
150 usb_stor_dbg(us, "SWIMS: Normal SWoC Logic\n"); in sierra_ms_init()
161 if (result < 0) { in sierra_ms_init()
162 usb_stor_dbg(us, "SWIMS: Failed SWoC query\n"); in sierra_ms_init()
165 } while (retries && result < 0); in sierra_ms_init()
167 if (result < 0) { in sierra_ms_init()
168 usb_stor_dbg(us, "SWIMS: Completely failed SWoC query\n"); in sierra_ms_init()
173 debug_swoc(&us->pusb_dev->dev, swocInfo); in sierra_ms_init()
180 usb_stor_dbg(us, "SWIMS: Switching to Modem Mode\n"); in sierra_ms_init()
183 if (result < 0) in sierra_ms_init()
184 usb_stor_dbg(us, "SWIMS: Failed to switch modem\n"); in sierra_ms_init()
191 return device_create_file(&us->pusb_intf->dev, &dev_attr_truinst); in sierra_ms_init()