Lines Matching refs:udev
196 struct usb_device *udev; in if_usb_probe() local
204 udev = interface_to_usbdev(intf); in if_usb_probe()
213 cardp->udev = udev; in if_usb_probe()
217 lbs_deb_usbd(&udev->dev, "bcdUSB = 0x%X bDeviceClass = 0x%X" in if_usb_probe()
219 le16_to_cpu(udev->descriptor.bcdUSB), in if_usb_probe()
220 udev->descriptor.bDeviceClass, in if_usb_probe()
221 udev->descriptor.bDeviceSubClass, in if_usb_probe()
222 udev->descriptor.bDeviceProtocol); in if_usb_probe()
230 lbs_deb_usbd(&udev->dev, "in_endpoint = %d\n", cardp->ep_in); in if_usb_probe()
231 lbs_deb_usbd(&udev->dev, "Bulk in size is %d\n", cardp->ep_in_size); in if_usb_probe()
237 lbs_deb_usbd(&udev->dev, "out_endpoint = %d\n", cardp->ep_out); in if_usb_probe()
238 lbs_deb_usbd(&udev->dev, "Bulk out size is %d\n", cardp->ep_out_size); in if_usb_probe()
242 lbs_deb_usbd(&udev->dev, "Endpoints not found\n"); in if_usb_probe()
246 lbs_deb_usbd(&udev->dev, "Rx URB allocation failed\n"); in if_usb_probe()
250 lbs_deb_usbd(&udev->dev, "Tx URB allocation failed\n"); in if_usb_probe()
255 lbs_deb_usbd(&udev->dev, "Could not allocate buffer\n"); in if_usb_probe()
277 cardp->boot2_version = udev->descriptor.bcdDevice; in if_usb_probe()
279 usb_get_dev(udev); in if_usb_probe()
282 r = lbs_get_firmware_async(priv, &udev->dev, cardp->model, in if_usb_probe()
290 usb_put_dev(udev); in if_usb_probe()
344 lbs_deb_usb2(&cardp->udev->dev, "totalbytes = %d\n", in if_usb_send_fw_pkt()
360 lbs_deb_usb2(&cardp->udev->dev, "Data length = %d\n", in if_usb_send_fw_pkt()
370 lbs_deb_usb2(&cardp->udev->dev, "There are data to follow\n"); in if_usb_send_fw_pkt()
371 lbs_deb_usb2(&cardp->udev->dev, "seqnum = %d totalbytes = %d\n", in if_usb_send_fw_pkt()
374 lbs_deb_usb2(&cardp->udev->dev, "Host has finished FW downloading\n"); in if_usb_send_fw_pkt()
375 lbs_deb_usb2(&cardp->udev->dev, "Downloading FW JUMP BLOCK\n"); in if_usb_send_fw_pkt()
380 lbs_deb_usb2(&cardp->udev->dev, "Firmware download done; size %d\n", in if_usb_send_fw_pkt()
400 ret = usb_reset_device(cardp->udev); in if_usb_reset_device()
424 lbs_deb_usbd(&cardp->udev->dev, "Device removed\n"); in usb_tx_block()
429 usb_fill_bulk_urb(cardp->tx_urb, cardp->udev, in usb_tx_block()
430 usb_sndbulkpipe(cardp->udev, in usb_tx_block()
437 lbs_deb_usbd(&cardp->udev->dev, "usb_submit_urb failed: %d\n", ret); in usb_tx_block()
439 lbs_deb_usb2(&cardp->udev->dev, "usb_submit_urb success\n"); in usb_tx_block()
461 usb_fill_bulk_urb(cardp->rx_urb, cardp->udev, in __if_usb_submit_rx_urb()
462 usb_rcvbulkpipe(cardp->udev, cardp->ep_in), in __if_usb_submit_rx_urb()
467 lbs_deb_usb2(&cardp->udev->dev, "Pointer for rx_urb %p\n", cardp->rx_urb); in __if_usb_submit_rx_urb()
469 lbs_deb_usbd(&cardp->udev->dev, "Submit Rx URB failed: %d\n", ret); in __if_usb_submit_rx_urb()
474 lbs_deb_usb2(&cardp->udev->dev, "Submit Rx URB success\n"); in __if_usb_submit_rx_urb()
500 lbs_deb_usbd(&cardp->udev->dev, in if_usb_receive_fwload()
525 if (le16_to_cpu(cardp->udev->descriptor.bcdDevice) < 0x3106) { in if_usb_receive_fwload()
529 lbs_deb_usbd(&cardp->udev->dev, in if_usb_receive_fwload()
554 lbs_deb_usbd(&cardp->udev->dev, in if_usb_receive_fwload()
565 lbs_deb_usbd(&cardp->udev->dev, "Failure to allocate syncfwheader\n"); in if_usb_receive_fwload()
571 lbs_deb_usb2(&cardp->udev->dev, "FW received Blk with correct CRC\n"); in if_usb_receive_fwload()
572 lbs_deb_usb2(&cardp->udev->dev, "FW received Blk seqnum = %d\n", in if_usb_receive_fwload()
576 lbs_deb_usbd(&cardp->udev->dev, "FW received Blk with CRC error\n"); in if_usb_receive_fwload()
606 lbs_deb_usbd(&cardp->udev->dev, "Packet length is Invalid\n"); in process_cmdtypedata()
627 lbs_deb_usbd(&cardp->udev->dev, in process_cmdrequest()
645 lbs_deb_usbd(&cardp->udev->dev, in process_cmdrequest()
669 lbs_deb_usbd(&cardp->udev->dev, "RX URB failed: %d\n", in if_usb_receive()
677 lbs_deb_usbd(&cardp->udev->dev, in if_usb_receive()
697 lbs_deb_usbd(&cardp->udev->dev, "**EVENT** 0x%X\n", event); in if_usb_receive()
710 lbs_deb_usbd(&cardp->udev->dev, "Unknown command type 0x%X\n", in if_usb_receive()
733 lbs_deb_usbd(&cardp->udev->dev,"*** type = %u\n", type); in if_usb_host_to_card()
734 lbs_deb_usbd(&cardp->udev->dev,"size after = %d\n", nb); in if_usb_host_to_card()
850 lbs_deb_usbd(&cardp->udev->dev, "URB submission is failed\n"); in if_usb_prog_firmware()