Home
last modified time | relevance | path

Searched refs:cap (Results 1 – 25 of 901) sorted by relevance

12345678910>>...37

/external/ltp/testcases/kernel/device-drivers/v4l/user_space/
Dtest_VIDIOC_QUERYCAP.c63 struct v4l2_capability cap; in test_VIDIOC_QUERYCAP() local
66 memset(&cap, 0xff, sizeof(cap)); in test_VIDIOC_QUERYCAP()
68 ret = ioctl(get_video_fd(), VIDIOC_QUERYCAP, &cap); in test_VIDIOC_QUERYCAP()
76 cap.driver, in test_VIDIOC_QUERYCAP()
77 cap.card, in test_VIDIOC_QUERYCAP()
78 cap.bus_info, in test_VIDIOC_QUERYCAP()
79 (cap.version >> 16) & 0xFF, in test_VIDIOC_QUERYCAP()
80 (cap.version >> 8) & 0xFF, in test_VIDIOC_QUERYCAP()
81 cap.version & 0xFF, in test_VIDIOC_QUERYCAP()
82 cap.capabilities, in test_VIDIOC_QUERYCAP()
[all …]
Dtest_VIDIOC_REQBUFS.c36 struct v4l2_capability cap; in do_VIDIOC_REQBUFS_capture_mmap() local
40 memset(&cap, 0, sizeof(cap)); in do_VIDIOC_REQBUFS_capture_mmap()
42 ret_cap = ioctl(get_video_fd(), VIDIOC_QUERYCAP, &cap); in do_VIDIOC_REQBUFS_capture_mmap()
57 (cap.capabilities & V4L2_CAP_STREAMING) && in do_VIDIOC_REQBUFS_capture_mmap()
58 (cap.capabilities & V4L2_CAP_VIDEO_CAPTURE)) { in do_VIDIOC_REQBUFS_capture_mmap()
61 CU_ASSERT(cap.capabilities & V4L2_CAP_STREAMING); in do_VIDIOC_REQBUFS_capture_mmap()
105 struct v4l2_capability cap; in do_VIDIOC_REQBUFS_capture_userptr() local
109 memset(&cap, 0, sizeof(cap)); in do_VIDIOC_REQBUFS_capture_userptr()
111 ret_cap = ioctl(get_video_fd(), VIDIOC_QUERYCAP, &cap); in do_VIDIOC_REQBUFS_capture_userptr()
126 (cap.capabilities & V4L2_CAP_STREAMING) && in do_VIDIOC_REQBUFS_capture_userptr()
[all …]
Dtest_VIDIOC_QUERYBUF.c251 struct v4l2_capability cap; in test_VIDIOC_QUERYBUF_capture_mmap() local
254 memset(&cap, 0, sizeof(cap)); in test_VIDIOC_QUERYBUF_capture_mmap()
256 ret_cap = ioctl(get_video_fd(), VIDIOC_QUERYCAP, &cap); in test_VIDIOC_QUERYBUF_capture_mmap()
260 (cap.capabilities & V4L2_CAP_STREAMING) && in test_VIDIOC_QUERYBUF_capture_mmap()
261 (cap.capabilities & V4L2_CAP_VIDEO_CAPTURE)) { in test_VIDIOC_QUERYBUF_capture_mmap()
289 struct v4l2_capability cap; in test_VIDIOC_QUERYBUF_capture_userptr() local
293 memset(&cap, 0, sizeof(cap)); in test_VIDIOC_QUERYBUF_capture_userptr()
295 ret_cap = ioctl(get_video_fd(), VIDIOC_QUERYCAP, &cap); in test_VIDIOC_QUERYBUF_capture_userptr()
310 (cap.capabilities & V4L2_CAP_STREAMING) && in test_VIDIOC_QUERYBUF_capture_userptr()
311 (cap.capabilities & V4L2_CAP_VIDEO_CAPTURE) && ret_req == 0) { in test_VIDIOC_QUERYBUF_capture_userptr()
[all …]
/external/ltp/lib/
Dtst_capability.c26 static void do_cap_drop(uint32_t *set, uint32_t mask, const struct tst_cap *cap) in do_cap_drop() argument
29 tst_res(TINFO, "Dropping %s(%d)", cap->name, cap->id); in do_cap_drop()
35 const struct tst_cap *cap) in do_cap_req() argument
38 tst_brk(TCONF, "Need %s(%d)", cap->name, cap->id); in do_cap_req()
41 tst_res(TINFO, "Permitting %s(%d)", cap->name, cap->id); in do_cap_req()
46 void tst_cap_action(struct tst_cap *cap) in tst_cap_action() argument
54 uint32_t act = cap->action; in tst_cap_action()
55 uint32_t *pE = &new[CAP_TO_INDEX(cap->id)].effective; in tst_cap_action()
56 uint32_t *pP = &new[CAP_TO_INDEX(cap->id)].permitted; in tst_cap_action()
57 uint32_t mask = CAP_TO_MASK(cap->id); in tst_cap_action()
[all …]
/external/webrtc/modules/video_capture/linux/
Ddevice_info_v4l2.cc44 struct v4l2_capability cap; in NumberOfDevices() local
51 if (ioctl(fd, VIDIOC_QUERYCAP, &cap) < 0 || in NumberOfDevices()
52 !(cap.device_caps & V4L2_CAP_VIDEO_CAPTURE)) { in NumberOfDevices()
77 struct v4l2_capability cap; in GetDeviceName() local
82 if (ioctl(fd, VIDIOC_QUERYCAP, &cap) < 0 || in GetDeviceName()
83 !(cap.device_caps & V4L2_CAP_VIDEO_CAPTURE)) { in GetDeviceName()
102 if (ioctl(fd, VIDIOC_QUERYCAP, &cap) < 0) { in GetDeviceName()
113 memcpy(cameraName, cap.card, sizeof(cap.card)); in GetDeviceName()
122 if (cap.bus_info[0] != 0) { // may not available in all drivers in GetDeviceName()
124 size_t len = strlen(reinterpret_cast<const char*>(cap.bus_info)); in GetDeviceName()
[all …]
/external/tpm2-tss/test/unit/
DTPMS-marshal.c26 TPMS_CAPABILITY_DATA cap = {0}; in tpms_marshal_success() local
29 uint8_t buffer2[sizeof(cap)] = { 0 }; in tpms_marshal_success()
49 cap.capability = TPM2_CAP_ECC_CURVES; in tpms_marshal_success()
50 cap.data.eccCurves.count = 3; in tpms_marshal_success()
51 cap.data.eccCurves.eccCurves[0] = TPM2_ECC_NIST_P256; in tpms_marshal_success()
52 cap.data.eccCurves.eccCurves[1] = TPM2_ECC_NIST_P384; in tpms_marshal_success()
53 cap.data.eccCurves.eccCurves[2] = TPM2_ECC_NIST_P521; in tpms_marshal_success()
56 rc = Tss2_MU_TPMS_CAPABILITY_DATA_Marshal(&cap, buffer2, buffer_size2, NULL); in tpms_marshal_success()
72 TPMS_CAPABILITY_DATA cap = {0}; in tpms_marshal_success_offset() local
73 uint8_t buffer[sizeof(alg) + sizeof(cap) + 10] = { 0 }; in tpms_marshal_success_offset()
[all …]
/external/mesa3d/src/mesa/main/
Denable.h44 _mesa_set_enable( struct gl_context* ctx, GLenum cap, GLboolean state );
47 _mesa_Disable( GLenum cap );
50 _mesa_Enable( GLenum cap );
53 _mesa_IsEnabled( GLenum cap );
56 _mesa_set_enablei(struct gl_context *ctx, GLenum cap, GLuint index, GLboolean state);
59 _mesa_Disablei( GLenum cap, GLuint index );
62 _mesa_Enablei( GLenum cap, GLuint index );
65 _mesa_IsEnabledi( GLenum cap, GLuint index );
68 _mesa_EnableClientState( GLenum cap );
71 _mesa_EnableClientStateiEXT( GLenum cap, GLuint index );
[all …]
/external/rust/crates/octets/src/
Dlib.rs179 if len > self.cap() { in get_varint()
201 if self.cap() < len { in get_bytes()
241 if self.cap() < len { in peek_bytes()
255 if len > self.cap() { in slice()
264 if len > self.cap() { in slice_last()
268 let cap = self.cap(); in slice_last() localVariable
269 Ok(&self.buf[cap - len..]) in slice_last()
274 if skip > self.cap() { in skip()
284 pub fn cap(&self) -> usize { in cap() method
411 if len > self.cap() { in get_varint()
[all …]
/external/wpa_supplicant_8/src/ap/
Dieee802_11_vht.c25 struct ieee80211_vht_capabilities *cap; in hostapd_eid_vht_capabilities() local
46 *pos++ = sizeof(*cap); in hostapd_eid_vht_capabilities()
48 cap = (struct ieee80211_vht_capabilities *) pos; in hostapd_eid_vht_capabilities()
49 os_memset(cap, 0, sizeof(*cap)); in hostapd_eid_vht_capabilities()
50 cap->vht_capabilities_info = host_to_le32( in hostapd_eid_vht_capabilities()
56 hapd_nsts = le_to_host32(cap->vht_capabilities_info); in hostapd_eid_vht_capabilities()
58 cap->vht_capabilities_info &= in hostapd_eid_vht_capabilities()
61 cap->vht_capabilities_info |= in hostapd_eid_vht_capabilities()
66 os_memcpy(&cap->vht_supported_mcs_set, mode->vht_mcs_set, 8); in hostapd_eid_vht_capabilities()
68 pos += sizeof(*cap); in hostapd_eid_vht_capabilities()
[all …]
Dieee802_11_he.c67 struct ieee80211_he_capabilities *cap; in ieee80211_invalid_he_cap_size() local
71 cap = (struct ieee80211_he_capabilities *) buf; in ieee80211_invalid_he_cap_size()
72 cap_len = sizeof(*cap) - sizeof(cap->optional); in ieee80211_invalid_he_cap_size()
76 cap_len += ieee80211_he_mcs_set_size(cap->he_phy_capab_info); in ieee80211_invalid_he_cap_size()
82 cap->he_phy_capab_info); in ieee80211_invalid_he_cap_size()
91 struct ieee80211_he_capabilities *cap; in hostapd_eid_he_capab() local
100 ie_size = sizeof(*cap) - sizeof(cap->optional); in hostapd_eid_he_capab()
129 cap = (struct ieee80211_he_capabilities *) pos; in hostapd_eid_he_capab()
130 os_memset(cap, 0, sizeof(*cap)); in hostapd_eid_he_capab()
132 os_memcpy(cap->he_mac_capab_info, mode->he_capab[opmode].mac_cap, in hostapd_eid_he_capab()
[all …]
/external/libcap/progs/
Dcapsh.c59 unsigned cap; in display_prctl_set() local
64 for (sep = "", cap=0; (set = fn(cap)) >= 0; cap++) { in display_prctl_set()
70 ptr = cap_to_name(cap); in display_prctl_set()
72 printf("%s%u", sep, cap); in display_prctl_set()
79 if (!cap) { in display_prctl_set()
254 cap_value_t cap; in arg_drop() local
257 if (cap_from_name(ptr, &cap) != 0) { in arg_drop()
265 status = cap_drop_bound(cap); in arg_drop()
271 fprintf(stderr, "failed to drop [%s=%u]\n", ptr, cap); in arg_drop()
321 cap_value_t cap; in arg_change_amb() local
[all …]
/external/pdfium/third_party/bigint/
DNumberlikeArray.hh37 Index cap; member in NumberlikeArray
44 NumberlikeArray(Index c) : cap(c), len(0) { in NumberlikeArray()
45 blk = (cap > 0) ? (new Blk[cap]) : NULL; in NumberlikeArray()
52 NumberlikeArray() : cap(0), len(0) { in NumberlikeArray()
79 Index getCapacity() const { return cap; } in getCapacity()
103 if (c > cap) { in allocate()
107 cap = c; in allocate()
108 blk = new Blk[cap]; in allocate()
115 if (c > cap) { in allocateAndCopy()
118 cap = c; in allocateAndCopy()
[all …]
/external/tensorflow/third_party/absl/abseil-cpp/absl/strings/internal/
Dcord_rep_btree_reader_test.cc52 const size_t cap = CordRepBtree::kMaxCapacity; in TEST() local
53 int counts[] = {1, 2, cap, cap * cap, cap * cap + 1, cap * cap * 2 + 17}; in TEST()
88 const size_t cap = CordRepBtree::kMaxCapacity; in TEST() local
89 int counts[] = {1, 2, cap, cap * cap, cap * cap + 1, cap * cap * 2 + 17}; in TEST()
134 const size_t cap = CordRepBtree::kMaxCapacity; in TEST() local
135 int counts[] = {1, 2, cap, cap * cap, cap * cap + 1, cap * cap * 2 + 17}; in TEST()
247 const size_t cap = CordRepBtree::kMaxCapacity; in TEST() local
248 int counts[] = {1, 2, cap, cap * cap + 1, cap * cap * cap * 2 + 17}; in TEST()
255 for (size_t read_size : {kChars - 1, kChars, kChars + 7, cap * cap}) { in TEST()
/external/angle/third_party/abseil-cpp/absl/strings/internal/
Dcord_rep_btree_reader_test.cc52 const size_t cap = CordRepBtree::kMaxCapacity; in TEST() local
53 size_t counts[] = {1, 2, cap, cap * cap, cap * cap + 1, cap * cap * 2 + 17}; in TEST()
88 const size_t cap = CordRepBtree::kMaxCapacity; in TEST() local
89 size_t counts[] = {1, 2, cap, cap * cap, cap * cap + 1, cap * cap * 2 + 17}; in TEST()
134 const size_t cap = CordRepBtree::kMaxCapacity; in TEST() local
135 size_t counts[] = {1, 2, cap, cap * cap, cap * cap + 1, cap * cap * 2 + 17}; in TEST()
247 const size_t cap = CordRepBtree::kMaxCapacity; in TEST() local
248 size_t counts[] = {1, 2, cap, cap * cap + 1, cap * cap * cap * 2 + 17}; in TEST()
255 for (size_t read_size : {kChars - 1, kChars, kChars + 7, cap * cap}) { in TEST()
/external/webrtc/third_party/abseil-cpp/absl/strings/internal/
Dcord_rep_btree_reader_test.cc52 const size_t cap = CordRepBtree::kMaxCapacity; in TEST() local
53 size_t counts[] = {1, 2, cap, cap * cap, cap * cap + 1, cap * cap * 2 + 17}; in TEST()
88 const size_t cap = CordRepBtree::kMaxCapacity; in TEST() local
89 size_t counts[] = {1, 2, cap, cap * cap, cap * cap + 1, cap * cap * 2 + 17}; in TEST()
134 const size_t cap = CordRepBtree::kMaxCapacity; in TEST() local
135 size_t counts[] = {1, 2, cap, cap * cap, cap * cap + 1, cap * cap * 2 + 17}; in TEST()
247 const size_t cap = CordRepBtree::kMaxCapacity; in TEST() local
248 size_t counts[] = {1, 2, cap, cap * cap + 1, cap * cap * cap * 2 + 17}; in TEST()
255 for (size_t read_size : {kChars - 1, kChars, kChars + 7, cap * cap}) { in TEST()
/external/abseil-cpp/absl/strings/internal/
Dcord_rep_btree_reader_test.cc52 const size_t cap = CordRepBtree::kMaxCapacity; in TEST() local
53 int counts[] = {1, 2, cap, cap * cap, cap * cap + 1, cap * cap * 2 + 17}; in TEST()
88 const size_t cap = CordRepBtree::kMaxCapacity; in TEST() local
89 int counts[] = {1, 2, cap, cap * cap, cap * cap + 1, cap * cap * 2 + 17}; in TEST()
134 const size_t cap = CordRepBtree::kMaxCapacity; in TEST() local
135 int counts[] = {1, 2, cap, cap * cap, cap * cap + 1, cap * cap * 2 + 17}; in TEST()
247 const size_t cap = CordRepBtree::kMaxCapacity; in TEST() local
248 int counts[] = {1, 2, cap, cap * cap + 1, cap * cap * cap * 2 + 17}; in TEST()
255 for (size_t read_size : {kChars - 1, kChars, kChars + 7, cap * cap}) { in TEST()
/external/cronet/third_party/abseil-cpp/absl/strings/internal/
Dcord_rep_btree_reader_test.cc52 const size_t cap = CordRepBtree::kMaxCapacity; in TEST() local
53 size_t counts[] = {1, 2, cap, cap * cap, cap * cap + 1, cap * cap * 2 + 17}; in TEST()
88 const size_t cap = CordRepBtree::kMaxCapacity; in TEST() local
89 size_t counts[] = {1, 2, cap, cap * cap, cap * cap + 1, cap * cap * 2 + 17}; in TEST()
134 const size_t cap = CordRepBtree::kMaxCapacity; in TEST() local
135 size_t counts[] = {1, 2, cap, cap * cap, cap * cap + 1, cap * cap * 2 + 17}; in TEST()
247 const size_t cap = CordRepBtree::kMaxCapacity; in TEST() local
248 size_t counts[] = {1, 2, cap, cap * cap + 1, cap * cap * cap * 2 + 17}; in TEST()
255 for (size_t read_size : {kChars - 1, kChars, kChars + 7, cap * cap}) { in TEST()
/external/rust/crates/regex/tests/
Dapi.rs95 let cap = re.captures(t!("abc")).unwrap(); in capture_index() localVariable
96 assert_eq!(&cap[0], t!("abc")); in capture_index()
97 assert_eq!(&cap[1], t!("abc")); in capture_index()
98 assert_eq!(&cap["name"], t!("abc")); in capture_index()
106 let cap = re.captures(t!("abc")).unwrap(); in capture_index_panic_usize() localVariable
107 let _ = cap[2]; in capture_index_panic_usize()
115 let cap = re.captures(t!("abc")).unwrap(); in capture_index_panic_name() localVariable
116 let _ = cap["bad name"]; in capture_index_panic_name()
134 let cap = re.captures(t!("abc")).unwrap(); in capture_misc() localVariable
136 assert_eq!(5, cap.len()); in capture_misc()
[all …]
/external/libcap/go/
DMakefile18 all: PSXGOPACKAGE CAPGOPACKAGE web setid gowns compare-cap try-launching psx-signals
37 vendor/$(IMPORTDIR)/cap: vendor/modules.txt
38 ln -sf $(topdir)/cap vendor/$(IMPORTDIR)
39 touch ../cap
44 good-names.go: $(topdir)/libcap/cap_names.h vendor/$(IMPORTDIR)/cap mknames.go
46 diff -u ../cap/names.go $@
51 CAPGOPACKAGE: vendor/$(IMPORTDIR)/cap ../cap/*.go good-names.go $(PSXGOPACKAGE)
56 compare-cap: compare-cap.go CAPGOPACKAGE
95 …="$(CC)" CGO_ENABLED="$(CGO_REQUIRED)" $(CGO_LDFLAGS_ALLOW) $(GO) test -mod=vendor $(IMPORTDIR)/cap
96 LD_LIBRARY_PATH=../libcap ./compare-cap
[all …]
/external/ltp/testcases/kernel/sched/eas/
Dutil.c58 static int read_capacity_sched_domains(int cpu, unsigned int *cap) in read_capacity_sched_domains() argument
116 if (sscanf(tmp2,"%d", cap) != 1) { in read_capacity_sched_domains()
129 static int read_capacity_sysfs(int cpu, unsigned int *cap) in read_capacity_sysfs() argument
135 return SAFE_FILE_LINES_SCANF(path, "%u", cap); in read_capacity_sysfs()
138 static int read_cpu_capacity(int cpu, unsigned int *cap) in read_cpu_capacity() argument
140 int ret = read_capacity_sched_domains(cpu, cap); in read_cpu_capacity()
147 ret = read_capacity_sysfs(cpu, cap); in read_cpu_capacity()
161 unsigned int cap, smallest = -1; in find_cpus_with_capacity() local
167 if (read_cpu_capacity(i, &cap)) in find_cpus_with_capacity()
170 if (cap < smallest) { in find_cpus_with_capacity()
[all …]
/external/musl/src/malloc/mallocng/
Dmallinfo.c69 #define cap(x) ((x > INT_MAX) ? INT_MAX : x) macro
75 mi.arena = cap(mi2.arena); in mallinfo()
76 mi.ordblks = cap(mi2.ordblks); in mallinfo()
77 mi.smblks = cap(mi2.smblks); in mallinfo()
78 mi.hblks = cap(mi2.hblks); in mallinfo()
79 mi.hblkhd = cap(mi2.hblkhd); in mallinfo()
80 mi.usmblks = cap(mi2.usmblks); in mallinfo()
81 mi.fsmblks = cap(mi2.fsmblks); in mallinfo()
82 mi.uordblks = cap(mi2.uordblks); in mallinfo()
83 mi.fordblks = cap(mi2.fordblks); in mallinfo()
[all …]
/external/grpc-grpc/src/core/lib/iomgr/
Derror.cc551 static void append_chr(char c, char** s, size_t* sz, size_t* cap) { in append_chr() argument
552 if (*sz == *cap) { in append_chr()
553 *cap = GPR_MAX(8, 3 * *cap / 2); in append_chr()
554 *s = static_cast<char*>(gpr_realloc(*s, *cap)); in append_chr()
559 static void append_str(const char* str, char** s, size_t* sz, size_t* cap) { in append_str() argument
561 append_chr(*c, s, sz, cap); in append_str()
566 size_t* cap) { in append_esc_str() argument
568 append_chr('"', s, sz, cap); in append_esc_str()
571 append_chr('\\', s, sz, cap); in append_esc_str()
574 append_chr('b', s, sz, cap); in append_esc_str()
[all …]
/external/python/pyasn1-modules/tests/
Dtest_rfc8017.py47 for cap in asn1Object:
48 assert cap['algorithm'] in rfc5280.algorithmIdentifierMap.keys()
49 if cap['parameters'].hasValue():
50 p, rest = der_decode(cap['parameters'],
51 asn1Spec=rfc5280.algorithmIdentifierMap[cap['algorithm']])
55 assert der_encode(p) == cap['parameters']
57 if cap['algorithm'] == rfc8017.id_RSAES_OAEP:
70 for cap in asn1Object:
71 if cap['algorithm'] == rfc8017.id_RSAES_OAEP:
72 p = cap['parameters']
/external/autotest/client/cros/video/
Darc_device_capability.py60 def get_capability(self, cap): argument
69 return self.capabilities[cap]
71 raise error.TestFail('Unexpected capability: %s' % cap)
73 def ensure_capability(self, cap): argument
79 if not have_capability(cap):
80 raise error.TestNAError('Missing Capability: %s' % cap)
82 def have_capability(self, cap): argument
86 return self.get_capability(cap) == 'yes'
/external/rust/crates/flate2/src/
Dbufreader.rs20 cap: usize, field
32 &format_args!("{}/{}", self.cap - self.pos, self.buf.len()), in fmt()
48 cap: 0, in with_buf()
68 self.cap = 0; in reset()
78 if self.pos == self.cap && buf.len() >= self.buf.len() { in read()
94 if self.pos == self.cap { in fill_buf()
95 self.cap = self.inner.read(&mut self.buf)?; in fill_buf()
98 Ok(&self.buf[self.pos..self.cap]) in fill_buf()
102 self.pos = cmp::min(self.pos + amt, self.cap); in consume()

12345678910>>...37