/external/ltp/testcases/kernel/syscalls/mount/ |
H A D | mount01.c | 39 static const char *device; variable 54 TEST(mount(device, MNTPOINT, fs_type, 0, NULL)); 81 device = tst_acquire_device(cleanup); 83 if (!device) 84 tst_brkm(TCONF, cleanup, "Failed to obtain block device"); 86 tst_mkfs(cleanup, device, fs_type, NULL, NULL); 95 if (device) 96 tst_release_device(device);
|
H A D | mount04.c | 39 static const char *device; variable 46 TEST(mount(device, mntpoint, fs_type, 0, NULL)); 96 device = tst_acquire_device(cleanup); 98 if (!device) 99 tst_brkm(TCONF, cleanup, "Failed to obtain block device"); 101 tst_mkfs(cleanup, device, fs_type, NULL, NULL); 115 if (device) 116 tst_release_device(device);
|
/external/ltp/testcases/kernel/syscalls/umount/ |
H A D | umount01.c | 40 static const char *device; variable 53 TEST(mount(device, mntpoint, fs_type, 0, NULL)); 91 device = tst_acquire_device(cleanup); 93 if (!device) 94 tst_brkm(TCONF, cleanup, "Failed to obtain block device"); 96 tst_mkfs(cleanup, device, fs_type, NULL, NULL); 109 if (device) 110 tst_release_device(device);
|
H A D | umount03.c | 48 static const char *device; variable 98 device = tst_acquire_device(cleanup); 99 if (!device) 100 tst_brkm(TCONF, cleanup, "Failed to obtain block device"); 102 tst_mkfs(cleanup, device, fs_type, NULL, NULL); 106 if (mount(device, MNTPOINT, fs_type, 0, NULL)) 122 if (device) 123 tst_release_device(device);
|
/external/mesa3d/src/gallium/drivers/radeon/ |
H A D | AMDGPUSubtarget.cpp | 91 AMDGPUSubtarget::device() const function in class:AMDGPUSubtarget
|
/external/mesa3d/src/gallium/state_trackers/clover/core/ |
H A D | device.hpp | 34 typedef struct _cl_device_id device; typedef in namespace:clover 84 typedef std::vector<device>::iterator iterator; 96 device &front() { 100 device &back() { 105 std::vector<device> devs;
|
/external/mesa3d/src/gbm/backends/dri/ |
H A D | driver_name.c | 42 struct udev_device *device, *parent; local 48 device = _gbm_udev_device_new_from_fd(udev, fd); 49 if (device == NULL) 52 parent = udev_device_get_parent(device); 54 fprintf(stderr, "gbm: could not get parent device"); 85 udev_device_unref(device);
|
/external/openssh/ |
H A D | auth-chall.c | 44 static KbdintDevice *device; variable 59 device = devices[0]; /* we always use the 1st device for protocol 1 */ 60 if (device == NULL) 62 if ((authctxt->kbdintctxt = device->init_ctx(authctxt)) == NULL) 64 if (device->query(authctxt->kbdintctxt, &name, &info, 66 device->free_ctx(authctxt->kbdintctxt); 89 if (device == NULL) 94 switch (device->respond(authctxt->kbdintctxt, 1, resp)) { 99 if ((device [all...] |
/external/pdfium/xfa/fxbarcode/ |
H A D | cbc_datamatrix.cpp | 48 bool CBC_DataMatrix::RenderDevice(CFX_RenderDevice* device, argument 52 ->RenderDeviceResult(device, matrix);
|
/external/skia/src/gpu/vk/ |
H A D | GrVkInterface.cpp | 18 #define GET_DEV_PROC(F) functions->f ## F = (PFN_vk ## F) vkGetDeviceProcAddr(device, "vk" #F) 20 const GrVkInterface* GrVkCreateInterface(VkInstance instance, VkDevice device, argument
|
/external/swiftshader/src/D3D9/ |
H A D | Direct3DVolume9.hpp | 33 Direct3DVolume9(Direct3DDevice9 *device, Direct3DVolumeTexture9 *container, int width, int height, int depth, D3DFORMAT format, D3DPOOL pool, unsigned long usage); 46 long __stdcall GetDevice(IDirect3DDevice9 **device); 57 Direct3DDevice9 *const device; member in class:D3D9::Direct3DVolume9
|
/external/swiftshader/src/OpenGL/libGL/ |
H A D | Query.cpp | 61 Device *device = getDevice(); local 64 device->addQuery(mQuery); 65 device->setOcclusionEnabled(true); 75 Device *device = getDevice(); local 78 device->removeQuery(mQuery); 79 device->setOcclusionEnabled(false);
|
/external/swiftshader/src/OpenGL/libGLESv2/ |
H A D | Query.cpp | 65 Device *device = getDevice(); local 68 device->addQuery(mQuery); 73 device->setOcclusionEnabled(true); 76 device->setTransformFeedbackQueryEnabled(true); 90 Device *device = getDevice(); local 93 device->removeQuery(mQuery); 98 device->setOcclusionEnabled(false); 101 device->setTransformFeedbackQueryEnabled(false);
|
/external/syslinux/gpxe/src/drivers/nvs/ |
H A D | spi.c | 33 * Munge SPI device address into command 52 * Wait for SPI device to complete operation 54 * @v device SPI device 57 static int spi_wait ( struct spi_device *device ) { 58 struct spi_bus *bus = device->bus; 65 if ( ( rc = bus->rw ( bus, device, SPI_RDSR, -1, NULL, 71 DBG ( "SPI %p timed out\n", device ); 76 * Read data from SPI device 78 * @v nvs NVS device 86 struct spi_device *device = nvs_to_spi ( nvs ); local 113 struct spi_device *device = nvs_to_spi ( nvs ); local [all...] |
/external/syslinux/gpxe/src/include/gpxe/ |
H A D | threewire.h | 48 extern int threewire_detect_address_len ( struct spi_device *device ); 51 * @defgroup tdevs Three-wire device types 56 init_at93cx6 ( struct spi_device *device, unsigned int organisation ) { argument 57 device->nvs.word_len_log2 = ( ( organisation == 8 ) ? 0 : 1 ); 58 device->nvs.block_size = 1; 59 device->command_len = 3, 60 device->nvs.read = threewire_read; 61 device->nvs.write = threewire_write; 67 * @v device SPI device 71 init_at93c46( struct spi_device *device, unsigned int organisation ) argument 84 init_at93c56( struct spi_device *device, unsigned int organisation ) argument 97 init_at93c66( struct spi_device *device, unsigned int organisation ) argument [all...] |
/external/toybox/toys/other/ |
H A D | losetup.c | 15 Associate a loopback device with a file, or show current file (if any) 16 associated with a loop device. 18 Instead of a device: 20 -f Find first unused loop device (may create one) 25 -d Detach loopback device 28 -s Show device name (alias --show) 53 allocate new loop device: 58 // -f: *device is NULL 60 // Perform requested operation on one device. Returns 1 if handled, 0 if error 61 static void loopback_setup(char *device, cha argument [all...] |
H A D | lspci.c | 42 char *p = toybuf, *vendor = toybuf+9, *device = toybuf+18, local 57 for (fields = (char*[]){"class", "vendor", "device", 0}; *fields; fields++) { 87 if (strstart(&s, vbig ? device : vendor)) { 102 dbig ? dbig : "", device); 110 vbig ? vbig : vendor, dbig ? dbig : device);
|
H A D | nbd_client.c | 1 /* nbd-client.c - network block device client 44 char *host=toys.optargs[0], *port=toys.optargs[1], *device=toys.optargs[2]; local 49 nbd = xopen(device, O_RDWR); 81 // Open the device to force reread of the partition table. 83 char *s = strrchr(device, '/'); 86 sprintf(toybuf, "/sys/block/%.32s/pid", s ? s+1 : device); 96 close(open(device, O_RDONLY));
|
/external/webrtc/talk/media/devices/ |
H A D | macdeviceinfo.cc | 32 bool GetUsbId(const Device& device, std::string* usb_id) { argument 35 if (device.id.size() < 2 * id_size) { 39 // The last characters of device id is a concatenation of VID and then PID. 40 const size_t vid_location = device.id.size() - 2 * id_size; 41 std::string id_vendor = device.id.substr(vid_location, id_size); 42 const size_t pid_location = device.id.size() - id_size; 43 std::string id_product = device.id.substr(pid_location, id_size); 52 bool GetUsbVersion(const Device& device, std::string* usb_version) { argument
|
H A D | mobiledevicemanager.cc | 71 bool GetUsbId(const Device& device, std::string* usb_id) { return false; } argument 73 bool GetUsbVersion(const Device& device, std::string* usb_version) { argument
|
H A D | win32deviceinfo.cc | 32 bool GetUsbId(const Device& device, std::string* usb_id) { argument 36 const size_t vid_location = device.id.find(vid); 38 vid_location + sizeof(vid) - 1 + id_size > device.id.size()) { 42 const size_t pid_location = device.id.find(pid); 44 pid_location + sizeof(pid) - 1 + id_size > device.id.size()) { 47 std::string id_vendor = device.id.substr(vid_location + sizeof(vid) - 1, 49 std::string id_product = device.id.substr(pid_location + sizeof(pid) -1, 58 bool GetUsbVersion(const Device& device, std::string* usb_version) { argument
|
/external/autotest/client/cros/cellular/mbim_compliance/ |
H A D | mbim_device_context.py | 23 """ Context of device under test. """ 27 Initialize the MBIM modem device test context. 33 # Find the device to be tested 35 # Set the device vendor/product ID in the test context 45 # Once a device has been discovered, and its USB descriptors have been 46 # parsed, this property determines whether the discovered device is an 90 Find and initialize the MBIM modem device under consideration. 94 @returns The PyUSB handle to the device. 97 # If a specific device VID/PID is sent, we'll use that info to find 98 # the modem, else we'll try to find any MBIM CDC device attache 201 def device(self): member in class:MbimDeviceContext [all...] |
/external/autotest/client/deps/fakegudev/src/ |
H A D | gudev-exercise.c | 42 print_device(GUdevDevice *device) argument 48 printf (" Name: %s\n", g_udev_device_get_name (device)); 49 printf (" Device file: %s\n", g_udev_device_get_device_file (device)); 50 printf (" Devtype: %s\n", g_udev_device_get_devtype (device)); 51 printf (" Driver: %s\n", g_udev_device_get_driver (device)); 52 printf (" Subsystem: %s\n", g_udev_device_get_subsystem (device)); 53 printf (" Sysfs path: %s\n", g_udev_device_get_sysfs_path (device)); 58 const gchar * const * keys = g_udev_device_get_property_keys (device); 63 prop = g_udev_device_get_property (device, *keys); 80 GUdevDevice *device; local [all...] |
/external/autotest/client/site_tests/camera_V4L2/src/ |
H A D | media_v4l2_test.cc | 14 "--device=DEVICE_NAME Video device name [/dev/video]\n" 32 { "device", required_argument, NULL, 'd' }, 67 // Initialize default v4l2 device name. 125 V4L2Device* device = new V4L2Device(dev_name.c_str(), io, buffers); local 129 if (!device->OpenDevice()) 132 if (!retcode && !device->InitDevice(width, height, pixfmt, fps)) 135 if (!retcode && !device->StartCapture()) 138 if (!retcode && !device->Run(frames, time_to_capture)) 141 if (!retcode && !device [all...] |
/external/blktrace/btt/ |
H A D | bno_dump.c | 27 static FILE *bno_dump_open(__u32 device, char rwc) argument 33 mjr = device >> MINORBITS; 34 mnr = device & ((1 << MINORBITS) - 1); 51 void *bno_dump_alloc(__u32 device) argument 58 bdp->rfp = bno_dump_open(device, 'r'); 59 bdp->wfp = bno_dump_open(device, 'w'); 60 bdp->cfp = bno_dump_open(device, 'c');
|