• Home
  • Raw
  • Download

Lines Matching refs:result

92 	int result;  in i2400mu_tx_bulk_out()  local
98 result = usb_autopm_get_interface(i2400mu->usb_iface); in i2400mu_tx_bulk_out()
99 if (result < 0) { in i2400mu_tx_bulk_out()
100 dev_err(dev, "BM-CMD: can't get autopm: %d\n", result); in i2400mu_tx_bulk_out()
106 result = usb_bulk_msg(i2400mu->usb_dev, pipe, buf, buf_size, &len, 200); in i2400mu_tx_bulk_out()
107 switch (result) { in i2400mu_tx_bulk_out()
112 result = -EIO; in i2400mu_tx_bulk_out()
115 result = len; in i2400mu_tx_bulk_out()
144 result = -ESHUTDOWN; in i2400mu_tx_bulk_out()
154 result = -ENODEV; in i2400mu_tx_bulk_out()
158 result); in i2400mu_tx_bulk_out()
163 return result; in i2400mu_tx_bulk_out()
185 ssize_t result; in i2400mu_bus_bm_cmd_send() local
194 result = -E2BIG; in i2400mu_bus_bm_cmd_send()
207 result = i2400mu_tx_bulk_out(i2400mu, i2400m->bm_cmd_buf, cmd_size); in i2400mu_bus_bm_cmd_send()
208 if (result < 0) { in i2400mu_bus_bm_cmd_send()
210 opcode, result); in i2400mu_bus_bm_cmd_send()
213 if (result != cmd_size) { /* all was transferred? */ in i2400mu_bus_bm_cmd_send()
215 "(%zd vs %zu submitted)\n", opcode, result, cmd_size); in i2400mu_bus_bm_cmd_send()
216 result = -EIO; in i2400mu_bus_bm_cmd_send()
223 i2400m, _cmd, cmd_size, result); in i2400mu_bus_bm_cmd_send()
224 return result; in i2400mu_bus_bm_cmd_send()
280 ssize_t result = -ENOMEM; in i2400mu_bus_bm_wait_for_ack() local
293 result = usb_autopm_get_interface(i2400mu->usb_iface); in i2400mu_bus_bm_wait_for_ack()
294 if (result < 0) { in i2400mu_bus_bm_wait_for_ack()
295 dev_err(dev, "BM-ACK: can't get autopm: %d\n", (int) result); in i2400mu_bus_bm_wait_for_ack()
303 result = i2400mu_notif_submit(i2400mu, &notif_urb, in i2400mu_bus_bm_wait_for_ack()
305 if (result < 0) in i2400mu_bus_bm_wait_for_ack()
310 result = -ETIMEDOUT; in i2400mu_bus_bm_wait_for_ack()
315 result = -EINTR; /* Interrupted */ in i2400mu_bus_bm_wait_for_ack()
319 result = notif_urb.status; /* How was the ack? */ in i2400mu_bus_bm_wait_for_ack()
320 switch (result) { in i2400mu_bus_bm_wait_for_ack()
328 result = -ESHUTDOWN; in i2400mu_bus_bm_wait_for_ack()
348 result = offset; in i2400mu_bus_bm_wait_for_ack()
356 i2400m, ack, ack_size, (long) result); in i2400mu_bus_bm_wait_for_ack()
358 return result; in i2400mu_bus_bm_wait_for_ack()