Lines Matching refs:result
87 int result;
91 result = wusbhc->set_gtk(wusbhc, wusbhc->gtk_tkid,
93 if (result < 0)
95 result);
97 return result;
133 int result;
143 result = usb_control_msg(usb_dev, usb_sndctrlpipe(usb_dev, 0),
147 if (result < 0)
151 wusb_dev->ccm1_etd.bEncryptionValue, result);
152 return result;
177 int result, bytes, secd_size;
186 result = -ENOMEM;
190 result = usb_get_descriptor(usb_dev, USB_DT_SECURITY,
192 if (result < sizeof(*secd)) {
194 "not enough data: %d\n", result);
203 result = usb_get_descriptor(usb_dev, USB_DT_SECURITY,
205 if (result < secd_size) {
207 "not enough data: %d\n", result);
212 top = (void *)secd + result;
240 result = -EINVAL;
247 result = 0;
250 return result;
269 int result = -ENOMEM;
275 result = usb_control_msg(usb_dev, usb_sndctrlpipe(usb_dev, 0),
278 if (result < 0) {
280 result);
283 result = wusb_set_dev_addr(wusbhc, wusb_dev, 0);
284 if (result < 0)
290 result = usb_control_msg(usb_dev, usb_sndctrlpipe(usb_dev, 0),
294 if (result < 0) {
296 new_address, result);
299 result = wusb_set_dev_addr(wusbhc, wusb_dev, new_address);
300 if (result < 0)
307 return result;
317 int result = -ENOMEM;
336 result = wusb_dev_set_encryption(usb_dev, 1);
337 if (result < 0)
351 result = usb_control_msg(
356 if (result < 0) {
357 dev_err(dev, "Handshake1: request failed: %d\n", result);
362 result = usb_control_msg(
367 if (result < 0) {
368 dev_err(dev, "Handshake2: request failed: %d\n", result);
372 result = -EINVAL;
405 result = wusb_key_derive(&keydvt_out, ck->data, &ccm_n, &keydvt_in);
406 if (result < 0) {
408 result);
413 result = wusb_oob_mic(mic, keydvt_out.kck, &ccm_n, &hs[1]);
414 if (result < 0) {
416 result);
432 result = wusb_oob_mic(hs[2].MIC, keydvt_out.kck, &ccm_n, &hs[2]);
433 if (result < 0) {
435 result);
439 result = usb_control_msg(
444 if (result < 0) {
445 dev_err(dev, "Handshake3: request failed: %d\n", result);
449 result = wusbhc->set_ptk(wusbhc, wusb_dev->port_idx, tkid,
451 if (result < 0)
454 result = wusb_dev_set_gtk(wusbhc, wusb_dev);
455 if (result < 0) {
457 result);
463 result = wusb_dev_update_address(wusbhc, wusb_dev);
464 if (result < 0)
467 result = 0;
481 if (result < 0)
486 return result;