Lines Matching refs:udev
12 static int send_vendor_request(struct usb_device *udev, int request, in send_vendor_request() argument
15 return usb_control_msg(udev, in send_vendor_request()
16 usb_rcvctrlpipe(udev, 0), in send_vendor_request()
21 static int send_vendor_command(struct usb_device *udev, int request, in send_vendor_command() argument
24 return usb_control_msg(udev, in send_vendor_command()
25 usb_sndctrlpipe(udev, 0), in send_vendor_command()
32 struct usb_device *udev = interface_to_usbdev(intf); in plfxlc_download_fpga() local
41 if ((le16_to_cpu(udev->descriptor.idVendor) == in plfxlc_download_fpga()
43 (le16_to_cpu(udev->descriptor.idProduct) == in plfxlc_download_fpga()
48 } else if ((le16_to_cpu(udev->descriptor.idVendor)) == in plfxlc_download_fpga()
50 (le16_to_cpu(udev->descriptor.idProduct) == in plfxlc_download_fpga()
71 send_vendor_request(udev, PLF_VNDR_FPGA_SET_REQ, in plfxlc_download_fpga()
74 send_vendor_command(udev, PLF_VNDR_FPGA_SET_CMD, NULL, 0); in plfxlc_download_fpga()
99 r = usb_bulk_msg(udev, in plfxlc_download_fpga()
122 send_vendor_request(udev, PLF_VNDR_FPGA_STATE_REQ, fpga_dmabuff, in plfxlc_download_fpga()
132 send_vendor_command(udev, PLF_VNDR_FPGA_STATE_CMD, NULL, 0); in plfxlc_download_fpga()
145 struct usb_device *udev = interface_to_usbdev(intf); in plfxlc_download_xl_firmware() local
153 r = send_vendor_command(udev, PLF_VNDR_XL_FW_CMD, NULL, 0); in plfxlc_download_xl_firmware()
191 r = send_vendor_command(udev, PLF_VNDR_XL_FILE_CMD, buf, in plfxlc_download_xl_firmware()
217 r = send_vendor_command(udev, PLF_VNDR_XL_DATA_CMD, buf, in plfxlc_download_xl_firmware()
228 r = send_vendor_command(udev, PLF_VNDR_XL_EX_CMD, NULL, 0); in plfxlc_download_xl_firmware()
238 struct usb_device *udev = interface_to_usbdev(intf); in plfxlc_upload_mac_and_serial() local
249 send_vendor_request(udev, PLF_MAC_VENDOR_REQUEST, dma_buffer, in plfxlc_upload_mac_and_serial()
254 send_vendor_request(udev, PLF_SERIAL_NUMBER_VENDOR_REQUEST, in plfxlc_upload_mac_and_serial()
257 send_vendor_request(udev, PLF_SERIAL_NUMBER_VENDOR_REQUEST, in plfxlc_upload_mac_and_serial()
264 send_vendor_request(udev, PLF_FIRMWARE_VERSION_VENDOR_REQUEST, in plfxlc_upload_mac_and_serial()