Lines Matching refs:mtp_device

1673   LIBMTP_mtpdevice_t *mtp_device;  in LIBMTP_Open_Raw_Device()  local
1681 mtp_device = (LIBMTP_mtpdevice_t *) malloc(sizeof(LIBMTP_mtpdevice_t)); in LIBMTP_Open_Raw_Device()
1682 memset(mtp_device, 0, sizeof(LIBMTP_mtpdevice_t)); in LIBMTP_Open_Raw_Device()
1684 if(mtp_device == NULL) { in LIBMTP_Open_Raw_Device()
1699 free(mtp_device); in LIBMTP_Open_Raw_Device()
1723 free(mtp_device); in LIBMTP_Open_Raw_Device()
1726 mtp_device->params = current_params; in LIBMTP_Open_Raw_Device()
1732 &mtp_device->usbinfo); in LIBMTP_Open_Raw_Device()
1735 free(mtp_device); in LIBMTP_Open_Raw_Device()
1738 ptp_usb = (PTP_USB*) mtp_device->usbinfo; in LIBMTP_Open_Raw_Device()
1751 free(mtp_device->usbinfo); in LIBMTP_Open_Raw_Device()
1752 free(mtp_device->params); in LIBMTP_Open_Raw_Device()
1754 free(mtp_device); in LIBMTP_Open_Raw_Device()
1800 mtp_device->object_bitsize = bs; in LIBMTP_Open_Raw_Device()
1803 mtp_device->errorstack = NULL; in LIBMTP_Open_Raw_Device()
1806 mtp_device->maximum_battery_level = 100; in LIBMTP_Open_Raw_Device()
1817 add_error_to_errorstack(mtp_device, in LIBMTP_Open_Raw_Device()
1827 mtp_device->maximum_battery_level = dpd.FORM.Range.MaximumValue.u8; in LIBMTP_Open_Raw_Device()
1834 mtp_device->default_music_folder = 0; in LIBMTP_Open_Raw_Device()
1835 mtp_device->default_playlist_folder = 0; in LIBMTP_Open_Raw_Device()
1836 mtp_device->default_picture_folder = 0; in LIBMTP_Open_Raw_Device()
1837 mtp_device->default_video_folder = 0; in LIBMTP_Open_Raw_Device()
1838 mtp_device->default_organizer_folder = 0; in LIBMTP_Open_Raw_Device()
1839 mtp_device->default_zencast_folder = 0; in LIBMTP_Open_Raw_Device()
1840 mtp_device->default_album_folder = 0; in LIBMTP_Open_Raw_Device()
1841 mtp_device->default_text_folder = 0; in LIBMTP_Open_Raw_Device()
1844 mtp_device->storage = NULL; in LIBMTP_Open_Raw_Device()
1845 if (LIBMTP_Get_Storage(mtp_device, LIBMTP_STORAGE_SORTBY_NOTSORTED) == -1) { in LIBMTP_Open_Raw_Device()
1846 add_error_to_errorstack(mtp_device, in LIBMTP_Open_Raw_Device()
1849 mtp_device->storage = NULL; in LIBMTP_Open_Raw_Device()
1857 flush_handles(mtp_device); in LIBMTP_Open_Raw_Device()
1859 return mtp_device; in LIBMTP_Open_Raw_Device()
1875 LIBMTP_mtpdevice_t *mtp_device; in create_usb_mtp_devices() local
1876 mtp_device = LIBMTP_Open_Raw_Device(&devices[i]); in create_usb_mtp_devices()
1879 if (mtp_device == NULL) in create_usb_mtp_devices()
1883 mtp_device->next = NULL; in create_usb_mtp_devices()
1885 mtp_device_list = current_device = mtp_device; in create_usb_mtp_devices()
1887 current_device->next = mtp_device; in create_usb_mtp_devices()
1888 current_device = mtp_device; in create_usb_mtp_devices()