Home
last modified time | relevance | path

Searched full:cap (Results 1 – 25 of 1493) sorted by relevance

12345678910>>...60

/third_party/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 …]
/third_party/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 …]
/third_party/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 …]
Denable.c98 GLenum cap, GLboolean state) in client_state() argument
100 switch (cap) { in client_state()
150 ctx->Driver.Enable( ctx, cap, state ); in client_state()
157 state ? "Enable" : "Disable", _mesa_enum_to_string(cap)); in client_state()
169 GLenum cap, GLuint index, GLboolean state) in client_state_i() argument
173 if (cap != GL_TEXTURE_COORD_ARRAY) { in client_state_i()
174 _mesa_error(ctx, GL_INVALID_ENUM, "gl%sClientStateiEXT(cap=%s)", in client_state_i()
176 _mesa_enum_to_string(cap)); in client_state_i()
189 client_state(ctx, vao, cap, state); in client_state_i()
196 * \param cap state to enable/disable.
[all …]
/third_party/skia/third_party/externals/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()
84 const size_t cap = CordRepBtree::kMaxCapacity; in TEST() local
85 int counts[] = {1, 2, cap, cap * cap, cap * cap + 1, cap * cap * 2 + 17}; in TEST()
127 const size_t cap = CordRepBtree::kMaxCapacity; in TEST() local
128 int counts[] = {1, 2, cap, cap * cap, cap * cap + 1, cap * cap * 2 + 17}; in TEST()
239 const size_t cap = CordRepBtree::kMaxCapacity; in TEST() local
240 int counts[] = {1, 2, cap, cap * cap + 1, cap * cap * cap * 2 + 17}; in TEST()
247 for (size_t read_size : {kChars - 1, kChars, kChars + 7, cap * cap}) { in TEST()
/third_party/skia/src/sksl/ir/
DSkSLSetting.cpp83 #define CAP(T, name) CapsLookupTable::Pair{#name, new T##CapsLookup{&ShaderCapsClass::name}} in caps_lookup_table() macro
84 CAP(Bool, fbFetchSupport), in caps_lookup_table()
85 CAP(Bool, fbFetchNeedsCustomOutput), in caps_lookup_table()
86 CAP(Bool, flatInterpolationSupport), in caps_lookup_table()
87 CAP(Bool, noperspectiveInterpolationSupport), in caps_lookup_table()
88 CAP(Bool, externalTextureSupport), in caps_lookup_table()
89 CAP(Bool, mustEnableAdvBlendEqs), in caps_lookup_table()
90 CAP(Bool, mustDeclareFragmentShaderOutput), in caps_lookup_table()
91 CAP(Bool, mustDoOpBetweenFloorAndAbs), in caps_lookup_table()
92 CAP(Bool, mustGuardDivisionEvenAfterExplicitZeroCheck), in caps_lookup_table()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/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.c65 struct ieee80211_he_capabilities *cap; in ieee80211_invalid_he_cap_size() local
68 cap = (struct ieee80211_he_capabilities *) buf; in ieee80211_invalid_he_cap_size()
69 cap_len = sizeof(*cap) - sizeof(cap->optional); in ieee80211_invalid_he_cap_size()
73 cap_len += ieee80211_he_mcs_set_size(cap->he_phy_capab_info); in ieee80211_invalid_he_cap_size()
77 cap_len += ieee80211_he_ppet_size(buf[cap_len], cap->he_phy_capab_info); in ieee80211_invalid_he_cap_size()
86 struct ieee80211_he_capabilities *cap; in hostapd_eid_he_capab() local
95 ie_size = sizeof(*cap) - sizeof(cap->optional); in hostapd_eid_he_capab()
122 cap = (struct ieee80211_he_capabilities *) pos; in hostapd_eid_he_capab()
123 os_memset(cap, 0, sizeof(*cap)); in hostapd_eid_he_capab()
125 os_memcpy(cap->he_mac_capab_info, mode->he_capab[opmode].mac_cap, in hostapd_eid_he_capab()
[all …]
/third_party/flutter/skia/gm/
Dquadpaths.cpp38 const SkRect& clip,SkPaint::Cap cap, SkPaint::Join join, in drawPath() argument
43 paint.setStrokeCap(cap); in drawPath()
75 SkPaint::Cap fCap; in onDraw()
107 for (size_t cap = 0; cap < SK_ARRAY_COUNT(gCaps); ++cap) { in onDraw() local
108 if (0 < cap) { in onDraw()
124 gCaps[cap].fCap, gCaps[cap].fJoin, gStyles[style].fStyle, in onDraw()
140 canvas->drawString(gCaps[cap].fName, 0, rect.height() + 36.0f, in onDraw()
168 const SkRect& clip,SkPaint::Cap cap, SkPaint::Join join, in drawPath() argument
173 paint.setStrokeCap(cap); in drawPath()
205 SkPaint::Cap fCap; in onDraw()
[all …]
Dlinepaths.cpp22 const SkRect& clip,SkPaint::Cap cap, SkPaint::Join join, in drawPath() argument
27 paint.setStrokeCap(cap); in drawPath()
59 SkPaint::Cap fCap; in draw()
100 for (size_t cap = 0; cap < SK_ARRAY_COUNT(gCaps); ++cap) { in draw() local
101 if (0 < cap) { in draw()
117 gCaps[cap].fCap, gCaps[cap].fJoin, gStyles[style].fStyle, in draw()
134 canvas->drawString(gCaps[cap].fName, 0, rect.height() + 36.0f, in draw()
Dcubicpaths.cpp127 const SkRect& clip,SkPaint::Cap cap, SkPaint::Join join, in drawPath() argument
132 paint.setStrokeCap(cap); in drawPath()
164 SkPaint::Cap fCap; in onDraw()
197 for (size_t cap = 0; cap < SK_ARRAY_COUNT(gCaps); ++cap) { in onDraw() local
198 if (0 < cap) { in onDraw()
214 gCaps[cap].fCap, gCaps[cap].fJoin, gStyles[style].fStyle, in onDraw()
229 canvas->drawString(gCaps[cap].fName, 0, rect.height() + 36, font, labelPaint); in onDraw()
246 const SkRect& clip,SkPaint::Cap cap, SkPaint::Join join, in drawPath() argument
251 paint.setStrokeCap(cap); in drawPath()
283 SkPaint::Cap fCap; in onDraw()
[all …]
/third_party/skia/gm/
Dquadpaths.cpp38 const SkRect& clip,SkPaint::Cap cap, SkPaint::Join join, in drawPath() argument
43 paint.setStrokeCap(cap); in drawPath()
75 SkPaint::Cap fCap; in onDraw()
107 for (size_t cap = 0; cap < SK_ARRAY_COUNT(gCaps); ++cap) { in onDraw() local
108 if (0 < cap) { in onDraw()
124 gCaps[cap].fCap, gCaps[cap].fJoin, gStyles[style].fStyle, in onDraw()
140 canvas->drawString(gCaps[cap].fName, 0, rect.height() + 36.0f, in onDraw()
168 const SkRect& clip,SkPaint::Cap cap, SkPaint::Join join, in drawPath() argument
173 paint.setStrokeCap(cap); in drawPath()
205 SkPaint::Cap fCap; in onDraw()
[all …]
Dlinepaths.cpp22 const SkRect& clip,SkPaint::Cap cap, SkPaint::Join join, in drawPath() argument
27 paint.setStrokeCap(cap); in drawPath()
59 SkPaint::Cap fCap; in draw()
100 for (size_t cap = 0; cap < SK_ARRAY_COUNT(gCaps); ++cap) { in draw() local
101 if (0 < cap) { in draw()
117 gCaps[cap].fCap, gCaps[cap].fJoin, gStyles[style].fStyle, in draw()
134 canvas->drawString(gCaps[cap].fName, 0, rect.height() + 36.0f, in draw()
Dcubicpaths.cpp127 const SkRect& clip,SkPaint::Cap cap, SkPaint::Join join, in drawPath() argument
132 paint.setStrokeCap(cap); in drawPath()
164 SkPaint::Cap fCap; in onDraw()
197 for (size_t cap = 0; cap < SK_ARRAY_COUNT(gCaps); ++cap) { in onDraw() local
198 if (0 < cap) { in onDraw()
214 gCaps[cap].fCap, gCaps[cap].fJoin, gStyles[style].fStyle, in onDraw()
229 canvas->drawString(gCaps[cap].fName, 0, rect.height() + 36, font, labelPaint); in onDraw()
246 const SkRect& clip,SkPaint::Cap cap, SkPaint::Join join, in drawPath() argument
251 paint.setStrokeCap(cap); in drawPath()
283 SkPaint::Cap fCap; in onDraw()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9/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.c50 struct ieee80211_he_capabilities *cap; in hostapd_eid_he_capab() local
87 cap = (struct ieee80211_he_capabilities *) pos; in hostapd_eid_he_capab()
88 os_memset(cap, 0, sizeof(*cap)); in hostapd_eid_he_capab()
90 os_memcpy(cap->he_mac_capab_info, mode->he_capab[opmode].mac_cap, in hostapd_eid_he_capab()
92 os_memcpy(cap->he_phy_capab_info, mode->he_capab[opmode].phy_cap, in hostapd_eid_he_capab()
94 os_memcpy(cap->optional, mode->he_capab[opmode].mcs, mcs_nss_size); in hostapd_eid_he_capab()
96 os_memcpy(&cap->optional[mcs_nss_size], in hostapd_eid_he_capab()
100 cap->he_phy_capab_info[HE_PHYCAP_SU_BEAMFORMER_CAPAB_IDX] |= in hostapd_eid_he_capab()
103 cap->he_phy_capab_info[HE_PHYCAP_SU_BEAMFORMER_CAPAB_IDX] &= in hostapd_eid_he_capab()
107 cap->he_phy_capab_info[HE_PHYCAP_SU_BEAMFORMEE_CAPAB_IDX] |= in hostapd_eid_he_capab()
[all …]
/third_party/musl/src/malloc/mallocng/
Dmallinfo.c75 #define cap(x) ((x > INT_MAX) ? INT_MAX : x) macro
81 mi.arena = cap(mi2.arena); in mallinfo()
82 mi.ordblks = cap(mi2.ordblks); in mallinfo()
83 mi.smblks = cap(mi2.smblks); in mallinfo()
84 mi.hblks = cap(mi2.hblks); in mallinfo()
85 mi.hblkhd = cap(mi2.hblkhd); in mallinfo()
86 mi.usmblks = cap(mi2.usmblks); in mallinfo()
87 mi.fsmblks = cap(mi2.fsmblks); in mallinfo()
88 mi.uordblks = cap(mi2.uordblks); in mallinfo()
89 mi.fordblks = cap(mi2.fordblks); in mallinfo()
[all …]
/third_party/ltp/testcases/kernel/syscalls/prctl/
Dprctl07.c13 * and retrun EPERM. We also raise a CAP twice.
16 * Even though this cap is not in set, it also should return 0.
41 static inline void check_cap_raise(unsigned int cap, char *message, int fail_flag) in check_cap_raise() argument
43 TEST(prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_RAISE, cap, 0, 0, 0)); in check_cap_raise()
67 static inline void check_cap_is_set(unsigned int cap, char *message, int val) in check_cap_is_set() argument
69 TEST(prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_IS_SET, cap, 0, 0, 0)); in check_cap_is_set()
80 static inline void check_cap_lower(unsigned int cap, char *message) in check_cap_lower() argument
82 TEST(prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_LOWER, cap, 0, 0, 0)); in check_cap_lower()
108 check_cap_raise(CAP_NET_BIND_SERVICE, "on non-inheritable cap", 1); in verify_prctl()
113 check_cap_raise(CAP_NET_RAW, "on non-permitted cap", 1); in verify_prctl()
[all …]
/third_party/grpc/src/core/lib/iomgr/
Derror.cc546 static void append_chr(char c, char** s, size_t* sz, size_t* cap) { in append_chr() argument
547 if (*sz == *cap) { in append_chr()
548 *cap = GPR_MAX(8, 3 * *cap / 2); in append_chr()
549 *s = static_cast<char*>(gpr_realloc(*s, *cap)); in append_chr()
554 static void append_str(const char* str, char** s, size_t* sz, size_t* cap) { in append_str() argument
556 append_chr(*c, s, sz, cap); in append_str()
561 size_t* cap) { in append_esc_str() argument
563 append_chr('"', s, sz, cap); in append_esc_str()
566 append_chr('\\', s, sz, cap); in append_esc_str()
569 append_chr('b', s, sz, cap); in append_esc_str()
[all …]
/third_party/openssl/crypto/pkcs7/
Dpk7_attr.c21 STACK_OF(X509_ALGOR) *cap) in PKCS7_add_attrib_smimecap()
29 seq->length = ASN1_item_i2d((ASN1_VALUE *)cap, &seq->data, in PKCS7_add_attrib_smimecap()
37 ASN1_TYPE *cap; in STACK_OF() local
40 cap = PKCS7_get_signed_attribute(si, NID_SMIMECapabilities); in STACK_OF()
41 if (cap == NULL || (cap->type != V_ASN1_SEQUENCE)) in STACK_OF()
43 p = cap->value.sequence->data; in STACK_OF()
45 ASN1_item_d2i(NULL, &p, cap->value.sequence->length, in STACK_OF()
/third_party/ffmpeg/libswresample/x86/
Daudio_convert_init.c25 #define PROTO(pre, in, out, cap) void ff ## pre ## in## _to_ ##out## _a_ ##cap(uint8_t **dst, const… argument
26 #define PROTO2(pre, out, cap) PROTO(pre, int16, out, cap) PROTO(pre, int32, out, cap) PROTO(pre, fl… argument
27 #define PROTO3(pre, cap) PROTO2(pre, int16, cap) PROTO2(pre, int32, cap) PROTO2(pre, float, cap) argument
46 #define MULTI_CAPS_FUNC(flag, cap) \ in PROTO4() argument
49 ac->simd_f = ff_int16_to_int32_a_ ## cap;\ in PROTO4()
51 ac->simd_f = ff_int32_to_int16_a_ ## cap;\ in PROTO4()
/third_party/re2/re2/testing/
Dparse_test.cc41 { "(a)", "cap{lit{a}}" },
42 { "(a)|b", "alt{cap{lit{a}}lit{b}}" },
117 { "(ab)*", "star{cap{str{ab}}}" },
119 { "a(b|c)d", "cat{lit{a}cap{cc{0x62-0x63}}lit{d}}" },
166 { "(?P<name>a)", "cap{name:lit{a}}" },
364 …"cap{cap{rep{2,2 cap{rep{2,2 cap{rep{2,2 cap{rep{2,2 cap{rep{2,2 cap{rep{2,2 cap{rep{2,2 cap{rep{2…
366 …"cap{rep{2,2 cap{rep{2,2 cap{rep{2,2 cap{rep{2,2 cap{rep{2,2 cap{rep{2,2 cap{rep{2,2 cap{rep{2,2 c…
368 …"cap{rep{2,2 cap{rep{2,2 cap{rep{2,2 cap{rep{2,2 cap{rep{2,2 cap{rep{2,2 cap{rep{2,2 cap{rep{2,2 c…
370 "cap{rep{5,5 cap{rep{5,5 cap{rep{5,5 cap{rep{2,2 cap{rep{2,2 cap{rep{2,2 lit{x}}}}}}}}}}}}}" },
/third_party/libuv/src/unix/
Dproctitle.c30 size_t cap; /* Maximum capacity. Computed once in uv_setup_args(). */ member
58 pt.cap = pt.len + 1; in uv_setup_args()
61 size = pt.cap; in uv_setup_args()
75 size = pt.cap; in uv_setup_args()
87 pt.cap = argv[i - 1] + size - argv[0]; in uv_setup_args()
110 if (len >= pt->cap) { in uv_set_process_title()
112 if (pt->cap > 0) in uv_set_process_title()
113 len = pt->cap - 1; in uv_set_process_title()
117 memset(pt->str + len, '\0', pt->cap - len); in uv_set_process_title()

12345678910>>...60