Lines Matching refs:us
29 static int option_rezero(struct us_data *us) in option_rezero() argument
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
86 usb_stor_dbg(us, "Option MS: %s\n", "device inquiry for vendor name"); 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()
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()
137 usb_stor_dbg(us, "Option MS: %s\n", 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()