Lines Matching refs:fw_ptr
1458 void *fw_ptr; in pvr2_upload_firmware1() local
1506 fw_ptr = kmalloc(0x800, GFP_KERNEL); in pvr2_upload_firmware1()
1507 if (fw_ptr == NULL){ in pvr2_upload_firmware1()
1520 memcpy(fw_ptr, fw_entry->data + address, 0x800); in pvr2_upload_firmware1()
1522 0, fw_ptr, 0x800, HZ); in pvr2_upload_firmware1()
1530 kfree(fw_ptr); in pvr2_upload_firmware1()
1555 void *fw_ptr; in pvr2_upload_firmware2() local
1629 fw_ptr = kmalloc(FIRMWARE_CHUNK_SIZE, GFP_KERNEL); in pvr2_upload_firmware2()
1630 if (fw_ptr == NULL){ in pvr2_upload_firmware2()
1644 memcpy(fw_ptr, fw_entry->data + fw_done, bcnt); in pvr2_upload_firmware2()
1658 ((u32 *)fw_ptr)[icnt] = swab32(((u32 *)fw_ptr)[icnt]); in pvr2_upload_firmware2()
1660 ret |= usb_bulk_msg(hdw->usb_dev, pipe, fw_ptr,bcnt, in pvr2_upload_firmware2()
1670 kfree(fw_ptr); in pvr2_upload_firmware2()