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