Home
last modified time | relevance | path

Searched refs:device_handle (Results 1 – 17 of 17) sorted by relevance

/external/e2fsprogs/ext2ed/
Ddisk.c48 if (device_handle==NULL) { /* Check that a device is indeed open */ in low_read()
60 if ( (fseek (device_handle,offset,SEEK_SET))==-1) { /* Seek to the required offset */ in low_read()
66 if ( (fread (buffer,1,length,device_handle))==-1) { /* And do the actual reading */ in low_read()
99 if (device_handle==NULL) { in low_write()
116 if ( (fseek (device_handle,offset,SEEK_SET))==-1) { in low_write()
122 if ( (fwrite (buffer,1,length,device_handle))==-1) { in low_write()
198 if (device_handle==NULL) { in load_type_data()
221 if (device_handle==NULL) { in write_type_data()
Dgeneral_com.c171 if (device_handle!=NULL) in set_device()
172 fclose (device_handle); in set_device()
174 if ( (device_handle=fopen (new_device,"rb"))==NULL) { in set_device()
188 fclose (device_handle); in set_device()
189 device_handle=NULL; /* Notice that our device is still not set up */ in set_device()
208 if (device_handle==NULL) { in set_offset()
262 if ( (fseek (device_handle,new_offset,SEEK_SET))==-1) { in set_offset()
366 if (device_handle==NULL) { in set()
621 if (device_handle==NULL) in show()
777 if (device_handle==NULL) { in remember()
[all …]
Dinit.c40 if (device_handle!=NULL) in prepare_to_close()
41 fclose (device_handle); in prepare_to_close()
60 device_handle=NULL; /* Notice that our device is still not set up */ in init()
Dmain.c71 FILE *device_handle=NULL; /* This is passed to the fopen / fread ... commands */ variable
Dext2ed.h200 extern FILE *device_handle;
/external/chromium_org/extensions/browser/api/usb/
Dusb_api.cc632 scoped_refptr<UsbDeviceHandle> device_handle = devices->at(i)->Open(); in OpenDevices() local
633 if (device_handle.get()) in OpenDevices()
634 device_handles_.push_back(device_handle); in OpenDevices()
638 UsbDeviceHandle* const device_handle = device_handles_[i].get(); in OpenDevices() local
640 new UsbDeviceResource(extension_->id(), device_handle); in OpenDevices()
780 scoped_refptr<UsbDeviceHandle> device_handle = in AsyncWorkStart() local
782 if (!device_handle.get()) { in AsyncWorkStart()
787 ConvertConfigDescriptor(device_handle->GetDevice()->GetConfiguration(), in AsyncWorkStart()
807 scoped_refptr<UsbDeviceHandle> device_handle = in AsyncWorkStart() local
809 if (!device_handle.get()) { in AsyncWorkStart()
[all …]
/external/chromium_org/device/usb/
Dusb_device_impl.cc224 scoped_refptr<UsbDeviceHandleImpl> device_handle = in Open() local
226 handles_.push_back(device_handle); in Open()
227 return device_handle; in Open()
345 scoped_refptr<UsbDeviceHandle> device_handle = Open(); in GetManufacturer() local
346 if (device_handle.get()) { in GetManufacturer()
347 return device_handle->GetStringDescriptor(desc.iManufacturer, manufacturer); in GetManufacturer()
376 scoped_refptr<UsbDeviceHandle> device_handle = Open(); in GetProduct() local
377 if (device_handle.get()) { in GetProduct()
378 return device_handle->GetStringDescriptor(desc.iProduct, product); in GetProduct()
407 scoped_refptr<UsbDeviceHandle> device_handle = Open(); in GetSerialNumber() local
[all …]
Dusb_device_handle_impl.cc570 UsbDeviceHandleImpl* device_handle = in PlatformTransferCallback() local
572 device_handle->task_runner_->PostTask( in PlatformTransferCallback()
575 &UsbDeviceHandleImpl::CompleteTransfer, device_handle, transfer)); in PlatformTransferCallback()
/external/chromium_org/device/hid/
Dhid_service_win.cc200 base::win::ScopedHandle device_handle( in PlatformAddDevice() local
209 if (!device_handle.IsValid() && in PlatformAddDevice()
211 base::win::ScopedHandle device_handle( in PlatformAddDevice() local
220 if (!device_handle.IsValid()) in PlatformAddDevice()
227 if (!HidD_GetAttributes(device_handle.Get(), &attrib)) in PlatformAddDevice()
234 HidD_SetNumInputBuffers(device_handle.Get(), i); in PlatformAddDevice()
239 if (HidD_GetPreparsedData(device_handle.Get(), &preparsed_data) && in PlatformAddDevice()
/external/chromium_org/chrome/browser/extensions/api/image_writer_private/
Dremovable_storage_provider_win.cc61 base::win::ScopedHandle device_handle(CreateFile( in AddDeviceInfo() local
72 if (!device_handle.IsValid()) { in AddDeviceInfo()
80 device_handle.Get(), // Device handle. in AddDeviceInfo()
106 device_handle.Get(), // Device handle. in AddDeviceInfo()
134 device_handle.Get(), // Device handle. in AddDeviceInfo()
/external/chromium_org/chrome/utility/image_writer/
Dimage_writer_win.cc17 base::win::ScopedHandle device_handle( in IsValidDevice() local
25 if (!device_handle.IsValid()) { in IsValidDevice()
37 device_handle.Get(), // Device handle. in IsValidDevice()
/external/chromium_org/chrome/browser/media_galleries/linux/
Dmtp_read_file_worker.cc39 MTPReadFileWorker::MTPReadFileWorker(const std::string& device_handle) in MTPReadFileWorker() argument
40 : device_handle_(device_handle), in MTPReadFileWorker()
Dmtp_read_file_worker.h26 explicit MTPReadFileWorker(const std::string& device_handle);
Dmtp_device_task_helper.h110 const std::string& device_handle,
Dmtp_device_task_helper.cc149 const std::string& device_handle, in OnDidOpenStorage() argument
152 device_handle_ = device_handle; in OnDidOpenStorage()
/external/chromium_org/content/browser/gamepad/
Draw_input_data_fetcher_win.cc144 HANDLE device_handle = device_list[i].hDevice; in EnumerateDevices() local
145 RawGamepadInfo* gamepad_info = ParseGamepadInfo(device_handle); in EnumerateDevices()
147 controllers_[device_handle] = gamepad_info; in EnumerateDevices()
/external/libmtp/src/
Dlibusb-glue.c1581 usb_dev_handle *device_handle; in init_ptp_usb() local
1598 device_handle = usb_open(dev); in init_ptp_usb()
1599 if (!device_handle) { in init_ptp_usb()
1604 ptp_usb->handle = device_handle; in init_ptp_usb()
1612 if (usb_detach_kernel_driver_np(device_handle, (int) ptp_usb->interface)) { in init_ptp_usb()
1620 if (usb_set_configuration(device_handle, dev->config->bConfigurationValue)) { in init_ptp_usb()
1625 if (usb_claim_interface(device_handle, (int) ptp_usb->interface)) { in init_ptp_usb()