Lines Matching +full:0 +full:us

19 #define ZCD_FORCE_MODEM			0x01
20 #define ZCD_ALLOW_MS 0x02
29 static int option_rezero(struct us_data *us) in option_rezero() argument
32 0x55, 0x53, 0x42, 0x43, 0x78, 0x56, 0x34, 0x12, in option_rezero()
33 0x01, 0x00, 0x00, 0x00, 0x80, 0x00, 0x06, 0x01, in option_rezero()
34 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, in option_rezero()
35 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 in option_rezero()
40 usb_stor_dbg(us, "Option MS: %s\n", "DEVICE MODE SWITCH"); in option_rezero()
47 result = usb_stor_bulk_transfer_buf(us, in option_rezero()
48 us->send_bulk_pipe, in option_rezero()
59 usb_stor_bulk_transfer_buf(us, in option_rezero()
60 us->recv_bulk_pipe, in option_rezero()
64 usb_stor_bulk_transfer_buf(us, in option_rezero()
65 us->recv_bulk_pipe, in option_rezero()
75 static int option_inquiry(struct us_data *us) in option_inquiry() argument
78 0x55, 0x53, 0x42, 0x43, 0x12, 0x34, 0x56, 0x78, in option_inquiry()
79 0x24, 0x00, 0x00, 0x00, 0x80, 0x00, 0x06, 0x12, in option_inquiry()
80 0x00, 0x00, 0x00, 0x24, 0x00, 0x00, 0x00, 0x00, in option_inquiry()
81 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 in option_inquiry()
86 usb_stor_dbg(us, "Option MS: %s\n", "device inquiry for vendor name"); in option_inquiry()
88 buffer = kzalloc(0x24, GFP_KERNEL); in option_inquiry()
93 result = usb_stor_bulk_transfer_buf(us, in option_inquiry()
94 us->send_bulk_pipe, in option_inquiry()
101 result = usb_stor_bulk_transfer_buf(us, in option_inquiry()
102 us->recv_bulk_pipe, in option_inquiry()
103 buffer, 0x24, NULL); in option_inquiry()
111 if (result != 0) in option_inquiry()
115 usb_stor_bulk_transfer_buf(us, in option_inquiry()
116 us->recv_bulk_pipe, in option_inquiry()
125 int option_ms_init(struct us_data *us) in option_ms_init() argument
129 usb_stor_dbg(us, "Option MS: %s\n", "option_ms_init called"); in option_ms_init()
135 result = option_inquiry(us); in option_ms_init()
136 if (result != 0) { in option_ms_init()
137 usb_stor_dbg(us, "Option MS: %s\n", in option_ms_init()
139 return 0; in option_ms_init()
141 usb_stor_dbg(us, "Option MS: %s\n", in option_ms_init()
146 usb_stor_dbg(us, "Option MS: %s\n", "Forcing Modem Mode"); in option_ms_init()
147 result = option_rezero(us); in option_ms_init()
149 usb_stor_dbg(us, "Option MS: %s\n", in option_ms_init()
154 usb_stor_dbg(us, "Option MS: %s\n", in option_ms_init()
158 return 0; in option_ms_init()