Home
last modified time | relevance | path

Searched refs:devs (Results 1 – 25 of 63) sorted by relevance

123

/external/libusb/examples/
Dlsusb.c25 static void print_devs(libusb_device **devs) in print_devs() argument
30 while ((dev = devs[i++]) != NULL) { in print_devs()
46 libusb_device **devs; in main() local
54 cnt = libusb_get_device_list(NULL, &devs); in main()
58 print_devs(devs); in main()
59 libusb_free_device_list(devs, 1); in main()
/external/mesa3d/src/gallium/state_trackers/clover/api/
Dprogram.cpp58 const cl_device_id *devs, const size_t *lengths, in clCreateProgramWithBinary() argument
64 if (!count || !devs || !lengths || !binaries) in clCreateProgramWithBinary()
69 }, devs, devs + count)) in clCreateProgramWithBinary()
105 return new program(*ctx, { devs, devs + count }, in clCreateProgramWithBinary()
135 clBuildProgram(cl_program prog, cl_uint count, const cl_device_id *devs, in clBuildProgram() argument
141 if (bool(count) != bool(devs) || in clBuildProgram()
145 if (devs) { in clBuildProgram()
148 }, devs, devs + count)) in clBuildProgram()
151 prog->build({ devs, devs + count }); in clBuildProgram()
153 prog->build(prog->ctx.devs); in clBuildProgram()
Dcontext.cpp30 const cl_device_id *devs, in clCreateContext() argument
36 if (!devs || !num_devs || in clCreateContext()
40 if (any_of(is_zero<cl_device_id>(), devs, devs + num_devs)) in clCreateContext()
52 std::vector<cl_device_id>(devs, devs + num_devs)); in clCreateContext()
108 return scalar_property<cl_uint>(buf, size, size_ret, ctx->devs.size()); in clGetContextInfo()
111 return vector_property<cl_device_id>(buf, size, size_ret, ctx->devs); in clGetContextInfo()
Ddevice.cpp34 std::vector<cl_device_id> devs; in clGetDeviceIDs() local
48 devs.push_back(&dev); in clGetDeviceIDs()
51 if (devs.empty()) in clGetDeviceIDs()
56 *num_devices = devs.size(); in clGetDeviceIDs()
58 std::copy_n(devs.begin(), in clGetDeviceIDs()
59 std::min((cl_uint)devs.size(), num_entries), in clGetDeviceIDs()
/external/chromium_org/third_party/mesa/src/src/gallium/state_trackers/clover/api/
Dprogram.cpp58 const cl_device_id *devs, const size_t *lengths, in clCreateProgramWithBinary() argument
64 if (!count || !devs || !lengths || !binaries) in clCreateProgramWithBinary()
69 }, devs, devs + count)) in clCreateProgramWithBinary()
105 return new program(*ctx, { devs, devs + count }, in clCreateProgramWithBinary()
135 clBuildProgram(cl_program prog, cl_uint count, const cl_device_id *devs, in clBuildProgram() argument
141 if (bool(count) != bool(devs) || in clBuildProgram()
145 if (devs) { in clBuildProgram()
148 }, devs, devs + count)) in clBuildProgram()
151 prog->build({ devs, devs + count }); in clBuildProgram()
153 prog->build(prog->ctx.devs); in clBuildProgram()
Dcontext.cpp30 const cl_device_id *devs, in clCreateContext() argument
36 if (!devs || !num_devs || in clCreateContext()
40 if (any_of(is_zero<cl_device_id>(), devs, devs + num_devs)) in clCreateContext()
52 std::vector<cl_device_id>(devs, devs + num_devs)); in clCreateContext()
108 return scalar_property<cl_uint>(buf, size, size_ret, ctx->devs.size()); in clGetContextInfo()
111 return vector_property<cl_device_id>(buf, size, size_ret, ctx->devs); in clGetContextInfo()
Ddevice.cpp34 std::vector<cl_device_id> devs; in clGetDeviceIDs() local
48 devs.push_back(&dev); in clGetDeviceIDs()
51 if (devs.empty()) in clGetDeviceIDs()
56 *num_devices = devs.size(); in clGetDeviceIDs()
58 std::copy_n(devs.begin(), in clGetDeviceIDs()
59 std::min((cl_uint)devs.size(), num_entries), in clGetDeviceIDs()
/external/mesa3d/src/gallium/state_trackers/clover/core/
Dcontext.cpp30 const std::vector<device *> &devs) : in _cl_context() argument
31 devs(devs), __props(props) { in _cl_context()
36 return std::count(devs.begin(), devs.end(), dev); in has_device()
Ddevice.hpp89 return devs.begin(); in begin()
93 return devs.end(); in end()
97 return devs.front(); in front()
101 return devs.back(); in back()
105 std::vector<device> devs; member in clover::device_registry
Dprogram.cpp34 const std::vector<clover::device *> &devs, in _cl_program() argument
40 devs.begin(), devs.end(), binaries.begin()); in _cl_program()
44 _cl_program::build(const std::vector<clover::device *> &devs) { in build() argument
48 for (auto dev : devs) { in build()
/external/chromium_org/third_party/mesa/src/src/gallium/state_trackers/clover/core/
Dcontext.cpp30 const std::vector<device *> &devs) : in _cl_context() argument
31 devs(devs), __props(props) { in _cl_context()
36 return std::count(devs.begin(), devs.end(), dev); in has_device()
Ddevice.hpp89 return devs.begin(); in begin()
93 return devs.end(); in end()
97 return devs.front(); in front()
101 return devs.back(); in back()
105 std::vector<device> devs; member in clover::device_registry
Dprogram.cpp34 const std::vector<clover::device *> &devs, in _cl_program() argument
40 devs.begin(), devs.end(), binaries.begin()); in _cl_program()
44 _cl_program::build(const std::vector<clover::device *> &devs) { in build() argument
48 for (auto dev : devs) { in build()
/external/libpcap/
Dpcap-canusb-linux.c92 libusb_device** devs; in canusb_findalldevs() local
105 cnt = libusb_get_device_list(fdctx,&devs); in canusb_findalldevs()
112 libusb_get_device_descriptor(devs[i],&desc); in canusb_findalldevs()
120 if ((ret = libusb_open(devs[i],&dh)) == 0) in canusb_findalldevs()
134 libusb_free_device_list(devs,1); in canusb_findalldevs()
141 libusb_free_device_list(devs,1); in canusb_findalldevs()
148 libusb_device** devs; in canusb_opendevice() local
152 cnt = libusb_get_device_list(ctx,&devs); in canusb_opendevice()
158 libusb_get_device_descriptor(devs[i],&desc); in canusb_opendevice()
166 if (libusb_open(devs[i],&dh) != 0) continue; in canusb_opendevice()
[all …]
/external/chromium_org/third_party/libjingle/source/talk/media/devices/
Dwin32devicemanager.cc88 static bool GetCoreAudioDevices(bool input, std::vector<Device>* devs);
89 static bool GetWaveDevices(bool input, std::vector<Device>* devs);
151 std::vector<Device>* devs) { in GetAudioDevices() argument
152 devs->clear(); in GetAudioDevices()
155 if (!GetCoreAudioDevices(input, devs)) in GetAudioDevices()
158 if (!GetWaveDevices(input, devs)) in GetAudioDevices()
161 return FilterDevices(devs, kFilteredAudioDevicesName); in GetAudioDevices()
260 bool input, std::vector<Device>* devs) { in GetCoreAudioDevices() argument
287 devs->push_back(dev); in GetCoreAudioDevices()
305 bool GetWaveDevices(bool input, std::vector<Device>* devs) { in GetWaveDevices() argument
[all …]
Dmobiledevicemanager.cc37 virtual bool GetVideoCaptureDevices(std::vector<Device>* devs);
48 bool MobileDeviceManager::GetVideoCaptureDevices(std::vector<Device>* devs) { in GetVideoCaptureDevices() argument
49 devs->clear(); in GetVideoCaptureDevices()
61 devs->push_back(Device(name, id)); in GetVideoCaptureDevices()
Dfakedevicemanager.h65 virtual bool GetAudioInputDevices(std::vector<Device>* devs) { in GetAudioInputDevices() argument
66 *devs = input_devices_; in GetAudioInputDevices()
69 virtual bool GetAudioOutputDevices(std::vector<Device>* devs) { in GetAudioOutputDevices() argument
70 *devs = output_devices_; in GetAudioOutputDevices()
79 virtual bool GetVideoCaptureDevices(std::vector<Device>* devs) { in GetVideoCaptureDevices() argument
80 *devs = vidcap_devices_; in GetVideoCaptureDevices()
Dmacdevicemanager.cc94 std::vector<Device>* devs) { in GetAudioDevices() argument
95 devs->clear(); in GetAudioDevices()
104 devs->push_back(Device(name, dev_ids[i])); in GetAudioDevices()
107 return FilterDevices(devs, kFilteredAudioDevicesName); in GetAudioDevices()
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/pipe-loader/
Dpipe_loader.c45 pipe_loader_probe(struct pipe_loader_device **devs, int ndev) in pipe_loader_probe() argument
50 n += backends[i](&devs[n], MAX2(0, ndev - n)); in pipe_loader_probe()
56 pipe_loader_release(struct pipe_loader_device **devs, int ndev) in pipe_loader_release() argument
61 devs[i]->ops->release(&devs[i]); in pipe_loader_release()
Dpipe_loader.h76 pipe_loader_probe(struct pipe_loader_device **devs, int ndev);
100 pipe_loader_release(struct pipe_loader_device **devs, int ndev);
112 pipe_loader_sw_probe(struct pipe_loader_device **devs, int ndev);
126 pipe_loader_drm_probe(struct pipe_loader_device **devs, int ndev);
/external/mesa3d/src/gallium/auxiliary/pipe-loader/
Dpipe_loader.c45 pipe_loader_probe(struct pipe_loader_device **devs, int ndev) in pipe_loader_probe() argument
50 n += backends[i](&devs[n], MAX2(0, ndev - n)); in pipe_loader_probe()
56 pipe_loader_release(struct pipe_loader_device **devs, int ndev) in pipe_loader_release() argument
61 devs[i]->ops->release(&devs[i]); in pipe_loader_release()
Dpipe_loader.h76 pipe_loader_probe(struct pipe_loader_device **devs, int ndev);
100 pipe_loader_release(struct pipe_loader_device **devs, int ndev);
112 pipe_loader_sw_probe(struct pipe_loader_device **devs, int ndev);
126 pipe_loader_drm_probe(struct pipe_loader_device **devs, int ndev);
/external/chromium_org/chrome/browser/resources/cryptotoken/
Dgnubbies.js133 function enumerated(namespace, existingDeviceIds, devs) { argument
140 devs = [];
143 console.log(UTIL_fmt('Enumerated ' + devs.length + ' gnubbies'));
144 console.log(devs);
149 for (var i = 0; i < devs.length; ++i) {
150 var deviceId = deviceToDeviceId(devs[i]);
152 presentDevs[deviceId.device] = devs[i];
170 self.devs_[namespace] = devs;
182 return function(devs) { argument
183 enumerated(namespace, deviceIds, devs);
Dgnubbydevice.js133 var devs = [];
141 devs.push(
146 cb(devs);
/external/wpa_supplicant_8/wpa_supplicant/
Dwin_if_list.c146 pcap_if_t *devs, *dev; in pcap_enum_devs() local
149 if (pcap_findalldevs(&devs, err) < 0) { in pcap_enum_devs()
154 for (dev = devs; dev; dev = dev->next) { in pcap_enum_devs()
158 pcap_freealldevs(devs); in pcap_enum_devs()

123