Lines Matching refs:fw
36 int usb_cypress_load_firmware(struct usb_device *udev, const struct firmware *fw, int type) in usb_cypress_load_firmware() argument
47 while ((ret = dvb_usb_get_hexline(fw,&hx,&pos)) > 0) { in usb_cypress_load_firmware()
81 const struct firmware *fw = NULL; in dvb_usb_download_firmware() local
83 if ((ret = request_firmware(&fw, props->firmware, &udev->dev)) != 0) { in dvb_usb_download_firmware()
96 ret = usb_cypress_load_firmware(udev, fw, props->usb_ctrl); in dvb_usb_download_firmware()
100 ret = props->download_firmware(udev,fw); in dvb_usb_download_firmware()
111 release_firmware(fw); in dvb_usb_download_firmware()
115 int dvb_usb_get_hexline(const struct firmware *fw, struct hexline *hx, in dvb_usb_get_hexline() argument
118 u8 *b = (u8 *) &fw->data[*pos]; in dvb_usb_get_hexline()
120 if (*pos >= fw->size) in dvb_usb_get_hexline()
127 if ((*pos + hx->len + 4) >= fw->size) in dvb_usb_get_hexline()