/third_party/backends/testsuite/sanei/ |
H A D | sanei_usb_test.c | 94 /** count detected devices 95 * count all detected devices and check it against expected value 107 if (devices[i].missing == 0 && devices[i].devname != NULL) in count_detected() 114 printf ("ERROR: %d detected devices, expected %d!\n", num, expected); in count_detected() 117 printf ("%d devices still detected.\n", num); in count_detected() 166 /* give unused devices a name so strcmp() won't crash. */ in test_store_device() 168 devices[i].devname = ""; in test_store_device() 171 /* there should be no more devices */ in test_store_device() 180 if (devices[ in test_store_device() [all...] |
/third_party/backends/sanei/ |
H A D | sanei_usb.c | 178 * total number of devices that can be found at the same time */ 183 static device_list_type devices[MAX_DEVICES]; variable 186 * total number of detected devices in devices array */ 366 as the end of controller devices */ in kernel_get_vendor_product() 377 break; /* Treat this as the end of devices for this controller */ in kernel_get_vendor_product() 409 /* if there are already some devices present, check against in store_device() 413 if (devices[i].method == device.method in store_device() 414 && !strcmp (devices[i].devname, device.devname) in store_device() 415 && devices[ in store_device() [all...] |
/third_party/vk-gl-cts/scripts/android/ |
H A D | install_apk.py | 52 proc = subprocess.Popen([adbPath, 'devices', '-l'], stdout=subprocess.PIPE) 56 raise Exception("adb devices -l failed, got %d" % proc.returncode) 59 devices = [] 69 devices.append(Device(m.group(1), m.group(2), m.group(3), m.group(4))) 71 return devices 145 def installToDevices (devices, doParallel, adbPath, packageName, apkPath): 146 padLen = max([len(device.model) for device in devices])+1 148 parallelApply(installToDevice, [(device, adbPath, packageName, apkPath, ("(%s):%s" % (device.model, ' ' * (padLen - len(device.model))))) for device in devices]); 150 serialApply(installToDevice, [(device, adbPath, packageName, apkPath) for device in devices]); 153 devices 227 devices = getDevices(args.adbPath) global() variable 240 devices = getDevices(args.adbPath) global() variable 242 devices = [dev for dev in devices if dev.serial in args.serial] global() variable [all...] |
/third_party/ltp/testcases/kernel/hotplug/cpu_hotplug/include/ |
H A D | cpuhotplug_hotplug.sh | 72 if [ ! -w /sys/devices/system/cpu/cpu${CPU}/online ]; then 78 $TIME echo 1 > /sys/devices/system/cpu/cpu${CPU}/online 93 if [ ! -w /sys/devices/system/cpu/cpu${CPU}/online ]; then 99 $TIME echo 0 > /sys/devices/system/cpu/cpu${CPU}/online 112 [ -d /sys/devices/system/cpu/cpu0 ] || return -1 113 NUM=`ls /sys/devices/system/cpu/ \ 128 [ -d /sys/devices/system/cpu ] || return 1 129 (cd /sys/devices/system/cpu; ls -d cpu[0-9]*) 139 local present_mask="/sys/devices/system/cpu/present" 157 if [ -e /sys/devices/syste [all...] |
/third_party/skia/third_party/externals/angle2/src/libANGLE/ |
H A D | CLProgram.cpp | 24 DevicePtrs devices; in build() local 25 devices.reserve(numDevices); in build() 28 devices.emplace_back(&(*deviceList++)->cast<Device>()); in build() 38 return mImpl->build(devices, options, notify); in build() 50 DevicePtrs devices; in compile() local 51 devices.reserve(numDevices); in compile() 54 devices.emplace_back(&(*deviceList++)->cast<Device>()); in compile() 70 return mImpl->compile(devices, options, programs, headerIncludeNames, notify); in compile() 75 std::vector<cl_device_id> devices; in getInfo() local 99 devices in getInfo() 223 Program(Context &context, DevicePtrs &&devices, const size_t *lengths, const unsigned char **binaries, cl_int *binaryStatus, cl_int &errorCode) Program() argument 237 Program(Context &context, DevicePtrs &&devices, const char *kernelNames, cl_int &errorCode) Program() argument 245 Program(Context &context, const DevicePtrs &devices, const char *options, const cl::ProgramPtrs &inputPrograms, ProgramCB pfnNotify, void *userData, cl_int &errorCode) Program() argument [all...] |
H A D | CLContext.cpp | 25 std::vector<cl_device_id> devices; in getInfo() local 43 devices.reserve(mDevices.size()); in getInfo() 46 devices.emplace_back(device->getNative()); in getInfo() 48 copyValue = devices.data(); in getInfo() 49 copySize = devices.size() * sizeof(decltype(devices)::value_type); in getInfo() 269 const cl_device_id *devices, in createProgramWithBinary() 279 devs.emplace_back(&(*devices++)->cast<Device>()); in createProgramWithBinary() 286 const cl_device_id *devices, in createProgramWithBuiltInKernels() 294 devs.emplace_back(&(*devices in createProgramWithBuiltInKernels() 268 createProgramWithBinary(cl_uint numDevices, const cl_device_id *devices, const size_t *lengths, const unsigned char **binaries, cl_int *binaryStatus, cl_int &errorCode) createProgramWithBinary() argument 285 createProgramWithBuiltInKernels(cl_uint numDevices, const cl_device_id *devices, const char *kernelNames, cl_int &errorCode) createProgramWithBuiltInKernels() argument 308 DevicePtrs devices; linkProgram() local 350 Context(Platform &platform, PropArray &&properties, DevicePtrs &&devices, ContextErrorCB notify, void *userData, bool userSync, cl_int &errorCode) Context() argument [all...] |
H A D | CLPlatform.cpp | 184 cl_device_id *devices, in getDeviceIDs() 192 if (devices != nullptr && found < numEntries) in getDeviceIDs() 194 devices[found] = device.get(); in getDeviceIDs() 204 // CL_DEVICE_NOT_FOUND if no OpenCL devices that matched device_type were found. in getDeviceIDs() 215 const cl_device_id *devices, in CreateContext() 228 devs.emplace_back(&(*devices++)->cast<Device>()); in CreateContext() 263 DevicePtrs devices; in createDevices() local 264 devices.reserve(createDatas.size()); in createDevices() 267 devices.emplace_back( in createDevices() 270 devices in createDevices() 182 getDeviceIDs(DeviceType deviceType, cl_uint numEntries, cl_device_id *devices, cl_uint *numDevices) const getDeviceIDs() argument 213 CreateContext(const cl_context_properties *properties, cl_uint numDevices, const cl_device_id *devices, ContextErrorCB notify, void *userData, cl_int &errorCode) CreateContext() argument [all...] |
/third_party/ffmpeg/libavdevice/ |
H A D | pulse_audio_common.c | 54 AVDeviceInfoList *devices; member 158 if ((ret = av_dynarray_add_nofree(&info->devices->devices, in pulse_add_detected_device() 159 &info->devices->nb_devices, new_device)) < 0) { in pulse_add_detected_device() 197 int ff_pulse_audio_get_devices(AVDeviceInfoList *devices, const char *server, int output) in ff_pulse_audio_get_devices() argument 207 dev_list.devices = devices; in ff_pulse_audio_get_devices() 208 if (!devices) in ff_pulse_audio_get_devices() 210 devices->nb_devices = 0; in ff_pulse_audio_get_devices() 211 devices in ff_pulse_audio_get_devices() [all...] |
/third_party/mesa3d/src/tool/pps/ |
H A D | pps_device.cc | 24 drmDevicePtr devices[MAX_DRM_DEVICES] = {}; in device_count() local 25 int num_devices = drmGetDevices2(0, devices, MAX_DRM_DEVICES); in device_count() 26 drmFreeDevices(devices, num_devices); in device_count() 69 drmDevicePtr devices[MAX_DRM_DEVICES] = {}; in create_all() local 70 int num_devices = drmGetDevices2(0, devices, MAX_DRM_DEVICES); in create_all() 76 drmDevicePtr device = devices[gpu_num]; in create_all() 87 drmFreeDevices(devices, num_devices); in create_all() 99 drmDevicePtr devices[MAX_DRM_DEVICES] = {}; in create() local 100 int num_devices = drmGetDevices2(0, devices, MAX_DRM_DEVICES); in create() 103 drmDevicePtr device = devices[gpu_nu in create() [all...] |
/third_party/libdrm/tests/ |
H A D | drmdevice.c | 110 drmDevicePtr *devices; in main() local 118 printf("drmGetDevices2() has not found any devices (errno=%d)\n", in main() 125 devices = calloc(max_devices, sizeof(drmDevicePtr)); in main() 126 if (devices == NULL) { in main() 131 printf("--- Retrieving devices information (PCI device revision is ignored) ---\n"); in main() 132 ret = drmGetDevices2(0, devices, max_devices); in main() 135 free(devices); in main() 140 print_device_info(devices[i], i, false); in main() 143 if (devices[i]->available_nodes & 1 << j) { in main() 144 printf("--- Opening device node %s ---\n", devices[ in main() [all...] |
/third_party/vk-gl-cts/framework/common/ |
H A D | tcuLibDrm.cpp | 94 "Failed to query number of DRM devices in system"); in getDevices() 105 TCU_FAIL("Failed to query list of DRM devices in system"); in getDevices() 111 const char* LibDrm::findDeviceNode (drmDevicePtr *devices, int count, deInt64 major, deInt64 minor) const in findDeviceNode() argument 117 if (!(devices[i]->available_nodes & (1 << j))) in findDeviceNode() 122 int res = stat(devices[i]->nodes[j], &statBuf); in findDeviceNode() 130 return devices[i]->nodes[j]; in findDeviceNode() 138 void LibDrm::freeDevices (drmDevicePtr *devices, int count) const in freeDevices() argument 140 pFreeDevices(devices, count); in freeDevices() 141 delete[] devices; in freeDevices() 190 int LibDrm::intGetDevices (drmDevicePtr devices[], in argument [all...] |
/third_party/mesa3d/src/egl/main/ |
H A D | egldevice.c | 257 * software device, and physical devices are only exposed when libdrm is in _eglQueryDeviceStringEXT() 268 /* Physical devices are only exposed when libdrm is available. */ in _eglQueryDeviceStringEXT() 277 /* Do a fresh lookup for devices. 298 drmDevicePtr devices[64]; in _eglRefreshDeviceList() local 301 num_devs = drmGetDevices2(0, devices, ARRAY_SIZE(devices)); in _eglRefreshDeviceList() 303 if (!(devices[i]->available_nodes & (1 << DRM_NODE_RENDER))) in _eglRefreshDeviceList() 306 ret = _eglAddDRMDevice(devices[i], NULL); in _eglRefreshDeviceList() 310 drmFreeDevice(&devices[i]); in _eglRefreshDeviceList() 322 _EGLDevice **devices, in _eglQueryDevicesEXT() 321 _eglQueryDevicesEXT(EGLint max_devices, _EGLDevice **devices, EGLint *num_devices) _eglQueryDevicesEXT() argument [all...] |
/third_party/libinput/tools/ |
H A D | libinput-record-verify-yaml.py | 51 devices = self.yaml["devices"] 52 for d in devices: 72 sections = ["version", "ndevices", "libinput", "system", "devices"] 85 self.assertEqual(ndevices, len(self.yaml["devices"])) 109 devices = self.yaml["devices"] 110 for d in devices: 117 devices = self.yaml["devices"] [all...] |
H A D | libinput-list-kernel-devices.py | 41 devices = {} 49 devices[device.device_node] = name[1:-1] 54 for k in sorted(devices, key=versionsort): 55 print(f"{k}:\t{devices[k]}") 70 devices = [] 78 devices.append(HidDevice(name, driver, vendor, product, devpath)) 83 for hid in devices: 91 for hid in devices: 96 for d in devices: 106 parser = argparse.ArgumentParser(description="List kernel devices") [all...] |
H A D | libinput-replay.py | 78 # We don't assign this one to virtual devices 199 # immediately regardless. When replaying multiple devices, the first 251 devices = fetch(recording, "devices") 254 filter(lambda x: x is not None, [first_timestamp(d) for d in devices]) 256 # All devices need to start replaying at the same time, so let's find 260 for idx, d in enumerate(devices): 278 for d in devices: 317 devices = fetch(recording, "devices") [all...] |
/third_party/mesa3d/src/vulkan/device-select-layer/ |
H A D | device_select_wayland.c | 99 int device_select_find_wayland_pci_default(struct device_pci_info *devices, uint32_t device_count) in device_select_find_wayland_pci_default() argument 126 if (devices[i].has_bus_info) { in device_select_find_wayland_pci_default() 127 if (info.dev_info->businfo.pci->domain == devices[i].bus_info.domain && in device_select_find_wayland_pci_default() 128 info.dev_info->businfo.pci->bus == devices[i].bus_info.bus && in device_select_find_wayland_pci_default() 129 info.dev_info->businfo.pci->dev == devices[i].bus_info.dev && in device_select_find_wayland_pci_default() 130 info.dev_info->businfo.pci->func == devices[i].bus_info.func) in device_select_find_wayland_pci_default() 133 if (info.dev_info->deviceinfo.pci->vendor_id == devices[i].dev_info.vendor_id && in device_select_find_wayland_pci_default() 134 info.dev_info->deviceinfo.pci->device_id == devices[i].dev_info.device_id) in device_select_find_wayland_pci_default()
|
H A D | device_select_x11.c | 63 int device_select_find_xcb_pci_default(struct device_pci_info *devices, uint32_t device_count) in device_select_find_xcb_pci_default() argument 103 if (devices[i].has_bus_info) { in device_select_find_xcb_pci_default() 104 if (xdev->businfo.pci->domain == devices[i].bus_info.domain && in device_select_find_xcb_pci_default() 105 xdev->businfo.pci->bus == devices[i].bus_info.bus && in device_select_find_xcb_pci_default() 106 xdev->businfo.pci->dev == devices[i].bus_info.dev && in device_select_find_xcb_pci_default() 107 xdev->businfo.pci->func == devices[i].bus_info.func) { in device_select_find_xcb_pci_default() 111 if (xdev->deviceinfo.pci->vendor_id == devices[i].dev_info.vendor_id && in device_select_find_xcb_pci_default() 112 xdev->deviceinfo.pci->device_id == devices[i].dev_info.device_id) in device_select_find_xcb_pci_default()
|
H A D | device_select.h | 45 int device_select_find_xcb_pci_default(struct device_pci_info *devices, uint32_t device_count); 47 static inline int device_select_find_xcb_pci_default(struct device_pci_info *devices, uint32_t device_count) { return -1; } in device_select_find_xcb_pci_default() argument 51 int device_select_find_wayland_pci_default(struct device_pci_info *devices, uint32_t device_count); 53 static inline int device_select_find_wayland_pci_default(struct device_pci_info *devices, uint32_t device_count) { return -1; } in device_select_find_wayland_pci_default() argument
|
/third_party/vk-gl-cts/external/vulkancts/framework/vulkan/ |
H A D | vkDeviceUtil.cpp | 150 const vector<VkPhysicalDevice> devices = enumeratePhysicalDevices(vkInstance, instance); in chooseDeviceIndex() local 152 if (devices.empty()) in chooseDeviceIndex() 153 TCU_THROW(NotSupportedError, "No Vulkan devices available"); in chooseDeviceIndex() 156 if (!de::inBounds(deviceIdFromCmdLine, 0u, static_cast<deUint32>(devices.size() + 1))) in chooseDeviceIndex() 165 for (deUint32 deviceNdx = 0u; deviceNdx < devices.size(); ++deviceNdx) in chooseDeviceIndex() 167 const VkPhysicalDeviceProperties props = getPhysicalDeviceProperties(vkInstance, devices[deviceNdx]); in chooseDeviceIndex() 181 const vector<VkPhysicalDevice> devices = enumeratePhysicalDevices(vkInstance, instance); in chooseDevice() local 183 if (devices.empty()) in chooseDevice() 184 TCU_THROW(NotSupportedError, "No Vulkan devices available"); in chooseDevice() 187 return devices[deviceI in chooseDevice() [all...] |
/third_party/ltp/testcases/kernel/power_management/ |
H A D | runpwtests03.sh | 33 cpufiles=$(find /sys/devices/system/cpu/cpu"${cpu}"/cpufreq/ \ 61 /sys/devices/system/cpu/cpu${cpu}/cpufreq/scaling_governor 87 /sys/devices/system/cpu/cpu${cpu}/cpufreq/scaling_governor 98 /sys/devices/system/cpu/cpu${cpu}/cpufreq/scaling_setspeed 117 /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor` 151 if [ ! -d /sys/devices/system/cpu/cpu0/cpufreq ] ; then
|
/third_party/pulseaudio/src/modules/ |
H A D | module-devd-detect.c | 47 pa_hashmap *devices; member 67 pa_hashmap_put(u->devices, (void *)(uintptr_t)devnum, (void *)(uintptr_t)m->index); in line_callback() 73 if (!(modidx = (uint32_t)pa_hashmap_remove(u->devices, (void *)(uintptr_t)devnum))) in line_callback() 95 u->devices = pa_hashmap_new_full(pa_idxset_trivial_hash_func, pa_idxset_trivial_compare_func, NULL, (pa_free_cb_t) device_free); in pa__init() 125 if (u->devices) in pa__done() 126 pa_hashmap_free(u->devices); in pa__done()
|
/third_party/f2fs-tools/lib/ |
H A D | libf2fs_zoned.c | 92 struct device_info *dev = c.devices + i; in f2fs_get_zoned_model() 108 * The kernel does not support zoned block devices, but we have in f2fs_get_zoned_model() 180 struct device_info *dev = c.devices + i; in f2fs_get_zone_blocks() 225 ret = ioctl(c.devices[i].fd, BLKREPORTZONE, rep); in f2fs_report_zone() 242 struct device_info *dev = c.devices + j; in f2fs_report_zones() 295 struct device_info *dev = c.devices + j; in f2fs_check_zones() 427 struct device_info *dev = c.devices + i; in f2fs_reset_zone() 448 struct device_info *dev = c.devices + j; in f2fs_reset_zones() 518 if (c.devices[i].zoned_model != F2FS_ZONED_HM) { in f2fs_get_usable_segments() 519 usable_segs += c.devices[ in f2fs_get_usable_segments() [all...] |
/third_party/mesa3d/src/intel/dev/ |
H A D | intel_device_info_override_test.c | 41 drmDevicePtr devices[8]; in main() local 51 max_devices = drmGetDevices2(0, devices, ARRAY_SIZE(devices)); in main() 59 const char *path = devices[i]->nodes[DRM_NODE_RENDER]; in main()
|
/third_party/mesa3d/src/gallium/frontends/clover/api/ |
H A D | program.cpp | 73 return !count(dev, prog.devices()); in validate_build_common() 141 return !count(dev, ctx.devices()); in clCreateProgramWithBinary() 191 // Compute the highest OpenCL version supported by all devices associated to in CreateProgramWithILKHR() 194 for (const device &dev : ctx.devices()) { in CreateProgramWithILKHR() 234 return !count(dev, ctx.devices()); in clCreateProgramWithBuiltInKernels() 274 (d_devs ? objs(d_devs, num_devs) : ref_vector<device>(prog.devices())); in clBuildProgram() 308 (d_devs ? objs(d_devs, num_devs) : ref_vector<device>(prog.devices())); in clCompileProgram() 435 (d_devs ? objs(d_devs, num_devs) : ref_vector<device>(ctx.devices())); in clLinkProgram() 493 buf.as_scalar<cl_uint>() = (prog.devices().size() ? in clGetProgramInfo() 494 prog.devices() in clGetProgramInfo() [all...] |
H A D | memory.cpp | 119 map(std::mem_fn(&device::max_mem_alloc_size), ctx.devices()) in clCreateBufferWithProperties() 177 if (!any_of(std::mem_fn(&device::image_support), ctx.devices())) in clCreateImageWithProperties() 224 }, ctx.devices())) in clCreateImageWithProperties() 238 }, ctx.devices())) in clCreateImageWithProperties() 254 }, ctx.devices())) in clCreateImageWithProperties() 274 }, ctx.devices())) in clCreateImageWithProperties() 291 }, ctx.devices())) in clCreateImageWithProperties() 312 }, ctx.devices())) in clCreateImageWithProperties() 464 // TODO: once we support devices with lower levels of SVM, we have to in clGetMemObjectInfo() 467 mem.context().devices()); in clGetMemObjectInfo() [all...] |