• Home
  • Raw
  • Download

Lines Matching refs:result

78 	int result;  in __hwahc_set_cluster_id()  local
83 result = usb_control_msg(wa->usb_dev, usb_sndctrlpipe(wa->usb_dev, 0), in __hwahc_set_cluster_id()
89 if (result < 0) in __hwahc_set_cluster_id()
91 cluster_id, result); in __hwahc_set_cluster_id()
95 return result; in __hwahc_set_cluster_id()
119 int result; in hwahc_op_reset() local
126 result = __wa_set_feature(&hwahc->wa, WA_RESET); in hwahc_op_reset()
127 if (result < 0) { in hwahc_op_reset()
128 dev_err(dev, "error commanding HC to reset: %d\n", result); in hwahc_op_reset()
131 result = __wa_wait_status(&hwahc->wa, WA_STATUS_RESETTING, 0); in hwahc_op_reset()
132 if (result < 0) { in hwahc_op_reset()
133 dev_err(dev, "error waiting for HC to reset: %d\n", result); in hwahc_op_reset()
138 return result; in hwahc_op_reset()
147 int result; in hwahc_op_start() local
151 result = -ENOSPC; in hwahc_op_start()
156 result = __hwahc_set_cluster_id(hwahc, addr); in hwahc_op_start()
157 if (result < 0) in hwahc_op_start()
170 result = 0; in hwahc_op_start()
173 return result; in hwahc_op_start()
245 int result; in __hwahc_op_wusbhc_start() local
249 result = __wa_set_feature(&hwahc->wa, WA_ENABLE); in __hwahc_op_wusbhc_start()
250 if (result < 0) { in __hwahc_op_wusbhc_start()
251 dev_err(dev, "error commanding HC to start: %d\n", result); in __hwahc_op_wusbhc_start()
254 result = __wa_wait_status(&hwahc->wa, WA_ENABLE, WA_ENABLE); in __hwahc_op_wusbhc_start()
255 if (result < 0) { in __hwahc_op_wusbhc_start()
256 dev_err(dev, "error waiting for HC to start: %d\n", result); in __hwahc_op_wusbhc_start()
259 result = wa_nep_arm(&hwahc->wa, GFP_KERNEL); in __hwahc_op_wusbhc_start()
260 if (result < 0) { in __hwahc_op_wusbhc_start()
261 dev_err(dev, "cannot listen to notifications: %d\n", result); in __hwahc_op_wusbhc_start()
273 result = usb_control_msg(hwahc->wa.usb_dev, in __hwahc_op_wusbhc_start()
287 if (result == 0) in __hwahc_op_wusbhc_start()
288 result = wa_dti_start(&hwahc->wa); in __hwahc_op_wusbhc_start()
290 result = 0; /* OK. Continue normally. */ in __hwahc_op_wusbhc_start()
292 if (result < 0) { in __hwahc_op_wusbhc_start()
293 dev_err(dev, "cannot start DTI: %d\n", result); in __hwahc_op_wusbhc_start()
298 return result; in __hwahc_op_wusbhc_start()
304 return result; in __hwahc_op_wusbhc_start()
336 int result; in __hwahc_op_bwa_set() local
343 result = usb_control_msg(wa->usb_dev, usb_sndctrlpipe(wa->usb_dev, 0), in __hwahc_op_bwa_set()
349 if (result < 0) { in __hwahc_op_bwa_set()
350 dev_err(dev, "Cannot set WUSB stream index: %d\n", result); in __hwahc_op_bwa_set()
355 result = usb_control_msg(wa->usb_dev, usb_sndctrlpipe(wa->usb_dev, 0), in __hwahc_op_bwa_set()
360 if (result < 0) in __hwahc_op_bwa_set()
361 dev_err(dev, "Cannot set WUSB MAS allocation: %d\n", result); in __hwahc_op_bwa_set()
363 return result; in __hwahc_op_bwa_set()
469 int result = -ENOMEM; in __hwahc_dev_set_key() local
488 result = usb_control_msg(wa->usb_dev, usb_sndctrlpipe(wa->usb_dev, 0), in __hwahc_dev_set_key()
496 return result; in __hwahc_dev_set_key()
509 int result = -ENOMEM; in __hwahc_op_set_ptk() local
520 result = __hwahc_dev_set_key(wusbhc, port_idx, tkid, in __hwahc_op_set_ptk()
522 if (result < 0) in __hwahc_op_set_ptk()
531 result = usb_control_msg(wa->usb_dev, usb_sndctrlpipe(wa->usb_dev, 0), in __hwahc_op_set_ptk()
536 if (result < 0) in __hwahc_op_set_ptk()
540 wusbhc->ccm1_etd->bEncryptionValue, result); in __hwahc_op_set_ptk()
542 return result; in __hwahc_op_set_ptk()
568 int result; in wa_fill_descr() local
596 result = -EINVAL; in wa_fill_descr()
612 result = 0; in wa_fill_descr()
614 return result; in wa_fill_descr()
638 int result; in hwahc_security_create() local
655 result = __usb_get_extra_descriptor(usb_dev->rawdescriptors[index], in hwahc_security_create()
658 if (result == -1) { in hwahc_security_create()
720 int result; in hwahc_create() local
732 result = wa_fill_descr(wa); /* Get the device descriptor */ in hwahc_create()
733 if (result < 0) in hwahc_create()
752 result = hwahc_security_create(hwahc); in hwahc_create()
753 if (result < 0) { in hwahc_create()
754 dev_err(dev, "Can't initialize security: %d\n", result); in hwahc_create()
758 result = wusbhc_create(&hwahc->wusbhc); in hwahc_create()
759 if (result < 0) { in hwahc_create()
760 dev_err(dev, "Can't create WUSB HC structures: %d\n", result); in hwahc_create()
763 result = wa_create(&hwahc->wa, iface, quirks); in hwahc_create()
764 if (result < 0) in hwahc_create()
776 return result; in hwahc_create()
802 int result; in hwahc_probe() local
808 result = -ENOMEM; in hwahc_probe()
819 result = hwahc_create(hwahc, usb_iface, id->driver_info); in hwahc_probe()
820 if (result < 0) { in hwahc_probe()
821 dev_err(dev, "Cannot initialize internals: %d\n", result); in hwahc_probe()
824 result = usb_add_hcd(usb_hcd, 0, 0); in hwahc_probe()
825 if (result < 0) { in hwahc_probe()
826 dev_err(dev, "Cannot add HCD: %d\n", result); in hwahc_probe()
830 result = wusbhc_b_create(&hwahc->wusbhc); in hwahc_probe()
831 if (result < 0) { in hwahc_probe()
832 dev_err(dev, "Cannot setup phase B of WUSBHC: %d\n", result); in hwahc_probe()
844 return result; in hwahc_probe()