Lines Matching refs:img
160 windrv_lookup(img, name)
161 vm_offset_t img;
180 if (d->windrv_object->dro_driverstart == (void *)img ||
226 windrv_unload(mod, img, len)
228 vm_offset_t img;
237 drv = windrv_lookup(img, NULL);
274 if (db->windrv_object->dro_driverstart == (void *)img) {
316 patch_user_shared_data_address(vm_offset_t img, size_t len)
323 addr = (unsigned long *)(img + i);
338 windrv_load(mod, img, len, bustype, devlist, regvals)
340 vm_offset_t img;
360 ptr = (uint32_t *)(img + 8);
365 if (pe_relocate(img))
369 if (pe_patch_imports(img, "NDIS", ndis_functbl))
373 if (pe_get_import_descriptor(img, &imp_desc, "HAL") == 0) {
374 if (pe_patch_imports(img, "HAL", hal_functbl))
379 if (pe_get_import_descriptor(img, &imp_desc, "ntoskrnl") == 0) {
380 if (pe_patch_imports(img, "ntoskrnl", ntoskrnl_functbl))
385 patch_user_shared_data_address(img, len);
389 if (pe_get_import_descriptor(img, &imp_desc, "USBD") == 0) {
390 if (pe_patch_imports(img, "USBD", usbd_functbl))
400 pe_get_optional_header(img, &opt_hdr);
401 entry = (driver_entry)pe_translate_addr(img, opt_hdr.ioh_entryaddr);
428 drv->dro_driverstart = (void *)img;