Lines Matching full:hdl
228 iwmbt_patch_firmware(libusb_device_handle *hdl, const char *firmware_path) in iwmbt_patch_firmware() argument
242 ret = iwmbt_patch_fwfile(hdl, &fw); in iwmbt_patch_firmware()
253 iwmbt_init_firmware(libusb_device_handle *hdl, const char *firmware_path, in iwmbt_init_firmware() argument
326 ret = iwmbt_load_rsa_header(hdl, &fw); in iwmbt_init_firmware()
328 ret = iwmbt_load_ecdsa_header(hdl, &fw); in iwmbt_init_firmware()
333 ret = iwmbt_load_fwfile(hdl, &fw, boot_param, header_len); in iwmbt_init_firmware()
343 iwmbt_init_ddc(libusb_device_handle *hdl, const char *ddc_path) in iwmbt_init_ddc() argument
357 ret = iwmbt_load_ddc(hdl, &ddc); in iwmbt_init_ddc()
407 libusb_device_handle *hdl = NULL; in main() local
475 r = libusb_open(dev, &hdl); in main()
482 r = libusb_kernel_driver_active(hdl, 0); in main()
496 r = iwmbt_get_version(hdl, &ver); in main()
522 r = iwmbt_enter_manufacturer(hdl); in main()
529 r = iwmbt_patch_firmware(hdl, firmware_path); in main()
532 (void)iwmbt_exit_manufacturer(hdl, 0x01); in main()
539 r = iwmbt_exit_manufacturer(hdl, r == 0 ? 0x00 : 0x02); in main()
549 r = iwmbt_get_version(hdl, &ver); in main()
554 if (iwmbt_enter_manufacturer(hdl) < 0) in main()
556 r = iwmbt_set_event_mask(hdl); in main()
559 (void)iwmbt_exit_manufacturer(hdl, 0x00); in main()
564 r = iwmbt_get_version(hdl, &ver); in main()
585 r = iwmbt_get_boot_params(hdl, ¶ms); in main()
610 r = iwmbt_init_firmware(hdl, firmware_path, &boot_param, 0, 0); in main()
617 r = iwmbt_intel_reset(hdl, boot_param); in main()
629 r = iwmbt_get_version(hdl, &ver); in main()
637 r = iwmbt_init_ddc(hdl, firmware_path); in main()
644 r = iwmbt_set_event_mask(hdl); in main()
651 r = iwmbt_get_version_tlv(hdl, &ver_tlv); in main()
696 r = iwmbt_init_firmware(hdl, firmware_path, &boot_param, in main()
702 r = iwmbt_intel_reset(hdl, boot_param); in main()
714 r = iwmbt_get_version(hdl, &ver); in main()
722 r = iwmbt_init_ddc(hdl, firmware_path); in main()
729 r = iwmbt_set_event_mask(hdl); in main()
739 r = libusb_reset_device(hdl); in main()
748 if (hdl != NULL) in main()
749 libusb_close(hdl); in main()