Searched refs:device (Results 1 - 25 of 477) sorted by relevance

1234567891011>>

/external/libmtp/examples/
H A Dformat.c3 * Example program that formats the device storage.
51 LIBMTP_mtpdevice_t *device; local
57 device = LIBMTP_Get_First_Device();
58 if (device == NULL) {
63 printf("I will now format your device. This means that\n");
69 ret = LIBMTP_Format_Storage(device, device->storage);
76 printf("Failed to format device.\n");
77 LIBMTP_Dump_Errorstack(device);
78 LIBMTP_Clear_Errorstack(device);
[all...]
H A Dreset.c3 * Example program that resets the device.
51 LIBMTP_mtpdevice_t *device; local
57 device = LIBMTP_Get_First_Device();
58 if (device == NULL) {
63 printf("I will now reset your device. This means that\n");
64 printf("the device may go inactive immediately and may report errors.\n");
67 ret = LIBMTP_Reset_Device(device);
74 printf("Failed to reset device.\n");
75 LIBMTP_Dump_Errorstack(device);
76 LIBMTP_Clear_Errorstack(device);
[all...]
H A Demptyfolders.c25 static void prune_empty_folders(LIBMTP_mtpdevice_t *device, LIBMTP_file_t *files, LIBMTP_folder_t *folderlist, int do_delete) argument
46 if (LIBMTP_Delete_Object(device,folderlist->folder_id) != 0) {
48 LIBMTP_Dump_Errorstack(device);
49 LIBMTP_Clear_Errorstack(device);
55 prune_empty_folders(device,files,folderlist->child,do_delete); // recurse down
56 prune_empty_folders(device,files,folderlist->sibling,do_delete); // recurse along
82 LIBMTP_mtpdevice_t *device; local
87 device = LIBMTP_Get_First_Device();
88 if (device == NULL) {
94 files = LIBMTP_Get_Filelisting_With_Callback(device,NUL
[all...]
H A Dtrexist.c3 * Example program to check if a certain track exists on the device.
33 LIBMTP_mtpdevice_t *device; local
56 device = LIBMTP_Get_First_Device();
57 if (device == NULL) {
58 printf("No devices. Connect/replug device and try again.\n");
62 printf("%s\n", LIBMTP_Track_Exists(device, id) ? "Yes" : "No");
64 LIBMTP_Release_Device(device);
H A Dgetplaylist.c3 * Example program that lists the abstract playlists on the device.
26 static uint32_t dump_playlist(LIBMTP_mtpdevice_t *device, LIBMTP_playlist_t *pl) argument
35 track = LIBMTP_Get_Trackmetadata(device, pl->tracks[i]);
41 LIBMTP_Dump_Errorstack(device);
42 LIBMTP_Clear_Errorstack(device);
51 LIBMTP_mtpdevice_t *device; local
75 device = LIBMTP_Get_First_Device();
76 if (device == NULL) {
77 printf("No devices. Connect/replug device and try again.\n");
81 playlist = LIBMTP_Get_Playlist(device,i
[all...]
H A Dplaylists.c3 * Example program to list the playlists on a device.
25 static void dump_plinfo(LIBMTP_mtpdevice_t *device, LIBMTP_playlist_t *pl) argument
38 track = LIBMTP_Get_Trackmetadata(device, pl->tracks[i]);
44 LIBMTP_Dump_Errorstack(device);
45 LIBMTP_Clear_Errorstack(device);
52 LIBMTP_mtpdevice_t *device; local
58 device = LIBMTP_Get_First_Device();
59 if (device == NULL) {
65 playlists = LIBMTP_Get_Playlist_List(device);
72 dump_plinfo(device, p
[all...]
/external/libnfc-nci/halimpl/bcm2079x/include/
H A DHalAdaptation.h52 extern int HaiInitializeLibrary (const bcm2079x_dev_t* device);
54 extern int HaiOpen (const bcm2079x_dev_t* device, nfc_stack_callback_t* halCallbackFunc, nfc_stack_data_callback_t* halDataCallbackFunc);
55 extern int HaiClose (const bcm2079x_dev_t* device);
56 extern int HaiCoreInitialized (const bcm2079x_dev_t* device, uint8_t* coreInitResponseParams);
58 extern int HaiPreDiscover (const bcm2079x_dev_t* device);
59 extern int HaiControlGranted (const bcm2079x_dev_t* device);
60 extern int HaiPowerCycle (const bcm2079x_dev_t* device);
61 extern int HaiGetMaxNfcee (const bcm2079x_dev_t* device, uint8_t* maxNfcee);
/external/gptfdisk/
H A Dgdisk.cc16 string device = ""; local
29 cout << "Type device filename, or press <Enter> to exit: ";
30 device = ReadString();
31 if (device.length() == 0)
33 else if (theGPT.LoadPartitions(device)) {
36 theGPT.MainMenu(device);
48 device = (string) argv[2];
50 device = (string) argv[1];
55 if (device != "") {
57 if (theGPT.LoadPartitions(device))
[all...]
H A Dcgdisk.cc31 string device = ""; local
39 cout << "Type device filename, or press <Enter> to exit: ";
40 device = ReadString();
41 if (device.length() == 0)
45 device = (string) argv[1];
49 device = (string) argv[2];
51 device = (string) argv[1];
67 if (theGPT.LoadPartitions(device)) {
76 Report("Could not load partitions from '" + device + "'! Aborting!");
H A Dfixparts.cc27 string device; local
33 cout << "Type device filename, or press <Enter> to exit: ";
34 device = ReadString();
35 if (device.length() == 0)
39 device = argv[1];
46 cout << "\nLoading MBR data from " << device << "\n"; local
47 if (!mbrTable.ReadMBRData(device)) {
48 cerr << "\nUnable to read MBR data from '" << device << "'! Exiting!\n\n"; local
61 cerr << "\nCannot find valid MBR data on '" << device << "'! Exiting!\n\n"; local
68 cerr << "\nCannot determine the validity of the disk on '" << device local
[all...]
/external/mesa3d/src/gbm/main/
H A Dcommon.c42 struct udev_device *device; local
50 device = udev_device_new_from_devnum(udev, 'c', buf.st_rdev);
51 if (device == NULL) {
53 "gbm: could not create udev device for fd %d", fd);
57 return device;
64 struct udev_device *device; local
69 device = _gbm_udev_device_new_from_fd(udev, fd);
70 if (device == NULL)
73 const_device_name = udev_device_get_devnode(device);
79 udev_device_unref(device);
[all...]
/external/clang/test/Frontend/
H A Dstdlang.c6 __attribute__((device)) void f_device();
/external/libpcap/
H A Dpcap-bt-linux.h40 pcap_t *bt_create(const char *device, char *ebuf, int *is_ours);
H A Dpcap-can-linux.h35 pcap_t* can_create(const char *device, char *ebuf, int *is_ours);
H A Dpcap-canusb-linux.h35 pcap_t* canusb_create(const char *device, char *ebuf, int *is_ours);
H A Dpcap-netfilter-linux.h35 pcap_t *netfilter_create(const char *device, char *ebuf, int *is_ours);
H A Dpcap-septel.h6 * card code at the same time as another type of device.
14 pcap_t *septel_create(const char *device, char *ebuf, int *is_ours);
H A Dpcap-usb-linux.h40 pcap_t *usb_create(const char *device, char *ebuf, int *is_ours);
/external/mesa3d/src/gallium/state_trackers/vdpau/
H A Dpreemption.c32 * A callback to notify the client application that a device's display has
35 void vlVdpPreemptionCallback(VdpDevice device, void *context) argument
43 VdpStatus vlVdpPreemptionCallbackRegister(VdpDevice device, argument
/external/mesa3d/src/mesa/drivers/dri/nouveau/
H A Dnouveau_screen.h34 struct nouveau_device *device; member in struct:nouveau_screen
/external/libmtp/src/
H A Dplaylist-spl.h28 void spl_to_playlist_t(LIBMTP_mtpdevice_t* device, PTPObjectInfo *oi,
30 int playlist_t_to_spl(LIBMTP_mtpdevice_t *device,
32 int update_spl_playlist(LIBMTP_mtpdevice_t *device,
/external/mesa3d/src/gallium/state_trackers/clover/core/
H A Dcontext.hpp27 #include "core/device.hpp"
36 const std::vector<clover::device *> &devs);
39 bool has_device(clover::device *dev) const;
45 const std::vector<clover::device *> devs;
/external/openssh/
H A Dauth-chall.c46 static KbdintDevice *device; variable
61 device = devices[0]; /* we always use the 1st device for protocol 1 */
62 if (device == NULL)
64 if ((authctxt->kbdintctxt = device->init_ctx(authctxt)) == NULL)
66 if (device->query(authctxt->kbdintctxt, &name, &info,
68 device->free_ctx(authctxt->kbdintctxt);
91 if (device == NULL)
96 switch (device->respond(authctxt->kbdintctxt, 1, resp)) {
101 if ((device
[all...]
/external/e2fsprogs/misc/
H A Dutil.h22 extern void check_plausibility(const char *device);
24 extern void check_mount(const char *device, int force, const char *type);
/external/antlr/antlr-3.4/runtime/Ruby/lib/antlr3/debug/
H A Drule-tracer.rb19 attr_accessor :spaces_per_indent, :device
25 @device = options[ :device ] || options[ :output ] || $stderr
31 @device.print( ' ' * indent, ARROW_IN, name )
34 @device.puts( " look = %p" % input_symbol )
35 else @device.print( "\n" )
46 @device.print( ' ' * indent, ARROW_OUT, name )
49 @device.puts( " look = %p" % input_symbol )
50 else @device.print( "\n" )

Completed in 3571 milliseconds

1234567891011>>